0s autopkgtest [11:14:40]: starting date and time: 2026-02-07 11:14:40+0000 0s autopkgtest [11:14:40]: git checkout: 508d4a25 a-v-ssh wait_for_ssh: demote "ssh connection failed" to a debug message 0s autopkgtest [11:14:40]: host juju-7f2275-prod-proposed-migration-environment-9; command line: /home/ubuntu/autopkgtest/runner/autopkgtest --output-dir /tmp/autopkgtest-work.j1mv4su2/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:pkgconf --apt-upgrade glib2.0 --timeout-short=300 --timeout-copy=20000 --timeout-build=20000 --env=ADT_TEST_TRIGGERS=pkgconf/2.5.1-2 -- lxd -r lxd-armhf-10.145.243.52 lxd-armhf-10.145.243.52:autopkgtest/ubuntu/resolute/armhf 20s autopkgtest [11:15:00]: testbed dpkg architecture: armhf 22s autopkgtest [11:15:02]: testbed apt version: 3.1.15 26s autopkgtest [11:15:06]: @@@@@@@@@@@@@@@@@@@@ test bed setup 28s autopkgtest [11:15:08]: testbed release detected to be: None 35s autopkgtest [11:15:15]: updating testbed package index (apt update) 37s Get:1 http://ftpmaster.internal/ubuntu resolute-proposed InRelease [124 kB] 37s Get:2 http://ftpmaster.internal/ubuntu resolute InRelease [124 kB] 37s Get:3 http://ftpmaster.internal/ubuntu resolute-updates InRelease [124 kB] 38s Get:4 http://ftpmaster.internal/ubuntu resolute-security InRelease [124 kB] 38s Get:5 http://ftpmaster.internal/ubuntu resolute-proposed/main Sources [196 kB] 38s Get:6 http://ftpmaster.internal/ubuntu resolute-proposed/universe Sources [1608 kB] 38s Get:7 http://ftpmaster.internal/ubuntu resolute-proposed/restricted Sources [10.7 kB] 38s Get:8 http://ftpmaster.internal/ubuntu resolute-proposed/multiverse Sources [35.1 kB] 38s Get:9 http://ftpmaster.internal/ubuntu resolute-proposed/main armhf Packages [231 kB] 38s Get:10 http://ftpmaster.internal/ubuntu resolute-proposed/universe armhf Packages [1358 kB] 38s Get:11 http://ftpmaster.internal/ubuntu resolute-proposed/multiverse armhf Packages [9992 B] 38s Get:12 http://ftpmaster.internal/ubuntu resolute/main Sources [1412 kB] 38s Get:13 http://ftpmaster.internal/ubuntu resolute/multiverse Sources [311 kB] 38s Get:14 http://ftpmaster.internal/ubuntu resolute/universe Sources [21.3 MB] 39s Get:15 http://ftpmaster.internal/ubuntu resolute/main armhf Packages [1374 kB] 39s Get:16 http://ftpmaster.internal/ubuntu resolute/universe armhf Packages [14.9 MB] 39s Get:17 http://ftpmaster.internal/ubuntu resolute/multiverse armhf Packages [177 kB] 42s Fetched 43.4 MB in 5s (8136 kB/s) 44s Reading package lists... 50s autopkgtest [11:15:30]: upgrading testbed (apt dist-upgrade and autopurge) 51s Reading package lists... 52s Building dependency tree... 52s Reading state information... 52s Calculating upgrade... 53s The following packages will be upgraded: 53s 3cpio distro-info libevent-core-2.1-7t64 libpcap0.8t64 54s 4 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 54s Need to get 515 kB of archives. 54s After this operation, 0 B of additional disk space will be used. 54s Get:1 http://ftpmaster.internal/ubuntu resolute/main armhf distro-info armhf 1.14build1 [19.3 kB] 54s Get:2 http://ftpmaster.internal/ubuntu resolute/main armhf libpcap0.8t64 armhf 1.10.5-2ubuntu3 [140 kB] 54s Get:3 http://ftpmaster.internal/ubuntu resolute/main armhf 3cpio armhf 0.14.0-1ubuntu1 [271 kB] 54s Get:4 http://ftpmaster.internal/ubuntu resolute/main armhf libevent-core-2.1-7t64 armhf 2.1.12-stable-10build2 [84.9 kB] 55s Fetched 515 kB in 1s (950 kB/s) 55s (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 ... 68506 files and directories currently installed.) 55s Preparing to unpack .../distro-info_1.14build1_armhf.deb ... 55s Unpacking distro-info (1.14build1) over (1.14) ... 55s Preparing to unpack .../libpcap0.8t64_1.10.5-2ubuntu3_armhf.deb ... 55s Unpacking libpcap0.8t64:armhf (1.10.5-2ubuntu3) over (1.10.5-2ubuntu2) ... 55s Preparing to unpack .../3cpio_0.14.0-1ubuntu1_armhf.deb ... 55s Unpacking 3cpio (0.14.0-1ubuntu1) over (0.13.1-1ubuntu1) ... 55s Preparing to unpack .../libevent-core-2.1-7t64_2.1.12-stable-10build2_armhf.deb ... 55s Unpacking libevent-core-2.1-7t64:armhf (2.1.12-stable-10build2) over (2.1.12-stable-10build1) ... 55s Setting up distro-info (1.14build1) ... 55s Setting up 3cpio (0.14.0-1ubuntu1) ... 55s Setting up libpcap0.8t64:armhf (1.10.5-2ubuntu3) ... 55s Setting up libevent-core-2.1-7t64:armhf (2.1.12-stable-10build2) ... 55s Processing triggers for man-db (2.13.1-1) ... 56s Processing triggers for libc-bin (2.42-2ubuntu4) ... 59s Reading package lists... 59s Building dependency tree... 59s Reading state information... 60s Solving dependencies... 61s 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 63s autopkgtest [11:15:43]: rebooting testbed after setup commands that affected boot 104s autopkgtest [11:16:24]: testbed running kernel: Linux 6.8.0-87-generic #88~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Tue Oct 14 14:00:09 UTC 2 129s autopkgtest [11:16:49]: @@@@@@@@@@@@@@@@@@@@ apt-source glib2.0 202s Get:1 http://ftpmaster.internal/ubuntu resolute/main glib2.0 2.86.3-4 (dsc) [4685 B] 202s Get:2 http://ftpmaster.internal/ubuntu resolute/main glib2.0 2.86.3-4 (tar) [661 kB] 202s Get:3 http://ftpmaster.internal/ubuntu resolute/main glib2.0 2.86.3-4 (tar) [5675 kB] 202s Get:4 http://ftpmaster.internal/ubuntu resolute/main glib2.0 2.86.3-4 (diff) [141 kB] 202s gpgv: Signature made Thu Jan 1 13:00:10 2026 UTC 202s gpgv: using RSA key 4D0BE12F0E4776D8AACE9696E66C775AEBFE6C7D 202s gpgv: Can't check signature: No public key 202s dpkg-source: warning: cannot verify inline signature for ./glib2.0_2.86.3-4.dsc: no acceptable signature found 204s autopkgtest [11:18:04]: testing package glib2.0 version 2.86.3-4 210s autopkgtest [11:18:10]: build not needed 217s autopkgtest [11:18:17]: test build: preparing testbed 220s Reading package lists... 220s Building dependency tree... 220s Reading state information... 220s Solving dependencies... 221s The following NEW packages will be installed: 221s build-essential cpp cpp-15 cpp-15-arm-linux-gnueabihf 221s cpp-arm-linux-gnueabihf g++ g++-15 g++-15-arm-linux-gnueabihf 221s g++-arm-linux-gnueabihf gcc gcc-15 gcc-15-arm-linux-gnueabihf 221s gcc-arm-linux-gnueabihf libasan8 libblkid-dev libc-dev-bin libc6-dev 221s libcc1-0 libcrypt-dev libffi-dev libgcc-15-dev libgio-2.0-dev libgomp1 221s libisl23 libmount-dev libmpc3 libpcre2-16-0 libpcre2-32-0 libpcre2-dev 221s libpcre2-posix3 libpkgconf7 libselinux-dev libsepol-dev libstdc++-15-dev 221s libsysprof-capture-4-dev libubsan1 linux-libc-dev pkgconf pkgconf-bin 221s rpcsvc-proto uuid-dev zlib1g-dev 221s 0 upgraded, 42 newly installed, 0 to remove and 0 not upgraded. 221s Need to get 58.2 MB of archives. 221s After this operation, 169 MB of additional disk space will be used. 221s Get:1 http://ftpmaster.internal/ubuntu resolute/main armhf libc-dev-bin armhf 2.42-2ubuntu4 [21.8 kB] 222s Get:2 http://ftpmaster.internal/ubuntu resolute/main armhf linux-libc-dev armhf 6.18.0-9.9 [1819 kB] 222s Get:3 http://ftpmaster.internal/ubuntu resolute/main armhf libcrypt-dev armhf 1:4.5.1-1 [128 kB] 222s Get:4 http://ftpmaster.internal/ubuntu resolute/main armhf rpcsvc-proto armhf 1.4.3-1build1 [62.6 kB] 222s Get:5 http://ftpmaster.internal/ubuntu resolute/main armhf libc6-dev armhf 2.42-2ubuntu4 [1416 kB] 222s Get:6 http://ftpmaster.internal/ubuntu resolute/main armhf libisl23 armhf 0.27-1build1 [553 kB] 222s Get:7 http://ftpmaster.internal/ubuntu resolute/main armhf libmpc3 armhf 1.3.1-2 [47.0 kB] 222s Get:8 http://ftpmaster.internal/ubuntu resolute/main armhf cpp-15-arm-linux-gnueabihf armhf 15.2.0-12ubuntu1 [10.1 MB] 222s Get:9 http://ftpmaster.internal/ubuntu resolute/main armhf cpp-15 armhf 15.2.0-12ubuntu1 [1032 B] 222s Get:10 http://ftpmaster.internal/ubuntu resolute/main armhf cpp-arm-linux-gnueabihf armhf 4:15.2.0-4ubuntu1 [5756 B] 222s Get:11 http://ftpmaster.internal/ubuntu resolute/main armhf cpp armhf 4:15.2.0-4ubuntu1 [22.4 kB] 222s Get:12 http://ftpmaster.internal/ubuntu resolute/main armhf libcc1-0 armhf 15.2.0-12ubuntu1 [43.5 kB] 222s Get:13 http://ftpmaster.internal/ubuntu resolute/main armhf libgomp1 armhf 15.2.0-12ubuntu1 [129 kB] 222s Get:14 http://ftpmaster.internal/ubuntu resolute/main armhf libasan8 armhf 15.2.0-12ubuntu1 [2949 kB] 223s Get:15 http://ftpmaster.internal/ubuntu resolute/main armhf libubsan1 armhf 15.2.0-12ubuntu1 [1187 kB] 223s Get:16 http://ftpmaster.internal/ubuntu resolute/main armhf libgcc-15-dev armhf 15.2.0-12ubuntu1 [898 kB] 223s Get:17 http://ftpmaster.internal/ubuntu resolute/main armhf gcc-15-arm-linux-gnueabihf armhf 15.2.0-12ubuntu1 [19.5 MB] 224s Get:18 http://ftpmaster.internal/ubuntu resolute/main armhf gcc-15 armhf 15.2.0-12ubuntu1 [499 kB] 224s Get:19 http://ftpmaster.internal/ubuntu resolute/main armhf gcc-arm-linux-gnueabihf armhf 4:15.2.0-4ubuntu1 [1220 B] 224s Get:20 http://ftpmaster.internal/ubuntu resolute/main armhf gcc armhf 4:15.2.0-4ubuntu1 [5022 B] 224s Get:21 http://ftpmaster.internal/ubuntu resolute/main armhf libstdc++-15-dev armhf 15.2.0-12ubuntu1 [2638 kB] 224s Get:22 http://ftpmaster.internal/ubuntu resolute/main armhf g++-15-arm-linux-gnueabihf armhf 15.2.0-12ubuntu1 [11.4 MB] 224s Get:23 http://ftpmaster.internal/ubuntu resolute/main armhf g++-15 armhf 15.2.0-12ubuntu1 [25.3 kB] 224s Get:24 http://ftpmaster.internal/ubuntu resolute/main armhf g++-arm-linux-gnueabihf armhf 4:15.2.0-4ubuntu1 [968 B] 224s Get:25 http://ftpmaster.internal/ubuntu resolute/main armhf g++ armhf 4:15.2.0-4ubuntu1 [1086 B] 224s Get:26 http://ftpmaster.internal/ubuntu resolute/main armhf build-essential armhf 12.12ubuntu2 [5256 B] 224s Get:27 http://ftpmaster.internal/ubuntu resolute/main armhf libffi-dev armhf 3.5.2-3 [60.5 kB] 224s Get:28 http://ftpmaster.internal/ubuntu resolute/main armhf uuid-dev armhf 2.41.2-4ubuntu2 [55.6 kB] 224s Get:29 http://ftpmaster.internal/ubuntu resolute/main armhf libblkid-dev armhf 2.41.2-4ubuntu2 [224 kB] 224s Get:30 http://ftpmaster.internal/ubuntu resolute/main armhf libsepol-dev armhf 3.9-2 [384 kB] 224s Get:31 http://ftpmaster.internal/ubuntu resolute/main armhf libpcre2-16-0 armhf 10.46-1 [206 kB] 224s Get:32 http://ftpmaster.internal/ubuntu resolute/main armhf libpcre2-32-0 armhf 10.46-1 [197 kB] 224s Get:33 http://ftpmaster.internal/ubuntu resolute/main armhf libpcre2-posix3 armhf 10.46-1 [6286 B] 224s Get:34 http://ftpmaster.internal/ubuntu resolute/main armhf libpcre2-dev armhf 10.46-1 [744 kB] 224s Get:35 http://ftpmaster.internal/ubuntu resolute/main armhf libselinux-dev armhf 3.9-4 [169 kB] 224s Get:36 http://ftpmaster.internal/ubuntu resolute/main armhf libmount-dev armhf 2.41.2-4ubuntu2 [37.6 kB] 224s Get:37 http://ftpmaster.internal/ubuntu resolute/main armhf libsysprof-capture-4-dev armhf 49.0-5 [49.3 kB] 224s Get:38 http://ftpmaster.internal/ubuntu resolute-proposed/main armhf libpkgconf7 armhf 2.5.1-2 [32.7 kB] 224s Get:39 http://ftpmaster.internal/ubuntu resolute-proposed/main armhf pkgconf-bin armhf 2.5.1-2 [23.2 kB] 224s Get:40 http://ftpmaster.internal/ubuntu resolute-proposed/main armhf pkgconf armhf 2.5.1-2 [20.0 kB] 224s Get:41 http://ftpmaster.internal/ubuntu resolute/main armhf zlib1g-dev armhf 1:1.3.dfsg+really1.3.1-1ubuntu2 [881 kB] 224s Get:42 http://ftpmaster.internal/ubuntu resolute/main armhf libgio-2.0-dev armhf 2.86.3-4 [1731 kB] 225s Fetched 58.2 MB in 3s (18.3 MB/s) 225s Selecting previously unselected package libc-dev-bin. 225s (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 ... 68506 files and directories currently installed.) 225s Preparing to unpack .../00-libc-dev-bin_2.42-2ubuntu4_armhf.deb ... 225s Unpacking libc-dev-bin (2.42-2ubuntu4) ... 225s Selecting previously unselected package linux-libc-dev:armhf. 225s Preparing to unpack .../01-linux-libc-dev_6.18.0-9.9_armhf.deb ... 225s Unpacking linux-libc-dev:armhf (6.18.0-9.9) ... 226s Selecting previously unselected package libcrypt-dev:armhf. 226s Preparing to unpack .../02-libcrypt-dev_1%3a4.5.1-1_armhf.deb ... 226s Unpacking libcrypt-dev:armhf (1:4.5.1-1) ... 226s Selecting previously unselected package rpcsvc-proto. 226s Preparing to unpack .../03-rpcsvc-proto_1.4.3-1build1_armhf.deb ... 226s Unpacking rpcsvc-proto (1.4.3-1build1) ... 226s Selecting previously unselected package libc6-dev:armhf. 226s Preparing to unpack .../04-libc6-dev_2.42-2ubuntu4_armhf.deb ... 226s Unpacking libc6-dev:armhf (2.42-2ubuntu4) ... 226s Selecting previously unselected package libisl23:armhf. 226s Preparing to unpack .../05-libisl23_0.27-1build1_armhf.deb ... 226s Unpacking libisl23:armhf (0.27-1build1) ... 226s Selecting previously unselected package libmpc3:armhf. 226s Preparing to unpack .../06-libmpc3_1.3.1-2_armhf.deb ... 226s Unpacking libmpc3:armhf (1.3.1-2) ... 226s Selecting previously unselected package cpp-15-arm-linux-gnueabihf. 226s Preparing to unpack .../07-cpp-15-arm-linux-gnueabihf_15.2.0-12ubuntu1_armhf.deb ... 226s Unpacking cpp-15-arm-linux-gnueabihf (15.2.0-12ubuntu1) ... 226s Selecting previously unselected package cpp-15. 226s Preparing to unpack .../08-cpp-15_15.2.0-12ubuntu1_armhf.deb ... 226s Unpacking cpp-15 (15.2.0-12ubuntu1) ... 226s Selecting previously unselected package cpp-arm-linux-gnueabihf. 226s Preparing to unpack .../09-cpp-arm-linux-gnueabihf_4%3a15.2.0-4ubuntu1_armhf.deb ... 226s Unpacking cpp-arm-linux-gnueabihf (4:15.2.0-4ubuntu1) ... 226s Selecting previously unselected package cpp. 226s Preparing to unpack .../10-cpp_4%3a15.2.0-4ubuntu1_armhf.deb ... 226s Unpacking cpp (4:15.2.0-4ubuntu1) ... 226s Selecting previously unselected package libcc1-0:armhf. 227s Preparing to unpack .../11-libcc1-0_15.2.0-12ubuntu1_armhf.deb ... 227s Unpacking libcc1-0:armhf (15.2.0-12ubuntu1) ... 227s Selecting previously unselected package libgomp1:armhf. 227s Preparing to unpack .../12-libgomp1_15.2.0-12ubuntu1_armhf.deb ... 227s Unpacking libgomp1:armhf (15.2.0-12ubuntu1) ... 227s Selecting previously unselected package libasan8:armhf. 227s Preparing to unpack .../13-libasan8_15.2.0-12ubuntu1_armhf.deb ... 227s Unpacking libasan8:armhf (15.2.0-12ubuntu1) ... 227s Selecting previously unselected package libubsan1:armhf. 227s Preparing to unpack .../14-libubsan1_15.2.0-12ubuntu1_armhf.deb ... 227s Unpacking libubsan1:armhf (15.2.0-12ubuntu1) ... 227s Selecting previously unselected package libgcc-15-dev:armhf. 227s Preparing to unpack .../15-libgcc-15-dev_15.2.0-12ubuntu1_armhf.deb ... 227s Unpacking libgcc-15-dev:armhf (15.2.0-12ubuntu1) ... 227s Selecting previously unselected package gcc-15-arm-linux-gnueabihf. 227s Preparing to unpack .../16-gcc-15-arm-linux-gnueabihf_15.2.0-12ubuntu1_armhf.deb ... 227s Unpacking gcc-15-arm-linux-gnueabihf (15.2.0-12ubuntu1) ... 228s Selecting previously unselected package gcc-15. 228s Preparing to unpack .../17-gcc-15_15.2.0-12ubuntu1_armhf.deb ... 228s Unpacking gcc-15 (15.2.0-12ubuntu1) ... 228s Selecting previously unselected package gcc-arm-linux-gnueabihf. 228s Preparing to unpack .../18-gcc-arm-linux-gnueabihf_4%3a15.2.0-4ubuntu1_armhf.deb ... 228s Unpacking gcc-arm-linux-gnueabihf (4:15.2.0-4ubuntu1) ... 228s Selecting previously unselected package gcc. 228s Preparing to unpack .../19-gcc_4%3a15.2.0-4ubuntu1_armhf.deb ... 228s Unpacking gcc (4:15.2.0-4ubuntu1) ... 228s Selecting previously unselected package libstdc++-15-dev:armhf. 228s Preparing to unpack .../20-libstdc++-15-dev_15.2.0-12ubuntu1_armhf.deb ... 228s Unpacking libstdc++-15-dev:armhf (15.2.0-12ubuntu1) ... 228s Selecting previously unselected package g++-15-arm-linux-gnueabihf. 228s Preparing to unpack .../21-g++-15-arm-linux-gnueabihf_15.2.0-12ubuntu1_armhf.deb ... 228s Unpacking g++-15-arm-linux-gnueabihf (15.2.0-12ubuntu1) ... 228s Selecting previously unselected package g++-15. 228s Preparing to unpack .../22-g++-15_15.2.0-12ubuntu1_armhf.deb ... 228s Unpacking g++-15 (15.2.0-12ubuntu1) ... 228s Selecting previously unselected package g++-arm-linux-gnueabihf. 229s Preparing to unpack .../23-g++-arm-linux-gnueabihf_4%3a15.2.0-4ubuntu1_armhf.deb ... 229s Unpacking g++-arm-linux-gnueabihf (4:15.2.0-4ubuntu1) ... 229s Selecting previously unselected package g++. 229s Preparing to unpack .../24-g++_4%3a15.2.0-4ubuntu1_armhf.deb ... 229s Unpacking g++ (4:15.2.0-4ubuntu1) ... 229s Selecting previously unselected package build-essential. 229s Preparing to unpack .../25-build-essential_12.12ubuntu2_armhf.deb ... 229s Unpacking build-essential (12.12ubuntu2) ... 229s Selecting previously unselected package libffi-dev:armhf. 229s Preparing to unpack .../26-libffi-dev_3.5.2-3_armhf.deb ... 229s Unpacking libffi-dev:armhf (3.5.2-3) ... 229s Selecting previously unselected package uuid-dev:armhf. 229s Preparing to unpack .../27-uuid-dev_2.41.2-4ubuntu2_armhf.deb ... 229s Unpacking uuid-dev:armhf (2.41.2-4ubuntu2) ... 229s Selecting previously unselected package libblkid-dev:armhf. 229s Preparing to unpack .../28-libblkid-dev_2.41.2-4ubuntu2_armhf.deb ... 229s Unpacking libblkid-dev:armhf (2.41.2-4ubuntu2) ... 229s Selecting previously unselected package libsepol-dev:armhf. 229s Preparing to unpack .../29-libsepol-dev_3.9-2_armhf.deb ... 229s Unpacking libsepol-dev:armhf (3.9-2) ... 229s Selecting previously unselected package libpcre2-16-0:armhf. 229s Preparing to unpack .../30-libpcre2-16-0_10.46-1_armhf.deb ... 229s Unpacking libpcre2-16-0:armhf (10.46-1) ... 229s Selecting previously unselected package libpcre2-32-0:armhf. 229s Preparing to unpack .../31-libpcre2-32-0_10.46-1_armhf.deb ... 229s Unpacking libpcre2-32-0:armhf (10.46-1) ... 229s Selecting previously unselected package libpcre2-posix3:armhf. 229s Preparing to unpack .../32-libpcre2-posix3_10.46-1_armhf.deb ... 229s Unpacking libpcre2-posix3:armhf (10.46-1) ... 229s Selecting previously unselected package libpcre2-dev:armhf. 229s Preparing to unpack .../33-libpcre2-dev_10.46-1_armhf.deb ... 229s Unpacking libpcre2-dev:armhf (10.46-1) ... 229s Selecting previously unselected package libselinux-dev:armhf. 229s Preparing to unpack .../34-libselinux-dev_3.9-4_armhf.deb ... 229s Unpacking libselinux-dev:armhf (3.9-4) ... 229s Selecting previously unselected package libmount-dev:armhf. 229s Preparing to unpack .../35-libmount-dev_2.41.2-4ubuntu2_armhf.deb ... 229s Unpacking libmount-dev:armhf (2.41.2-4ubuntu2) ... 229s Selecting previously unselected package libsysprof-capture-4-dev:armhf. 229s Preparing to unpack .../36-libsysprof-capture-4-dev_49.0-5_armhf.deb ... 229s Unpacking libsysprof-capture-4-dev:armhf (49.0-5) ... 229s Selecting previously unselected package libpkgconf7:armhf. 229s Preparing to unpack .../37-libpkgconf7_2.5.1-2_armhf.deb ... 229s Unpacking libpkgconf7:armhf (2.5.1-2) ... 229s Selecting previously unselected package pkgconf-bin. 229s Preparing to unpack .../38-pkgconf-bin_2.5.1-2_armhf.deb ... 229s Unpacking pkgconf-bin (2.5.1-2) ... 229s Selecting previously unselected package pkgconf:armhf. 230s Preparing to unpack .../39-pkgconf_2.5.1-2_armhf.deb ... 230s Unpacking pkgconf:armhf (2.5.1-2) ... 230s Selecting previously unselected package zlib1g-dev:armhf. 230s Preparing to unpack .../40-zlib1g-dev_1%3a1.3.dfsg+really1.3.1-1ubuntu2_armhf.deb ... 230s Unpacking zlib1g-dev:armhf (1:1.3.dfsg+really1.3.1-1ubuntu2) ... 230s Selecting previously unselected package libgio-2.0-dev:armhf. 230s Preparing to unpack .../41-libgio-2.0-dev_2.86.3-4_armhf.deb ... 230s Unpacking libgio-2.0-dev:armhf (2.86.3-4) ... 230s Setting up libpkgconf7:armhf (2.5.1-2) ... 230s Setting up linux-libc-dev:armhf (6.18.0-9.9) ... 230s Setting up libgomp1:armhf (15.2.0-12ubuntu1) ... 230s Setting up libffi-dev:armhf (3.5.2-3) ... 230s Setting up libpcre2-16-0:armhf (10.46-1) ... 230s Setting up libsysprof-capture-4-dev:armhf (49.0-5) ... 230s Setting up libpcre2-32-0:armhf (10.46-1) ... 230s Setting up rpcsvc-proto (1.4.3-1build1) ... 230s Setting up libmpc3:armhf (1.3.1-2) ... 230s Setting up libsepol-dev:armhf (3.9-2) ... 230s Setting up pkgconf-bin (2.5.1-2) ... 230s Setting up libubsan1:armhf (15.2.0-12ubuntu1) ... 230s Setting up libpcre2-posix3:armhf (10.46-1) ... 230s Setting up libcrypt-dev:armhf (1:4.5.1-1) ... 230s Setting up libasan8:armhf (15.2.0-12ubuntu1) ... 230s Setting up libisl23:armhf (0.27-1build1) ... 230s Setting up libc-dev-bin (2.42-2ubuntu4) ... 230s Setting up cpp-15-arm-linux-gnueabihf (15.2.0-12ubuntu1) ... 230s Setting up libcc1-0:armhf (15.2.0-12ubuntu1) ... 230s Setting up cpp-arm-linux-gnueabihf (4:15.2.0-4ubuntu1) ... 230s Setting up libgcc-15-dev:armhf (15.2.0-12ubuntu1) ... 230s Setting up gcc-15-arm-linux-gnueabihf (15.2.0-12ubuntu1) ... 230s Setting up pkgconf:armhf (2.5.1-2) ... 230s Setting up cpp-15 (15.2.0-12ubuntu1) ... 230s Setting up cpp (4:15.2.0-4ubuntu1) ... 230s Setting up libc6-dev:armhf (2.42-2ubuntu4) ... 230s Setting up gcc-arm-linux-gnueabihf (4:15.2.0-4ubuntu1) ... 230s Setting up libpcre2-dev:armhf (10.46-1) ... 230s Setting up gcc-15 (15.2.0-12ubuntu1) ... 230s Setting up libstdc++-15-dev:armhf (15.2.0-12ubuntu1) ... 230s Setting up uuid-dev:armhf (2.41.2-4ubuntu2) ... 230s Setting up zlib1g-dev:armhf (1:1.3.dfsg+really1.3.1-1ubuntu2) ... 230s Setting up libselinux-dev:armhf (3.9-4) ... 230s Setting up libblkid-dev:armhf (2.41.2-4ubuntu2) ... 230s Setting up g++-15-arm-linux-gnueabihf (15.2.0-12ubuntu1) ... 230s Setting up gcc (4:15.2.0-4ubuntu1) ... 230s Setting up g++-15 (15.2.0-12ubuntu1) ... 230s Setting up libmount-dev:armhf (2.41.2-4ubuntu2) ... 230s Setting up g++-arm-linux-gnueabihf (4:15.2.0-4ubuntu1) ... 230s Setting up libgio-2.0-dev:armhf (2.86.3-4) ... 230s Setting up g++ (4:15.2.0-4ubuntu1) ... 230s update-alternatives: using /usr/bin/g++ to provide /usr/bin/c++ (c++) in auto mode 230s Setting up build-essential (12.12ubuntu2) ... 230s Processing triggers for libc-bin (2.42-2ubuntu4) ... 230s Processing triggers for man-db (2.13.1-1) ... 231s Processing triggers for libglib2.0-0t64:armhf (2.86.3-4) ... 231s No schema files found: doing nothing. 231s Processing triggers for install-info (7.2-5) ... 240s autopkgtest [11:18:40]: test build: [----------------------- 242s + mode=dynamic 242s + getopt -o --long static -n debian/tests/build -- 242s + getopt_temp= -- 242s + eval set -- -- 242s + set -- -- 242s + true 242s + shift 242s + break 242s + mktemp -d 242s + WORKDIR=/tmp/tmp.HheKfD3l1T 242s + trap rm -rf "${WORKDIR}" 0 INT QUIT ABRT PIPE TERM 242s + cd /tmp/tmp.HheKfD3l1T 242s + [ -n ] 242s + CROSS_COMPILE= 242s + cat 242s + cat 242s + cat 242s + cat 242s + cat 242s + cat 242s + cflags= 242s + pcflags= 242s + packages=glib-2.0 242s + pkg-config --cflags --libs glib-2.0 242s + 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 242s build (glib, dynamic): OK 242s run (glib, dynamic): OK 242s + echo build (glib, dynamic): OK 242s + [ -x glib-dynamic ] 242s + foo=bar ./glib-dynamic 242s + echo run (glib, dynamic): OK 242s + cflags= 242s + pcflags= 242s + packages=gobject-2.0 242s + pkg-config --cflags --libs gobject-2.0 242s + 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 242s build (gobject, dynamic): OK 242s + echo build (gobject, dynamic): OK 242s + [ -x gobject-dynamic ] 242s + foo=bar ./gobject-dynamic 242s + echo run (gobject, dynamic): OK 242s + cflags= 242s + pcflags= 242s + packages=gio-2.0 242s run (gobject, dynamic): OK 242s + pkg-config --cflags --libs gio-2.0 242s + 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/libmount -I/usr/include/blkid -I/usr/include/sysprof-6 -pthread -lgio-2.0 -lgobject-2.0 -lglib-2.0 243s + echo build (gio, dynamic): OK 243s + [ -x gio-dynamic ] 243s + foo=bar ./gio-dynamic 243s build (gio, dynamic): OK 243s run (gio, dynamic): OK 243s + echo run (gio, dynamic): OK 243s + cflags= 243s + pcflags= 243s + packages=gio-unix-2.0 243s + pkg-config --cflags --libs gio-unix-2.0 243s + 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/libmount -I/usr/include/blkid -I/usr/include/sysprof-6 -pthread -lgio-2.0 -lgobject-2.0 -lglib-2.0 243s + echo build (gio-unix, dynamic): OK 243s + [ -x gio-unix-dynamic ] 243s + foo=bar ./gio-unix-dynamic 243s build (gio-unix, dynamic): OK 243s run (gio-unix, dynamic): OK 243s + echo run (gio-unix, dynamic): OK 243s + cflags= 243s + pcflags= 243s + packages=gmodule-2.0 243s + pkg-config --cflags --libs gmodule-2.0 243s + 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 243s build (gmodule, dynamic): OK 243s + echo build (gmodule, dynamic): OK 243s + [ -x gmodule-dynamic ] 243s + foo=bar ./gmodule-dynamic 243s + echo run (gmodule, dynamic): OK 243s + cflags= 243s + pcflags= 243s + packages=gthread-2.0 243s run (gmodule, dynamic): OK 243s + pkg-config --cflags --libs gthread-2.0 243s + 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 243s build (gthread, dynamic): OK 243s + echo build (gthread, dynamic): OK 243s + [ -x gthread-dynamic ] 243s + foo=bar ./gthread-dynamic 243s run (gthread, dynamic): OK 243s + echo run (gthread, dynamic): OK 243s + rm -rf /tmp/tmp.HheKfD3l1T 244s autopkgtest [11:18:44]: test build: -----------------------] 247s autopkgtest [11:18:47]: test build: - - - - - - - - - - results - - - - - - - - - - 247s build PASS (superficial) 252s autopkgtest [11:18:52]: test build-static: preparing testbed 254s Reading package lists... 254s Building dependency tree... 254s Reading state information... 255s Solving dependencies... 256s 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 263s autopkgtest [11:19:03]: test build-static: [----------------------- 266s + mode=dynamic 266s + getopt -o --long static -n debian/tests/build -- --static 266s + getopt_temp= --static -- 266s + eval set -- --static -- 266s + set -- --static -- 266s + true 266s + mode=static 266s + shift 266s + continue 266s + true 266s + shift 266s + break 266s + mktemp -d 266s + WORKDIR=/tmp/tmp.dyuza7hC3a 266s + trap rm -rf "${WORKDIR}" 0 INT QUIT ABRT PIPE TERM 266s + cd /tmp/tmp.dyuza7hC3a 266s + [ -n ] 266s + CROSS_COMPILE= 266s + cat 266s + cat 266s + cat 266s + cat 266s + cat 266s + cat 266s + cflags= 266s + pcflags= 266s + packages=glib-2.0 266s + cflags=-static 266s + pcflags=--static 266s + pkg-config --static --cflags --libs glib-2.0 266s + 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 -lsysprof-capture-4 -Wl,-z,nodelete -pthread -lpcre2-8 266s /usr/bin/arm-linux-gnueabihf-ld.bfd: /usr/lib/gcc/arm-linux-gnueabihf/15/../../../arm-linux-gnueabihf/libglib-2.0.a(gutils.c.o): in function `g_get_user_database_entry': 266s (.text+0x92): warning: Using 'getpwnam_r' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking 266s /usr/bin/arm-linux-gnueabihf-ld.bfd: (.text+0x19c): warning: Using 'getpwuid' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking 266s /usr/bin/arm-linux-gnueabihf-ld.bfd: (.text+0xba): warning: Using 'getpwuid_r' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking 266s build (glib, static): OK 266s + echo build (glib, static): OK 266s + [ -x glib-static ] 266s + foo=bar ./glib-static 266s + echo run (glib, static): OK 266s + cflags= 266s + pcflags= 266s + packages=gobject-2.0 266s + cflags=-static 266s + pcflags=--static 266s run (glib, static): OK 266s + pkg-config --static --cflags --libs gobject-2.0 266s + 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 -lsysprof-capture-4 -Wl,-z,nodelete -pthread -lpcre2-8 -lffi 266s /usr/bin/arm-linux-gnueabihf-ld.bfd: /usr/lib/gcc/arm-linux-gnueabihf/15/../../../arm-linux-gnueabihf/libglib-2.0.a(gutils.c.o): in function `g_get_user_database_entry': 266s (.text+0x92): warning: Using 'getpwnam_r' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking 266s /usr/bin/arm-linux-gnueabihf-ld.bfd: (.text+0x19c): warning: Using 'getpwuid' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking 266s /usr/bin/arm-linux-gnueabihf-ld.bfd: (.text+0xba): warning: Using 'getpwuid_r' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking 266s build (gobject, static): OK 266s + echo build (gobject, static): OK 266s + [ -x gobject-static ] 266s + foo=bar ./gobject-static 266s + echo run (gobject, static): OK 266s + cflags= 266s + pcflags= 266s + packages=gio-2.0 266s + cflags=-static 266s + pcflags=--static 266s + continue 266s + cflags= 266s + pcflags= 266s + packages=gio-unix-2.0 266s + cflags=-static 266s + pcflags=--static 266s + continue 266s + cflags= 266s + pcflags= 266s + packages=gmodule-2.0 266s + cflags=-static 266s + pcflags=--static 266s run (gobject, static): OK 266s + pkg-config --static --cflags --libs gmodule-2.0 266s + 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 -lsysprof-capture-4 -Wl,-z,nodelete -pthread -lpcre2-8 266s /usr/bin/arm-linux-gnueabihf-ld.bfd: /usr/lib/gcc/arm-linux-gnueabihf/15/../../../arm-linux-gnueabihf/libgmodule-2.0.a(gmodule.c.o): in function `g_module_open_full': 266s (.text+0x424): warning: Using 'dlopen' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking 266s /usr/bin/arm-linux-gnueabihf-ld.bfd: /usr/lib/gcc/arm-linux-gnueabihf/15/../../../arm-linux-gnueabihf/libglib-2.0.a(gutils.c.o): in function `g_get_user_database_entry': 266s (.text+0x92): warning: Using 'getpwnam_r' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking 266s /usr/bin/arm-linux-gnueabihf-ld.bfd: (.text+0x19c): warning: Using 'getpwuid' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking 266s /usr/bin/arm-linux-gnueabihf-ld.bfd: (.text+0xba): warning: Using 'getpwuid_r' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking 267s build (gmodule, static): OK 267s + echo build (gmodule, static): OK 267s + [ -x gmodule-static ] 267s + foo=bar ./gmodule-static 267s + echo run (gmodule, static): OK 267s + cflags= 267s + pcflags= 267s + packages=gthread-2.0 267s + cflags=-static 267s + pcflags=--static 267s run (gmodule, static): OK 267s + pkg-config --static --cflags --libs gthread-2.0 267s + 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 -lsysprof-capture-4 -Wl,-z,nodelete -pthread -lpcre2-8 267s /usr/bin/arm-linux-gnueabihf-ld.bfd: /usr/lib/gcc/arm-linux-gnueabihf/15/../../../arm-linux-gnueabihf/libglib-2.0.a(gutils.c.o): in function `g_get_user_database_entry': 267s (.text+0x92): warning: Using 'getpwnam_r' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking 267s /usr/bin/arm-linux-gnueabihf-ld.bfd: (.text+0x19c): warning: Using 'getpwuid' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking 267s /usr/bin/arm-linux-gnueabihf-ld.bfd: (.text+0xba): warning: Using 'getpwuid_r' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking 267s + echo build (gthread, static): OK 267s + [ -x gthread-static ] 267s + foo=bar ./gthread-static 267s build (gthread, static): OK 267s + echo run (gthread, static): OK 267s + rm -rf /tmp/tmp.dyuza7hC3a 267s run (gthread, static): OK 267s autopkgtest [11:19:07]: test build-static: -----------------------] 271s build-static PASS (superficial) 271s autopkgtest [11:19:11]: test build-static: - - - - - - - - - - results - - - - - - - - - - 275s autopkgtest [11:19:15]: test girepository-tools: preparing testbed 299s autopkgtest [11:19:39]: testbed dpkg architecture: armhf 301s autopkgtest [11:19:41]: testbed apt version: 3.1.15 305s autopkgtest [11:19:45]: @@@@@@@@@@@@@@@@@@@@ test bed setup 306s autopkgtest [11:19:46]: testbed release detected to be: resolute 314s autopkgtest [11:19:54]: updating testbed package index (apt update) 316s Get:1 http://ftpmaster.internal/ubuntu resolute-proposed InRelease [124 kB] 316s Get:2 http://ftpmaster.internal/ubuntu resolute InRelease [124 kB] 316s Get:3 http://ftpmaster.internal/ubuntu resolute-updates InRelease [124 kB] 316s Get:4 http://ftpmaster.internal/ubuntu resolute-security InRelease [124 kB] 317s Get:5 http://ftpmaster.internal/ubuntu resolute-proposed/multiverse Sources [35.1 kB] 317s Get:6 http://ftpmaster.internal/ubuntu resolute-proposed/main Sources [196 kB] 317s Get:7 http://ftpmaster.internal/ubuntu resolute-proposed/restricted Sources [10.7 kB] 317s Get:8 http://ftpmaster.internal/ubuntu resolute-proposed/universe Sources [1608 kB] 317s Get:9 http://ftpmaster.internal/ubuntu resolute-proposed/main armhf Packages [231 kB] 317s Get:10 http://ftpmaster.internal/ubuntu resolute-proposed/universe armhf Packages [1358 kB] 317s Get:11 http://ftpmaster.internal/ubuntu resolute-proposed/multiverse armhf Packages [9992 B] 317s Get:12 http://ftpmaster.internal/ubuntu resolute/multiverse Sources [311 kB] 317s Get:13 http://ftpmaster.internal/ubuntu resolute/main Sources [1412 kB] 317s Get:14 http://ftpmaster.internal/ubuntu resolute/universe Sources [21.3 MB] 318s Get:15 http://ftpmaster.internal/ubuntu resolute/main armhf Packages [1374 kB] 318s Get:16 http://ftpmaster.internal/ubuntu resolute/universe armhf Packages [14.9 MB] 318s Get:17 http://ftpmaster.internal/ubuntu resolute/multiverse armhf Packages [177 kB] 321s Fetched 43.4 MB in 5s (7938 kB/s) 323s Reading package lists... 329s autopkgtest [11:20:09]: upgrading testbed (apt dist-upgrade and autopurge) 331s Reading package lists... 332s Building dependency tree... 332s Reading state information... 332s Calculating upgrade... 333s The following packages will be upgraded: 333s 3cpio distro-info libevent-core-2.1-7t64 libpcap0.8t64 333s 4 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 333s Need to get 515 kB of archives. 333s After this operation, 0 B of additional disk space will be used. 333s Get:1 http://ftpmaster.internal/ubuntu resolute/main armhf distro-info armhf 1.14build1 [19.3 kB] 334s Get:2 http://ftpmaster.internal/ubuntu resolute/main armhf libpcap0.8t64 armhf 1.10.5-2ubuntu3 [140 kB] 334s Get:3 http://ftpmaster.internal/ubuntu resolute/main armhf 3cpio armhf 0.14.0-1ubuntu1 [271 kB] 334s Get:4 http://ftpmaster.internal/ubuntu resolute/main armhf libevent-core-2.1-7t64 armhf 2.1.12-stable-10build2 [84.9 kB] 335s Fetched 515 kB in 1s (879 kB/s) 335s (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 ... 68506 files and directories currently installed.) 335s Preparing to unpack .../distro-info_1.14build1_armhf.deb ... 335s Unpacking distro-info (1.14build1) over (1.14) ... 335s Preparing to unpack .../libpcap0.8t64_1.10.5-2ubuntu3_armhf.deb ... 335s Unpacking libpcap0.8t64:armhf (1.10.5-2ubuntu3) over (1.10.5-2ubuntu2) ... 335s Preparing to unpack .../3cpio_0.14.0-1ubuntu1_armhf.deb ... 335s Unpacking 3cpio (0.14.0-1ubuntu1) over (0.13.1-1ubuntu1) ... 335s Preparing to unpack .../libevent-core-2.1-7t64_2.1.12-stable-10build2_armhf.deb ... 335s Unpacking libevent-core-2.1-7t64:armhf (2.1.12-stable-10build2) over (2.1.12-stable-10build1) ... 335s Setting up distro-info (1.14build1) ... 335s Setting up 3cpio (0.14.0-1ubuntu1) ... 335s Setting up libpcap0.8t64:armhf (1.10.5-2ubuntu3) ... 335s Setting up libevent-core-2.1-7t64:armhf (2.1.12-stable-10build2) ... 335s Processing triggers for man-db (2.13.1-1) ... 336s Processing triggers for libc-bin (2.42-2ubuntu4) ... 338s Reading package lists... 339s Building dependency tree... 339s Reading state information... 339s Solving dependencies... 340s 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 342s autopkgtest [11:20:22]: rebooting testbed after setup commands that affected boot 408s Reading package lists... 409s Building dependency tree... 409s Reading state information... 409s Solving dependencies... 410s The following NEW packages will be installed: 410s gir1.2-glib-2.0-dev girepository-tools native-architecture 410s 0 upgraded, 3 newly installed, 0 to remove and 0 not upgraded. 410s Need to get 977 kB of archives. 410s After this operation, 12.3 MB of additional disk space will be used. 410s Get:1 http://ftpmaster.internal/ubuntu resolute/main armhf gir1.2-glib-2.0-dev armhf 2.86.3-4 [865 kB] 412s Get:2 http://ftpmaster.internal/ubuntu resolute/main armhf native-architecture all 0.2.6build1 [2256 B] 412s Get:3 http://ftpmaster.internal/ubuntu resolute/main armhf girepository-tools armhf 2.86.3-4 [109 kB] 412s Fetched 977 kB in 1s (745 kB/s) 412s Selecting previously unselected package gir1.2-glib-2.0-dev:armhf. 412s (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 ... 68506 files and directories currently installed.) 412s Preparing to unpack .../gir1.2-glib-2.0-dev_2.86.3-4_armhf.deb ... 412s Unpacking gir1.2-glib-2.0-dev:armhf (2.86.3-4) ... 412s Selecting previously unselected package native-architecture. 412s Preparing to unpack .../native-architecture_0.2.6build1_all.deb ... 412s Unpacking native-architecture (0.2.6build1) ... 412s Selecting previously unselected package girepository-tools:armhf. 412s Preparing to unpack .../girepository-tools_2.86.3-4_armhf.deb ... 412s Unpacking girepository-tools:armhf (2.86.3-4) ... 412s Setting up native-architecture (0.2.6build1) ... 412s Setting up gir1.2-glib-2.0-dev:armhf (2.86.3-4) ... 412s Setting up girepository-tools:armhf (2.86.3-4) ... 412s Processing triggers for man-db (2.13.1-1) ... 437s autopkgtest [11:21:57]: test girepository-tools: [----------------------- 439s + cd /tmp/autopkgtest.IRmvvB/autopkgtest_tmp 439s + dpkg-architecture -qDEB_HOST_GNU_TYPE 439s dpkg-architecture: warning: cannot determine CC system type, falling back to default (native compilation) 439s + DEB_HOST_GNU_TYPE=arm-linux-gnueabihf 439s + dpkg-architecture -qDEB_HOST_MULTIARCH 439s dpkg-architecture: warning: cannot determine CC system type, falling back to default (native compilation) 439s + DEB_HOST_MULTIARCH=arm-linux-gnueabihf 439s + arm-linux-gnueabihf-gi-inspect-typelib --print-typelibs --typelib-version=2.0 GObject 439s typelib: GLib-2.0 439s + arm-linux-gnueabihf-gi-compile-repository -o GLib.typelib /usr/lib/arm-linux-gnueabihf/gir-1.0/GLib-2.0.gir 439s + arm-linux-gnueabihf-gi-decompile-typelib -o GLib.gir GLib.typelib 440s autopkgtest [11:22:00]: test girepository-tools: -----------------------] 444s autopkgtest [11:22:04]: test girepository-tools: - - - - - - - - - - results - - - - - - - - - - 444s girepository-tools PASS (superficial) 448s autopkgtest [11:22:08]: test libgio-2.0-dev-bin: preparing testbed 471s autopkgtest [11:22:31]: testbed dpkg architecture: armhf 473s autopkgtest [11:22:33]: testbed apt version: 3.1.15 476s autopkgtest [11:22:36]: @@@@@@@@@@@@@@@@@@@@ test bed setup 478s autopkgtest [11:22:38]: testbed release detected to be: resolute 486s autopkgtest [11:22:46]: updating testbed package index (apt update) 488s Get:1 http://ftpmaster.internal/ubuntu resolute-proposed InRelease [124 kB] 488s Get:2 http://ftpmaster.internal/ubuntu resolute InRelease [124 kB] 488s Get:3 http://ftpmaster.internal/ubuntu resolute-updates InRelease [124 kB] 488s Get:4 http://ftpmaster.internal/ubuntu resolute-security InRelease [124 kB] 488s Get:5 http://ftpmaster.internal/ubuntu resolute-proposed/restricted Sources [10.7 kB] 488s Get:6 http://ftpmaster.internal/ubuntu resolute-proposed/main Sources [196 kB] 488s Get:7 http://ftpmaster.internal/ubuntu resolute-proposed/universe Sources [1608 kB] 488s Get:8 http://ftpmaster.internal/ubuntu resolute-proposed/multiverse Sources [35.1 kB] 488s Get:9 http://ftpmaster.internal/ubuntu resolute-proposed/main armhf Packages [231 kB] 488s Get:10 http://ftpmaster.internal/ubuntu resolute-proposed/universe armhf Packages [1358 kB] 488s Get:11 http://ftpmaster.internal/ubuntu resolute-proposed/multiverse armhf Packages [9992 B] 488s Get:12 http://ftpmaster.internal/ubuntu resolute/multiverse Sources [311 kB] 488s Get:13 http://ftpmaster.internal/ubuntu resolute/universe Sources [21.3 MB] 489s Get:14 http://ftpmaster.internal/ubuntu resolute/main Sources [1412 kB] 489s Get:15 http://ftpmaster.internal/ubuntu resolute/main armhf Packages [1374 kB] 489s Get:16 http://ftpmaster.internal/ubuntu resolute/universe armhf Packages [14.9 MB] 489s Get:17 http://ftpmaster.internal/ubuntu resolute/multiverse armhf Packages [177 kB] 493s Fetched 43.4 MB in 6s (7851 kB/s) 495s Reading package lists... 500s autopkgtest [11:23:00]: upgrading testbed (apt dist-upgrade and autopurge) 502s Reading package lists... 502s Building dependency tree... 502s Reading state information... 503s Calculating upgrade... 504s The following packages will be upgraded: 504s 3cpio distro-info libevent-core-2.1-7t64 libpcap0.8t64 505s 4 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 505s Need to get 515 kB of archives. 505s After this operation, 0 B of additional disk space will be used. 505s Get:1 http://ftpmaster.internal/ubuntu resolute/main armhf distro-info armhf 1.14build1 [19.3 kB] 505s Get:2 http://ftpmaster.internal/ubuntu resolute/main armhf libpcap0.8t64 armhf 1.10.5-2ubuntu3 [140 kB] 505s Get:3 http://ftpmaster.internal/ubuntu resolute/main armhf 3cpio armhf 0.14.0-1ubuntu1 [271 kB] 505s Get:4 http://ftpmaster.internal/ubuntu resolute/main armhf libevent-core-2.1-7t64 armhf 2.1.12-stable-10build2 [84.9 kB] 506s Fetched 515 kB in 1s (1011 kB/s) 506s (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 ... 68506 files and directories currently installed.) 506s Preparing to unpack .../distro-info_1.14build1_armhf.deb ... 506s Unpacking distro-info (1.14build1) over (1.14) ... 506s Preparing to unpack .../libpcap0.8t64_1.10.5-2ubuntu3_armhf.deb ... 506s Unpacking libpcap0.8t64:armhf (1.10.5-2ubuntu3) over (1.10.5-2ubuntu2) ... 506s Preparing to unpack .../3cpio_0.14.0-1ubuntu1_armhf.deb ... 506s Unpacking 3cpio (0.14.0-1ubuntu1) over (0.13.1-1ubuntu1) ... 506s Preparing to unpack .../libevent-core-2.1-7t64_2.1.12-stable-10build2_armhf.deb ... 506s Unpacking libevent-core-2.1-7t64:armhf (2.1.12-stable-10build2) over (2.1.12-stable-10build1) ... 506s Setting up distro-info (1.14build1) ... 506s Setting up 3cpio (0.14.0-1ubuntu1) ... 506s Setting up libpcap0.8t64:armhf (1.10.5-2ubuntu3) ... 506s Setting up libevent-core-2.1-7t64:armhf (2.1.12-stable-10build2) ... 506s Processing triggers for man-db (2.13.1-1) ... 507s Processing triggers for libc-bin (2.42-2ubuntu4) ... 509s Reading package lists... 510s Building dependency tree... 510s Reading state information... 510s Solving dependencies... 511s 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 514s autopkgtest [11:23:14]: rebooting testbed after setup commands that affected boot 578s Reading package lists... 578s Building dependency tree... 578s Reading state information... 578s Solving dependencies... 579s The following NEW packages will be installed: 579s libgio-2.0-dev-bin 579s 0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded. 579s Need to get 130 kB of archives. 579s After this operation, 819 kB of additional disk space will be used. 579s Get:1 http://ftpmaster.internal/ubuntu resolute/main armhf libgio-2.0-dev-bin armhf 2.86.3-4 [130 kB] 580s Fetched 130 kB in 0s (261 kB/s) 580s Selecting previously unselected package libgio-2.0-dev-bin. 580s (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 ... 68506 files and directories currently installed.) 580s Preparing to unpack .../libgio-2.0-dev-bin_2.86.3-4_armhf.deb ... 580s Unpacking libgio-2.0-dev-bin (2.86.3-4) ... 581s Setting up libgio-2.0-dev-bin (2.86.3-4) ... 581s Processing triggers for man-db (2.13.1-1) ... 602s autopkgtest [11:24:42]: test libgio-2.0-dev-bin: [----------------------- 604s + gdbus-codegen --help 604s usage: gdbus-codegen [-h] [--interface-prefix PREFIX] 604s [--c-namespace NAMESPACE] [--c-generate-object-manager] 604s [--c-generate-autocleanup {none,objects,all}] 604s [--generate-docbook OUTFILES] [--generate-md OUTFILES] 604s [--generate-rst OUTFILES] [--pragma-once] 604s [--annotate WHAT KEY VALUE WHAT KEY VALUE WHAT KEY VALUE] 604s [--glib-min-required VERSION] 604s [--glib-max-allowed VERSION] 604s [--symbol-decorator SYMBOL_DECORATOR] 604s [--symbol-decorator-header SYMBOL_DECORATOR_HEADER] 604s [--symbol-decorator-define SYMBOL_DECORATOR_DEFINE] 604s [--generate-c-code OUTFILES | --header | --body | 604s --interface-info-header | --interface-info-body] 604s [--output FILE | --output-directory OUTDIR] 604s FILE [FILE ...] 604s 604s D-Bus code and documentation generator 604s 604s positional arguments: 604s FILE D-Bus introspection XML file 604s 604s options: 604s -h, --help show this help message and exit 604s --interface-prefix PREFIX 604s String to strip from D-Bus interface names for code 604s and docs 604s --c-namespace NAMESPACE 604s The namespace to use for generated C code 604s --c-generate-object-manager 604s Generate a GDBusObjectManagerClient subclass when 604s generating C code 604s --c-generate-autocleanup {none,objects,all} 604s Generate autocleanup support 604s --generate-docbook OUTFILES 604s Generate Docbook in OUTFILES-org.Project.IFace.xml 604s --generate-md OUTFILES 604s Generate Markdown in OUTFILES-org.Project.IFace.md 604s --generate-rst OUTFILES 604s Generate reStructuredText in OUTFILES- 604s org.Project.IFace.rst 604s --pragma-once Use "pragma once" as the inclusion guard 604s --annotate WHAT KEY VALUE WHAT KEY VALUE WHAT KEY VALUE 604s Add annotation (may be used several times) 604s --glib-min-required VERSION 604s Minimum version of GLib to be supported by the 604s outputted code (default: 2.30) 604s --glib-max-allowed VERSION 604s Maximum version of GLib to be used by the outputted 604s code (default: current GLib version) 604s --symbol-decorator SYMBOL_DECORATOR 604s Macro used to decorate a symbol in the outputted 604s header, possibly to export symbols 604s --symbol-decorator-header SYMBOL_DECORATOR_HEADER 604s Additional header required for decorator specified by 604s --symbol-decorator 604s --symbol-decorator-define SYMBOL_DECORATOR_DEFINE 604s Additional define required for decorator specified by 604s --symbol-decorator 604s --generate-c-code OUTFILES 604s Generate C code in OUTFILES.[ch] 604s --header Generate C headers 604s --body Generate C code 604s --interface-info-header 604s Generate GDBusInterfaceInfo C header 604s --interface-info-body 604s Generate GDBusInterfaceInfo C code 604s --output FILE Write output into the specified file 604s --output-directory OUTDIR 604s Location to output generated files 604s + glib-compile-resources --version 604s 2.86.3 604s + glib-genmarshal --version 604s glib-genmarshal version 2.86.3 604s glib-genmarshal comes with ABSOLUTELY NO WARRANTY. 604s You may redistribute copies of glib-genmarshal under the terms of 604s the GNU General Public License which can be found in the 604s GLib source package. Sources, examples and contact 604s information are available at http://www.gtk.org 604s + glib-gettextize --version 604s /usr/bin/glib-gettextize (GNU glib) 2.86.3 604s Copyright (C) 1995-1998, 2000, 2001 Free Software Foundation, Inc. 604s This is free software; see the source for copying conditions. There is NO 604s warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 604s Written by Ulrich Drepper 604s + glib-mkenums --version 604s glib-mkenums version 2.86.3 604s glib-mkenums comes with ABSOLUTELY NO WARRANTY. 604s You may redistribute copies of glib-mkenums under the terms of 604s the GNU General Public License which can be found in the 604s GLib source package. Sources, examples and contact 604s information are available at http://www.gtk.org 604s + gobject-query tree 604s + gtester --version 604s GObject 604s gtester version 2.86.3 604s + gtester-report --version 604s gtester-report (GLib utils) version 2.86.3. 605s autopkgtest [11:24:45]: test libgio-2.0-dev-bin: -----------------------] 608s libgio-2.0-dev-bin PASS (superficial) 608s autopkgtest [11:24:48]: test libgio-2.0-dev-bin: - - - - - - - - - - results - - - - - - - - - - 612s autopkgtest [11:24:52]: test libglib2.0-dev: preparing testbed 635s autopkgtest [11:25:15]: testbed dpkg architecture: armhf 637s autopkgtest [11:25:17]: testbed apt version: 3.1.15 640s autopkgtest [11:25:20]: @@@@@@@@@@@@@@@@@@@@ test bed setup 642s autopkgtest [11:25:22]: testbed release detected to be: resolute 649s autopkgtest [11:25:29]: updating testbed package index (apt update) 651s Get:1 http://ftpmaster.internal/ubuntu resolute-proposed InRelease [124 kB] 652s Get:2 http://ftpmaster.internal/ubuntu resolute InRelease [124 kB] 652s Get:3 http://ftpmaster.internal/ubuntu resolute-updates InRelease [124 kB] 652s Get:4 http://ftpmaster.internal/ubuntu resolute-security InRelease [124 kB] 652s Get:5 http://ftpmaster.internal/ubuntu resolute-proposed/universe Sources [1608 kB] 652s Get:6 http://ftpmaster.internal/ubuntu resolute-proposed/restricted Sources [10.7 kB] 652s Get:7 http://ftpmaster.internal/ubuntu resolute-proposed/multiverse Sources [35.1 kB] 652s Get:8 http://ftpmaster.internal/ubuntu resolute-proposed/main Sources [196 kB] 652s Get:9 http://ftpmaster.internal/ubuntu resolute-proposed/main armhf Packages [231 kB] 652s Get:10 http://ftpmaster.internal/ubuntu resolute-proposed/universe armhf Packages [1358 kB] 652s Get:11 http://ftpmaster.internal/ubuntu resolute-proposed/multiverse armhf Packages [9992 B] 652s Get:12 http://ftpmaster.internal/ubuntu resolute/multiverse Sources [311 kB] 652s Get:13 http://ftpmaster.internal/ubuntu resolute/universe Sources [21.3 MB] 653s Get:14 http://ftpmaster.internal/ubuntu resolute/main Sources [1412 kB] 653s Get:15 http://ftpmaster.internal/ubuntu resolute/main armhf Packages [1374 kB] 653s Get:16 http://ftpmaster.internal/ubuntu resolute/universe armhf Packages [14.9 MB] 653s Get:17 http://ftpmaster.internal/ubuntu resolute/multiverse armhf Packages [177 kB] 657s Fetched 43.4 MB in 5s (7981 kB/s) 658s Reading package lists... 664s autopkgtest [11:25:44]: upgrading testbed (apt dist-upgrade and autopurge) 666s Reading package lists... 666s Building dependency tree... 666s Reading state information... 667s Calculating upgrade... 668s The following packages will be upgraded: 668s 3cpio distro-info libevent-core-2.1-7t64 libpcap0.8t64 668s 4 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 668s Need to get 515 kB of archives. 668s After this operation, 0 B of additional disk space will be used. 668s Get:1 http://ftpmaster.internal/ubuntu resolute/main armhf distro-info armhf 1.14build1 [19.3 kB] 668s Get:2 http://ftpmaster.internal/ubuntu resolute/main armhf libpcap0.8t64 armhf 1.10.5-2ubuntu3 [140 kB] 668s Get:3 http://ftpmaster.internal/ubuntu resolute/main armhf 3cpio armhf 0.14.0-1ubuntu1 [271 kB] 668s Get:4 http://ftpmaster.internal/ubuntu resolute/main armhf libevent-core-2.1-7t64 armhf 2.1.12-stable-10build2 [84.9 kB] 669s Fetched 515 kB in 1s (935 kB/s) 669s (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 ... 68506 files and directories currently installed.) 669s Preparing to unpack .../distro-info_1.14build1_armhf.deb ... 669s Unpacking distro-info (1.14build1) over (1.14) ... 669s Preparing to unpack .../libpcap0.8t64_1.10.5-2ubuntu3_armhf.deb ... 669s Unpacking libpcap0.8t64:armhf (1.10.5-2ubuntu3) over (1.10.5-2ubuntu2) ... 670s Preparing to unpack .../3cpio_0.14.0-1ubuntu1_armhf.deb ... 670s Unpacking 3cpio (0.14.0-1ubuntu1) over (0.13.1-1ubuntu1) ... 670s Preparing to unpack .../libevent-core-2.1-7t64_2.1.12-stable-10build2_armhf.deb ... 670s Unpacking libevent-core-2.1-7t64:armhf (2.1.12-stable-10build2) over (2.1.12-stable-10build1) ... 670s Setting up distro-info (1.14build1) ... 670s Setting up 3cpio (0.14.0-1ubuntu1) ... 670s Setting up libpcap0.8t64:armhf (1.10.5-2ubuntu3) ... 670s Setting up libevent-core-2.1-7t64:armhf (2.1.12-stable-10build2) ... 670s Processing triggers for man-db (2.13.1-1) ... 671s Processing triggers for libc-bin (2.42-2ubuntu4) ... 673s Reading package lists... 674s Building dependency tree... 674s Reading state information... 674s Solving dependencies... 675s 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 677s autopkgtest [11:25:57]: rebooting testbed after setup commands that affected boot 741s Reading package lists... 742s Building dependency tree... 742s Reading state information... 742s Solving dependencies... 743s The following NEW packages will be installed: 743s build-essential cpp cpp-15 cpp-15-arm-linux-gnueabihf 743s cpp-arm-linux-gnueabihf g++ g++-15 g++-15-arm-linux-gnueabihf 743s g++-arm-linux-gnueabihf gcc gcc-15 gcc-15-arm-linux-gnueabihf 743s gcc-arm-linux-gnueabihf gir1.2-glib-2.0-dev girepository-tools libasan8 743s libblkid-dev libc-dev-bin libc6-dev libcc1-0 libcrypt-dev libffi-dev 743s libgcc-15-dev libgio-2.0-dev libgio-2.0-dev-bin libglib2.0-bin 743s libglib2.0-dev libglib2.0-dev-bin libgomp1 libisl23 libmount-dev libmpc3 743s libpcre2-16-0 libpcre2-32-0 libpcre2-dev libpcre2-posix3 libpkgconf7 743s libselinux-dev libsepol-dev libstdc++-15-dev libsysprof-capture-4-dev 743s libubsan1 linux-libc-dev native-architecture pkgconf pkgconf-bin 743s rpcsvc-proto uuid-dev zlib1g-dev 743s 0 upgraded, 49 newly installed, 0 to remove and 0 not upgraded. 743s Need to get 59.5 MB of archives. 743s After this operation, 183 MB of additional disk space will be used. 743s Get:1 http://ftpmaster.internal/ubuntu resolute/main armhf libc-dev-bin armhf 2.42-2ubuntu4 [21.8 kB] 743s Get:2 http://ftpmaster.internal/ubuntu resolute/main armhf linux-libc-dev armhf 6.18.0-9.9 [1819 kB] 744s Get:3 http://ftpmaster.internal/ubuntu resolute/main armhf libcrypt-dev armhf 1:4.5.1-1 [128 kB] 744s Get:4 http://ftpmaster.internal/ubuntu resolute/main armhf rpcsvc-proto armhf 1.4.3-1build1 [62.6 kB] 744s Get:5 http://ftpmaster.internal/ubuntu resolute/main armhf libc6-dev armhf 2.42-2ubuntu4 [1416 kB] 744s Get:6 http://ftpmaster.internal/ubuntu resolute/main armhf libisl23 armhf 0.27-1build1 [553 kB] 744s Get:7 http://ftpmaster.internal/ubuntu resolute/main armhf libmpc3 armhf 1.3.1-2 [47.0 kB] 744s Get:8 http://ftpmaster.internal/ubuntu resolute/main armhf cpp-15-arm-linux-gnueabihf armhf 15.2.0-12ubuntu1 [10.1 MB] 744s Get:9 http://ftpmaster.internal/ubuntu resolute/main armhf cpp-15 armhf 15.2.0-12ubuntu1 [1032 B] 744s Get:10 http://ftpmaster.internal/ubuntu resolute/main armhf cpp-arm-linux-gnueabihf armhf 4:15.2.0-4ubuntu1 [5756 B] 744s Get:11 http://ftpmaster.internal/ubuntu resolute/main armhf cpp armhf 4:15.2.0-4ubuntu1 [22.4 kB] 744s Get:12 http://ftpmaster.internal/ubuntu resolute/main armhf libcc1-0 armhf 15.2.0-12ubuntu1 [43.5 kB] 744s Get:13 http://ftpmaster.internal/ubuntu resolute/main armhf libgomp1 armhf 15.2.0-12ubuntu1 [129 kB] 744s Get:14 http://ftpmaster.internal/ubuntu resolute/main armhf libasan8 armhf 15.2.0-12ubuntu1 [2949 kB] 744s Get:15 http://ftpmaster.internal/ubuntu resolute/main armhf libubsan1 armhf 15.2.0-12ubuntu1 [1187 kB] 744s Get:16 http://ftpmaster.internal/ubuntu resolute/main armhf libgcc-15-dev armhf 15.2.0-12ubuntu1 [898 kB] 744s Get:17 http://ftpmaster.internal/ubuntu resolute/main armhf gcc-15-arm-linux-gnueabihf armhf 15.2.0-12ubuntu1 [19.5 MB] 745s Get:18 http://ftpmaster.internal/ubuntu resolute/main armhf gcc-15 armhf 15.2.0-12ubuntu1 [499 kB] 745s Get:19 http://ftpmaster.internal/ubuntu resolute/main armhf gcc-arm-linux-gnueabihf armhf 4:15.2.0-4ubuntu1 [1220 B] 745s Get:20 http://ftpmaster.internal/ubuntu resolute/main armhf gcc armhf 4:15.2.0-4ubuntu1 [5022 B] 745s Get:21 http://ftpmaster.internal/ubuntu resolute/main armhf libstdc++-15-dev armhf 15.2.0-12ubuntu1 [2638 kB] 745s Get:22 http://ftpmaster.internal/ubuntu resolute/main armhf g++-15-arm-linux-gnueabihf armhf 15.2.0-12ubuntu1 [11.4 MB] 745s Get:23 http://ftpmaster.internal/ubuntu resolute/main armhf g++-15 armhf 15.2.0-12ubuntu1 [25.3 kB] 745s Get:24 http://ftpmaster.internal/ubuntu resolute/main armhf g++-arm-linux-gnueabihf armhf 4:15.2.0-4ubuntu1 [968 B] 745s Get:25 http://ftpmaster.internal/ubuntu resolute/main armhf g++ armhf 4:15.2.0-4ubuntu1 [1086 B] 745s Get:26 http://ftpmaster.internal/ubuntu resolute/main armhf build-essential armhf 12.12ubuntu2 [5256 B] 745s Get:27 http://ftpmaster.internal/ubuntu resolute/main armhf gir1.2-glib-2.0-dev armhf 2.86.3-4 [865 kB] 745s Get:28 http://ftpmaster.internal/ubuntu resolute/main armhf native-architecture all 0.2.6build1 [2256 B] 745s Get:29 http://ftpmaster.internal/ubuntu resolute/main armhf girepository-tools armhf 2.86.3-4 [109 kB] 745s Get:30 http://ftpmaster.internal/ubuntu resolute/main armhf libffi-dev armhf 3.5.2-3 [60.5 kB] 745s Get:31 http://ftpmaster.internal/ubuntu resolute/main armhf uuid-dev armhf 2.41.2-4ubuntu2 [55.6 kB] 745s Get:32 http://ftpmaster.internal/ubuntu resolute/main armhf libblkid-dev armhf 2.41.2-4ubuntu2 [224 kB] 745s Get:33 http://ftpmaster.internal/ubuntu resolute/main armhf libsepol-dev armhf 3.9-2 [384 kB] 745s Get:34 http://ftpmaster.internal/ubuntu resolute/main armhf libpcre2-16-0 armhf 10.46-1 [206 kB] 745s Get:35 http://ftpmaster.internal/ubuntu resolute/main armhf libpcre2-32-0 armhf 10.46-1 [197 kB] 745s Get:36 http://ftpmaster.internal/ubuntu resolute/main armhf libpcre2-posix3 armhf 10.46-1 [6286 B] 745s Get:37 http://ftpmaster.internal/ubuntu resolute/main armhf libpcre2-dev armhf 10.46-1 [744 kB] 745s Get:38 http://ftpmaster.internal/ubuntu resolute/main armhf libselinux-dev armhf 3.9-4 [169 kB] 745s Get:39 http://ftpmaster.internal/ubuntu resolute/main armhf libmount-dev armhf 2.41.2-4ubuntu2 [37.6 kB] 745s Get:40 http://ftpmaster.internal/ubuntu resolute/main armhf libsysprof-capture-4-dev armhf 49.0-5 [49.3 kB] 745s Get:41 http://ftpmaster.internal/ubuntu resolute-proposed/main armhf libpkgconf7 armhf 2.5.1-2 [32.7 kB] 745s Get:42 http://ftpmaster.internal/ubuntu resolute-proposed/main armhf pkgconf-bin armhf 2.5.1-2 [23.2 kB] 745s Get:43 http://ftpmaster.internal/ubuntu resolute-proposed/main armhf pkgconf armhf 2.5.1-2 [20.0 kB] 745s Get:44 http://ftpmaster.internal/ubuntu resolute/main armhf zlib1g-dev armhf 1:1.3.dfsg+really1.3.1-1ubuntu2 [881 kB] 745s Get:45 http://ftpmaster.internal/ubuntu resolute/main armhf libgio-2.0-dev armhf 2.86.3-4 [1731 kB] 745s Get:46 http://ftpmaster.internal/ubuntu resolute/main armhf libgio-2.0-dev-bin armhf 2.86.3-4 [130 kB] 745s Get:47 http://ftpmaster.internal/ubuntu resolute/main armhf libglib2.0-bin armhf 2.86.3-4 [92.4 kB] 745s Get:48 http://ftpmaster.internal/ubuntu resolute/main armhf libglib2.0-dev-bin armhf 2.86.3-4 [18.2 kB] 745s Get:49 http://ftpmaster.internal/ubuntu resolute/main armhf libglib2.0-dev armhf 2.86.3-4 [18.9 kB] 746s Fetched 59.5 MB in 2s (25.4 MB/s) 746s Selecting previously unselected package libc-dev-bin. 746s (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 ... 68506 files and directories currently installed.) 746s Preparing to unpack .../00-libc-dev-bin_2.42-2ubuntu4_armhf.deb ... 746s Unpacking libc-dev-bin (2.42-2ubuntu4) ... 746s Selecting previously unselected package linux-libc-dev:armhf. 746s Preparing to unpack .../01-linux-libc-dev_6.18.0-9.9_armhf.deb ... 746s Unpacking linux-libc-dev:armhf (6.18.0-9.9) ... 747s Selecting previously unselected package libcrypt-dev:armhf. 747s Preparing to unpack .../02-libcrypt-dev_1%3a4.5.1-1_armhf.deb ... 747s Unpacking libcrypt-dev:armhf (1:4.5.1-1) ... 747s Selecting previously unselected package rpcsvc-proto. 747s Preparing to unpack .../03-rpcsvc-proto_1.4.3-1build1_armhf.deb ... 747s Unpacking rpcsvc-proto (1.4.3-1build1) ... 747s Selecting previously unselected package libc6-dev:armhf. 747s Preparing to unpack .../04-libc6-dev_2.42-2ubuntu4_armhf.deb ... 747s Unpacking libc6-dev:armhf (2.42-2ubuntu4) ... 747s Selecting previously unselected package libisl23:armhf. 747s Preparing to unpack .../05-libisl23_0.27-1build1_armhf.deb ... 747s Unpacking libisl23:armhf (0.27-1build1) ... 747s Selecting previously unselected package libmpc3:armhf. 747s Preparing to unpack .../06-libmpc3_1.3.1-2_armhf.deb ... 747s Unpacking libmpc3:armhf (1.3.1-2) ... 747s Selecting previously unselected package cpp-15-arm-linux-gnueabihf. 747s Preparing to unpack .../07-cpp-15-arm-linux-gnueabihf_15.2.0-12ubuntu1_armhf.deb ... 747s Unpacking cpp-15-arm-linux-gnueabihf (15.2.0-12ubuntu1) ... 747s Selecting previously unselected package cpp-15. 747s Preparing to unpack .../08-cpp-15_15.2.0-12ubuntu1_armhf.deb ... 747s Unpacking cpp-15 (15.2.0-12ubuntu1) ... 747s Selecting previously unselected package cpp-arm-linux-gnueabihf. 747s Preparing to unpack .../09-cpp-arm-linux-gnueabihf_4%3a15.2.0-4ubuntu1_armhf.deb ... 747s Unpacking cpp-arm-linux-gnueabihf (4:15.2.0-4ubuntu1) ... 747s Selecting previously unselected package cpp. 747s Preparing to unpack .../10-cpp_4%3a15.2.0-4ubuntu1_armhf.deb ... 748s Unpacking cpp (4:15.2.0-4ubuntu1) ... 748s Selecting previously unselected package libcc1-0:armhf. 748s Preparing to unpack .../11-libcc1-0_15.2.0-12ubuntu1_armhf.deb ... 748s Unpacking libcc1-0:armhf (15.2.0-12ubuntu1) ... 748s Selecting previously unselected package libgomp1:armhf. 748s Preparing to unpack .../12-libgomp1_15.2.0-12ubuntu1_armhf.deb ... 748s Unpacking libgomp1:armhf (15.2.0-12ubuntu1) ... 748s Selecting previously unselected package libasan8:armhf. 748s Preparing to unpack .../13-libasan8_15.2.0-12ubuntu1_armhf.deb ... 748s Unpacking libasan8:armhf (15.2.0-12ubuntu1) ... 748s Selecting previously unselected package libubsan1:armhf. 748s Preparing to unpack .../14-libubsan1_15.2.0-12ubuntu1_armhf.deb ... 748s Unpacking libubsan1:armhf (15.2.0-12ubuntu1) ... 748s Selecting previously unselected package libgcc-15-dev:armhf. 748s Preparing to unpack .../15-libgcc-15-dev_15.2.0-12ubuntu1_armhf.deb ... 748s Unpacking libgcc-15-dev:armhf (15.2.0-12ubuntu1) ... 749s Selecting previously unselected package gcc-15-arm-linux-gnueabihf. 749s Preparing to unpack .../16-gcc-15-arm-linux-gnueabihf_15.2.0-12ubuntu1_armhf.deb ... 749s Unpacking gcc-15-arm-linux-gnueabihf (15.2.0-12ubuntu1) ... 749s Selecting previously unselected package gcc-15. 749s Preparing to unpack .../17-gcc-15_15.2.0-12ubuntu1_armhf.deb ... 749s Unpacking gcc-15 (15.2.0-12ubuntu1) ... 749s Selecting previously unselected package gcc-arm-linux-gnueabihf. 749s Preparing to unpack .../18-gcc-arm-linux-gnueabihf_4%3a15.2.0-4ubuntu1_armhf.deb ... 749s Unpacking gcc-arm-linux-gnueabihf (4:15.2.0-4ubuntu1) ... 749s Selecting previously unselected package gcc. 749s Preparing to unpack .../19-gcc_4%3a15.2.0-4ubuntu1_armhf.deb ... 749s Unpacking gcc (4:15.2.0-4ubuntu1) ... 749s Selecting previously unselected package libstdc++-15-dev:armhf. 749s Preparing to unpack .../20-libstdc++-15-dev_15.2.0-12ubuntu1_armhf.deb ... 749s Unpacking libstdc++-15-dev:armhf (15.2.0-12ubuntu1) ... 749s Selecting previously unselected package g++-15-arm-linux-gnueabihf. 749s Preparing to unpack .../21-g++-15-arm-linux-gnueabihf_15.2.0-12ubuntu1_armhf.deb ... 749s Unpacking g++-15-arm-linux-gnueabihf (15.2.0-12ubuntu1) ... 749s Selecting previously unselected package g++-15. 749s Preparing to unpack .../22-g++-15_15.2.0-12ubuntu1_armhf.deb ... 749s Unpacking g++-15 (15.2.0-12ubuntu1) ... 749s Selecting previously unselected package g++-arm-linux-gnueabihf. 750s Preparing to unpack .../23-g++-arm-linux-gnueabihf_4%3a15.2.0-4ubuntu1_armhf.deb ... 750s Unpacking g++-arm-linux-gnueabihf (4:15.2.0-4ubuntu1) ... 750s Selecting previously unselected package g++. 750s Preparing to unpack .../24-g++_4%3a15.2.0-4ubuntu1_armhf.deb ... 750s Unpacking g++ (4:15.2.0-4ubuntu1) ... 750s Selecting previously unselected package build-essential. 750s Preparing to unpack .../25-build-essential_12.12ubuntu2_armhf.deb ... 750s Unpacking build-essential (12.12ubuntu2) ... 750s Selecting previously unselected package gir1.2-glib-2.0-dev:armhf. 750s Preparing to unpack .../26-gir1.2-glib-2.0-dev_2.86.3-4_armhf.deb ... 750s Unpacking gir1.2-glib-2.0-dev:armhf (2.86.3-4) ... 750s Selecting previously unselected package native-architecture. 750s Preparing to unpack .../27-native-architecture_0.2.6build1_all.deb ... 750s Unpacking native-architecture (0.2.6build1) ... 750s Selecting previously unselected package girepository-tools:armhf. 750s Preparing to unpack .../28-girepository-tools_2.86.3-4_armhf.deb ... 750s Unpacking girepository-tools:armhf (2.86.3-4) ... 750s Selecting previously unselected package libffi-dev:armhf. 750s Preparing to unpack .../29-libffi-dev_3.5.2-3_armhf.deb ... 750s Unpacking libffi-dev:armhf (3.5.2-3) ... 750s Selecting previously unselected package uuid-dev:armhf. 750s Preparing to unpack .../30-uuid-dev_2.41.2-4ubuntu2_armhf.deb ... 750s Unpacking uuid-dev:armhf (2.41.2-4ubuntu2) ... 750s Selecting previously unselected package libblkid-dev:armhf. 750s Preparing to unpack .../31-libblkid-dev_2.41.2-4ubuntu2_armhf.deb ... 750s Unpacking libblkid-dev:armhf (2.41.2-4ubuntu2) ... 750s Selecting previously unselected package libsepol-dev:armhf. 750s Preparing to unpack .../32-libsepol-dev_3.9-2_armhf.deb ... 750s Unpacking libsepol-dev:armhf (3.9-2) ... 750s Selecting previously unselected package libpcre2-16-0:armhf. 750s Preparing to unpack .../33-libpcre2-16-0_10.46-1_armhf.deb ... 750s Unpacking libpcre2-16-0:armhf (10.46-1) ... 750s Selecting previously unselected package libpcre2-32-0:armhf. 750s Preparing to unpack .../34-libpcre2-32-0_10.46-1_armhf.deb ... 750s Unpacking libpcre2-32-0:armhf (10.46-1) ... 750s Selecting previously unselected package libpcre2-posix3:armhf. 750s Preparing to unpack .../35-libpcre2-posix3_10.46-1_armhf.deb ... 750s Unpacking libpcre2-posix3:armhf (10.46-1) ... 750s Selecting previously unselected package libpcre2-dev:armhf. 750s Preparing to unpack .../36-libpcre2-dev_10.46-1_armhf.deb ... 750s Unpacking libpcre2-dev:armhf (10.46-1) ... 750s Selecting previously unselected package libselinux-dev:armhf. 750s Preparing to unpack .../37-libselinux-dev_3.9-4_armhf.deb ... 750s Unpacking libselinux-dev:armhf (3.9-4) ... 750s Selecting previously unselected package libmount-dev:armhf. 750s Preparing to unpack .../38-libmount-dev_2.41.2-4ubuntu2_armhf.deb ... 750s Unpacking libmount-dev:armhf (2.41.2-4ubuntu2) ... 751s Selecting previously unselected package libsysprof-capture-4-dev:armhf. 751s Preparing to unpack .../39-libsysprof-capture-4-dev_49.0-5_armhf.deb ... 751s Unpacking libsysprof-capture-4-dev:armhf (49.0-5) ... 751s Selecting previously unselected package libpkgconf7:armhf. 751s Preparing to unpack .../40-libpkgconf7_2.5.1-2_armhf.deb ... 751s Unpacking libpkgconf7:armhf (2.5.1-2) ... 751s Selecting previously unselected package pkgconf-bin. 751s Preparing to unpack .../41-pkgconf-bin_2.5.1-2_armhf.deb ... 751s Unpacking pkgconf-bin (2.5.1-2) ... 751s Selecting previously unselected package pkgconf:armhf. 751s Preparing to unpack .../42-pkgconf_2.5.1-2_armhf.deb ... 751s Unpacking pkgconf:armhf (2.5.1-2) ... 751s Selecting previously unselected package zlib1g-dev:armhf. 751s Preparing to unpack .../43-zlib1g-dev_1%3a1.3.dfsg+really1.3.1-1ubuntu2_armhf.deb ... 751s Unpacking zlib1g-dev:armhf (1:1.3.dfsg+really1.3.1-1ubuntu2) ... 751s Selecting previously unselected package libgio-2.0-dev:armhf. 751s Preparing to unpack .../44-libgio-2.0-dev_2.86.3-4_armhf.deb ... 751s Unpacking libgio-2.0-dev:armhf (2.86.3-4) ... 751s Selecting previously unselected package libgio-2.0-dev-bin. 751s Preparing to unpack .../45-libgio-2.0-dev-bin_2.86.3-4_armhf.deb ... 751s Unpacking libgio-2.0-dev-bin (2.86.3-4) ... 751s Selecting previously unselected package libglib2.0-bin. 751s Preparing to unpack .../46-libglib2.0-bin_2.86.3-4_armhf.deb ... 751s Unpacking libglib2.0-bin (2.86.3-4) ... 751s Selecting previously unselected package libglib2.0-dev-bin. 751s Preparing to unpack .../47-libglib2.0-dev-bin_2.86.3-4_armhf.deb ... 751s Unpacking libglib2.0-dev-bin (2.86.3-4) ... 751s Selecting previously unselected package libglib2.0-dev:armhf. 751s Preparing to unpack .../48-libglib2.0-dev_2.86.3-4_armhf.deb ... 751s Unpacking libglib2.0-dev:armhf (2.86.3-4) ... 751s Setting up libgio-2.0-dev-bin (2.86.3-4) ... 752s Setting up native-architecture (0.2.6build1) ... 752s Setting up libpkgconf7:armhf (2.5.1-2) ... 752s Setting up linux-libc-dev:armhf (6.18.0-9.9) ... 752s Setting up libglib2.0-bin (2.86.3-4) ... 752s Setting up libgomp1:armhf (15.2.0-12ubuntu1) ... 752s Setting up libffi-dev:armhf (3.5.2-3) ... 752s Setting up libpcre2-16-0:armhf (10.46-1) ... 752s Setting up libsysprof-capture-4-dev:armhf (49.0-5) ... 752s Setting up libpcre2-32-0:armhf (10.46-1) ... 752s Setting up rpcsvc-proto (1.4.3-1build1) ... 752s Setting up libmpc3:armhf (1.3.1-2) ... 752s Setting up libsepol-dev:armhf (3.9-2) ... 752s Setting up pkgconf-bin (2.5.1-2) ... 752s Setting up libubsan1:armhf (15.2.0-12ubuntu1) ... 752s Setting up libpcre2-posix3:armhf (10.46-1) ... 752s Setting up gir1.2-glib-2.0-dev:armhf (2.86.3-4) ... 752s Setting up libcrypt-dev:armhf (1:4.5.1-1) ... 752s Setting up libasan8:armhf (15.2.0-12ubuntu1) ... 752s Setting up libisl23:armhf (0.27-1build1) ... 752s Setting up libc-dev-bin (2.42-2ubuntu4) ... 752s Setting up cpp-15-arm-linux-gnueabihf (15.2.0-12ubuntu1) ... 752s Setting up libcc1-0:armhf (15.2.0-12ubuntu1) ... 752s Setting up cpp-arm-linux-gnueabihf (4:15.2.0-4ubuntu1) ... 752s Setting up girepository-tools:armhf (2.86.3-4) ... 752s Setting up libgcc-15-dev:armhf (15.2.0-12ubuntu1) ... 752s Setting up gcc-15-arm-linux-gnueabihf (15.2.0-12ubuntu1) ... 752s Setting up pkgconf:armhf (2.5.1-2) ... 752s Setting up cpp-15 (15.2.0-12ubuntu1) ... 752s Setting up cpp (4:15.2.0-4ubuntu1) ... 752s Setting up libc6-dev:armhf (2.42-2ubuntu4) ... 752s Setting up gcc-arm-linux-gnueabihf (4:15.2.0-4ubuntu1) ... 752s Setting up libglib2.0-dev-bin (2.86.3-4) ... 752s Setting up libpcre2-dev:armhf (10.46-1) ... 752s Setting up gcc-15 (15.2.0-12ubuntu1) ... 752s Setting up libstdc++-15-dev:armhf (15.2.0-12ubuntu1) ... 752s Setting up uuid-dev:armhf (2.41.2-4ubuntu2) ... 752s Setting up zlib1g-dev:armhf (1:1.3.dfsg+really1.3.1-1ubuntu2) ... 752s Setting up libselinux-dev:armhf (3.9-4) ... 752s Setting up libblkid-dev:armhf (2.41.2-4ubuntu2) ... 752s Setting up g++-15-arm-linux-gnueabihf (15.2.0-12ubuntu1) ... 752s Setting up gcc (4:15.2.0-4ubuntu1) ... 752s Setting up g++-15 (15.2.0-12ubuntu1) ... 752s Setting up libmount-dev:armhf (2.41.2-4ubuntu2) ... 752s Setting up g++-arm-linux-gnueabihf (4:15.2.0-4ubuntu1) ... 752s Setting up libgio-2.0-dev:armhf (2.86.3-4) ... 752s Setting up g++ (4:15.2.0-4ubuntu1) ... 752s update-alternatives: using /usr/bin/g++ to provide /usr/bin/c++ (c++) in auto mode 752s Setting up build-essential (12.12ubuntu2) ... 752s Processing triggers for install-info (7.2-5) ... 752s Processing triggers for libc-bin (2.42-2ubuntu4) ... 752s Processing triggers for man-db (2.13.1-1) ... 753s Processing triggers for libglib2.0-0t64:armhf (2.86.3-4) ... 753s No schema files found: doing nothing. 753s Setting up libglib2.0-dev:armhf (2.86.3-4) ... 775s autopkgtest [11:27:35]: test libglib2.0-dev: [----------------------- 777s + debian/tests/build 777s + mode=dynamic 777s + getopt -o --long static -n debian/tests/build -- 777s + getopt_temp= -- 777s + eval set -- -- 777s + set -- -- 777s + true 777s + shift 777s + break 777s + mktemp -d 777s + WORKDIR=/tmp/tmp.5nfzIsKtNz 777s + trap rm -rf "${WORKDIR}" 0 INT QUIT ABRT PIPE TERM 777s + cd /tmp/tmp.5nfzIsKtNz 777s + [ -n ] 777s + CROSS_COMPILE= 777s + cat 777s + cat 777s + cat 777s + cat 777s + cat 777s + cat 777s + cflags= 777s + pcflags= 777s + packages=glib-2.0 777s + pkg-config --cflags --libs glib-2.0 777s + 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 777s + echo build (glib, dynamic): OK 777s + [ -x glib-dynamic ] 777s + foo=bar ./glib-dynamic 777s build (glib, dynamic): OK 777s + echo run (glib, dynamic): OK 777s + cflags= 777s + pcflags= 777s + packages=gobject-2.0 777s run (glib, dynamic): OK 777s + pkg-config --cflags --libs gobject-2.0 777s + 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 778s build (gobject, dynamic): OK 778s + echo build (gobject, dynamic): OK 778s + [ -x gobject-dynamic ] 778s + foo=bar ./gobject-dynamic 778s + echo run (gobject, dynamic): OK 778s + cflags= 778s + pcflags= 778s + packages=gio-2.0 778s run (gobject, dynamic): OK 778s + pkg-config --cflags --libs gio-2.0 778s + 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/libmount -I/usr/include/blkid -I/usr/include/sysprof-6 -pthread -lgio-2.0 -lgobject-2.0 -lglib-2.0 778s + echo build (gio, dynamic): OK 778s + [ -x gio-dynamic ] 778s + foo=bar ./gio-dynamic 778s build (gio, dynamic): OK 778s + echo run (gio, dynamic): OK 778s + cflags= 778s + pcflags= 778s + packages=gio-unix-2.0 778s + pkg-config --cflags --libs gio-unix-2.0 778s run (gio, dynamic): OK 778s + 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/libmount -I/usr/include/blkid -I/usr/include/sysprof-6 -pthread -lgio-2.0 -lgobject-2.0 -lglib-2.0 778s build (gio-unix, dynamic): OK 778s + echo build (gio-unix, dynamic): OK 778s + [ -x gio-unix-dynamic ] 778s + foo=bar ./gio-unix-dynamic 778s + echo run (gio-unix, dynamic): OK 778s + cflags= 778s + pcflags= 778s + packages=gmodule-2.0 778s run (gio-unix, dynamic): OK 778s + pkg-config --cflags --libs gmodule-2.0 778s + 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 778s build (gmodule, dynamic): OK 778s + echo build (gmodule, dynamic): OK 778s + [ -x gmodule-dynamic ] 778s + foo=bar ./gmodule-dynamic 778s run (gmodule, dynamic): OK 778s + echo run (gmodule, dynamic): OK 778s + cflags= 778s + pcflags= 778s + packages=gthread-2.0 778s + pkg-config --cflags --libs gthread-2.0 778s + 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 779s build (gthread, dynamic): OK 779s run (gthread, dynamic): OK 779s + echo build (gthread, dynamic): OK 779s + [ -x gthread-dynamic ] 779s + foo=bar ./gthread-dynamic 779s + echo run (gthread, dynamic): OK 779s + rm -rf /tmp/tmp.5nfzIsKtNz 779s + debian/tests/build-static 779s + mode=dynamic 779s + getopt -o --long static -n debian/tests/build -- --static 779s + getopt_temp= --static -- 779s + eval set -- --static -- 779s + set -- --static -- 779s + true 779s + mode=static 779s + shift 779s + continue 779s + true 779s + shift 779s + break 779s + mktemp -d 779s + WORKDIR=/tmp/tmp.gymAJrYwMa 779s + trap rm -rf "${WORKDIR}" 0 INT QUIT ABRT PIPE TERM 779s + cd /tmp/tmp.gymAJrYwMa 779s + [ -n ] 779s + CROSS_COMPILE= 779s + cat 779s + cat 779s + cat 779s + cat 779s + cat 779s + cat 779s + cflags= 779s + pcflags= 779s + packages=glib-2.0 779s + cflags=-static 779s + pcflags=--static 779s + pkg-config --static --cflags --libs glib-2.0 779s + 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 -lsysprof-capture-4 -Wl,-z,nodelete -pthread -lpcre2-8 779s /usr/bin/arm-linux-gnueabihf-ld.bfd: /usr/lib/gcc/arm-linux-gnueabihf/15/../../../arm-linux-gnueabihf/libglib-2.0.a(gutils.c.o): in function `g_get_user_database_entry': 779s (.text+0x92): warning: Using 'getpwnam_r' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking 779s /usr/bin/arm-linux-gnueabihf-ld.bfd: (.text+0x19c): warning: Using 'getpwuid' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking 779s /usr/bin/arm-linux-gnueabihf-ld.bfd: (.text+0xba): warning: Using 'getpwuid_r' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking 779s build (glib, static): OK 779s + echo build (glib, static): OK 779s + [ -x glib-static ] 779s + foo=bar ./glib-static 779s run (glib, static): OK 779s + echo run (glib, static): OK 779s + cflags= 779s + pcflags= 779s + packages=gobject-2.0 779s + cflags=-static 779s + pcflags=--static 779s + pkg-config --static --cflags --libs gobject-2.0 779s + 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 -lsysprof-capture-4 -Wl,-z,nodelete -pthread -lpcre2-8 -lffi 779s /usr/bin/arm-linux-gnueabihf-ld.bfd: /usr/lib/gcc/arm-linux-gnueabihf/15/../../../arm-linux-gnueabihf/libglib-2.0.a(gutils.c.o): in function `g_get_user_database_entry': 779s (.text+0x92): warning: Using 'getpwnam_r' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking 779s /usr/bin/arm-linux-gnueabihf-ld.bfd: (.text+0x19c): warning: Using 'getpwuid' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking 779s /usr/bin/arm-linux-gnueabihf-ld.bfd: (.text+0xba): warning: Using 'getpwuid_r' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking 779s build (gobject, static): OK 779s + echo build (gobject, static): OK 779s + [ -x gobject-static ] 779s + foo=bar ./gobject-static 779s run (gobject, static): OK 779s + echo run (gobject, static): OK 779s + cflags= 779s + pcflags= 779s + packages=gio-2.0 779s + cflags=-static 779s + pcflags=--static 779s + continue 779s + cflags= 779s + pcflags= 779s + packages=gio-unix-2.0 779s + cflags=-static 779s + pcflags=--static 779s + continue 779s + cflags= 779s + pcflags= 779s + packages=gmodule-2.0 779s + cflags=-static 779s + pcflags=--static 779s + pkg-config --static --cflags --libs gmodule-2.0 779s + 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 -lsysprof-capture-4 -Wl,-z,nodelete -pthread -lpcre2-8 779s /usr/bin/arm-linux-gnueabihf-ld.bfd: /usr/lib/gcc/arm-linux-gnueabihf/15/../../../arm-linux-gnueabihf/libgmodule-2.0.a(gmodule.c.o): in function `g_module_open_full': 779s (.text+0x424): warning: Using 'dlopen' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking 779s /usr/bin/arm-linux-gnueabihf-ld.bfd: /usr/lib/gcc/arm-linux-gnueabihf/15/../../../arm-linux-gnueabihf/libglib-2.0.a(gutils.c.o): in function `g_get_user_database_entry': 779s (.text+0x92): warning: Using 'getpwnam_r' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking 779s /usr/bin/arm-linux-gnueabihf-ld.bfd: (.text+0x19c): warning: Using 'getpwuid' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking 779s /usr/bin/arm-linux-gnueabihf-ld.bfd: (.text+0xba): warning: Using 'getpwuid_r' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking 779s build (gmodule, static): OK 779s + echo build (gmodule, static): OK 779s + [ -x gmodule-static ] 779s + foo=bar ./gmodule-static 779s run (gmodule, static): OK 779s + echo run (gmodule, static): OK 779s + cflags= 779s + pcflags= 779s + packages=gthread-2.0 779s + cflags=-static 779s + pcflags=--static 779s + pkg-config --static --cflags --libs gthread-2.0 779s + 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 -lsysprof-capture-4 -Wl,-z,nodelete -pthread -lpcre2-8 780s /usr/bin/arm-linux-gnueabihf-ld.bfd: /usr/lib/gcc/arm-linux-gnueabihf/15/../../../arm-linux-gnueabihf/libglib-2.0.a(gutils.c.o): in function `g_get_user_database_entry': 780s (.text+0x92): warning: Using 'getpwnam_r' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking 780s /usr/bin/arm-linux-gnueabihf-ld.bfd: (.text+0x19c): warning: Using 'getpwuid' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking 780s /usr/bin/arm-linux-gnueabihf-ld.bfd: (.text+0xba): warning: Using 'getpwuid_r' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking 780s build (gthread, static): OK 780s + echo build (gthread, static): OK 780s + [ -x gthread-static ] 780s + foo=bar ./gthread-static 780s run (gthread, static): OK 780s + echo run (gthread, static): OK 780s + rm -rf /tmp/tmp.gymAJrYwMa 780s + debian/tests/girepository-tools 780s + cd /tmp/autopkgtest.IRmvvB/autopkgtest_tmp 780s + dpkg-architecture -qDEB_HOST_GNU_TYPE 780s + DEB_HOST_GNU_TYPE=arm-linux-gnueabihf 780s + dpkg-architecture -qDEB_HOST_MULTIARCH 780s + DEB_HOST_MULTIARCH=arm-linux-gnueabihf 780s + arm-linux-gnueabihf-gi-inspect-typelib --print-typelibs --typelib-version=2.0 GObject 780s typelib: GLib-2.0 780s + arm-linux-gnueabihf-gi-compile-repository -o GLib.typelib /usr/lib/arm-linux-gnueabihf/gir-1.0/GLib-2.0.gir 780s + arm-linux-gnueabihf-gi-decompile-typelib -o GLib.gir GLib.typelib 780s + debian/tests/libgio-2.0-dev-bin 780s + gdbus-codegen --help 780s usage: gdbus-codegen [-h] [--interface-prefix PREFIX] 780s [--c-namespace NAMESPACE] [--c-generate-object-manager] 780s [--c-generate-autocleanup {none,objects,all}] 780s [--generate-docbook OUTFILES] [--generate-md OUTFILES] 780s [--generate-rst OUTFILES] [--pragma-once] 780s [--annotate WHAT KEY VALUE WHAT KEY VALUE WHAT KEY VALUE] 780s [--glib-min-required VERSION] 780s [--glib-max-allowed VERSION] 780s [--symbol-decorator SYMBOL_DECORATOR] 780s [--symbol-decorator-header SYMBOL_DECORATOR_HEADER] 780s [--symbol-decorator-define SYMBOL_DECORATOR_DEFINE] 780s [--generate-c-code OUTFILES | --header | --body | 780s --interface-info-header | --interface-info-body] 780s [--output FILE | --output-directory OUTDIR] 780s FILE [FILE ...] 780s 780s D-Bus code and documentation generator 780s 780s positional arguments: 780s FILE D-Bus introspection XML file 780s 780s options: 780s -h, --help show this help message and exit 780s --interface-prefix PREFIX 780s String to strip from D-Bus interface names for code 780s and docs 780s --c-namespace NAMESPACE 780s The namespace to use for generated C code 780s --c-generate-object-manager 780s Generate a GDBusObjectManagerClient subclass when 780s generating C code 780s --c-generate-autocleanup {none,objects,all} 780s Generate autocleanup support 780s --generate-docbook OUTFILES 780s Generate Docbook in OUTFILES-org.Project.IFace.xml 780s --generate-md OUTFILES 780s Generate Markdown in OUTFILES-org.Project.IFace.md 780s --generate-rst OUTFILES 780s Generate reStructuredText in OUTFILES- 780s org.Project.IFace.rst 780s --pragma-once Use "pragma once" as the inclusion guard 780s --annotate WHAT KEY VALUE WHAT KEY VALUE WHAT KEY VALUE 780s Add annotation (may be used several times) 780s --glib-min-required VERSION 780s Minimum version of GLib to be supported by the 780s outputted code (default: 2.30) 780s --glib-max-allowed VERSION 780s Maximum version of GLib to be used by the outputted 780s code (default: current GLib version) 780s --symbol-decorator SYMBOL_DECORATOR 780s Macro used to decorate a symbol in the outputted 780s header, possibly to export symbols 780s --symbol-decorator-header SYMBOL_DECORATOR_HEADER 780s Additional header required for decorator specified by 780s --symbol-decorator 780s --symbol-decorator-define SYMBOL_DECORATOR_DEFINE 780s Additional define required for decorator specified by 780s --symbol-decorator 780s --generate-c-code OUTFILES 780s Generate C code in OUTFILES.[ch] 780s --header Generate C headers 780s --body Generate C code 780s --interface-info-header 780s Generate GDBusInterfaceInfo C header 780s --interface-info-body 780s Generate GDBusInterfaceInfo C code 780s --output FILE Write output into the specified file 780s --output-directory OUTDIR 780s Location to output generated files 780s + glib-compile-resources --version 780s + glib-genmarshal --version 780s 2.86.3 780s glib-genmarshal version 2.86.3 780s glib-genmarshal comes with ABSOLUTELY NO WARRANTY. 780s You may redistribute copies of glib-genmarshal under the terms of 780s the GNU General Public License which can be found in the 780s GLib source package. Sources, examples and contact 780s information are available at http://www.gtk.org 780s + glib-gettextize --version 780s /usr/bin/glib-gettextize (GNU glib) 2.86.3 780s Copyright (C) 1995-1998, 2000, 2001 Free Software Foundation, Inc. 780s This is free software; see the source for copying conditions. There is NO 780s warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 780s Written by Ulrich Drepper 780s + glib-mkenums --version 780s glib-mkenums version 2.86.3 780s glib-mkenums comes with ABSOLUTELY NO WARRANTY. 780s You may redistribute copies of glib-mkenums under the terms of 780s the GNU General Public License which can be found in the 780s GLib source package. Sources, examples and contact 780s information are available at http://www.gtk.org 780s + gobject-query tree 780s GObject 780s + gtester --version 780s gtester version 2.86.3 780s + gtester-report --version 780s gtester-report (GLib utils) version 2.86.3. 780s + cd /tmp/autopkgtest.IRmvvB/autopkgtest_tmp 780s + dpkg-architecture -qDEB_HOST_MULTIARCH 780s + DEB_HOST_MULTIARCH=arm-linux-gnueabihf 780s + gi-inspect-typelib --print-typelibs --typelib-version=2.0 GObject 780s typelib: GLib-2.0 780s + gi-compile-repository -o GLib.typelib /usr/lib/arm-linux-gnueabihf/gir-1.0/GLib-2.0.gir 780s + gi-decompile-typelib -o GLib.gir GLib.typelib 781s autopkgtest [11:27:41]: test libglib2.0-dev: -----------------------] 785s libglib2.0-dev PASS (superficial) 785s autopkgtest [11:27:45]: test libglib2.0-dev: - - - - - - - - - - results - - - - - - - - - - 790s autopkgtest [11:27:50]: test installed-tests: preparing testbed 812s autopkgtest [11:28:12]: testbed dpkg architecture: armhf 814s autopkgtest [11:28:14]: testbed apt version: 3.1.15 818s autopkgtest [11:28:18]: @@@@@@@@@@@@@@@@@@@@ test bed setup 820s autopkgtest [11:28:20]: testbed release detected to be: resolute 828s autopkgtest [11:28:28]: updating testbed package index (apt update) 830s Get:1 http://ftpmaster.internal/ubuntu resolute-proposed InRelease [124 kB] 830s Get:2 http://ftpmaster.internal/ubuntu resolute InRelease [124 kB] 830s Get:3 http://ftpmaster.internal/ubuntu resolute-updates InRelease [124 kB] 831s Get:4 http://ftpmaster.internal/ubuntu resolute-security InRelease [124 kB] 831s Get:5 http://ftpmaster.internal/ubuntu resolute-proposed/restricted Sources [10.7 kB] 831s Get:6 http://ftpmaster.internal/ubuntu resolute-proposed/main Sources [196 kB] 831s Get:7 http://ftpmaster.internal/ubuntu resolute-proposed/universe Sources [1606 kB] 831s Get:8 http://ftpmaster.internal/ubuntu resolute-proposed/multiverse Sources [35.1 kB] 831s Get:9 http://ftpmaster.internal/ubuntu resolute-proposed/main armhf Packages [231 kB] 831s Get:10 http://ftpmaster.internal/ubuntu resolute-proposed/universe armhf Packages [1361 kB] 831s Get:11 http://ftpmaster.internal/ubuntu resolute-proposed/multiverse armhf Packages [9992 B] 831s Get:12 http://ftpmaster.internal/ubuntu resolute/universe Sources [21.3 MB] 831s Get:13 http://ftpmaster.internal/ubuntu resolute/main Sources [1412 kB] 831s Get:14 http://ftpmaster.internal/ubuntu resolute/multiverse Sources [311 kB] 831s Get:15 http://ftpmaster.internal/ubuntu resolute/main armhf Packages [1374 kB] 831s Get:16 http://ftpmaster.internal/ubuntu resolute/universe armhf Packages [14.9 MB] 832s Get:17 http://ftpmaster.internal/ubuntu resolute/multiverse armhf Packages [177 kB] 835s Fetched 43.4 MB in 5s (8308 kB/s) 837s Reading package lists... 843s autopkgtest [11:28:43]: upgrading testbed (apt dist-upgrade and autopurge) 844s Reading package lists... 845s Building dependency tree... 845s Reading state information... 845s Calculating upgrade... 846s The following packages will be upgraded: 846s 3cpio distro-info libevent-core-2.1-7t64 libpcap0.8t64 846s 4 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 846s Need to get 515 kB of archives. 846s After this operation, 0 B of additional disk space will be used. 846s Get:1 http://ftpmaster.internal/ubuntu resolute/main armhf distro-info armhf 1.14build1 [19.3 kB] 846s Get:2 http://ftpmaster.internal/ubuntu resolute/main armhf libpcap0.8t64 armhf 1.10.5-2ubuntu3 [140 kB] 847s Get:3 http://ftpmaster.internal/ubuntu resolute/main armhf 3cpio armhf 0.14.0-1ubuntu1 [271 kB] 847s Get:4 http://ftpmaster.internal/ubuntu resolute/main armhf libevent-core-2.1-7t64 armhf 2.1.12-stable-10build2 [84.9 kB] 848s Fetched 515 kB in 1s (622 kB/s) 848s (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 ... 68506 files and directories currently installed.) 848s Preparing to unpack .../distro-info_1.14build1_armhf.deb ... 848s Unpacking distro-info (1.14build1) over (1.14) ... 848s Preparing to unpack .../libpcap0.8t64_1.10.5-2ubuntu3_armhf.deb ... 848s Unpacking libpcap0.8t64:armhf (1.10.5-2ubuntu3) over (1.10.5-2ubuntu2) ... 848s Preparing to unpack .../3cpio_0.14.0-1ubuntu1_armhf.deb ... 848s Unpacking 3cpio (0.14.0-1ubuntu1) over (0.13.1-1ubuntu1) ... 848s Preparing to unpack .../libevent-core-2.1-7t64_2.1.12-stable-10build2_armhf.deb ... 848s Unpacking libevent-core-2.1-7t64:armhf (2.1.12-stable-10build2) over (2.1.12-stable-10build1) ... 848s Setting up distro-info (1.14build1) ... 848s Setting up 3cpio (0.14.0-1ubuntu1) ... 848s Setting up libpcap0.8t64:armhf (1.10.5-2ubuntu3) ... 848s Setting up libevent-core-2.1-7t64:armhf (2.1.12-stable-10build2) ... 848s Processing triggers for man-db (2.13.1-1) ... 849s Processing triggers for libc-bin (2.42-2ubuntu4) ... 851s Reading package lists... 852s Building dependency tree... 852s Reading state information... 852s Solving dependencies... 853s 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 855s autopkgtest [11:28:55]: rebooting testbed after setup commands that affected boot 922s Reading package lists... 922s Building dependency tree... 922s Reading state information... 922s Solving dependencies... 923s The following NEW packages will be installed: 923s dbus-x11 desktop-file-utils gir1.2-glib-2.0-dev girepository-tools 923s gnome-desktop-testing libfontenc1 libfreetype6 libgbm1 libgio-2.0-dev-bin 923s libgl1 libgl1-mesa-dri libglib2.0-bin libglib2.0-dev-bin libglib2.0-tests 923s libglvnd0 libglx-mesa0 libglx0 libice6 libllvm21 libpixman-1-0 libsm6 923s libvulkan1 libx11-xcb1 libxaw7 libxcb-dri3-0 libxcb-glx0 libxcb-present0 923s libxcb-randr0 libxcb-shm0 libxcb-sync1 libxcb-xfixes0 libxfont2 libxkbfile1 923s libxmu6 libxpm4 libxrandr2 libxrender1 libxshmfence1 libxt6t64 libxxf86vm1 923s mesa-libgallium native-architecture python3-dbusmock tzdata-legacy 923s x11-common x11-xkb-utils xserver-common xvfb 923s 0 upgraded, 48 newly installed, 0 to remove and 0 not upgraded. 923s Need to get 46.2 MB of archives. 923s After this operation, 211 MB of additional disk space will be used. 923s Get:1 http://ftpmaster.internal/ubuntu resolute/main armhf dbus-x11 armhf 1.16.2-2ubuntu2 [22.7 kB] 924s Get:2 http://ftpmaster.internal/ubuntu resolute/main armhf desktop-file-utils armhf 0.28-1build1 [48.4 kB] 924s Get:3 http://ftpmaster.internal/ubuntu resolute/main armhf gir1.2-glib-2.0-dev armhf 2.86.3-4 [865 kB] 925s Get:4 http://ftpmaster.internal/ubuntu resolute/main armhf native-architecture all 0.2.6build1 [2256 B] 925s Get:5 http://ftpmaster.internal/ubuntu resolute/main armhf girepository-tools armhf 2.86.3-4 [109 kB] 925s Get:6 http://ftpmaster.internal/ubuntu resolute/universe armhf gnome-desktop-testing armhf 2021.1-5 [16.0 kB] 925s Get:7 http://ftpmaster.internal/ubuntu resolute/main armhf libfontenc1 armhf 1:1.1.8-1build2 [11.7 kB] 925s Get:8 http://ftpmaster.internal/ubuntu resolute/main armhf libfreetype6 armhf 2.14.1+dfsg-2 [345 kB] 925s Get:9 http://ftpmaster.internal/ubuntu resolute/main armhf libllvm21 armhf 1:21.1.8-1ubuntu1 [30.3 MB] 928s Get:10 http://ftpmaster.internal/ubuntu resolute/main armhf libx11-xcb1 armhf 2:1.8.12-1build1 [7920 B] 928s Get:11 http://ftpmaster.internal/ubuntu resolute/main armhf libxcb-dri3-0 armhf 1.17.0-2ubuntu1 [7342 B] 928s Get:12 http://ftpmaster.internal/ubuntu resolute/main armhf libxcb-present0 armhf 1.17.0-2ubuntu1 [6080 B] 928s Get:13 http://ftpmaster.internal/ubuntu resolute/main armhf libxcb-randr0 armhf 1.17.0-2ubuntu1 [16.9 kB] 928s Get:14 http://ftpmaster.internal/ubuntu resolute/main armhf libxcb-sync1 armhf 1.17.0-2ubuntu1 [8840 B] 928s Get:15 http://ftpmaster.internal/ubuntu resolute/main armhf libxcb-xfixes0 armhf 1.17.0-2ubuntu1 [10.2 kB] 928s Get:16 http://ftpmaster.internal/ubuntu resolute/main armhf libxshmfence1 armhf 1.3.3-1build1 [5000 B] 928s Get:17 http://ftpmaster.internal/ubuntu resolute/main armhf mesa-libgallium armhf 25.3.3-1ubuntu1 [8874 kB] 929s Get:18 http://ftpmaster.internal/ubuntu resolute/main armhf libgbm1 armhf 25.3.3-1ubuntu1 [30.0 kB] 929s Get:19 http://ftpmaster.internal/ubuntu resolute/main armhf libgio-2.0-dev-bin armhf 2.86.3-4 [130 kB] 929s Get:20 http://ftpmaster.internal/ubuntu resolute/main armhf libvulkan1 armhf 1.4.335.0-1 [137 kB] 929s Get:21 http://ftpmaster.internal/ubuntu resolute/main armhf libgl1-mesa-dri armhf 25.3.3-1ubuntu1 [32.7 kB] 929s Get:22 http://ftpmaster.internal/ubuntu resolute/main armhf libglib2.0-bin armhf 2.86.3-4 [92.4 kB] 929s Get:23 http://ftpmaster.internal/ubuntu resolute/main armhf libglib2.0-dev-bin armhf 2.86.3-4 [18.2 kB] 929s Get:24 http://ftpmaster.internal/ubuntu resolute/universe armhf python3-dbusmock all 0.38.1-1 [92.0 kB] 929s Get:25 http://ftpmaster.internal/ubuntu resolute/main armhf tzdata-legacy all 2025c-3ubuntu3 [99.3 kB] 929s Get:26 http://ftpmaster.internal/ubuntu resolute/universe armhf libglib2.0-tests armhf 2.86.3-4 [2848 kB] 929s Get:27 http://ftpmaster.internal/ubuntu resolute/main armhf libxcb-glx0 armhf 1.17.0-2ubuntu1 [22.8 kB] 929s Get:28 http://ftpmaster.internal/ubuntu resolute/main armhf libxcb-shm0 armhf 1.17.0-2ubuntu1 [5956 B] 929s Get:29 http://ftpmaster.internal/ubuntu resolute/main armhf libxxf86vm1 armhf 1:1.1.4-2 [9110 B] 929s Get:30 http://ftpmaster.internal/ubuntu resolute/main armhf libglx-mesa0 armhf 25.3.3-1ubuntu1 [87.3 kB] 929s Get:31 http://ftpmaster.internal/ubuntu resolute/main armhf x11-common all 1:7.7+24ubuntu1 [22.4 kB] 929s Get:32 http://ftpmaster.internal/ubuntu resolute/main armhf libice6 armhf 2:1.1.1-1build1 [37.5 kB] 929s Get:33 http://ftpmaster.internal/ubuntu resolute/main armhf libpixman-1-0 armhf 0.46.4-1 [196 kB] 929s Get:34 http://ftpmaster.internal/ubuntu resolute/main armhf libsm6 armhf 2:1.2.6-1build1 [15.3 kB] 929s Get:35 http://ftpmaster.internal/ubuntu resolute/main armhf libxt6t64 armhf 1:1.2.1-1.3 [145 kB] 929s Get:36 http://ftpmaster.internal/ubuntu resolute/main armhf libxmu6 armhf 2:1.1.3-4 [41.2 kB] 929s Get:37 http://ftpmaster.internal/ubuntu resolute/main armhf libxpm4 armhf 1:3.5.17-1build3 [31.1 kB] 929s Get:38 http://ftpmaster.internal/ubuntu resolute/main armhf libxaw7 armhf 2:1.0.16-1build1 [156 kB] 929s Get:39 http://ftpmaster.internal/ubuntu resolute/main armhf libxfont2 armhf 1:2.0.6-2 [82.7 kB] 929s Get:40 http://ftpmaster.internal/ubuntu resolute/main armhf libxkbfile1 armhf 1:1.1.0-1build5 [60.6 kB] 929s Get:41 http://ftpmaster.internal/ubuntu resolute/main armhf libxrender1 armhf 1:0.9.12-1 [16.6 kB] 929s Get:42 http://ftpmaster.internal/ubuntu resolute/main armhf libxrandr2 armhf 2:1.5.4-1build1 [15.6 kB] 929s Get:43 http://ftpmaster.internal/ubuntu resolute/main armhf x11-xkb-utils armhf 7.7+9build1 [159 kB] 929s Get:44 http://ftpmaster.internal/ubuntu resolute/main armhf xserver-common all 2:21.1.21-1ubuntu1 [34.8 kB] 929s Get:45 http://ftpmaster.internal/ubuntu resolute/main armhf libglvnd0 armhf 1.7.0-3 [71.3 kB] 929s Get:46 http://ftpmaster.internal/ubuntu resolute/main armhf libglx0 armhf 1.7.0-3 [37.9 kB] 929s Get:47 http://ftpmaster.internal/ubuntu resolute/main armhf libgl1 armhf 1.7.0-3 [102 kB] 929s Get:48 http://ftpmaster.internal/ubuntu resolute/universe armhf xvfb armhf 2:21.1.21-1ubuntu1 [744 kB] 930s Fetched 46.2 MB in 6s (8086 kB/s) 930s Selecting previously unselected package dbus-x11. 930s (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 ... 68506 files and directories currently installed.) 930s Preparing to unpack .../00-dbus-x11_1.16.2-2ubuntu2_armhf.deb ... 930s Unpacking dbus-x11 (1.16.2-2ubuntu2) ... 930s Selecting previously unselected package desktop-file-utils. 930s Preparing to unpack .../01-desktop-file-utils_0.28-1build1_armhf.deb ... 930s Unpacking desktop-file-utils (0.28-1build1) ... 930s Selecting previously unselected package gir1.2-glib-2.0-dev:armhf. 930s Preparing to unpack .../02-gir1.2-glib-2.0-dev_2.86.3-4_armhf.deb ... 930s Unpacking gir1.2-glib-2.0-dev:armhf (2.86.3-4) ... 930s Selecting previously unselected package native-architecture. 930s Preparing to unpack .../03-native-architecture_0.2.6build1_all.deb ... 930s Unpacking native-architecture (0.2.6build1) ... 930s Selecting previously unselected package girepository-tools:armhf. 930s Preparing to unpack .../04-girepository-tools_2.86.3-4_armhf.deb ... 930s Unpacking girepository-tools:armhf (2.86.3-4) ... 930s Selecting previously unselected package gnome-desktop-testing. 930s Preparing to unpack .../05-gnome-desktop-testing_2021.1-5_armhf.deb ... 930s Unpacking gnome-desktop-testing (2021.1-5) ... 930s Selecting previously unselected package libfontenc1:armhf. 930s Preparing to unpack .../06-libfontenc1_1%3a1.1.8-1build2_armhf.deb ... 930s Unpacking libfontenc1:armhf (1:1.1.8-1build2) ... 930s Selecting previously unselected package libfreetype6:armhf. 930s Preparing to unpack .../07-libfreetype6_2.14.1+dfsg-2_armhf.deb ... 930s Unpacking libfreetype6:armhf (2.14.1+dfsg-2) ... 930s Selecting previously unselected package libllvm21:armhf. 930s Preparing to unpack .../08-libllvm21_1%3a21.1.8-1ubuntu1_armhf.deb ... 930s Unpacking libllvm21:armhf (1:21.1.8-1ubuntu1) ... 932s Selecting previously unselected package libx11-xcb1:armhf. 932s Preparing to unpack .../09-libx11-xcb1_2%3a1.8.12-1build1_armhf.deb ... 932s Unpacking libx11-xcb1:armhf (2:1.8.12-1build1) ... 932s Selecting previously unselected package libxcb-dri3-0:armhf. 932s Preparing to unpack .../10-libxcb-dri3-0_1.17.0-2ubuntu1_armhf.deb ... 932s Unpacking libxcb-dri3-0:armhf (1.17.0-2ubuntu1) ... 932s Selecting previously unselected package libxcb-present0:armhf. 932s Preparing to unpack .../11-libxcb-present0_1.17.0-2ubuntu1_armhf.deb ... 932s Unpacking libxcb-present0:armhf (1.17.0-2ubuntu1) ... 932s Selecting previously unselected package libxcb-randr0:armhf. 932s Preparing to unpack .../12-libxcb-randr0_1.17.0-2ubuntu1_armhf.deb ... 932s Unpacking libxcb-randr0:armhf (1.17.0-2ubuntu1) ... 932s Selecting previously unselected package libxcb-sync1:armhf. 932s Preparing to unpack .../13-libxcb-sync1_1.17.0-2ubuntu1_armhf.deb ... 932s Unpacking libxcb-sync1:armhf (1.17.0-2ubuntu1) ... 932s Selecting previously unselected package libxcb-xfixes0:armhf. 932s Preparing to unpack .../14-libxcb-xfixes0_1.17.0-2ubuntu1_armhf.deb ... 932s Unpacking libxcb-xfixes0:armhf (1.17.0-2ubuntu1) ... 932s Selecting previously unselected package libxshmfence1:armhf. 932s Preparing to unpack .../15-libxshmfence1_1.3.3-1build1_armhf.deb ... 932s Unpacking libxshmfence1:armhf (1.3.3-1build1) ... 932s Selecting previously unselected package mesa-libgallium:armhf. 932s Preparing to unpack .../16-mesa-libgallium_25.3.3-1ubuntu1_armhf.deb ... 932s Unpacking mesa-libgallium:armhf (25.3.3-1ubuntu1) ... 933s Selecting previously unselected package libgbm1:armhf. 933s Preparing to unpack .../17-libgbm1_25.3.3-1ubuntu1_armhf.deb ... 933s Unpacking libgbm1:armhf (25.3.3-1ubuntu1) ... 933s Selecting previously unselected package libgio-2.0-dev-bin. 933s Preparing to unpack .../18-libgio-2.0-dev-bin_2.86.3-4_armhf.deb ... 933s Unpacking libgio-2.0-dev-bin (2.86.3-4) ... 933s Selecting previously unselected package libvulkan1:armhf. 933s Preparing to unpack .../19-libvulkan1_1.4.335.0-1_armhf.deb ... 933s Unpacking libvulkan1:armhf (1.4.335.0-1) ... 933s Selecting previously unselected package libgl1-mesa-dri:armhf. 933s Preparing to unpack .../20-libgl1-mesa-dri_25.3.3-1ubuntu1_armhf.deb ... 933s Unpacking libgl1-mesa-dri:armhf (25.3.3-1ubuntu1) ... 933s Selecting previously unselected package libglib2.0-bin. 933s Preparing to unpack .../21-libglib2.0-bin_2.86.3-4_armhf.deb ... 933s Unpacking libglib2.0-bin (2.86.3-4) ... 933s Selecting previously unselected package libglib2.0-dev-bin. 933s Preparing to unpack .../22-libglib2.0-dev-bin_2.86.3-4_armhf.deb ... 933s Unpacking libglib2.0-dev-bin (2.86.3-4) ... 933s Selecting previously unselected package python3-dbusmock. 933s Preparing to unpack .../23-python3-dbusmock_0.38.1-1_all.deb ... 933s Unpacking python3-dbusmock (0.38.1-1) ... 933s Selecting previously unselected package tzdata-legacy. 933s Preparing to unpack .../24-tzdata-legacy_2025c-3ubuntu3_all.deb ... 933s Unpacking tzdata-legacy (2025c-3ubuntu3) ... 933s Selecting previously unselected package libglib2.0-tests. 933s Preparing to unpack .../25-libglib2.0-tests_2.86.3-4_armhf.deb ... 933s Unpacking libglib2.0-tests (2.86.3-4) ... 934s Selecting previously unselected package libxcb-glx0:armhf. 934s Preparing to unpack .../26-libxcb-glx0_1.17.0-2ubuntu1_armhf.deb ... 934s Unpacking libxcb-glx0:armhf (1.17.0-2ubuntu1) ... 934s Selecting previously unselected package libxcb-shm0:armhf. 934s Preparing to unpack .../27-libxcb-shm0_1.17.0-2ubuntu1_armhf.deb ... 934s Unpacking libxcb-shm0:armhf (1.17.0-2ubuntu1) ... 934s Selecting previously unselected package libxxf86vm1:armhf. 934s Preparing to unpack .../28-libxxf86vm1_1%3a1.1.4-2_armhf.deb ... 934s Unpacking libxxf86vm1:armhf (1:1.1.4-2) ... 934s Selecting previously unselected package libglx-mesa0:armhf. 934s Preparing to unpack .../29-libglx-mesa0_25.3.3-1ubuntu1_armhf.deb ... 934s Unpacking libglx-mesa0:armhf (25.3.3-1ubuntu1) ... 934s Selecting previously unselected package x11-common. 934s Preparing to unpack .../30-x11-common_1%3a7.7+24ubuntu1_all.deb ... 934s Unpacking x11-common (1:7.7+24ubuntu1) ... 934s Selecting previously unselected package libice6:armhf. 934s Preparing to unpack .../31-libice6_2%3a1.1.1-1build1_armhf.deb ... 934s Unpacking libice6:armhf (2:1.1.1-1build1) ... 934s Selecting previously unselected package libpixman-1-0:armhf. 934s Preparing to unpack .../32-libpixman-1-0_0.46.4-1_armhf.deb ... 934s Unpacking libpixman-1-0:armhf (0.46.4-1) ... 934s Selecting previously unselected package libsm6:armhf. 934s Preparing to unpack .../33-libsm6_2%3a1.2.6-1build1_armhf.deb ... 934s Unpacking libsm6:armhf (2:1.2.6-1build1) ... 934s Selecting previously unselected package libxt6t64:armhf. 934s Preparing to unpack .../34-libxt6t64_1%3a1.2.1-1.3_armhf.deb ... 934s Unpacking libxt6t64:armhf (1:1.2.1-1.3) ... 934s Selecting previously unselected package libxmu6:armhf. 934s Preparing to unpack .../35-libxmu6_2%3a1.1.3-4_armhf.deb ... 934s Unpacking libxmu6:armhf (2:1.1.3-4) ... 934s Selecting previously unselected package libxpm4:armhf. 934s Preparing to unpack .../36-libxpm4_1%3a3.5.17-1build3_armhf.deb ... 934s Unpacking libxpm4:armhf (1:3.5.17-1build3) ... 934s Selecting previously unselected package libxaw7:armhf. 934s Preparing to unpack .../37-libxaw7_2%3a1.0.16-1build1_armhf.deb ... 934s Unpacking libxaw7:armhf (2:1.0.16-1build1) ... 934s Selecting previously unselected package libxfont2:armhf. 934s Preparing to unpack .../38-libxfont2_1%3a2.0.6-2_armhf.deb ... 934s Unpacking libxfont2:armhf (1:2.0.6-2) ... 934s Selecting previously unselected package libxkbfile1:armhf. 934s Preparing to unpack .../39-libxkbfile1_1%3a1.1.0-1build5_armhf.deb ... 934s Unpacking libxkbfile1:armhf (1:1.1.0-1build5) ... 934s Selecting previously unselected package libxrender1:armhf. 934s Preparing to unpack .../40-libxrender1_1%3a0.9.12-1_armhf.deb ... 934s Unpacking libxrender1:armhf (1:0.9.12-1) ... 934s Selecting previously unselected package libxrandr2:armhf. 935s Preparing to unpack .../41-libxrandr2_2%3a1.5.4-1build1_armhf.deb ... 935s Unpacking libxrandr2:armhf (2:1.5.4-1build1) ... 935s Selecting previously unselected package x11-xkb-utils. 935s Preparing to unpack .../42-x11-xkb-utils_7.7+9build1_armhf.deb ... 935s Unpacking x11-xkb-utils (7.7+9build1) ... 935s Selecting previously unselected package xserver-common. 935s Preparing to unpack .../43-xserver-common_2%3a21.1.21-1ubuntu1_all.deb ... 935s Unpacking xserver-common (2:21.1.21-1ubuntu1) ... 935s Selecting previously unselected package libglvnd0:armhf. 935s Preparing to unpack .../44-libglvnd0_1.7.0-3_armhf.deb ... 935s Unpacking libglvnd0:armhf (1.7.0-3) ... 935s Selecting previously unselected package libglx0:armhf. 935s Preparing to unpack .../45-libglx0_1.7.0-3_armhf.deb ... 935s Unpacking libglx0:armhf (1.7.0-3) ... 935s Selecting previously unselected package libgl1:armhf. 935s Preparing to unpack .../46-libgl1_1.7.0-3_armhf.deb ... 935s Unpacking libgl1:armhf (1.7.0-3) ... 935s Selecting previously unselected package xvfb. 935s Preparing to unpack .../47-xvfb_2%3a21.1.21-1ubuntu1_armhf.deb ... 935s Unpacking xvfb (2:21.1.21-1ubuntu1) ... 935s Setting up gnome-desktop-testing (2021.1-5) ... 935s Setting up libxcb-dri3-0:armhf (1.17.0-2ubuntu1) ... 935s Setting up libpixman-1-0:armhf (0.46.4-1) ... 935s Setting up libx11-xcb1:armhf (2:1.8.12-1build1) ... 935s Setting up libgio-2.0-dev-bin (2.86.3-4) ... 935s Setting up native-architecture (0.2.6build1) ... 935s Setting up libxcb-xfixes0:armhf (1.17.0-2ubuntu1) ... 935s Setting up desktop-file-utils (0.28-1build1) ... 935s Setting up libxpm4:armhf (1:3.5.17-1build3) ... 935s Setting up libxrender1:armhf (1:0.9.12-1) ... 935s Setting up libglvnd0:armhf (1.7.0-3) ... 935s Setting up libxcb-glx0:armhf (1.17.0-2ubuntu1) ... 935s Setting up x11-common (1:7.7+24ubuntu1) ... 936s Setting up libglib2.0-bin (2.86.3-4) ... 936s Setting up libxcb-shm0:armhf (1.17.0-2ubuntu1) ... 936s Setting up python3-dbusmock (0.38.1-1) ... 936s Setting up tzdata-legacy (2025c-3ubuntu3) ... 936s Setting up libxxf86vm1:armhf (1:1.1.4-2) ... 936s Setting up libxcb-present0:armhf (1.17.0-2ubuntu1) ... 936s Setting up libfontenc1:armhf (1:1.1.8-1build2) ... 936s Setting up libfreetype6:armhf (2.14.1+dfsg-2) ... 936s Setting up libxcb-sync1:armhf (1.17.0-2ubuntu1) ... 936s Setting up libllvm21:armhf (1:21.1.8-1ubuntu1) ... 936s Setting up libxrandr2:armhf (2:1.5.4-1build1) ... 936s Setting up libvulkan1:armhf (1.4.335.0-1) ... 936s Setting up gir1.2-glib-2.0-dev:armhf (2.86.3-4) ... 936s Setting up libxshmfence1:armhf (1.3.3-1build1) ... 936s Setting up dbus-x11 (1.16.2-2ubuntu2) ... 936s Setting up libxcb-randr0:armhf (1.17.0-2ubuntu1) ... 936s Setting up libxkbfile1:armhf (1:1.1.0-1build5) ... 936s Setting up libxfont2:armhf (1:2.0.6-2) ... 936s Setting up libice6:armhf (2:1.1.1-1build1) ... 936s Setting up mesa-libgallium:armhf (25.3.3-1ubuntu1) ... 936s Setting up girepository-tools:armhf (2.86.3-4) ... 936s Setting up libgbm1:armhf (25.3.3-1ubuntu1) ... 936s Setting up libgl1-mesa-dri:armhf (25.3.3-1ubuntu1) ... 936s Setting up libsm6:armhf (2:1.2.6-1build1) ... 936s Setting up libglib2.0-dev-bin (2.86.3-4) ... 936s Setting up libglx-mesa0:armhf (25.3.3-1ubuntu1) ... 936s Setting up libglx0:armhf (1.7.0-3) ... 936s Setting up libgl1:armhf (1.7.0-3) ... 936s Setting up libxt6t64:armhf (1:1.2.1-1.3) ... 936s Setting up libglib2.0-tests (2.86.3-4) ... 936s Setting up libxmu6:armhf (2:1.1.3-4) ... 936s Setting up libxaw7:armhf (2:1.0.16-1build1) ... 936s Setting up x11-xkb-utils (7.7+9build1) ... 936s Setting up xserver-common (2:21.1.21-1ubuntu1) ... 936s Setting up xvfb (2:21.1.21-1ubuntu1) ... 936s Processing triggers for man-db (2.13.1-1) ... 937s Processing triggers for libc-bin (2.42-2ubuntu4) ... 958s autopkgtest [11:30:38]: test installed-tests: [----------------------- 960s Running as: uid=1000(ubuntu) gid=1000(ubuntu) groups=1000(ubuntu),4(adm),24(cdrom),27(sudo),30(dip),103(lxd) 960s passwd entry: ubuntu:x:1000:1000:Ubuntu:/home/ubuntu:/bin/bash 960s group entry: ubuntu:x:1000: 960s Environment: 960s ADTTMP=/tmp/autopkgtest.IRmvvB/autopkgtest_tmp 960s ADT_ARTIFACTS=/tmp/autopkgtest.IRmvvB/installed-tests-artifacts 960s ADT_TEST_TRIGGERS=pkgconf/2.5.1-2 960s AUTOPKGTEST_ARTIFACTS=/tmp/autopkgtest.IRmvvB/installed-tests-artifacts 960s AUTOPKGTEST_TESTBED_ARCH=armhf 960s AUTOPKGTEST_TEST_ARCH=armhf 960s AUTOPKGTEST_TMP=/tmp/autopkgtest.IRmvvB/autopkgtest_tmp 960s DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/1000/bus 960s DEBIAN_FRONTEND=noninteractive 960s DEB_BUILD_OPTIONS=parallel=8 960s GIO_USE_VFS=local 960s GIO_USE_VOLUME_MONITOR=unix 960s HOME=/home/ubuntu 960s LANG=C.UTF-8 960s LOGNAME=ubuntu 960s MAIL=/var/mail/ubuntu 960s OLDPWD=/root 960s PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin 960s PWD=/tmp/autopkgtest.IRmvvB/build.JD2/src 960s SHELL=/bin/bash 960s SHLVL=1 960s USER=ubuntu 960s XDG_RUNTIME_DIR=/tmp/autopkgtest.IRmvvB/autopkgtest_tmp 960s XDG_SESSION_CLASS=background 960s XDG_SESSION_ID=c1 960s XDG_SESSION_TYPE=unspecified 960s http_proxy=http://squid.internal:3128 960s https_proxy=http://squid.internal:3128 960s 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 960s run-with-locales: de_DE=ISO-8859-1... 960s Character set: ISO-8859-1 960s Source file: de_DE 960s Output: /tmp/tmp.W9X0maA7EE/de_DE 961s run-with-locales: de_DE.utf8... 961s Character set: UTF-8 961s Source file: de_DE 961s Output: /tmp/tmp.W9X0maA7EE/de_DE.utf8 965s run-with-locales: de_DE@euro.utf8... 965s Character set: UTF-8 965s Source file: de_DE@euro 965s Output: /tmp/tmp.W9X0maA7EE/de_DE@euro.utf8 969s run-with-locales: el_GR.utf8... 969s Character set: UTF-8 969s Source file: el_GR 969s Output: /tmp/tmp.W9X0maA7EE/el_GR.utf8 972s run-with-locales: en_GB=ISO-8859-1... 972s Character set: ISO-8859-1 972s Source file: en_GB 972s Output: /tmp/tmp.W9X0maA7EE/en_GB 973s run-with-locales: en_GB.utf8... 973s Character set: UTF-8 973s Source file: en_GB 973s Output: /tmp/tmp.W9X0maA7EE/en_GB.utf8 976s run-with-locales: en_US=ISO-8859-1... 976s Character set: ISO-8859-1 976s Source file: en_US 976s Output: /tmp/tmp.W9X0maA7EE/en_US 977s run-with-locales: en_US.utf8... 977s Character set: UTF-8 977s Source file: en_US 977s Output: /tmp/tmp.W9X0maA7EE/en_US.utf8 980s run-with-locales: es_ES.utf8... 980s Character set: UTF-8 980s Source file: es_ES 980s Output: /tmp/tmp.W9X0maA7EE/es_ES.utf8 983s run-with-locales: fa_IR=UTF-8... 983s Character set: UTF-8 983s Source file: fa_IR 983s Output: /tmp/tmp.W9X0maA7EE/fa_IR 986s run-with-locales: fa_IR.utf8... 986s Character set: UTF-8 986s Source file: fa_IR 986s Output: /tmp/tmp.W9X0maA7EE/fa_IR.utf8 990s run-with-locales: fr_FR.utf8... 990s Character set: UTF-8 990s Source file: fr_FR 990s Output: /tmp/tmp.W9X0maA7EE/fr_FR.utf8 993s run-with-locales: hr_HR.utf8... 993s Character set: UTF-8 993s Source file: hr_HR 993s Output: /tmp/tmp.W9X0maA7EE/hr_HR.utf8 996s run-with-locales: ja_JP.utf8... 996s Character set: UTF-8 996s Source file: ja_JP 996s Output: /tmp/tmp.W9X0maA7EE/ja_JP.utf8 998s run-with-locales: ja_JP.EUC-JP... 998s Character set: EUC-JP 998s Source file: ja_JP 998s Output: /tmp/tmp.W9X0maA7EE/ja_JP.eucjp 998s run-with-locales: lt_LT.utf8... 998s Character set: UTF-8 998s Source file: lt_LT 998s Output: /tmp/tmp.W9X0maA7EE/lt_LT.utf8 1002s run-with-locales: pl_PL=ISO-8859-2... 1002s Character set: ISO-8859-2 1002s Source file: pl_PL 1002s Output: /tmp/tmp.W9X0maA7EE/pl_PL 1002s run-with-locales: pl_PL.ISO-8859-2... 1002s Character set: ISO-8859-2 1002s Source file: pl_PL 1002s Output: /tmp/tmp.W9X0maA7EE/pl_PL.iso88592 1003s run-with-locales: pl_PL.utf8... 1003s Character set: UTF-8 1003s Source file: pl_PL 1003s Output: /tmp/tmp.W9X0maA7EE/pl_PL.utf8 1006s run-with-locales: ru_RU=ISO-8859-5... 1006s Character set: ISO-8859-5 1006s Source file: ru_RU 1006s Output: /tmp/tmp.W9X0maA7EE/ru_RU 1007s run-with-locales: ru_RU.utf8... 1007s Character set: UTF-8 1007s Source file: ru_RU 1007s Output: /tmp/tmp.W9X0maA7EE/ru_RU.utf8 1010s run-with-locales: sr_RS=UTF-8... 1010s Character set: UTF-8 1010s Source file: sr_RS 1010s Output: /tmp/tmp.W9X0maA7EE/sr_RS 1014s run-with-locales: sr_RS@latin=UTF-8... 1014s Character set: UTF-8 1014s Source file: sr_RS@latin 1014s Output: /tmp/tmp.W9X0maA7EE/sr_RS@latin 1017s run-with-locales: sv_SE=ISO-8859-1... 1017s Character set: ISO-8859-1 1017s Source file: sv_SE 1017s Output: /tmp/tmp.W9X0maA7EE/sv_SE 1018s run-with-locales: sv_SE.utf8... 1018s Character set: UTF-8 1018s Source file: sv_SE 1018s Output: /tmp/tmp.W9X0maA7EE/sv_SE.utf8 1021s run-with-locales: tr_TR=ISO-8859-9... 1021s Character set: ISO-8859-9 1021s Source file: tr_TR 1021s Output: /tmp/tmp.W9X0maA7EE/tr_TR 1022s run-with-locales: tr_TR.utf8... 1022s Character set: UTF-8 1022s Source file: tr_TR 1022s Output: /tmp/tmp.W9X0maA7EE/tr_TR.utf8 1025s run-with-locales: tt_RU=UTF-8... 1025s Character set: UTF-8 1025s Source file: tt_RU 1025s Output: /tmp/tmp.W9X0maA7EE/tt_RU 1028s run-with-locales: tt_RU.utf8... 1028s Character set: UTF-8 1028s Source file: tt_RU 1028s Output: /tmp/tmp.W9X0maA7EE/tt_RU.utf8 1031s run-with-locales: tt_RU@iqtelif=UTF-8... 1031s Character set: UTF-8 1031s Source file: tt_RU@iqtelif 1031s Output: /tmp/tmp.W9X0maA7EE/tt_RU@iqtelif 1034s /tmp/tmp.W9X0maA7EE 1034s /tmp/tmp.W9X0maA7EE/de_DE 1034s /tmp/tmp.W9X0maA7EE/de_DE/LC_CTYPE 1034s /tmp/tmp.W9X0maA7EE/de_DE/LC_NUMERIC 1034s /tmp/tmp.W9X0maA7EE/de_DE/LC_TIME 1034s /tmp/tmp.W9X0maA7EE/de_DE/LC_COLLATE 1034s /tmp/tmp.W9X0maA7EE/de_DE/LC_MONETARY 1034s /tmp/tmp.W9X0maA7EE/de_DE/LC_MESSAGES 1034s /tmp/tmp.W9X0maA7EE/de_DE/LC_MESSAGES/SYS_LC_MESSAGES 1034s /tmp/tmp.W9X0maA7EE/de_DE/LC_PAPER 1034s /tmp/tmp.W9X0maA7EE/de_DE/LC_NAME 1034s /tmp/tmp.W9X0maA7EE/de_DE/LC_ADDRESS 1034s /tmp/tmp.W9X0maA7EE/de_DE/LC_TELEPHONE 1034s /tmp/tmp.W9X0maA7EE/de_DE/LC_MEASUREMENT 1034s /tmp/tmp.W9X0maA7EE/de_DE/LC_IDENTIFICATION 1034s /tmp/tmp.W9X0maA7EE/de_DE.utf8 1034s /tmp/tmp.W9X0maA7EE/de_DE.utf8/LC_CTYPE 1034s /tmp/tmp.W9X0maA7EE/de_DE.utf8/LC_NUMERIC 1034s /tmp/tmp.W9X0maA7EE/de_DE.utf8/LC_TIME 1034s /tmp/tmp.W9X0maA7EE/de_DE.utf8/LC_COLLATE 1034s /tmp/tmp.W9X0maA7EE/de_DE.utf8/LC_MONETARY 1034s /tmp/tmp.W9X0maA7EE/de_DE.utf8/LC_MESSAGES 1034s /tmp/tmp.W9X0maA7EE/de_DE.utf8/LC_MESSAGES/SYS_LC_MESSAGES 1034s /tmp/tmp.W9X0maA7EE/de_DE.utf8/LC_PAPER 1034s /tmp/tmp.W9X0maA7EE/de_DE.utf8/LC_NAME 1034s /tmp/tmp.W9X0maA7EE/de_DE.utf8/LC_ADDRESS 1034s /tmp/tmp.W9X0maA7EE/de_DE.utf8/LC_TELEPHONE 1034s /tmp/tmp.W9X0maA7EE/de_DE.utf8/LC_MEASUREMENT 1034s /tmp/tmp.W9X0maA7EE/de_DE.utf8/LC_IDENTIFICATION 1034s /tmp/tmp.W9X0maA7EE/de_DE@euro.utf8 1034s /tmp/tmp.W9X0maA7EE/de_DE@euro.utf8/LC_CTYPE 1034s /tmp/tmp.W9X0maA7EE/de_DE@euro.utf8/LC_NUMERIC 1034s /tmp/tmp.W9X0maA7EE/de_DE@euro.utf8/LC_TIME 1034s /tmp/tmp.W9X0maA7EE/de_DE@euro.utf8/LC_COLLATE 1034s /tmp/tmp.W9X0maA7EE/de_DE@euro.utf8/LC_MONETARY 1034s /tmp/tmp.W9X0maA7EE/de_DE@euro.utf8/LC_MESSAGES 1034s /tmp/tmp.W9X0maA7EE/de_DE@euro.utf8/LC_MESSAGES/SYS_LC_MESSAGES 1034s /tmp/tmp.W9X0maA7EE/de_DE@euro.utf8/LC_PAPER 1034s /tmp/tmp.W9X0maA7EE/de_DE@euro.utf8/LC_NAME 1034s /tmp/tmp.W9X0maA7EE/de_DE@euro.utf8/LC_ADDRESS 1034s /tmp/tmp.W9X0maA7EE/de_DE@euro.utf8/LC_TELEPHONE 1034s /tmp/tmp.W9X0maA7EE/de_DE@euro.utf8/LC_MEASUREMENT 1034s /tmp/tmp.W9X0maA7EE/de_DE@euro.utf8/LC_IDENTIFICATION 1034s /tmp/tmp.W9X0maA7EE/el_GR.utf8 1034s /tmp/tmp.W9X0maA7EE/el_GR.utf8/LC_CTYPE 1034s /tmp/tmp.W9X0maA7EE/el_GR.utf8/LC_NUMERIC 1034s /tmp/tmp.W9X0maA7EE/el_GR.utf8/LC_TIME 1034s /tmp/tmp.W9X0maA7EE/el_GR.utf8/LC_COLLATE 1034s /tmp/tmp.W9X0maA7EE/el_GR.utf8/LC_MONETARY 1034s /tmp/tmp.W9X0maA7EE/el_GR.utf8/LC_MESSAGES 1034s /tmp/tmp.W9X0maA7EE/el_GR.utf8/LC_MESSAGES/SYS_LC_MESSAGES 1034s /tmp/tmp.W9X0maA7EE/el_GR.utf8/LC_PAPER 1034s /tmp/tmp.W9X0maA7EE/el_GR.utf8/LC_NAME 1034s /tmp/tmp.W9X0maA7EE/el_GR.utf8/LC_ADDRESS 1034s /tmp/tmp.W9X0maA7EE/el_GR.utf8/LC_TELEPHONE 1034s /tmp/tmp.W9X0maA7EE/el_GR.utf8/LC_MEASUREMENT 1034s /tmp/tmp.W9X0maA7EE/el_GR.utf8/LC_IDENTIFICATION 1034s /tmp/tmp.W9X0maA7EE/en_GB 1034s /tmp/tmp.W9X0maA7EE/en_GB/LC_CTYPE 1034s /tmp/tmp.W9X0maA7EE/en_GB/LC_NUMERIC 1034s /tmp/tmp.W9X0maA7EE/en_GB/LC_TIME 1034s /tmp/tmp.W9X0maA7EE/en_GB/LC_COLLATE 1034s /tmp/tmp.W9X0maA7EE/en_GB/LC_MONETARY 1034s /tmp/tmp.W9X0maA7EE/en_GB/LC_MESSAGES 1034s /tmp/tmp.W9X0maA7EE/en_GB/LC_MESSAGES/SYS_LC_MESSAGES 1034s /tmp/tmp.W9X0maA7EE/en_GB/LC_PAPER 1034s /tmp/tmp.W9X0maA7EE/en_GB/LC_NAME 1034s /tmp/tmp.W9X0maA7EE/en_GB/LC_ADDRESS 1034s /tmp/tmp.W9X0maA7EE/en_GB/LC_TELEPHONE 1034s /tmp/tmp.W9X0maA7EE/en_GB/LC_MEASUREMENT 1034s /tmp/tmp.W9X0maA7EE/en_GB/LC_IDENTIFICATION 1034s /tmp/tmp.W9X0maA7EE/en_GB.utf8 1034s /tmp/tmp.W9X0maA7EE/en_GB.utf8/LC_CTYPE 1034s /tmp/tmp.W9X0maA7EE/en_GB.utf8/LC_NUMERIC 1034s /tmp/tmp.W9X0maA7EE/en_GB.utf8/LC_TIME 1034s /tmp/tmp.W9X0maA7EE/en_GB.utf8/LC_COLLATE 1034s /tmp/tmp.W9X0maA7EE/en_GB.utf8/LC_MONETARY 1034s /tmp/tmp.W9X0maA7EE/en_GB.utf8/LC_MESSAGES 1034s /tmp/tmp.W9X0maA7EE/en_GB.utf8/LC_MESSAGES/SYS_LC_MESSAGES 1034s /tmp/tmp.W9X0maA7EE/en_GB.utf8/LC_PAPER 1034s /tmp/tmp.W9X0maA7EE/en_GB.utf8/LC_NAME 1034s /tmp/tmp.W9X0maA7EE/en_GB.utf8/LC_ADDRESS 1034s /tmp/tmp.W9X0maA7EE/en_GB.utf8/LC_TELEPHONE 1034s /tmp/tmp.W9X0maA7EE/en_GB.utf8/LC_MEASUREMENT 1034s /tmp/tmp.W9X0maA7EE/en_GB.utf8/LC_IDENTIFICATION 1034s /tmp/tmp.W9X0maA7EE/en_US 1034s /tmp/tmp.W9X0maA7EE/en_US/LC_CTYPE 1034s /tmp/tmp.W9X0maA7EE/en_US/LC_NUMERIC 1034s /tmp/tmp.W9X0maA7EE/en_US/LC_TIME 1034s /tmp/tmp.W9X0maA7EE/en_US/LC_COLLATE 1034s /tmp/tmp.W9X0maA7EE/en_US/LC_MONETARY 1034s /tmp/tmp.W9X0maA7EE/en_US/LC_MESSAGES 1034s /tmp/tmp.W9X0maA7EE/en_US/LC_MESSAGES/SYS_LC_MESSAGES 1034s /tmp/tmp.W9X0maA7EE/en_US/LC_PAPER 1034s /tmp/tmp.W9X0maA7EE/en_US/LC_NAME 1034s /tmp/tmp.W9X0maA7EE/en_US/LC_ADDRESS 1034s /tmp/tmp.W9X0maA7EE/en_US/LC_TELEPHONE 1034s /tmp/tmp.W9X0maA7EE/en_US/LC_MEASUREMENT 1034s /tmp/tmp.W9X0maA7EE/en_US/LC_IDENTIFICATION 1034s /tmp/tmp.W9X0maA7EE/en_US.utf8 1034s /tmp/tmp.W9X0maA7EE/en_US.utf8/LC_CTYPE 1034s /tmp/tmp.W9X0maA7EE/en_US.utf8/LC_NUMERIC 1034s /tmp/tmp.W9X0maA7EE/en_US.utf8/LC_TIME 1034s /tmp/tmp.W9X0maA7EE/en_US.utf8/LC_COLLATE 1034s /tmp/tmp.W9X0maA7EE/en_US.utf8/LC_MONETARY 1034s /tmp/tmp.W9X0maA7EE/en_US.utf8/LC_MESSAGES 1034s /tmp/tmp.W9X0maA7EE/en_US.utf8/LC_MESSAGES/SYS_LC_MESSAGES 1034s /tmp/tmp.W9X0maA7EE/en_US.utf8/LC_PAPER 1034s /tmp/tmp.W9X0maA7EE/en_US.utf8/LC_NAME 1034s /tmp/tmp.W9X0maA7EE/en_US.utf8/LC_ADDRESS 1034s /tmp/tmp.W9X0maA7EE/en_US.utf8/LC_TELEPHONE 1034s /tmp/tmp.W9X0maA7EE/en_US.utf8/LC_MEASUREMENT 1034s /tmp/tmp.W9X0maA7EE/en_US.utf8/LC_IDENTIFICATION 1034s /tmp/tmp.W9X0maA7EE/es_ES.utf8 1034s /tmp/tmp.W9X0maA7EE/es_ES.utf8/LC_CTYPE 1034s /tmp/tmp.W9X0maA7EE/es_ES.utf8/LC_NUMERIC 1034s /tmp/tmp.W9X0maA7EE/es_ES.utf8/LC_TIME 1034s /tmp/tmp.W9X0maA7EE/es_ES.utf8/LC_COLLATE 1034s /tmp/tmp.W9X0maA7EE/es_ES.utf8/LC_MONETARY 1034s /tmp/tmp.W9X0maA7EE/es_ES.utf8/LC_MESSAGES 1034s /tmp/tmp.W9X0maA7EE/es_ES.utf8/LC_MESSAGES/SYS_LC_MESSAGES 1034s /tmp/tmp.W9X0maA7EE/es_ES.utf8/LC_PAPER 1034s /tmp/tmp.W9X0maA7EE/es_ES.utf8/LC_NAME 1034s /tmp/tmp.W9X0maA7EE/es_ES.utf8/LC_ADDRESS 1034s /tmp/tmp.W9X0maA7EE/es_ES.utf8/LC_TELEPHONE 1034s /tmp/tmp.W9X0maA7EE/es_ES.utf8/LC_MEASUREMENT 1034s /tmp/tmp.W9X0maA7EE/es_ES.utf8/LC_IDENTIFICATION 1034s /tmp/tmp.W9X0maA7EE/fa_IR 1034s /tmp/tmp.W9X0maA7EE/fa_IR/LC_CTYPE 1034s /tmp/tmp.W9X0maA7EE/fa_IR/LC_NUMERIC 1034s /tmp/tmp.W9X0maA7EE/fa_IR/LC_TIME 1034s /tmp/tmp.W9X0maA7EE/fa_IR/LC_COLLATE 1034s /tmp/tmp.W9X0maA7EE/fa_IR/LC_MONETARY 1034s /tmp/tmp.W9X0maA7EE/fa_IR/LC_MESSAGES 1034s /tmp/tmp.W9X0maA7EE/fa_IR/LC_MESSAGES/SYS_LC_MESSAGES 1034s /tmp/tmp.W9X0maA7EE/fa_IR/LC_PAPER 1034s /tmp/tmp.W9X0maA7EE/fa_IR/LC_NAME 1034s /tmp/tmp.W9X0maA7EE/fa_IR/LC_ADDRESS 1034s /tmp/tmp.W9X0maA7EE/fa_IR/LC_TELEPHONE 1034s /tmp/tmp.W9X0maA7EE/fa_IR/LC_MEASUREMENT 1034s /tmp/tmp.W9X0maA7EE/fa_IR/LC_IDENTIFICATION 1034s /tmp/tmp.W9X0maA7EE/fa_IR.utf8 1034s /tmp/tmp.W9X0maA7EE/fa_IR.utf8/LC_CTYPE 1034s /tmp/tmp.W9X0maA7EE/fa_IR.utf8/LC_NUMERIC 1034s /tmp/tmp.W9X0maA7EE/fa_IR.utf8/LC_TIME 1034s /tmp/tmp.W9X0maA7EE/fa_IR.utf8/LC_COLLATE 1034s /tmp/tmp.W9X0maA7EE/fa_IR.utf8/LC_MONETARY 1034s /tmp/tmp.W9X0maA7EE/fa_IR.utf8/LC_MESSAGES 1034s /tmp/tmp.W9X0maA7EE/fa_IR.utf8/LC_MESSAGES/SYS_LC_MESSAGES 1034s /tmp/tmp.W9X0maA7EE/fa_IR.utf8/LC_PAPER 1034s /tmp/tmp.W9X0maA7EE/fa_IR.utf8/LC_NAME 1034s /tmp/tmp.W9X0maA7EE/fa_IR.utf8/LC_ADDRESS 1034s /tmp/tmp.W9X0maA7EE/fa_IR.utf8/LC_TELEPHONE 1034s /tmp/tmp.W9X0maA7EE/fa_IR.utf8/LC_MEASUREMENT 1034s /tmp/tmp.W9X0maA7EE/fa_IR.utf8/LC_IDENTIFICATION 1034s /tmp/tmp.W9X0maA7EE/fr_FR.utf8 1034s /tmp/tmp.W9X0maA7EE/fr_FR.utf8/LC_CTYPE 1034s /tmp/tmp.W9X0maA7EE/fr_FR.utf8/LC_NUMERIC 1034s /tmp/tmp.W9X0maA7EE/fr_FR.utf8/LC_TIME 1034s /tmp/tmp.W9X0maA7EE/fr_FR.utf8/LC_COLLATE 1034s /tmp/tmp.W9X0maA7EE/fr_FR.utf8/LC_MONETARY 1034s /tmp/tmp.W9X0maA7EE/fr_FR.utf8/LC_MESSAGES 1034s /tmp/tmp.W9X0maA7EE/fr_FR.utf8/LC_MESSAGES/SYS_LC_MESSAGES 1034s /tmp/tmp.W9X0maA7EE/fr_FR.utf8/LC_PAPER 1034s /tmp/tmp.W9X0maA7EE/fr_FR.utf8/LC_NAME 1034s /tmp/tmp.W9X0maA7EE/fr_FR.utf8/LC_ADDRESS 1034s /tmp/tmp.W9X0maA7EE/fr_FR.utf8/LC_TELEPHONE 1034s /tmp/tmp.W9X0maA7EE/fr_FR.utf8/LC_MEASUREMENT 1034s /tmp/tmp.W9X0maA7EE/fr_FR.utf8/LC_IDENTIFICATION 1034s /tmp/tmp.W9X0maA7EE/hr_HR.utf8 1034s /tmp/tmp.W9X0maA7EE/hr_HR.utf8/LC_CTYPE 1034s /tmp/tmp.W9X0maA7EE/hr_HR.utf8/LC_NUMERIC 1034s /tmp/tmp.W9X0maA7EE/hr_HR.utf8/LC_TIME 1034s /tmp/tmp.W9X0maA7EE/hr_HR.utf8/LC_COLLATE 1034s /tmp/tmp.W9X0maA7EE/hr_HR.utf8/LC_MONETARY 1034s /tmp/tmp.W9X0maA7EE/hr_HR.utf8/LC_MESSAGES 1034s /tmp/tmp.W9X0maA7EE/hr_HR.utf8/LC_MESSAGES/SYS_LC_MESSAGES 1034s /tmp/tmp.W9X0maA7EE/hr_HR.utf8/LC_PAPER 1034s /tmp/tmp.W9X0maA7EE/hr_HR.utf8/LC_NAME 1034s /tmp/tmp.W9X0maA7EE/hr_HR.utf8/LC_ADDRESS 1034s /tmp/tmp.W9X0maA7EE/hr_HR.utf8/LC_TELEPHONE 1034s /tmp/tmp.W9X0maA7EE/hr_HR.utf8/LC_MEASUREMENT 1034s /tmp/tmp.W9X0maA7EE/hr_HR.utf8/LC_IDENTIFICATION 1034s /tmp/tmp.W9X0maA7EE/ja_JP.utf8 1034s /tmp/tmp.W9X0maA7EE/ja_JP.utf8/LC_CTYPE 1034s /tmp/tmp.W9X0maA7EE/ja_JP.utf8/LC_NUMERIC 1034s /tmp/tmp.W9X0maA7EE/ja_JP.utf8/LC_TIME 1034s /tmp/tmp.W9X0maA7EE/ja_JP.utf8/LC_COLLATE 1034s /tmp/tmp.W9X0maA7EE/ja_JP.utf8/LC_MONETARY 1034s /tmp/tmp.W9X0maA7EE/ja_JP.utf8/LC_MESSAGES 1034s /tmp/tmp.W9X0maA7EE/ja_JP.utf8/LC_MESSAGES/SYS_LC_MESSAGES 1034s /tmp/tmp.W9X0maA7EE/ja_JP.utf8/LC_PAPER 1034s /tmp/tmp.W9X0maA7EE/ja_JP.utf8/LC_NAME 1034s /tmp/tmp.W9X0maA7EE/ja_JP.utf8/LC_ADDRESS 1034s /tmp/tmp.W9X0maA7EE/ja_JP.utf8/LC_TELEPHONE 1034s /tmp/tmp.W9X0maA7EE/ja_JP.utf8/LC_MEASUREMENT 1034s /tmp/tmp.W9X0maA7EE/ja_JP.utf8/LC_IDENTIFICATION 1034s /tmp/tmp.W9X0maA7EE/ja_JP.eucjp 1034s /tmp/tmp.W9X0maA7EE/ja_JP.eucjp/LC_CTYPE 1034s /tmp/tmp.W9X0maA7EE/ja_JP.eucjp/LC_NUMERIC 1034s /tmp/tmp.W9X0maA7EE/ja_JP.eucjp/LC_TIME 1034s /tmp/tmp.W9X0maA7EE/ja_JP.eucjp/LC_COLLATE 1034s /tmp/tmp.W9X0maA7EE/ja_JP.eucjp/LC_MONETARY 1034s /tmp/tmp.W9X0maA7EE/ja_JP.eucjp/LC_MESSAGES 1034s /tmp/tmp.W9X0maA7EE/ja_JP.eucjp/LC_MESSAGES/SYS_LC_MESSAGES 1034s /tmp/tmp.W9X0maA7EE/ja_JP.eucjp/LC_PAPER 1034s /tmp/tmp.W9X0maA7EE/ja_JP.eucjp/LC_NAME 1034s /tmp/tmp.W9X0maA7EE/ja_JP.eucjp/LC_ADDRESS 1034s /tmp/tmp.W9X0maA7EE/ja_JP.eucjp/LC_TELEPHONE 1034s /tmp/tmp.W9X0maA7EE/ja_JP.eucjp/LC_MEASUREMENT 1034s /tmp/tmp.W9X0maA7EE/ja_JP.eucjp/LC_IDENTIFICATION 1034s /tmp/tmp.W9X0maA7EE/lt_LT.utf8 1034s /tmp/tmp.W9X0maA7EE/lt_LT.utf8/LC_CTYPE 1034s /tmp/tmp.W9X0maA7EE/lt_LT.utf8/LC_NUMERIC 1034s /tmp/tmp.W9X0maA7EE/lt_LT.utf8/LC_TIME 1034s /tmp/tmp.W9X0maA7EE/lt_LT.utf8/LC_COLLATE 1034s /tmp/tmp.W9X0maA7EE/lt_LT.utf8/LC_MONETARY 1034s /tmp/tmp.W9X0maA7EE/lt_LT.utf8/LC_MESSAGES 1034s /tmp/tmp.W9X0maA7EE/lt_LT.utf8/LC_MESSAGES/SYS_LC_MESSAGES 1034s /tmp/tmp.W9X0maA7EE/lt_LT.utf8/LC_PAPER 1034s /tmp/tmp.W9X0maA7EE/lt_LT.utf8/LC_NAME 1034s /tmp/tmp.W9X0maA7EE/lt_LT.utf8/LC_ADDRESS 1034s /tmp/tmp.W9X0maA7EE/lt_LT.utf8/LC_TELEPHONE 1034s /tmp/tmp.W9X0maA7EE/lt_LT.utf8/LC_MEASUREMENT 1034s /tmp/tmp.W9X0maA7EE/lt_LT.utf8/LC_IDENTIFICATION 1034s /tmp/tmp.W9X0maA7EE/pl_PL 1034s /tmp/tmp.W9X0maA7EE/pl_PL/LC_CTYPE 1034s /tmp/tmp.W9X0maA7EE/pl_PL/LC_NUMERIC 1034s /tmp/tmp.W9X0maA7EE/pl_PL/LC_TIME 1034s /tmp/tmp.W9X0maA7EE/pl_PL/LC_COLLATE 1034s /tmp/tmp.W9X0maA7EE/pl_PL/LC_MONETARY 1034s /tmp/tmp.W9X0maA7EE/pl_PL/LC_MESSAGES 1034s /tmp/tmp.W9X0maA7EE/pl_PL/LC_MESSAGES/SYS_LC_MESSAGES 1034s /tmp/tmp.W9X0maA7EE/pl_PL/LC_PAPER 1034s /tmp/tmp.W9X0maA7EE/pl_PL/LC_NAME 1034s /tmp/tmp.W9X0maA7EE/pl_PL/LC_ADDRESS 1034s /tmp/tmp.W9X0maA7EE/pl_PL/LC_TELEPHONE 1034s /tmp/tmp.W9X0maA7EE/pl_PL/LC_MEASUREMENT 1034s /tmp/tmp.W9X0maA7EE/pl_PL/LC_IDENTIFICATION 1034s /tmp/tmp.W9X0maA7EE/pl_PL.iso88592 1034s /tmp/tmp.W9X0maA7EE/pl_PL.iso88592/LC_CTYPE 1034s /tmp/tmp.W9X0maA7EE/pl_PL.iso88592/LC_NUMERIC 1034s /tmp/tmp.W9X0maA7EE/pl_PL.iso88592/LC_TIME 1034s /tmp/tmp.W9X0maA7EE/pl_PL.iso88592/LC_COLLATE 1034s /tmp/tmp.W9X0maA7EE/pl_PL.iso88592/LC_MONETARY 1034s /tmp/tmp.W9X0maA7EE/pl_PL.iso88592/LC_MESSAGES 1034s /tmp/tmp.W9X0maA7EE/pl_PL.iso88592/LC_MESSAGES/SYS_LC_MESSAGES 1034s /tmp/tmp.W9X0maA7EE/pl_PL.iso88592/LC_PAPER 1034s /tmp/tmp.W9X0maA7EE/pl_PL.iso88592/LC_NAME 1034s /tmp/tmp.W9X0maA7EE/pl_PL.iso88592/LC_ADDRESS 1034s /tmp/tmp.W9X0maA7EE/pl_PL.iso88592/LC_TELEPHONE 1034s /tmp/tmp.W9X0maA7EE/pl_PL.iso88592/LC_MEASUREMENT 1034s /tmp/tmp.W9X0maA7EE/pl_PL.iso88592/LC_IDENTIFICATION 1034s /tmp/tmp.W9X0maA7EE/pl_PL.utf8 1034s /tmp/tmp.W9X0maA7EE/pl_PL.utf8/LC_CTYPE 1034s /tmp/tmp.W9X0maA7EE/pl_PL.utf8/LC_NUMERIC 1034s /tmp/tmp.W9X0maA7EE/pl_PL.utf8/LC_TIME 1034s /tmp/tmp.W9X0maA7EE/pl_PL.utf8/LC_COLLATE 1034s /tmp/tmp.W9X0maA7EE/pl_PL.utf8/LC_MONETARY 1034s /tmp/tmp.W9X0maA7EE/pl_PL.utf8/LC_MESSAGES 1034s /tmp/tmp.W9X0maA7EE/pl_PL.utf8/LC_MESSAGES/SYS_LC_MESSAGES 1034s /tmp/tmp.W9X0maA7EE/pl_PL.utf8/LC_PAPER 1034s /tmp/tmp.W9X0maA7EE/pl_PL.utf8/LC_NAME 1034s /tmp/tmp.W9X0maA7EE/pl_PL.utf8/LC_ADDRESS 1034s /tmp/tmp.W9X0maA7EE/pl_PL.utf8/LC_TELEPHONE 1034s /tmp/tmp.W9X0maA7EE/pl_PL.utf8/LC_MEASUREMENT 1034s /tmp/tmp.W9X0maA7EE/pl_PL.utf8/LC_IDENTIFICATION 1034s /tmp/tmp.W9X0maA7EE/ru_RU 1034s /tmp/tmp.W9X0maA7EE/ru_RU/LC_CTYPE 1034s /tmp/tmp.W9X0maA7EE/ru_RU/LC_NUMERIC 1034s /tmp/tmp.W9X0maA7EE/ru_RU/LC_TIME 1034s /tmp/tmp.W9X0maA7EE/ru_RU/LC_COLLATE 1034s /tmp/tmp.W9X0maA7EE/ru_RU/LC_MONETARY 1034s /tmp/tmp.W9X0maA7EE/ru_RU/LC_MESSAGES 1034s /tmp/tmp.W9X0maA7EE/ru_RU/LC_MESSAGES/SYS_LC_MESSAGES 1034s /tmp/tmp.W9X0maA7EE/ru_RU/LC_PAPER 1034s /tmp/tmp.W9X0maA7EE/ru_RU/LC_NAME 1034s /tmp/tmp.W9X0maA7EE/ru_RU/LC_ADDRESS 1034s /tmp/tmp.W9X0maA7EE/ru_RU/LC_TELEPHONE 1034s /tmp/tmp.W9X0maA7EE/ru_RU/LC_MEASUREMENT 1034s /tmp/tmp.W9X0maA7EE/ru_RU/LC_IDENTIFICATION 1034s /tmp/tmp.W9X0maA7EE/ru_RU.utf8 1034s /tmp/tmp.W9X0maA7EE/ru_RU.utf8/LC_CTYPE 1034s /tmp/tmp.W9X0maA7EE/ru_RU.utf8/LC_NUMERIC 1034s /tmp/tmp.W9X0maA7EE/ru_RU.utf8/LC_TIME 1034s /tmp/tmp.W9X0maA7EE/ru_RU.utf8/LC_COLLATE 1034s /tmp/tmp.W9X0maA7EE/ru_RU.utf8/LC_MONETARY 1034s /tmp/tmp.W9X0maA7EE/ru_RU.utf8/LC_MESSAGES 1034s /tmp/tmp.W9X0maA7EE/ru_RU.utf8/LC_MESSAGES/SYS_LC_MESSAGES 1034s /tmp/tmp.W9X0maA7EE/ru_RU.utf8/LC_PAPER 1034s /tmp/tmp.W9X0maA7EE/ru_RU.utf8/LC_NAME 1034s /tmp/tmp.W9X0maA7EE/ru_RU.utf8/LC_ADDRESS 1034s /tmp/tmp.W9X0maA7EE/ru_RU.utf8/LC_TELEPHONE 1034s /tmp/tmp.W9X0maA7EE/ru_RU.utf8/LC_MEASUREMENT 1035s 1..332 1035s # Running test: glib/macros.test 1035s ok - glib/macros.test 1035s # Running test: glib/checksum.test 1035s /tmp/tmp.W9X0maA7EE/ru_RU.utf8/LC_IDENTIFICATION 1035s /tmp/tmp.W9X0maA7EE/sr_RS 1035s /tmp/tmp.W9X0maA7EE/sr_RS/LC_CTYPE 1035s /tmp/tmp.W9X0maA7EE/sr_RS/LC_NUMERIC 1035s /tmp/tmp.W9X0maA7EE/sr_RS/LC_TIME 1035s /tmp/tmp.W9X0maA7EE/sr_RS/LC_COLLATE 1035s /tmp/tmp.W9X0maA7EE/sr_RS/LC_MONETARY 1035s /tmp/tmp.W9X0maA7EE/sr_RS/LC_MESSAGES 1035s /tmp/tmp.W9X0maA7EE/sr_RS/LC_MESSAGES/SYS_LC_MESSAGES 1035s /tmp/tmp.W9X0maA7EE/sr_RS/LC_PAPER 1035s /tmp/tmp.W9X0maA7EE/sr_RS/LC_NAME 1035s /tmp/tmp.W9X0maA7EE/sr_RS/LC_ADDRESS 1035s /tmp/tmp.W9X0maA7EE/sr_RS/LC_TELEPHONE 1035s /tmp/tmp.W9X0maA7EE/sr_RS/LC_MEASUREMENT 1035s /tmp/tmp.W9X0maA7EE/sr_RS/LC_IDENTIFICATION 1035s /tmp/tmp.W9X0maA7EE/sr_RS@latin 1035s /tmp/tmp.W9X0maA7EE/sr_RS@latin/LC_CTYPE 1035s /tmp/tmp.W9X0maA7EE/sr_RS@latin/LC_NUMERIC 1035s /tmp/tmp.W9X0maA7EE/sr_RS@latin/LC_TIME 1035s /tmp/tmp.W9X0maA7EE/sr_RS@latin/LC_COLLATE 1035s /tmp/tmp.W9X0maA7EE/sr_RS@latin/LC_MONETARY 1035s /tmp/tmp.W9X0maA7EE/sr_RS@latin/LC_MESSAGES 1035s /tmp/tmp.W9X0maA7EE/sr_RS@latin/LC_MESSAGES/SYS_LC_MESSAGES 1035s /tmp/tmp.W9X0maA7EE/sr_RS@latin/LC_PAPER 1035s /tmp/tmp.W9X0maA7EE/sr_RS@latin/LC_NAME 1035s /tmp/tmp.W9X0maA7EE/sr_RS@latin/LC_ADDRESS 1035s /tmp/tmp.W9X0maA7EE/sr_RS@latin/LC_TELEPHONE 1035s /tmp/tmp.W9X0maA7EE/sr_RS@latin/LC_MEASUREMENT 1035s /tmp/tmp.W9X0maA7EE/sr_RS@latin/LC_IDENTIFICATION 1035s /tmp/tmp.W9X0maA7EE/sv_SE 1035s /tmp/tmp.W9X0maA7EE/sv_SE/LC_CTYPE 1035s /tmp/tmp.W9X0maA7EE/sv_SE/LC_NUMERIC 1035s /tmp/tmp.W9X0maA7EE/sv_SE/LC_TIME 1035s /tmp/tmp.W9X0maA7EE/sv_SE/LC_COLLATE 1035s /tmp/tmp.W9X0maA7EE/sv_SE/LC_MONETARY 1035s /tmp/tmp.W9X0maA7EE/sv_SE/LC_MESSAGES 1035s /tmp/tmp.W9X0maA7EE/sv_SE/LC_MESSAGES/SYS_LC_MESSAGES 1035s /tmp/tmp.W9X0maA7EE/sv_SE/LC_PAPER 1035s /tmp/tmp.W9X0maA7EE/sv_SE/LC_NAME 1035s /tmp/tmp.W9X0maA7EE/sv_SE/LC_ADDRESS 1035s /tmp/tmp.W9X0maA7EE/sv_SE/LC_TELEPHONE 1035s /tmp/tmp.W9X0maA7EE/sv_SE/LC_MEASUREMENT 1035s /tmp/tmp.W9X0maA7EE/sv_SE/LC_IDENTIFICATION 1035s /tmp/tmp.W9X0maA7EE/sv_SE.utf8 1035s /tmp/tmp.W9X0maA7EE/sv_SE.utf8/LC_CTYPE 1035s /tmp/tmp.W9X0maA7EE/sv_SE.utf8/LC_NUMERIC 1035s /tmp/tmp.W9X0maA7EE/sv_SE.utf8/LC_TIME 1035s /tmp/tmp.W9X0maA7EE/sv_SE.utf8/LC_COLLATE 1035s /tmp/tmp.W9X0maA7EE/sv_SE.utf8/LC_MONETARY 1035s /tmp/tmp.W9X0maA7EE/sv_SE.utf8/LC_MESSAGES 1035s /tmp/tmp.W9X0maA7EE/sv_SE.utf8/LC_MESSAGES/SYS_LC_MESSAGES 1035s /tmp/tmp.W9X0maA7EE/sv_SE.utf8/LC_PAPER 1035s /tmp/tmp.W9X0maA7EE/sv_SE.utf8/LC_NAME 1035s /tmp/tmp.W9X0maA7EE/sv_SE.utf8/LC_ADDRESS 1035s /tmp/tmp.W9X0maA7EE/sv_SE.utf8/LC_TELEPHONE 1035s /tmp/tmp.W9X0maA7EE/sv_SE.utf8/LC_MEASUREMENT 1035s /tmp/tmp.W9X0maA7EE/sv_SE.utf8/LC_IDENTIFICATION 1035s /tmp/tmp.W9X0maA7EE/tr_TR 1035s /tmp/tmp.W9X0maA7EE/tr_TR/LC_CTYPE 1035s /tmp/tmp.W9X0maA7EE/tr_TR/LC_NUMERIC 1035s /tmp/tmp.W9X0maA7EE/tr_TR/LC_TIME 1035s /tmp/tmp.W9X0maA7EE/tr_TR/LC_COLLATE 1035s /tmp/tmp.W9X0maA7EE/tr_TR/LC_MONETARY 1035s /tmp/tmp.W9X0maA7EE/tr_TR/LC_MESSAGES 1035s /tmp/tmp.W9X0maA7EE/tr_TR/LC_MESSAGES/SYS_LC_MESSAGES 1035s /tmp/tmp.W9X0maA7EE/tr_TR/LC_PAPER 1035s /tmp/tmp.W9X0maA7EE/tr_TR/LC_NAME 1035s /tmp/tmp.W9X0maA7EE/tr_TR/LC_ADDRESS 1035s /tmp/tmp.W9X0maA7EE/tr_TR/LC_TELEPHONE 1035s /tmp/tmp.W9X0maA7EE/tr_TR/LC_MEASUREMENT 1035s /tmp/tmp.W9X0maA7EE/tr_TR/LC_IDENTIFICATION 1035s /tmp/tmp.W9X0maA7EE/tr_TR.utf8 1035s /tmp/tmp.W9X0maA7EE/tr_TR.utf8/LC_CTYPE 1035s /tmp/tmp.W9X0maA7EE/tr_TR.utf8/LC_NUMERIC 1035s /tmp/tmp.W9X0maA7EE/tr_TR.utf8/LC_TIME 1035s /tmp/tmp.W9X0maA7EE/tr_TR.utf8/LC_COLLATE 1035s /tmp/tmp.W9X0maA7EE/tr_TR.utf8/LC_MONETARY 1035s /tmp/tmp.W9X0maA7EE/tr_TR.utf8/LC_MESSAGES 1035s /tmp/tmp.W9X0maA7EE/tr_TR.utf8/LC_MESSAGES/SYS_LC_MESSAGES 1035s /tmp/tmp.W9X0maA7EE/tr_TR.utf8/LC_PAPER 1035s /tmp/tmp.W9X0maA7EE/tr_TR.utf8/LC_NAME 1035s /tmp/tmp.W9X0maA7EE/tr_TR.utf8/LC_ADDRESS 1035s /tmp/tmp.W9X0maA7EE/tr_TR.utf8/LC_TELEPHONE 1035s /tmp/tmp.W9X0maA7EE/tr_TR.utf8/LC_MEASUREMENT 1035s /tmp/tmp.W9X0maA7EE/tr_TR.utf8/LC_IDENTIFICATION 1035s /tmp/tmp.W9X0maA7EE/tt_RU 1035s /tmp/tmp.W9X0maA7EE/tt_RU/LC_CTYPE 1035s /tmp/tmp.W9X0maA7EE/tt_RU/LC_NUMERIC 1035s /tmp/tmp.W9X0maA7EE/tt_RU/LC_TIME 1035s /tmp/tmp.W9X0maA7EE/tt_RU/LC_COLLATE 1035s /tmp/tmp.W9X0maA7EE/tt_RU/LC_MONETARY 1035s /tmp/tmp.W9X0maA7EE/tt_RU/LC_MESSAGES 1035s /tmp/tmp.W9X0maA7EE/tt_RU/LC_MESSAGES/SYS_LC_MESSAGES 1035s /tmp/tmp.W9X0maA7EE/tt_RU/LC_PAPER 1035s /tmp/tmp.W9X0maA7EE/tt_RU/LC_NAME 1035s /tmp/tmp.W9X0maA7EE/tt_RU/LC_ADDRESS 1035s /tmp/tmp.W9X0maA7EE/tt_RU/LC_TELEPHONE 1035s /tmp/tmp.W9X0maA7EE/tt_RU/LC_MEASUREMENT 1035s /tmp/tmp.W9X0maA7EE/tt_RU/LC_IDENTIFICATION 1035s /tmp/tmp.W9X0maA7EE/tt_RU.utf8 1035s /tmp/tmp.W9X0maA7EE/tt_RU.utf8/LC_CTYPE 1035s /tmp/tmp.W9X0maA7EE/tt_RU.utf8/LC_NUMERIC 1035s /tmp/tmp.W9X0maA7EE/tt_RU.utf8/LC_TIME 1035s /tmp/tmp.W9X0maA7EE/tt_RU.utf8/LC_COLLATE 1035s /tmp/tmp.W9X0maA7EE/tt_RU.utf8/LC_MONETARY 1035s /tmp/tmp.W9X0maA7EE/tt_RU.utf8/LC_MESSAGES 1035s /tmp/tmp.W9X0maA7EE/tt_RU.utf8/LC_MESSAGES/SYS_LC_MESSAGES 1035s /tmp/tmp.W9X0maA7EE/tt_RU.utf8/LC_PAPER 1035s /tmp/tmp.W9X0maA7EE/tt_RU.utf8/LC_NAME 1035s /tmp/tmp.W9X0maA7EE/tt_RU.utf8/LC_ADDRESS 1035s /tmp/tmp.W9X0maA7EE/tt_RU.utf8/LC_TELEPHONE 1035s /tmp/tmp.W9X0maA7EE/tt_RU.utf8/LC_MEASUREMENT 1035s /tmp/tmp.W9X0maA7EE/tt_RU.utf8/LC_IDENTIFICATION 1035s /tmp/tmp.W9X0maA7EE/tt_RU@iqtelif 1035s /tmp/tmp.W9X0maA7EE/tt_RU@iqtelif/LC_CTYPE 1035s /tmp/tmp.W9X0maA7EE/tt_RU@iqtelif/LC_NUMERIC 1035s /tmp/tmp.W9X0maA7EE/tt_RU@iqtelif/LC_TIME 1035s /tmp/tmp.W9X0maA7EE/tt_RU@iqtelif/LC_COLLATE 1035s /tmp/tmp.W9X0maA7EE/tt_RU@iqtelif/LC_MONETARY 1035s /tmp/tmp.W9X0maA7EE/tt_RU@iqtelif/LC_MESSAGES 1035s /tmp/tmp.W9X0maA7EE/tt_RU@iqtelif/LC_MESSAGES/SYS_LC_MESSAGES 1035s /tmp/tmp.W9X0maA7EE/tt_RU@iqtelif/LC_PAPER 1035s /tmp/tmp.W9X0maA7EE/tt_RU@iqtelif/LC_NAME 1035s /tmp/tmp.W9X0maA7EE/tt_RU@iqtelif/LC_ADDRESS 1035s /tmp/tmp.W9X0maA7EE/tt_RU@iqtelif/LC_TELEPHONE 1035s /tmp/tmp.W9X0maA7EE/tt_RU@iqtelif/LC_MEASUREMENT 1035s /tmp/tmp.W9X0maA7EE/tt_RU@iqtelif/LC_IDENTIFICATION 1035s TAP version 14 1035s # random seed: R02S774544267318e39a177df7936bc4b01c 1035s 1..3 1035s # Start of alignof tests 1035s ok 1 /alignof/fallback 1035s # End of alignof tests 1035s # Start of assert tests 1035s ok 2 /assert/static 1035s # End of assert tests 1035s # Start of struct tests 1035s ok 3 /struct/sizeof_member 1035s # End of struct tests 1035s TAP version 14 1035s # random seed: R02Sfca471ce1b3e2cc940b17fc14a524abb 1035s 1..1851 1035s # Start of checksum tests 1035s ok 1 /checksum/unsupported 1035s # Start of MD5 tests 1035s ok 2 /checksum/MD5/0 1035s ok 3 /checksum/MD5/1 1035s ok 4 /checksum/MD5/2 1035s ok 5 /checksum/MD5/3 1035s ok 6 /checksum/MD5/4 1035s ok 7 /checksum/MD5/5 1035s ok 8 /checksum/MD5/6 1035s ok 9 /checksum/MD5/7 1035s ok 10 /checksum/MD5/8 1035s ok 11 /checksum/MD5/9 1035s ok 12 /checksum/MD5/10 1035s ok 13 /checksum/MD5/11 1035s ok 14 /checksum/MD5/12 1035s ok 15 /checksum/MD5/13 1035s ok 16 /checksum/MD5/14 1035s ok 17 /checksum/MD5/15 1035s ok 18 /checksum/MD5/16 1035s ok 19 /checksum/MD5/17 1035s ok 20 /checksum/MD5/18 1035s ok 21 /checksum/MD5/19 1035s ok 22 /checksum/MD5/20 1035s ok 23 /checksum/MD5/21 1035s ok 24 /checksum/MD5/22 1035s ok 25 /checksum/MD5/23 1035s ok 26 /checksum/MD5/24 1035s ok 27 /checksum/MD5/25 1035s ok 28 /checksum/MD5/26 1035s ok 29 /checksum/MD5/27 1035s ok 30 /checksum/MD5/28 1035s ok 31 /checksum/MD5/29 1035s ok 32 /checksum/MD5/30 1035s ok 33 /checksum/MD5/31 1035s ok 34 /checksum/MD5/32 1035s ok 35 /checksum/MD5/33 1035s ok 36 /checksum/MD5/34 1035s ok 37 /checksum/MD5/35 1035s ok 38 /checksum/MD5/36 1035s ok 39 /checksum/MD5/37 1035s ok 40 /checksum/MD5/38 1035s ok 41 /checksum/MD5/39 1035s ok 42 /checksum/MD5/40 1035s ok 43 /checksum/MD5/41 1035s ok 44 /checksum/MD5/42 1035s ok 45 /checksum/MD5/43 1035s ok 46 /checksum/MD5/44 1035s ok 47 /checksum/MD5/45 1035s ok 48 /checksum/MD5/46 1035s ok 49 /checksum/MD5/47 1035s ok 50 /checksum/MD5/48 1035s ok 51 /checksum/MD5/49 1035s ok 52 /checksum/MD5/50 1035s ok 53 /checksum/MD5/51 1035s ok 54 /checksum/MD5/52 1035s ok 55 /checksum/MD5/53 1035s ok 56 /checksum/MD5/54 1035s ok 57 /checksum/MD5/55 1035s ok 58 /checksum/MD5/56 1035s ok 59 /checksum/MD5/57 1035s ok 60 /checksum/MD5/58 1035s ok 61 /checksum/MD5/59 1035s ok 62 /checksum/MD5/60 1035s ok 63 /checksum/MD5/61 1035s ok 64 /checksum/MD5/62 1035s ok 65 /checksum/MD5/63 1035s ok 66 /checksum/MD5/64 1035s ok 67 /checksum/MD5/65 1035s ok 68 /checksum/MD5/66 1035s ok 69 /checksum/MD5/67 1035s ok 70 /checksum/MD5/68 1035s ok 71 /checksum/MD5/69 1035s ok 72 /checksum/MD5/70 1035s ok 73 /checksum/MD5/71 1035s ok 74 /checksum/MD5/72 1035s ok 75 /checksum/MD5/73 1035s ok 76 /checksum/MD5/74 1035s ok 77 /checksum/MD5/75 1035s ok 78 /checksum/MD5/76 1035s ok 79 /checksum/MD5/77 1035s ok 80 /checksum/MD5/78 1035s ok 81 /checksum/MD5/79 1035s ok 82 /checksum/MD5/80 1035s ok 83 /checksum/MD5/81 1035s ok 84 /checksum/MD5/82 1035s ok 85 /checksum/MD5/83 1035s ok 86 /checksum/MD5/84 1035s ok 87 /checksum/MD5/85 1035s ok 88 /checksum/MD5/86 1035s ok 89 /checksum/MD5/87 1035s ok 90 /checksum/MD5/88 1035s ok 91 /checksum/MD5/89 1035s ok 92 /checksum/MD5/90 1035s ok 93 /checksum/MD5/91 1035s ok 94 /checksum/MD5/92 1035s ok 95 /checksum/MD5/93 1035s ok 96 /checksum/MD5/94 1035s ok 97 /checksum/MD5/95 1035s ok 98 /checksum/MD5/96 1035s ok 99 /checksum/MD5/97 1035s ok 100 /checksum/MD5/98 1035s ok 101 /checksum/MD5/99 1035s ok 102 /checksum/MD5/100 1035s ok 103 /checksum/MD5/101 1035s ok 104 /checksum/MD5/102 1035s ok 105 /checksum/MD5/103 1035s ok 106 /checksum/MD5/104 1035s ok 107 /checksum/MD5/105 1035s ok 108 /checksum/MD5/106 1035s ok 109 /checksum/MD5/107 1035s ok 110 /checksum/MD5/108 1035s ok 111 /checksum/MD5/109 1035s ok 112 /checksum/MD5/110 1035s ok 113 /checksum/MD5/111 1035s ok 114 /checksum/MD5/112 1035s ok 115 /checksum/MD5/113 1035s ok 116 /checksum/MD5/114 1035s ok 117 /checksum/MD5/115 1035s ok 118 /checksum/MD5/116 1035s ok 119 /checksum/MD5/117 1035s ok 120 /checksum/MD5/118 1035s ok 121 /checksum/MD5/119 1035s ok 122 /checksum/MD5/120 1035s ok 123 /checksum/MD5/121 1035s ok 124 /checksum/MD5/122 1035s ok 125 /checksum/MD5/123 1035s ok 126 /checksum/MD5/124 1035s ok 127 /checksum/MD5/125 1035s ok 128 /checksum/MD5/126 1035s ok 129 /checksum/MD5/127 1035s ok 130 /checksum/MD5/128 1035s ok 131 /checksum/MD5/129 1035s ok 132 /checksum/MD5/130 1035s ok 133 /checksum/MD5/131 1035s ok 134 /checksum/MD5/132 1035s ok 135 /checksum/MD5/133 1035s ok 136 /checksum/MD5/134 1035s ok 137 /checksum/MD5/135 1035s ok 138 /checksum/MD5/136 1035s ok 139 /checksum/MD5/137 1035s ok 140 /checksum/MD5/138 1035s ok 141 /checksum/MD5/139 1035s ok 142 /checksum/MD5/140 1035s ok 143 /checksum/MD5/141 1035s ok 144 /checksum/MD5/142 1035s ok 145 /checksum/MD5/143 1035s ok 146 /checksum/MD5/144 1035s ok 147 /checksum/MD5/145 1035s ok 148 /checksum/MD5/146 1035s ok 149 /checksum/MD5/147 1035s ok 150 /checksum/MD5/148 1035s ok 151 /checksum/MD5/149 1035s ok 152 /checksum/MD5/150 1035s ok 153 /checksum/MD5/151 1035s ok 154 /checksum/MD5/152 1035s ok 155 /checksum/MD5/153 1035s ok 156 /checksum/MD5/154 1035s ok 157 /checksum/MD5/155 1035s ok 158 /checksum/MD5/156 1035s ok 159 /checksum/MD5/157 1035s ok 160 /checksum/MD5/158 1035s ok 161 /checksum/MD5/159 1035s ok 162 /checksum/MD5/160 1035s ok 163 /checksum/MD5/161 1035s ok 164 /checksum/MD5/162 1035s ok 165 /checksum/MD5/163 1035s ok 166 /checksum/MD5/164 1035s ok 167 /checksum/MD5/165 1035s ok 168 /checksum/MD5/166 1035s ok 169 /checksum/MD5/167 1035s ok 170 /checksum/MD5/168 1035s ok 171 /checksum/MD5/169 1035s ok 172 /checksum/MD5/170 1035s ok 173 /checksum/MD5/171 1035s ok 174 /checksum/MD5/172 1035s ok 175 /checksum/MD5/173 1035s ok 176 /checksum/MD5/174 1035s ok 177 /checksum/MD5/175 1035s ok 178 /checksum/MD5/176 1035s ok 179 /checksum/MD5/177 1035s ok 180 /checksum/MD5/178 1035s ok 181 /checksum/MD5/179 1035s ok 182 /checksum/MD5/180 1035s ok 183 /checksum/MD5/181 1035s ok 184 /checksum/MD5/182 1035s ok 185 /checksum/MD5/183 1035s ok 186 /checksum/MD5/string 1035s ok 187 /checksum/MD5/bytes 1035s # Start of reset tests 1035s ok 188 /checksum/MD5/reset/0 1035s ok 189 /checksum/MD5/reset/1 1035s ok 190 /checksum/MD5/reset/2 1035s ok 191 /checksum/MD5/reset/3 1035s ok 192 /checksum/MD5/reset/4 1035s ok 193 /checksum/MD5/reset/5 1035s ok 194 /checksum/MD5/reset/6 1035s ok 195 /checksum/MD5/reset/7 1035s ok 196 /checksum/MD5/reset/8 1035s ok 197 /checksum/MD5/reset/9 1035s ok 198 /checksum/MD5/reset/10 1035s ok 199 /checksum/MD5/reset/11 1035s ok 200 /checksum/MD5/reset/12 1035s ok 201 /checksum/MD5/reset/13 1035s ok 202 /checksum/MD5/reset/14 1035s ok 203 /checksum/MD5/reset/15 1035s ok 204 /checksum/MD5/reset/16 1035s ok 205 /checksum/MD5/reset/17 1035s ok 206 /checksum/MD5/reset/18 1035s ok 207 /checksum/MD5/reset/19 1035s ok 208 /checksum/MD5/reset/20 1035s ok 209 /checksum/MD5/reset/21 1035s ok 210 /checksum/MD5/reset/22 1035s ok 211 /checksum/MD5/reset/23 1035s ok 212 /checksum/MD5/reset/24 1035s ok 213 /checksum/MD5/reset/25 1035s ok 214 /checksum/MD5/reset/26 1035s ok 215 /checksum/MD5/reset/27 1035s ok 216 /checksum/MD5/reset/28 1035s ok 217 /checksum/MD5/reset/29 1035s ok 218 /checksum/MD5/reset/30 1035s ok 219 /checksum/MD5/reset/31 1035s ok 220 /checksum/MD5/reset/32 1035s ok 221 /checksum/MD5/reset/33 1035s ok 222 /checksum/MD5/reset/34 1035s ok 223 /checksum/MD5/reset/35 1035s ok 224 /checksum/MD5/reset/36 1035s ok 225 /checksum/MD5/reset/37 1035s ok 226 /checksum/MD5/reset/38 1035s ok 227 /checksum/MD5/reset/39 1035s ok 228 /checksum/MD5/reset/40 1035s ok 229 /checksum/MD5/reset/41 1035s ok 230 /checksum/MD5/reset/42 1035s ok 231 /checksum/MD5/reset/43 1035s ok 232 /checksum/MD5/reset/44 1035s ok 233 /checksum/MD5/reset/45 1035s ok 234 /checksum/MD5/reset/46 1035s ok 235 /checksum/MD5/reset/47 1035s ok 236 /checksum/MD5/reset/48 1035s ok 237 /checksum/MD5/reset/49 1035s ok 238 /checksum/MD5/reset/50 1035s ok 239 /checksum/MD5/reset/51 1035s ok 240 /checksum/MD5/reset/52 1035s ok 241 /checksum/MD5/reset/53 1035s ok 242 /checksum/MD5/reset/54 1035s ok 243 /checksum/MD5/reset/55 1035s ok 244 /checksum/MD5/reset/56 1035s ok 245 /checksum/MD5/reset/57 1035s ok 246 /checksum/MD5/reset/58 1035s ok 247 /checksum/MD5/reset/59 1035s ok 248 /checksum/MD5/reset/60 1035s ok 249 /checksum/MD5/reset/61 1035s ok 250 /checksum/MD5/reset/62 1035s ok 251 /checksum/MD5/reset/63 1035s ok 252 /checksum/MD5/reset/64 1035s ok 253 /checksum/MD5/reset/65 1035s ok 254 /checksum/MD5/reset/66 1035s ok 255 /checksum/MD5/reset/67 1035s ok 256 /checksum/MD5/reset/68 1035s ok 257 /checksum/MD5/reset/69 1035s ok 258 /checksum/MD5/reset/70 1035s ok 259 /checksum/MD5/reset/71 1035s ok 260 /checksum/MD5/reset/72 1035s ok 261 /checksum/MD5/reset/73 1035s ok 262 /checksum/MD5/reset/74 1035s ok 263 /checksum/MD5/reset/75 1035s ok 264 /checksum/MD5/reset/76 1035s ok 265 /checksum/MD5/reset/77 1035s ok 266 /checksum/MD5/reset/78 1035s ok 267 /checksum/MD5/reset/79 1035s ok 268 /checksum/MD5/reset/80 1035s ok 269 /checksum/MD5/reset/81 1035s ok 270 /checksum/MD5/reset/82 1035s ok 271 /checksum/MD5/reset/83 1035s ok 272 /checksum/MD5/reset/84 1035s ok 273 /checksum/MD5/reset/85 1035s ok 274 /checksum/MD5/reset/86 1035s ok 275 /checksum/MD5/reset/87 1035s ok 276 /checksum/MD5/reset/88 1035s ok 277 /checksum/MD5/reset/89 1035s ok 278 /checksum/MD5/reset/90 1035s ok 279 /checksum/MD5/reset/91 1035s ok 280 /checksum/MD5/reset/92 1035s ok 281 /checksum/MD5/reset/93 1035s ok 282 /checksum/MD5/reset/94 1035s ok 283 /checksum/MD5/reset/95 1035s ok 284 /checksum/MD5/reset/96 1035s ok 285 /checksum/MD5/reset/97 1035s ok 286 /checksum/MD5/reset/98 1035s ok 287 /checksum/MD5/reset/99 1035s ok 288 /checksum/MD5/reset/100 1035s ok 289 /checksum/MD5/reset/101 1035s ok 290 /checksum/MD5/reset/102 1035s ok 291 /checksum/MD5/reset/103 1035s ok 292 /checksum/MD5/reset/104 1035s ok 293 /checksum/MD5/reset/105 1035s ok 294 /checksum/MD5/reset/106 1035s ok 295 /checksum/MD5/reset/107 1035s ok 296 /checksum/MD5/reset/108 1035s ok 297 /checksum/MD5/reset/109 1035s ok 298 /checksum/MD5/reset/110 1035s ok 299 /checksum/MD5/reset/111 1035s ok 300 /checksum/MD5/reset/112 1035s ok 301 /checksum/MD5/reset/113 1035s ok 302 /checksum/MD5/reset/114 1035s ok 303 /checksum/MD5/reset/115 1035s ok 304 /checksum/MD5/reset/116 1035s ok 305 /checksum/MD5/reset/117 1035s ok 306 /checksum/MD5/reset/118 1035s ok 307 /checksum/MD5/reset/119 1035s ok 308 /checksum/MD5/reset/120 1035s ok 309 /checksum/MD5/reset/121 1035s ok 310 /checksum/MD5/reset/122 1035s ok 311 /checksum/MD5/reset/123 1035s ok 312 /checksum/MD5/reset/124 1035s ok 313 /checksum/MD5/reset/125 1035s ok 314 /checksum/MD5/reset/126 1035s ok 315 /checksum/MD5/reset/127 1035s ok 316 /checksum/MD5/reset/128 1035s ok 317 /checksum/MD5/reset/129 1035s ok 318 /checksum/MD5/reset/130 1035s ok 319 /checksum/MD5/reset/131 1035s ok 320 /checksum/MD5/reset/132 1035s ok 321 /checksum/MD5/reset/133 1035s ok 322 /checksum/MD5/reset/134 1035s ok 323 /checksum/MD5/reset/135 1035s ok 324 /checksum/MD5/reset/136 1035s ok 325 /checksum/MD5/reset/137 1035s ok 326 /checksum/MD5/reset/138 1035s ok 327 /checksum/MD5/reset/139 1035s ok 328 /checksum/MD5/reset/140 1035s ok 329 /checksum/MD5/reset/141 1035s ok 330 /checksum/MD5/reset/142 1035s ok 331 /checksum/MD5/reset/143 1035s ok 332 /checksum/MD5/reset/144 1035s ok 333 /checksum/MD5/reset/145 1035s ok 334 /checksum/MD5/reset/146 1035s ok 335 /checksum/MD5/reset/147 1035s ok 336 /checksum/MD5/reset/148 1035s ok 337 /checksum/MD5/reset/149 1035s ok 338 /checksum/MD5/reset/150 1035s ok 339 /checksum/MD5/reset/151 1035s ok 340 /checksum/MD5/reset/152 1035s ok 341 /checksum/MD5/reset/153 1035s ok 342 /checksum/MD5/reset/154 1035s ok 343 /checksum/MD5/reset/155 1035s ok 344 /checksum/MD5/reset/156 1035s ok 345 /checksum/MD5/reset/157 1035s ok 346 /checksum/MD5/reset/158 1035s ok 347 /checksum/MD5/reset/159 1035s ok 348 /checksum/MD5/reset/160 1035s ok 349 /checksum/MD5/reset/161 1035s ok 350 /checksum/MD5/reset/162 1035s ok 351 /checksum/MD5/reset/163 1035s ok 352 /checksum/MD5/reset/164 1035s ok 353 /checksum/MD5/reset/165 1035s ok 354 /checksum/MD5/reset/166 1035s ok 355 /checksum/MD5/reset/167 1035s ok 356 /checksum/MD5/reset/168 1035s ok 357 /checksum/MD5/reset/169 1035s ok 358 /checksum/MD5/reset/170 1035s ok 359 /checksum/MD5/reset/171 1035s ok 360 /checksum/MD5/reset/172 1035s ok 361 /checksum/MD5/reset/173 1035s ok 362 /checksum/MD5/reset/174 1035s ok 363 /checksum/MD5/reset/175 1035s ok 364 /checksum/MD5/reset/176 1035s ok 365 /checksum/MD5/reset/177 1035s ok 366 /checksum/MD5/reset/178 1035s ok 367 /checksum/MD5/reset/179 1035s ok 368 /checksum/MD5/reset/180 1035s ok 369 /checksum/MD5/reset/181 1035s ok 370 /checksum/MD5/reset/182 1035s ok 371 /checksum/MD5/reset/183 1035s # End of reset tests 1035s # End of MD5 tests 1035s # Start of SHA1 tests 1035s ok 372 /checksum/SHA1/0 1035s ok 373 /checksum/SHA1/1 1035s ok 374 /checksum/SHA1/2 1035s ok 375 /checksum/SHA1/3 1035s ok 376 /checksum/SHA1/4 1035s ok 377 /checksum/SHA1/5 1035s ok 378 /checksum/SHA1/6 1035s ok 379 /checksum/SHA1/7 1035s ok 380 /checksum/SHA1/8 1035s ok 381 /checksum/SHA1/9 1035s ok 382 /checksum/SHA1/10 1035s ok 383 /checksum/SHA1/11 1035s ok 384 /checksum/SHA1/12 1035s ok 385 /checksum/SHA1/13 1035s ok 386 /checksum/SHA1/14 1035s ok 387 /checksum/SHA1/15 1035s ok 388 /checksum/SHA1/16 1035s ok 389 /checksum/SHA1/17 1035s ok 390 /checksum/SHA1/18 1035s ok 391 /checksum/SHA1/19 1035s ok 392 /checksum/SHA1/20 1035s ok 393 /checksum/SHA1/21 1035s ok 394 /checksum/SHA1/22 1035s ok 395 /checksum/SHA1/23 1035s ok 396 /checksum/SHA1/24 1035s ok 397 /checksum/SHA1/25 1035s ok 398 /checksum/SHA1/26 1035s ok 399 /checksum/SHA1/27 1035s ok 400 /checksum/SHA1/28 1035s ok 401 /checksum/SHA1/29 1035s ok 402 /checksum/SHA1/30 1035s ok 403 /checksum/SHA1/31 1035s ok 404 /checksum/SHA1/32 1035s ok 405 /checksum/SHA1/33 1035s ok 406 /checksum/SHA1/34 1035s ok 407 /checksum/SHA1/35 1035s ok 408 /checksum/SHA1/36 1035s ok 409 /checksum/SHA1/37 1035s ok 410 /checksum/SHA1/38 1035s ok 411 /checksum/SHA1/39 1035s ok 412 /checksum/SHA1/40 1035s ok 413 /checksum/SHA1/41 1035s ok 414 /checksum/SHA1/42 1035s ok 415 /checksum/SHA1/43 1035s ok 416 /checksum/SHA1/44 1035s ok 417 /checksum/SHA1/45 1035s ok 418 /checksum/SHA1/46 1035s ok 419 /checksum/SHA1/47 1035s ok 420 /checksum/SHA1/48 1035s ok 421 /checksum/SHA1/49 1035s ok 422 /checksum/SHA1/50 1035s ok 423 /checksum/SHA1/51 1035s ok 424 /checksum/SHA1/52 1035s ok 425 /checksum/SHA1/53 1035s ok 426 /checksum/SHA1/54 1035s ok 427 /checksum/SHA1/55 1035s ok 428 /checksum/SHA1/56 1035s ok 429 /checksum/SHA1/57 1035s ok 430 /checksum/SHA1/58 1035s ok 431 /checksum/SHA1/59 1035s ok 432 /checksum/SHA1/60 1035s ok 433 /checksum/SHA1/61 1035s ok 434 /checksum/SHA1/62 1035s ok 435 /checksum/SHA1/63 1035s ok 436 /checksum/SHA1/64 1035s ok 437 /checksum/SHA1/65 1035s ok 438 /checksum/SHA1/66 1035s ok 439 /checksum/SHA1/67 1035s ok 440 /checksum/SHA1/68 1035s ok 441 /checksum/SHA1/69 1035s ok 442 /checksum/SHA1/70 1035s ok 443 /checksum/SHA1/71 1035s ok 444 /checksum/SHA1/72 1035s ok 445 /checksum/SHA1/73 1035s ok 446 /checksum/SHA1/74 1035s ok 447 /checksum/SHA1/75 1035s ok 448 /checksum/SHA1/76 1035s ok 449 /checksum/SHA1/77 1035s ok 450 /checksum/SHA1/78 1035s ok 451 /checksum/SHA1/79 1035s ok 452 /checksum/SHA1/80 1035s ok 453 /checksum/SHA1/81 1035s ok 454 /checksum/SHA1/82 1035s ok 455 /checksum/SHA1/83 1035s ok 456 /checksum/SHA1/84 1035s ok 457 /checksum/SHA1/85 1035s ok 458 /checksum/SHA1/86 1035s ok 459 /checksum/SHA1/87 1035s ok 460 /checksum/SHA1/88 1035s ok 461 /checksum/SHA1/89 1035s ok 462 /checksum/SHA1/90 1035s ok 463 /checksum/SHA1/91 1035s ok 464 /checksum/SHA1/92 1035s ok 465 /checksum/SHA1/93 1035s ok 466 /checksum/SHA1/94 1035s ok 467 /checksum/SHA1/95 1035s ok 468 /checksum/SHA1/96 1035s ok 469 /checksum/SHA1/97 1035s ok 470 /checksum/SHA1/98 1035s ok 471 /checksum/SHA1/99 1035s ok 472 /checksum/SHA1/100 1035s ok 473 /checksum/SHA1/101 1035s ok 474 /checksum/SHA1/102 1035s ok 475 /checksum/SHA1/103 1035s ok 476 /checksum/SHA1/104 1035s ok 477 /checksum/SHA1/105 1035s ok 478 /checksum/SHA1/106 1035s ok 479 /checksum/SHA1/107 1035s ok 480 /checksum/SHA1/108 1035s ok 481 /checksum/SHA1/109 1035s ok 482 /checksum/SHA1/110 1035s ok 483 /checksum/SHA1/111 1035s ok 484 /checksum/SHA1/112 1035s ok 485 /checksum/SHA1/113 1035s ok 486 /checksum/SHA1/114 1035s ok 487 /checksum/SHA1/115 1035s ok 488 /checksum/SHA1/116 1035s ok 489 /checksum/SHA1/117 1035s ok 490 /checksum/SHA1/118 1035s ok 491 /checksum/SHA1/119 1035s ok 492 /checksum/SHA1/120 1035s ok 493 /checksum/SHA1/121 1035s ok 494 /checksum/SHA1/122 1035s ok 495 /checksum/SHA1/123 1035s ok 496 /checksum/SHA1/124 1035s ok 497 /checksum/SHA1/125 1035s ok 498 /checksum/SHA1/126 1035s ok 499 /checksum/SHA1/127 1035s ok 500 /checksum/SHA1/128 1035s ok 501 /checksum/SHA1/129 1035s ok 502 /checksum/SHA1/130 1035s ok 503 /checksum/SHA1/131 1035s ok 504 /checksum/SHA1/132 1035s ok 505 /checksum/SHA1/133 1035s ok 506 /checksum/SHA1/134 1035s ok 507 /checksum/SHA1/135 1035s ok 508 /checksum/SHA1/136 1035s ok 509 /checksum/SHA1/137 1035s ok 510 /checksum/SHA1/138 1035s ok 511 /checksum/SHA1/139 1035s ok 512 /checksum/SHA1/140 1035s ok 513 /checksum/SHA1/141 1035s ok 514 /checksum/SHA1/142 1035s ok 515 /checksum/SHA1/143 1035s ok 516 /checksum/SHA1/144 1035s ok 517 /checksum/SHA1/145 1035s ok 518 /checksum/SHA1/146 1035s ok 519 /checksum/SHA1/147 1035s ok 520 /checksum/SHA1/148 1035s ok 521 /checksum/SHA1/149 1035s ok 522 /checksum/SHA1/150 1035s ok 523 /checksum/SHA1/151 1035s ok 524 /checksum/SHA1/152 1035s ok 525 /checksum/SHA1/153 1035s ok 526 /checksum/SHA1/154 1035s ok 527 /checksum/SHA1/155 1035s ok 528 /checksum/SHA1/156 1035s ok 529 /checksum/SHA1/157 1035s ok 530 /checksum/SHA1/158 1035s ok 531 /checksum/SHA1/159 1035s ok 532 /checksum/SHA1/160 1035s ok 533 /checksum/SHA1/161 1035s ok 534 /checksum/SHA1/162 1035s ok 535 /checksum/SHA1/163 1035s ok 536 /checksum/SHA1/164 1035s ok 537 /checksum/SHA1/165 1035s ok 538 /checksum/SHA1/166 1035s ok 539 /checksum/SHA1/167 1035s ok 540 /checksum/SHA1/168 1035s ok 541 /checksum/SHA1/169 1035s ok 542 /checksum/SHA1/170 1035s ok 543 /checksum/SHA1/171 1035s ok 544 /checksum/SHA1/172 1035s ok 545 /checksum/SHA1/173 1035s ok 546 /checksum/SHA1/174 1035s ok 547 /checksum/SHA1/175 1035s ok 548 /checksum/SHA1/176 1035s ok 549 /checksum/SHA1/177 1035s ok 550 /checksum/SHA1/178 1035s ok 551 /checksum/SHA1/179 1035s ok 552 /checksum/SHA1/180 1035s ok 553 /checksum/SHA1/181 1035s ok 554 /checksum/SHA1/182 1035s ok 555 /checksum/SHA1/183 1035s ok 556 /checksum/SHA1/string 1035s ok 557 /checksum/SHA1/bytes 1035s # Start of reset tests 1035s ok 558 /checksum/SHA1/reset/0 1035s ok 559 /checksum/SHA1/reset/1 1035s ok 560 /checksum/SHA1/reset/2 1035s ok 561 /checksum/SHA1/reset/3 1035s ok 562 /checksum/SHA1/reset/4 1035s ok 563 /checksum/SHA1/reset/5 1035s ok 564 /checksum/SHA1/reset/6 1035s ok 565 /checksum/SHA1/reset/7 1035s ok 566 /checksum/SHA1/reset/8 1035s ok 567 /checksum/SHA1/reset/9 1035s ok 568 /checksum/SHA1/reset/10 1035s ok 569 /checksum/SHA1/reset/11 1035s ok 570 /checksum/SHA1/reset/12 1035s ok 571 /checksum/SHA1/reset/13 1035s ok 572 /checksum/SHA1/reset/14 1035s ok 573 /checksum/SHA1/reset/15 1035s ok 574 /checksum/SHA1/reset/16 1035s ok 575 /checksum/SHA1/reset/17 1035s ok 576 /checksum/SHA1/reset/18 1035s ok 577 /checksum/SHA1/reset/19 1035s ok 578 /checksum/SHA1/reset/20 1035s ok 579 /checksum/SHA1/reset/21 1035s ok 580 /checksum/SHA1/reset/22 1035s ok 581 /checksum/SHA1/reset/23 1035s ok 582 /checksum/SHA1/reset/24 1035s ok 583 /checksum/SHA1/reset/25 1035s ok 584 /checksum/SHA1/reset/26 1035s ok 585 /checksum/SHA1/reset/27 1035s ok 586 /checksum/SHA1/reset/28 1035s ok 587 /checksum/SHA1/reset/29 1035s ok 588 /checksum/SHA1/reset/30 1035s ok 589 /checksum/SHA1/reset/31 1035s ok 590 /checksum/SHA1/reset/32 1035s ok 591 /checksum/SHA1/reset/33 1035s ok 592 /checksum/SHA1/reset/34 1035s ok 593 /checksum/SHA1/reset/35 1035s ok 594 /checksum/SHA1/reset/36 1035s ok 595 /checksum/SHA1/reset/37 1035s ok 596 /checksum/SHA1/reset/38 1035s ok 597 /checksum/SHA1/reset/39 1035s ok 598 /checksum/SHA1/reset/40 1035s ok 599 /checksum/SHA1/reset/41 1035s ok 600 /checksum/SHA1/reset/42 1035s ok 601 /checksum/SHA1/reset/43 1035s ok 602 /checksum/SHA1/reset/44 1035s ok 603 /checksum/SHA1/reset/45 1035s ok 604 /checksum/SHA1/reset/46 1035s ok 605 /checksum/SHA1/reset/47 1035s ok 606 /checksum/SHA1/reset/48 1035s ok 607 /checksum/SHA1/reset/49 1035s ok 608 /checksum/SHA1/reset/50 1035s ok 609 /checksum/SHA1/reset/51 1035s ok 610 /checksum/SHA1/reset/52 1035s ok 611 /checksum/SHA1/reset/53 1035s ok 612 /checksum/SHA1/reset/54 1035s ok 613 /checksum/SHA1/reset/55 1035s ok 614 /checksum/SHA1/reset/56 1035s ok 615 /checksum/SHA1/reset/57 1035s ok 616 /checksum/SHA1/reset/58 1035s ok 617 /checksum/SHA1/reset/59 1035s ok 618 /checksum/SHA1/reset/60 1035s ok 619 /checksum/SHA1/reset/61 1035s ok 620 /checksum/SHA1/reset/62 1035s ok 621 /checksum/SHA1/reset/63 1035s ok 622 /checksum/SHA1/reset/64 1035s ok 623 /checksum/SHA1/reset/65 1035s ok 624 /checksum/SHA1/reset/66 1035s ok 625 /checksum/SHA1/reset/67 1035s ok 626 /checksum/SHA1/reset/68 1035s ok 627 /checksum/SHA1/reset/69 1035s ok 628 /checksum/SHA1/reset/70 1035s ok 629 /checksum/SHA1/reset/71 1035s ok 630 /checksum/SHA1/reset/72 1035s ok 631 /checksum/SHA1/reset/73 1035s ok 632 /checksum/SHA1/reset/74 1035s ok 633 /checksum/SHA1/reset/75 1035s ok 634 /checksum/SHA1/reset/76 1035s ok 635 /checksum/SHA1/reset/77 1035s ok 636 /checksum/SHA1/reset/78 1035s ok 637 /checksum/SHA1/reset/79 1035s ok 638 /checksum/SHA1/reset/80 1035s ok 639 /checksum/SHA1/reset/81 1035s ok 640 /checksum/SHA1/reset/82 1035s ok 641 /checksum/SHA1/reset/83 1035s ok 642 /checksum/SHA1/reset/84 1035s ok 643 /checksum/SHA1/reset/85 1035s ok 644 /checksum/SHA1/reset/86 1035s ok 645 /checksum/SHA1/reset/87 1035s ok 646 /checksum/SHA1/reset/88 1035s ok 647 /checksum/SHA1/reset/89 1035s ok 648 /checksum/SHA1/reset/90 1035s ok 649 /checksum/SHA1/reset/91 1035s ok 650 /checksum/SHA1/reset/92 1035s ok 651 /checksum/SHA1/reset/93 1035s ok 652 /checksum/SHA1/reset/94 1035s ok 653 /checksum/SHA1/reset/95 1035s ok 654 /checksum/SHA1/reset/96 1035s ok 655 /checksum/SHA1/reset/97 1035s ok 656 /checksum/SHA1/reset/98 1035s ok 657 /checksum/SHA1/reset/99 1035s ok 658 /checksum/SHA1/reset/100 1035s ok 659 /checksum/SHA1/reset/101 1035s ok 660 /checksum/SHA1/reset/102 1035s ok 661 /checksum/SHA1/reset/103 1035s ok 662 /checksum/SHA1/reset/104 1035s ok 663 /checksum/SHA1/reset/105 1035s ok 664 /checksum/SHA1/reset/106 1035s ok 665 /checksum/SHA1/reset/107 1035s ok 666 /checksum/SHA1/reset/108 1035s ok 667 /checksum/SHA1/reset/109 1035s ok 668 /checksum/SHA1/reset/110 1035s ok 669 /checksum/SHA1/reset/111 1035s ok 670 /checksum/SHA1/reset/112 1035s ok 671 /checksum/SHA1/reset/113 1035s ok 672 /checksum/SHA1/reset/114 1035s ok 673 /checksum/SHA1/reset/115 1035s ok 674 /checksum/SHA1/reset/116 1035s ok 675 /checksum/SHA1/reset/117 1035s ok 676 /checksum/SHA1/reset/118 1035s ok 677 /checksum/SHA1/reset/119 1035s ok 678 /checksum/SHA1/reset/120 1035s ok 679 /checksum/SHA1/reset/121 1035s ok 680 /checksum/SHA1/reset/122 1035s ok 681 /checksum/SHA1/reset/123 1035s ok 682 /checksum/SHA1/reset/124 1035s ok 683 /checksum/SHA1/reset/125 1035s ok 684 /checksum/SHA1/reset/126 1035s ok 685 /checksum/SHA1/reset/127 1035s ok 686 /checksum/SHA1/reset/128 1035s ok 687 /checksum/SHA1/reset/129 1035s ok 688 /checksum/SHA1/reset/130 1035s ok 689 /checksum/SHA1/reset/131 1035s ok 690 /checksum/SHA1/reset/132 1035s ok 691 /checksum/SHA1/reset/133 1035s ok 692 /checksum/SHA1/reset/134 1035s ok 693 /checksum/SHA1/reset/135 1035s ok 694 /checksum/SHA1/reset/136 1035s ok 695 /checksum/SHA1/reset/137 1035s ok 696 /checksum/SHA1/reset/138 1035s ok 697 /checksum/SHA1/reset/139 1035s ok 698 /checksum/SHA1/reset/140 1035s ok 699 /checksum/SHA1/reset/141 1035s ok 700 /checksum/SHA1/reset/142 1035s ok 701 /checksum/SHA1/reset/143 1035s ok 702 /checksum/SHA1/reset/144 1035s ok 703 /checksum/SHA1/reset/145 1035s ok 704 /checksum/SHA1/reset/146 1035s ok 705 /checksum/SHA1/reset/147 1035s ok 706 /checksum/SHA1/reset/148 1035s ok 707 /checksum/SHA1/reset/149 1035s ok 708 /checksum/SHA1/reset/150 1035s ok 709 /checksum/SHA1/reset/151 1035s ok 710 /checksum/SHA1/reset/152 1035s ok 711 /checksum/SHA1/reset/153 1035s ok 712 /checksum/SHA1/reset/154 1035s ok 713 /checksum/SHA1/reset/155 1035s ok 714 /checksum/SHA1/reset/156 1035s ok 715 /checksum/SHA1/reset/157 1035s ok 716 /checksum/SHA1/reset/158 1035s ok 717 /checksum/SHA1/reset/159 1035s ok 718 /checksum/SHA1/reset/160 1035s ok 719 /checksum/SHA1/reset/161 1035s ok 720 /checksum/SHA1/reset/162 1035s ok 721 /checksum/SHA1/reset/163 1035s ok 722 /checksum/SHA1/reset/164 1035s ok 723 /checksum/SHA1/reset/165 1035s ok 724 /checksum/SHA1/reset/166 1035s ok 725 /checksum/SHA1/reset/167 1035s ok 726 /checksum/SHA1/reset/168 1035s ok 727 /checksum/SHA1/reset/169 1035s ok 728 /checksum/SHA1/reset/170 1035s ok 729 /checksum/SHA1/reset/171 1035s ok 730 /checksum/SHA1/reset/172 1035s ok 731 /checksum/SHA1/reset/173 1035s ok 732 /checksum/SHA1/reset/174 1035s ok 733 /checksum/SHA1/reset/175 1035s ok 734 /checksum/SHA1/reset/176 1035s ok 735 /checksum/SHA1/reset/177 1035s ok 736 /checksum/SHA1/reset/178 1035s ok 737 /checksum/SHA1/reset/179 1035s ok 738 /checksum/SHA1/reset/180 1035s ok 739 /checksum/SHA1/reset/181 1035s ok 740 /checksum/SHA1/reset/182 1035s ok 741 /checksum/SHA1/reset/183 1035s # End of reset tests 1035s # End of SHA1 tests 1035s # Start of SHA256 tests 1035s ok 742 /checksum/SHA256/0 1035s ok 743 /checksum/SHA256/1 1035s ok 744 /checksum/SHA256/2 1035s ok 745 /checksum/SHA256/3 1035s ok 746 /checksum/SHA256/4 1035s ok 747 /checksum/SHA256/5 1035s ok 748 /checksum/SHA256/6 1035s ok 749 /checksum/SHA256/7 1035s ok 750 /checksum/SHA256/8 1035s ok 751 /checksum/SHA256/9 1035s ok 752 /checksum/SHA256/10 1035s ok 753 /checksum/SHA256/11 1035s ok 754 /checksum/SHA256/12 1035s ok 755 /checksum/SHA256/13 1035s ok 756 /checksum/SHA256/14 1035s ok 757 /checksum/SHA256/15 1035s ok 758 /checksum/SHA256/16 1035s ok 759 /checksum/SHA256/17 1035s ok 760 /checksum/SHA256/18 1035s ok 761 /checksum/SHA256/19 1035s ok 762 /checksum/SHA256/20 1035s ok 763 /checksum/SHA256/21 1035s ok 764 /checksum/SHA256/22 1035s ok 765 /checksum/SHA256/23 1035s ok 766 /checksum/SHA256/24 1035s ok 767 /checksum/SHA256/25 1035s ok 768 /checksum/SHA256/26 1035s ok 769 /checksum/SHA256/27 1035s ok 770 /checksum/SHA256/28 1035s ok 771 /checksum/SHA256/29 1035s ok 772 /checksum/SHA256/30 1035s ok 773 /checksum/SHA256/31 1035s ok 774 /checksum/SHA256/32 1035s ok 775 /checksum/SHA256/33 1035s ok 776 /checksum/SHA256/34 1035s ok 777 /checksum/SHA256/35 1035s ok 778 /checksum/SHA256/36 1035s ok 779 /checksum/SHA256/37 1035s ok 780 /checksum/SHA256/38 1035s ok 781 /checksum/SHA256/39 1035s ok 782 /checksum/SHA256/40 1035s ok 783 /checksum/SHA256/41 1035s ok 784 /checksum/SHA256/42 1035s ok 785 /checksum/SHA256/43 1035s ok 786 /checksum/SHA256/44 1035s ok 787 /checksum/SHA256/45 1035s ok 788 /checksum/SHA256/46 1035s ok 789 /checksum/SHA256/47 1035s ok 790 /checksum/SHA256/48 1035s ok 791 /checksum/SHA256/49 1035s ok 792 /checksum/SHA256/50 1035s ok 793 /checksum/SHA256/51 1035s ok 794 /checksum/SHA256/52 1035s ok 795 /checksum/SHA256/53 1035s ok 796 /checksum/SHA256/54 1035s ok 797 /checksum/SHA256/55 1035s ok 798 /checksum/SHA256/56 1035s ok 799 /checksum/SHA256/57 1035s ok 800 /checksum/SHA256/58 1035s ok 801 /checksum/SHA256/59 1035s ok 802 /checksum/SHA256/60 1035s ok 803 /checksum/SHA256/61 1035s ok 804 /checksum/SHA256/62 1035s ok 805 /checksum/SHA256/63 1035s ok 806 /checksum/SHA256/64 1035s ok 807 /checksum/SHA256/65 1035s ok 808 /checksum/SHA256/66 1035s ok 809 /checksum/SHA256/67 1035s ok 810 /checksum/SHA256/68 1035s ok 811 /checksum/SHA256/69 1035s ok 812 /checksum/SHA256/70 1035s ok 813 /checksum/SHA256/71 1035s ok 814 /checksum/SHA256/72 1035s ok 815 /checksum/SHA256/73 1035s ok 816 /checksum/SHA256/74 1035s ok 817 /checksum/SHA256/75 1035s ok 818 /checksum/SHA256/76 1035s ok 819 /checksum/SHA256/77 1035s ok 820 /checksum/SHA256/78 1035s ok 821 /checksum/SHA256/79 1035s ok 822 /checksum/SHA256/80 1035s ok 823 /checksum/SHA256/81 1035s ok 824 /checksum/SHA256/82 1035s ok 825 /checksum/SHA256/83 1035s ok 826 /checksum/SHA256/84 1035s ok 827 /checksum/SHA256/85 1035s ok 828 /checksum/SHA256/86 1035s ok 829 /checksum/SHA256/87 1035s ok 830 /checksum/SHA256/88 1035s ok 831 /checksum/SHA256/89 1035s ok 832 /checksum/SHA256/90 1035s ok 833 /checksum/SHA256/91 1035s ok 834 /checksum/SHA256/92 1035s ok 835 /checksum/SHA256/93 1035s ok 836 /checksum/SHA256/94 1035s ok 837 /checksum/SHA256/95 1035s ok 838 /checksum/SHA256/96 1035s ok 839 /checksum/SHA256/97 1035s ok 840 /checksum/SHA256/98 1035s ok 841 /checksum/SHA256/99 1035s ok 842 /checksum/SHA256/100 1035s ok 843 /checksum/SHA256/101 1035s ok 844 /checksum/SHA256/102 1035s ok 845 /checksum/SHA256/103 1035s ok 846 /checksum/SHA256/104 1035s ok 847 /checksum/SHA256/105 1035s ok 848 /checksum/SHA256/106 1035s ok 849 /checksum/SHA256/107 1035s ok 850 /checksum/SHA256/108 1035s ok 851 /checksum/SHA256/109 1035s ok 852 /checksum/SHA256/110 1035s ok 853 /checksum/SHA256/111 1035s ok 854 /checksum/SHA256/112 1035s ok 855 /checksum/SHA256/113 1035s ok 856 /checksum/SHA256/114 1035s ok 857 /checksum/SHA256/115 1035s ok 858 /checksum/SHA256/116 1035s ok 859 /checksum/SHA256/117 1035s ok 860 /checksum/SHA256/118 1035s ok 861 /checksum/SHA256/119 1035s ok 862 /checksum/SHA256/120 1035s ok 863 /checksum/SHA256/121 1035s ok 864 /checksum/SHA256/122 1035s ok 865 /checksum/SHA256/123 1035s ok 866 /checksum/SHA256/124 1035s ok 867 /checksum/SHA256/125 1035s ok 868 /checksum/SHA256/126 1035s ok 869 /checksum/SHA256/127 1035s ok 870 /checksum/SHA256/128 1035s ok 871 /checksum/SHA256/129 1035s ok 872 /checksum/SHA256/130 1035s ok 873 /checksum/SHA256/131 1035s ok 874 /checksum/SHA256/132 1035s ok 875 /checksum/SHA256/133 1035s ok 876 /checksum/SHA256/134 1035s ok 877 /checksum/SHA256/135 1035s ok 878 /checksum/SHA256/136 1035s ok 879 /checksum/SHA256/137 1035s ok 880 /checksum/SHA256/138 1035s ok 881 /checksum/SHA256/139 1035s ok 882 /checksum/SHA256/140 1035s ok 883 /checksum/SHA256/141 1035s ok 884 /checksum/SHA256/142 1035s ok 885 /checksum/SHA256/143 1035s ok 886 /checksum/SHA256/144 1035s ok 887 /checksum/SHA256/145 1035s ok 888 /checksum/SHA256/146 1035s ok 889 /checksum/SHA256/147 1035s ok 890 /checksum/SHA256/148 1035s ok 891 /checksum/SHA256/149 1035s ok 892 /checksum/SHA256/150 1035s ok 893 /checksum/SHA256/151 1035s ok 894 /checksum/SHA256/152 1035s ok 895 /checksum/SHA256/153 1035s ok 896 /checksum/SHA256/154 1035s ok 897 /checksum/SHA256/155 1035s ok 898 /checksum/SHA256/156 1035s ok 899 /checksum/SHA256/157 1035s ok 900 /checksum/SHA256/158 1035s ok 901 /checksum/SHA256/159 1035s ok 902 /checksum/SHA256/160 1035s ok 903 /checksum/SHA256/161 1035s ok 904 /checksum/SHA256/162 1035s ok 905 /checksum/SHA256/163 1035s ok 906 /checksum/SHA256/164 1035s ok 907 /checksum/SHA256/165 1035s ok 908 /checksum/SHA256/166 1035s ok 909 /checksum/SHA256/167 1035s ok 910 /checksum/SHA256/168 1035s ok 911 /checksum/SHA256/169 1035s ok 912 /checksum/SHA256/170 1035s ok 913 /checksum/SHA256/171 1035s ok 914 /checksum/SHA256/172 1035s ok 915 /checksum/SHA256/173 1035s ok 916 /checksum/SHA256/174 1035s ok 917 /checksum/SHA256/175 1035s ok 918 /checksum/SHA256/176 1035s ok 919 /checksum/SHA256/177 1035s ok 920 /checksum/SHA256/178 1035s ok 921 /checksum/SHA256/179 1035s ok 922 /checksum/SHA256/180 1035s ok 923 /checksum/SHA256/181 1035s ok 924 /checksum/SHA256/182 1035s ok 925 /checksum/SHA256/183 1035s ok 926 /checksum/SHA256/string 1035s ok 927 /checksum/SHA256/bytes 1035s # Start of reset tests 1035s ok 928 /checksum/SHA256/reset/0 1035s ok 929 /checksum/SHA256/reset/1 1035s ok 930 /checksum/SHA256/reset/2 1035s ok 931 /checksum/SHA256/reset/3 1035s ok 932 /checksum/SHA256/reset/4 1035s ok 933 /checksum/SHA256/reset/5 1035s ok 934 /checksum/SHA256/reset/6 1035s ok 935 /checksum/SHA256/reset/7 1035s ok 936 /checksum/SHA256/reset/8 1035s ok 937 /checksum/SHA256/reset/9 1035s ok 938 /checksum/SHA256/reset/10 1035s ok 939 /checksum/SHA256/reset/11 1035s ok 940 /checksum/SHA256/reset/12 1035s ok 941 /checksum/SHA256/reset/13 1035s ok 942 /checksum/SHA256/reset/14 1035s ok 943 /checksum/SHA256/reset/15 1035s ok 944 /checksum/SHA256/reset/16 1035s ok 945 /checksum/SHA256/reset/17 1035s ok 946 /checksum/SHA256/reset/18 1035s ok 947 /checksum/SHA256/reset/19 1035s ok 948 /checksum/SHA256/reset/20 1035s ok 949 /checksum/SHA256/reset/21 1035s ok 950 /checksum/SHA256/reset/22 1035s ok 951 /checksum/SHA256/reset/23 1035s ok 952 /checksum/SHA256/reset/24 1035s ok 953 /checksum/SHA256/reset/25 1035s ok 954 /checksum/SHA256/reset/26 1035s ok 955 /checksum/SHA256/reset/27 1035s ok 956 /checksum/SHA256/reset/28 1035s ok 957 /checksum/SHA256/reset/29 1035s ok 958 /checksum/SHA256/reset/30 1035s ok 959 /checksum/SHA256/reset/31 1035s ok 960 /checksum/SHA256/reset/32 1035s ok 961 /checksum/SHA256/reset/33 1035s ok 962 /checksum/SHA256/reset/34 1035s ok 963 /checksum/SHA256/reset/35 1035s ok 964 /checksum/SHA256/reset/36 1035s ok 965 /checksum/SHA256/reset/37 1035s ok 966 /checksum/SHA256/reset/38 1035s ok 967 /checksum/SHA256/reset/39 1035s ok 968 /checksum/SHA256/reset/40 1035s ok 969 /checksum/SHA256/reset/41 1035s ok 970 /checksum/SHA256/reset/42 1035s ok 971 /checksum/SHA256/reset/43 1035s ok 972 /checksum/SHA256/reset/44 1035s ok 973 /checksum/SHA256/reset/45 1035s ok 974 /checksum/SHA256/reset/46 1035s ok 975 /checksum/SHA256/reset/47 1035s ok 976 /checksum/SHA256/reset/48 1035s ok 977 /checksum/SHA256/reset/49 1035s ok 978 /checksum/SHA256/reset/50 1035s ok 979 /checksum/SHA256/reset/51 1035s ok 980 /checksum/SHA256/reset/52 1035s ok 981 /checksum/SHA256/reset/53 1035s ok 982 /checksum/SHA256/reset/54 1035s ok 983 /checksum/SHA256/reset/55 1035s ok 984 /checksum/SHA256/reset/56 1035s ok 985 /checksum/SHA256/reset/57 1035s ok 986 /checksum/SHA256/reset/58 1035s ok 987 /checksum/SHA256/reset/59 1035s ok 988 /checksum/SHA256/reset/60 1035s ok 989 /checksum/SHA256/reset/61 1035s ok 990 /checksum/SHA256/reset/62 1035s ok 991 /checksum/SHA256/reset/63 1035s ok 992 /checksum/SHA256/reset/64 1035s ok 993 /checksum/SHA256/reset/65 1035s ok 994 /checksum/SHA256/reset/66 1035s ok 995 /checksum/SHA256/reset/67 1035s ok 996 /checksum/SHA256/reset/68 1035s ok 997 /checksum/SHA256/reset/69 1035s ok 998 /checksum/SHA256/reset/70 1035s ok 999 /checksum/SHA256/reset/71 1035s ok 1000 /checksum/SHA256/reset/72 1035s ok 1001 /checksum/SHA256/reset/73 1035s ok 1002 /checksum/SHA256/reset/74 1035s ok 1003 /checksum/SHA256/reset/75 1035s ok 1004 /checksum/SHA256/reset/76 1035s ok 1005 /checksum/SHA256/reset/77 1035s ok 1006 /checksum/SHA256/reset/78 1035s ok 1007 /checksum/SHA256/reset/79 1035s ok 1008 /checksum/SHA256/reset/80 1035s ok 1009 /checksum/SHA256/reset/81 1035s ok 1010 /checksum/SHA256/reset/82 1035s ok 1011 /checksum/SHA256/reset/83 1035s ok 1012 /checksum/SHA256/reset/84 1035s ok 1013 /checksum/SHA256/reset/85 1035s ok 1014 /checksum/SHA256/reset/86 1035s ok 1015 /checksum/SHA256/reset/87 1035s ok 1016 /checksum/SHA256/reset/88 1035s ok 1017 /checksum/SHA256/reset/89 1035s ok 1018 /checksum/SHA256/reset/90 1035s ok 1019 /checksum/SHA256/reset/91 1035s ok 1020 /checksum/SHA256/reset/92 1035s ok 1021 /checksum/SHA256/reset/93 1035s ok 1022 /checksum/SHA256/reset/94 1035s ok 1023 /checksum/SHA256/reset/95 1035s ok 1024 /checksum/SHA256/reset/96 1035s ok 1025 /checksum/SHA256/reset/97 1035s ok 1026 /checksum/SHA256/reset/98 1035s ok 1027 /checksum/SHA256/reset/99 1035s ok 1028 /checksum/SHA256/reset/100 1035s ok 1029 /checksum/SHA256/reset/101 1035s ok 1030 /checksum/SHA256/reset/102 1035s ok 1031 /checksum/SHA256/reset/103 1035s ok 1032 /checksum/SHA256/reset/104 1035s ok 1033 /checksum/SHA256/reset/105 1035s ok 1034 /checksum/SHA256/reset/106 1035s ok 1035 /checksum/SHA256/reset/107 1035s ok 1036 /checksum/SHA256/reset/108 1035s ok 1037 /checksum/SHA256/reset/109 1035s ok 1038 /checksum/SHA256/reset/110 1035s ok 1039 /checksum/SHA256/reset/111 1035s ok 1040 /checksum/SHA256/reset/112 1035s ok 1041 /checksum/SHA256/reset/113 1035s ok 1042 /checksum/SHA256/reset/114 1035s ok 1043 /checksum/SHA256/reset/115 1035s ok 1044 /checksum/SHA256/reset/116 1035s ok 1045 /checksum/SHA256/reset/117 1035s ok 1046 /checksum/SHA256/reset/118 1035s ok 1047 /checksum/SHA256/reset/119 1035s ok 1048 /checksum/SHA256/reset/120 1035s ok 1049 /checksum/SHA256/reset/121 1035s ok 1050 /checksum/SHA256/reset/122 1035s ok 1051 /checksum/SHA256/reset/123 1035s ok 1052 /checksum/SHA256/reset/124 1035s ok 1053 /checksum/SHA256/reset/125 1035s ok 1054 /checksum/SHA256/reset/126 1035s ok 1055 /checksum/SHA256/reset/127 1035s ok 1056 /checksum/SHA256/reset/128 1035s ok 1057 /checksum/SHA256/reset/129 1035s ok 1058 /checksum/SHA256/reset/130 1035s ok 1059 /checksum/SHA256/reset/131 1035s ok 1060 /checksum/SHA256/reset/132 1035s ok 1061 /checksum/SHA256/reset/133 1035s ok 1062 /checksum/SHA256/reset/134 1035s ok 1063 /checksum/SHA256/reset/135 1035s ok 1064 /checksum/SHA256/reset/136 1035s ok 1065 /checksum/SHA256/reset/137 1035s ok 1066 /checksum/SHA256/reset/138 1035s ok 1067 /checksum/SHA256/reset/139 1035s ok 1068 /checksum/SHA256/reset/140 1035s ok 1069 /checksum/SHA256/reset/141 1035s ok 1070 /checksum/SHA256/reset/142 1035s ok 1071 /checksum/SHA256/reset/143 1035s ok 1072 /checksum/SHA256/reset/144 1035s ok 1073 /checksum/SHA256/reset/145 1035s ok 1074 /checksum/SHA256/reset/146 1035s ok 1075 /checksum/SHA256/reset/147 1035s ok 1076 /checksum/SHA256/reset/148 1035s ok 1077 /checksum/SHA256/reset/149 1035s ok 1078 /checksum/SHA256/reset/150 1035s ok 1079 /checksum/SHA256/reset/151 1035s ok 1080 /checksum/SHA256/reset/152 1035s ok 1081 /checksum/SHA256/reset/153 1035s ok 1082 /checksum/SHA256/reset/154 1035s ok 1083 /checksum/SHA256/reset/155 1035s ok 1084 /checksum/SHA256/reset/156 1035s ok 1085 /checksum/SHA256/reset/157 1035s ok 1086 /checksum/SHA256/reset/158 1035s ok 1087 /checksum/SHA256/reset/159 1035s ok 1088 /checksum/SHA256/reset/160 1035s ok 1089 /checksum/SHA256/reset/161 1035s ok 1090 /checksum/SHA256/reset/162 1035s ok 1091 /checksum/SHA256/reset/163 1035s ok 1092 /checksum/SHA256/reset/164 1035s ok 1093 /checksum/SHA256/reset/165 1035s ok 1094 /checksum/SHA256/reset/166 1035s ok 1095 /checksum/SHA256/reset/167 1035s ok 1096 /checksum/SHA256/reset/168 1035s ok 1097 /checksum/SHA256/reset/169 1035s ok 1098 /checksum/SHA256/reset/170 1035s ok 1099 /checksum/SHA256/reset/171 1035s ok 1100 /checksum/SHA256/reset/172 1035s ok 1101 /checksum/SHA256/reset/173 1035s ok 1102 /checksum/SHA256/reset/174 1035s ok 1103 /checksum/SHA256/reset/175 1035s ok 1104 /checksum/SHA256/reset/176 1035s ok 1105 /checksum/SHA256/reset/177 1035s ok 1106 /checksum/SHA256/reset/178 1035s ok 1107 /checksum/SHA256/reset/179 1035s ok 1108 /checksum/SHA256/reset/180 1035s ok 1109 /checksum/SHA256/reset/181 1035s ok 1110 /checksum/SHA256/reset/182 1035s ok 1111 /checksum/SHA256/reset/183 1035s # End of reset tests 1035s # End of SHA256 tests 1035s # Start of SHA384 tests 1035s ok 1112 /checksum/SHA384/0 1035s ok 1113 /checksum/SHA384/1 1035s ok 1114 /checksum/SHA384/2 1035s ok 1115 /checksum/SHA384/3 1035s ok 1116 /checksum/SHA384/4 1035s ok 1117 /checksum/SHA384/5 1035s ok 1118 /checksum/SHA384/6 1035s ok 1119 /checksum/SHA384/7 1035s ok 1120 /checksum/SHA384/8 1035s ok 1121 /checksum/SHA384/9 1035s ok 1122 /checksum/SHA384/10 1035s ok 1123 /checksum/SHA384/11 1035s ok 1124 /checksum/SHA384/12 1035s ok 1125 /checksum/SHA384/13 1035s ok 1126 /checksum/SHA384/14 1035s ok 1127 /checksum/SHA384/15 1035s ok 1128 /checksum/SHA384/16 1035s ok 1129 /checksum/SHA384/17 1035s ok 1130 /checksum/SHA384/18 1035s ok 1131 /checksum/SHA384/19 1035s ok 1132 /checksum/SHA384/20 1035s ok 1133 /checksum/SHA384/21 1035s ok 1134 /checksum/SHA384/22 1035s ok 1135 /checksum/SHA384/23 1035s ok 1136 /checksum/SHA384/24 1035s ok 1137 /checksum/SHA384/25 1035s ok 1138 /checksum/SHA384/26 1035s ok 1139 /checksum/SHA384/27 1035s ok 1140 /checksum/SHA384/28 1035s ok 1141 /checksum/SHA384/29 1035s ok 1142 /checksum/SHA384/30 1035s ok 1143 /checksum/SHA384/31 1035s ok 1144 /checksum/SHA384/32 1035s ok 1145 /checksum/SHA384/33 1035s ok 1146 /checksum/SHA384/34 1035s ok 1147 /checksum/SHA384/35 1035s ok 1148 /checksum/SHA384/36 1035s ok 1149 /checksum/SHA384/37 1035s ok 1150 /checksum/SHA384/38 1035s ok 1151 /checksum/SHA384/39 1035s ok 1152 /checksum/SHA384/40 1035s ok 1153 /checksum/SHA384/41 1035s ok 1154 /checksum/SHA384/42 1035s ok 1155 /checksum/SHA384/43 1035s ok 1156 /checksum/SHA384/44 1035s ok 1157 /checksum/SHA384/45 1035s ok 1158 /checksum/SHA384/46 1035s ok 1159 /checksum/SHA384/47 1035s ok 1160 /checksum/SHA384/48 1035s ok 1161 /checksum/SHA384/49 1035s ok 1162 /checksum/SHA384/50 1035s ok 1163 /checksum/SHA384/51 1035s ok 1164 /checksum/SHA384/52 1035s ok 1165 /checksum/SHA384/53 1035s ok 1166 /checksum/SHA384/54 1035s ok 1167 /checksum/SHA384/55 1035s ok 1168 /checksum/SHA384/56 1035s ok 1169 /checksum/SHA384/57 1035s ok 1170 /checksum/SHA384/58 1035s ok 1171 /checksum/SHA384/59 1035s ok 1172 /checksum/SHA384/60 1035s ok 1173 /checksum/SHA384/61 1035s ok 1174 /checksum/SHA384/62 1035s ok 1175 /checksum/SHA384/63 1035s ok 1176 /checksum/SHA384/64 1035s ok 1177 /checksum/SHA384/65 1035s ok 1178 /checksum/SHA384/66 1035s ok 1179 /checksum/SHA384/67 1035s ok 1180 /checksum/SHA384/68 1035s ok 1181 /checksum/SHA384/69 1035s ok 1182 /checksum/SHA384/70 1035s ok 1183 /checksum/SHA384/71 1035s ok 1184 /checksum/SHA384/72 1035s ok 1185 /checksum/SHA384/73 1035s ok 1186 /checksum/SHA384/74 1035s ok 1187 /checksum/SHA384/75 1035s ok 1188 /checksum/SHA384/76 1035s ok 1189 /checksum/SHA384/77 1035s ok 1190 /checksum/SHA384/78 1035s ok 1191 /checksum/SHA384/79 1035s ok 1192 /checksum/SHA384/80 1035s ok 1193 /checksum/SHA384/81 1035s ok 1194 /checksum/SHA384/82 1035s ok 1195 /checksum/SHA384/83 1035s ok 1196 /checksum/SHA384/84 1035s ok 1197 /checksum/SHA384/85 1035s ok 1198 /checksum/SHA384/86 1035s ok 1199 /checksum/SHA384/87 1035s ok 1200 /checksum/SHA384/88 1035s ok 1201 /checksum/SHA384/89 1035s ok 1202 /checksum/SHA384/90 1035s ok 1203 /checksum/SHA384/91 1035s ok 1204 /checksum/SHA384/92 1035s ok 1205 /checksum/SHA384/93 1035s ok 1206 /checksum/SHA384/94 1035s ok 1207 /checksum/SHA384/95 1035s ok 1208 /checksum/SHA384/96 1035s ok 1209 /checksum/SHA384/97 1035s ok 1210 /checksum/SHA384/98 1035s ok 1211 /checksum/SHA384/99 1035s ok 1212 /checksum/SHA384/100 1035s ok 1213 /checksum/SHA384/101 1035s ok 1214 /checksum/SHA384/102 1035s ok 1215 /checksum/SHA384/103 1035s ok 1216 /checksum/SHA384/104 1035s ok 1217 /checksum/SHA384/105 1035s ok 1218 /checksum/SHA384/106 1035s ok 1219 /checksum/SHA384/107 1035s ok 1220 /checksum/SHA384/108 1035s ok 1221 /checksum/SHA384/109 1035s ok 1222 /checksum/SHA384/110 1035s ok 1223 /checksum/SHA384/111 1035s ok 1224 /checksum/SHA384/112 1035s ok 1225 /checksum/SHA384/113 1035s ok 1226 /checksum/SHA384/114 1035s ok 1227 /checksum/SHA384/115 1035s ok 1228 /checksum/SHA384/116 1035s ok 1229 /checksum/SHA384/117 1035s ok 1230 /checksum/SHA384/118 1035s ok 1231 /checksum/SHA384/119 1035s ok 1232 /checksum/SHA384/120 1035s ok 1233 /checksum/SHA384/121 1035s ok 1234 /checksum/SHA384/122 1035s ok 1235 /checksum/SHA384/123 1035s ok 1236 /checksum/SHA384/124 1035s ok 1237 /checksum/SHA384/125 1035s ok 1238 /checksum/SHA384/126 1035s ok 1239 /checksum/SHA384/127 1035s ok 1240 /checksum/SHA384/128 1035s ok 1241 /checksum/SHA384/129 1035s ok 1242 /checksum/SHA384/130 1035s ok 1243 /checksum/SHA384/131 1035s ok 1244 /checksum/SHA384/132 1035s ok 1245 /checksum/SHA384/133 1035s ok 1246 /checksum/SHA384/134 1035s ok 1247 /checksum/SHA384/135 1035s ok 1248 /checksum/SHA384/136 1035s ok 1249 /checksum/SHA384/137 1035s ok 1250 /checksum/SHA384/138 1035s ok 1251 /checksum/SHA384/139 1035s ok 1252 /checksum/SHA384/140 1035s ok 1253 /checksum/SHA384/141 1035s ok 1254 /checksum/SHA384/142 1035s ok 1255 /checksum/SHA384/143 1035s ok 1256 /checksum/SHA384/144 1035s ok 1257 /checksum/SHA384/145 1035s ok 1258 /checksum/SHA384/146 1035s ok 1259 /checksum/SHA384/147 1035s ok 1260 /checksum/SHA384/148 1035s ok 1261 /checksum/SHA384/149 1035s ok 1262 /checksum/SHA384/150 1035s ok 1263 /checksum/SHA384/151 1035s ok 1264 /checksum/SHA384/152 1035s ok 1265 /checksum/SHA384/153 1035s ok 1266 /checksum/SHA384/154 1035s ok 1267 /checksum/SHA384/155 1035s ok 1268 /checksum/SHA384/156 1035s ok 1269 /checksum/SHA384/157 1035s ok 1270 /checksum/SHA384/158 1035s ok 1271 /checksum/SHA384/159 1035s ok 1272 /checksum/SHA384/160 1035s ok 1273 /checksum/SHA384/161 1035s ok 1274 /checksum/SHA384/162 1035s ok 1275 /checksum/SHA384/163 1035s ok 1276 /checksum/SHA384/164 1035s ok 1277 /checksum/SHA384/165 1035s ok 1278 /checksum/SHA384/166 1035s ok 1279 /checksum/SHA384/167 1035s ok 1280 /checksum/SHA384/168 1035s ok 1281 /checksum/SHA384/169 1035s ok 1282 /checksum/SHA384/170 1035s ok 1283 /checksum/SHA384/171 1035s ok 1284 /checksum/SHA384/172 1035s ok 1285 /checksum/SHA384/173 1035s ok 1286 /checksum/SHA384/174 1035s ok 1287 /checksum/SHA384/175 1035s ok 1288 /checksum/SHA384/176 1035s ok 1289 /checksum/SHA384/177 1035s ok 1290 /checksum/SHA384/178 1035s ok 1291 /checksum/SHA384/179 1035s ok 1292 /checksum/SHA384/180 1035s ok 1293 /checksum/SHA384/181 1035s ok 1294 /checksum/SHA384/182 1035s ok 1295 /checksum/SHA384/183 1035s ok 1296 /checksum/SHA384/string 1035s ok 1297 /checksum/SHA384/bytes 1035s # Start of reset tests 1035s ok 1298 /checksum/SHA384/reset/0 1035s ok 1299 /checksum/SHA384/reset/1 1035s ok 1300 /checksum/SHA384/reset/2 1035s ok 1301 /checksum/SHA384/reset/3 1035s ok 1302 /checksum/SHA384/reset/4 1035s ok 1303 /checksum/SHA384/reset/5 1035s ok 1304 /checksum/SHA384/reset/6 1035s ok 1305 /checksum/SHA384/reset/7 1035s ok 1306 /checksum/SHA384/reset/8 1035s ok 1307 /checksum/SHA384/reset/9 1035s ok 1308 /checksum/SHA384/reset/10 1035s ok 1309 /checksum/SHA384/reset/11 1035s ok 1310 /checksum/SHA384/reset/12 1035s ok 1311 /checksum/SHA384/reset/13 1035s ok 1312 /checksum/SHA384/reset/14 1035s ok 1313 /checksum/SHA384/reset/15 1035s ok 1314 /checksum/SHA384/reset/16 1035s ok 1315 /checksum/SHA384/reset/17 1035s ok 1316 /checksum/SHA384/reset/18 1035s ok 1317 /checksum/SHA384/reset/19 1035s ok 1318 /checksum/SHA384/reset/20 1035s ok 1319 /checksum/SHA384/reset/21 1035s ok 1320 /checksum/SHA384/reset/22 1035s ok 1321 /checksum/SHA384/reset/23 1035s ok 1322 /checksum/SHA384/reset/24 1035s ok 1323 /checksum/SHA384/reset/25 1035s ok 1324 /checksum/SHA384/reset/26 1035s ok 1325 /checksum/SHA384/reset/27 1035s ok 1326 /checksum/SHA384/reset/28 1035s ok 1327 /checksum/SHA384/reset/29 1035s ok 1328 /checksum/SHA384/reset/30 1035s ok 1329 /checksum/SHA384/reset/31 1035s ok 1330 /checksum/SHA384/reset/32 1035s ok 1331 /checksum/SHA384/reset/33 1035s ok 1332 /checksum/SHA384/reset/34 1035s ok 1333 /checksum/SHA384/reset/35 1035s ok 1334 /checksum/SHA384/reset/36 1035s ok 1335 /checksum/SHA384/reset/37 1035s ok 1336 /checksum/SHA384/reset/38 1035s ok 1337 /checksum/SHA384/reset/39 1035s ok 1338 /checksum/SHA384/reset/40 1035s ok 1339 /checksum/SHA384/reset/41 1035s ok 1340 /checksum/SHA384/reset/42 1035s ok 1341 /checksum/SHA384/reset/43 1035s ok 1342 /checksum/SHA384/reset/44 1035s ok 1343 /checksum/SHA384/reset/45 1035s ok 1344 /checksum/SHA384/reset/46 1035s ok 1345 /checksum/SHA384/reset/47 1035s ok 1346 /checksum/SHA384/reset/48 1035s ok 1347 /checksum/SHA384/reset/49 1035s ok 1348 /checksum/SHA384/reset/50 1035s ok 1349 /checksum/SHA384/reset/51 1035s ok 1350 /checksum/SHA384/reset/52 1035s ok 1351 /checksum/SHA384/reset/53 1035s ok 1352 /checksum/SHA384/reset/54 1035s ok 1353 /checksum/SHA384/reset/55 1035s ok 1354 /checksum/SHA384/reset/56 1035s ok 1355 /checksum/SHA384/reset/57 1035s ok 1356 /checksum/SHA384/reset/58 1035s ok 1357 /checksum/SHA384/reset/59 1035s ok 1358 /checksum/SHA384/reset/60 1035s ok 1359 /checksum/SHA384/reset/61 1035s ok 1360 /checksum/SHA384/reset/62 1035s ok 1361 /checksum/SHA384/reset/63 1035s ok 1362 /checksum/SHA384/reset/64 1035s ok 1363 /checksum/SHA384/reset/65 1035s ok 1364 /checksum/SHA384/reset/66 1035s ok 1365 /checksum/SHA384/reset/67 1035s ok 1366 /checksum/SHA384/reset/68 1035s ok 1367 /checksum/SHA384/reset/69 1035s ok 1368 /checksum/SHA384/reset/70 1035s ok 1369 /checksum/SHA384/reset/71 1035s ok 1370 /checksum/SHA384/reset/72 1035s ok 1371 /checksum/SHA384/reset/73 1035s ok 1372 /checksum/SHA384/reset/74 1035s ok 1373 /checksum/SHA384/reset/75 1035s ok 1374 /checksum/SHA384/reset/76 1035s ok 1375 /checksum/SHA384/reset/77 1035s ok 1376 /checksum/SHA384/reset/78 1035s ok 1377 /checksum/SHA384/reset/79 1035s ok 1378 /checksum/SHA384/reset/80 1035s ok 1379 /checksum/SHA384/reset/81 1035s ok 1380 /checksum/SHA384/reset/82 1035s ok 1381 /checksum/SHA384/reset/83 1035s ok 1382 /checksum/SHA384/reset/84 1035s ok 1383 /checksum/SHA384/reset/85 1035s ok 1384 /checksum/SHA384/reset/86 1035s ok 1385 /checksum/SHA384/reset/87 1035s ok 1386 /checksum/SHA384/reset/88 1035s ok 1387 /checksum/SHA384/reset/89 1035s ok 1388 /checksum/SHA384/reset/90 1035s ok 1389 /checksum/SHA384/reset/91 1035s ok 1390 /checksum/SHA384/reset/92 1035s ok 1391 /checksum/SHA384/reset/93 1035s ok 1392 /checksum/SHA384/reset/94 1035s ok 1393 /checksum/SHA384/reset/95 1035s ok 1394 /checksum/SHA384/reset/96 1035s ok 1395 /checksum/SHA384/reset/97 1035s ok 1396 /checksum/SHA384/reset/98 1035s ok 1397 /checksum/SHA384/reset/99 1035s ok 1398 /checksum/SHA384/reset/100 1035s ok 1399 /checksum/SHA384/reset/101 1035s ok 1400 /checksum/SHA384/reset/102 1035s ok 1401 /checksum/SHA384/reset/103 1035s ok 1402 /checksum/SHA384/reset/104 1035s ok 1403 /checksum/SHA384/reset/105 1035s ok 1404 /checksum/SHA384/reset/106 1035s ok 1405 /checksum/SHA384/reset/107 1035s ok 1406 /checksum/SHA384/reset/108 1035s ok 1407 /checksum/SHA384/reset/109 1035s ok 1408 /checksum/SHA384/reset/110 1035s ok 1409 /checksum/SHA384/reset/111 1035s ok 1410 /checksum/SHA384/reset/112 1035s ok 1411 /checksum/SHA384/reset/113 1035s ok 1412 /checksum/SHA384/reset/114 1035s ok 1413 /checksum/SHA384/reset/115 1035s ok 1414 /checksum/SHA384/reset/116 1035s ok 1415 /checksum/SHA384/reset/117 1035s ok 1416 /checksum/SHA384/reset/118 1035s ok 1417 /checksum/SHA384/reset/119 1035s ok 1418 /checksum/SHA384/reset/120 1035s ok 1419 /checksum/SHA384/reset/121 1035s ok 1420 /checksum/SHA384/reset/122 1035s ok 1421 /checksum/SHA384/reset/123 1035s ok 1422 /checksum/SHA384/reset/124 1035s ok 1423 /checksum/SHA384/reset/125 1035s ok 1424 /checksum/SHA384/reset/126 1035s ok 1425 /checksum/SHA384/reset/127 1035s ok 1426 /checksum/SHA384/reset/128 1035s ok 1427 /checksum/SHA384/reset/129 1035s ok 1428 /checksum/SHA384/reset/130 1035s ok 1429 /checksum/SHA384/reset/131 1035s ok 1430 /checksum/SHA384/reset/132 1035s ok 1431 /checksum/SHA384/reset/133 1035s ok 1432 /checksum/SHA384/reset/134 1035s ok 1433 /checksum/SHA384/reset/135 1035s ok 1434 /checksum/SHA384/reset/136 1035s ok 1435 /checksum/SHA384/reset/137 1035s ok 1436 /checksum/SHA384/reset/138 1035s ok 1437 /checksum/SHA384/reset/139 1035s ok 1438 /checksum/SHA384/reset/140 1035s ok 1439 /checksum/SHA384/reset/141 1035s ok 1440 /checksum/SHA384/reset/142 1035s ok 1441 /checksum/SHA384/reset/143 1035s ok 1442 /checksum/SHA384/reset/144 1035s ok 1443 /checksum/SHA384/reset/145 1035s ok 1444 /checksum/SHA384/reset/146 1035s ok 1445 /checksum/SHA384/reset/147 1035s ok 1446 /checksum/SHA384/reset/148 1035s ok 1447 /checksum/SHA384/reset/149 1035s ok 1448 /checksum/SHA384/reset/150 1035s ok 1449 /checksum/SHA384/reset/151 1035s ok 1450 /checksum/SHA384/reset/152 1035s ok 1451 /checksum/SHA384/reset/153 1035s ok 1452 /checksum/SHA384/reset/154 1035s ok 1453 /checksum/SHA384/reset/155 1035s ok 1454 /checksum/SHA384/reset/156 1035s ok 1455 /checksum/SHA384/reset/157 1035s ok 1456 /checksum/SHA384/reset/158 1035s ok 1457 /checksum/SHA384/reset/159 1035s ok 1458 /checksum/SHA384/reset/160 1035s ok 1459 /checksum/SHA384/reset/161 1035s ok 1460 /checksum/SHA384/reset/162 1035s ok 1461 /checksum/SHA384/reset/163 1035s ok 1462 /checksum/SHA384/reset/164 1035s ok 1463 /checksum/SHA384/reset/165 1035s ok 1464 /checksum/SHA384/reset/166 1035s ok 1465 /checksum/SHA384/reset/167 1035s ok 1466 /checksum/SHA384/reset/168 1035s ok 1467 /checksum/SHA384/reset/169 1035s ok 1468 /checksum/SHA384/reset/170 1035s ok 1469 /checksum/SHA384/reset/171 1035s ok 1470 /checksum/SHA384/reset/172 1035s ok 1471 /checksum/SHA384/reset/173 1035s ok 1472 /checksum/SHA384/reset/174 1035s ok 1473 /checksum/SHA384/reset/175 1035s ok 1474 /checksum/SHA384/reset/176 1035s ok 1475 /checksum/SHA384/reset/177 1035s ok 1476 /checksum/SHA384/reset/178 1035s ok 1477 /checksum/SHA384/reset/179 1035s ok 1478 /checksum/SHA384/reset/180 1035s ok 1479 /checksum/SHA384/reset/181 1035s ok 1480 /checksum/SHA384/reset/182 1035s ok 1481 /checksum/SHA384/reset/183 1035s # End of reset tests 1035s # End of SHA384 tests 1035s # Start of SHA512 tests 1035s ok 1482 /checksum/SHA512/0 1035s ok 1483 /checksum/SHA512/1 1035s ok 1484 /checksum/SHA512/2 1035s ok 1485 /checksum/SHA512/3 1035s ok 1486 /checksum/SHA512/4 1035s ok 1487 /checksum/SHA512/5 1035s ok 1488 /checksum/SHA512/6 1035s ok 1489 /checksum/SHA512/7 1035s ok 1490 /checksum/SHA512/8 1035s ok 1491 /checksum/SHA512/9 1035s ok 1492 /checksum/SHA512/10 1035s ok 1493 /checksum/SHA512/11 1035s ok 1494 /checksum/SHA512/12 1035s ok 1495 /checksum/SHA512/13 1035s ok 1496 /checksum/SHA512/14 1035s ok 1497 /checksum/SHA512/15 1035s ok 1498 /checksum/SHA512/16 1035s ok 1499 /checksum/SHA512/17 1035s ok 1500 /checksum/SHA512/18 1035s ok 1501 /checksum/SHA512/19 1035s ok 1502 /checksum/SHA512/20 1035s ok 1503 /checksum/SHA512/21 1035s ok 1504 /checksum/SHA512/22 1035s ok 1505 /checksum/SHA512/23 1035s ok 1506 /checksum/SHA512/24 1035s ok 1507 /checksum/SHA512/25 1035s ok 1508 /checksum/SHA512/26 1035s ok 1509 /checksum/SHA512/27 1035s ok 1510 /checksum/SHA512/28 1035s ok 1511 /checksum/SHA512/29 1035s ok 1512 /checksum/SHA512/30 1035s ok 1513 /checksum/SHA512/31 1035s ok 1514 /checksum/SHA512/32 1035s ok 1515 /checksum/SHA512/33 1035s ok 1516 /checksum/SHA512/34 1035s ok 1517 /checksum/SHA512/35 1035s ok 1518 /checksum/SHA512/36 1035s ok 1519 /checksum/SHA512/37 1035s ok 1520 /checksum/SHA512/38 1035s ok 1521 /checksum/SHA512/39 1035s ok 1522 /checksum/SHA512/40 1035s ok 1523 /checksum/SHA512/41 1035s ok 1524 /checksum/SHA512/42 1035s ok 1525 /checksum/SHA512/43 1035s ok 1526 /checksum/SHA512/44 1035s ok 1527 /checksum/SHA512/45 1035s ok 1528 /checksum/SHA512/46 1035s ok 1529 /checksum/SHA512/47 1035s ok 1530 /checksum/SHA512/48 1035s ok 1531 /checksum/SHA512/49 1035s ok 1532 /checksum/SHA512/50 1035s ok 1533 /checksum/SHA512/51 1035s ok 1534 /checksum/SHA512/52 1035s ok 1535 /checksum/SHA512/53 1035s ok 1536 /checksum/SHA512/54 1035s ok 1537 /checksum/SHA512/55 1035s ok 1538 /checksum/SHA512/56 1035s ok 1539 /checksum/SHA512/57 1035s ok 1540 /checksum/SHA512/58 1035s ok 1541 /checksum/SHA512/59 1035s ok 1542 /checksum/SHA512/60 1035s ok 1543 /checksum/SHA512/61 1035s ok 1544 /checksum/SHA512/62 1035s ok 1545 /checksum/SHA512/63 1035s ok 1546 /checksum/SHA512/64 1035s ok 1547 /checksum/SHA512/65 1035s ok 1548 /checksum/SHA512/66 1035s ok 1549 /checksum/SHA512/67 1035s ok 1550 /checksum/SHA512/68 1035s ok 1551 /checksum/SHA512/69 1035s ok 1552 /checksum/SHA512/70 1035s ok 1553 /checksum/SHA512/71 1035s ok 1554 /checksum/SHA512/72 1035s ok 1555 /checksum/SHA512/73 1035s ok 1556 /checksum/SHA512/74 1035s ok 1557 /checksum/SHA512/75 1035s ok 1558 /checksum/SHA512/76 1035s ok 1559 /checksum/SHA512/77 1035s ok 1560 /checksum/SHA512/78 1035s ok 1561 /checksum/SHA512/79 1035s ok 1562 /checksum/SHA512/80 1035s ok 1563 /checksum/SHA512/81 1035s ok 1564 /checksum/SHA512/82 1035s ok 1565 /checksum/SHA512/83 1035s ok 1566 /checksum/SHA512/84 1035s ok 1567 /checksum/SHA512/85 1035s ok 1568 /checksum/SHA512/86 1035s ok 1569 /checksum/SHA512/87 1035s ok 1570 /checksum/SHA512/88 1035s ok 1571 /checksum/SHA512/89 1035s ok 1572 /checksum/SHA512/90 1035s ok 1573 /checksum/SHA512/91 1035s ok 1574 /checksum/SHA512/92 1035s ok 1575 /checksum/SHA512/93 1035s ok 1576 /checksum/SHA512/94 1035s ok 1577 /checksum/SHA512/95 1035s ok 1578 /checksum/SHA512/96 1035s ok 1579 /checksum/SHA512/97 1035s ok 1580 /checksum/SHA512/98 1035s ok 1581 /checksum/SHA512/99 1035s ok 1582 /checksum/SHA512/100 1035s ok 1583 /checksum/SHA512/101 1035s ok 1584 /checksum/SHA512/102 1035s ok 1585 /checksum/SHA512/103 1035s ok 1586 /checksum/SHA512/104 1035s ok 1587 /checksum/SHA512/105 1035s ok 1588 /checksum/SHA512/106 1035s ok 1589 /checksum/SHA512/107 1035s ok 1590 /checksum/SHA512/108 1035s ok 1591 /checksum/SHA512/109 1035s ok 1592 /checksum/SHA512/110 1035s ok 1593 /checksum/SHA512/111 1035s ok 1594 /checksum/SHA512/112 1035s ok 1595 /checksum/SHA512/113 1035s ok 1596 /checksum/SHA512/114 1035s ok 1597 /checksum/SHA512/115 1035s ok 1598 /checksum/SHA512/116 1035s ok 1599 /checksum/SHA512/117 1035s ok 1600 /checksum/SHA512/118 1035s ok 1601 /checksum/SHA512/119 1035s ok 1602 /checksum/SHA512/120 1035s ok 1603 /checksum/SHA512/121 1035s ok 1604 /checksum/SHA512/122 1035s ok 1605 /checksum/SHA512/123 1035s ok 1606 /checksum/SHA512/124 1035s ok 1607 /checksum/SHA512/125 1035s ok 1608 /checksum/SHA512/126 1035s ok 1609 /checksum/SHA512/127 1035s ok 1610 /checksum/SHA512/128 1035s ok 1611 /checksum/SHA512/129 1035s ok 1612 /checksum/SHA512/130 1035s ok 1613 /checksum/SHA512/131 1035s ok 1614 /checksum/SHA512/132 1035s ok 1615 /checksum/SHA512/133 1035s ok 1616 /checksum/SHA512/134 1035s ok 1617 /checksum/SHA512/135 1035s ok 1618 /checksum/SHA512/136 1035s ok 1619 /checksum/SHA512/137 1035s ok 1620 /checksum/SHA512/138 1035s ok 1621 /checksum/SHA512/139 1035s ok 1622 /checksum/SHA512/140 1035s ok 1623 /checksum/SHA512/141 1035s ok 1624 /checksum/SHA512/142 1035s ok 1625 /checksum/SHA512/143 1035s ok 1626 /checksum/SHA512/144 1035s ok 1627 /checksum/SHA512/145 1035s ok 1628 /checksum/SHA512/146 1035s ok 1629 /checksum/SHA512/147 1035s ok 1630 /checksum/SHA512/148 1035s ok 1631 /checksum/SHA512/149 1035s ok 1632 /checksum/SHA512/150 1035s ok 1633 /checksum/SHA512/151 1035s ok 1634 /checksum/SHA512/152 1035s ok 1635 /checksum/SHA512/153 1035s ok 1636 /checksum/SHA512/154 1035s ok 1637 /checksum/SHA512/155 1035s ok 1638 /checksum/SHA512/156 1035s ok 1639 /checksum/SHA512/157 1035s ok 1640 /checksum/SHA512/158 1035s ok 1641 /checksum/SHA512/159 1035s ok 1642 /checksum/SHA512/160 1035s ok 1643 /checksum/SHA512/161 1035s ok 1644 /checksum/SHA512/162 1035s ok 1645 /checksum/SHA512/163 1035s ok 1646 /checksum/SHA512/164 1035s ok 1647 /checksum/SHA512/165 1035s ok 1648 /checksum/SHA512/166 1035s ok 1649 /checksum/SHA512/167 1035s ok 1650 /checksum/SHA512/168 1035s ok 1651 /checksum/SHA512/169 1035s ok 1652 /checksum/SHA512/170 1035s ok 1653 /checksum/SHA512/171 1035s ok 1654 /checksum/SHA512/172 1035s ok 1655 /checksum/SHA512/173 1035s ok 1656 /checksum/SHA512/174 1035s ok 1657 /checksum/SHA512/175 1035s ok 1658 /checksum/SHA512/176 1035s ok 1659 /checksum/SHA512/177 1035s ok 1660 /checksum/SHA512/178 1035s ok 1661 /checksum/SHA512/179 1035s ok 1662 /checksum/SHA512/180 1035s ok 1663 /checksum/SHA512/181 1035s ok 1664 /checksum/SHA512/182 1035s ok 1665 /checksum/SHA512/183 1035s ok 1666 /checksum/SHA512/string 1035s ok 1667 /checksum/SHA512/bytes 1035s # Start of reset tests 1035s ok 1668 /checksum/SHA512/reset/0 1035s ok 1669 /checksum/SHA512/reset/1 1035s ok 1670 /checksum/SHA512/reset/2 1035s ok 1671 /checksum/SHA512/reset/3 1035s ok 1672 /checksum/SHA512/reset/4 1035s ok 1673 /checksum/SHA512/reset/5 1035s ok 1674 /checksum/SHA512/reset/6 1035s ok 1675 /checksum/SHA512/reset/7 1035s ok 1676 /checksum/SHA512/reset/8 1035s ok 1677 /checksum/SHA512/reset/9 1035s ok 1678 /checksum/SHA512/reset/10 1035s ok 1679 /checksum/SHA512/reset/11 1035s ok 1680 /checksum/SHA512/reset/12 1035s ok 1681 /checksum/SHA512/reset/13 1035s ok 1682 /checksum/SHA512/reset/14 1035s ok 1683 /checksum/SHA512/reset/15 1035s ok 1684 /checksum/SHA512/reset/16 1035s ok 1685 /checksum/SHA512/reset/17 1035s ok 1686 /checksum/SHA512/reset/18 1035s ok 1687 /checksum/SHA512/reset/19 1035s ok 1688 /checksum/SHA512/reset/20 1035s ok 1689 /checksum/SHA512/reset/21 1035s ok 1690 /checksum/SHA512/reset/22 1035s ok 1691 /checksum/SHA512/reset/23 1035s ok 1692 /checksum/SHA512/reset/24 1035s ok 1693 /checksum/SHA512/reset/25 1035s ok 1694 /checksum/SHA512/reset/26 1035s ok 1695 /checksum/SHA512/reset/27 1035s ok 1696 /checksum/SHA512/reset/28 1035s ok 1697 /checksum/SHA512/reset/29 1035s ok 1698 /checksum/SHA512/reset/30 1035s ok 1699 /checksum/SHA512/reset/31 1035s ok 1700 /checksum/SHA512/reset/32 1035s ok 1701 /checksum/SHA512/reset/33 1035s ok 1702 /checksum/SHA512/reset/34 1035s ok 1703 /checksum/SHA512/reset/35 1035s ok 1704 /checksum/SHA512/reset/36 1035s ok 1705 /checksum/SHA512/reset/37 1035s ok 1706 /checksum/SHA512/reset/38 1035s ok 1707 /checksum/SHA512/reset/39 1035s ok 1708 /checksum/SHA512/reset/40 1035s ok 1709 /checksum/SHA512/reset/41 1035s ok 1710 /checksum/SHA512/reset/42 1035s ok 1711 /checksum/SHA512/reset/43 1035s ok 1712 /checksum/SHA512/reset/44 1035s ok 1713 /checksum/SHA512/reset/45 1035s ok 1714 /checksum/SHA512/reset/46 1035s ok 1715 /checksum/SHA512/reset/47 1035s ok 1716 /checksum/SHA512/reset/48 1035s ok 1717 /checksum/SHA512/reset/49 1035s ok 1718 /checksum/SHA512/reset/50 1035s ok 1719 /checksum/SHA512/reset/51 1035s ok 1720 /checksum/SHA512/reset/52 1035s ok 1721 /checksum/SHA512/reset/53 1035s ok 1722 /checksum/SHA512/reset/54 1035s ok 1723 /checksum/SHA512/reset/55 1035s ok 1724 /checksum/SHA512/reset/56 1035s ok 1725 /checksum/SHA512/reset/57 1035s ok 1726 /checksum/SHA512/reset/58 1035s ok 1727 /checksum/SHA512/reset/59 1035s ok 1728 /checksum/SHA512/reset/60 1035s ok 1729 /checksum/SHA512/reset/61 1035s ok 1730 /checksum/SHA512/reset/62 1035s ok 1731 /checksum/SHA512/reset/63 1035s ok 1732 /checksum/SHA512/reset/64 1035s ok 1733 /checksum/SHA512/reset/65 1035s ok 1734 /checksum/SHA512/reset/66 1035s ok 1735 /checksum/SHA512/reset/67 1035s ok 1736 /checksum/SHA512/reset/68 1035s ok 1737 /checksum/SHA512/reset/69 1035s ok 1738 /checksum/SHA512/reset/70 1035s ok 1739 /checksum/SHA512/reset/71 1035s ok 1740 /checksum/SHA512/reset/72 1035s ok 1741 /checksum/SHA512/reset/73 1035s ok 1742 /checksum/SHA512/reset/74 1035s ok 1743 /checksum/SHA512/reset/75 1035s ok 1744 /checksum/SHA512/reset/76 1035s ok 1745 /checksum/SHA512/reset/77 1035s ok 1746 /checksum/SHA512/reset/78 1035s ok 1747 /checksum/SHA512/reset/79 1035s ok 1748 /checksum/SHA512/reset/80 1035s ok 1749 /checksum/SHA512/reset/81 1035s ok 1750 /checksum/SHA512/reset/82 1035s ok 1751 /checksum/SHA512/reset/83 1035s ok 1752 /checksum/SHA512/reset/84 1035s ok 1753 /checksum/SHA512/reset/85 1035s ok 1754 /checksum/SHA512/reset/86 1035s ok 1755 /checksum/SHA512/reset/87 1035s ok 1756 /checksum/SHA512/reset/88 1035s ok 1757 /checksum/SHA512/reset/89 1035s ok 1758 /checksum/SHA512/reset/90 1035s ok 1759 /checksum/SHA512/reset/91 1035s ok 1760 /checksum/SHA512/reset/92 1035s ok 1761 /checksum/SHA512/reset/93 1035s ok 1762 /checksum/SHA512/reset/94 1035s ok 1763 /checksum/SHA512/reset/95 1035s ok 1764 /checksum/SHA512/reset/96 1035s ok 1765 /checksum/SHA512/reset/97 1035s ok 1766 /checksum/SHA512/reset/98 1035s ok 1767 /checksum/SHA512/reset/99 1035s ok 1768 /checksum/SHA512/reset/100 1035s ok 1769 /checksum/SHA512/reset/101 1035s ok 1770 /checksum/SHA512/reset/102 1035s ok 1771 /checksum/SHA512/reset/103 1035s ok 1772 /checksum/SHA512/reset/104 1035s ok 1773 /checksum/SHA512/reset/105 1035s ok 1774 /checksum/SHA512/reset/106 1035s ok 1775 /checksum/SHA512/reset/107 1035s ok 1776 /checksum/SHA512/reset/108 1035s ok 1777 /checksum/SHA512/reset/109 1035s ok 1778 /checksum/SHA512/reset/110 1035s ok 1779 /checksum/SHA512/reset/111 1035s ok 1780 /checksum/SHA512/reset/112 1035s ok 1781 /checksum/SHA512/reset/113 1035s ok 1782 /checksum/SHA512/reset/114 1035s ok 1783 /checksum/SHA512/reset/115 1035s ok 1784 /checksum/SHA512/reset/116 1035s ok 1785 /checksum/SHA512/reset/117 1035s ok 1786 /checksum/SHA512/reset/118 1035s ok 1787 /checksum/SHA512/reset/119 1035s ok 1788 /checksum/SHA512/reset/120 1035s ok 1789 /checksum/SHA512/reset/121 1035s ok 1790 /checksum/SHA512/reset/122 1035s ok 1791 /checksum/SHA512/reset/123 1035s ok 1792 /checksum/SHA512/reset/124 1035s ok 1793 /checksum/SHA512/reset/125 1035s ok 1794 /checksum/SHA512/reset/126 1035s ok 1795 /checksum/SHA512/reset/127 1035s ok 1796 /checksum/SHA512/reset/128 1035s ok 1797 /checksum/SHA512/reset/129 1035s ok 1798 /checksum/SHA512/reset/130 1035s ok 1799 /checksum/SHA512/reset/131 1035s ok 1800 /checksum/SHA512/reset/132 1035s ok 1801 /checksum/SHA512/reset/133 1035s ok 1802 /checksum/SHA512/reset/134 1035s ok 1803 /checksum/SHA512/reset/135 1035s ok 1804 /checksum/SHA512/reset/136 1035s ok 1805 /checksum/SHA512/reset/137 1035s ok 1806 /checksum/SHA512/reset/138 1035s ok 1807 /checksum/SHA512/reset/139 1035s ok 1808 /checksum/SHA512/reset/140 1035s ok 1809 /checksum/SHA512/reset/141 1035s ok 1810 /checksum/SHA512/reset/142 1035s ok 1811 /checksum/SHA512/reset/143 1035s ok 1812 /checksum/SHA512/reset/144 1035s ok 1813 /checksum/SHA512/reset/145 1035s ok 1814 /checksum/SHA512/reset/146 1035s ok 1815 /checksum/SHA512/reset/147 1035s ok 1816 /checksum/SHA512/reset/148 1035s ok 1817 /checksum/SHA512/reset/149 1035s ok 1818 /checksum/SHA512/reset/150 1035s ok - glib/checksum.test 1035s ok 1819 /checksum/SHA512/reset/151 1035s ok 1820 /checksum/SHA512/reset/152 1035s ok 1821 /checksum/SHA512/reset/153 1035s ok 1822 /checksum/SHA512/reset/154 1035s ok 1823 /checksum/SHA512/reset/155 1035s ok 1824 /checksum/SHA512/reset/156 1035s ok 1825 /checksum/SHA512/reset/157 1035s ok 1826 /checksum/SHA512/reset/158 1035s ok 1827 /checksum/SHA512/reset/159 1035s ok 1828 /checksum/SHA512/reset/160 1035s ok 1829 /checksum/SHA512/reset/161 1035s ok 1830 /checksum/SHA512/reset/162 1035s ok 1831 /checksum/SHA512/reset/163 1035s ok 1832 /checksum/SHA512/reset/164 1035s ok 1833 /checksum/SHA512/reset/165 1035s ok 1834 /checksum/SHA512/reset/166 1035s ok 1835 /checksum/SHA512/reset/167 1035s ok 1836 /checksum/SHA512/reset/168 1035s ok 1837 /checksum/SHA512/reset/169 1035s ok 1838 /checksum/SHA512/reset/170 1035s ok 1839 /checksum/SHA512/reset/171 1035s ok 1840 /checksum/SHA512/reset/172 1035s ok 1841 /checksum/SHA512/reset/173 1035s ok 1842 /checksum/SHA512/reset/174 1035s ok 1843 /checksum/SHA512/reset/175 1035s ok 1844 /checksum/SHA512/reset/176 1035s ok 1845 /checksum/SHA512/reset/177 1035s ok 1846 /checksum/SHA512/reset/178 1035s ok 1847 /checksum/SHA512/reset/179 1035s ok 1848 /checksum/SHA512/reset/180 1035s ok 1849 /checksum/SHA512/reset/181 1035s ok 1850 /checksum/SHA512/reset/182 1035s ok 1851 /checksum/SHA512/reset/183 1035s # End of reset tests 1035s # End of SHA512 tests 1035s # End of checksum tests 1035s TAP version 14 1035s # random seed: R02Sb8bb4b978cc55811682c9e436d83634d 1035s 1..14 1035s # Start of properties tests 1035s ok 1 /properties/install 1035s ok 2 /properties/install-many 1035s ok 3 /properties/notify 1035s ok 4 /properties/notify-queue 1035s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=630357 1035s ok 5 /properties/construct 1035s # /properties/get-property summary: g_object_get_property() accepts uninitialized, initialized, and transformable values 1035s # Test g_object_get_property with an initialized value 1035s # Test g_object_get_property with an uninitialized value 1035s # Test g_object_get_property with a transformable value 1035s ok 6 /properties/get-property 1035s ok 7 /properties/testv_with_no_properties 1035s ok 8 /properties/testv_with_valid_properties 1035s ok 9 /properties/testv_with_invalid_property_type 1035s ok 10 /properties/testv_with_invalid_property_names 1035s ok 11 /properties/testv_getv 1035s ok 12 /properties/testv_notify_queue 1035s # Start of notify tests 1035s # Running test: glib/properties.test 1035s ok - glib/properties.test 1035s # Running test: glib/unicode-normalize.test 1035s ok 13 /properties/notify/too-many-freezes 1035s # End of notify tests 1035s # Start of set-property tests 1035s # Start of variant tests 1035s # /properties/set-property/variant/floating summary: Test that setting a property to a floating variant consumes the reference 1035s ok 14 /properties/set-property/variant/floating 1035s # End of variant tests 1035s # End of set-property tests 1035s # End of properties tests 1035s TAP version 14 1035s # random seed: R02S517c9b0769bd6802dcaa4a0c3727d951 1035s 1..3 1035s # Start of unicode tests 1035s # Processing Part0 # Specific cases 1035s # Processing Part1 # Character by character test 1035s # Processing Part2 # Canonical Order Test 1035s # Processing Part3 # PRI #29 Test 1035s # Processing Part4 # Canonical closures (excluding Hangul) 1035s # Processing Part5 # Chained primary composites 1035s ok 1 /unicode/normalize 1035s # Invalid UTF-8 vector 0 1035s # Invalid UTF-8 vector 1 1035s # Invalid UTF-8 vector 2 1035s # Invalid UTF-8 vector 3 1035s # Invalid UTF-8 vector 4 1035s # Invalid UTF-8 vector 5 1035s # Invalid UTF-8 vector 6 1035s # Invalid UTF-8 vector 7 1035s # Invalid UTF-8 vector 8 1035s # Invalid UTF-8 vector 9 1035s # Invalid UTF-8 vector 10 1035s # Invalid UTF-8 vector 11 1035s # Invalid UTF-8 vector 12 1035s ok 2 /unicode/normalize-invalid 1035s # Start of normalize tests 1035s ok 3 /unicode/normalize/bad-length 1035s # End of normalize tests 1035s # End of unicode tests 1035s ok - glib/unicode-normalize.test 1035s # Running test: glib/bitlock.test 1035s TAP version 14 1035s # random seed: R02S165ce89fe1ccfd1b7778f0dd79e671cb 1035s 1..2 1035s # Start of bitlock tests 1035s # Start of performance tests 1035s # max perf: iterations per second 1035s ok 1 /bitlock/performance/uncontended 1035s ok - glib/bitlock.test 1035s ok 2 /bitlock/performance/parallel 1035s # End of performance tests 1035s # End of bitlock tests 1035s # Running test: glib/rcbox.test 1035s ok - glib/rcbox.test 1035s TAP version 14 1035s # random seed: R02Sc9588af2d1b4ea8c84c5e8768ada6d84 1035s 1..8 1035s # Start of rcbox tests 1035s ok 1 /rcbox/new 1035s # global_point = 0x7bf2fa8 1035s ok 2 /rcbox/release-full 1035s # global_point_a = 0x7bf2fa8 1035s # global_point_b = 0x7bf3050 1035s ok 3 /rcbox/dup 1035s ok 4 /rcbox/alignment 1035s # End of rcbox tests 1035s # Start of atomic-rcbox tests 1035s ok 5 /atomic-rcbox/new 1035s # global_point = 0x7bf3050 1035s ok 6 /atomic-rcbox/release-full 1035s # global_point_a = 0x7bf3050 1035s # global_point_b = 0x7bf2fa8 1035s ok 7 /atomic-rcbox/dup 1035s ok 8 /atomic-rcbox/alignment 1035s # End of atomic-rcbox tests 1035s # Running test: glib/timer.test 1035s TAP version 14 1035s # random seed: R02Sfa8a709e032450c8d211682ec4a67398 1035s 1..10 1035s # Start of timer tests 1035s ok 1 /timer/basic # SKIP Not reliable due to floating-point rounding (glib#820) 1035s ok 2 /timer/stop 1035s ok 3 /timer/continue 1035s ok 4 /timer/reset 1035s ok 5 /timer/is_active 1035s # End of timer tests 1035s # Start of timeval tests 1035s ok 6 /timeval/add 1035s ok 7 /timeval/from-iso8601 1035s ok 8 /timeval/to-iso8601 1035s # Start of to-iso8601 tests 1035s ok 9 /timeval/to-iso8601/overflow # SKIP G_MAXINT == G_MAXLONG - we can't make g_time_val_to_iso8601() overflow. 1035s # End of to-iso8601 tests 1035s # End of timeval tests 1035s # Start of usleep tests 1035s ok 10 /usleep/with-zero-wait 1035s # End of usleep tests 1035s ok - glib/timer.test 1035s # Running test: glib/utf8-pointer.test 1035s TAP version 14 1035s # random seed: R02S2e163724ac7870d9117dc6fdc127785f 1035s 1..3 1035s # Start of utf8 tests 1036s ok 1 /utf8/offsets 1036s # slow test /utf8/offsets executed in 0.99 secs 1036s ok 2 /utf8/lengths 1036s ok 3 /utf8/find 1036s # End of utf8 tests 1036s ok - glib/utf8-pointer.test 1036s # Running test: glib/unicode-encoding.test 1036s TAP version 14 1036s # random seed: R02Sb60b403a7d62a68376ab402175931982 1036s 1..1 1036s # Start of unicode tests 1036s ok 1 /unicode/encoding 1036s # End of unicode tests 1036s ok - glib/unicode-encoding.test 1036s # Running test: glib/tls-interaction.test 1036s TAP version 14 1036s # random seed: R02S69c64f89a93b6159ef1ca51c59d65fc5 1036s 1..42 1036s # Start of tls-interaction tests 1036s # Start of ask-password tests 1036s # Start of invoke-with-loop tests 1036s ok 1 /tls-interaction/ask-password/invoke-with-loop/unhandled-implementation 1036s ok 2 /tls-interaction/ask-password/invoke-with-loop/async-implementation-success 1036s ok 3 /tls-interaction/ask-password/invoke-with-loop/async-implementation-failure 1036s ok 4 /tls-interaction/ask-password/invoke-with-loop/sync-implementation-success 1036s ok 5 /tls-interaction/ask-password/invoke-with-loop/sync-implementation-failure 1036s # End of invoke-with-loop tests 1036s # Start of invoke-without-loop tests 1036s ok 6 /tls-interaction/ask-password/invoke-without-loop/unhandled-implementation 1036s ok 7 /tls-interaction/ask-password/invoke-without-loop/async-implementation-success 1036s ok 8 /tls-interaction/ask-password/invoke-without-loop/async-implementation-failure 1036s ok 9 /tls-interaction/ask-password/invoke-without-loop/sync-implementation-success 1036s ok 10 /tls-interaction/ask-password/invoke-without-loop/sync-implementation-failure 1036s # End of invoke-without-loop tests 1036s # Start of invoke-in-loop tests 1036s ok 11 /tls-interaction/ask-password/invoke-in-loop/unhandled-implementation 1036s ok 12 /tls-interaction/ask-password/invoke-in-loop/async-implementation-success 1036s ok 13 /tls-interaction/ask-password/invoke-in-loop/async-implementation-failure 1036s ok 14 /tls-interaction/ask-password/invoke-in-loop/sync-implementation-success 1036s ok 15 /tls-interaction/ask-password/invoke-in-loop/sync-implementation-failure 1036s # End of invoke-in-loop tests 1036s # Start of sync tests 1036s ok 16 /tls-interaction/ask-password/sync/unhandled-implementation 1036s ok 17 /tls-interaction/ask-password/sync/sync-implementation-success 1036s ok 18 /tls-interaction/ask-password/sync/sync-implementation-failure 1036s # End of sync tests 1036s # Start of async tests 1036s ok 19 /tls-interaction/ask-password/async/unhandled-implementation 1036s ok 20 /tls-interaction/ask-password/async/async-implementation-success 1036s ok 21 /tls-interaction/ask-password/async/async-implementation-failure 1036s # End of async tests 1036s # End of ask-password tests 1036s # Start of request-certificate tests 1036s # Start of invoke-with-loop tests 1036s ok 22 /tls-interaction/request-certificate/invoke-with-loop/unhandled-implementation 1036s ok 23 /tls-interaction/request-certificate/invoke-with-loop/async-implementation-success 1036s ok 24 /tls-interaction/request-certificate/invoke-with-loop/async-implementation-failure 1036s ok 25 /tls-interaction/request-certificate/invoke-with-loop/sync-implementation-success 1036s ok 26 /tls-interaction/request-certificate/invoke-with-loop/sync-implementation-failure 1036s # End of invoke-with-loop tests 1036s # Start of invoke-without-loop tests 1036s ok 27 /tls-interaction/request-certificate/invoke-without-loop/unhandled-implementation 1036s ok 28 /tls-interaction/request-certificate/invoke-without-loop/async-implementation-success 1036s ok 29 /tls-interaction/request-certificate/invoke-without-loop/async-implementation-failure 1036s ok 30 /tls-interaction/request-certificate/invoke-without-loop/sync-implementation-success 1036s ok 31 /tls-interaction/request-certificate/invoke-without-loop/sync-implementation-failure 1036s # End of invoke-without-loop tests 1036s # Start of invoke-in-loop tests 1036s ok 32 /tls-interaction/request-certificate/invoke-in-loop/unhandled-implementation 1036s ok 33 /tls-interaction/request-certificate/invoke-in-loop/async-implementation-success 1036s ok 34 /tls-interaction/request-certificate/invoke-in-loop/async-implementation-failure 1036s ok 35 /tls-interaction/request-certificate/invoke-in-loop/sync-implementation-success 1036s ok 36 /tls-interaction/request-certificate/invoke-in-loop/sync-implementation-failure 1036s # End of invoke-in-loop tests 1036s # Start of sync tests 1036s ok 37 /tls-interaction/request-certificate/sync/unhandled-implementation 1036s ok 38 /tls-interaction/request-certificate/sync/sync-implementation-success 1036s ok 39 /tls-interaction/request-certificate/sync/sync-implementation-failure 1036s # End of sync tests 1036s # Start of async tests 1036s ok 40 /tls-interaction/request-certificate/async/unhandled-implementation 1036s ok 41 /tls-interaction/request-certificate/async/async-implementation-success 1036s ok 42 /tls-interaction/request-certificate/async/async-implementation-failure 1036s # End of async tests 1036s # End of request-certificate tests 1036s # End of tls-interaction tests 1036s ok - glib/tls-interaction.test 1036s # Running test: glib/unix-streams.test 1036s TAP version 14 1036s # random seed: R02S6ab314c669a86c877d6503a7cd0a58c7 1036s 1..9 1036s # Start of unix-streams tests 1036s ok 1 /unix-streams/basic 1037s ok 2 /unix-streams/pipe-io-test 1037s # slow test /unix-streams/pipe-io-test executed in 0.50 secs 1037s ok 3 /unix-streams/nonblocking-io-test 1037s # slow test /unix-streams/nonblocking-io-test executed in 0.50 secs 1037s ok 4 /unix-streams/read_write 1037s ok 5 /unix-streams/read_writev 1037s ok 6 /unix-streams/write-wouldblock 1037s ok 7 /unix-streams/writev-wouldblock 1037s ok 8 /unix-streams/write-async-wouldblock 1037s ok 9 /unix-streams/writev-async-wouldblock 1037s # End of unix-streams tests 1037s ok - glib/unix-streams.test 1037s # Running test: glib/macros-c-99.test 1037s TAP version 14 1037s # random seed: R02S58a5b82d01c72cee4b24498f39a9c74f 1037s 1..4 1037s # Start of C tests 1037s ok 1 /C/standard-99 1037s # End of C tests 1037s # Start of alignof tests 1037s ok 2 /alignof/fallback 1037s # End of alignof tests 1037s # Start of assert tests 1037s ok 3 /assert/static 1037s # End of assert tests 1037s # Start of struct tests 1037s ok 4 /struct/sizeof_member 1037s # End of struct tests 1037s ok - glib/macros-c-99.test 1037s # Running test: glib/utf8-performance.test 1037s TAP version 14 1037s # random seed: R02S278f81ac8ebc0d967b5ecc491d7ff7e0 1037s 1..36 1037s # Start of utf8 tests 1037s # Start of perf tests 1037s # Start of get_char tests 1037s # max perf: 4.8 MB/s 1037s ok 1 /utf8/perf/get_char/ascii 1037s # max perf: 67.0 MB/s 1037s ok 2 /utf8/perf/get_char/latin1 1037s # max perf: 160.0 MB/s 1037s ok 3 /utf8/perf/get_char/cyrillic 1037s # max perf: 156.0 MB/s 1037s ok 4 /utf8/perf/get_char/han 1037s # End of get_char tests 1037s # Start of get_char-backwards tests 1037s # max perf: inf MB/s 1037s ok 5 /utf8/perf/get_char-backwards/ascii 1037s # max perf: 67.0 MB/s 1037s ok 6 /utf8/perf/get_char-backwards/latin1 1037s # max perf: 160.0 MB/s 1037s ok 7 /utf8/perf/get_char-backwards/cyrillic 1037s # max perf: 156.0 MB/s 1037s ok 8 /utf8/perf/get_char-backwards/han 1037s # End of get_char-backwards tests 1037s # Start of get_char_validated tests 1037s # max perf: 43.0 MB/s 1037s ok 9 /utf8/perf/get_char_validated/ascii 1037s # max perf: 67.0 MB/s 1037s ok 10 /utf8/perf/get_char_validated/latin1 1037s # max perf: 160.0 MB/s 1037s ok 11 /utf8/perf/get_char_validated/cyrillic 1037s # max perf: 156.0 MB/s 1037s ok 12 /utf8/perf/get_char_validated/han 1037s # End of get_char_validated tests 1037s # Start of utf8_to_ucs4 tests 1037s # max perf: 43.0 MB/s 1037s ok 13 /utf8/perf/utf8_to_ucs4/ascii 1037s # max perf: 67.0 MB/s 1037s ok 14 /utf8/perf/utf8_to_ucs4/latin1 1037s # max perf: 160.0 MB/s 1037s ok 15 /utf8/perf/utf8_to_ucs4/cyrillic 1037s # max perf: 156.0 MB/s 1037s ok 16 /utf8/perf/utf8_to_ucs4/han 1037s # End of utf8_to_ucs4 tests 1037s # Start of utf8_to_ucs4-sized tests 1037s # max perf: inf MB/s 1037s ok 17 /utf8/perf/utf8_to_ucs4-sized/ascii 1037s # max perf: 67.0 MB/s 1037s ok 18 /utf8/perf/utf8_to_ucs4-sized/latin1 1037s # max perf: 160.0 MB/s 1037s ok 19 /utf8/perf/utf8_to_ucs4-sized/cyrillic 1037s # max perf: 156.0 MB/s 1037s ok 20 /utf8/perf/utf8_to_ucs4-sized/han 1037s # End of utf8_to_ucs4-sized tests 1037s # Start of utf8_to_ucs4_fast tests 1037s # max perf: 43.0 MB/s 1037s ok 21 /utf8/perf/utf8_to_ucs4_fast/ascii 1037s # max perf: 67.0 MB/s 1037s ok 22 /utf8/perf/utf8_to_ucs4_fast/latin1 1037s # max perf: 160.0 MB/s 1037s ok 23 /utf8/perf/utf8_to_ucs4_fast/cyrillic 1037s # max perf: 156.0 MB/s 1037s ok 24 /utf8/perf/utf8_to_ucs4_fast/han 1037s # End of utf8_to_ucs4_fast tests 1037s # Start of utf8_to_ucs4_fast-sized tests 1037s # max perf: inf MB/s 1037s ok 25 /utf8/perf/utf8_to_ucs4_fast-sized/ascii 1037s # max perf: inf MB/s 1037s ok 26 /utf8/perf/utf8_to_ucs4_fast-sized/latin1 1037s # max perf: 160.0 MB/s 1037s ok 27 /utf8/perf/utf8_to_ucs4_fast-sized/cyrillic 1037s # max perf: inf MB/s 1037s ok 28 /utf8/perf/utf8_to_ucs4_fast-sized/han 1037s # End of utf8_to_ucs4_fast-sized tests 1037s # Start of utf8_validate tests 1037s # max perf: 43.0 MB/s 1037s ok 29 /utf8/perf/utf8_validate/ascii 1037s # max perf: 67.0 MB/s 1037s ok 30 /utf8/perf/utf8_validate/latin1 1037s ok - glib/utf8-performance.test 1037s # Running test: glib/init.test 1037s ok - glib/init.test 1037s # Running test: glib/gdatetime.test 1037s # max perf: 160.0 MB/s 1037s ok 31 /utf8/perf/utf8_validate/cyrillic 1037s # max perf: 156.0 MB/s 1037s ok 32 /utf8/perf/utf8_validate/han 1037s # End of utf8_validate tests 1037s # Start of utf8_validate-sized tests 1037s # max perf: inf MB/s 1037s ok 33 /utf8/perf/utf8_validate-sized/ascii 1037s # max perf: 67.0 MB/s 1037s ok 34 /utf8/perf/utf8_validate-sized/latin1 1037s # max perf: 160.0 MB/s 1037s ok 35 /utf8/perf/utf8_validate-sized/cyrillic 1037s # max perf: inf MB/s 1037s ok 36 /utf8/perf/utf8_validate-sized/han 1037s # End of utf8_validate-sized tests 1037s # End of perf tests 1037s # End of utf8 tests 1037s TAP version 14 1037s # random seed: R02S3eac9bee06a2134a2546578281476365 1037s 1..2 1037s # Start of thread tests 1037s # Start of deprecated tests 1037s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_init_4H2NK3/thread/deprecated/init/.dirs/home 1037s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_init_4H2NK3/thread/deprecated/init/.dirs/cache 1037s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_init_4H2NK3/thread/deprecated/init/.dirs/system-config1:/tmp/test_init_4H2NK3/thread/deprecated/init/.dirs/system-config2 1037s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_init_4H2NK3/thread/deprecated/init/.dirs/config 1037s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_init_4H2NK3/thread/deprecated/init/.dirs/system-data1:/tmp/test_init_4H2NK3/thread/deprecated/init/.dirs/system-data2 1037s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_init_4H2NK3/thread/deprecated/init/.dirs/data 1037s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_init_4H2NK3/thread/deprecated/init/.dirs/state 1037s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_init_4H2NK3/thread/deprecated/init/.dirs/runtime 1037s ok 1 /thread/deprecated/init 1037s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_init_4H2NK3/thread/deprecated/init-with-errorcheck-mutexes/.dirs/home 1037s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_init_4H2NK3/thread/deprecated/init-with-errorcheck-mutexes/.dirs/cache 1037s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_init_4H2NK3/thread/deprecated/init-with-errorcheck-mutexes/.dirs/system-config1:/tmp/test_init_4H2NK3/thread/deprecated/init-with-errorcheck-mutexes/.dirs/system-config2 1037s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_init_4H2NK3/thread/deprecated/init-with-errorcheck-mutexes/.dirs/config 1037s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_init_4H2NK3/thread/deprecated/init-with-errorcheck-mutexes/.dirs/system-data1:/tmp/test_init_4H2NK3/thread/deprecated/init-with-errorcheck-mutexes/.dirs/system-data2 1037s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_init_4H2NK3/thread/deprecated/init-with-errorcheck-mutexes/.dirs/data 1037s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_init_4H2NK3/thread/deprecated/init-with-errorcheck-mutexes/.dirs/state 1037s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_init_4H2NK3/thread/deprecated/init-with-errorcheck-mutexes/.dirs/runtime 1037s ok 2 /thread/deprecated/init-with-errorcheck-mutexes 1037s # End of deprecated tests 1037s # End of thread tests 1037s TAP version 14 1037s # random seed: R02S3c32fa63ddd2bf2ab4ac098610f1ef1a 1037s 1..68 1037s # Start of GDateTime tests 1037s # Bug Reference: http://bugzilla.gnome.org/702674 1037s ok 1 /GDateTime/invalid 1037s ok 2 /GDateTime/add_days 1037s ok 3 /GDateTime/add_full 1037s ok 4 /GDateTime/add_hours 1037s ok 5 /GDateTime/add_minutes 1037s ok 6 /GDateTime/add_months 1037s ok 7 /GDateTime/add_seconds 1037s ok 8 /GDateTime/add_weeks 1037s ok 9 /GDateTime/add_years 1037s ok 10 /GDateTime/compare 1037s ok 11 /GDateTime/diff 1037s ok 12 /GDateTime/equal 1037s ok 13 /GDateTime/get_day_of_week 1037s ok 14 /GDateTime/get_day_of_month 1037s ok 15 /GDateTime/get_day_of_year 1037s ok 16 /GDateTime/get_hour 1037s ok 17 /GDateTime/get_microsecond 1037s ok 18 /GDateTime/get_minute 1037s ok 19 /GDateTime/get_month 1037s ok 20 /GDateTime/get_second 1037s ok 21 /GDateTime/get_utc_offset 1037s ok 22 /GDateTime/get_year 1037s ok 23 /GDateTime/hash 1037s ok 24 /GDateTime/new_from_unix 1037s ok 25 /GDateTime/new_from_unix_utc 1037s ok 26 /GDateTime/new_from_timeval 1037s ok 27 /GDateTime/new_from_timeval_utc 1037s ok 28 /GDateTime/new_from_iso8601 1037s ok 29 /GDateTime/new_full 1037s ok 30 /GDateTime/now 1037s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/2215 1037s ok 31 /GDateTime/test-6-days-until-end-of-the-month 1037s # %a -> expected: Sat 1037s # %a -> actual: Sat 1037s # %A -> expected: Saturday 1037s # %A -> actual: Saturday 1037s # %b -> expected: Oct 1037s # %b -> actual: Oct 1037s # %B -> expected: October 1037s # %B -> actual: October 1037s # %d -> expected: 24 1037s # %d -> actual: 24 1037s # %d -> expected: 01 1037s # %d -> actual: 01 1037s # %e -> expected: 24 1037s # %e -> actual: 24 1037s # %e -> expected:  1 1037s # %e -> actual:  1 1037s # %f -> expected: 001000 1037s # %f -> actual: 001000 1037s # %h -> expected: Oct 1037s # %h -> actual: Oct 1037s # %H -> expected: 00 1037s # %H -> actual: 00 1037s # %H -> expected: 15 1037s # %H -> actual: 15 1037s # %I -> expected: 12 1037s # %I -> actual: 12 1037s # %I -> expected: 12 1037s # %I -> actual: 12 1037s # %I -> expected: 03 1037s # %I -> actual: 03 1037s # %j -> expected: 297 1037s # %j -> actual: 297 1037s # %k -> expected:  0 1037s # %k -> actual:  0 1037s # %k -> expected: 13 1037s # %k -> actual: 13 1037s # %l -> expected: 12 1037s # %l -> actual: 12 1037s # %I -> expected: 12 1037s # %I -> actual: 12 1037s # %l -> expected:  1 1037s # %l -> actual:  1 1037s # %l -> expected: 10 1037s # %l -> actual: 10 1037s # %m -> expected: 10 1037s # %m -> actual: 10 1037s # %M -> expected: 00 1037s # %M -> actual: 00 1037s # %p -> expected: AM 1037s # %p -> actual: AM 1037s # %p -> expected: PM 1037s # %p -> actual: PM 1037s # %P -> expected: am 1037s # %P -> actual: am 1037s # %P -> expected: pm 1037s # %P -> actual: pm 1037s # %r -> expected: 12:00:00 AM 1037s # %r -> actual: 12:00:00 AM 1037s # %r -> expected: 01:13:13 PM 1037s # %r -> actual: 01:13:13 PM 1037s # %R -> expected: 00:00 1037s # %R -> actual: 00:00 1037s # %R -> expected: 13:13 1037s # %R -> actual: 13:13 1037s # %S -> expected: 00 1037s # %S -> actual: 00 1037s # %t -> expected: 1037s # %t -> actual: 1037s # %u -> expected: 6 1037s # %u -> actual: 6 1037s # %x -> expected: 10/24/09 1037s # %x -> actual: 10/24/09 1037s # %X -> expected: 00:00:00 1037s # %X -> actual: 00:00:00 1037s # %X -> expected: 13:14:15 1037s # %X -> actual: 13:14:15 1037s # %y -> expected: 09 1037s # %y -> actual: 09 1037s # %Y -> expected: 2009 1037s # %Y -> actual: 2009 1037s # %% -> expected: % 1037s # %% -> actual: % 1037s # % -> expected: 1037s # % -> actual: 1037s # %9 -> expected: (null) 1037s # %9 -> actual: (null) 1037s # %Z -> expected: UTC 1037s # %Z -> actual: UTC 1037s # %#Z %Z -> expected: utc UTC 1037s # %#Z %Z -> actual: utc UTC 1037s ok 32 /GDateTime/printf 1037s # %a -> expected: 土 1037s # %a -> actual: 土 1037s # %A -> expected: 土曜日 1037s # %A -> actual: 土曜日 1037s # %b -> expected: 10月 1037s # %b -> actual: 10月 1037s # %B -> expected: 10月 1037s # %B -> actual: 10月 1037s # %c -> expected: 2009年10月24日 00時00分00秒 1037s # %c -> actual: 2009年10月24日 00時00分00秒 1037s # %C -> expected: 20 1037s # %C -> actual: 20 1037s # %d -> expected: 24 1037s # %d -> actual: 24 1037s # %d -> expected: 01 1037s # %d -> actual: 01 1037s # %e -> expected: 24 1037s # %e -> actual: 24 1037s # %h -> expected: 10月 1037s # %h -> actual: 10月 1037s # %H -> expected: 00 1037s # %H -> actual: 00 1037s # %H -> expected: 15 1037s # %H -> actual: 15 1037s # %I -> expected: 12 1037s # %I -> actual: 12 1037s # %I -> expected: 12 1037s # %I -> actual: 12 1037s # %I -> expected: 03 1037s # %I -> actual: 03 1037s # %j -> expected: 297 1037s # %j -> actual: 297 1037s # %k -> expected:  0 1037s # %k -> actual:  0 1037s # %k -> expected: 13 1037s # %k -> actual: 13 1037s # %l -> expected: 12 1037s # %l -> actual: 12 1037s # %I -> expected: 12 1037s # %I -> actual: 12 1037s # %l -> expected:  1 1037s # %l -> actual:  1 1037s # %l -> expected: 10 1037s # %l -> actual: 10 1037s # %m -> expected: 10 1037s # %m -> actual: 10 1037s # %M -> expected: 00 1037s # %M -> actual: 00 1037s # %p -> expected: 午前 1037s # %p -> actual: 午前 1037s # %p -> expected: 午後 1037s # %p -> actual: 午後 1037s # %P -> expected: 午前 1037s # %P -> actual: 午前 1037s # %P -> expected: 午後 1037s # %P -> actual: 午後 1037s # %r -> expected: 午前12時00分00秒 1037s # %r -> actual: 午前12時00分00秒 1037s # %r -> expected: 午後01時13分13秒 1037s # %r -> actual: 午後01時13分13秒 1037s # %R -> expected: 00:00 1037s # %R -> actual: 00:00 1037s # %R -> expected: 13:13 1037s # %R -> actual: 13:13 1037s # %S -> expected: 00 1037s # %S -> actual: 00 1037s # %t -> expected: 1037s # %t -> actual: 1037s # %u -> expected: 6 1037s # %u -> actual: 6 1037s # %x -> expected: 2009年10月24日 1037s # %x -> actual: 2009年10月24日 1037s # %X -> expected: 00時00分00秒 1037s # %X -> actual: 00時00分00秒 1037s # %X -> expected: 13時14分15秒 1037s # %X -> actual: 13時14分15秒 1037s # %y -> expected: 09 1037s # %y -> actual: 09 1037s # %Y -> expected: 2009 1037s # %Y -> actual: 2009 1037s # %% -> expected: % 1037s # %% -> actual: % 1037s # % -> expected: 1037s # % -> actual: 1037s # %9 -> expected: (null) 1037s # %9 -> actual: (null) 1037s # %Ec -> expected: 平成21年10月24日 00時00分00秒 1037s # %Ec -> actual: 平成21年10月24日 00時00分00秒 1037s # %EC -> expected: 平成 1037s # %EC -> actual: 平成 1037s # %Ex -> expected: 平成21年10月24日 1037s # %Ex -> actual: 平成21年10月24日 1037s # %EX -> expected: 00時00分00秒 1037s # %EX -> actual: 00時00分00秒 1037s # %Ey -> expected: 21 1037s # %Ey -> actual: 21 1037s # %EY -> expected: 平成21年 1037s # %EY -> actual: 平成21年 1037s ok 33 /GDateTime/non_utf8_printf 1037s # ąśćł -> expected: ąśćł 1037s # ąśćł -> actual: ąśćł 1037s # %H∶%M -> expected: 23∶15 1037s # %H∶%M -> actual: 23∶15 1037s # %H∶%M -> expected: 23∶15 1037s # %H∶%M -> actual: 23∶15 1037s ok 34 /GDateTime/format_unrepresentable 1037s ok 35 /GDateTime/format_iso8601 1037s ok 36 /GDateTime/strftime 1037s # %d -> expected: 01 1037s # %d -> actual: 01 1037s # %_d -> expected: 1 1037s # %_d -> actual: 1 1037s # %-d -> expected: 1 1037s # %-d -> actual: 1 1037s # %0d -> expected: 01 1037s # %0d -> actual: 01 1037s # %d -> expected: 21 1037s # %d -> actual: 21 1037s # %_d -> expected: 21 1037s # %_d -> actual: 21 1037s # %-d -> expected: 21 1037s # %-d -> actual: 21 1037s # %0d -> expected: 21 1037s # %0d -> actual: 21 1037s # %e -> expected:  1 1037s # %e -> actual:  1 1037s # %_e -> expected: 1 1037s # %_e -> actual: 1 1037s # %-e -> expected: 1 1037s # %-e -> actual: 1 1037s # %0e -> expected: 01 1037s # %0e -> actual: 01 1037s # %e -> expected: 21 1037s # %e -> actual: 21 1037s # %_e -> expected: 21 1037s # %_e -> actual: 21 1037s # %-e -> expected: 21 1037s # %-e -> actual: 21 1037s # %0e -> expected: 21 1037s # %0e -> actual: 21 1037s # %a -> expected: Thu 1037s # %a -> actual: Thu 1037s # %^a -> expected: THU 1037s # %^a -> actual: THU 1037s # %#a -> expected: THU 1037s # %#a -> actual: THU 1037s # %A -> expected: Thursday 1037s # %A -> actual: Thursday 1037s # %^A -> expected: THURSDAY 1037s # %^A -> actual: THURSDAY 1037s # %#A -> expected: THURSDAY 1037s # %#A -> actual: THURSDAY 1037s # %b -> expected: Jan 1037s # %b -> actual: Jan 1037s # %^b -> expected: JAN 1037s # %^b -> actual: JAN 1037s # %#b -> expected: JAN 1037s # %#b -> actual: JAN 1037s # %B -> expected: January 1037s # %B -> actual: January 1037s # %^B -> expected: JANUARY 1037s # %^B -> actual: JANUARY 1037s # %#B -> expected: JANUARY 1037s # %#B -> actual: JANUARY 1037s # %h -> expected: Jan 1037s # %h -> actual: Jan 1037s # %^h -> expected: JAN 1037s # %^h -> actual: JAN 1037s # %#h -> expected: JAN 1037s # %#h -> actual: JAN 1037s # %Z -> expected: UTC 1037s # %Z -> actual: UTC 1037s # %^Z -> expected: UTC 1037s # %^Z -> actual: UTC 1037s # %#Z -> expected: utc 1037s # %#Z -> actual: utc 1037s # %H -> expected: 01 1037s # %H -> actual: 01 1037s # %_H -> expected: 1 1037s # %_H -> actual: 1 1037s # %-H -> expected: 1 1037s # %-H -> actual: 1 1037s # %0H -> expected: 01 1037s # %0H -> actual: 01 1037s # %H -> expected: 21 1037s # %H -> actual: 21 1037s # %_H -> expected: 21 1037s # %_H -> actual: 21 1037s # %-H -> expected: 21 1037s # %-H -> actual: 21 1037s # %0H -> expected: 21 1037s # %0H -> actual: 21 1037s # %I -> expected: 01 1037s # %I -> actual: 01 1037s # %_I -> expected: 1 1037s # %_I -> actual: 1 1037s # %-I -> expected: 1 1037s # %-I -> actual: 1 1037s # %0I -> expected: 01 1037s # %0I -> actual: 01 1037s # %I -> expected: 11 1037s # %I -> actual: 11 1037s # %_I -> expected: 11 1037s # %_I -> actual: 11 1037s # %-I -> expected: 11 1037s # %-I -> actual: 11 1037s # %0I -> expected: 11 1037s # %0I -> actual: 11 1037s # %k -> expected:  1 1037s # %k -> actual:  1 1037s # %_k -> expected: 1 1037s # %_k -> actual: 1 1037s # %-k -> expected: 1 1037s # %-k -> actual: 1 1037s # %0k -> expected: 01 1037s # %0k -> actual: 01 1037s # %l -> expected:  1 1037s # %l -> actual:  1 1037s # %_l -> expected: 1 1037s # %_l -> actual: 1 1037s # %-l -> expected: 1 1037s # %-l -> actual: 1 1037s # %0l -> expected: 01 1037s # %0l -> actual: 01 1037s # %l -> expected: 11 1037s # %l -> actual: 11 1037s # %_l -> expected: 11 1037s # %_l -> actual: 11 1037s # %-l -> expected: 11 1037s # %-l -> actual: 11 1037s # %0l -> expected: 11 1037s # %0l -> actual: 11 1037s # %p -> expected: AM 1037s # %p -> actual: AM 1037s # %^p -> expected: AM 1037s # %^p -> actual: AM 1037s # %#p -> expected: am 1037s # %#p -> actual: am 1037s # %P -> expected: am 1037s # %P -> actual: am 1037s # %^P -> expected: AM 1037s # %^P -> actual: AM 1037s # %#P -> expected: am 1037s # %#P -> actual: am 1037s # %OH -> expected: ۲۳ 1037s # %OH -> actual: ۲۳ 1037s # %OI -> expected: ۱۱ 1037s # %OI -> actual: ۱۱ 1037s # %OM -> expected: ۰۰ 1037s # %OM -> actual: ۰۰ 1037s # %Om -> expected: ۰۷ 1037s # %Om -> actual: ۰۷ 1037s # %0Om -> expected: ۰۷ 1037s # %0Om -> actual: ۰۷ 1037s # %-Om -> expected: ۷ 1037s # %-Om -> actual: ۷ 1037s # %_Om -> expected: ۷ 1037s # %_Om -> actual: ۷ 1037s # %c -> expected: thu 01 jan 2009 00:00:00 utc 1037s # %c -> actual: Thu 01 Jan 2009 00:00:00 UTC 1037s # %Ec -> expected: thu 01 jan 2009 00:00:00 utc 1037s # %Ec -> actual: Thu 01 Jan 2009 00:00:00 UTC 1037s # %C -> expected: 20 1037s # %C -> actual: 20 1037s # %EC -> expected: 20 1037s # %EC -> actual: 20 1037s # %x -> expected: 02/01/09 1037s # %x -> actual: 02/01/09 1037s # %Ex -> expected: 02/01/09 1037s # %Ex -> actual: 02/01/09 1037s # %X -> expected: 01:02:03 1037s # %X -> actual: 01:02:03 1037s # %EX -> expected: 01:02:03 1037s # %EX -> actual: 01:02:03 1037s # %y -> expected: 09 1037s # %y -> actual: 09 1037s # %Ey -> expected: 09 1037s # %Ey -> actual: 09 1037s # %Y -> expected: 2009 1037s # %Y -> actual: 2009 1037s # %EY -> expected: 2009 1037s # %EY -> actual: 2009 1037s ok 37 /GDateTime/modifiers # SKIP locale gu_IN not available, skipping O modifier tests 1037s # Bug Reference: http://bugzilla.gnome.org/749206 1037s # %B -> expected: January 1037s # %B -> actual: January 1037s # %OB -> expected: February 1037s # %OB -> actual: February 1037s # %b -> expected: Mar 1037s # %b -> actual: Mar 1037s # %Ob -> expected: Apr 1037s # %Ob -> actual: Apr 1037s # %h -> expected: May 1037s # %h -> actual: May 1037s # %Oh -> expected: Jun 1037s # %Oh -> actual: Jun 1037s # %B -> expected: Juli 1037s # %B -> actual: Juli 1037s # %OB -> expected: August 1037s # %OB -> actual: August 1037s # %b -> expected: Sep 1037s # %b -> actual: Sep 1037s # %Ob -> expected: Okt 1037s # %Ob -> actual: Okt 1037s # %h -> expected: Nov 1037s # %h -> actual: Nov 1037s # %Oh -> expected: Dez 1037s # %Oh -> actual: Dez 1037s # %B -> expected: enero 1037s # %B -> actual: enero 1037s # %OB -> expected: febrero 1037s # %OB -> actual: febrero 1037s # %b -> expected: mar 1037s # %b -> actual: mar 1037s # %Ob -> expected: abr 1037s # %Ob -> actual: abr 1037s # %h -> expected: may 1037s # %h -> actual: may 1037s # %Oh -> expected: jun 1037s # %Oh -> actual: jun 1037s # %B -> expected: juillet 1037s # %B -> actual: juillet 1037s # %OB -> expected: août 1037s # %OB -> actual: août 1037s # %b -> expected: sept. 1037s # %b -> actual: sept. 1037s # %Ob -> expected: oct. 1037s # %Ob -> actual: oct. 1037s # %h -> expected: nov. 1037s # %h -> actual: nov. 1037s # %Oh -> expected: déc. 1037s # %Oh -> actual: déc. 1037s # %B -> expected: Ιανουαρίου 1037s # %B -> actual: Ιανουαρίου 1037s # %B -> expected: Φεβρουαρίου 1037s # %B -> actual: Φεβρουαρίου 1037s # %B -> expected: Μαρτίου 1037s # %B -> actual: Μαρτίου 1037s # %OB -> expected: Απρίλιος 1037s # %OB -> actual: Απρίλιος 1037s # %OB -> expected: Μάιος 1037s # %OB -> actual: Μάιος 1037s # %OB -> expected: Ιούνιος 1037s # %OB -> actual: Ιούνιος 1037s # %b -> expected: Ιουλ 1037s # %b -> actual: Ιουλ 1037s # %Ob -> expected: Αύγ 1037s # %Ob -> actual: Αύγ 1037s # %B -> expected: svibnja 1037s # %B -> actual: svibnja 1037s # %B -> expected: lipnja 1037s # %B -> actual: lipnja 1037s # %B -> expected: srpnja 1037s # %B -> actual: srpnja 1037s # %OB -> expected: Kolovoz 1037s # %OB -> actual: kolovoz 1037s # %OB -> expected: Rujan 1037s # %OB -> actual: rujan 1037s # %OB -> expected: Listopad 1037s # %OB -> actual: listopad 1037s # %b -> expected: Stu 1037s # %b -> actual: stu 1037s # %Ob -> expected: Pro 1037s # %Ob -> actual: pro 1037s # %B -> expected: sausio 1037s # %B -> actual: sausio 1037s # %B -> expected: vasario 1037s # %B -> actual: vasario 1037s # %B -> expected: kovo 1037s # %B -> actual: kovo 1037s # %OB -> expected: balandis 1037s # %OB -> actual: balandis 1037s # %OB -> expected: gegužė 1037s # %OB -> actual: gegužė 1037s # %OB -> expected: birželis 1037s # %OB -> actual: birželis 1037s # %b -> expected: liep. 1037s # %b -> actual: liep. 1037s # %Ob -> expected: rugp. 1037s # %Ob -> actual: rugp. 1037s # %B -> expected: maja 1037s # %B -> actual: maja 1037s # %B -> expected: czerwca 1037s # %B -> actual: czerwca 1037s # %B -> expected: lipca 1037s # %B -> actual: lipca 1037s # %OB -> expected: sierpień 1037s # %OB -> actual: sierpień 1037s # %OB -> expected: wrzesień 1037s # %OB -> actual: wrzesień 1037s # %OB -> expected: październik 1037s # %OB -> actual: październik 1037s # %b -> expected: lis 1037s # %b -> actual: lis 1037s # %Ob -> expected: gru 1037s # %Ob -> actual: gru 1037s # %B -> expected: января 1037s # %B -> actual: января 1037s # %B -> expected: февраля 1037s # %B -> actual: февраля 1037s # %B -> expected: марта 1037s # %B -> actual: марта 1037s # %OB -> expected: Апрель 1037s # %OB -> actual: Апрель 1037s # %OB -> expected: Май 1037s # %OB -> actual: Май 1037s # %OB -> expected: Июнь 1037s # %OB -> actual: Июнь 1037s # %b -> expected: июл 1037s # %b -> actual: июл 1037s # %Ob -> expected: авг 1037s # %Ob -> actual: авг 1037s # %b -> expected: мая 1037s # %b -> actual: мая 1037s # %Ob -> expected: май 1037s # %Ob -> actual: май 1037s ok 38 /GDateTime/month_names 1037s ok 39 /GDateTime/to_local 1037s ok 40 /GDateTime/to_unix 1037s ok 41 /GDateTime/to_timeval 1037s ok 42 /GDateTime/to_utc 1037s ok 43 /GDateTime/now_utc 1037s ok 44 /GDateTime/dst 1037s # Bug Reference: http://bugzilla.gnome.org/642935 1037s ok 45 /GDateTime/test_z 1039s ok 46 /GDateTime/test-all-dates 1039s # slow test /GDateTime/test-all-dates executed in 1.64 secs 1039s ok 47 /GDateTime/unix_usec 1039s # Start of new_from_unix tests 1039s # Bug Reference: http://bugzilla.gnome.org/782089 1039s ok 48 /GDateTime/new_from_unix/overflow 1039s # End of new_from_unix tests 1039s # Start of new_from_timeval tests 1039s # Bug Reference: http://bugzilla.gnome.org/782089 1039s # Maximum supported GTimeVal.tv_sec = 2147483647 1039s ok 49 /GDateTime/new_from_timeval/overflow 1039s # End of new_from_timeval tests 1039s # Start of new_from_iso8601 tests 1039s # /GDateTime/new_from_iso8601/2 summary: Further parser tests for g_date_time_new_from_iso8601(), checking success and failure using test vectors. 1039s # Vector 0: 1990-11-01T10:21:17Z 1039s # Vector 1: 19901101T102117Z 1039s # Vector 2: 1970-01-01T00:00:17.12Z 1039s # Vector 3: 1970-01-01T00:00:17.1234Z 1039s # Vector 4: 1970-01-01T00:00:17.123456Z 1039s # Vector 5: 1980-02-22T12:36:00+02:00 1039s # Vector 6: 1990-12-31T15:59:60-08:00 1039s # Vector 7: 1039s # Vector 8: x 1039s # Vector 9: 123x 1039s # Vector 10: 2001-10+x 1039s # Vector 11: 1980-02-22T 1039s # Vector 12: 2001-10-08Tx 1039s # Vector 13: 2001-10-08T10:11x 1039s # Vector 14: Wed Dec 19 17:20:20 GMT 2007 1039s # Vector 15: 1980-02-22T10:36:00Zulu 1039s # Vector 16: 2T0+819855292164632335 1039s # Vector 17: 2018-08-03T14:08:05.446178377+01:00 1039s # Vector 18: 2147483648-08-03T14:08:05.446178377+01:00 1039s # Vector 19: 2018-13-03T14:08:05.446178377+01:00 1039s # Vector 20: 2018-00-03T14:08:05.446178377+01:00 1039s # Vector 21: 2018-08-00T14:08:05.446178377+01:00 1039s # Vector 22: 2018-08-32T14:08:05.446178377+01:00 1039s # Vector 23: 2018-08-03T24:08:05.446178377+01:00 1039s # Vector 24: 2018-08-03T14:60:05.446178377+01:00 1039s # Vector 25: 2018-08-03T14:08:63.446178377+01:00 1039s # Vector 26: 2018-08-03T14:08:05.446178377+100:00 1039s # Vector 27: 20180803T140805.446178377+0100 1039s # Vector 28: 21474836480803T140805.446178377+0100 1039s # Vector 29: 20181303T140805.446178377+0100 1039s # Vector 30: 20180003T140805.446178377+0100 1039s # Vector 31: 20180800T140805.446178377+0100 1039s # Vector 32: 20180832T140805.446178377+0100 1039s # Vector 33: 20180803T240805.446178377+0100 1039s # Vector 34: 20180803T146005.446178377+0100 1039s # Vector 35: 20180803T140863.446178377+0100 1039s # Vector 36: 20180803T140805.446178377+10000 1039s # Vector 37: -0005-01-01T00:00:00Z 1039s # Vector 38: 2018-08-06 1039s # Vector 39: 20180803T140805,446178377+0100 1039s # Vector 40: 2018-08-03T14:08:05.446178377-01:00 1039s # Vector 41: 2018-08-03T14:08:05.446178377 01:00 1039s # Vector 42: 1990-11-01T10:21:17 1039s # Vector 43: 1719W462 407777-07 1039s # Vector 44: 4011090 260528Z 1039s # Vector 45: 0000W011 228214-22 1039s ok 50 /GDateTime/new_from_iso8601/2 1039s # End of new_from_iso8601 tests 1039s # Start of format_mixed tests 1039s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/2055 1039s # %b -> expected: mar 1039s # %b -> actual: Mar 1039s # %B -> expected: march 1039s # %B -> actual: March 1039s ok 51 /GDateTime/format_mixed/utf8_time_non_utf8_messages 1039s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/2055 1039s # %b -> expected: mar 1039s # %b -> actual: Mar 1039s # %B -> expected: march 1039s # %B -> actual: March 1039s ok 52 /GDateTime/format_mixed/utf8_time_utf8_messages 1039s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/2055 1039s # %b -> expected: Mär 1039s # %b -> actual: Mär 1039s # %B -> expected: März 1039s # %B -> actual: März 1039s ok 53 /GDateTime/format_mixed/non_utf8_time_non_utf8_messages 1039s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/2055 1039s # %b -> expected: Mär 1039s # %b -> actual: Mär 1039s # %B -> expected: März 1039s # %B -> actual: März 1039s ok 54 /GDateTime/format_mixed/non_utf8_time_utf8_messages 1039s # End of format_mixed tests 1039s # Start of strftime tests 1039s # %r -> expected: (null) 1039s # %r -> actual: (null) 1039s ok 55 /GDateTime/strftime/error_handling 1039s # End of strftime tests 1039s # Start of eras tests 1039s # %Ec -> expected: 令和05年06月01日 00時00分00秒 1039s # %Ec -> actual: 令和05年06月01日 00時00分00秒 1039s # %EC -> expected: 令和 1039s # %EC -> actual: 令和 1039s # %Ex -> expected: 令和05年06月01日 1039s # %Ex -> actual: 令和05年06月01日 1039s # %EX -> expected: 00時00分00秒 1039s # %EX -> actual: 00時00分00秒 1039s # %Ey -> expected: 05 1039s # %Ey -> actual: 05 1039s # %EY -> expected: 令和05年 1039s # %EY -> actual: 令和05年 1039s # %Ec -> expected: 平成31年04月30日 00時00分00秒 1039s # %Ec -> actual: 平成31年04月30日 00時00分00秒 1039s # %EC -> expected: 平成 1039s # %EC -> actual: 平成 1039s # %Ex -> expected: 平成31年04月30日 1039s # %Ex -> actual: 平成31年04月30日 1039s # %EX -> expected: 00時00分00秒 1039s # %EX -> actual: 00時00分00秒 1039s # %Ey -> expected: 31 1039s # %Ey -> actual: 31 1039s # %EY -> expected: 平成31年 1039s # %EY -> actual: 平成31年 1039s # %Ec -> expected: 昭和元年12月25日 00時00分00秒 1039s # %Ec -> actual: 昭和元年12月25日 00時00分00秒 1039s # %EC -> expected: 昭和 1039s # %EC -> actual: 昭和 1039s # %Ex -> expected: 昭和元年12月25日 1039s # %Ex -> actual: 昭和元年12月25日 1039s # %EX -> expected: 00時00分00秒 1039s # %EX -> actual: 00時00分00秒 1039s # %Ey -> expected: 01 1039s # %Ey -> actual: 01 1039s # %EY -> expected: 昭和元年 1039s # %EY -> actual: 昭和元年 1039s ok - glib/gdatetime.test 1039s # Running test: glib/io-channel-basic.test 1039s ok 56 /GDateTime/eras/japan 1039s ok 57 /GDateTime/eras/thailand # SKIP locale th_TH.utf-8 not available, skipping Thai era tests 1039s # Vector 0: 1039s # Vector 1: +:1:-543/01/01:+*:พ.ศ.:%EC %Ey 1039s # 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年 1039s # Vector 3: -:2:2020/01/01:-*:令和:%EC%Ey年 1039s # Vector 4: +:2:2020/01/01:2020/01/01:令和:%EC%Ey年 1039s # Vector 5: +:2:+2020/01/01:+*:令和:%EC%Ey年 1039s # Vector 6: .:2:2020/01/01:+*:令和:%EC%Ey年 1039s # Vector 7: +.2:2020/01/01:+*:令和:%EC%Ey年 1039s # Vector 8: + 1039s # Vector 9: +: 1039s # Vector 10: +:: 1039s # Vector 11: +:200 1039s # Vector 12: +:2nonsense 1039s # Vector 13: +:2nonsense: 1039s # Vector 14: +:2: 1039s # Vector 15: +:2:: 1039s # Vector 16: +:2:2020-01/01:+*:令和:%EC%Ey年 1039s # Vector 17: +:2:2020nonsense/01/01:+*:令和:%EC%Ey年 1039s # Vector 18: +:2:2020:+*:令和:%EC%Ey年 1039s # Vector 19: +:2:18446744073709551615/01/01:+*:令和:%EC%Ey年 1039s # Vector 20: +:2:2020/01-01:+*:令和:%EC%Ey年 1039s # Vector 21: +:2:2020/01nonsense/01:+*:令和:%EC%Ey年 1039s # Vector 22: +:2:2020/01:+*:令和:%EC%Ey年 1039s # Vector 23: +:2:2020/00/01:+*:令和:%EC%Ey年 1039s # Vector 24: +:2:2020/13/01:+*:令和:%EC%Ey年 1039s # Vector 25: +:2:2020/01/00:+*:令和:%EC%Ey年 1039s # Vector 26: +:2:2020/01/32:+*:令和:%EC%Ey年 1039s # Vector 27: +:2:2020/01/01nonsense:+*:令和:%EC%Ey年 1039s # Vector 28: +:2:2020/01/01 1039s # Vector 29: +:2:2020/01/01: 1039s # Vector 30: +:2:2020/01/01:: 1039s # Vector 31: +:2:2020/01/01:2021-01-01:令和:%EC%Ey年 1039s # Vector 32: +:2:2020/01/01:+* 1039s # Vector 33: +:2:2020/01/01:+*: 1039s # Vector 34: +:2:2020/01/01:+*:: 1039s # Vector 35: +:2:2020/01/01:+*:令和 1039s # Vector 36: +:2:2020/01/01:+*:令和: 1039s # Vector 37: +:2:2020/01/01:+*:令和:; 1039s ok 58 /GDateTime/eras/parsing 1039s # End of eras tests 1039s # End of GDateTime tests 1039s # Start of GTimeZone tests 1039s ok 59 /GTimeZone/find-interval 1039s ok 60 /GTimeZone/adjust-time 1039s ok 61 /GTimeZone/no-header 1039s ok 62 /GTimeZone/no-header-identifier 1039s ok 63 /GTimeZone/posix-parse 1039s # Bug Reference: http://bugzilla.gnome.org/697715 1039s ok 64 /GTimeZone/floating-point 1039s # System time zone identifier: Etc/UTC 1039s ok 65 /GTimeZone/identifier 1039s # Vector 0: -158400 1039s # Vector 1: -10000 1039s # Vector 2: -3600 1039s # Vector 3: -61 1039s # Vector 4: -60 1039s # Vector 5: -59 1039s # Vector 6: 0 1039s # Vector 7: 59 1039s # Vector 8: 60 1039s # Vector 9: 61 1039s # Vector 10: 3600 1039s # Vector 11: 10000 1039s # Vector 12: 158400 1039s ok 66 /GTimeZone/new-offset 1039s # /GTimeZone/parse-rfc8536 summary: Test parsing time zone files in RFC 8536 version 3 format 1039s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/2129 1039s ok 67 /GTimeZone/parse-rfc8536 1039s # /GTimeZone/caching summary: GTimeZone instances are cached 1039s ok 68 /GTimeZone/caching 1039s # End of GTimeZone tests 1039s TAP version 14 1039s # random seed: R02Sa9dc53c678775514740a63890fa8b4ae 1039s 1..1 1039s # Start of gio tests 1039s # Subtest: /usr/libexec/installed-tests/glib/io-channel-basic 1039s # random seed: R02S6fd6b971fdbe11cf494019e6dbb42be3 1039s # GLib-DEBUG: io-channel-basic: child writing 8+1877 bytes to 6 1039s # GLib-DEBUG: io-channel-basic: ...from 5: IN 1039s # GLib-DEBUG: io-channel-basic: ...from 5: 1877 bytes 1039s # GLib-DEBUG: io-channel-basic: ...from 5: OK 1040s # GLib-DEBUG: io-channel-basic: child writing 8+3977 bytes to 6 1040s # GLib-DEBUG: io-channel-basic: ...from 5: IN 1040s # GLib-DEBUG: io-channel-basic: ...from 5: 3977 bytes 1040s # GLib-DEBUG: io-channel-basic: ...from 5: OK 1040s # Executing: glib/io-channel-basic.test 1040s # GLib-DEBUG: io-channel-basic: child writing 8+4453 bytes to 6 1040s # GLib-DEBUG: io-channel-basic: ...from 5: IN 1040s # GLib-DEBUG: io-channel-basic: ...from 5: 4453 bytes 1040s # GLib-DEBUG: io-channel-basic: ...from 5: OK 1040s # GLib-DEBUG: io-channel-basic: child writing 8+28 bytes to 6 1040s # GLib-DEBUG: io-channel-basic: ...from 5: IN 1040s # GLib-DEBUG: io-channel-basic: ...from 5: 28 bytes 1040s # GLib-DEBUG: io-channel-basic: ...from 5: OK 1040s # GLib-DEBUG: io-channel-basic: child writing 8+4399 bytes to 6 1040s # GLib-DEBUG: io-channel-basic: ...from 5: IN 1040s # GLib-DEBUG: io-channel-basic: ...from 5: 4399 bytes 1040s # GLib-DEBUG: io-channel-basic: ...from 5: OK 1041s # GLib-DEBUG: io-channel-basic: child writing 8+2674 bytes to 6 1041s # GLib-DEBUG: io-channel-basic: ...from 5: IN 1041s # GLib-DEBUG: io-channel-basic: ...from 5: 2674 bytes 1041s # GLib-DEBUG: io-channel-basic: ...from 5: OK 1041s # GLib-DEBUG: io-channel-basic: child writing 8+211 bytes to 6 1041s # GLib-DEBUG: io-channel-basic: ...from 5: IN 1041s # GLib-DEBUG: io-channel-basic: ...from 5: 211 bytes 1041s # GLib-DEBUG: io-channel-basic: ...from 5: OK 1041s # GLib-DEBUG: io-channel-basic: child writing 8+1399 bytes to 6 1041s # GLib-DEBUG: io-channel-basic: ...from 5: IN 1041s # GLib-DEBUG: io-channel-basic: ...from 5: 1399 bytes 1041s # GLib-DEBUG: io-channel-basic: ...from 5: OK 1041s # GLib-DEBUG: io-channel-basic: child writing 8+644 bytes to 6 1041s # GLib-DEBUG: io-channel-basic: ...from 5: IN 1041s # GLib-DEBUG: io-channel-basic: ...from 5: 644 bytes 1041s # GLib-DEBUG: io-channel-basic: ...from 5: OK 1042s # GLib-DEBUG: io-channel-basic: child writing 8+3240 bytes to 6 1042s # GLib-DEBUG: io-channel-basic: ...from 5: IN 1042s # GLib-DEBUG: io-channel-basic: ...from 5: 3240 bytes 1042s # GLib-DEBUG: io-channel-basic: ...from 5: OK 1042s # GLib-DEBUG: io-channel-basic: child writing 8+419 bytes to 6 1042s # GLib-DEBUG: io-channel-basic: ...from 5: IN 1042s # GLib-DEBUG: io-channel-basic: ...from 5: 419 bytes 1042s # GLib-DEBUG: io-channel-basic: ...from 5: OK 1042s # GLib-DEBUG: io-channel-basic: child writing 8+1610 bytes to 6 1042s # GLib-DEBUG: io-channel-basic: ...from 5: IN 1042s # GLib-DEBUG: io-channel-basic: ...from 5: 1610 bytes 1042s # GLib-DEBUG: io-channel-basic: ...from 5: OK 1042s # GLib-DEBUG: io-channel-basic: child writing 8+4803 bytes to 6 1042s # GLib-DEBUG: io-channel-basic: ...from 5: IN 1042s # GLib-DEBUG: io-channel-basic: ...from 5: 4803 bytes 1042s # GLib-DEBUG: io-channel-basic: ...from 5: OK 1043s # GLib-DEBUG: io-channel-basic: child writing 8+1286 bytes to 6 1043s # GLib-DEBUG: io-channel-basic: ...from 5: IN 1043s # GLib-DEBUG: io-channel-basic: ...from 5: 1286 bytes 1043s # GLib-DEBUG: io-channel-basic: ...from 5: OK 1043s # GLib-DEBUG: io-channel-basic: child writing 8+2378 bytes to 6 1043s # GLib-DEBUG: io-channel-basic: ...from 5: IN 1043s # GLib-DEBUG: io-channel-basic: ...from 5: 2378 bytes 1043s # GLib-DEBUG: io-channel-basic: ...from 5: OK 1043s # GLib-DEBUG: io-channel-basic: child writing 8+1590 bytes to 6 1043s # GLib-DEBUG: io-channel-basic: ...from 5: IN 1043s # GLib-DEBUG: io-channel-basic: ...from 5: 1590 bytes 1043s # GLib-DEBUG: io-channel-basic: ...from 5: OK 1043s # GLib-DEBUG: io-channel-basic: child writing 8+4814 bytes to 6 1043s # GLib-DEBUG: io-channel-basic: ...from 5: IN 1043s # GLib-DEBUG: io-channel-basic: ...from 5: 4814 bytes 1043s # GLib-DEBUG: io-channel-basic: ...from 5: OK 1044s # GLib-DEBUG: io-channel-basic: child writing 8+782 bytes to 6 1044s # GLib-DEBUG: io-channel-basic: ...from 5: IN 1044s # GLib-DEBUG: io-channel-basic: ...from 5: 782 bytes 1044s # GLib-DEBUG: io-channel-basic: ...from 5: OK 1044s # GLib-DEBUG: io-channel-basic: child writing 8+872 bytes to 6 1044s # GLib-DEBUG: io-channel-basic: ...from 5: IN 1044s # GLib-DEBUG: io-channel-basic: ...from 5: 872 bytes 1044s # GLib-DEBUG: io-channel-basic: ...from 5: OK 1044s # GLib-DEBUG: io-channel-basic: child writing 8+1769 bytes to 6 1044s # GLib-DEBUG: io-channel-basic: ...from 5: IN 1044s # GLib-DEBUG: io-channel-basic: ...from 5: 1769 bytes 1044s # GLib-DEBUG: io-channel-basic: ...from 5: OK 1044s # GLib-DEBUG: io-channel-basic: child writing 8+3270 bytes to 6 1044s # GLib-DEBUG: io-channel-basic: ...from 5: IN 1044s # GLib-DEBUG: io-channel-basic: ...from 5: 3270 bytes 1044s # GLib-DEBUG: io-channel-basic: ...from 5: OK 1045s # Executing: glib/io-channel-basic.test 1045s # GLib-DEBUG: io-channel-basic: child writing 8+1065 bytes to 6 1045s # GLib-DEBUG: io-channel-basic: ...from 5: IN 1045s # GLib-DEBUG: io-channel-basic: ...from 5: 1065 bytes 1045s # GLib-DEBUG: io-channel-basic: ...from 5: OK 1045s # GLib-DEBUG: io-channel-basic: child writing 8+556 bytes to 6 1045s # GLib-DEBUG: io-channel-basic: child exiting, closing 6 1045s # GLib-DEBUG: io-channel-basic: ...from 5: HUP IN 1045s # GLib-DEBUG: io-channel-basic: ...from 5: 556 bytes 1045s # GLib-DEBUG: io-channel-basic: ...from 5: OK 1045s # Subtest: /usr/libexec/installed-tests/glib/io-channel-basic 1045s # random seed: R02Sf60d9cb7639e9391a96852513e6807c0 1045s # Subtest: /usr/libexec/installed-tests/glib/io-channel-basic 1045s # random seed: R02Sa9e5969568968229be2fec401ecfe09e 1045s # Subtest: /usr/libexec/installed-tests/glib/io-channel-basic 1045s # random seed: R02S0438211a8cf9c3ca70e72d73e37ab0c8 1045s # Subtest: /usr/libexec/installed-tests/glib/io-channel-basic 1045s # random seed: R02S17f0d6d20025c62428f9b24613ee852b 1045s # Subtest: /usr/libexec/installed-tests/glib/io-channel-basic 1045s # random seed: R02S0e43b05d9f17e771afc77540b2733b63 1045s # GLib-DEBUG: io-channel-basic: child writing 8+2408 bytes to 9 1045s # GLib-DEBUG: io-channel-basic: ...from 8: IN 1045s # GLib-DEBUG: io-channel-basic: ...from 8: 2408 bytes 1045s # GLib-DEBUG: io-channel-basic: ...from 8: OK 1045s # GLib-DEBUG: io-channel-basic: child writing 8+1173 bytes to 13 1045s # GLib-DEBUG: io-channel-basic: ...from 12: IN 1045s # GLib-DEBUG: io-channel-basic: ...from 12: 1173 bytes 1045s # GLib-DEBUG: io-channel-basic: ...from 12: OK 1045s # GLib-DEBUG: io-channel-basic: child writing 8+23 bytes to 11 1045s # GLib-DEBUG: io-channel-basic: ...from 10: IN 1045s # GLib-DEBUG: io-channel-basic: ...from 10: 23 bytes 1045s # GLib-DEBUG: io-channel-basic: ...from 10: OK 1045s # GLib-DEBUG: io-channel-basic: child writing 8+3488 bytes to 17 1045s # GLib-DEBUG: io-channel-basic: ...from 16: IN 1045s # GLib-DEBUG: io-channel-basic: ...from 16: 3488 bytes 1045s # GLib-DEBUG: io-channel-basic: ...from 16: OK 1045s # GLib-DEBUG: io-channel-basic: child writing 8+4475 bytes to 15 1045s # GLib-DEBUG: io-channel-basic: ...from 14: IN 1045s # GLib-DEBUG: io-channel-basic: ...from 14: 4475 bytes 1045s # GLib-DEBUG: io-channel-basic: ...from 14: OK 1046s # GLib-DEBUG: io-channel-basic: child writing 8+2544 bytes to 13 1046s # GLib-DEBUG: io-channel-basic: ...from 12: IN 1046s # GLib-DEBUG: io-channel-basic: ...from 12: 2544 bytes 1046s # GLib-DEBUG: io-channel-basic: ...from 12: OK 1046s # GLib-DEBUG: io-channel-basic: child writing 8+1758 bytes to 11 1046s # GLib-DEBUG: io-channel-basic: ...from 10: IN 1046s # GLib-DEBUG: io-channel-basic: ...from 10: 1758 bytes 1046s # GLib-DEBUG: io-channel-basic: ...from 10: OK 1046s # GLib-DEBUG: io-channel-basic: child writing 8+1518 bytes to 9 1046s # GLib-DEBUG: io-channel-basic: ...from 8: IN 1046s # GLib-DEBUG: io-channel-basic: ...from 8: 1518 bytes 1046s # GLib-DEBUG: io-channel-basic: ...from 8: OK 1046s # GLib-DEBUG: io-channel-basic: child writing 8+4595 bytes to 17 1046s # GLib-DEBUG: io-channel-basic: ...from 16: IN 1046s # GLib-DEBUG: io-channel-basic: ...from 16: 4595 bytes 1046s # GLib-DEBUG: io-channel-basic: ...from 16: OK 1046s # GLib-DEBUG: io-channel-basic: child writing 8+1241 bytes to 15 1046s # GLib-DEBUG: io-channel-basic: ...from 14: IN 1046s # GLib-DEBUG: io-channel-basic: ...from 14: 1241 bytes 1046s # GLib-DEBUG: io-channel-basic: ...from 14: OK 1046s # GLib-DEBUG: io-channel-basic: child writing 8+2666 bytes to 13 1046s # GLib-DEBUG: io-channel-basic: ...from 12: IN 1046s # GLib-DEBUG: io-channel-basic: ...from 12: 2666 bytes 1046s # GLib-DEBUG: io-channel-basic: ...from 12: OK 1046s # GLib-DEBUG: io-channel-basic: child writing 8+2096 bytes to 11 1046s # GLib-DEBUG: io-channel-basic: ...from 10: IN 1046s # GLib-DEBUG: io-channel-basic: ...from 10: 2096 bytes 1046s # GLib-DEBUG: io-channel-basic: ...from 10: OK 1046s # GLib-DEBUG: io-channel-basic: child writing 8+298 bytes to 9 1046s # GLib-DEBUG: io-channel-basic: ...from 8: IN 1046s # GLib-DEBUG: io-channel-basic: ...from 8: 298 bytes 1046s # GLib-DEBUG: io-channel-basic: ...from 8: OK 1046s # GLib-DEBUG: io-channel-basic: child writing 8+811 bytes to 17 1046s # GLib-DEBUG: io-channel-basic: ...from 16: IN 1046s # GLib-DEBUG: io-channel-basic: ...from 16: 811 bytes 1046s # GLib-DEBUG: io-channel-basic: ...from 16: OK 1046s # GLib-DEBUG: io-channel-basic: child writing 8+48 bytes to 15 1046s # GLib-DEBUG: io-channel-basic: ...from 14: IN 1046s # GLib-DEBUG: io-channel-basic: ...from 14: 48 bytes 1046s # GLib-DEBUG: io-channel-basic: ...from 14: OK 1046s # GLib-DEBUG: io-channel-basic: child writing 8+593 bytes to 13 1046s # GLib-DEBUG: io-channel-basic: ...from 12: IN 1046s # GLib-DEBUG: io-channel-basic: ...from 12: 593 bytes 1046s # GLib-DEBUG: io-channel-basic: ...from 12: OK 1046s # GLib-DEBUG: io-channel-basic: child writing 8+3757 bytes to 11 1046s # GLib-DEBUG: io-channel-basic: ...from 10: IN 1046s # GLib-DEBUG: io-channel-basic: ...from 10: 3757 bytes 1046s # GLib-DEBUG: io-channel-basic: ...from 10: OK 1046s # GLib-DEBUG: io-channel-basic: child writing 8+3613 bytes to 15 1046s # GLib-DEBUG: io-channel-basic: ...from 14: IN 1046s # GLib-DEBUG: io-channel-basic: ...from 14: 3613 bytes 1046s # GLib-DEBUG: io-channel-basic: ...from 14: OK 1046s # GLib-DEBUG: io-channel-basic: child writing 8+2260 bytes to 9 1046s # GLib-DEBUG: io-channel-basic: ...from 8: IN 1046s # GLib-DEBUG: io-channel-basic: ...from 8: 2260 bytes 1046s # GLib-DEBUG: io-channel-basic: ...from 8: OK 1046s # GLib-DEBUG: io-channel-basic: child writing 8+1828 bytes to 17 1046s # GLib-DEBUG: io-channel-basic: ...from 16: IN 1046s # GLib-DEBUG: io-channel-basic: ...from 16: 1828 bytes 1046s # GLib-DEBUG: io-channel-basic: ...from 16: OK 1046s # GLib-DEBUG: io-channel-basic: child writing 8+3943 bytes to 13 1046s # GLib-DEBUG: io-channel-basic: ...from 12: IN 1046s # GLib-DEBUG: io-channel-basic: ...from 12: 3943 bytes 1046s # GLib-DEBUG: io-channel-basic: ...from 12: OK 1046s # GLib-DEBUG: io-channel-basic: child writing 8+712 bytes to 11 1046s # GLib-DEBUG: io-channel-basic: ...from 10: IN 1046s # GLib-DEBUG: io-channel-basic: ...from 10: 712 bytes 1046s # GLib-DEBUG: io-channel-basic: ...from 10: OK 1046s # GLib-DEBUG: io-channel-basic: child writing 8+1426 bytes to 15 1046s # GLib-DEBUG: io-channel-basic: ...from 14: IN 1046s # GLib-DEBUG: io-channel-basic: ...from 14: 1426 bytes 1046s # GLib-DEBUG: io-channel-basic: ...from 14: OK 1046s # GLib-DEBUG: io-channel-basic: child writing 8+4083 bytes to 9 1046s # GLib-DEBUG: io-channel-basic: child writing 8+2082 bytes to 17 1046s # GLib-DEBUG: io-channel-basic: ...from 8: IN 1046s # GLib-DEBUG: io-channel-basic: ...from 8: 4083 bytes 1046s # GLib-DEBUG: io-channel-basic: ...from 8: OK 1046s # GLib-DEBUG: io-channel-basic: ...from 16: IN 1046s # GLib-DEBUG: io-channel-basic: ...from 16: 2082 bytes 1046s # GLib-DEBUG: io-channel-basic: ...from 16: OK 1047s # GLib-DEBUG: io-channel-basic: child writing 8+4318 bytes to 11 1047s # GLib-DEBUG: io-channel-basic: ...from 10: IN 1047s # GLib-DEBUG: io-channel-basic: ...from 10: 4318 bytes 1047s # GLib-DEBUG: io-channel-basic: ...from 10: OK 1047s # GLib-DEBUG: io-channel-basic: child writing 8+4473 bytes to 13 1047s # GLib-DEBUG: io-channel-basic: ...from 12: IN 1047s # GLib-DEBUG: io-channel-basic: ...from 12: 4473 bytes 1047s # GLib-DEBUG: io-channel-basic: ...from 12: OK 1047s # GLib-DEBUG: io-channel-basic: child writing 8+4558 bytes to 9 1047s # GLib-DEBUG: io-channel-basic: ...from 8: IN 1047s # GLib-DEBUG: io-channel-basic: ...from 8: 4558 bytes 1047s # GLib-DEBUG: io-channel-basic: ...from 8: OK 1047s # GLib-DEBUG: io-channel-basic: child writing 8+3884 bytes to 17 1047s # GLib-DEBUG: io-channel-basic: ...from 16: IN 1047s # GLib-DEBUG: io-channel-basic: ...from 16: 3884 bytes 1047s # GLib-DEBUG: io-channel-basic: ...from 16: OK 1047s # GLib-DEBUG: io-channel-basic: child writing 8+2804 bytes to 15 1047s # GLib-DEBUG: io-channel-basic: ...from 14: IN 1047s # GLib-DEBUG: io-channel-basic: ...from 14: 2804 bytes 1047s # GLib-DEBUG: io-channel-basic: ...from 14: OK 1047s # GLib-DEBUG: io-channel-basic: child writing 8+1381 bytes to 11 1047s # GLib-DEBUG: io-channel-basic: ...from 10: IN 1047s # GLib-DEBUG: io-channel-basic: ...from 10: 1381 bytes 1047s # GLib-DEBUG: io-channel-basic: ...from 10: OK 1047s # GLib-DEBUG: io-channel-basic: child writing 8+2403 bytes to 13 1047s # GLib-DEBUG: io-channel-basic: ...from 12: IN 1047s # GLib-DEBUG: io-channel-basic: ...from 12: 2403 bytes 1047s # GLib-DEBUG: io-channel-basic: ...from 12: OK 1047s # GLib-DEBUG: io-channel-basic: child writing 8+212 bytes to 9 1047s # GLib-DEBUG: io-channel-basic: ...from 8: IN 1047s # GLib-DEBUG: io-channel-basic: ...from 8: 212 bytes 1047s # GLib-DEBUG: io-channel-basic: ...from 8: OK 1047s # GLib-DEBUG: io-channel-basic: child writing 8+1661 bytes to 17 1047s # GLib-DEBUG: io-channel-basic: ...from 16: IN 1047s # GLib-DEBUG: io-channel-basic: ...from 16: 1661 bytes 1047s # GLib-DEBUG: io-channel-basic: ...from 16: OK 1047s # GLib-DEBUG: io-channel-basic: child writing 8+1153 bytes to 15 1047s # GLib-DEBUG: io-channel-basic: ...from 14: IN 1047s # GLib-DEBUG: io-channel-basic: ...from 14: 1153 bytes 1047s # GLib-DEBUG: io-channel-basic: ...from 14: OK 1047s # GLib-DEBUG: io-channel-basic: child writing 8+1237 bytes to 13 1047s # GLib-DEBUG: io-channel-basic: ...from 12: IN 1047s # GLib-DEBUG: io-channel-basic: ...from 12: 1237 bytes 1047s # GLib-DEBUG: io-channel-basic: ...from 12: OK 1047s # GLib-DEBUG: io-channel-basic: child writing 8+1761 bytes to 11 1047s # GLib-DEBUG: io-channel-basic: ...from 10: IN 1047s # GLib-DEBUG: io-channel-basic: ...from 10: 1761 bytes 1047s # GLib-DEBUG: io-channel-basic: ...from 10: OK 1047s # GLib-DEBUG: io-channel-basic: child writing 8+4929 bytes to 15 1047s # GLib-DEBUG: io-channel-basic: ...from 14: IN 1047s # GLib-DEBUG: io-channel-basic: ...from 14: 4929 bytes 1047s # GLib-DEBUG: io-channel-basic: ...from 14: OK 1047s # GLib-DEBUG: io-channel-basic: child writing 8+3011 bytes to 9 1047s # GLib-DEBUG: io-channel-basic: ...from 8: IN 1047s # GLib-DEBUG: io-channel-basic: ...from 8: 3011 bytes 1047s # GLib-DEBUG: io-channel-basic: ...from 8: OK 1047s # GLib-DEBUG: io-channel-basic: child writing 8+2589 bytes to 17 1047s # GLib-DEBUG: io-channel-basic: ...from 16: IN 1047s # GLib-DEBUG: io-channel-basic: ...from 16: 2589 bytes 1047s # GLib-DEBUG: io-channel-basic: ...from 16: OK 1047s # GLib-DEBUG: io-channel-basic: child writing 8+4199 bytes to 11 1047s # GLib-DEBUG: io-channel-basic: ...from 10: IN 1047s # GLib-DEBUG: io-channel-basic: ...from 10: 4199 bytes 1047s # GLib-DEBUG: io-channel-basic: ...from 10: OK 1047s # GLib-DEBUG: io-channel-basic: child writing 8+2849 bytes to 15 1047s # GLib-DEBUG: io-channel-basic: ...from 14: IN 1047s # GLib-DEBUG: io-channel-basic: ...from 14: 2849 bytes 1047s # GLib-DEBUG: io-channel-basic: ...from 14: OK 1047s # GLib-DEBUG: io-channel-basic: child writing 8+4666 bytes to 13 1047s # GLib-DEBUG: io-channel-basic: ...from 12: IN 1047s # GLib-DEBUG: io-channel-basic: ...from 12: 4666 bytes 1047s # GLib-DEBUG: io-channel-basic: ...from 12: OK 1047s # GLib-DEBUG: io-channel-basic: child writing 8+1798 bytes to 17 1047s # GLib-DEBUG: io-channel-basic: ...from 16: IN 1047s # GLib-DEBUG: io-channel-basic: ...from 16: 1798 bytes 1047s # GLib-DEBUG: io-channel-basic: ...from 16: OK 1047s # GLib-DEBUG: io-channel-basic: child writing 8+4770 bytes to 9 1047s # GLib-DEBUG: io-channel-basic: ...from 8: IN 1047s # GLib-DEBUG: io-channel-basic: ...from 8: 4770 bytes 1047s # GLib-DEBUG: io-channel-basic: ...from 8: OK 1048s # GLib-DEBUG: io-channel-basic: child writing 8+4101 bytes to 15 1048s # GLib-DEBUG: io-channel-basic: ...from 14: IN 1048s # GLib-DEBUG: io-channel-basic: ...from 14: 4101 bytes 1048s # GLib-DEBUG: io-channel-basic: ...from 14: OK 1048s # GLib-DEBUG: io-channel-basic: child writing 8+1997 bytes to 11 1048s # GLib-DEBUG: io-channel-basic: ...from 10: IN 1048s # GLib-DEBUG: io-channel-basic: ...from 10: 1997 bytes 1048s # GLib-DEBUG: io-channel-basic: ...from 10: OK 1048s # GLib-DEBUG: io-channel-basic: child writing 8+3101 bytes to 9 1048s # GLib-DEBUG: io-channel-basic: ...from 8: IN 1048s # GLib-DEBUG: io-channel-basic: ...from 8: 3101 bytes 1048s # GLib-DEBUG: io-channel-basic: ...from 8: OK 1048s # GLib-DEBUG: io-channel-basic: child writing 8+1014 bytes to 13 1048s # GLib-DEBUG: io-channel-basic: ...from 12: IN 1048s # GLib-DEBUG: io-channel-basic: ...from 12: 1014 bytes 1048s # GLib-DEBUG: io-channel-basic: ...from 12: OK 1048s # GLib-DEBUG: io-channel-basic: child writing 8+3890 bytes to 17 1048s # GLib-DEBUG: io-channel-basic: ...from 16: IN 1048s # GLib-DEBUG: io-channel-basic: ...from 16: 3890 bytes 1048s # GLib-DEBUG: io-channel-basic: ...from 16: OK 1048s # GLib-DEBUG: io-channel-basic: child writing 8+3356 bytes to 11 1048s # GLib-DEBUG: io-channel-basic: ...from 10: IN 1048s # GLib-DEBUG: io-channel-basic: ...from 10: 3356 bytes 1048s # GLib-DEBUG: io-channel-basic: ...from 10: OK 1048s # GLib-DEBUG: io-channel-basic: child writing 8+4110 bytes to 15 1048s # GLib-DEBUG: io-channel-basic: ...from 14: IN 1048s # GLib-DEBUG: io-channel-basic: ...from 14: 4110 bytes 1048s # GLib-DEBUG: io-channel-basic: ...from 14: OK 1048s # GLib-DEBUG: io-channel-basic: child writing 8+506 bytes to 9 1048s # GLib-DEBUG: io-channel-basic: ...from 8: IN 1048s # GLib-DEBUG: io-channel-basic: ...from 8: 506 bytes 1048s # GLib-DEBUG: io-channel-basic: ...from 8: OK 1048s # GLib-DEBUG: io-channel-basic: child writing 8+2986 bytes to 17 1048s # GLib-DEBUG: io-channel-basic: ...from 16: IN 1048s # GLib-DEBUG: io-channel-basic: ...from 16: 2986 bytes 1048s # GLib-DEBUG: io-channel-basic: ...from 16: OK 1048s # GLib-DEBUG: io-channel-basic: child writing 8+950 bytes to 13 1048s # GLib-DEBUG: io-channel-basic: ...from 12: IN 1048s # GLib-DEBUG: io-channel-basic: ...from 12: 950 bytes 1048s # GLib-DEBUG: io-channel-basic: ...from 12: OK 1048s # GLib-DEBUG: io-channel-basic: child writing 8+3778 bytes to 15 1048s # GLib-DEBUG: io-channel-basic: ...from 14: IN 1048s # GLib-DEBUG: io-channel-basic: ...from 14: 3778 bytes 1048s # GLib-DEBUG: io-channel-basic: ...from 14: OK 1048s # GLib-DEBUG: io-channel-basic: child writing 8+3538 bytes to 11 1048s # GLib-DEBUG: io-channel-basic: ...from 10: IN 1048s # GLib-DEBUG: io-channel-basic: ...from 10: 3538 bytes 1048s # GLib-DEBUG: io-channel-basic: ...from 10: OK 1048s # GLib-DEBUG: io-channel-basic: child writing 8+3234 bytes to 17 1048s # GLib-DEBUG: io-channel-basic: ...from 16: IN 1048s # GLib-DEBUG: io-channel-basic: ...from 16: 3234 bytes 1048s # GLib-DEBUG: io-channel-basic: ...from 16: OK 1048s # GLib-DEBUG: io-channel-basic: child writing 8+2316 bytes to 13 1048s # GLib-DEBUG: io-channel-basic: ...from 12: IN 1048s # GLib-DEBUG: io-channel-basic: ...from 12: 2316 bytes 1048s # GLib-DEBUG: io-channel-basic: ...from 12: OK 1048s # GLib-DEBUG: io-channel-basic: child writing 8+4306 bytes to 9 1048s # GLib-DEBUG: io-channel-basic: ...from 8: IN 1048s # GLib-DEBUG: io-channel-basic: ...from 8: 4306 bytes 1048s # GLib-DEBUG: io-channel-basic: ...from 8: OK 1048s # GLib-DEBUG: io-channel-basic: child writing 8+4010 bytes to 11 1048s # GLib-DEBUG: io-channel-basic: ...from 10: IN 1048s # GLib-DEBUG: io-channel-basic: ...from 10: 4010 bytes 1048s # GLib-DEBUG: io-channel-basic: ...from 10: OK 1048s # GLib-DEBUG: io-channel-basic: child writing 8+4770 bytes to 15 1048s # GLib-DEBUG: io-channel-basic: ...from 14: IN 1048s # GLib-DEBUG: io-channel-basic: ...from 14: 4770 bytes 1048s # GLib-DEBUG: io-channel-basic: ...from 14: OK 1048s # GLib-DEBUG: io-channel-basic: child writing 8+4877 bytes to 13 1048s # GLib-DEBUG: io-channel-basic: ...from 12: IN 1048s # GLib-DEBUG: io-channel-basic: ...from 12: 4877 bytes 1048s # GLib-DEBUG: io-channel-basic: ...from 12: OK 1048s # GLib-DEBUG: io-channel-basic: child writing 8+1007 bytes to 17 1048s # GLib-DEBUG: io-channel-basic: ...from 16: IN 1048s # GLib-DEBUG: io-channel-basic: ...from 16: 1007 bytes 1048s # GLib-DEBUG: io-channel-basic: ...from 16: OK 1048s # GLib-DEBUG: io-channel-basic: child writing 8+4868 bytes to 9 1048s # GLib-DEBUG: io-channel-basic: ...from 8: IN 1048s # GLib-DEBUG: io-channel-basic: ...from 8: 4868 bytes 1048s # GLib-DEBUG: io-channel-basic: ...from 8: OK 1049s # GLib-DEBUG: io-channel-basic: child writing 8+4769 bytes to 11 1049s # GLib-DEBUG: io-channel-basic: ...from 10: IN 1049s # GLib-DEBUG: io-channel-basic: ...from 10: 4769 bytes 1049s # GLib-DEBUG: io-channel-basic: ...from 10: OK 1049s # GLib-DEBUG: io-channel-basic: child writing 8+2625 bytes to 13 1049s # GLib-DEBUG: io-channel-basic: ...from 12: IN 1049s # GLib-DEBUG: io-channel-basic: ...from 12: 2625 bytes 1049s # GLib-DEBUG: io-channel-basic: ...from 12: OK 1049s # GLib-DEBUG: io-channel-basic: child writing 8+801 bytes to 15 1049s # GLib-DEBUG: io-channel-basic: ...from 14: IN 1049s # GLib-DEBUG: io-channel-basic: ...from 14: 801 bytes 1049s # GLib-DEBUG: io-channel-basic: ...from 14: OK 1049s # GLib-DEBUG: io-channel-basic: child writing 8+3998 bytes to 17 1049s # GLib-DEBUG: io-channel-basic: ...from 16: IN 1049s # GLib-DEBUG: io-channel-basic: ...from 16: 3998 bytes 1049s # GLib-DEBUG: io-channel-basic: ...from 16: OK 1049s # GLib-DEBUG: io-channel-basic: child writing 8+3688 bytes to 9 1049s # GLib-DEBUG: io-channel-basic: ...from 8: IN 1049s # GLib-DEBUG: io-channel-basic: ...from 8: 3688 bytes 1049s # GLib-DEBUG: io-channel-basic: ...from 8: OK 1049s # GLib-DEBUG: io-channel-basic: child writing 8+3001 bytes to 11 1049s # GLib-DEBUG: io-channel-basic: ...from 10: IN 1049s # GLib-DEBUG: io-channel-basic: ...from 10: 3001 bytes 1049s # GLib-DEBUG: io-channel-basic: ...from 10: OK 1049s # GLib-DEBUG: io-channel-basic: child writing 8+1947 bytes to 13 1049s # GLib-DEBUG: io-channel-basic: ...from 12: IN 1049s # GLib-DEBUG: io-channel-basic: ...from 12: 1947 bytes 1049s # GLib-DEBUG: io-channel-basic: ...from 12: OK 1049s # GLib-DEBUG: io-channel-basic: child writing 8+804 bytes to 17 1049s # GLib-DEBUG: io-channel-basic: ...from 16: IN 1049s # GLib-DEBUG: io-channel-basic: ...from 16: 804 bytes 1049s # GLib-DEBUG: io-channel-basic: ...from 16: OK 1049s # GLib-DEBUG: io-channel-basic: child writing 8+2431 bytes to 15 1049s # GLib-DEBUG: io-channel-basic: ...from 14: IN 1049s # GLib-DEBUG: io-channel-basic: ...from 14: 2431 bytes 1049s # GLib-DEBUG: io-channel-basic: ...from 14: OK 1049s # GLib-DEBUG: io-channel-basic: child writing 8+4875 bytes to 9 1049s # GLib-DEBUG: io-channel-basic: ...from 8: IN 1049s # GLib-DEBUG: io-channel-basic: ...from 8: 4875 bytes 1049s # GLib-DEBUG: io-channel-basic: ...from 8: OK 1049s # GLib-DEBUG: io-channel-basic: child writing 8+4070 bytes to 11 1049s # GLib-DEBUG: io-channel-basic: ...from 10: IN 1049s # GLib-DEBUG: io-channel-basic: ...from 10: 4070 bytes 1049s # GLib-DEBUG: io-channel-basic: ...from 10: OK 1049s # GLib-DEBUG: io-channel-basic: child writing 8+4270 bytes to 15 1049s # GLib-DEBUG: io-channel-basic: ...from 14: IN 1049s # GLib-DEBUG: io-channel-basic: ...from 14: 4270 bytes 1049s # GLib-DEBUG: io-channel-basic: ...from 14: OK 1049s # GLib-DEBUG: io-channel-basic: child writing 8+2398 bytes to 13 1049s # GLib-DEBUG: io-channel-basic: ...from 12: IN 1049s # GLib-DEBUG: io-channel-basic: ...from 12: 2398 bytes 1049s # GLib-DEBUG: io-channel-basic: ...from 12: OK 1049s # GLib-DEBUG: io-channel-basic: child writing 8+2401 bytes to 17 1049s # GLib-DEBUG: io-channel-basic: ...from 16: IN 1049s # GLib-DEBUG: io-channel-basic: ...from 16: 2401 bytes 1049s # GLib-DEBUG: io-channel-basic: ...from 16: OK 1049s # GLib-DEBUG: io-channel-basic: child writing 8+2140 bytes to 9 1049s # GLib-DEBUG: io-channel-basic: ...from 8: IN 1049s # GLib-DEBUG: io-channel-basic: ...from 8: 2140 bytes 1049s # GLib-DEBUG: io-channel-basic: ...from 8: OK 1049s # GLib-DEBUG: io-channel-basic: child writing 8+1679 bytes to 11 1049s # GLib-DEBUG: io-channel-basic: ...from 10: IN 1049s # GLib-DEBUG: io-channel-basic: ...from 10: 1679 bytes 1049s # GLib-DEBUG: io-channel-basic: ...from 10: OK 1049s # GLib-DEBUG: io-channel-basic: child writing 8+1147 bytes to 15 1049s # GLib-DEBUG: io-channel-basic: ...from 14: IN 1049s # GLib-DEBUG: io-channel-basic: ...from 14: 1147 bytes 1049s # GLib-DEBUG: io-channel-basic: ...from 14: OK 1049s # GLib-DEBUG: io-channel-basic: child writing 8+2665 bytes to 13 1049s # GLib-DEBUG: io-channel-basic: ...from 12: IN 1049s # GLib-DEBUG: io-channel-basic: ...from 12: 2665 bytes 1049s # GLib-DEBUG: io-channel-basic: ...from 12: OK 1049s # GLib-DEBUG: io-channel-basic: child writing 8+1879 bytes to 17 1049s # GLib-DEBUG: io-channel-basic: ...from 16: IN 1049s # GLib-DEBUG: io-channel-basic: ...from 16: 1879 bytes 1049s # GLib-DEBUG: io-channel-basic: ...from 16: OK 1050s # GLib-DEBUG: io-channel-basic: child writing 8+4628 bytes to 9 1050s # GLib-DEBUG: io-channel-basic: ...from 8: IN 1050s # GLib-DEBUG: io-channel-basic: ...from 8: 4628 bytes 1050s # GLib-DEBUG: io-channel-basic: ...from 8: OK 1050s # GLib-DEBUG: io-channel-basic: child writing 8+3938 bytes to 11 1050s # GLib-DEBUG: io-channel-basic: ...from 10: IN 1050s # GLib-DEBUG: io-channel-basic: ...from 10: 3938 bytes 1050s # GLib-DEBUG: io-channel-basic: ...from 10: OK 1050s # GLib-DEBUG: io-channel-basic: child writing 8+184 bytes to 15 1050s # GLib-DEBUG: io-channel-basic: ...from 14: IN 1050s # GLib-DEBUG: io-channel-basic: ...from 14: 184 bytes 1050s # GLib-DEBUG: io-channel-basic: ...from 14: OK 1050s # Executing: glib/io-channel-basic.test 1050s # GLib-DEBUG: io-channel-basic: child writing 8+2209 bytes to 13 1050s # GLib-DEBUG: io-channel-basic: ...from 12: IN 1050s # GLib-DEBUG: io-channel-basic: ...from 12: 2209 bytes 1050s # GLib-DEBUG: io-channel-basic: ...from 12: OK 1050s # GLib-DEBUG: io-channel-basic: child writing 8+249 bytes to 17 1050s # GLib-DEBUG: io-channel-basic: ...from 16: IN 1050s # GLib-DEBUG: io-channel-basic: ...from 16: 249 bytes 1050s # GLib-DEBUG: io-channel-basic: ...from 16: OK 1050s # GLib-DEBUG: io-channel-basic: child writing 8+1997 bytes to 9 1050s # GLib-DEBUG: io-channel-basic: ...from 8: IN 1050s # GLib-DEBUG: io-channel-basic: ...from 8: 1997 bytes 1050s # GLib-DEBUG: io-channel-basic: ...from 8: OK 1050s # GLib-DEBUG: io-channel-basic: child writing 8+4531 bytes to 11 1050s # GLib-DEBUG: io-channel-basic: ...from 10: IN 1050s # GLib-DEBUG: io-channel-basic: ...from 10: 4531 bytes 1050s # GLib-DEBUG: io-channel-basic: ...from 10: OK 1050s # GLib-DEBUG: io-channel-basic: child writing 8+888 bytes to 13 1050s # GLib-DEBUG: io-channel-basic: ...from 12: IN 1050s # GLib-DEBUG: io-channel-basic: ...from 12: 888 bytes 1050s # GLib-DEBUG: io-channel-basic: ...from 12: OK 1050s # GLib-DEBUG: io-channel-basic: child writing 8+2506 bytes to 15 1050s # GLib-DEBUG: io-channel-basic: ...from 14: IN 1050s # GLib-DEBUG: io-channel-basic: ...from 14: 2506 bytes 1050s # GLib-DEBUG: io-channel-basic: ...from 14: OK 1050s # GLib-DEBUG: io-channel-basic: child writing 8+984 bytes to 9 1050s # GLib-DEBUG: io-channel-basic: ...from 8: IN 1050s # GLib-DEBUG: io-channel-basic: ...from 8: 984 bytes 1050s # GLib-DEBUG: io-channel-basic: ...from 8: OK 1050s # GLib-DEBUG: io-channel-basic: child writing 8+1333 bytes to 17 1050s # GLib-DEBUG: io-channel-basic: ...from 16: IN 1050s # GLib-DEBUG: io-channel-basic: ...from 16: 1333 bytes 1050s # GLib-DEBUG: io-channel-basic: ...from 16: OK 1050s # GLib-DEBUG: io-channel-basic: child writing 8+4367 bytes to 11 1050s # GLib-DEBUG: io-channel-basic: ...from 10: IN 1050s # GLib-DEBUG: io-channel-basic: ...from 10: 4367 bytes 1050s # GLib-DEBUG: io-channel-basic: ...from 10: OK 1050s # GLib-DEBUG: io-channel-basic: child writing 8+2368 bytes to 13 1050s # GLib-DEBUG: io-channel-basic: ...from 12: IN 1050s # GLib-DEBUG: io-channel-basic: ...from 12: 2368 bytes 1050s # GLib-DEBUG: io-channel-basic: ...from 12: OK 1050s # GLib-DEBUG: io-channel-basic: child writing 8+3589 bytes to 15 1050s # GLib-DEBUG: io-channel-basic: ...from 14: IN 1050s # GLib-DEBUG: io-channel-basic: ...from 14: 3589 bytes 1050s # GLib-DEBUG: io-channel-basic: ...from 14: OK 1050s # GLib-DEBUG: io-channel-basic: child writing 8+4968 bytes to 17 1050s # GLib-DEBUG: io-channel-basic: ...from 16: IN 1050s # GLib-DEBUG: io-channel-basic: ...from 16: 4968 bytes 1050s # GLib-DEBUG: io-channel-basic: ...from 16: OK 1050s # GLib-DEBUG: io-channel-basic: child writing 8+2756 bytes to 9 1050s # GLib-DEBUG: io-channel-basic: ...from 8: IN 1050s # GLib-DEBUG: io-channel-basic: ...from 8: 2756 bytes 1050s # GLib-DEBUG: io-channel-basic: ...from 8: OK 1050s # GLib-DEBUG: io-channel-basic: child writing 8+4460 bytes to 11 1050s # GLib-DEBUG: io-channel-basic: child exiting, closing 11 1050s # GLib-DEBUG: io-channel-basic: ...from 10: HUP IN 1050s # GLib-DEBUG: io-channel-basic: ...from 10: 4460 bytes 1050s # GLib-DEBUG: io-channel-basic: ...from 10: OK 1051s # GLib-DEBUG: io-channel-basic: child writing 8+2632 bytes to 13 1051s # GLib-DEBUG: io-channel-basic: ...from 12: IN 1051s # GLib-DEBUG: io-channel-basic: ...from 12: 2632 bytes 1051s # GLib-DEBUG: io-channel-basic: ...from 12: OK 1051s # GLib-DEBUG: io-channel-basic: child writing 8+2944 bytes to 15 1051s # GLib-DEBUG: io-channel-basic: ...from 14: IN 1051s # GLib-DEBUG: io-channel-basic: ...from 14: 2944 bytes 1051s # GLib-DEBUG: io-channel-basic: ...from 14: OK 1051s # GLib-DEBUG: io-channel-basic: child writing 8+1240 bytes to 17 1051s # GLib-DEBUG: io-channel-basic: child exiting, closing 17 1051s # GLib-DEBUG: io-channel-basic: ...from 16: IN 1051s # GLib-DEBUG: io-channel-basic: ...from 16: 1240 bytes 1051s # GLib-DEBUG: io-channel-basic: ...from 16: OK 1051s # GLib-DEBUG: io-channel-basic: ...from 16: HUP 1051s # GLib-DEBUG: io-channel-basic: child writing 8+2769 bytes to 9 1051s # GLib-DEBUG: io-channel-basic: ...from 8: IN 1051s # GLib-DEBUG: io-channel-basic: ...from 8: 2769 bytes 1051s # GLib-DEBUG: io-channel-basic: ...from 8: OK 1051s # GLib-DEBUG: io-channel-basic: child writing 8+1126 bytes to 13 1051s # GLib-DEBUG: io-channel-basic: child exiting, closing 13 1051s # GLib-DEBUG: io-channel-basic: ...from 12: HUP IN 1051s # GLib-DEBUG: io-channel-basic: ...from 12: 1126 bytes 1051s # GLib-DEBUG: io-channel-basic: ...from 12: OK 1051s # GLib-DEBUG: io-channel-basic: child writing 8+4388 bytes to 15 1051s # GLib-DEBUG: io-channel-basic: ...from 14: IN 1051s # GLib-DEBUG: io-channel-basic: ...from 14: 4388 bytes 1051s # GLib-DEBUG: io-channel-basic: ...from 14: OK 1051s # GLib-DEBUG: io-channel-basic: child writing 8+4190 bytes to 9 1051s # GLib-DEBUG: io-channel-basic: ...from 8: IN 1051s # GLib-DEBUG: io-channel-basic: ...from 8: 4190 bytes 1051s # GLib-DEBUG: io-channel-basic: ...from 8: OK 1051s # GLib-DEBUG: io-channel-basic: child writing 8+3526 bytes to 15 1051s # GLib-DEBUG: io-channel-basic: ...from 14: IN 1051s # GLib-DEBUG: io-channel-basic: ...from 14: 3526 bytes 1051s # GLib-DEBUG: io-channel-basic: ...from 14: OK 1051s # GLib-DEBUG: io-channel-basic: child writing 8+1173 bytes to 9 1051s # GLib-DEBUG: io-channel-basic: child exiting, closing 9 1051s # GLib-DEBUG: io-channel-basic: ...from 8: HUP IN 1051s # GLib-DEBUG: io-channel-basic: ...from 8: 1173 bytes 1051s # GLib-DEBUG: io-channel-basic: ...from 8: OK 1051s # GLib-DEBUG: io-channel-basic: child writing 8+2236 bytes to 15 1051s # GLib-DEBUG: io-channel-basic: ...from 14: IN 1051s # GLib-DEBUG: io-channel-basic: ...from 14: 2236 bytes 1051s # GLib-DEBUG: io-channel-basic: ...from 14: OK 1052s # GLib-DEBUG: io-channel-basic: child writing 8+1350 bytes to 15 1052s # GLib-DEBUG: io-channel-basic: ...from 14: IN 1052s # GLib-DEBUG: io-channel-basic: ...from 14: 1350 bytes 1052s # GLib-DEBUG: io-channel-basic: child exiting, closing 15 1052s # GLib-DEBUG: io-channel-basic: ...from 14: OK 1052s # GLib-DEBUG: io-channel-basic: ...from 14: HUP 1052s ok 1 /gio/io-basics 1052s # slow test /gio/io-basics executed in 12.55 secs 1052s # End of gio tests 1052s ok - glib/io-channel-basic.test 1052s # Running test: glib/ir-parser.test 1052s TAP version 14 1052s # random seed: R02S41803a0f5e6f3be2335a9e45ac9e6c73 1052s 1..1 1052s # Start of ir-parser tests 1052s # /ir-parser/type-parsing summary: Test parsing different valid and invalid types 1052s # GLib-GIRepository-DEBUG: 1052s # GLib-GIRepository-DEBUG: pushing node 1 dummy 1052s # GLib-GIRepository-DEBUG: Parsed type: GLib.Error => 20 1052s # GLib-GIRepository-DEBUG: 1052s # GLib-GIRepository-DEBUG: 1052s # GLib-GIRepository-DEBUG: 1052s # GLib-GIRepository-DEBUG: 1052s # GLib-GIRepository-DEBUG: popping node 1 dummy 1052s # GLib-GIRepository-DEBUG: 1052s # GLib-GIRepository-DEBUG: 1052s # GLib-GIRepository-DEBUG: 1052s # GLib-GIRepository-DEBUG: pushing node 1 dummy 1052s # GLib-GIRepository-DEBUG: Parsed type: GLib.Error => 20 1052s # GLib-GIRepository-DEBUG: 1052s # GLib-GIRepository-DEBUG: 1052s # GLib-GIRepository-DEBUG: 1052s # GLib-GIRepository-DEBUG: 1052s # GLib-GIRepository-DEBUG: popping node 1 dummy 1052s # GLib-GIRepository-DEBUG: 1052s # GLib-GIRepository-DEBUG: 1052s # GLib-GIRepository-DEBUG: 1052s # GLib-GIRepository-DEBUG: pushing node 1 dummy 1052s # GLib-GIRepository-DEBUG: Failed to parse type: 'GLib.Error 1074s # 1074s # G_BEGIN_DECLS 1074s # 1074s # 1074s # G_END_DECLS 1074s # 1074s # #endif /* __G_CCLOSURE_USER_MARSHAL_MARSHAL_H__ */ 1074s # Error: 1074s # 1074s # Running: ['/usr/bin/glib-genmarshal', '/tmp/tmpx5ecn8dz/tmpvdfmxb17.list', '--body', '--quiet'] 1074s # Return code: 0 1074s # Output: 1074s # /* 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. */ 1074s # #include 1074s # 1074s # #ifdef G_ENABLE_DEBUG 1074s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 1074s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 1074s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 1074s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 1074s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 1074s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 1074s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 1074s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 1074s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 1074s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 1074s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 1074s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 1074s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 1074s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 1074s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 1074s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 1074s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 1074s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 1074s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 1074s # #else /* !G_ENABLE_DEBUG */ 1074s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 1074s # * Do not access GValues directly in your code. Instead, use the 1074s # * g_value_get_*() functions 1074s # */ 1074s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 1074s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 1074s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 1074s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 1074s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 1074s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 1074s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 1074s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 1074s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 1074s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 1074s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 1074s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 1074s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 1074s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 1074s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 1074s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 1074s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 1074s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 1074s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 1074s # #endif /* !G_ENABLE_DEBUG */ 1074s # Error: 1074s ok 2 __main__.TestGenmarshal.test_help 1074s # glib-genmarshal: /usr/bin/glib-genmarshal 1074s # tmpdir: /tmp/tmpgnpm5iq7 1074s # Running: ['/usr/bin/glib-genmarshal', '--help'] 1074s # Return code: 0 1074s # Output: 1074s # usage: glib-genmarshal [-h] [--prefix STRING] [--output FILE] [--skip-source] 1074s # [--internal] [--valist-marshallers] [-v] 1074s # [--g-fatal-warnings] [--include-header [HEADER]] 1074s # [--pragma-once] [-D CPP_DEFINES] [-U CPP_UNDEFINES] 1074s # [--prototypes] [--header] [--body] [--stdinc | 1074s # --nostdinc] [--quiet | --verbose] 1074s # [FILE ...] 1074s # 1074s # Generate signal marshallers for GObject 1074s # 1074s # positional arguments: 1074s # FILE Files with lists of marshallers to generate, or "-" 1074s # for standard input 1074s # 1074s # options: 1074s # -h, --help show this help message and exit 1074s # --prefix STRING Specify marshaller prefix 1074s # --output FILE Write output into the specified file 1074s # --skip-source Skip source location comments 1074s # --internal Mark generated functions as internal 1074s # --valist-marshallers Generate va_list marshallers 1074s # -v, --version Print version information, and exit 1074s # --g-fatal-warnings Make warnings fatal 1074s # --include-header [HEADER] 1074s # Include the specified header in the body 1074s # --pragma-once Use "pragma once" as the inclusion guard 1074s # -D CPP_DEFINES Pre-processor define 1074s # -U CPP_UNDEFINES Pre-processor undefine 1074s # --prototypes Generate the marshallers prototype in the C code 1074s # --header Generate C headers 1074s # --body Generate C code 1074s # --stdinc Include standard marshallers 1074s # --nostdinc Use standard marshallers 1074s # --quiet Only print warnings and errors 1074s # --verbose Be verbose, and include debugging information 1074s # Error: 1074s ok 3 __main__.TestGenmarshal.test_no_args 1074s # glib-genmarshal: /usr/bin/glib-genmarshal 1074s # tmpdir: /tmp/tmpd0scmhth 1074s # Running: ['/usr/bin/glib-genmarshal'] 1074s # Return code: 0 1074s # Output: 1074s # 1074s # Error: 1074s ok 4 __main__.TestGenmarshal.test_void_boolean 1074s # glib-genmarshal: /usr/bin/glib-genmarshal 1074s # tmpdir: /tmp/tmpza7c0alg 1074s # /tmp/tmpza7c0alg/tmpzlk1twcl.list: VOID:BOOLEAN 1074s # Running: ['/usr/bin/glib-genmarshal', '/tmp/tmpza7c0alg/tmpzlk1twcl.list', '--header', '--quiet'] 1074s # Return code: 0 1074s # Output: 1074s # /* 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. */ 1074s # #ifndef __G_CCLOSURE_USER_MARSHAL_MARSHAL_H__ 1074s # #define __G_CCLOSURE_USER_MARSHAL_MARSHAL_H__ 1074s # 1074s # #include 1074s # 1074s # G_BEGIN_DECLS 1074s # 1074s # /* VOID:BOOLEAN (/tmp/tmpza7c0alg/tmpzlk1twcl.list:1) */ 1074s # #define g_cclosure_user_marshal_VOID__BOOLEAN g_cclosure_marshal_VOID__BOOLEAN 1074s # 1074s # 1074s # G_END_DECLS 1074s # 1074s # #endif /* __G_CCLOSURE_USER_MARSHAL_MARSHAL_H__ */ 1074s # Error: 1074s # 1074s # Running: ['/usr/bin/glib-genmarshal', '/tmp/tmpza7c0alg/tmpzlk1twcl.list', '--body', '--quiet'] 1074s # Return code: 0 1074s # Output: 1074s # /* 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. */ 1074s # #include 1074s # 1074s # #ifdef G_ENABLE_DEBUG 1074s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 1074s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 1074s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 1074s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 1074s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 1074s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 1074s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 1074s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 1074s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 1074s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 1074s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 1074s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 1074s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 1074s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 1074s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 1074s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 1074s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 1074s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 1074s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 1074s # #else /* !G_ENABLE_DEBUG */ 1074s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 1074s # * Do not access GValues directly in your code. Instead, use the 1074s # * g_value_get_*() functions 1074s # */ 1074s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 1074s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 1074s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 1074s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 1074s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 1074s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 1074s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 1074s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 1074s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 1074s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 1074s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 1074s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 1074s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 1074s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 1074s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 1074s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 1074s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 1074s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 1074s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 1074s # #endif /* !G_ENABLE_DEBUG */ 1074s # Error: 1075s ok 5 __main__.TestGenmarshal.test_void_boolean_int64 1075s # glib-genmarshal: /usr/bin/glib-genmarshal 1075s # tmpdir: /tmp/tmp7k31s7nn 1075s # /tmp/tmp7k31s7nn/tmpiv14l8ic.list: VOID:BOOLEAN,INT64 1075s # Running: ['/usr/bin/glib-genmarshal', '/tmp/tmp7k31s7nn/tmpiv14l8ic.list', '--header', '--quiet'] 1075s # Return code: 0 1075s # Output: 1075s # /* 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. */ 1075s # #ifndef __G_CCLOSURE_USER_MARSHAL_MARSHAL_H__ 1075s # #define __G_CCLOSURE_USER_MARSHAL_MARSHAL_H__ 1075s # 1075s # #include 1075s # 1075s # G_BEGIN_DECLS 1075s # 1075s # /* VOID:BOOLEAN,INT64 (/tmp/tmp7k31s7nn/tmpiv14l8ic.list:1) */ 1075s # extern 1075s # void g_cclosure_user_marshal_VOID__BOOLEAN_INT64 (GClosure *closure, 1075s # GValue *return_value, 1075s # guint n_param_values, 1075s # const GValue *param_values, 1075s # gpointer invocation_hint, 1075s # gpointer marshal_data); 1075s # 1075s # 1075s # G_END_DECLS 1075s # 1075s # #endif /* __G_CCLOSURE_USER_MARSHAL_MARSHAL_H__ */ 1075s # Error: 1075s # 1075s # Running: ['/usr/bin/glib-genmarshal', '/tmp/tmp7k31s7nn/tmpiv14l8ic.list', '--body', '--quiet'] 1075s # Return code: 0 1075s # Output: 1075s # /* 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. */ 1075s # #include 1075s # 1075s # #ifdef G_ENABLE_DEBUG 1075s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 1075s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 1075s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 1075s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 1075s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 1075s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 1075s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 1075s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 1075s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 1075s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 1075s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 1075s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 1075s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 1075s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 1075s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 1075s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 1075s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 1075s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 1075s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 1075s # #else /* !G_ENABLE_DEBUG */ 1075s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 1075s # * Do not access GValues directly in your code. Instead, use the 1075s # * g_value_get_*() functions 1075s # */ 1075s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 1075s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 1075s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 1075s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 1075s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 1075s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 1075s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 1075s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 1075s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 1075s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 1075s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 1075s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 1075s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 1075s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 1075s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 1075s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 1075s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 1075s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 1075s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 1075s # #endif /* !G_ENABLE_DEBUG */ 1075s # 1075s # /* VOID:BOOLEAN,INT64 (/tmp/tmp7k31s7nn/tmpiv14l8ic.list:1) */ 1075s # void 1075s # g_cclosure_user_marshal_VOID__BOOLEAN_INT64 (GClosure *closure, 1075s # GValue *return_value G_GNUC_UNUSED, 1075s # guint n_param_values, 1075s # const GValue *param_values, 1075s # gpointer invocation_hint G_GNUC_UNUSED, 1075s # gpointer marshal_data) 1075s # { 1075s # typedef void (*GMarshalFunc_VOID__BOOLEAN_INT64) (gpointer data1, 1075s # gboolean arg1, 1075s # gint64 arg2, 1075s # gpointer data2); 1075s # GCClosure *cc = (GCClosure *) closure; 1075s # gpointer data1, data2; 1075s # GMarshalFunc_VOID__BOOLEAN_INT64 callback; 1075s # 1075s # g_return_if_fail (n_param_values == 3); 1075s # 1075s # if (G_CCLOSURE_SWAP_DATA (closure)) 1075s # { 1075s # data1 = closure->data; 1075s # data2 = g_value_peek_pointer (param_values + 0); 1075s # } 1075s # else 1075s # { 1075s # data1 = g_value_peek_pointer (param_values + 0); 1075s # data2 = closure->data; 1075s # } 1075s # callback = (GMarshalFunc_VOID__BOOLEAN_INT64) (marshal_data ? marshal_data : cc->callback); 1075s # 1075s # callback (data1, 1075s # g_marshal_value_peek_boolean (param_values + 1), 1075s # g_marshal_value_peek_int64 (param_values + 2), 1075s # data2); 1075s # } 1075s # Error: 1075s ok 6 __main__.TestGenmarshal.test_void_param_nostdinc 1075s # glib-genmarshal: /usr/bin/glib-genmarshal 1075s # tmpdir: /tmp/tmpj9r8nxpv 1075s # /tmp/tmpj9r8nxpv/tmp_axixw0w.list: VOID:PARAM 1075s # Running: ['/usr/bin/glib-genmarshal', '/tmp/tmpj9r8nxpv/tmp_axixw0w.list', '--header', '--quiet', '--nostdinc', '--valist-marshaller'] 1075s # Return code: 0 1075s # Output: 1075s # /* 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. */ 1075s # #ifndef __G_CCLOSURE_USER_MARSHAL_MARSHAL_H__ 1075s # #define __G_CCLOSURE_USER_MARSHAL_MARSHAL_H__ 1075s # 1075s # G_BEGIN_DECLS 1075s # 1075s # /* VOID:PARAM (/tmp/tmpj9r8nxpv/tmp_axixw0w.list:1) */ 1075s # extern 1075s # void g_cclosure_user_marshal_VOID__PARAM (GClosure *closure, 1075s # GValue *return_value, 1075s # guint n_param_values, 1075s # const GValue *param_values, 1075s # gpointer invocation_hint, 1075s # gpointer marshal_data); 1075s # extern 1075s # void g_cclosure_user_marshal_VOID__PARAMv (GClosure *closure, 1075s # GValue *return_value, 1075s # gpointer instance, 1075s # va_list args, 1075s # gpointer marshal_data, 1075s # int n_params, 1075s # GType *param_types); 1075s # 1075s # 1075s # G_END_DECLS 1075s # 1075s # #endif /* __G_CCLOSURE_USER_MARSHAL_MARSHAL_H__ */ 1075s # Error: 1075s # 1075s # Running: ['/usr/bin/glib-genmarshal', '/tmp/tmpj9r8nxpv/tmp_axixw0w.list', '--body', '--quiet', '--nostdinc', '--valist-marshaller'] 1075s # Return code: 0 1075s # Output: 1075s # /* 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. */ 1075s # #ifdef G_ENABLE_DEBUG 1075s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 1075s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 1075s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 1075s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 1075s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 1075s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 1075s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 1075s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 1075s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 1075s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 1075s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 1075s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 1075s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 1075s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 1075s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 1075s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 1075s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 1075s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 1075s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 1075s # #else /* !G_ENABLE_DEBUG */ 1075s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 1075s # * Do not access GValues directly in your code. Instead, use the 1075s # * g_value_get_*() functions 1075s # */ 1075s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 1075s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 1075s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 1075s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 1075s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 1075s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 1075s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 1075s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 1075s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 1075s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 1075s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 1075s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 1075s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 1075s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 1075s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 1075s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 1075s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 1075s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 1075s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 1075s # #endif /* !G_ENABLE_DEBUG */ 1075s # 1075s # /* VOID:PARAM (/tmp/tmpj9r8nxpv/tmp_axixw0w.list:1) */ 1075s # void 1075s # g_cclosure_user_marshal_VOID__PARAM (GClosure *closure, 1075s # GValue *return_value G_GNUC_UNUSED, 1075s # guint n_param_values, 1075s # const GValue *param_values, 1075s # gpointer invocation_hint G_GNUC_UNUSED, 1075s # gpointer marshal_data) 1075s # { 1075s # typedef void (*GMarshalFunc_VOID__PARAM) (gpointer data1, 1075s # gpointer arg1, 1075s # gpointer data2); 1075s # GCClosure *cc = (GCClosure *) closure; 1075s # gpointer data1, data2; 1075s # GMarshalFunc_VOID__PARAM callback; 1075s # 1075s # g_return_if_fail (n_param_values == 2); 1075s # 1075s # if (G_CCLOSURE_SWAP_DATA (closure)) 1075s # { 1075s # data1 = closure->data; 1075s # data2 = g_value_peek_pointer (param_values + 0); 1075s # } 1075s # else 1075s # { 1075s # data1 = g_value_peek_pointer (param_values + 0); 1075s # data2 = closure->data; 1075s # } 1075s # callback = (GMarshalFunc_VOID__PARAM) (marshal_data ? marshal_data : cc->callback); 1075s # 1075s # callback (data1, 1075s # g_marshal_value_peek_param (param_values + 1), 1075s # data2); 1075s # } 1075s # 1075s # void 1075s # g_cclosure_user_marshal_VOID__PARAMv (GClosure *closure, 1075s # GValue *return_value G_GNUC_UNUSED, 1075s # gpointer instance, 1075s # va_list args, 1075s # gpointer marshal_data, 1075s # int n_params, 1075s # GType *param_types) 1075s # { 1075s # typedef void (*GMarshalFunc_VOID__PARAM) (gpointer data1, 1075s # gpointer arg1, 1075s # gpointer data2); 1075s # GCClosure *cc = (GCClosure *) closure; 1075s # gpointer data1, data2; 1075s # GMarshalFunc_VOID__PARAM callback; 1075s # gpointer arg0; 1075s # va_list args_copy; 1075s # 1075s # va_copy (args_copy, args); 1075s # arg0 = (gpointer) va_arg (args_copy, gpointer); 1075s # if ((param_types[0] & G_SIGNAL_TYPE_STATIC_SCOPE) == 0 && arg0 != NULL) 1075s # arg0 = g_param_spec_ref (arg0); 1075s # va_end (args_copy); 1075s # 1075s # 1075s # if (G_CCLOSURE_SWAP_DATA (closure)) 1075s # { 1075s # data1 = closure->data; 1075s # data2 = instance; 1075s # } 1075s # else 1075s # { 1075s # data1 = instance; 1075s # data2 = closure->data; 1075s # } 1075s # callback = (GMarshalFunc_VOID__PARAM) (marshal_data ? marshal_data : cc->callback); 1075s # 1075s # callback (data1, 1075s # arg0, 1075s # data2); 1075s # if ((param_types[0] & G_SIGNAL_TYPE_STATIC_SCOPE) == 0 && arg0 != NULL) 1075s # g_param_spec_unref (arg0); 1075s # } 1075s # Error: 1075s # Executing: glib/genmarshal.py.test 1075s ok 7 __main__.TestGenmarshal.test_void_string_nostdinc 1075s # glib-genmarshal: /usr/bin/glib-genmarshal 1075s # tmpdir: /tmp/tmpdlfkvux5 1075s # /tmp/tmpdlfkvux5/tmpr2qmp7us.list: VOID:STRING 1075s # Running: ['/usr/bin/glib-genmarshal', '/tmp/tmpdlfkvux5/tmpr2qmp7us.list', '--header', '--quiet', '--nostdinc', '--valist-marshaller'] 1075s # Return code: 0 1075s # Output: 1075s # /* 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. */ 1075s # #ifndef __G_CCLOSURE_USER_MARSHAL_MARSHAL_H__ 1075s # #define __G_CCLOSURE_USER_MARSHAL_MARSHAL_H__ 1075s # 1075s # G_BEGIN_DECLS 1075s # 1075s # /* VOID:STRING (/tmp/tmpdlfkvux5/tmpr2qmp7us.list:1) */ 1075s # extern 1075s # void g_cclosure_user_marshal_VOID__STRING (GClosure *closure, 1075s # GValue *return_value, 1075s # guint n_param_values, 1075s # const GValue *param_values, 1075s # gpointer invocation_hint, 1075s # gpointer marshal_data); 1075s # extern 1075s # void g_cclosure_user_marshal_VOID__STRINGv (GClosure *closure, 1075s # GValue *return_value, 1075s # gpointer instance, 1075s # va_list args, 1075s # gpointer marshal_data, 1075s # int n_params, 1075s # GType *param_types); 1075s # 1075s # 1075s # G_END_DECLS 1075s # 1075s # #endif /* __G_CCLOSURE_USER_MARSHAL_MARSHAL_H__ */ 1075s # Error: 1075s # 1075s # Running: ['/usr/bin/glib-genmarshal', '/tmp/tmpdlfkvux5/tmpr2qmp7us.list', '--body', '--quiet', '--nostdinc', '--valist-marshaller'] 1075s # Return code: 0 1075s # Output: 1075s # /* 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. */ 1075s # #ifdef G_ENABLE_DEBUG 1075s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 1075s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 1075s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 1075s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 1075s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 1075s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 1075s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 1075s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 1075s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 1075s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 1075s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 1075s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 1075s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 1075s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 1075s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 1075s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 1075s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 1075s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 1075s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 1075s # #else /* !G_ENABLE_DEBUG */ 1075s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 1075s # * Do not access GValues directly in your code. Instead, use the 1075s # * g_value_get_*() functions 1075s # */ 1075s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 1075s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 1075s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 1075s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 1075s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 1075s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 1075s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 1075s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 1075s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 1075s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 1075s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 1075s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 1075s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 1075s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 1075s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 1075s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 1075s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 1075s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 1075s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 1075s # #endif /* !G_ENABLE_DEBUG */ 1075s # 1075s # /* VOID:STRING (/tmp/tmpdlfkvux5/tmpr2qmp7us.list:1) */ 1075s # void 1075s # g_cclosure_user_marshal_VOID__STRING (GClosure *closure, 1075s # GValue *return_value G_GNUC_UNUSED, 1075s # guint n_param_values, 1075s # const GValue *param_values, 1075s # gpointer invocation_hint G_GNUC_UNUSED, 1075s # gpointer marshal_data) 1075s # { 1075s # typedef void (*GMarshalFunc_VOID__STRING) (gpointer data1, 1075s # gpointer arg1, 1075s # gpointer data2); 1075s # GCClosure *cc = (GCClosure *) closure; 1075s # gpointer data1, data2; 1075s # GMarshalFunc_VOID__STRING callback; 1075s # 1075s # g_return_if_fail (n_param_values == 2); 1075s # 1075s # if (G_CCLOSURE_SWAP_DATA (closure)) 1075s # { 1075s # data1 = closure->data; 1075s # data2 = g_value_peek_pointer (param_values + 0); 1075s # } 1075s # else 1075s # { 1075s # data1 = g_value_peek_pointer (param_values + 0); 1075s # data2 = closure->data; 1075s # } 1075s # callback = (GMarshalFunc_VOID__STRING) (marshal_data ? marshal_data : cc->callback); 1075s # 1075s # callback (data1, 1075s # g_marshal_value_peek_string (param_values + 1), 1075s # data2); 1075s # } 1075s # 1075s # void 1075s # g_cclosure_user_marshal_VOID__STRINGv (GClosure *closure, 1075s # GValue *return_value G_GNUC_UNUSED, 1075s # gpointer instance, 1075s # va_list args, 1075s # gpointer marshal_data, 1075s # int n_params, 1075s # GType *param_types) 1075s # { 1075s # typedef void (*GMarshalFunc_VOID__STRING) (gpointer data1, 1075s # gpointer arg1, 1075s # gpointer data2); 1075s # GCClosure *cc = (GCClosure *) closure; 1075s # gpointer data1, data2; 1075s # GMarshalFunc_VOID__STRING callback; 1075s # gpointer arg0; 1075s # va_list args_copy; 1075s # 1075s # va_copy (args_copy, args); 1075s # arg0 = (gpointer) va_arg (args_copy, gpointer); 1075s # if ((param_types[0] & G_SIGNAL_TYPE_STATIC_SCOPE) == 0 && arg0 != NULL) 1075s # arg0 = g_strdup (arg0); 1075s # va_end (args_copy); 1075s # 1075s # 1075s # if (G_CCLOSURE_SWAP_DATA (closure)) 1075s # { 1075s # data1 = closure->data; 1075s # data2 = instance; 1075s # } 1075s # else 1075s # { 1075s # data1 = instance; 1075s # data2 = closure->data; 1075s # } 1075s # callback = (GMarshalFunc_VOID__STRING) (marshal_data ? marshal_data : cc->callback); 1075s # 1075s # callback (data1, 1075s # arg0, 1075s # data2); 1075s # if ((param_types[0] & G_SIGNAL_TYPE_STATIC_SCOPE) == 0 && arg0 != NULL) 1075s # g_free (arg0); 1075s # } 1075s # Error: 1075s ok 8 __main__.TestGenmarshal.test_void_variant_nostdinc_valist_marshaller 1075s # glib-genmarshal: /usr/bin/glib-genmarshal 1075s # tmpdir: /tmp/tmp_ig4ma2p 1075s # /tmp/tmp_ig4ma2p/tmpb8kp7rqm.list: VOID:VARIANT 1075s # Running: ['/usr/bin/glib-genmarshal', '/tmp/tmp_ig4ma2p/tmpb8kp7rqm.list', '--header', '--quiet', '--nostdinc', '--valist-marshaller'] 1075s # Return code: 0 1075s # Output: 1075s # /* 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. */ 1075s # #ifndef __G_CCLOSURE_USER_MARSHAL_MARSHAL_H__ 1075s # #define __G_CCLOSURE_USER_MARSHAL_MARSHAL_H__ 1075s # 1075s # G_BEGIN_DECLS 1075s # 1075s # /* VOID:VARIANT (/tmp/tmp_ig4ma2p/tmpb8kp7rqm.list:1) */ 1075s # extern 1075s # void g_cclosure_user_marshal_VOID__VARIANT (GClosure *closure, 1075s # GValue *return_value, 1075s # guint n_param_values, 1075s # const GValue *param_values, 1075s # gpointer invocation_hint, 1075s # gpointer marshal_data); 1075s # extern 1075s # void g_cclosure_user_marshal_VOID__VARIANTv (GClosure *closure, 1075s # GValue *return_value, 1075s # gpointer instance, 1075s # va_list args, 1075s # gpointer marshal_data, 1075s # int n_params, 1075s # GType *param_types); 1075s # 1075s # 1075s # G_END_DECLS 1075s # 1075s # #endif /* __G_CCLOSURE_USER_MARSHAL_MARSHAL_H__ */ 1075s # Error: 1075s # 1075s # Running: ['/usr/bin/glib-genmarshal', '/tmp/tmp_ig4ma2p/tmpb8kp7rqm.list', '--body', '--quiet', '--nostdinc', '--valist-marshaller'] 1075s # Return code: 0 1075s # Output: 1075s # /* 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. */ 1075s # #ifdef G_ENABLE_DEBUG 1075s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 1075s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 1075s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 1075s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 1075s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 1075s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 1075s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 1075s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 1075s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 1075s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 1075s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 1075s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 1075s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 1075s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 1075s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 1075s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 1075s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 1075s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 1075s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 1075s # #else /* !G_ENABLE_DEBUG */ 1075s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 1075s # * Do not access GValues directly in your code. Instead, use the 1075s # * g_value_get_*() functions 1075s # */ 1075s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 1075s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 1075s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 1075s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 1075s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 1075s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 1075s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 1075s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 1075s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 1075s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 1075s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 1075s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 1075s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 1075s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 1075s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 1075s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 1075s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 1075s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 1075s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 1075s # #endif /* !G_ENABLE_DEBUG */ 1075s # 1075s # /* VOID:VARIANT (/tmp/tmp_ig4ma2p/tmpb8kp7rqm.list:1) */ 1075s # void 1075s # g_cclosure_user_marshal_VOID__VARIANT (GClosure *closure, 1075s # GValue *return_value G_GNUC_UNUSED, 1075s # guint n_param_values, 1075s # const GValue *param_values, 1075s # gpointer invocation_hint G_GNUC_UNUSED, 1075s # gpointer marshal_data) 1075s # { 1075s # typedef void (*GMarshalFunc_VOID__VARIANT) (gpointer data1, 1075s # gpointer arg1, 1075s # gpointer data2); 1075s # GCClosure *cc = (GCClosure *) closure; 1075s # gpointer data1, data2; 1075s # GMarshalFunc_VOID__VARIANT callback; 1075s # 1075s # g_return_if_fail (n_param_values == 2); 1075s # 1075s # if (G_CCLOSURE_SWAP_DATA (closure)) 1075s # { 1075s # data1 = closure->data; 1075s # data2 = g_value_peek_pointer (param_values + 0); 1075s # } 1075s # else 1075s # { 1075s # data1 = g_value_peek_pointer (param_values + 0); 1075s # data2 = closure->data; 1075s # } 1075s # callback = (GMarshalFunc_VOID__VARIANT) (marshal_data ? marshal_data : cc->callback); 1075s # 1075s # callback (data1, 1075s # g_marshal_value_peek_variant (param_values + 1), 1075s # data2); 1075s # } 1075s # 1075s # void 1075s # g_cclosure_user_marshal_VOID__VARIANTv (GClosure *closure, 1075s # GValue *return_value G_GNUC_UNUSED, 1075s # gpointer instance, 1075s # va_list args, 1075s # gpointer marshal_data, 1075s # int n_params, 1075s # GType *param_types) 1075s # { 1075s # typedef void (*GMarshalFunc_VOID__VARIANT) (gpointer data1, 1075s # gpointer arg1, 1075s # gpointer data2); 1075s # GCClosure *cc = (GCClosure *) closure; 1075s # gpointer data1, data2; 1075s # GMarshalFunc_VOID__VARIANT callback; 1075s # gpointer arg0; 1075s # va_list args_copy; 1075s # 1075s # va_copy (args_copy, args); 1075s # arg0 = (gpointer) va_arg (args_copy, gpointer); 1075s # if ((param_types[0] & G_SIGNAL_TYPE_STATIC_SCOPE) == 0 && arg0 != NULL) 1075s # arg0 = g_variant_ref_sink (arg0); 1075s # va_end (args_copy); 1075s # 1075s # 1075s # if (G_CCLOSURE_SWAP_DATA (closure)) 1075s # { 1075s # data1 = closure->data; 1075s # data2 = instance; 1075s # } 1075s # else 1075s # { 1075s # data1 = instance; 1075s # data2 = closure->data; 1075s # } 1075s # callback = (GMarshalFunc_VOID__VARIANT) (marshal_data ? marshal_data : cc->callback); 1075s # 1075s # callback (data1, 1075s # arg0, 1075s # data2); 1075s # if ((param_types[0] & G_SIGNAL_TYPE_STATIC_SCOPE) == 0 && arg0 != NULL) 1075s # g_variant_unref (arg0); 1075s # } 1075s # Error: 1075s 1..8 1075s ok - glib/genmarshal.py.test 1075s # Running test: glib/thread-pool.test 1075s TAP version 14 1075s # random seed: R02S31846390a24fafdd3febd59dbd6ce980 1075s 1..6 1075s # Start of thread_pool tests 1075s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3712 1075s ok 1 /thread_pool/pool_fail 1075s # /thread_pool/shared summary: Tests that a shared, non-exclusive thread pool generally works. 1075s ok 2 /thread_pool/shared 1075s # /thread_pool/exclusive summary: Tests that an exclusive thread pool generally works. 1075s ok 3 /thread_pool/exclusive 1075s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/issues/2012 1075s # /thread_pool/create_shared_after_exclusive summary: Tests that creating a shared pool after an exclusive one works. 1075s ok 4 /thread_pool/create_shared_after_exclusive 1075s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/121 1075s ok 5 /thread_pool/create_full 1075s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/issues/2012 1075s # /thread_pool/create_exclusive_after_shared summary: Tests that creating an exclusive pool after a shared one works. 1075s ok 6 /thread_pool/create_exclusive_after_shared 1075s # End of thread_pool tests 1075s ok - glib/thread-pool.test 1075s # Running test: glib/cxx-98.test 1075s TAP version 14 1075s # random seed: R02Sf9a72d2f6778a3a8f4cbcee9edf4c82c 1075s 1..2 1075s # Start of gtask tests 1075s # 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. 1075s ok 1 /gtask/name 1075s # Start of name tests 1075s # 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. 1075s ok 2 /gtask/name/macro-wrapper 1075s # End of name tests 1075s # End of gtask tests 1075s ok - glib/cxx-98.test 1075s # Running test: glib/portal-support-env-var.test 1075s TAP version 14 1075s # random seed: R02S2c2cf1952d22f0c2917887dd6f2dfdfe 1075s 1..1 1075s # Start of portal-support tests 1075s ok 1 /portal-support/env-var 1075s # End of portal-support tests 1075s ok - glib/portal-support-env-var.test 1075s # Running test: glib/protocol.test 1075s TAP version 14 1075s # random seed: R02S666497809b373dc0ff4f4311433a0fd6 1075s 1..9 1075s # Start of glib tests 1075s # Start of testing tests 1075s # Start of protocol tests 1075s ok 1 /glib/testing/protocol/debug 1075s ok 2 /glib/testing/protocol/info 1075s ok 3 /glib/testing/protocol/message 1075s ok 4 /glib/testing/protocol/warning 1075s ok 5 /glib/testing/protocol/critical 1075s ok 6 /glib/testing/protocol/error 1075s ok 7 /glib/testing/protocol/gtest-message 1075s ok 8 /glib/testing/protocol/test-message 1075s ok 9 /glib/testing/protocol/test-error 1075s # End of protocol tests 1075s # End of testing tests 1075s # End of glib tests 1075s ok - glib/protocol.test 1075s # Running test: glib/test-printf.test 1075s TAP version 14 1075s # random seed: R02S0ff69d25cae22d0dc073fb70e9c38eaf 1075s 1..24 1075s # Start of snprintf tests 1075s ok 1 /snprintf/retval-and-trunc 1075s ok 2 /snprintf/%d 1075s ok 3 /snprintf/%d-invalid 1075s ok 4 /snprintf/%o 1075s ok 5 /snprintf/%u 1075s ok 6 /snprintf/%x 1075s ok 7 /snprintf/%X 1075s ok 8 /snprintf/%f 1075s ok 9 /snprintf/%e 1075s ok 10 /snprintf/%c 1075s ok 11 /snprintf/%s 1075s ok 12 /snprintf/%n 1075s ok 13 /snprintf/test-percent 1075s ok 14 /snprintf/test-positional-params 1075s ok 15 /snprintf/test-64bit 1075s ok 16 /snprintf/produce-embedded-nulls 1075s # End of snprintf tests 1075s # Start of printf tests 1075s ok 17 /printf/test-percent 1075s ok 18 /printf/test-positional-params 1075s ok 19 /printf/test-64bit 1075s # Start of test-64bit tests 1075s # Start of subprocess tests 1075s # End of subprocess tests 1075s # End of test-64bit tests 1075s # End of printf tests 1075s # Start of fprintf tests 1075s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3761 1075s # /fprintf/produce-embedded-nulls summary: printf() functions can produce strings with embedded null characters. That happens when passing individual characters (%c) with value ' 1075s ok 20 /fprintf/produce-embedded-nulls 1075s # End of fprintf tests 1075s # Start of sprintf tests 1075s ok 21 /sprintf/test-positional-params 1075s ok 22 /sprintf/upper-bound 1075s # End of sprintf tests 1075s # Start of vasprintf tests 1075s # /vasprintf/invalid-format-placeholder summary: Test error handling for invalid format placeholder in g_vasprintf() 1075s ok 23 /vasprintf/invalid-format-placeholder 1075s # /vasprintf/invalid-wide-string summary: Test error handling for invalid wide strings in g_vasprintf() 1075s ok 24 /vasprintf/invalid-wide-string 1075s # End of vasprintf tests 1075s ok - glib/test-printf.test 1075s # Running test: glib/gdbus-test-codegen-min-required-2-64.test 1075s TAP version 14 1075s # random seed: R02Sb2e88e3c14834e615e6e8f766ee32b5f 1075s 1..8 1075s # Start of gdbus tests 1075s # Start of codegen tests 1075s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-test-codegen-min-required-2-64_EN93J3/gdbus/codegen/annotations/.dirs/home 1075s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-test-codegen-min-required-2-64_EN93J3/gdbus/codegen/annotations/.dirs/cache 1075s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-test-codegen-min-required-2-64_EN93J3/gdbus/codegen/annotations/.dirs/system-config1:/tmp/test_gdbus-test-codegen-min-required-2-64_EN93J3/gdbus/codegen/annotations/.dirs/system-config2 1075s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-test-codegen-min-required-2-64_EN93J3/gdbus/codegen/annotations/.dirs/config 1075s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-test-codegen-min-required-2-64_EN93J3/gdbus/codegen/annotations/.dirs/system-data1:/tmp/test_gdbus-test-codegen-min-required-2-64_EN93J3/gdbus/codegen/annotations/.dirs/system-data2 1075s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-test-codegen-min-required-2-64_EN93J3/gdbus/codegen/annotations/.dirs/data 1075s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-test-codegen-min-required-2-64_EN93J3/gdbus/codegen/annotations/.dirs/state 1075s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-test-codegen-min-required-2-64_EN93J3/gdbus/codegen/annotations/.dirs/runtime 1075s ok 1 /gdbus/codegen/annotations 1075s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-test-codegen-min-required-2-64_EN93J3/gdbus/codegen/interface_stability/.dirs/home 1075s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-test-codegen-min-required-2-64_EN93J3/gdbus/codegen/interface_stability/.dirs/cache 1075s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-test-codegen-min-required-2-64_EN93J3/gdbus/codegen/interface_stability/.dirs/system-config1:/tmp/test_gdbus-test-codegen-min-required-2-64_EN93J3/gdbus/codegen/interface_stability/.dirs/system-config2 1075s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-test-codegen-min-required-2-64_EN93J3/gdbus/codegen/interface_stability/.dirs/config 1075s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-test-codegen-min-required-2-64_EN93J3/gdbus/codegen/interface_stability/.dirs/system-data1:/tmp/test_gdbus-test-codegen-min-required-2-64_EN93J3/gdbus/codegen/interface_stability/.dirs/system-data2 1075s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-test-codegen-min-required-2-64_EN93J3/gdbus/codegen/interface_stability/.dirs/data 1075s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-test-codegen-min-required-2-64_EN93J3/gdbus/codegen/interface_stability/.dirs/state 1075s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-test-codegen-min-required-2-64_EN93J3/gdbus/codegen/interface_stability/.dirs/runtime 1075s ok 2 /gdbus/codegen/interface_stability 1075s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-test-codegen-min-required-2-64_EN93J3/gdbus/codegen/object-manager/.dirs/home 1075s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-test-codegen-min-required-2-64_EN93J3/gdbus/codegen/object-manager/.dirs/cache 1075s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-test-codegen-min-required-2-64_EN93J3/gdbus/codegen/object-manager/.dirs/system-config1:/tmp/test_gdbus-test-codegen-min-required-2-64_EN93J3/gdbus/codegen/object-manager/.dirs/system-config2 1075s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-test-codegen-min-required-2-64_EN93J3/gdbus/codegen/object-manager/.dirs/config 1075s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-test-codegen-min-required-2-64_EN93J3/gdbus/codegen/object-manager/.dirs/system-data1:/tmp/test_gdbus-test-codegen-min-required-2-64_EN93J3/gdbus/codegen/object-manager/.dirs/system-data2 1075s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-test-codegen-min-required-2-64_EN93J3/gdbus/codegen/object-manager/.dirs/data 1075s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-test-codegen-min-required-2-64_EN93J3/gdbus/codegen/object-manager/.dirs/state 1075s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-test-codegen-min-required-2-64_EN93J3/gdbus/codegen/object-manager/.dirs/runtime 1075s ok 3 /gdbus/codegen/object-manager 1075s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-test-codegen-min-required-2-64_EN93J3/gdbus/codegen/property-naming/.dirs/home 1075s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-test-codegen-min-required-2-64_EN93J3/gdbus/codegen/property-naming/.dirs/cache 1075s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-test-codegen-min-required-2-64_EN93J3/gdbus/codegen/property-naming/.dirs/system-config1:/tmp/test_gdbus-test-codegen-min-required-2-64_EN93J3/gdbus/codegen/property-naming/.dirs/system-config2 1075s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-test-codegen-min-required-2-64_EN93J3/gdbus/codegen/property-naming/.dirs/config 1075s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-test-codegen-min-required-2-64_EN93J3/gdbus/codegen/property-naming/.dirs/system-data1:/tmp/test_gdbus-test-codegen-min-required-2-64_EN93J3/gdbus/codegen/property-naming/.dirs/system-data2 1075s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-test-codegen-min-required-2-64_EN93J3/gdbus/codegen/property-naming/.dirs/data 1075s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-test-codegen-min-required-2-64_EN93J3/gdbus/codegen/property-naming/.dirs/state 1075s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-test-codegen-min-required-2-64_EN93J3/gdbus/codegen/property-naming/.dirs/runtime 1075s ok 4 /gdbus/codegen/property-naming 1075s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-test-codegen-min-required-2-64_EN93J3/gdbus/codegen/autocleanups/.dirs/home 1075s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-test-codegen-min-required-2-64_EN93J3/gdbus/codegen/autocleanups/.dirs/cache 1075s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-test-codegen-min-required-2-64_EN93J3/gdbus/codegen/autocleanups/.dirs/system-config1:/tmp/test_gdbus-test-codegen-min-required-2-64_EN93J3/gdbus/codegen/autocleanups/.dirs/system-config2 1075s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-test-codegen-min-required-2-64_EN93J3/gdbus/codegen/autocleanups/.dirs/config 1075s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-test-codegen-min-required-2-64_EN93J3/gdbus/codegen/autocleanups/.dirs/system-data1:/tmp/test_gdbus-test-codegen-min-required-2-64_EN93J3/gdbus/codegen/autocleanups/.dirs/system-data2 1075s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-test-codegen-min-required-2-64_EN93J3/gdbus/codegen/autocleanups/.dirs/data 1075s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-test-codegen-min-required-2-64_EN93J3/gdbus/codegen/autocleanups/.dirs/state 1075s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-test-codegen-min-required-2-64_EN93J3/gdbus/codegen/autocleanups/.dirs/runtime 1075s ok 5 /gdbus/codegen/autocleanups 1075s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-test-codegen-min-required-2-64_EN93J3/gdbus/codegen/deprecations/.dirs/home 1075s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-test-codegen-min-required-2-64_EN93J3/gdbus/codegen/deprecations/.dirs/cache 1075s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-test-codegen-min-required-2-64_EN93J3/gdbus/codegen/deprecations/.dirs/system-config1:/tmp/test_gdbus-test-codegen-min-required-2-64_EN93J3/gdbus/codegen/deprecations/.dirs/system-config2 1075s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-test-codegen-min-required-2-64_EN93J3/gdbus/codegen/deprecations/.dirs/config 1075s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-test-codegen-min-required-2-64_EN93J3/gdbus/codegen/deprecations/.dirs/system-data1:/tmp/test_gdbus-test-codegen-min-required-2-64_EN93J3/gdbus/codegen/deprecations/.dirs/system-data2 1075s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-test-codegen-min-required-2-64_EN93J3/gdbus/codegen/deprecations/.dirs/data 1075s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-test-codegen-min-required-2-64_EN93J3/gdbus/codegen/deprecations/.dirs/state 1075s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-test-codegen-min-required-2-64_EN93J3/gdbus/codegen/deprecations/.dirs/runtime 1075s ok 6 /gdbus/codegen/deprecations 1075s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-test-codegen-min-required-2-64_EN93J3/gdbus/codegen/standalone-interface-info/.dirs/home 1075s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-test-codegen-min-required-2-64_EN93J3/gdbus/codegen/standalone-interface-info/.dirs/cache 1075s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-test-codegen-min-required-2-64_EN93J3/gdbus/codegen/standalone-interface-info/.dirs/system-config1:/tmp/test_gdbus-test-codegen-min-required-2-64_EN93J3/gdbus/codegen/standalone-interface-info/.dirs/system-config2 1075s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-test-codegen-min-required-2-64_EN93J3/gdbus/codegen/standalone-interface-info/.dirs/config 1075s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-test-codegen-min-required-2-64_EN93J3/gdbus/codegen/standalone-interface-info/.dirs/system-data1:/tmp/test_gdbus-test-codegen-min-required-2-64_EN93J3/gdbus/codegen/standalone-interface-info/.dirs/system-data2 1075s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-test-codegen-min-required-2-64_EN93J3/gdbus/codegen/standalone-interface-info/.dirs/data 1075s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-test-codegen-min-required-2-64_EN93J3/gdbus/codegen/standalone-interface-info/.dirs/state 1075s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-test-codegen-min-required-2-64_EN93J3/gdbus/codegen/standalone-interface-info/.dirs/runtime 1075s ok 7 /gdbus/codegen/standalone-interface-info 1075s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-test-codegen-min-required-2-64_EN93J3/gdbus/codegen/unix-fd-list/.dirs/home 1075s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-test-codegen-min-required-2-64_EN93J3/gdbus/codegen/unix-fd-list/.dirs/cache 1075s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-test-codegen-min-required-2-64_EN93J3/gdbus/codegen/unix-fd-list/.dirs/system-config1:/tmp/test_gdbus-test-codegen-min-required-2-64_EN93J3/gdbus/codegen/unix-fd-list/.dirs/system-config2 1075s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-test-codegen-min-required-2-64_EN93J3/gdbus/codegen/unix-fd-list/.dirs/config 1075s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-test-codegen-min-required-2-64_EN93J3/gdbus/codegen/unix-fd-list/.dirs/system-data1:/tmp/test_gdbus-test-codegen-min-required-2-64_EN93J3/gdbus/codegen/unix-fd-list/.dirs/system-data2 1075s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-test-codegen-min-required-2-64_EN93J3/gdbus/codegen/unix-fd-list/.dirs/data 1075s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-test-codegen-min-required-2-64_EN93J3/gdbus/codegen/unix-fd-list/.dirs/state 1075s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-test-codegen-min-required-2-64_EN93J3/gdbus/codegen/unix-fd-list/.dirs/runtime 1075s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/issues/1726 1075s ok 8 /gdbus/codegen/unix-fd-list 1075s # End of codegen tests 1075s # End of gdbus tests 1075s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1075s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1075s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1075s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1075s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1075s ok - glib/gdbus-test-codegen-min-required-2-64.test 1075s # Running test: glib/utils-c-11.test 1075s TAP version 14 1075s # random seed: R02S433424d3545a9074da7219e5a88ce3d9 1075s 1..41 1075s # Start of utils tests 1075s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils-c-11_FMTPK3/utils/language-names/.dirs/home 1075s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-c-11_FMTPK3/utils/language-names/.dirs/cache 1075s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-c-11_FMTPK3/utils/language-names/.dirs/system-config1:/tmp/test_utils-c-11_FMTPK3/utils/language-names/.dirs/system-config2 1075s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-c-11_FMTPK3/utils/language-names/.dirs/config 1075s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-c-11_FMTPK3/utils/language-names/.dirs/system-data1:/tmp/test_utils-c-11_FMTPK3/utils/language-names/.dirs/system-data2 1075s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-c-11_FMTPK3/utils/language-names/.dirs/data 1075s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-c-11_FMTPK3/utils/language-names/.dirs/state 1075s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-c-11_FMTPK3/utils/language-names/.dirs/runtime 1075s ok 1 /utils/language-names 1075s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils-c-11_FMTPK3/utils/locale-variants/.dirs/home 1075s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-c-11_FMTPK3/utils/locale-variants/.dirs/cache 1075s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-c-11_FMTPK3/utils/locale-variants/.dirs/system-config1:/tmp/test_utils-c-11_FMTPK3/utils/locale-variants/.dirs/system-config2 1075s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-c-11_FMTPK3/utils/locale-variants/.dirs/config 1075s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-c-11_FMTPK3/utils/locale-variants/.dirs/system-data1:/tmp/test_utils-c-11_FMTPK3/utils/locale-variants/.dirs/system-data2 1075s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-c-11_FMTPK3/utils/locale-variants/.dirs/data 1075s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-c-11_FMTPK3/utils/locale-variants/.dirs/state 1075s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-c-11_FMTPK3/utils/locale-variants/.dirs/runtime 1075s # Testing locale ‘en’ 1075s # Testing locale ‘sr@latin’ 1075s # Testing locale ‘fr_BE’ 1075s # Testing locale ‘sr_SR@latin’ 1075s # Testing locale ‘sr_SR@latin.UTF-8’ 1075s # Testing locale ‘sr@latin_invalid’ 1075s # Testing locale ‘sr.UTF-8@latin’ 1075s # Testing locale ‘sr.UTF-8_latin’ 1075s # Testing locale ‘sr.UTF-8@latin_invalid’ 1075s ok 2 /utils/locale-variants 1075s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils-c-11_FMTPK3/utils/version/.dirs/home 1075s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-c-11_FMTPK3/utils/version/.dirs/cache 1075s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-c-11_FMTPK3/utils/version/.dirs/system-config1:/tmp/test_utils-c-11_FMTPK3/utils/version/.dirs/system-config2 1075s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-c-11_FMTPK3/utils/version/.dirs/config 1075s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-c-11_FMTPK3/utils/version/.dirs/system-data1:/tmp/test_utils-c-11_FMTPK3/utils/version/.dirs/system-data2 1075s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-c-11_FMTPK3/utils/version/.dirs/data 1075s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-c-11_FMTPK3/utils/version/.dirs/state 1075s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-c-11_FMTPK3/utils/version/.dirs/runtime 1075s ok 3 /utils/version 1075s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils-c-11_FMTPK3/utils/appname/.dirs/home 1075s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-c-11_FMTPK3/utils/appname/.dirs/cache 1075s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-c-11_FMTPK3/utils/appname/.dirs/system-config1:/tmp/test_utils-c-11_FMTPK3/utils/appname/.dirs/system-config2 1075s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-c-11_FMTPK3/utils/appname/.dirs/config 1075s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-c-11_FMTPK3/utils/appname/.dirs/system-data1:/tmp/test_utils-c-11_FMTPK3/utils/appname/.dirs/system-data2 1075s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-c-11_FMTPK3/utils/appname/.dirs/data 1075s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-c-11_FMTPK3/utils/appname/.dirs/state 1075s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-c-11_FMTPK3/utils/appname/.dirs/runtime 1075s ok 4 /utils/appname 1075s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils-c-11_FMTPK3/utils/prgname-thread-safety/.dirs/home 1075s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-c-11_FMTPK3/utils/prgname-thread-safety/.dirs/cache 1075s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-c-11_FMTPK3/utils/prgname-thread-safety/.dirs/system-config1:/tmp/test_utils-c-11_FMTPK3/utils/prgname-thread-safety/.dirs/system-config2 1075s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-c-11_FMTPK3/utils/prgname-thread-safety/.dirs/config 1075s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-c-11_FMTPK3/utils/prgname-thread-safety/.dirs/system-data1:/tmp/test_utils-c-11_FMTPK3/utils/prgname-thread-safety/.dirs/system-data2 1075s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-c-11_FMTPK3/utils/prgname-thread-safety/.dirs/data 1075s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-c-11_FMTPK3/utils/prgname-thread-safety/.dirs/state 1075s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-c-11_FMTPK3/utils/prgname-thread-safety/.dirs/runtime 1075s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/847 1075s # /utils/prgname-thread-safety summary: Test that threads racing to get and set the program name always receive a valid program name. 1075s ok 5 /utils/prgname-thread-safety 1075s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils-c-11_FMTPK3/utils/tmpdir/.dirs/home 1075s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-c-11_FMTPK3/utils/tmpdir/.dirs/cache 1075s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-c-11_FMTPK3/utils/tmpdir/.dirs/system-config1:/tmp/test_utils-c-11_FMTPK3/utils/tmpdir/.dirs/system-config2 1075s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-c-11_FMTPK3/utils/tmpdir/.dirs/config 1075s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-c-11_FMTPK3/utils/tmpdir/.dirs/system-data1:/tmp/test_utils-c-11_FMTPK3/utils/tmpdir/.dirs/system-data2 1075s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-c-11_FMTPK3/utils/tmpdir/.dirs/data 1075s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-c-11_FMTPK3/utils/tmpdir/.dirs/state 1075s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-c-11_FMTPK3/utils/tmpdir/.dirs/runtime 1075s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=627969 1075s # /utils/tmpdir summary: Test that g_get_tmp_dir() returns a correct default if TMPDIR is set to the empty string 1075s Unable to clean up temporary directory /tmp/test_utils-c-11_FMTPK3/utils/tmpdir: No such file or directory 1075s ok 6 /utils/tmpdir 1075s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils-c-11_FMTPK3/utils/basic_bits/.dirs/home 1075s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-c-11_FMTPK3/utils/basic_bits/.dirs/cache 1075s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-c-11_FMTPK3/utils/basic_bits/.dirs/system-config1:/tmp/test_utils-c-11_FMTPK3/utils/basic_bits/.dirs/system-config2 1075s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-c-11_FMTPK3/utils/basic_bits/.dirs/config 1075s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-c-11_FMTPK3/utils/basic_bits/.dirs/system-data1:/tmp/test_utils-c-11_FMTPK3/utils/basic_bits/.dirs/system-data2 1075s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-c-11_FMTPK3/utils/basic_bits/.dirs/data 1075s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-c-11_FMTPK3/utils/basic_bits/.dirs/state 1075s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-c-11_FMTPK3/utils/basic_bits/.dirs/runtime 1075s ok 7 /utils/basic_bits 1075s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils-c-11_FMTPK3/utils/bits/.dirs/home 1075s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-c-11_FMTPK3/utils/bits/.dirs/cache 1075s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-c-11_FMTPK3/utils/bits/.dirs/system-config1:/tmp/test_utils-c-11_FMTPK3/utils/bits/.dirs/system-config2 1075s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-c-11_FMTPK3/utils/bits/.dirs/config 1075s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-c-11_FMTPK3/utils/bits/.dirs/system-data1:/tmp/test_utils-c-11_FMTPK3/utils/bits/.dirs/system-data2 1075s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-c-11_FMTPK3/utils/bits/.dirs/data 1075s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-c-11_FMTPK3/utils/bits/.dirs/state 1075s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-c-11_FMTPK3/utils/bits/.dirs/runtime 1075s ok 8 /utils/bits 1075s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils-c-11_FMTPK3/utils/swap/.dirs/home 1075s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-c-11_FMTPK3/utils/swap/.dirs/cache 1075s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-c-11_FMTPK3/utils/swap/.dirs/system-config1:/tmp/test_utils-c-11_FMTPK3/utils/swap/.dirs/system-config2 1075s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-c-11_FMTPK3/utils/swap/.dirs/config 1075s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-c-11_FMTPK3/utils/swap/.dirs/system-data1:/tmp/test_utils-c-11_FMTPK3/utils/swap/.dirs/system-data2 1075s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-c-11_FMTPK3/utils/swap/.dirs/data 1075s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-c-11_FMTPK3/utils/swap/.dirs/state 1075s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-c-11_FMTPK3/utils/swap/.dirs/runtime 1075s ok 9 /utils/swap 1075s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils-c-11_FMTPK3/utils/find-program/.dirs/home 1075s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-c-11_FMTPK3/utils/find-program/.dirs/cache 1075s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-c-11_FMTPK3/utils/find-program/.dirs/system-config1:/tmp/test_utils-c-11_FMTPK3/utils/find-program/.dirs/system-config2 1075s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-c-11_FMTPK3/utils/find-program/.dirs/config 1075s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-c-11_FMTPK3/utils/find-program/.dirs/system-data1:/tmp/test_utils-c-11_FMTPK3/utils/find-program/.dirs/system-data2 1075s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-c-11_FMTPK3/utils/find-program/.dirs/data 1075s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-c-11_FMTPK3/utils/find-program/.dirs/state 1075s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-c-11_FMTPK3/utils/find-program/.dirs/runtime 1075s ok 10 /utils/find-program 1075s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils-c-11_FMTPK3/utils/find-program-for-path/.dirs/home 1075s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-c-11_FMTPK3/utils/find-program-for-path/.dirs/cache 1075s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-c-11_FMTPK3/utils/find-program-for-path/.dirs/system-config1:/tmp/test_utils-c-11_FMTPK3/utils/find-program-for-path/.dirs/system-config2 1075s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-c-11_FMTPK3/utils/find-program-for-path/.dirs/config 1075s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-c-11_FMTPK3/utils/find-program-for-path/.dirs/system-data1:/tmp/test_utils-c-11_FMTPK3/utils/find-program-for-path/.dirs/system-data2 1075s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-c-11_FMTPK3/utils/find-program-for-path/.dirs/data 1075s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-c-11_FMTPK3/utils/find-program-for-path/.dirs/state 1075s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-c-11_FMTPK3/utils/find-program-for-path/.dirs/runtime 1075s ok 11 /utils/find-program-for-path 1075s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils-c-11_FMTPK3/utils/debug/.dirs/home 1075s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-c-11_FMTPK3/utils/debug/.dirs/cache 1075s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-c-11_FMTPK3/utils/debug/.dirs/system-config1:/tmp/test_utils-c-11_FMTPK3/utils/debug/.dirs/system-config2 1075s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-c-11_FMTPK3/utils/debug/.dirs/config 1075s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-c-11_FMTPK3/utils/debug/.dirs/system-data1:/tmp/test_utils-c-11_FMTPK3/utils/debug/.dirs/system-data2 1075s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-c-11_FMTPK3/utils/debug/.dirs/data 1075s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-c-11_FMTPK3/utils/debug/.dirs/state 1075s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-c-11_FMTPK3/utils/debug/.dirs/runtime 1075s Unable to clean up temporary directory /tmp/test_utils-c-11_FMTPK3/utils/debug: No such file or directory 1075s ok 12 /utils/debug 1075s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils-c-11_FMTPK3/utils/codeset/.dirs/home 1075s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-c-11_FMTPK3/utils/codeset/.dirs/cache 1075s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-c-11_FMTPK3/utils/codeset/.dirs/system-config1:/tmp/test_utils-c-11_FMTPK3/utils/codeset/.dirs/system-config2 1075s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-c-11_FMTPK3/utils/codeset/.dirs/config 1075s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-c-11_FMTPK3/utils/codeset/.dirs/system-data1:/tmp/test_utils-c-11_FMTPK3/utils/codeset/.dirs/system-data2 1075s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-c-11_FMTPK3/utils/codeset/.dirs/data 1075s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-c-11_FMTPK3/utils/codeset/.dirs/state 1075s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-c-11_FMTPK3/utils/codeset/.dirs/runtime 1075s ok 13 /utils/codeset 1075s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils-c-11_FMTPK3/utils/codeset2/.dirs/home 1075s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-c-11_FMTPK3/utils/codeset2/.dirs/cache 1075s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-c-11_FMTPK3/utils/codeset2/.dirs/system-config1:/tmp/test_utils-c-11_FMTPK3/utils/codeset2/.dirs/system-config2 1075s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-c-11_FMTPK3/utils/codeset2/.dirs/config 1075s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-c-11_FMTPK3/utils/codeset2/.dirs/system-data1:/tmp/test_utils-c-11_FMTPK3/utils/codeset2/.dirs/system-data2 1075s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-c-11_FMTPK3/utils/codeset2/.dirs/data 1075s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-c-11_FMTPK3/utils/codeset2/.dirs/state 1075s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-c-11_FMTPK3/utils/codeset2/.dirs/runtime 1075s Unable to clean up temporary directory /tmp/test_utils-c-11_FMTPK3/utils/codeset2: No such file or directory 1075s ok 14 /utils/codeset2 1075s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils-c-11_FMTPK3/utils/console-charset/.dirs/home 1075s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-c-11_FMTPK3/utils/console-charset/.dirs/cache 1075s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-c-11_FMTPK3/utils/console-charset/.dirs/system-config1:/tmp/test_utils-c-11_FMTPK3/utils/console-charset/.dirs/system-config2 1075s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-c-11_FMTPK3/utils/console-charset/.dirs/config 1075s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-c-11_FMTPK3/utils/console-charset/.dirs/system-data1:/tmp/test_utils-c-11_FMTPK3/utils/console-charset/.dirs/system-data2 1075s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-c-11_FMTPK3/utils/console-charset/.dirs/data 1075s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-c-11_FMTPK3/utils/console-charset/.dirs/state 1075s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-c-11_FMTPK3/utils/console-charset/.dirs/runtime 1075s ok 15 /utils/console-charset 1075s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils-c-11_FMTPK3/utils/gettext/.dirs/home 1075s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-c-11_FMTPK3/utils/gettext/.dirs/cache 1075s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-c-11_FMTPK3/utils/gettext/.dirs/system-config1:/tmp/test_utils-c-11_FMTPK3/utils/gettext/.dirs/system-config2 1075s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-c-11_FMTPK3/utils/gettext/.dirs/config 1075s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-c-11_FMTPK3/utils/gettext/.dirs/system-data1:/tmp/test_utils-c-11_FMTPK3/utils/gettext/.dirs/system-data2 1075s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-c-11_FMTPK3/utils/gettext/.dirs/data 1075s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-c-11_FMTPK3/utils/gettext/.dirs/state 1075s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-c-11_FMTPK3/utils/gettext/.dirs/runtime 1075s ok 16 /utils/gettext 1075s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils-c-11_FMTPK3/utils/username/.dirs/home 1075s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-c-11_FMTPK3/utils/username/.dirs/cache 1075s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-c-11_FMTPK3/utils/username/.dirs/system-config1:/tmp/test_utils-c-11_FMTPK3/utils/username/.dirs/system-config2 1075s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-c-11_FMTPK3/utils/username/.dirs/config 1075s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-c-11_FMTPK3/utils/username/.dirs/system-data1:/tmp/test_utils-c-11_FMTPK3/utils/username/.dirs/system-data2 1075s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-c-11_FMTPK3/utils/username/.dirs/data 1075s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-c-11_FMTPK3/utils/username/.dirs/state 1075s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-c-11_FMTPK3/utils/username/.dirs/runtime 1075s ok 17 /utils/username 1075s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils-c-11_FMTPK3/utils/realname/.dirs/home 1075s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-c-11_FMTPK3/utils/realname/.dirs/cache 1075s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-c-11_FMTPK3/utils/realname/.dirs/system-config1:/tmp/test_utils-c-11_FMTPK3/utils/realname/.dirs/system-config2 1075s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-c-11_FMTPK3/utils/realname/.dirs/config 1075s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-c-11_FMTPK3/utils/realname/.dirs/system-data1:/tmp/test_utils-c-11_FMTPK3/utils/realname/.dirs/system-data2 1075s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-c-11_FMTPK3/utils/realname/.dirs/data 1075s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-c-11_FMTPK3/utils/realname/.dirs/state 1075s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-c-11_FMTPK3/utils/realname/.dirs/runtime 1075s ok 18 /utils/realname 1075s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils-c-11_FMTPK3/utils/hostname/.dirs/home 1075s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-c-11_FMTPK3/utils/hostname/.dirs/cache 1075s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-c-11_FMTPK3/utils/hostname/.dirs/system-config1:/tmp/test_utils-c-11_FMTPK3/utils/hostname/.dirs/system-config2 1075s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-c-11_FMTPK3/utils/hostname/.dirs/config 1075s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-c-11_FMTPK3/utils/hostname/.dirs/system-data1:/tmp/test_utils-c-11_FMTPK3/utils/hostname/.dirs/system-data2 1075s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-c-11_FMTPK3/utils/hostname/.dirs/data 1075s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-c-11_FMTPK3/utils/hostname/.dirs/state 1075s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-c-11_FMTPK3/utils/hostname/.dirs/runtime 1075s ok 19 /utils/hostname 1075s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils-c-11_FMTPK3/utils/os-info/.dirs/home 1075s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-c-11_FMTPK3/utils/os-info/.dirs/cache 1075s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-c-11_FMTPK3/utils/os-info/.dirs/system-config1:/tmp/test_utils-c-11_FMTPK3/utils/os-info/.dirs/system-config2 1075s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-c-11_FMTPK3/utils/os-info/.dirs/config 1075s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-c-11_FMTPK3/utils/os-info/.dirs/system-data1:/tmp/test_utils-c-11_FMTPK3/utils/os-info/.dirs/system-data2 1075s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-c-11_FMTPK3/utils/os-info/.dirs/data 1075s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-c-11_FMTPK3/utils/os-info/.dirs/state 1075s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-c-11_FMTPK3/utils/os-info/.dirs/runtime 1075s # NAME: Ubuntu 1075s ok 20 /utils/os-info 1075s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils-c-11_FMTPK3/utils/clear-pointer/.dirs/home 1075s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-c-11_FMTPK3/utils/clear-pointer/.dirs/cache 1075s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-c-11_FMTPK3/utils/clear-pointer/.dirs/system-config1:/tmp/test_utils-c-11_FMTPK3/utils/clear-pointer/.dirs/system-config2 1075s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-c-11_FMTPK3/utils/clear-pointer/.dirs/config 1075s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-c-11_FMTPK3/utils/clear-pointer/.dirs/system-data1:/tmp/test_utils-c-11_FMTPK3/utils/clear-pointer/.dirs/system-data2 1075s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-c-11_FMTPK3/utils/clear-pointer/.dirs/data 1075s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-c-11_FMTPK3/utils/clear-pointer/.dirs/state 1075s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-c-11_FMTPK3/utils/clear-pointer/.dirs/runtime 1075s ok 21 /utils/clear-pointer 1075s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils-c-11_FMTPK3/utils/clear-pointer-cast/.dirs/home 1075s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-c-11_FMTPK3/utils/clear-pointer-cast/.dirs/cache 1075s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-c-11_FMTPK3/utils/clear-pointer-cast/.dirs/system-config1:/tmp/test_utils-c-11_FMTPK3/utils/clear-pointer-cast/.dirs/system-config2 1075s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-c-11_FMTPK3/utils/clear-pointer-cast/.dirs/config 1075s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-c-11_FMTPK3/utils/clear-pointer-cast/.dirs/system-data1:/tmp/test_utils-c-11_FMTPK3/utils/clear-pointer-cast/.dirs/system-data2 1075s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-c-11_FMTPK3/utils/clear-pointer-cast/.dirs/data 1075s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-c-11_FMTPK3/utils/clear-pointer-cast/.dirs/state 1075s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-c-11_FMTPK3/utils/clear-pointer-cast/.dirs/runtime 1075s ok 22 /utils/clear-pointer-cast 1075s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils-c-11_FMTPK3/utils/take-pointer/.dirs/home 1075s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-c-11_FMTPK3/utils/take-pointer/.dirs/cache 1075s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-c-11_FMTPK3/utils/take-pointer/.dirs/system-config1:/tmp/test_utils-c-11_FMTPK3/utils/take-pointer/.dirs/system-config2 1075s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-c-11_FMTPK3/utils/take-pointer/.dirs/config 1075s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-c-11_FMTPK3/utils/take-pointer/.dirs/system-data1:/tmp/test_utils-c-11_FMTPK3/utils/take-pointer/.dirs/system-data2 1075s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-c-11_FMTPK3/utils/take-pointer/.dirs/data 1075s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-c-11_FMTPK3/utils/take-pointer/.dirs/state 1075s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-c-11_FMTPK3/utils/take-pointer/.dirs/runtime 1075s ok 23 /utils/take-pointer 1075s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils-c-11_FMTPK3/utils/clear-source/.dirs/home 1075s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-c-11_FMTPK3/utils/clear-source/.dirs/cache 1075s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-c-11_FMTPK3/utils/clear-source/.dirs/system-config1:/tmp/test_utils-c-11_FMTPK3/utils/clear-source/.dirs/system-config2 1075s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-c-11_FMTPK3/utils/clear-source/.dirs/config 1075s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-c-11_FMTPK3/utils/clear-source/.dirs/system-data1:/tmp/test_utils-c-11_FMTPK3/utils/clear-source/.dirs/system-data2 1075s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-c-11_FMTPK3/utils/clear-source/.dirs/data 1075s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-c-11_FMTPK3/utils/clear-source/.dirs/state 1075s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-c-11_FMTPK3/utils/clear-source/.dirs/runtime 1075s ok 24 /utils/clear-source 1075s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils-c-11_FMTPK3/utils/misc-mem/.dirs/home 1075s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-c-11_FMTPK3/utils/misc-mem/.dirs/cache 1075s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-c-11_FMTPK3/utils/misc-mem/.dirs/system-config1:/tmp/test_utils-c-11_FMTPK3/utils/misc-mem/.dirs/system-config2 1075s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-c-11_FMTPK3/utils/misc-mem/.dirs/config 1075s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-c-11_FMTPK3/utils/misc-mem/.dirs/system-data1:/tmp/test_utils-c-11_FMTPK3/utils/misc-mem/.dirs/system-data2 1075s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-c-11_FMTPK3/utils/misc-mem/.dirs/data 1075s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-c-11_FMTPK3/utils/misc-mem/.dirs/state 1075s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-c-11_FMTPK3/utils/misc-mem/.dirs/runtime 1075s ok 25 /utils/misc-mem 1075s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils-c-11_FMTPK3/utils/aligned-mem/.dirs/home 1075s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-c-11_FMTPK3/utils/aligned-mem/.dirs/cache 1075s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-c-11_FMTPK3/utils/aligned-mem/.dirs/system-config1:/tmp/test_utils-c-11_FMTPK3/utils/aligned-mem/.dirs/system-config2 1075s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-c-11_FMTPK3/utils/aligned-mem/.dirs/config 1075s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-c-11_FMTPK3/utils/aligned-mem/.dirs/system-data1:/tmp/test_utils-c-11_FMTPK3/utils/aligned-mem/.dirs/system-data2 1075s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-c-11_FMTPK3/utils/aligned-mem/.dirs/data 1075s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-c-11_FMTPK3/utils/aligned-mem/.dirs/state 1075s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-c-11_FMTPK3/utils/aligned-mem/.dirs/runtime 1075s # /utils/aligned-mem summary: Aligned memory allocator 1075s # Alignment must not be zero 1075s # Alignment must be a power of two 1075s # Alignment must be a multiple of sizeof(void*) 1075s ok 26 /utils/aligned-mem 1075s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils-c-11_FMTPK3/utils/free-sized/.dirs/home 1075s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-c-11_FMTPK3/utils/free-sized/.dirs/cache 1075s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-c-11_FMTPK3/utils/free-sized/.dirs/system-config1:/tmp/test_utils-c-11_FMTPK3/utils/free-sized/.dirs/system-config2 1075s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-c-11_FMTPK3/utils/free-sized/.dirs/config 1075s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-c-11_FMTPK3/utils/free-sized/.dirs/system-data1:/tmp/test_utils-c-11_FMTPK3/utils/free-sized/.dirs/system-data2 1075s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-c-11_FMTPK3/utils/free-sized/.dirs/data 1075s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-c-11_FMTPK3/utils/free-sized/.dirs/state 1075s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-c-11_FMTPK3/utils/free-sized/.dirs/runtime 1075s # /utils/free-sized summary: Check that g_free_sized() works 1075s ok 27 /utils/free-sized 1075s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils-c-11_FMTPK3/utils/nullify/.dirs/home 1075s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-c-11_FMTPK3/utils/nullify/.dirs/cache 1075s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-c-11_FMTPK3/utils/nullify/.dirs/system-config1:/tmp/test_utils-c-11_FMTPK3/utils/nullify/.dirs/system-config2 1075s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-c-11_FMTPK3/utils/nullify/.dirs/config 1075s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-c-11_FMTPK3/utils/nullify/.dirs/system-data1:/tmp/test_utils-c-11_FMTPK3/utils/nullify/.dirs/system-data2 1075s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-c-11_FMTPK3/utils/nullify/.dirs/data 1075s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-c-11_FMTPK3/utils/nullify/.dirs/state 1075s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-c-11_FMTPK3/utils/nullify/.dirs/runtime 1075s ok 28 /utils/nullify 1075s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils-c-11_FMTPK3/utils/atexit/.dirs/home 1075s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-c-11_FMTPK3/utils/atexit/.dirs/cache 1075s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-c-11_FMTPK3/utils/atexit/.dirs/system-config1:/tmp/test_utils-c-11_FMTPK3/utils/atexit/.dirs/system-config2 1075s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-c-11_FMTPK3/utils/atexit/.dirs/config 1075s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-c-11_FMTPK3/utils/atexit/.dirs/system-data1:/tmp/test_utils-c-11_FMTPK3/utils/atexit/.dirs/system-data2 1075s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-c-11_FMTPK3/utils/atexit/.dirs/data 1075s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-c-11_FMTPK3/utils/atexit/.dirs/state 1075s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-c-11_FMTPK3/utils/atexit/.dirs/runtime 1075s Unable to clean up temporary directory /tmp/test_utils-c-11_FMTPK3/utils/atexit: No such file or directory 1075s ok 29 /utils/atexit 1075s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils-c-11_FMTPK3/utils/check-setuid/.dirs/home 1075s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-c-11_FMTPK3/utils/check-setuid/.dirs/cache 1075s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-c-11_FMTPK3/utils/check-setuid/.dirs/system-config1:/tmp/test_utils-c-11_FMTPK3/utils/check-setuid/.dirs/system-config2 1075s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-c-11_FMTPK3/utils/check-setuid/.dirs/config 1075s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-c-11_FMTPK3/utils/check-setuid/.dirs/system-data1:/tmp/test_utils-c-11_FMTPK3/utils/check-setuid/.dirs/system-data2 1075s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-c-11_FMTPK3/utils/check-setuid/.dirs/data 1075s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-c-11_FMTPK3/utils/check-setuid/.dirs/state 1075s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-c-11_FMTPK3/utils/check-setuid/.dirs/runtime 1075s ok 30 /utils/check-setuid 1075s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils-c-11_FMTPK3/utils/int-limits/.dirs/home 1075s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-c-11_FMTPK3/utils/int-limits/.dirs/cache 1075s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-c-11_FMTPK3/utils/int-limits/.dirs/system-config1:/tmp/test_utils-c-11_FMTPK3/utils/int-limits/.dirs/system-config2 1075s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-c-11_FMTPK3/utils/int-limits/.dirs/config 1075s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-c-11_FMTPK3/utils/int-limits/.dirs/system-data1:/tmp/test_utils-c-11_FMTPK3/utils/int-limits/.dirs/system-data2 1075s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-c-11_FMTPK3/utils/int-limits/.dirs/data 1075s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-c-11_FMTPK3/utils/int-limits/.dirs/state 1075s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-c-11_FMTPK3/utils/int-limits/.dirs/runtime 1075s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/issues/1663 1075s ok 31 /utils/int-limits 1075s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils-c-11_FMTPK3/utils/clear-list/.dirs/home 1075s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-c-11_FMTPK3/utils/clear-list/.dirs/cache 1075s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-c-11_FMTPK3/utils/clear-list/.dirs/system-config1:/tmp/test_utils-c-11_FMTPK3/utils/clear-list/.dirs/system-config2 1075s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-c-11_FMTPK3/utils/clear-list/.dirs/config 1075s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-c-11_FMTPK3/utils/clear-list/.dirs/system-data1:/tmp/test_utils-c-11_FMTPK3/utils/clear-list/.dirs/system-data2 1075s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-c-11_FMTPK3/utils/clear-list/.dirs/data 1075s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-c-11_FMTPK3/utils/clear-list/.dirs/state 1075s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-c-11_FMTPK3/utils/clear-list/.dirs/runtime 1075s ok 32 /utils/clear-list 1075s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils-c-11_FMTPK3/utils/clear-slist/.dirs/home 1075s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-c-11_FMTPK3/utils/clear-slist/.dirs/cache 1075s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-c-11_FMTPK3/utils/clear-slist/.dirs/system-config1:/tmp/test_utils-c-11_FMTPK3/utils/clear-slist/.dirs/system-config2 1075s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-c-11_FMTPK3/utils/clear-slist/.dirs/config 1075s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-c-11_FMTPK3/utils/clear-slist/.dirs/system-data1:/tmp/test_utils-c-11_FMTPK3/utils/clear-slist/.dirs/system-data2 1075s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-c-11_FMTPK3/utils/clear-slist/.dirs/data 1075s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-c-11_FMTPK3/utils/clear-slist/.dirs/state 1075s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-c-11_FMTPK3/utils/clear-slist/.dirs/runtime 1075s ok 33 /utils/clear-slist 1075s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils-c-11_FMTPK3/utils/steal-handle-id/.dirs/home 1075s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-c-11_FMTPK3/utils/steal-handle-id/.dirs/cache 1075s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-c-11_FMTPK3/utils/steal-handle-id/.dirs/system-config1:/tmp/test_utils-c-11_FMTPK3/utils/steal-handle-id/.dirs/system-config2 1075s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-c-11_FMTPK3/utils/steal-handle-id/.dirs/config 1075s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-c-11_FMTPK3/utils/steal-handle-id/.dirs/system-data1:/tmp/test_utils-c-11_FMTPK3/utils/steal-handle-id/.dirs/system-data2 1075s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-c-11_FMTPK3/utils/steal-handle-id/.dirs/data 1075s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-c-11_FMTPK3/utils/steal-handle-id/.dirs/state 1075s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-c-11_FMTPK3/utils/steal-handle-id/.dirs/runtime 1075s ok 34 /utils/steal-handle-id 1075s # Start of user-special-dirs tests 1075s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils-c-11_FMTPK3/utils/user-special-dirs/desktop/.dirs/home 1075s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-c-11_FMTPK3/utils/user-special-dirs/desktop/.dirs/cache 1075s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-c-11_FMTPK3/utils/user-special-dirs/desktop/.dirs/system-config1:/tmp/test_utils-c-11_FMTPK3/utils/user-special-dirs/desktop/.dirs/system-config2 1075s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-c-11_FMTPK3/utils/user-special-dirs/desktop/.dirs/config 1075s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-c-11_FMTPK3/utils/user-special-dirs/desktop/.dirs/system-data1:/tmp/test_utils-c-11_FMTPK3/utils/user-special-dirs/desktop/.dirs/system-data2 1075s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-c-11_FMTPK3/utils/user-special-dirs/desktop/.dirs/data 1075s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-c-11_FMTPK3/utils/user-special-dirs/desktop/.dirs/state 1075s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-c-11_FMTPK3/utils/user-special-dirs/desktop/.dirs/runtime 1075s ok 35 /utils/user-special-dirs/desktop 1075s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils-c-11_FMTPK3/utils/user-special-dirs/load-unlocked/.dirs/home 1075s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-c-11_FMTPK3/utils/user-special-dirs/load-unlocked/.dirs/cache 1075s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-c-11_FMTPK3/utils/user-special-dirs/load-unlocked/.dirs/system-config1:/tmp/test_utils-c-11_FMTPK3/utils/user-special-dirs/load-unlocked/.dirs/system-config2 1075s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-c-11_FMTPK3/utils/user-special-dirs/load-unlocked/.dirs/config 1075s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-c-11_FMTPK3/utils/user-special-dirs/load-unlocked/.dirs/system-data1:/tmp/test_utils-c-11_FMTPK3/utils/user-special-dirs/load-unlocked/.dirs/system-data2 1075s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-c-11_FMTPK3/utils/user-special-dirs/load-unlocked/.dirs/data 1075s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-c-11_FMTPK3/utils/user-special-dirs/load-unlocked/.dirs/state 1075s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-c-11_FMTPK3/utils/user-special-dirs/load-unlocked/.dirs/runtime 1075s # /utils/user-special-dirs/load-unlocked summary: Tests error and corner cases of user-dirs.dirs content. 1075s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/merge_requests/4800 1075s Unable to clean up temporary directory /tmp/test_utils-c-11_FMTPK3/utils/user-special-dirs/load-unlocked: No such file or directory 1075s ok 36 /utils/user-special-dirs/load-unlocked 1075s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils-c-11_FMTPK3/utils/user-special-dirs/reload-leaks/.dirs/home 1075s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-c-11_FMTPK3/utils/user-special-dirs/reload-leaks/.dirs/cache 1075s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-c-11_FMTPK3/utils/user-special-dirs/reload-leaks/.dirs/system-config1:/tmp/test_utils-c-11_FMTPK3/utils/user-special-dirs/reload-leaks/.dirs/system-config2 1075s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-c-11_FMTPK3/utils/user-special-dirs/reload-leaks/.dirs/config 1075s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-c-11_FMTPK3/utils/user-special-dirs/reload-leaks/.dirs/system-data1:/tmp/test_utils-c-11_FMTPK3/utils/user-special-dirs/reload-leaks/.dirs/system-data2 1075s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-c-11_FMTPK3/utils/user-special-dirs/reload-leaks/.dirs/data 1075s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-c-11_FMTPK3/utils/user-special-dirs/reload-leaks/.dirs/state 1075s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-c-11_FMTPK3/utils/user-special-dirs/reload-leaks/.dirs/runtime 1075s # /utils/user-special-dirs/reload-leaks summary: Tests that old user special dirs values are deliberately leaked on reload. 1075s Unable to clean up temporary directory /tmp/test_utils-c-11_FMTPK3/utils/user-special-dirs/reload-leaks: No such file or directory 1075s ok 37 /utils/user-special-dirs/reload-leaks 1075s # End of user-special-dirs tests 1075s # Start of clear-pointer tests 1075s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils-c-11_FMTPK3/utils/clear-pointer/side-effects/.dirs/home 1075s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-c-11_FMTPK3/utils/clear-pointer/side-effects/.dirs/cache 1075s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-c-11_FMTPK3/utils/clear-pointer/side-effects/.dirs/system-config1:/tmp/test_utils-c-11_FMTPK3/utils/clear-pointer/side-effects/.dirs/system-config2 1075s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-c-11_FMTPK3/utils/clear-pointer/side-effects/.dirs/config 1075s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-c-11_FMTPK3/utils/clear-pointer/side-effects/.dirs/system-data1:/tmp/test_utils-c-11_FMTPK3/utils/clear-pointer/side-effects/.dirs/system-data2 1075s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-c-11_FMTPK3/utils/clear-pointer/side-effects/.dirs/data 1075s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-c-11_FMTPK3/utils/clear-pointer/side-effects/.dirs/state 1075s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-c-11_FMTPK3/utils/clear-pointer/side-effects/.dirs/runtime 1075s ok 38 /utils/clear-pointer/side-effects 1075s # End of clear-pointer tests 1075s # Start of aligned-mem tests 1075s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils-c-11_FMTPK3/utils/aligned-mem/alignment/.dirs/home 1075s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-c-11_FMTPK3/utils/aligned-mem/alignment/.dirs/cache 1075s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-c-11_FMTPK3/utils/aligned-mem/alignment/.dirs/system-config1:/tmp/test_utils-c-11_FMTPK3/utils/aligned-mem/alignment/.dirs/system-config2 1075s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-c-11_FMTPK3/utils/aligned-mem/alignment/.dirs/config 1075s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-c-11_FMTPK3/utils/aligned-mem/alignment/.dirs/system-data1:/tmp/test_utils-c-11_FMTPK3/utils/aligned-mem/alignment/.dirs/system-data2 1075s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-c-11_FMTPK3/utils/aligned-mem/alignment/.dirs/data 1075s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-c-11_FMTPK3/utils/aligned-mem/alignment/.dirs/state 1075s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-c-11_FMTPK3/utils/aligned-mem/alignment/.dirs/runtime 1075s # /utils/aligned-mem/alignment summary: Check that g_aligned_alloc() returns a correctly aligned pointer 1075s ok 39 /utils/aligned-mem/alignment 1075s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils-c-11_FMTPK3/utils/aligned-mem/zeroed/.dirs/home 1075s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-c-11_FMTPK3/utils/aligned-mem/zeroed/.dirs/cache 1075s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-c-11_FMTPK3/utils/aligned-mem/zeroed/.dirs/system-config1:/tmp/test_utils-c-11_FMTPK3/utils/aligned-mem/zeroed/.dirs/system-config2 1075s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-c-11_FMTPK3/utils/aligned-mem/zeroed/.dirs/config 1075s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-c-11_FMTPK3/utils/aligned-mem/zeroed/.dirs/system-data1:/tmp/test_utils-c-11_FMTPK3/utils/aligned-mem/zeroed/.dirs/system-data2 1075s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-c-11_FMTPK3/utils/aligned-mem/zeroed/.dirs/data 1075s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-c-11_FMTPK3/utils/aligned-mem/zeroed/.dirs/state 1075s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-c-11_FMTPK3/utils/aligned-mem/zeroed/.dirs/runtime 1075s # /utils/aligned-mem/zeroed summary: Check that g_aligned_alloc0() zeroes out its allocation 1075s ok 40 /utils/aligned-mem/zeroed 1075s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils-c-11_FMTPK3/utils/aligned-mem/free-sized/.dirs/home 1075s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-c-11_FMTPK3/utils/aligned-mem/free-sized/.dirs/cache 1075s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-c-11_FMTPK3/utils/aligned-mem/free-sized/.dirs/system-config1:/tmp/test_utils-c-11_FMTPK3/utils/aligned-mem/free-sized/.dirs/system-config2 1075s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-c-11_FMTPK3/utils/aligned-mem/free-sized/.dirs/config 1075s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-c-11_FMTPK3/utils/aligned-mem/free-sized/.dirs/system-data1:/tmp/test_utils-c-11_FMTPK3/utils/aligned-mem/free-sized/.dirs/system-data2 1075s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-c-11_FMTPK3/utils/aligned-mem/free-sized/.dirs/data 1075s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-c-11_FMTPK3/utils/aligned-mem/free-sized/.dirs/state 1075s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-c-11_FMTPK3/utils/aligned-mem/free-sized/.dirs/runtime 1075s # /utils/aligned-mem/free-sized summary: Check that g_aligned_free_sized() works 1075s ok 41 /utils/aligned-mem/free-sized 1075s # Start of subprocess tests 1075s # End of subprocess tests 1075s # End of aligned-mem tests 1075s # End of utils tests 1075s ok - glib/utils-c-11.test 1075s # Running test: glib/mapping.test 1075s TAP version 14 1075s # random seed: R02S351d52de9c5390d477d3f8bafade5b83 1075s 1..3 1075s # Start of mapping tests 1075s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_mapping_9YFOK3/mapping/flags/.dirs/home 1075s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_mapping_9YFOK3/mapping/flags/.dirs/cache 1075s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_mapping_9YFOK3/mapping/flags/.dirs/system-config1:/tmp/test_mapping_9YFOK3/mapping/flags/.dirs/system-config2 1075s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_mapping_9YFOK3/mapping/flags/.dirs/config 1075s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_mapping_9YFOK3/mapping/flags/.dirs/system-data1:/tmp/test_mapping_9YFOK3/mapping/flags/.dirs/system-data2 1075s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_mapping_9YFOK3/mapping/flags/.dirs/data 1075s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_mapping_9YFOK3/mapping/flags/.dirs/state 1075s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_mapping_9YFOK3/mapping/flags/.dirs/runtime 1075s # test_mapping: ok 1075s ok 1 /mapping/flags 1075s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_mapping_9YFOK3/mapping/private/.dirs/home 1075s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_mapping_9YFOK3/mapping/private/.dirs/cache 1075s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_mapping_9YFOK3/mapping/private/.dirs/system-config1:/tmp/test_mapping_9YFOK3/mapping/private/.dirs/system-config2 1075s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_mapping_9YFOK3/mapping/private/.dirs/config 1075s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_mapping_9YFOK3/mapping/private/.dirs/system-data1:/tmp/test_mapping_9YFOK3/mapping/private/.dirs/system-data2 1075s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_mapping_9YFOK3/mapping/private/.dirs/data 1075s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_mapping_9YFOK3/mapping/private/.dirs/state 1075s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_mapping_9YFOK3/mapping/private/.dirs/runtime 1075s ok 2 /mapping/private 1075s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_mapping_9YFOK3/mapping/private-child/.dirs/home 1075s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_mapping_9YFOK3/mapping/private-child/.dirs/cache 1075s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_mapping_9YFOK3/mapping/private-child/.dirs/system-config1:/tmp/test_mapping_9YFOK3/mapping/private-child/.dirs/system-config2 1075s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_mapping_9YFOK3/mapping/private-child/.dirs/config 1075s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_mapping_9YFOK3/mapping/private-child/.dirs/system-data1:/tmp/test_mapping_9YFOK3/mapping/private-child/.dirs/system-data2 1075s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_mapping_9YFOK3/mapping/private-child/.dirs/data 1075s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_mapping_9YFOK3/mapping/private-child/.dirs/state 1075s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_mapping_9YFOK3/mapping/private-child/.dirs/runtime 1075s # test_child_private: child spawned 1075s # Subtest: /usr/libexec/installed-tests/glib/mapping 1075s # random seed: R02Sdd77c87bd624271704d2689802444885 1075s # test_child_private: received first child signal 1075s # test_child_private: received parent signal 1075s # Child exited with status 0 1075s # test_child_private: received second child signal 1075s ok 3 /mapping/private-child 1075s # End of mapping tests 1075s ok - glib/mapping.test 1075s # Running test: glib/gdbus-export.test 1075s TAP version 14 1075s # random seed: R02S37c6226b7d09cfb26e7481b63e279e1e 1075s 1..7 1075s # Start of gdbus tests 1075s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-export_LRZLK3/gdbus/object-registration/.dirs/home 1075s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-export_LRZLK3/gdbus/object-registration/.dirs/cache 1075s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-export_LRZLK3/gdbus/object-registration/.dirs/system-config1:/tmp/test_gdbus-export_LRZLK3/gdbus/object-registration/.dirs/system-config2 1075s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-export_LRZLK3/gdbus/object-registration/.dirs/config 1075s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-export_LRZLK3/gdbus/object-registration/.dirs/system-data1:/tmp/test_gdbus-export_LRZLK3/gdbus/object-registration/.dirs/system-data2 1075s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-export_LRZLK3/gdbus/object-registration/.dirs/data 1075s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-export_LRZLK3/gdbus/object-registration/.dirs/state 1075s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-export_LRZLK3/gdbus/object-registration/.dirs/runtime 1075s ok 1 /gdbus/object-registration 1075s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-export_LRZLK3/gdbus/object-registration-with-closures/.dirs/home 1075s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-export_LRZLK3/gdbus/object-registration-with-closures/.dirs/cache 1075s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-export_LRZLK3/gdbus/object-registration-with-closures/.dirs/system-config1:/tmp/test_gdbus-export_LRZLK3/gdbus/object-registration-with-closures/.dirs/system-config2 1075s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-export_LRZLK3/gdbus/object-registration-with-closures/.dirs/config 1075s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-export_LRZLK3/gdbus/object-registration-with-closures/.dirs/system-data1:/tmp/test_gdbus-export_LRZLK3/gdbus/object-registration-with-closures/.dirs/system-data2 1075s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-export_LRZLK3/gdbus/object-registration-with-closures/.dirs/data 1075s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-export_LRZLK3/gdbus/object-registration-with-closures/.dirs/state 1075s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-export_LRZLK3/gdbus/object-registration-with-closures/.dirs/runtime 1075s ok 2 /gdbus/object-registration-with-closures 1075s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-export_LRZLK3/gdbus/object-registration-with-closures2/.dirs/home 1075s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-export_LRZLK3/gdbus/object-registration-with-closures2/.dirs/cache 1075s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-export_LRZLK3/gdbus/object-registration-with-closures2/.dirs/system-config1:/tmp/test_gdbus-export_LRZLK3/gdbus/object-registration-with-closures2/.dirs/system-config2 1075s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-export_LRZLK3/gdbus/object-registration-with-closures2/.dirs/config 1075s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-export_LRZLK3/gdbus/object-registration-with-closures2/.dirs/system-data1:/tmp/test_gdbus-export_LRZLK3/gdbus/object-registration-with-closures2/.dirs/system-data2 1075s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-export_LRZLK3/gdbus/object-registration-with-closures2/.dirs/data 1075s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-export_LRZLK3/gdbus/object-registration-with-closures2/.dirs/state 1075s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-export_LRZLK3/gdbus/object-registration-with-closures2/.dirs/runtime 1075s ok 3 /gdbus/object-registration-with-closures2 1075s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-export_LRZLK3/gdbus/registered-interfaces/.dirs/home 1075s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-export_LRZLK3/gdbus/registered-interfaces/.dirs/cache 1075s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-export_LRZLK3/gdbus/registered-interfaces/.dirs/system-config1:/tmp/test_gdbus-export_LRZLK3/gdbus/registered-interfaces/.dirs/system-config2 1075s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-export_LRZLK3/gdbus/registered-interfaces/.dirs/config 1075s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-export_LRZLK3/gdbus/registered-interfaces/.dirs/system-data1:/tmp/test_gdbus-export_LRZLK3/gdbus/registered-interfaces/.dirs/system-data2 1075s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-export_LRZLK3/gdbus/registered-interfaces/.dirs/data 1075s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-export_LRZLK3/gdbus/registered-interfaces/.dirs/state 1075s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-export_LRZLK3/gdbus/registered-interfaces/.dirs/runtime 1075s ok 4 /gdbus/registered-interfaces 1075s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-export_LRZLK3/gdbus/async-properties/.dirs/home 1075s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-export_LRZLK3/gdbus/async-properties/.dirs/cache 1075s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-export_LRZLK3/gdbus/async-properties/.dirs/system-config1:/tmp/test_gdbus-export_LRZLK3/gdbus/async-properties/.dirs/system-config2 1075s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-export_LRZLK3/gdbus/async-properties/.dirs/config 1075s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-export_LRZLK3/gdbus/async-properties/.dirs/system-data1:/tmp/test_gdbus-export_LRZLK3/gdbus/async-properties/.dirs/system-data2 1075s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-export_LRZLK3/gdbus/async-properties/.dirs/data 1075s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-export_LRZLK3/gdbus/async-properties/.dirs/state 1075s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-export_LRZLK3/gdbus/async-properties/.dirs/runtime 1075s ok 5 /gdbus/async-properties 1075s # Start of threaded-unregistration tests 1075s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-export_LRZLK3/gdbus/threaded-unregistration/object/.dirs/home 1075s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-export_LRZLK3/gdbus/threaded-unregistration/object/.dirs/cache 1075s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-export_LRZLK3/gdbus/threaded-unregistration/object/.dirs/system-config1:/tmp/test_gdbus-export_LRZLK3/gdbus/threaded-unregistration/object/.dirs/system-config2 1075s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-export_LRZLK3/gdbus/threaded-unregistration/object/.dirs/config 1075s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-export_LRZLK3/gdbus/threaded-unregistration/object/.dirs/system-data1:/tmp/test_gdbus-export_LRZLK3/gdbus/threaded-unregistration/object/.dirs/system-data2 1075s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-export_LRZLK3/gdbus/threaded-unregistration/object/.dirs/data 1075s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-export_LRZLK3/gdbus/threaded-unregistration/object/.dirs/state 1075s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-export_LRZLK3/gdbus/threaded-unregistration/object/.dirs/runtime 1075s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/2400 1075s # /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 1077s ok 6 /gdbus/threaded-unregistration/object # SKIP Failed to reproduce race (5 iterations with unregistration first, 995 with call first); skipping test 1077s # slow test /gdbus/threaded-unregistration/object executed in 1.84 secs 1077s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-export_LRZLK3/gdbus/threaded-unregistration/subtree/.dirs/home 1077s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-export_LRZLK3/gdbus/threaded-unregistration/subtree/.dirs/cache 1077s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-export_LRZLK3/gdbus/threaded-unregistration/subtree/.dirs/system-config1:/tmp/test_gdbus-export_LRZLK3/gdbus/threaded-unregistration/subtree/.dirs/system-config2 1077s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-export_LRZLK3/gdbus/threaded-unregistration/subtree/.dirs/config 1077s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-export_LRZLK3/gdbus/threaded-unregistration/subtree/.dirs/system-data1:/tmp/test_gdbus-export_LRZLK3/gdbus/threaded-unregistration/subtree/.dirs/system-data2 1077s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-export_LRZLK3/gdbus/threaded-unregistration/subtree/.dirs/data 1077s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-export_LRZLK3/gdbus/threaded-unregistration/subtree/.dirs/state 1077s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-export_LRZLK3/gdbus/threaded-unregistration/subtree/.dirs/runtime 1077s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/2400 1077s # /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 1079s ok 7 /gdbus/threaded-unregistration/subtree # SKIP Failed to reproduce race (3 iterations with unregistration first, 997 with call first); skipping test 1079s # slow test /gdbus/threaded-unregistration/subtree executed in 1.92 secs 1079s # End of threaded-unregistration tests 1079s # End of gdbus tests 1079s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1079s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1079s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1079s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1079s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1079s ok - glib/gdbus-export.test 1079s # Running test: glib/basics-gobject.test 1079s TAP version 14 1079s # random seed: R02Se08cbe1b3f24c7c346bfced254330507 1079s 1..1 1079s # Start of gobject tests 1079s # private data during initialization: 54321 == 54321 1079s # MAIN: emit test-signal: 1079s # ::test_signal default_handler called 1079s # ::test_signal default_handler called 1079s # ::test_signal default_handler called 1079s # signal return: "" 1079s # MAIN: call iface print-string on test and derived object: 1079s # Iface-FOO: "iface-string-from-test-type" from 0x6ed65d0 1079s # Iface-BAR: "iface-string-from-derived-type" from 0x6ed64a8 1079s # chaining: 1079s # Iface-FOO: "iface-string-from-derived-type" from 0x6ed64a8 1079s # private data after initialization: 54321 == 54321 1079s ok 1 /gobject/basics 1079s # End of gobject tests 1079s ok - glib/basics-gobject.test 1079s # Running test: glib/atomic-c-99.test 1079s TAP version 14 1079s # random seed: R02S77b5ecd3f77f3857601296216436dcd8 1079s 1..2 1079s # Start of atomic tests 1079s ok 1 /atomic/types 1079s ok 2 /atomic/threaded 1079s # End of atomic tests 1079s ok - glib/atomic-c-99.test 1079s # Running test: glib/private.test 1079s TAP version 14 1079s # random seed: R02S47a6c0777d8e0083388ccfd5346321fc 1079s 1..8 1079s # Start of thread tests 1079s ok 1 /thread/private1 1080s # Executing: glib/private.test 1080s ok 2 /thread/private2 1080s # slow test /thread/private2 executed in 1.09 secs 1080s ok 3 /thread/private3 1080s ok 4 /thread/staticprivate1 1080s ok 5 /thread/staticprivate2 1080s ok 6 /thread/staticprivate3 1081s ok 7 /thread/staticprivate4 1081s # slow test /thread/staticprivate4 executed in 1.09 secs 1081s ok 8 /thread/staticprivate5 1081s # End of thread tests 1081s ok - glib/private.test 1081s # Running test: glib/gdbus-proxy-threads.test 1081s TAP version 14 1081s # random seed: R02S12ab6f51f2c305b4da4361ca84a491ea 1081s 1..1 1081s # Start of gdbus tests 1081s # Start of proxy tests 1081s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-proxy-threads_55OIK3/gdbus/proxy/vs-threads/.dirs/home 1081s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-proxy-threads_55OIK3/gdbus/proxy/vs-threads/.dirs/cache 1081s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-proxy-threads_55OIK3/gdbus/proxy/vs-threads/.dirs/system-config1:/tmp/test_gdbus-proxy-threads_55OIK3/gdbus/proxy/vs-threads/.dirs/system-config2 1081s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-proxy-threads_55OIK3/gdbus/proxy/vs-threads/.dirs/config 1081s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-proxy-threads_55OIK3/gdbus/proxy/vs-threads/.dirs/system-data1:/tmp/test_gdbus-proxy-threads_55OIK3/gdbus/proxy/vs-threads/.dirs/system-data2 1081s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-proxy-threads_55OIK3/gdbus/proxy/vs-threads/.dirs/data 1081s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-proxy-threads_55OIK3/gdbus/proxy/vs-threads/.dirs/state 1081s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-proxy-threads_55OIK3/gdbus/proxy/vs-threads/.dirs/runtime 1083s ok 1 /gdbus/proxy/vs-threads 1083s # slow test /gdbus/proxy/vs-threads executed in 1.70 secs 1083s # End of proxy tests 1083s # End of gdbus tests 1083s cleaning up pid 4289 1083s ok - glib/gdbus-proxy-threads.test 1083s # Running test: glib/binding.test 1083s TAP version 14 1083s # random seed: R02S2c938184f964a12b569cc2145161877e 1083s 1..19 1083s # Start of binding tests 1083s ok 1 /binding/default 1083s # /binding/canonicalisation summary: Test that bindings set up with non-canonical property names work 1083s ok 2 /binding/canonicalisation 1083s ok 3 /binding/bidirectional 1083s ok 4 /binding/transform 1083s ok 5 /binding/transform-default 1083s ok 6 /binding/transform-closure 1083s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=621782 1083s ok 7 /binding/chain 1083s ok 8 /binding/sync-create 1083s ok 9 /binding/invert-boolean 1083s ok 10 /binding/same-object 1083s ok 11 /binding/unbind 1083s ok 12 /binding/unbind-weak 1083s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/issues/1373 1083s ok 13 /binding/unbind-multiple 1083s ok 14 /binding/fail 1083s ok 15 /binding/interface 1083s # /binding/concurrent-unbind summary: Test that unbinding from multiple threads concurrently works correctly 1083s ok 16 /binding/concurrent-unbind 1083s # /binding/concurrent-finalizing summary: Test that finalizing source/target from multiple threads concurrently works correctly 1083s ok 17 /binding/concurrent-finalizing 1083s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/2676 1083s ok 18 /binding/dispose-source 1083s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/2676 1083s ok 19 /binding/dispose-target 1083s # End of binding tests 1083s ok - glib/binding.test 1083s # Running test: glib/accumulator.test 1083s TAP version 14 1083s # random seed: R02S609bff2faa9bb9a4517928d7f6563c0d 1083s 1..1 1083s # Start of gobject tests 1083s ok 1 /gobject/accumulator 1083s # End of gobject tests 1083s ok - glib/accumulator.test 1083s # Running test: glib/cxx-11.test 1083s TAP version 14 1083s # random seed: R02S35213c8e17551548c62d191c4ef9366e 1083s 1..2 1083s # Start of gtask tests 1083s # 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. 1083s ok 1 /gtask/name 1083s # Start of name tests 1083s # 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. 1083s ok 2 /gtask/name/macro-wrapper 1083s # End of name tests 1083s # End of gtask tests 1083s ok - glib/cxx-11.test 1083s # Running test: glib/struct-info.test 1083s TAP version 14 1083s # random seed: R02Scd555d863edc4bfd6632a13ed81478d6 1083s 1..4 1083s # Start of struct-info tests 1083s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_struct-info_ZUMKK3/struct-info/field-iterators/.dirs/home 1083s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_struct-info_ZUMKK3/struct-info/field-iterators/.dirs/cache 1083s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_struct-info_ZUMKK3/struct-info/field-iterators/.dirs/system-config1:/tmp/test_struct-info_ZUMKK3/struct-info/field-iterators/.dirs/system-config2 1083s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_struct-info_ZUMKK3/struct-info/field-iterators/.dirs/config 1083s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_struct-info_ZUMKK3/struct-info/field-iterators/.dirs/system-data1:/tmp/test_struct-info_ZUMKK3/struct-info/field-iterators/.dirs/system-data2 1083s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_struct-info_ZUMKK3/struct-info/field-iterators/.dirs/data 1083s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_struct-info_ZUMKK3/struct-info/field-iterators/.dirs/state 1083s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_struct-info_ZUMKK3/struct-info/field-iterators/.dirs/runtime 1083s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 1083s # /struct-info/field-iterators summary: Test iterating through a struct's fields with gi_struct_info_get_field() 1083s ok 1 /struct-info/field-iterators 1083s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_struct-info_ZUMKK3/struct-info/sizeof-gvalue/.dirs/home 1083s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_struct-info_ZUMKK3/struct-info/sizeof-gvalue/.dirs/cache 1083s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_struct-info_ZUMKK3/struct-info/sizeof-gvalue/.dirs/system-config1:/tmp/test_struct-info_ZUMKK3/struct-info/sizeof-gvalue/.dirs/system-config2 1083s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_struct-info_ZUMKK3/struct-info/sizeof-gvalue/.dirs/config 1083s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_struct-info_ZUMKK3/struct-info/sizeof-gvalue/.dirs/system-data1:/tmp/test_struct-info_ZUMKK3/struct-info/sizeof-gvalue/.dirs/system-data2 1083s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_struct-info_ZUMKK3/struct-info/sizeof-gvalue/.dirs/data 1083s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_struct-info_ZUMKK3/struct-info/sizeof-gvalue/.dirs/state 1083s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_struct-info_ZUMKK3/struct-info/sizeof-gvalue/.dirs/runtime 1083s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 1083s # /struct-info/sizeof-gvalue summary: Test that gi_struct_info_get_size() reports the correct sizeof GValue 1083s ok 2 /struct-info/sizeof-gvalue 1083s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_struct-info_ZUMKK3/struct-info/is-pointer-for-struct-method-arg/.dirs/home 1083s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_struct-info_ZUMKK3/struct-info/is-pointer-for-struct-method-arg/.dirs/cache 1083s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_struct-info_ZUMKK3/struct-info/is-pointer-for-struct-method-arg/.dirs/system-config1:/tmp/test_struct-info_ZUMKK3/struct-info/is-pointer-for-struct-method-arg/.dirs/system-config2 1083s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_struct-info_ZUMKK3/struct-info/is-pointer-for-struct-method-arg/.dirs/config 1083s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_struct-info_ZUMKK3/struct-info/is-pointer-for-struct-method-arg/.dirs/system-data1:/tmp/test_struct-info_ZUMKK3/struct-info/is-pointer-for-struct-method-arg/.dirs/system-data2 1083s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_struct-info_ZUMKK3/struct-info/is-pointer-for-struct-method-arg/.dirs/data 1083s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_struct-info_ZUMKK3/struct-info/is-pointer-for-struct-method-arg/.dirs/state 1083s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_struct-info_ZUMKK3/struct-info/is-pointer-for-struct-method-arg/.dirs/runtime 1083s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 1083s # /struct-info/is-pointer-for-struct-method-arg summary: Test that a struct method reports the correct type with gi_type_info_is_pointer() 1083s ok - glib/struct-info.test 1083s # Running test: glib/dbus-appinfo.test 1083s ok 3 /struct-info/is-pointer-for-struct-method-arg 1083s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_struct-info_ZUMKK3/struct-info/boxed/.dirs/home 1083s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_struct-info_ZUMKK3/struct-info/boxed/.dirs/cache 1083s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_struct-info_ZUMKK3/struct-info/boxed/.dirs/system-config1:/tmp/test_struct-info_ZUMKK3/struct-info/boxed/.dirs/system-config2 1083s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_struct-info_ZUMKK3/struct-info/boxed/.dirs/config 1083s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_struct-info_ZUMKK3/struct-info/boxed/.dirs/system-data1:/tmp/test_struct-info_ZUMKK3/struct-info/boxed/.dirs/system-data2 1083s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_struct-info_ZUMKK3/struct-info/boxed/.dirs/data 1083s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_struct-info_ZUMKK3/struct-info/boxed/.dirs/state 1083s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_struct-info_ZUMKK3/struct-info/boxed/.dirs/runtime 1083s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 1083s # /struct-info/boxed summary: Test that a boxed struct is recognised as such 1083s ok 4 /struct-info/boxed 1083s # End of struct-info tests 1083s TAP version 14 1083s # random seed: R02S74c61d2b802ee0db683f62b64fb8ae9b 1083s 1..7 1083s # Start of appinfo tests 1083s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_dbus-appinfo_UGYKK3/appinfo/dbusappinfo/.dirs/home 1083s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_dbus-appinfo_UGYKK3/appinfo/dbusappinfo/.dirs/cache 1083s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_dbus-appinfo_UGYKK3/appinfo/dbusappinfo/.dirs/system-config1:/tmp/test_dbus-appinfo_UGYKK3/appinfo/dbusappinfo/.dirs/system-config2 1083s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_dbus-appinfo_UGYKK3/appinfo/dbusappinfo/.dirs/config 1083s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_dbus-appinfo_UGYKK3/appinfo/dbusappinfo/.dirs/system-data1:/tmp/test_dbus-appinfo_UGYKK3/appinfo/dbusappinfo/.dirs/system-data2 1083s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_dbus-appinfo_UGYKK3/appinfo/dbusappinfo/.dirs/data 1083s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_dbus-appinfo_UGYKK3/appinfo/dbusappinfo/.dirs/state 1083s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_dbus-appinfo_UGYKK3/appinfo/dbusappinfo/.dirs/runtime 1083s # GLib-GIO-DEBUG: _g_io_module_get_default: Found default implementation local (GLocalVfs) for ‘gio-vfs’ 1083s ok 1 /appinfo/dbusappinfo 1083s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_dbus-appinfo_UGYKK3/appinfo/flatpak-doc-export/.dirs/home 1083s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_dbus-appinfo_UGYKK3/appinfo/flatpak-doc-export/.dirs/cache 1083s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_dbus-appinfo_UGYKK3/appinfo/flatpak-doc-export/.dirs/system-config1:/tmp/test_dbus-appinfo_UGYKK3/appinfo/flatpak-doc-export/.dirs/system-config2 1083s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_dbus-appinfo_UGYKK3/appinfo/flatpak-doc-export/.dirs/config 1083s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_dbus-appinfo_UGYKK3/appinfo/flatpak-doc-export/.dirs/system-data1:/tmp/test_dbus-appinfo_UGYKK3/appinfo/flatpak-doc-export/.dirs/system-data2 1083s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_dbus-appinfo_UGYKK3/appinfo/flatpak-doc-export/.dirs/data 1083s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_dbus-appinfo_UGYKK3/appinfo/flatpak-doc-export/.dirs/state 1083s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_dbus-appinfo_UGYKK3/appinfo/flatpak-doc-export/.dirs/runtime 1083s # /appinfo/flatpak-doc-export summary: Test that files launched via Flatpak apps are made available via the document portal. 1083s # Acquired a message bus connection 1083s # Acquired the name org.freedesktop.portal.Documents 1083s # GLib-GIO-DEBUG: desktop_file_dirs_lock: Resetting desktop app info dirs from /tmp/test_dbus-appinfo_UGYKK3/appinfo/dbusappinfo/.dirs/config to /tmp/test_dbus-appinfo_UGYKK3/appinfo/flatpak-doc-export/.dirs/config 1083s # on_flatpak_open received file '/document-portal/document-id/org.gtk.test.dbusappinfo.flatpak.desktop' 1083s # fake-document-portal cancelled 1083s ok 2 /appinfo/flatpak-doc-export 1083s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_dbus-appinfo_UGYKK3/appinfo/flatpak-missing-doc-export/.dirs/home 1083s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_dbus-appinfo_UGYKK3/appinfo/flatpak-missing-doc-export/.dirs/cache 1083s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_dbus-appinfo_UGYKK3/appinfo/flatpak-missing-doc-export/.dirs/system-config1:/tmp/test_dbus-appinfo_UGYKK3/appinfo/flatpak-missing-doc-export/.dirs/system-config2 1083s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_dbus-appinfo_UGYKK3/appinfo/flatpak-missing-doc-export/.dirs/config 1083s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_dbus-appinfo_UGYKK3/appinfo/flatpak-missing-doc-export/.dirs/system-data1:/tmp/test_dbus-appinfo_UGYKK3/appinfo/flatpak-missing-doc-export/.dirs/system-data2 1083s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_dbus-appinfo_UGYKK3/appinfo/flatpak-missing-doc-export/.dirs/data 1083s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_dbus-appinfo_UGYKK3/appinfo/flatpak-missing-doc-export/.dirs/state 1083s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_dbus-appinfo_UGYKK3/appinfo/flatpak-missing-doc-export/.dirs/runtime 1083s # /appinfo/flatpak-missing-doc-export summary: Test that files launched via Flatpak apps are made available via the document portal. 1083s # Acquired a message bus connection 1083s # Acquired the name org.freedesktop.portal.Documents 1083s # GLib-GIO-DEBUG: desktop_file_dirs_lock: Resetting desktop app info dirs from /tmp/test_dbus-appinfo_UGYKK3/appinfo/flatpak-doc-export/.dirs/config to /tmp/test_dbus-appinfo_UGYKK3/appinfo/flatpak-missing-doc-export/.dirs/config 1083s # on_flatpak_open received file '/hopefully/an/invalid/path.desktop' 1083s # fake-document-portal cancelled 1083s ok 3 /appinfo/flatpak-missing-doc-export 1083s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_dbus-appinfo_UGYKK3/appinfo/portal-open-file/.dirs/home 1083s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_dbus-appinfo_UGYKK3/appinfo/portal-open-file/.dirs/cache 1083s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_dbus-appinfo_UGYKK3/appinfo/portal-open-file/.dirs/system-config1:/tmp/test_dbus-appinfo_UGYKK3/appinfo/portal-open-file/.dirs/system-config2 1083s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_dbus-appinfo_UGYKK3/appinfo/portal-open-file/.dirs/config 1083s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_dbus-appinfo_UGYKK3/appinfo/portal-open-file/.dirs/system-data1:/tmp/test_dbus-appinfo_UGYKK3/appinfo/portal-open-file/.dirs/system-data2 1083s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_dbus-appinfo_UGYKK3/appinfo/portal-open-file/.dirs/data 1083s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_dbus-appinfo_UGYKK3/appinfo/portal-open-file/.dirs/state 1083s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_dbus-appinfo_UGYKK3/appinfo/portal-open-file/.dirs/runtime 1083s # Acquired a message bus connection 1083s # Acquired the name org.freedesktop.portal.Desktop 1083s # GLib-GIO-DEBUG: desktop_file_dirs_lock: Resetting desktop app info dirs from /tmp/test_dbus-appinfo_UGYKK3/appinfo/flatpak-missing-doc-export/.dirs/config to /tmp/test_dbus-appinfo_UGYKK3/appinfo/portal-open-file/.dirs/config 1083s # Got open file request for file:///usr/libexec/installed-tests/glib/org.gtk.test.dbusappinfo.flatpak.desktop 1083s # Request skeleton exported at /org/freedesktop/portal/desktop/request/1_5/t 1083s # Response emitted 1083s # fake-desktop-portal cancelled 1083s ok 4 /appinfo/portal-open-file 1083s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_dbus-appinfo_UGYKK3/appinfo/portal-open-uri/.dirs/home 1083s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_dbus-appinfo_UGYKK3/appinfo/portal-open-uri/.dirs/cache 1083s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_dbus-appinfo_UGYKK3/appinfo/portal-open-uri/.dirs/system-config1:/tmp/test_dbus-appinfo_UGYKK3/appinfo/portal-open-uri/.dirs/system-config2 1083s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_dbus-appinfo_UGYKK3/appinfo/portal-open-uri/.dirs/config 1083s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_dbus-appinfo_UGYKK3/appinfo/portal-open-uri/.dirs/system-data1:/tmp/test_dbus-appinfo_UGYKK3/appinfo/portal-open-uri/.dirs/system-data2 1083s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_dbus-appinfo_UGYKK3/appinfo/portal-open-uri/.dirs/data 1083s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_dbus-appinfo_UGYKK3/appinfo/portal-open-uri/.dirs/state 1083s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_dbus-appinfo_UGYKK3/appinfo/portal-open-uri/.dirs/runtime 1083s # Acquired a message bus connection 1083s # Acquired the name org.freedesktop.portal.Desktop 1083s # GLib-GIO-DEBUG: desktop_file_dirs_lock: Resetting desktop app info dirs from /tmp/test_dbus-appinfo_UGYKK3/appinfo/portal-open-file/.dirs/config to /tmp/test_dbus-appinfo_UGYKK3/appinfo/portal-open-uri/.dirs/config 1083s # Got open file request for http://example.com 1083s # Request skeleton exported at /org/freedesktop/portal/desktop/request/1_7/t 1083s # Response emitted 1083s # fake-desktop-portal cancelled 1083s ok 5 /appinfo/portal-open-uri 1083s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_dbus-appinfo_UGYKK3/appinfo/portal-open-file-async/.dirs/home 1083s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_dbus-appinfo_UGYKK3/appinfo/portal-open-file-async/.dirs/cache 1083s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_dbus-appinfo_UGYKK3/appinfo/portal-open-file-async/.dirs/system-config1:/tmp/test_dbus-appinfo_UGYKK3/appinfo/portal-open-file-async/.dirs/system-config2 1083s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_dbus-appinfo_UGYKK3/appinfo/portal-open-file-async/.dirs/config 1083s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_dbus-appinfo_UGYKK3/appinfo/portal-open-file-async/.dirs/system-data1:/tmp/test_dbus-appinfo_UGYKK3/appinfo/portal-open-file-async/.dirs/system-data2 1083s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_dbus-appinfo_UGYKK3/appinfo/portal-open-file-async/.dirs/data 1083s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_dbus-appinfo_UGYKK3/appinfo/portal-open-file-async/.dirs/state 1083s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_dbus-appinfo_UGYKK3/appinfo/portal-open-file-async/.dirs/runtime 1083s # Acquired a message bus connection 1083s # Acquired the name org.freedesktop.portal.Desktop 1083s # GLib-GIO-DEBUG: desktop_file_dirs_lock: Resetting desktop app info dirs from /tmp/test_dbus-appinfo_UGYKK3/appinfo/portal-open-uri/.dirs/config to /tmp/test_dbus-appinfo_UGYKK3/appinfo/portal-open-file-async/.dirs/config 1083s # Got open file request for file:///usr/libexec/installed-tests/glib/org.gtk.test.dbusappinfo.flatpak.desktop 1083s # Request skeleton exported at /org/freedesktop/portal/desktop/request/1_9/gio128122798 1083s # Response emitted 1083s # fake-desktop-portal cancelled 1083s ok 6 /appinfo/portal-open-file-async 1083s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_dbus-appinfo_UGYKK3/appinfo/portal-open-uri-async/.dirs/home 1083s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_dbus-appinfo_UGYKK3/appinfo/portal-open-uri-async/.dirs/cache 1083s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_dbus-appinfo_UGYKK3/appinfo/portal-open-uri-async/.dirs/system-config1:/tmp/test_dbus-appinfo_UGYKK3/appinfo/portal-open-uri-async/.dirs/system-config2 1083s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_dbus-appinfo_UGYKK3/appinfo/portal-open-uri-async/.dirs/config 1083s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_dbus-appinfo_UGYKK3/appinfo/portal-open-uri-async/.dirs/system-data1:/tmp/test_dbus-appinfo_UGYKK3/appinfo/portal-open-uri-async/.dirs/system-data2 1083s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_dbus-appinfo_UGYKK3/appinfo/portal-open-uri-async/.dirs/data 1083s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_dbus-appinfo_UGYKK3/appinfo/portal-open-uri-async/.dirs/state 1083s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_dbus-appinfo_UGYKK3/appinfo/portal-open-uri-async/.dirs/runtime 1083s # Acquired a message bus connection 1083s # Acquired the name org.freedesktop.portal.Desktop 1083s # GLib-GIO-DEBUG: desktop_file_dirs_lock: Resetting desktop app info dirs from /tmp/test_dbus-appinfo_UGYKK3/appinfo/portal-open-file-async/.dirs/config to /tmp/test_dbus-appinfo_UGYKK3/appinfo/portal-open-uri-async/.dirs/config 1083s # Got open file request for http://example.com 1083s # Request skeleton exported at /org/freedesktop/portal/desktop/request/1_11/gio400536356 1083s # Response emitted 1083s # fake-desktop-portal cancelled 1083s ok 7 /appinfo/portal-open-uri-async 1083s # End of appinfo tests 1083s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1083s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1083s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1083s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1083s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1083s ok - glib/dbus-appinfo.test 1083s # Running test: glib/win32-appinfo.test 1083s TAP version 14 1083s # random seed: R02S62dd4919bf2d86cd0db8e0ddb54e6250 1083s 1..5 1083s # Start of appinfo tests 1083s ok 1 /appinfo/utf16-strfuncs 1083s ok 2 /appinfo/win32-extract-executable 1083s ok 3 /appinfo/win32-rundll32-fixup 1083s ok 4 /appinfo/win32-parse-filename 1083s ok 5 /appinfo/win32-utf16-conversion-fail 1083s # Start of subprocess tests 1083s # End of subprocess tests 1083s # End of appinfo tests 1083s ok - glib/win32-appinfo.test 1083s # Running test: glib/thread-deprecated.test 1083s TAP version 14 1083s # random seed: R02S17bbf5d9df69136667ca801a3dedbe6f 1083s 1..6 1083s # Start of thread tests 1084s ok 1 /thread/mutex 1084s ok 2 /thread/static-rec-mutex 1085s # Executing: glib/thread-deprecated.test 1088s ok 3 /thread/static-private 1088s # slow test /thread/static-private executed in 4.41 secs 1090s # Executing: glib/thread-deprecated.test 1093s ok 4 /thread/static-rw-lock 1093s # slow test /thread/static-rw-lock executed in 5.00 secs 1093s ok 5 /thread/once 1095s # Executing: glib/thread-deprecated.test 1100s # Executing: glib/thread-deprecated.test 1103s ok - glib/thread-deprecated.test 1103s # Running test: glib/fdo-notification-backend.test 1103s ok 6 /thread/rerun-all 1103s # slow test /thread/rerun-all executed in 10.03 secs 1103s # End of thread tests 1103s TAP version 14 1103s # random seed: R02Sfba4bebaf5a1e546b5c8b5bf7832523f 1103s 1..2 1103s # Start of fdo-notification-backend tests 1103s # Test constructing a GFdoNotificationBackend 1103s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1103s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1103s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1103s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1103s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1103s ok 1 /fdo-notification-backend/construction 1103s # Start of dbus tests 1103s # /fdo-notification-backend/dbus/activate-action summary: Test how the backend handles valid and invalid ActionInvoked signals from the daemon 1103s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1103s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1103s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1103s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1103s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1103s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1103s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1103s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1103s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1103s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1103s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1103s ok 2 /fdo-notification-backend/dbus/activate-action 1103s # End of dbus tests 1103s # End of fdo-notification-backend tests 1103s ok - glib/fdo-notification-backend.test 1103s # Running test: glib/thread-pool-slow.test 1103s TAP version 14 1103s # random seed: R02S77460361ac0ace97e594ac2046ac637a 1103s 1..7 1103s # Start of threadpool tests 1103s ok 1 /threadpool/functions 1104s ok 2 /threadpool/stop-unused 1104s # slow test /threadpool/stop-unused executed in 0.52 secs 1104s ok 3 /threadpool/pools 1104s # [unsorted] ===> pushed new thread with id:13, number of threads:1, unprocessed:1 1104s # [unsorted] ===> pushed new thread with id:65, number of threads:2, unprocessed:2 1104s # [unsorted] ===> pushed new thread with id:25, number of threads:3, unprocessed:3 1104s # [unsorted] ===> pushed new thread with id:57, number of threads:4, unprocessed:4 1104s # [unsorted] ===> pushed new thread with id:96, number of threads:5, unprocessed:5 1104s # [unsorted] ===> pushed new thread with id:72, number of threads:6, unprocessed:5 1104s # [unsorted] ===> pushed new thread with id:3, number of threads:7, unprocessed:2 1104s # [unsorted] ===> pushed new thread with id:4, number of threads:8, unprocessed:2 1104s # [unsorted] ===> pushed new thread with id:16, number of threads:9, unprocessed:2 1104s # [unsorted] ===> pushed new thread with id:30, number of threads:10, unprocessed:3 1104s # [unsorted] ===> pushed new thread with id:95, number of threads:10, unprocessed:2 1104s # [unsorted] ===> pushed new thread with id:33, number of threads:10, unprocessed:2 1104s # [unsorted] ===> pushed new thread with id:9, number of threads:10, unprocessed:3 1104s # [unsorted] ===> pushed new thread with id:14, number of threads:10, unprocessed:4 1104s # [unsorted] ===> pushed new thread with id:79, number of threads:10, unprocessed:5 1104s # [unsorted] ===> pushed new thread with id:12, number of threads:10, unprocessed:6 1104s # [unsorted] ===> pushed new thread with id:100, number of threads:10, unprocessed:7 1104s # [unsorted] ===> pushed new thread with id:28, number of threads:10, unprocessed:8 1104s # [unsorted] ===> pushed new thread with id:29, number of threads:10, unprocessed:9 1104s # [unsorted] ===> pushed new thread with id:58, number of threads:10, unprocessed:10 1104s # [unsorted] ===> pushed new thread with id:86, number of threads:10, unprocessed:11 1104s # [unsorted] ===> pushed new thread with id:28, number of threads:10, unprocessed:12 1104s # [unsorted] ===> pushed new thread with id:16, number of threads:10, unprocessed:13 1104s # [unsorted] ===> pushed new thread with id:98, number of threads:10, unprocessed:14 1104s # [unsorted] ===> pushed new thread with id:99, number of threads:10, unprocessed:15 1104s # [unsorted] ===> pushed new thread with id:30, number of threads:10, unprocessed:16 1104s # [unsorted] ===> pushed new thread with id:55, number of threads:10, unprocessed:17 1104s # [unsorted] ===> pushed new thread with id:68, number of threads:10, unprocessed:18 1104s # [unsorted] ===> pushed new thread with id:40, number of threads:10, unprocessed:19 1104s # [unsorted] ===> pushed new thread with id:83, number of threads:10, unprocessed:20 1104s # [unsorted] ===> pushed new thread with id:98, number of threads:10, unprocessed:21 1104s # [unsorted] ===> pushed new thread with id:26, number of threads:10, unprocessed:22 1104s # [unsorted] ===> pushed new thread with id:95, number of threads:10, unprocessed:23 1104s # [unsorted] ===> pushed new thread with id:100, number of threads:10, unprocessed:24 1104s # [unsorted] ===> pushed new thread with id:13, number of threads:10, unprocessed:25 1104s # [unsorted] ===> pushed new thread with id:71, number of threads:10, unprocessed:26 1104s # [unsorted] ===> pushed new thread with id:21, number of threads:10, unprocessed:27 1104s # [unsorted] ===> pushed new thread with id:62, number of threads:10, unprocessed:28 1104s # [unsorted] ===> pushed new thread with id:32, number of threads:10, unprocessed:29 1104s # [unsorted] ===> pushed new thread with id:55, number of threads:10, unprocessed:30 1104s # [unsorted] ===> pushed new thread with id:24, number of threads:10, unprocessed:31 1104s # [unsorted] ===> pushed new thread with id:36, number of threads:10, unprocessed:32 1104s # [unsorted] ===> pushed new thread with id:77, number of threads:10, unprocessed:33 1104s # [unsorted] ===> pushed new thread with id:41, number of threads:10, unprocessed:34 1104s # [unsorted] ===> pushed new thread with id:49, number of threads:10, unprocessed:35 1104s # [unsorted] ===> pushed new thread with id:17, number of threads:10, unprocessed:36 1104s # [unsorted] ===> pushed new thread with id:8, number of threads:10, unprocessed:37 1104s # [unsorted] ===> pushed new thread with id:6, number of threads:10, unprocessed:38 1104s # [unsorted] ===> pushed new thread with id:39, number of threads:10, unprocessed:39 1104s # [unsorted] ===> pushed new thread with id:23, number of threads:10, unprocessed:40 1104s # [unsorted] ===> pushed new thread with id:96, number of threads:10, unprocessed:41 1104s # [unsorted] ===> pushed new thread with id:48, number of threads:10, unprocessed:42 1104s # [unsorted] ===> pushed new thread with id:87, number of threads:10, unprocessed:43 1104s # [unsorted] ===> pushed new thread with id:54, number of threads:10, unprocessed:44 1104s # [unsorted] ===> pushed new thread with id:11, number of threads:10, unprocessed:45 1104s # [unsorted] ===> pushed new thread with id:78, number of threads:10, unprocessed:46 1104s # [unsorted] ===> pushed new thread with id:92, number of threads:10, unprocessed:47 1104s # [unsorted] ===> pushed new thread with id:15, number of threads:10, unprocessed:48 1104s # [unsorted] ===> pushed new thread with id:44, number of threads:10, unprocessed:49 1104s # [unsorted] ===> pushed new thread with id:10, number of threads:10, unprocessed:50 1104s # [unsorted] ===> pushed new thread with id:18, number of threads:10, unprocessed:51 1104s # [unsorted] ===> pushed new thread with id:78, number of threads:10, unprocessed:52 1104s # [unsorted] ===> pushed new thread with id:48, number of threads:10, unprocessed:53 1104s # [unsorted] ===> pushed new thread with id:46, number of threads:10, unprocessed:54 1104s # [unsorted] ===> pushed new thread with id:19, number of threads:10, unprocessed:55 1104s # [unsorted] ===> pushed new thread with id:10, number of threads:10, unprocessed:56 1104s # [unsorted] ===> pushed new thread with id:92, number of threads:10, unprocessed:57 1104s # [unsorted] ===> pushed new thread with id:89, number of threads:10, unprocessed:58 1104s # [unsorted] ===> pushed new thread with id:59, number of threads:10, unprocessed:59 1104s # [unsorted] ===> pushed new thread with id:98, number of threads:10, unprocessed:60 1104s # [unsorted] ===> pushed new thread with id:93, number of threads:10, unprocessed:61 1104s # [unsorted] ===> pushed new thread with id:99, number of threads:10, unprocessed:62 1104s # [unsorted] ===> pushed new thread with id:34, number of threads:10, unprocessed:63 1104s # [unsorted] ===> pushed new thread with id:59, number of threads:10, unprocessed:64 1104s # [unsorted] ===> pushed new thread with id:9, number of threads:10, unprocessed:65 1104s # [unsorted] ===> pushed new thread with id:60, number of threads:10, unprocessed:66 1104s # [unsorted] ===> pushed new thread with id:88, number of threads:10, unprocessed:67 1104s # [unsorted] ===> pushed new thread with id:22, number of threads:10, unprocessed:68 1104s # [unsorted] ===> pushed new thread with id:12, number of threads:10, unprocessed:69 1104s # [unsorted] ===> pushed new thread with id:83, number of threads:10, unprocessed:70 1104s # [unsorted] ===> pushed new thread with id:81, number of threads:10, unprocessed:71 1104s # [unsorted] ===> pushed new thread with id:97, number of threads:10, unprocessed:72 1104s # [unsorted] ===> pushed new thread with id:32, number of threads:10, unprocessed:73 1104s # [unsorted] ===> pushed new thread with id:72, number of threads:10, unprocessed:74 1104s # [unsorted] ===> pushed new thread with id:99, number of threads:10, unprocessed:75 1104s # [unsorted] ===> pushed new thread with id:64, number of threads:10, unprocessed:76 1104s # [unsorted] ===> pushed new thread with id:51, number of threads:10, unprocessed:77 1104s # [unsorted] ===> pushed new thread with id:2, number of threads:10, unprocessed:78 1104s # [unsorted] ===> pushed new thread with id:56, number of threads:10, unprocessed:79 1104s # [unsorted] ===> pushed new thread with id:28, number of threads:10, unprocessed:80 1104s # [unsorted] ===> pushed new thread with id:39, number of threads:10, unprocessed:81 1104s # [unsorted] ===> pushed new thread with id:37, number of threads:10, unprocessed:82 1104s # [unsorted] ===> pushed new thread with id:82, number of threads:10, unprocessed:83 1104s # [unsorted] ===> pushed new thread with id:63, number of threads:10, unprocessed:84 1104s # [unsorted] ===> pushed new thread with id:30, number of threads:10, unprocessed:85 1104s # [unsorted] ===> pushed new thread with id:66, number of threads:10, unprocessed:86 1104s # [unsorted] ===> pushed new thread with id:100, number of threads:10, unprocessed:87 1104s # [unsorted] ===> pushed new thread with id:62, number of threads:10, unprocessed:88 1104s # [unsorted] ===> pushed new thread with id:39, number of threads:10, unprocessed:89 1104s # [unsorted] ===> pushed new thread with id:90, number of threads:10, unprocessed:90 1104s ok 4 /threadpool/no-sort 1104s # [ sorted] ===> pushed new thread with id:16, number of threads:0, unprocessed:1 1104s # [ sorted] ===> pushed new thread with id:73, number of threads:0, unprocessed:2 1104s # [ sorted] ===> pushed new thread with id:8, number of threads:0, unprocessed:3 1104s # [ sorted] ===> pushed new thread with id:52, number of threads:0, unprocessed:4 1104s # [ sorted] ===> pushed new thread with id:25, number of threads:0, unprocessed:5 1104s # [ sorted] ===> pushed new thread with id:65, number of threads:0, unprocessed:6 1104s # [ sorted] ===> pushed new thread with id:86, number of threads:0, unprocessed:7 1104s # [ sorted] ===> pushed new thread with id:82, number of threads:0, unprocessed:8 1104s # [ sorted] ===> pushed new thread with id:34, number of threads:0, unprocessed:9 1104s # [ sorted] ===> pushed new thread with id:84, number of threads:0, unprocessed:10 1104s # [ sorted] ===> pushed new thread with id:22, number of threads:0, unprocessed:11 1104s # [ sorted] ===> pushed new thread with id:60, number of threads:0, unprocessed:12 1104s # [ sorted] ===> pushed new thread with id:53, number of threads:0, unprocessed:13 1104s # [ sorted] ===> pushed new thread with id:39, number of threads:0, unprocessed:14 1104s # [ sorted] ===> pushed new thread with id:99, number of threads:0, unprocessed:15 1104s # [ sorted] ===> pushed new thread with id:83, number of threads:0, unprocessed:16 1104s # [ sorted] ===> pushed new thread with id:51, number of threads:0, unprocessed:17 1104s # [ sorted] ===> pushed new thread with id:80, number of threads:0, unprocessed:18 1104s # [ sorted] ===> pushed new thread with id:65, number of threads:0, unprocessed:19 1104s # [ sorted] ===> pushed new thread with id:34, number of threads:0, unprocessed:20 1104s # [ sorted] ===> pushed new thread with id:20, number of threads:0, unprocessed:21 1104s # [ sorted] ===> pushed new thread with id:85, number of threads:0, unprocessed:22 1104s # [ sorted] ===> pushed new thread with id:33, number of threads:0, unprocessed:23 1104s # [ sorted] ===> pushed new thread with id:84, number of threads:0, unprocessed:24 1104s # [ sorted] ===> pushed new thread with id:63, number of threads:0, unprocessed:25 1104s # [ sorted] ===> pushed new thread with id:8, number of threads:0, unprocessed:26 1104s # [ sorted] ===> pushed new thread with id:44, number of threads:0, unprocessed:27 1104s # [ sorted] ===> pushed new thread with id:32, number of threads:0, unprocessed:28 1104s # [ sorted] ===> pushed new thread with id:64, number of threads:0, unprocessed:29 1104s # [ sorted] ===> pushed new thread with id:56, number of threads:0, unprocessed:30 1104s # [ sorted] ===> pushed new thread with id:95, number of threads:0, unprocessed:31 1104s # [ sorted] ===> pushed new thread with id:83, number of threads:0, unprocessed:32 1104s # [ sorted] ===> pushed new thread with id:47, number of threads:0, unprocessed:33 1104s # [ sorted] ===> pushed new thread with id:45, number of threads:0, unprocessed:34 1104s # [ sorted] ===> pushed new thread with id:58, number of threads:0, unprocessed:35 1104s # [ sorted] ===> pushed new thread with id:82, number of threads:0, unprocessed:36 1104s # [ sorted] ===> pushed new thread with id:62, number of threads:0, unprocessed:37 1104s # [ sorted] ===> pushed new thread with id:77, number of threads:0, unprocessed:38 1104s # [ sorted] ===> pushed new thread with id:29, number of threads:0, unprocessed:39 1104s # [ sorted] ===> pushed new thread with id:63, number of threads:0, unprocessed:40 1104s # [ sorted] ===> pushed new thread with id:12, number of threads:0, unprocessed:41 1104s # [ sorted] ===> pushed new thread with id:60, number of threads:0, unprocessed:42 1104s # [ sorted] ===> pushed new thread with id:22, number of threads:0, unprocessed:43 1104s # [ sorted] ===> pushed new thread with id:32, number of threads:0, unprocessed:44 1104s # [ sorted] ===> pushed new thread with id:70, number of threads:0, unprocessed:45 1104s # [ sorted] ===> pushed new thread with id:35, number of threads:0, unprocessed:46 1104s # [ sorted] ===> pushed new thread with id:51, number of threads:0, unprocessed:47 1104s # [ sorted] ===> pushed new thread with id:26, number of threads:0, unprocessed:48 1104s # [ sorted] ===> pushed new thread with id:92, number of threads:0, unprocessed:49 1104s # [ sorted] ===> pushed new thread with id:25, number of threads:0, unprocessed:50 1104s # [ sorted] ===> pushed new thread with id:58, number of threads:0, unprocessed:51 1104s # [ sorted] ===> pushed new thread with id:46, number of threads:0, unprocessed:52 1104s # [ sorted] ===> pushed new thread with id:93, number of threads:0, unprocessed:53 1104s # [ sorted] ===> pushed new thread with id:58, number of threads:0, unprocessed:54 1104s # [ sorted] ===> pushed new thread with id:75, number of threads:0, unprocessed:55 1104s # [ sorted] ===> pushed new thread with id:55, number of threads:0, unprocessed:56 1104s # [ sorted] ===> pushed new thread with id:36, number of threads:0, unprocessed:57 1104s # [ sorted] ===> pushed new thread with id:33, number of threads:0, unprocessed:58 1104s # [ sorted] ===> pushed new thread with id:21, number of threads:0, unprocessed:59 1104s # [ sorted] ===> pushed new thread with id:79, number of threads:0, unprocessed:60 1104s # [ sorted] ===> pushed new thread with id:22, number of threads:0, unprocessed:61 1104s # [ sorted] ===> pushed new thread with id:50, number of threads:0, unprocessed:62 1104s # [ sorted] ===> pushed new thread with id:96, number of threads:0, unprocessed:63 1104s # [ sorted] ===> pushed new thread with id:80, number of threads:0, unprocessed:64 1104s # [ sorted] ===> pushed new thread with id:39, number of threads:0, unprocessed:65 1104s # [ sorted] ===> pushed new thread with id:83, number of threads:0, unprocessed:66 1104s # [ sorted] ===> pushed new thread with id:71, number of threads:0, unprocessed:67 1104s # [ sorted] ===> pushed new thread with id:25, number of threads:0, unprocessed:68 1104s # [ sorted] ===> pushed new thread with id:42, number of threads:0, unprocessed:69 1104s # [ sorted] ===> pushed new thread with id:63, number of threads:0, unprocessed:70 1104s # [ sorted] ===> pushed new thread with id:95, number of threads:0, unprocessed:71 1104s # [ sorted] ===> pushed new thread with id:93, number of threads:0, unprocessed:72 1104s # [ sorted] ===> pushed new thread with id:96, number of threads:0, unprocessed:73 1104s # [ sorted] ===> pushed new thread with id:16, number of threads:0, unprocessed:74 1104s # [ sorted] ===> pushed new thread with id:39, number of threads:0, unprocessed:75 1104s # [ sorted] ===> pushed new thread with id:68, number of threads:0, unprocessed:76 1104s # [ sorted] ===> pushed new thread with id:24, number of threads:0, unprocessed:77 1104s # [ sorted] ===> pushed new thread with id:14, number of threads:0, unprocessed:78 1104s # [ sorted] ===> pushed new thread with id:62, number of threads:0, unprocessed:79 1104s # [ sorted] ===> pushed new thread with id:28, number of threads:0, unprocessed:80 1104s # [ sorted] ===> pushed new thread with id:53, number of threads:0, unprocessed:81 1104s # [ sorted] ===> pushed new thread with id:73, number of threads:0, unprocessed:82 1104s # [ sorted] ===> pushed new thread with id:18, number of threads:0, unprocessed:83 1104s # [ sorted] ===> pushed new thread with id:45, number of threads:0, unprocessed:84 1104s # [ sorted] ===> pushed new thread with id:69, number of threads:0, unprocessed:85 1104s # [ sorted] ===> pushed new thread with id:87, number of threads:0, unprocessed:86 1104s # [ sorted] ===> pushed new thread with id:55, number of threads:0, unprocessed:87 1104s # [ sorted] ===> pushed new thread with id:7, number of threads:0, unprocessed:88 1104s # [ sorted] ===> pushed new thread with id:51, number of threads:0, unprocessed:89 1104s # [ sorted] ===> pushed new thread with id:98, number of threads:0, unprocessed:90 1104s # [ sorted] ===> pushed new thread with id:98, number of threads:0, unprocessed:91 1104s # [ sorted] ===> pushed new thread with id:68, number of threads:0, unprocessed:92 1104s # [ sorted] ===> pushed new thread with id:11, number of threads:0, unprocessed:93 1104s # [ sorted] ===> pushed new thread with id:92, number of threads:0, unprocessed:94 1104s # [ sorted] ===> pushed new thread with id:45, number of threads:0, unprocessed:95 1104s # [ sorted] ===> pushed new thread with id:37, number of threads:0, unprocessed:96 1104s # [ sorted] ===> pushed new thread with id:30, number of threads:0, unprocessed:97 1104s # [ sorted] ===> pushed new thread with id:33, number of threads:0, unprocessed:98 1104s # [ sorted] ===> pushed new thread with id:50, number of threads:0, unprocessed:99 1104s # [ sorted] ===> pushed new thread with id:33, number of threads:0, unprocessed:100 1104s # Starting thread pool processing 1104s ok 5 /threadpool/sort 1105s ok 6 /threadpool/stop-unused-multiple 1105s # slow test /threadpool/stop-unused-multiple executed in 0.51 secs 1105s # Pool idle thread count: 0, unprocessed jobs: 40 1105s # Executing: glib/thread-pool-slow.test 1105s # Pool idle thread count: 0, unprocessed jobs: 0 1105s # Pool idle thread count: 0, unprocessed jobs: 0 1106s # Pool idle thread count: 10, unprocessed jobs: 0 1106s # Pool idle thread count: 10, unprocessed jobs: 0 1106s # Pool idle thread count: 10, unprocessed jobs: 0 1106s # Pool idle thread count: 10, unprocessed jobs: 0 1107s # Pool idle thread count: 10, unprocessed jobs: 0 1107s # Pool idle thread count: 10, unprocessed jobs: 0 1107s # Pool idle thread count: 10, unprocessed jobs: 0 1107s # Pool idle thread count: 10, unprocessed jobs: 0 1108s # Pool idle thread count: 10, unprocessed jobs: 0 1108s # Pool idle thread count: 10, unprocessed jobs: 0 1108s # Pool idle thread count: 10, unprocessed jobs: 0 1108s # Pool idle thread count: 10, unprocessed jobs: 0 1109s # Pool idle thread count: 10, unprocessed jobs: 0 1109s # Pool idle thread count: 10, unprocessed jobs: 0 1109s # Pool idle thread count: 10, unprocessed jobs: 0 1109s # Pool idle thread count: 10, unprocessed jobs: 0 1110s # Pool idle thread count: 10, unprocessed jobs: 0 1110s # Pool idle thread count: 10, unprocessed jobs: 0 1110s # Executing: glib/thread-pool-slow.test 1110s # Pool idle thread count: 10, unprocessed jobs: 0 1110s # Pool idle thread count: 10, unprocessed jobs: 0 1111s # Pool idle thread count: 10, unprocessed jobs: 0 1111s # Pool idle thread count: 10, unprocessed jobs: 0 1111s # Pool idle thread count: 10, unprocessed jobs: 0 1111s # Pool idle thread count: 10, unprocessed jobs: 0 1112s # Pool idle thread count: 10, unprocessed jobs: 0 1112s # Pool idle thread count: 10, unprocessed jobs: 0 1112s # Pool idle thread count: 10, unprocessed jobs: 0 1112s # Pool idle thread count: 10, unprocessed jobs: 0 1113s # Pool idle thread count: 10, unprocessed jobs: 0 1113s # Pool idle thread count: 10, unprocessed jobs: 0 1113s # Pool idle thread count: 10, unprocessed jobs: 0 1113s # Pool idle thread count: 10, unprocessed jobs: 0 1114s # Pool idle thread count: 10, unprocessed jobs: 2 1114s # Pool idle thread count: 8, unprocessed jobs: 0 1114s # Pool idle thread count: 8, unprocessed jobs: 0 1114s # Pool idle thread count: 8, unprocessed jobs: 0 1114s # Pool idle thread count: 10, unprocessed jobs: 0 1114s # Pool idle thread count: 10, unprocessed jobs: 0 1115s # Pool idle thread count: 10, unprocessed jobs: 0 1115s # Pool idle thread count: 10, unprocessed jobs: 0 1115s # Executing: glib/thread-pool-slow.test 1115s # Pool idle thread count: 10, unprocessed jobs: 0 1115s # Pool idle thread count: 10, unprocessed jobs: 0 1116s # Pool idle thread count: 2, unprocessed jobs: 0 1116s # Pool idle thread count: 2, unprocessed jobs: 0 1116s # Pool idle thread count: 2, unprocessed jobs: 0 1116s # Pool idle thread count: 2, unprocessed jobs: 0 1117s # Pool idle thread count: 2, unprocessed jobs: 0 1117s # Pool idle thread count: 2, unprocessed jobs: 0 1117s # Pool idle thread count: 2, unprocessed jobs: 0 1117s # Pool idle thread count: 2, unprocessed jobs: 0 1118s # Pool idle thread count: 2, unprocessed jobs: 0 1118s # Pool idle thread count: 2, unprocessed jobs: 0 1118s # Pool idle thread count: 2, unprocessed jobs: 0 1118s # Pool idle thread count: 2, unprocessed jobs: 0 1119s # Pool idle thread count: 2, unprocessed jobs: 0 1119s # Pool idle thread count: 2, unprocessed jobs: 0 1119s # Pool idle thread count: 2, unprocessed jobs: 0 1119s # Pool idle thread count: 2, unprocessed jobs: 0 1120s # Pool idle thread count: 2, unprocessed jobs: 0 1120s # Pool idle thread count: 2, unprocessed jobs: 0 1120s # Executing: glib/thread-pool-slow.test 1120s # Pool idle thread count: 2, unprocessed jobs: 0 1120s # Pool idle thread count: 2, unprocessed jobs: 0 1121s # Pool idle thread count: 2, unprocessed jobs: 0 1121s # Pool idle thread count: 2, unprocessed jobs: 0 1121s # Pool idle thread count: 2, unprocessed jobs: 0 1121s # Pool idle thread count: 2, unprocessed jobs: 0 1122s # Pool idle thread count: 2, unprocessed jobs: 0 1122s # Pool idle thread count: 2, unprocessed jobs: 0 1122s # Pool idle thread count: 2, unprocessed jobs: 0 1122s # Pool idle thread count: 2, unprocessed jobs: 0 1123s # Pool idle thread count: 2, unprocessed jobs: 0 1123s # Pool idle thread count: 2, unprocessed jobs: 0 1123s # Pool idle thread count: 2, unprocessed jobs: 0 1123s # Pool idle thread count: 2, unprocessed jobs: 0 1124s # Pool idle thread count: 2, unprocessed jobs: 0 1124s # Pool idle thread count: 2, unprocessed jobs: 0 1124s ok 7 /threadpool/idle-time 1124s # slow test /threadpool/idle-time executed in 19.54 secs 1124s # End of threadpool tests 1124s ok - glib/thread-pool-slow.test 1124s # Running test: glib/simple-async-result.test 1124s TAP version 14 1124s # random seed: R02S2b6340e2d0f5a2ebcb446111a7a5bd1e 1124s 1..2 1124s # Start of gio tests 1124s # Start of simple-async-result tests 1124s ok 1 /gio/simple-async-result/test 1124s # GLib-GIO-DEBUG: GTask 0xe633dd0 (source object: (nil), source tag: (nil)) finalized without ever returning (using g_task_return_*()). This potentially indicates a bug in the program. 1124s ok 2 /gio/simple-async-result/valid 1124s # End of simple-async-result tests 1124s # End of gio tests 1124s ok - glib/simple-async-result.test 1124s # Running test: glib/testfilemonitor.test 1124s TAP version 14 1124s # random seed: R02Sd342ad75c477ea817c4cd47c6aa5fcac 1124s 1..8 1124s # Start of monitor tests 1124s ok 1 /monitor/atomic-replace # SKIP https://gitlab.gnome.org/GNOME/glib/issues/1634 1124s ok 2 /monitor/file-changes # SKIP https://gitlab.gnome.org/GNOME/glib/issues/1634 1124s ok 3 /monitor/dir-monitor # SKIP https://gitlab.gnome.org/GNOME/glib/issues/1634 1124s ok 4 /monitor/dir-not-existent # SKIP https://gitlab.gnome.org/GNOME/glib/issues/1634 1124s ok 5 /monitor/cross-dir-moves # SKIP https://gitlab.gnome.org/GNOME/glib/issues/1634 1124s ok 6 /monitor/finalize-in-callback # SKIP https://gitlab.gnome.org/GNOME/glib/issues/1634 1124s # /monitor/root summary: Test that GFileMonitor can monitor the root directory. 1124s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/merge_requests/3241 1124s # GLib-GIO-DEBUG: _g_io_module_get_default: Found default implementation local (GLocalVfs) for ‘gio-vfs’ 1124s ok 7 /monitor/root # SKIP https://gitlab.gnome.org/GNOME/glib/issues/1634 1124s # Start of file tests 1124s ok 8 /monitor/file/hard-links # SKIP https://gitlab.gnome.org/GNOME/glib/issues/1634 1124s # End of file tests 1124s # End of monitor tests 1124s ok - glib/testfilemonitor.test 1124s # Running test: glib/mainloop.test 1124s TAP version 14 1124s # random seed: R02S76327ed0458dbe70376d655fd33941f5 1124s 1..47 1124s # Start of maincontext tests 1124s ok 1 /maincontext/basic 1124s # Add same-priority sources: 38 1124s # Find each source: 7 1124s # Remove in random order: 76 1124s ok 2 /maincontext/nsources_same_priority 1124s # Add different-priority sources: 41 1124s # Find each source: 7 1125s # Remove in random order: 86 1125s ok 3 /maincontext/nsources_different_priority 1125s # Executing: glib/mainloop.test 1125s # Add sources from threads: 228 1125s # Remove sources from threads: 298 1125s ok 4 /maincontext/nsources_threadpool 1125s # slow test /maincontext/nsources_threadpool executed in 0.54 secs 1125s ok 5 /maincontext/source_finalization 1125s # /maincontext/idle-once summary: Test g_idle_add_once() works 1125s ok 6 /maincontext/idle-once 1125s # /maincontext/timeout-once summary: Test g_timeout_add_once() works 1125s ok 7 /maincontext/timeout-once 1125s # /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. 1125s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/issues/3725 1125s ok 8 /maincontext/context-ref-in-source-callbackfuncs-unref 1125s # Start of source_finalization_from_source tests 1125s # /maincontext/source_finalization_from_source/0 summary: Tests if freeing a GSource as part of another GSource during main context destruction works. 1125s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/merge_requests/1353 1125s ok 9 /maincontext/source_finalization_from_source/0 1125s # /maincontext/source_finalization_from_source/1 summary: Tests if freeing a GSource as part of another GSource during main context destruction works. 1125s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/merge_requests/1353 1125s ok 10 /maincontext/source_finalization_from_source/1 1125s # /maincontext/source_finalization_from_source/2 summary: Tests if freeing a GSource as part of another GSource during main context destruction works. 1125s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/merge_requests/1353 1125s ok 11 /maincontext/source_finalization_from_source/2 1125s # /maincontext/source_finalization_from_source/3 summary: Tests if freeing a GSource as part of another GSource during main context destruction works. 1125s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/merge_requests/1353 1125s ok 12 /maincontext/source_finalization_from_source/3 1125s # /maincontext/source_finalization_from_source/4 summary: Tests if freeing a GSource as part of another GSource during main context destruction works. 1125s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/merge_requests/1353 1125s ok 13 /maincontext/source_finalization_from_source/4 1125s # /maincontext/source_finalization_from_source/5 summary: Tests if freeing a GSource as part of another GSource during main context destruction works. 1125s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/merge_requests/1353 1125s ok 14 /maincontext/source_finalization_from_source/5 1125s # /maincontext/source_finalization_from_source/6 summary: Tests if freeing a GSource as part of another GSource during main context destruction works. 1125s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/merge_requests/1353 1125s ok 15 /maincontext/source_finalization_from_source/6 1125s # /maincontext/source_finalization_from_source/7 summary: Tests if freeing a GSource as part of another GSource during main context destruction works. 1125s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/merge_requests/1353 1125s ok 16 /maincontext/source_finalization_from_source/7 1125s # /maincontext/source_finalization_from_source/8 summary: Tests if freeing a GSource as part of another GSource during main context destruction works. 1125s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/merge_requests/1353 1125s ok 17 /maincontext/source_finalization_from_source/8 1125s # /maincontext/source_finalization_from_source/9 summary: Tests if freeing a GSource as part of another GSource during main context destruction works. 1125s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/merge_requests/1353 1125s ok 18 /maincontext/source_finalization_from_source/9 1125s # End of source_finalization_from_source tests 1125s # Start of source_finalization_from_dispatch tests 1125s # /maincontext/source_finalization_from_dispatch/0 summary: Tests if freeing a GSource as part of another GSource during main context iteration works. 1125s ok 19 /maincontext/source_finalization_from_dispatch/0 1125s # /maincontext/source_finalization_from_dispatch/1 summary: Tests if freeing a GSource as part of another GSource during main context iteration works. 1125s ok 20 /maincontext/source_finalization_from_dispatch/1 1125s # /maincontext/source_finalization_from_dispatch/2 summary: Tests if freeing a GSource as part of another GSource during main context iteration works. 1125s ok 21 /maincontext/source_finalization_from_dispatch/2 1125s # End of source_finalization_from_dispatch tests 1125s # End of maincontext tests 1125s # Start of mainloop tests 1125s ok 22 /mainloop/basic 1125s ok 23 /mainloop/timeouts # SKIP Not running timing heavy test 1125s ok 24 /mainloop/priorities 1126s ok 25 /mainloop/invoke 1126s # slow test /mainloop/invoke executed in 0.50 secs 1126s ok 26 /mainloop/child_sources # SKIP Not reliable on older ARM hardware 1126s ok 27 /mainloop/recursive_child_sources # SKIP Not reliable on older ARM hardware 1126s ok 28 /mainloop/recursive_loop_child_sources 1126s ok 29 /mainloop/swapping_child_sources 1126s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=701283 1126s ok 30 /mainloop/blocked_child_sources 1127s ok 31 /mainloop/source_time 1127s # slow test /mainloop/source_time executed in 1.00 secs 1127s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=687098 1127s ok 32 /mainloop/overflow 1127s ok 33 /mainloop/ready-time 1127s # slow test /mainloop/ready-time executed in 0.50 secs 1127s ok 34 /mainloop/wakeup 1127s ok 35 /mainloop/remove-invalid 1127s ok 36 /mainloop/unref-while-pending 1128s ok 37 /mainloop/unix-fd 1128s # slow test /mainloop/unix-fd executed in 0.89 secs 1128s ok 38 /mainloop/unix-fd-source 1128s ok 39 /mainloop/source-unix-fd-api 1128s ok 40 /mainloop/wait 1128s ok 41 /mainloop/unix-file-poll 1128s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/1592 1128s ok 42 /mainloop/unix-fd-priority 1128s ok 43 /mainloop/nfds 1128s ok 44 /mainloop/steal-fd 1130s # Executing: glib/mainloop.test 1131s ok 45 /mainloop/simultaneous-source-context-destruction 1131s # slow test /mainloop/simultaneous-source-context-destruction executed in 2.45 secs 1131s # Start of ownerless-polling tests 1131s ok 46 /mainloop/ownerless-polling/attach-first 1131s ok 47 /mainloop/ownerless-polling/pop-first 1131s # End of ownerless-polling tests 1131s # End of mainloop tests 1131s ok - glib/mainloop.test 1131s # Running test: glib/data-output-stream.test 1131s TAP version 14 1131s # random seed: R02S7e041aa8bf9ac5706af51a6c884e59c8 1131s 1..7 1131s # Start of data-output-stream tests 1131s ok 1 /data-output-stream/basic 1131s ok 2 /data-output-stream/write-lines-LF 1131s ok 3 /data-output-stream/write-lines-CR 1131s ok 4 /data-output-stream/write-lines-CR-LF 1131s ok 5 /data-output-stream/write-int 1131s ok 6 /data-output-stream/seek 1131s ok 7 /data-output-stream/truncate 1131s # End of data-output-stream tests 1131s ok - glib/data-output-stream.test 1131s # Running test: glib/io-channel.test 1131s TAP version 14 1131s # random seed: R02Sd2f1061c0ccfca7f1d1f58fd7a8dc782 1131s 1..2 1131s # Start of io-channel tests 1131s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_io-channel_XAE6J3/io-channel/read-write/.dirs/home 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_io-channel_XAE6J3/io-channel/read-write/.dirs/cache 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_io-channel_XAE6J3/io-channel/read-write/.dirs/system-config1:/tmp/test_io-channel_XAE6J3/io-channel/read-write/.dirs/system-config2 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_io-channel_XAE6J3/io-channel/read-write/.dirs/config 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_io-channel_XAE6J3/io-channel/read-write/.dirs/system-data1:/tmp/test_io-channel_XAE6J3/io-channel/read-write/.dirs/system-data2 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_io-channel_XAE6J3/io-channel/read-write/.dirs/data 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_io-channel_XAE6J3/io-channel/read-write/.dirs/state 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_io-channel_XAE6J3/io-channel/read-write/.dirs/runtime 1131s ok - glib/io-channel.test 1131s # Running test: glib/utils-isolated.test 1131s ok - glib/utils-isolated.test 1131s # Running test: glib/utf8-misc.test 1131s ok - glib/utf8-misc.test 1131s # Running test: glib/bookmarkfile.test 1131s # Line one 1131s # 1131s # Line two 1131s # 1131s # Line three 1131s # 1131s # /* Hello */ 1131s # 1131s # \x1234\x567890\x6666 1131s # 1131s # read 62 bytes, wrote 62 bytes 1131s ok 1 /io-channel/read-write 1131s # Start of read-line tests 1131s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_io-channel_XAE6J3/io-channel/read-line/embedded-nuls/.dirs/home 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_io-channel_XAE6J3/io-channel/read-line/embedded-nuls/.dirs/cache 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_io-channel_XAE6J3/io-channel/read-line/embedded-nuls/.dirs/system-config1:/tmp/test_io-channel_XAE6J3/io-channel/read-line/embedded-nuls/.dirs/system-config2 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_io-channel_XAE6J3/io-channel/read-line/embedded-nuls/.dirs/config 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_io-channel_XAE6J3/io-channel/read-line/embedded-nuls/.dirs/system-data1:/tmp/test_io-channel_XAE6J3/io-channel/read-line/embedded-nuls/.dirs/system-data2 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_io-channel_XAE6J3/io-channel/read-line/embedded-nuls/.dirs/data 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_io-channel_XAE6J3/io-channel/read-line/embedded-nuls/.dirs/state 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_io-channel_XAE6J3/io-channel/read-line/embedded-nuls/.dirs/runtime 1131s # /io-channel/read-line/embedded-nuls summary: Test that reading a line containing embedded nuls works when using non-standard line terminators. 1131s ok 2 /io-channel/read-line/embedded-nuls 1131s # End of read-line tests 1131s # End of io-channel tests 1131s TAP version 14 1131s # random seed: R02S26aa728dd02b59aafc573e976b46bb61 1131s 1..11 1131s # Start of utils-isolated tests 1131s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils-isolated_MLM6J3/utils-isolated/tmp-dir/.dirs/home 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-isolated_MLM6J3/utils-isolated/tmp-dir/.dirs/cache 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-isolated_MLM6J3/utils-isolated/tmp-dir/.dirs/system-config1:/tmp/test_utils-isolated_MLM6J3/utils-isolated/tmp-dir/.dirs/system-config2 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-isolated_MLM6J3/utils-isolated/tmp-dir/.dirs/config 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-isolated_MLM6J3/utils-isolated/tmp-dir/.dirs/system-data1:/tmp/test_utils-isolated_MLM6J3/utils-isolated/tmp-dir/.dirs/system-data2 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-isolated_MLM6J3/utils-isolated/tmp-dir/.dirs/data 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-isolated_MLM6J3/utils-isolated/tmp-dir/.dirs/state 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-isolated_MLM6J3/utils-isolated/tmp-dir/.dirs/runtime 1131s ok 1 /utils-isolated/tmp-dir 1131s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils-isolated_MLM6J3/utils-isolated/home-dir/.dirs/home 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-isolated_MLM6J3/utils-isolated/home-dir/.dirs/cache 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-isolated_MLM6J3/utils-isolated/home-dir/.dirs/system-config1:/tmp/test_utils-isolated_MLM6J3/utils-isolated/home-dir/.dirs/system-config2 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-isolated_MLM6J3/utils-isolated/home-dir/.dirs/config 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-isolated_MLM6J3/utils-isolated/home-dir/.dirs/system-data1:/tmp/test_utils-isolated_MLM6J3/utils-isolated/home-dir/.dirs/system-data2 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-isolated_MLM6J3/utils-isolated/home-dir/.dirs/data 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-isolated_MLM6J3/utils-isolated/home-dir/.dirs/state 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-isolated_MLM6J3/utils-isolated/home-dir/.dirs/runtime 1131s ok 2 /utils-isolated/home-dir 1131s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils-isolated_MLM6J3/utils-isolated/user-cache-dir/.dirs/home 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-isolated_MLM6J3/utils-isolated/user-cache-dir/.dirs/cache 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-isolated_MLM6J3/utils-isolated/user-cache-dir/.dirs/system-config1:/tmp/test_utils-isolated_MLM6J3/utils-isolated/user-cache-dir/.dirs/system-config2 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-isolated_MLM6J3/utils-isolated/user-cache-dir/.dirs/config 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-isolated_MLM6J3/utils-isolated/user-cache-dir/.dirs/system-data1:/tmp/test_utils-isolated_MLM6J3/utils-isolated/user-cache-dir/.dirs/system-data2 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-isolated_MLM6J3/utils-isolated/user-cache-dir/.dirs/data 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-isolated_MLM6J3/utils-isolated/user-cache-dir/.dirs/state 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-isolated_MLM6J3/utils-isolated/user-cache-dir/.dirs/runtime 1131s ok 3 /utils-isolated/user-cache-dir 1131s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils-isolated_MLM6J3/utils-isolated/system-config-dirs/.dirs/home 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-isolated_MLM6J3/utils-isolated/system-config-dirs/.dirs/cache 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-isolated_MLM6J3/utils-isolated/system-config-dirs/.dirs/system-config1:/tmp/test_utils-isolated_MLM6J3/utils-isolated/system-config-dirs/.dirs/system-config2 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-isolated_MLM6J3/utils-isolated/system-config-dirs/.dirs/config 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-isolated_MLM6J3/utils-isolated/system-config-dirs/.dirs/system-data1:/tmp/test_utils-isolated_MLM6J3/utils-isolated/system-config-dirs/.dirs/system-data2 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-isolated_MLM6J3/utils-isolated/system-config-dirs/.dirs/data 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-isolated_MLM6J3/utils-isolated/system-config-dirs/.dirs/state 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-isolated_MLM6J3/utils-isolated/system-config-dirs/.dirs/runtime 1131s ok 4 /utils-isolated/system-config-dirs 1131s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils-isolated_MLM6J3/utils-isolated/user-config-dir/.dirs/home 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-isolated_MLM6J3/utils-isolated/user-config-dir/.dirs/cache 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-isolated_MLM6J3/utils-isolated/user-config-dir/.dirs/system-config1:/tmp/test_utils-isolated_MLM6J3/utils-isolated/user-config-dir/.dirs/system-config2 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-isolated_MLM6J3/utils-isolated/user-config-dir/.dirs/config 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-isolated_MLM6J3/utils-isolated/user-config-dir/.dirs/system-data1:/tmp/test_utils-isolated_MLM6J3/utils-isolated/user-config-dir/.dirs/system-data2 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-isolated_MLM6J3/utils-isolated/user-config-dir/.dirs/data 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-isolated_MLM6J3/utils-isolated/user-config-dir/.dirs/state 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-isolated_MLM6J3/utils-isolated/user-config-dir/.dirs/runtime 1131s ok 5 /utils-isolated/user-config-dir 1131s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils-isolated_MLM6J3/utils-isolated/system-data-dirs/.dirs/home 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-isolated_MLM6J3/utils-isolated/system-data-dirs/.dirs/cache 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-isolated_MLM6J3/utils-isolated/system-data-dirs/.dirs/system-config1:/tmp/test_utils-isolated_MLM6J3/utils-isolated/system-data-dirs/.dirs/system-config2 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-isolated_MLM6J3/utils-isolated/system-data-dirs/.dirs/config 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-isolated_MLM6J3/utils-isolated/system-data-dirs/.dirs/system-data1:/tmp/test_utils-isolated_MLM6J3/utils-isolated/system-data-dirs/.dirs/system-data2 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-isolated_MLM6J3/utils-isolated/system-data-dirs/.dirs/data 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-isolated_MLM6J3/utils-isolated/system-data-dirs/.dirs/state 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-isolated_MLM6J3/utils-isolated/system-data-dirs/.dirs/runtime 1131s ok 6 /utils-isolated/system-data-dirs 1131s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils-isolated_MLM6J3/utils-isolated/user-data-dir/.dirs/home 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-isolated_MLM6J3/utils-isolated/user-data-dir/.dirs/cache 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-isolated_MLM6J3/utils-isolated/user-data-dir/.dirs/system-config1:/tmp/test_utils-isolated_MLM6J3/utils-isolated/user-data-dir/.dirs/system-config2 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-isolated_MLM6J3/utils-isolated/user-data-dir/.dirs/config 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-isolated_MLM6J3/utils-isolated/user-data-dir/.dirs/system-data1:/tmp/test_utils-isolated_MLM6J3/utils-isolated/user-data-dir/.dirs/system-data2 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-isolated_MLM6J3/utils-isolated/user-data-dir/.dirs/data 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-isolated_MLM6J3/utils-isolated/user-data-dir/.dirs/state 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-isolated_MLM6J3/utils-isolated/user-data-dir/.dirs/runtime 1131s ok 7 /utils-isolated/user-data-dir 1131s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils-isolated_MLM6J3/utils-isolated/user-state-dir/.dirs/home 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-isolated_MLM6J3/utils-isolated/user-state-dir/.dirs/cache 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-isolated_MLM6J3/utils-isolated/user-state-dir/.dirs/system-config1:/tmp/test_utils-isolated_MLM6J3/utils-isolated/user-state-dir/.dirs/system-config2 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-isolated_MLM6J3/utils-isolated/user-state-dir/.dirs/config 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-isolated_MLM6J3/utils-isolated/user-state-dir/.dirs/system-data1:/tmp/test_utils-isolated_MLM6J3/utils-isolated/user-state-dir/.dirs/system-data2 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-isolated_MLM6J3/utils-isolated/user-state-dir/.dirs/data 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-isolated_MLM6J3/utils-isolated/user-state-dir/.dirs/state 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-isolated_MLM6J3/utils-isolated/user-state-dir/.dirs/runtime 1131s ok 8 /utils-isolated/user-state-dir 1131s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils-isolated_MLM6J3/utils-isolated/user-runtime-dir/.dirs/home 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-isolated_MLM6J3/utils-isolated/user-runtime-dir/.dirs/cache 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-isolated_MLM6J3/utils-isolated/user-runtime-dir/.dirs/system-config1:/tmp/test_utils-isolated_MLM6J3/utils-isolated/user-runtime-dir/.dirs/system-config2 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-isolated_MLM6J3/utils-isolated/user-runtime-dir/.dirs/config 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-isolated_MLM6J3/utils-isolated/user-runtime-dir/.dirs/system-data1:/tmp/test_utils-isolated_MLM6J3/utils-isolated/user-runtime-dir/.dirs/system-data2 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-isolated_MLM6J3/utils-isolated/user-runtime-dir/.dirs/data 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-isolated_MLM6J3/utils-isolated/user-runtime-dir/.dirs/state 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-isolated_MLM6J3/utils-isolated/user-runtime-dir/.dirs/runtime 1131s ok 9 /utils-isolated/user-runtime-dir 1131s # Start of cleanup tests 1131s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils-isolated_MLM6J3/utils-isolated/cleanup/handles-errors/.dirs/home 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-isolated_MLM6J3/utils-isolated/cleanup/handles-errors/.dirs/cache 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-isolated_MLM6J3/utils-isolated/cleanup/handles-errors/.dirs/system-config1:/tmp/test_utils-isolated_MLM6J3/utils-isolated/cleanup/handles-errors/.dirs/system-config2 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-isolated_MLM6J3/utils-isolated/cleanup/handles-errors/.dirs/config 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-isolated_MLM6J3/utils-isolated/cleanup/handles-errors/.dirs/system-data1:/tmp/test_utils-isolated_MLM6J3/utils-isolated/cleanup/handles-errors/.dirs/system-data2 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-isolated_MLM6J3/utils-isolated/cleanup/handles-errors/.dirs/data 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-isolated_MLM6J3/utils-isolated/cleanup/handles-errors/.dirs/state 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-isolated_MLM6J3/utils-isolated/cleanup/handles-errors/.dirs/runtime 1131s Unable to clean up temporary directory /tmp/test_utils-isolated_MLM6J3/utils-isolated/cleanup/handles-errors/.dirs/runtime: Directory not empty 1131s Unable to clean up temporary directory /tmp/test_utils-isolated_MLM6J3/utils-isolated/cleanup/handles-errors/.dirs: Directory not empty 1131s Unable to clean up temporary directory /tmp/test_utils-isolated_MLM6J3/utils-isolated/cleanup/handles-errors: Directory not empty 1131s ok 10 /utils-isolated/cleanup/handles-errors 1131s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils-isolated_MLM6J3/utils-isolated/cleanup/doesnt-follow-symlinks/.dirs/home 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-isolated_MLM6J3/utils-isolated/cleanup/doesnt-follow-symlinks/.dirs/cache 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-isolated_MLM6J3/utils-isolated/cleanup/doesnt-follow-symlinks/.dirs/system-config1:/tmp/test_utils-isolated_MLM6J3/utils-isolated/cleanup/doesnt-follow-symlinks/.dirs/system-config2 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-isolated_MLM6J3/utils-isolated/cleanup/doesnt-follow-symlinks/.dirs/config 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-isolated_MLM6J3/utils-isolated/cleanup/doesnt-follow-symlinks/.dirs/system-data1:/tmp/test_utils-isolated_MLM6J3/utils-isolated/cleanup/doesnt-follow-symlinks/.dirs/system-data2 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-isolated_MLM6J3/utils-isolated/cleanup/doesnt-follow-symlinks/.dirs/data 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-isolated_MLM6J3/utils-isolated/cleanup/doesnt-follow-symlinks/.dirs/state 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-isolated_MLM6J3/utils-isolated/cleanup/doesnt-follow-symlinks/.dirs/runtime 1131s Unable to clean up temporary directory /tmp/test_utils-isolated_MLM6J3/utils-isolated/cleanup/doesnt-follow-symlinks: No such file or directory 1131s ok 11 /utils-isolated/cleanup/doesnt-follow-symlinks 1131s # End of cleanup tests 1131s # End of utils-isolated tests 1131s TAP version 14 1131s # random seed: R02Sa2419a9588831ddf4b525e7b8cf5d12b 1131s 1..7 1131s # Start of utf8 tests 1131s ok 1 /utf8/strlen 1131s ok 2 /utf8/strncpy 1131s ok 3 /utf8/strrchr 1131s ok 4 /utf8/reverse 1131s ok 5 /utf8/substring 1131s ok 6 /utf8/make-valid 1131s ok 7 /utf8/truncate-middle 1131s # End of utf8 tests 1131s TAP version 14 1131s # random seed: R02S77b4b4b8759d52f4ca16cdc16049647d 1131s 1..96 1131s # Start of bookmarks tests 1131s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_PBK7J3/bookmarks/load-from-data-dirs/.dirs/home 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_PBK7J3/bookmarks/load-from-data-dirs/.dirs/cache 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_PBK7J3/bookmarks/load-from-data-dirs/.dirs/system-config1:/tmp/test_bookmarkfile_PBK7J3/bookmarks/load-from-data-dirs/.dirs/system-config2 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_PBK7J3/bookmarks/load-from-data-dirs/.dirs/config 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_PBK7J3/bookmarks/load-from-data-dirs/.dirs/system-data1:/tmp/test_bookmarkfile_PBK7J3/bookmarks/load-from-data-dirs/.dirs/system-data2 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_PBK7J3/bookmarks/load-from-data-dirs/.dirs/data 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_PBK7J3/bookmarks/load-from-data-dirs/.dirs/state 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_PBK7J3/bookmarks/load-from-data-dirs/.dirs/runtime 1131s ok 1 /bookmarks/load-from-data-dirs 1131s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_PBK7J3/bookmarks/to-file/.dirs/home 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_PBK7J3/bookmarks/to-file/.dirs/cache 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_PBK7J3/bookmarks/to-file/.dirs/system-config1:/tmp/test_bookmarkfile_PBK7J3/bookmarks/to-file/.dirs/system-config2 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_PBK7J3/bookmarks/to-file/.dirs/config 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_PBK7J3/bookmarks/to-file/.dirs/system-data1:/tmp/test_bookmarkfile_PBK7J3/bookmarks/to-file/.dirs/system-data2 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_PBK7J3/bookmarks/to-file/.dirs/data 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_PBK7J3/bookmarks/to-file/.dirs/state 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_PBK7J3/bookmarks/to-file/.dirs/runtime 1131s # Roundtrip from newly created bookmark file /tmp/test_bookmarkfile_PBK7J3/bookmarkfile-test-66K7J3.xbel 1131s # Roundtrip from a valid bookmark file 1131s ok 2 /bookmarks/to-file 1131s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_PBK7J3/bookmarks/move-item/.dirs/home 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_PBK7J3/bookmarks/move-item/.dirs/cache 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_PBK7J3/bookmarks/move-item/.dirs/system-config1:/tmp/test_bookmarkfile_PBK7J3/bookmarks/move-item/.dirs/system-config2 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_PBK7J3/bookmarks/move-item/.dirs/config 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_PBK7J3/bookmarks/move-item/.dirs/system-data1:/tmp/test_bookmarkfile_PBK7J3/bookmarks/move-item/.dirs/system-data2 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_PBK7J3/bookmarks/move-item/.dirs/data 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_PBK7J3/bookmarks/move-item/.dirs/state 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_PBK7J3/bookmarks/move-item/.dirs/runtime 1131s ok 3 /bookmarks/move-item 1131s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_PBK7J3/bookmarks/corner-cases/.dirs/home 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_PBK7J3/bookmarks/corner-cases/.dirs/cache 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_PBK7J3/bookmarks/corner-cases/.dirs/system-config1:/tmp/test_bookmarkfile_PBK7J3/bookmarks/corner-cases/.dirs/system-config2 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_PBK7J3/bookmarks/corner-cases/.dirs/config 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_PBK7J3/bookmarks/corner-cases/.dirs/system-data1:/tmp/test_bookmarkfile_PBK7J3/bookmarks/corner-cases/.dirs/system-data2 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_PBK7J3/bookmarks/corner-cases/.dirs/data 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_PBK7J3/bookmarks/corner-cases/.dirs/state 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_PBK7J3/bookmarks/corner-cases/.dirs/runtime 1131s ok 4 /bookmarks/corner-cases 1131s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_PBK7J3/bookmarks/misc/.dirs/home 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_PBK7J3/bookmarks/misc/.dirs/cache 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_PBK7J3/bookmarks/misc/.dirs/system-config1:/tmp/test_bookmarkfile_PBK7J3/bookmarks/misc/.dirs/system-config2 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_PBK7J3/bookmarks/misc/.dirs/config 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_PBK7J3/bookmarks/misc/.dirs/system-data1:/tmp/test_bookmarkfile_PBK7J3/bookmarks/misc/.dirs/system-data2 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_PBK7J3/bookmarks/misc/.dirs/data 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_PBK7J3/bookmarks/misc/.dirs/state 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_PBK7J3/bookmarks/misc/.dirs/runtime 1131s ok 5 /bookmarks/misc 1131s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_PBK7J3/bookmarks/deprecated/.dirs/home 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_PBK7J3/bookmarks/deprecated/.dirs/cache 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_PBK7J3/bookmarks/deprecated/.dirs/system-config1:/tmp/test_bookmarkfile_PBK7J3/bookmarks/deprecated/.dirs/system-config2 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_PBK7J3/bookmarks/deprecated/.dirs/config 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_PBK7J3/bookmarks/deprecated/.dirs/system-data1:/tmp/test_bookmarkfile_PBK7J3/bookmarks/deprecated/.dirs/system-data2 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_PBK7J3/bookmarks/deprecated/.dirs/data 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_PBK7J3/bookmarks/deprecated/.dirs/state 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_PBK7J3/bookmarks/deprecated/.dirs/runtime 1131s ok 6 /bookmarks/deprecated 1131s # Start of parse tests 1131s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_PBK7J3/bookmarks/parse/fail-01.xbel/.dirs/home 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_PBK7J3/bookmarks/parse/fail-01.xbel/.dirs/cache 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_PBK7J3/bookmarks/parse/fail-01.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_PBK7J3/bookmarks/parse/fail-01.xbel/.dirs/system-config2 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_PBK7J3/bookmarks/parse/fail-01.xbel/.dirs/config 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_PBK7J3/bookmarks/parse/fail-01.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_PBK7J3/bookmarks/parse/fail-01.xbel/.dirs/system-data2 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_PBK7J3/bookmarks/parse/fail-01.xbel/.dirs/data 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_PBK7J3/bookmarks/parse/fail-01.xbel/.dirs/state 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_PBK7J3/bookmarks/parse/fail-01.xbel/.dirs/runtime 1131s ok 7 /bookmarks/parse/fail-01.xbel 1131s ok - glib/bookmarkfile.test 1131s # Running test: glib/scannerapi.test 1131s ok - glib/scannerapi.test 1131s # Running test: glib/socket-service.test 1131s ok - glib/socket-service.test 1131s # Running test: glib/gdbus-test-codegen.test 1131s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_PBK7J3/bookmarks/parse/fail-02.xbel/.dirs/home 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_PBK7J3/bookmarks/parse/fail-02.xbel/.dirs/cache 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_PBK7J3/bookmarks/parse/fail-02.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_PBK7J3/bookmarks/parse/fail-02.xbel/.dirs/system-config2 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_PBK7J3/bookmarks/parse/fail-02.xbel/.dirs/config 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_PBK7J3/bookmarks/parse/fail-02.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_PBK7J3/bookmarks/parse/fail-02.xbel/.dirs/system-data2 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_PBK7J3/bookmarks/parse/fail-02.xbel/.dirs/data 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_PBK7J3/bookmarks/parse/fail-02.xbel/.dirs/state 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_PBK7J3/bookmarks/parse/fail-02.xbel/.dirs/runtime 1131s ok 8 /bookmarks/parse/fail-02.xbel 1131s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_PBK7J3/bookmarks/parse/fail-03.xbel/.dirs/home 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_PBK7J3/bookmarks/parse/fail-03.xbel/.dirs/cache 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_PBK7J3/bookmarks/parse/fail-03.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_PBK7J3/bookmarks/parse/fail-03.xbel/.dirs/system-config2 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_PBK7J3/bookmarks/parse/fail-03.xbel/.dirs/config 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_PBK7J3/bookmarks/parse/fail-03.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_PBK7J3/bookmarks/parse/fail-03.xbel/.dirs/system-data2 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_PBK7J3/bookmarks/parse/fail-03.xbel/.dirs/data 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_PBK7J3/bookmarks/parse/fail-03.xbel/.dirs/state 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_PBK7J3/bookmarks/parse/fail-03.xbel/.dirs/runtime 1131s ok 9 /bookmarks/parse/fail-03.xbel 1131s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_PBK7J3/bookmarks/parse/fail-04.xbel/.dirs/home 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_PBK7J3/bookmarks/parse/fail-04.xbel/.dirs/cache 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_PBK7J3/bookmarks/parse/fail-04.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_PBK7J3/bookmarks/parse/fail-04.xbel/.dirs/system-config2 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_PBK7J3/bookmarks/parse/fail-04.xbel/.dirs/config 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_PBK7J3/bookmarks/parse/fail-04.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_PBK7J3/bookmarks/parse/fail-04.xbel/.dirs/system-data2 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_PBK7J3/bookmarks/parse/fail-04.xbel/.dirs/data 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_PBK7J3/bookmarks/parse/fail-04.xbel/.dirs/state 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_PBK7J3/bookmarks/parse/fail-04.xbel/.dirs/runtime 1131s ok 10 /bookmarks/parse/fail-04.xbel 1131s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_PBK7J3/bookmarks/parse/fail-05.xbel/.dirs/home 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_PBK7J3/bookmarks/parse/fail-05.xbel/.dirs/cache 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_PBK7J3/bookmarks/parse/fail-05.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_PBK7J3/bookmarks/parse/fail-05.xbel/.dirs/system-config2 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_PBK7J3/bookmarks/parse/fail-05.xbel/.dirs/config 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_PBK7J3/bookmarks/parse/fail-05.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_PBK7J3/bookmarks/parse/fail-05.xbel/.dirs/system-data2 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_PBK7J3/bookmarks/parse/fail-05.xbel/.dirs/data 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_PBK7J3/bookmarks/parse/fail-05.xbel/.dirs/state 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_PBK7J3/bookmarks/parse/fail-05.xbel/.dirs/runtime 1131s ok 11 /bookmarks/parse/fail-05.xbel 1131s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_PBK7J3/bookmarks/parse/fail-06.xbel/.dirs/home 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_PBK7J3/bookmarks/parse/fail-06.xbel/.dirs/cache 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_PBK7J3/bookmarks/parse/fail-06.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_PBK7J3/bookmarks/parse/fail-06.xbel/.dirs/system-config2 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_PBK7J3/bookmarks/parse/fail-06.xbel/.dirs/config 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_PBK7J3/bookmarks/parse/fail-06.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_PBK7J3/bookmarks/parse/fail-06.xbel/.dirs/system-data2 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_PBK7J3/bookmarks/parse/fail-06.xbel/.dirs/data 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_PBK7J3/bookmarks/parse/fail-06.xbel/.dirs/state 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_PBK7J3/bookmarks/parse/fail-06.xbel/.dirs/runtime 1131s ok 12 /bookmarks/parse/fail-06.xbel 1131s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_PBK7J3/bookmarks/parse/fail-07.xbel/.dirs/home 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_PBK7J3/bookmarks/parse/fail-07.xbel/.dirs/cache 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_PBK7J3/bookmarks/parse/fail-07.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_PBK7J3/bookmarks/parse/fail-07.xbel/.dirs/system-config2 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_PBK7J3/bookmarks/parse/fail-07.xbel/.dirs/config 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_PBK7J3/bookmarks/parse/fail-07.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_PBK7J3/bookmarks/parse/fail-07.xbel/.dirs/system-data2 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_PBK7J3/bookmarks/parse/fail-07.xbel/.dirs/data 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_PBK7J3/bookmarks/parse/fail-07.xbel/.dirs/state 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_PBK7J3/bookmarks/parse/fail-07.xbel/.dirs/runtime 1131s ok 13 /bookmarks/parse/fail-07.xbel 1131s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_PBK7J3/bookmarks/parse/fail-08.xbel/.dirs/home 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_PBK7J3/bookmarks/parse/fail-08.xbel/.dirs/cache 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_PBK7J3/bookmarks/parse/fail-08.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_PBK7J3/bookmarks/parse/fail-08.xbel/.dirs/system-config2 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_PBK7J3/bookmarks/parse/fail-08.xbel/.dirs/config 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_PBK7J3/bookmarks/parse/fail-08.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_PBK7J3/bookmarks/parse/fail-08.xbel/.dirs/system-data2 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_PBK7J3/bookmarks/parse/fail-08.xbel/.dirs/data 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_PBK7J3/bookmarks/parse/fail-08.xbel/.dirs/state 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_PBK7J3/bookmarks/parse/fail-08.xbel/.dirs/runtime 1131s ok 14 /bookmarks/parse/fail-08.xbel 1131s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_PBK7J3/bookmarks/parse/fail-09.xbel/.dirs/home 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_PBK7J3/bookmarks/parse/fail-09.xbel/.dirs/cache 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_PBK7J3/bookmarks/parse/fail-09.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_PBK7J3/bookmarks/parse/fail-09.xbel/.dirs/system-config2 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_PBK7J3/bookmarks/parse/fail-09.xbel/.dirs/config 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_PBK7J3/bookmarks/parse/fail-09.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_PBK7J3/bookmarks/parse/fail-09.xbel/.dirs/system-data2 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_PBK7J3/bookmarks/parse/fail-09.xbel/.dirs/data 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_PBK7J3/bookmarks/parse/fail-09.xbel/.dirs/state 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_PBK7J3/bookmarks/parse/fail-09.xbel/.dirs/runtime 1131s ok 15 /bookmarks/parse/fail-09.xbel 1131s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_PBK7J3/bookmarks/parse/fail-10.xbel/.dirs/home 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_PBK7J3/bookmarks/parse/fail-10.xbel/.dirs/cache 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_PBK7J3/bookmarks/parse/fail-10.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_PBK7J3/bookmarks/parse/fail-10.xbel/.dirs/system-config2 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_PBK7J3/bookmarks/parse/fail-10.xbel/.dirs/config 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_PBK7J3/bookmarks/parse/fail-10.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_PBK7J3/bookmarks/parse/fail-10.xbel/.dirs/system-data2 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_PBK7J3/bookmarks/parse/fail-10.xbel/.dirs/data 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_PBK7J3/bookmarks/parse/fail-10.xbel/.dirs/state 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_PBK7J3/bookmarks/parse/fail-10.xbel/.dirs/runtime 1131s ok 16 /bookmarks/parse/fail-10.xbel 1131s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_PBK7J3/bookmarks/parse/fail-11.xbel/.dirs/home 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_PBK7J3/bookmarks/parse/fail-11.xbel/.dirs/cache 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_PBK7J3/bookmarks/parse/fail-11.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_PBK7J3/bookmarks/parse/fail-11.xbel/.dirs/system-config2 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_PBK7J3/bookmarks/parse/fail-11.xbel/.dirs/config 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_PBK7J3/bookmarks/parse/fail-11.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_PBK7J3/bookmarks/parse/fail-11.xbel/.dirs/system-data2 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_PBK7J3/bookmarks/parse/fail-11.xbel/.dirs/data 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_PBK7J3/bookmarks/parse/fail-11.xbel/.dirs/state 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_PBK7J3/bookmarks/parse/fail-11.xbel/.dirs/runtime 1131s ok 17 /bookmarks/parse/fail-11.xbel 1131s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_PBK7J3/bookmarks/parse/fail-12.xbel/.dirs/home 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_PBK7J3/bookmarks/parse/fail-12.xbel/.dirs/cache 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_PBK7J3/bookmarks/parse/fail-12.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_PBK7J3/bookmarks/parse/fail-12.xbel/.dirs/system-config2 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_PBK7J3/bookmarks/parse/fail-12.xbel/.dirs/config 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_PBK7J3/bookmarks/parse/fail-12.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_PBK7J3/bookmarks/parse/fail-12.xbel/.dirs/system-data2 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_PBK7J3/bookmarks/parse/fail-12.xbel/.dirs/data 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_PBK7J3/bookmarks/parse/fail-12.xbel/.dirs/state 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_PBK7J3/bookmarks/parse/fail-12.xbel/.dirs/runtime 1131s ok 18 /bookmarks/parse/fail-12.xbel 1131s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_PBK7J3/bookmarks/parse/fail-13.xbel/.dirs/home 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_PBK7J3/bookmarks/parse/fail-13.xbel/.dirs/cache 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_PBK7J3/bookmarks/parse/fail-13.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_PBK7J3/bookmarks/parse/fail-13.xbel/.dirs/system-config2 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_PBK7J3/bookmarks/parse/fail-13.xbel/.dirs/config 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_PBK7J3/bookmarks/parse/fail-13.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_PBK7J3/bookmarks/parse/fail-13.xbel/.dirs/system-data2 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_PBK7J3/bookmarks/parse/fail-13.xbel/.dirs/data 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_PBK7J3/bookmarks/parse/fail-13.xbel/.dirs/state 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_PBK7J3/bookmarks/parse/fail-13.xbel/.dirs/runtime 1131s ok 19 /bookmarks/parse/fail-13.xbel 1131s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_PBK7J3/bookmarks/parse/fail-14.xbel/.dirs/home 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_PBK7J3/bookmarks/parse/fail-14.xbel/.dirs/cache 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_PBK7J3/bookmarks/parse/fail-14.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_PBK7J3/bookmarks/parse/fail-14.xbel/.dirs/system-config2 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_PBK7J3/bookmarks/parse/fail-14.xbel/.dirs/config 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_PBK7J3/bookmarks/parse/fail-14.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_PBK7J3/bookmarks/parse/fail-14.xbel/.dirs/system-data2 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_PBK7J3/bookmarks/parse/fail-14.xbel/.dirs/data 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_PBK7J3/bookmarks/parse/fail-14.xbel/.dirs/state 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_PBK7J3/bookmarks/parse/fail-14.xbel/.dirs/runtime 1131s ok 20 /bookmarks/parse/fail-14.xbel 1131s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_PBK7J3/bookmarks/parse/fail-15.xbel/.dirs/home 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_PBK7J3/bookmarks/parse/fail-15.xbel/.dirs/cache 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_PBK7J3/bookmarks/parse/fail-15.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_PBK7J3/bookmarks/parse/fail-15.xbel/.dirs/system-config2 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_PBK7J3/bookmarks/parse/fail-15.xbel/.dirs/config 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_PBK7J3/bookmarks/parse/fail-15.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_PBK7J3/bookmarks/parse/fail-15.xbel/.dirs/system-data2 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_PBK7J3/bookmarks/parse/fail-15.xbel/.dirs/data 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_PBK7J3/bookmarks/parse/fail-15.xbel/.dirs/state 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_PBK7J3/bookmarks/parse/fail-15.xbel/.dirs/runtime 1131s ok 21 /bookmarks/parse/fail-15.xbel 1131s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_PBK7J3/bookmarks/parse/fail-16.xbel/.dirs/home 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_PBK7J3/bookmarks/parse/fail-16.xbel/.dirs/cache 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_PBK7J3/bookmarks/parse/fail-16.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_PBK7J3/bookmarks/parse/fail-16.xbel/.dirs/system-config2 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_PBK7J3/bookmarks/parse/fail-16.xbel/.dirs/config 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_PBK7J3/bookmarks/parse/fail-16.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_PBK7J3/bookmarks/parse/fail-16.xbel/.dirs/system-data2 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_PBK7J3/bookmarks/parse/fail-16.xbel/.dirs/data 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_PBK7J3/bookmarks/parse/fail-16.xbel/.dirs/state 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_PBK7J3/bookmarks/parse/fail-16.xbel/.dirs/runtime 1131s ok 22 /bookmarks/parse/fail-16.xbel 1131s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_PBK7J3/bookmarks/parse/fail-17.xbel/.dirs/home 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_PBK7J3/bookmarks/parse/fail-17.xbel/.dirs/cache 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_PBK7J3/bookmarks/parse/fail-17.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_PBK7J3/bookmarks/parse/fail-17.xbel/.dirs/system-config2 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_PBK7J3/bookmarks/parse/fail-17.xbel/.dirs/config 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_PBK7J3/bookmarks/parse/fail-17.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_PBK7J3/bookmarks/parse/fail-17.xbel/.dirs/system-data2 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_PBK7J3/bookmarks/parse/fail-17.xbel/.dirs/data 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_PBK7J3/bookmarks/parse/fail-17.xbel/.dirs/state 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_PBK7J3/bookmarks/parse/fail-17.xbel/.dirs/runtime 1131s ok 23 /bookmarks/parse/fail-17.xbel 1131s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_PBK7J3/bookmarks/parse/fail-18.xbel/.dirs/home 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_PBK7J3/bookmarks/parse/fail-18.xbel/.dirs/cache 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_PBK7J3/bookmarks/parse/fail-18.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_PBK7J3/bookmarks/parse/fail-18.xbel/.dirs/system-config2 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_PBK7J3/bookmarks/parse/fail-18.xbel/.dirs/config 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_PBK7J3/bookmarks/parse/fail-18.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_PBK7J3/bookmarks/parse/fail-18.xbel/.dirs/system-data2 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_PBK7J3/bookmarks/parse/fail-18.xbel/.dirs/data 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_PBK7J3/bookmarks/parse/fail-18.xbel/.dirs/state 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_PBK7J3/bookmarks/parse/fail-18.xbel/.dirs/runtime 1131s ok 24 /bookmarks/parse/fail-18.xbel 1131s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_PBK7J3/bookmarks/parse/fail-19.xbel/.dirs/home 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_PBK7J3/bookmarks/parse/fail-19.xbel/.dirs/cache 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_PBK7J3/bookmarks/parse/fail-19.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_PBK7J3/bookmarks/parse/fail-19.xbel/.dirs/system-config2 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_PBK7J3/bookmarks/parse/fail-19.xbel/.dirs/config 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_PBK7J3/bookmarks/parse/fail-19.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_PBK7J3/bookmarks/parse/fail-19.xbel/.dirs/system-data2 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_PBK7J3/bookmarks/parse/fail-19.xbel/.dirs/data 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_PBK7J3/bookmarks/parse/fail-19.xbel/.dirs/state 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_PBK7J3/bookmarks/parse/fail-19.xbel/.dirs/runtime 1131s ok 25 /bookmarks/parse/fail-19.xbel 1131s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_PBK7J3/bookmarks/parse/fail-20.xbel/.dirs/home 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_PBK7J3/bookmarks/parse/fail-20.xbel/.dirs/cache 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_PBK7J3/bookmarks/parse/fail-20.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_PBK7J3/bookmarks/parse/fail-20.xbel/.dirs/system-config2 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_PBK7J3/bookmarks/parse/fail-20.xbel/.dirs/config 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_PBK7J3/bookmarks/parse/fail-20.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_PBK7J3/bookmarks/parse/fail-20.xbel/.dirs/system-data2 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_PBK7J3/bookmarks/parse/fail-20.xbel/.dirs/data 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_PBK7J3/bookmarks/parse/fail-20.xbel/.dirs/state 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_PBK7J3/bookmarks/parse/fail-20.xbel/.dirs/runtime 1131s ok 26 /bookmarks/parse/fail-20.xbel 1131s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_PBK7J3/bookmarks/parse/fail-21.xbel/.dirs/home 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_PBK7J3/bookmarks/parse/fail-21.xbel/.dirs/cache 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_PBK7J3/bookmarks/parse/fail-21.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_PBK7J3/bookmarks/parse/fail-21.xbel/.dirs/system-config2 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_PBK7J3/bookmarks/parse/fail-21.xbel/.dirs/config 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_PBK7J3/bookmarks/parse/fail-21.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_PBK7J3/bookmarks/parse/fail-21.xbel/.dirs/system-data2 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_PBK7J3/bookmarks/parse/fail-21.xbel/.dirs/data 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_PBK7J3/bookmarks/parse/fail-21.xbel/.dirs/state 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_PBK7J3/bookmarks/parse/fail-21.xbel/.dirs/runtime 1131s ok 27 /bookmarks/parse/fail-21.xbel 1131s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_PBK7J3/bookmarks/parse/fail-22.xbel/.dirs/home 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_PBK7J3/bookmarks/parse/fail-22.xbel/.dirs/cache 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_PBK7J3/bookmarks/parse/fail-22.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_PBK7J3/bookmarks/parse/fail-22.xbel/.dirs/system-config2 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_PBK7J3/bookmarks/parse/fail-22.xbel/.dirs/config 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_PBK7J3/bookmarks/parse/fail-22.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_PBK7J3/bookmarks/parse/fail-22.xbel/.dirs/system-data2 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_PBK7J3/bookmarks/parse/fail-22.xbel/.dirs/data 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_PBK7J3/bookmarks/parse/fail-22.xbel/.dirs/state 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_PBK7J3/bookmarks/parse/fail-22.xbel/.dirs/runtime 1131s ok 28 /bookmarks/parse/fail-22.xbel 1131s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_PBK7J3/bookmarks/parse/fail-23.xbel/.dirs/home 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_PBK7J3/bookmarks/parse/fail-23.xbel/.dirs/cache 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_PBK7J3/bookmarks/parse/fail-23.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_PBK7J3/bookmarks/parse/fail-23.xbel/.dirs/system-config2 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_PBK7J3/bookmarks/parse/fail-23.xbel/.dirs/config 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_PBK7J3/bookmarks/parse/fail-23.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_PBK7J3/bookmarks/parse/fail-23.xbel/.dirs/system-data2 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_PBK7J3/bookmarks/parse/fail-23.xbel/.dirs/data 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_PBK7J3/bookmarks/parse/fail-23.xbel/.dirs/state 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_PBK7J3/bookmarks/parse/fail-23.xbel/.dirs/runtime 1131s ok 29 /bookmarks/parse/fail-23.xbel 1131s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_PBK7J3/bookmarks/parse/fail-24.xbel/.dirs/home 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_PBK7J3/bookmarks/parse/fail-24.xbel/.dirs/cache 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_PBK7J3/bookmarks/parse/fail-24.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_PBK7J3/bookmarks/parse/fail-24.xbel/.dirs/system-config2 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_PBK7J3/bookmarks/parse/fail-24.xbel/.dirs/config 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_PBK7J3/bookmarks/parse/fail-24.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_PBK7J3/bookmarks/parse/fail-24.xbel/.dirs/system-data2 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_PBK7J3/bookmarks/parse/fail-24.xbel/.dirs/data 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_PBK7J3/bookmarks/parse/fail-24.xbel/.dirs/state 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_PBK7J3/bookmarks/parse/fail-24.xbel/.dirs/runtime 1131s ok 30 /bookmarks/parse/fail-24.xbel 1131s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_PBK7J3/bookmarks/parse/fail-25.xbel/.dirs/home 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_PBK7J3/bookmarks/parse/fail-25.xbel/.dirs/cache 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_PBK7J3/bookmarks/parse/fail-25.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_PBK7J3/bookmarks/parse/fail-25.xbel/.dirs/system-config2 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_PBK7J3/bookmarks/parse/fail-25.xbel/.dirs/config 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_PBK7J3/bookmarks/parse/fail-25.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_PBK7J3/bookmarks/parse/fail-25.xbel/.dirs/system-data2 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_PBK7J3/bookmarks/parse/fail-25.xbel/.dirs/data 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_PBK7J3/bookmarks/parse/fail-25.xbel/.dirs/state 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_PBK7J3/bookmarks/parse/fail-25.xbel/.dirs/runtime 1131s ok 31 /bookmarks/parse/fail-25.xbel 1131s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_PBK7J3/bookmarks/parse/fail-26.xbel/.dirs/home 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_PBK7J3/bookmarks/parse/fail-26.xbel/.dirs/cache 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_PBK7J3/bookmarks/parse/fail-26.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_PBK7J3/bookmarks/parse/fail-26.xbel/.dirs/system-config2 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_PBK7J3/bookmarks/parse/fail-26.xbel/.dirs/config 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_PBK7J3/bookmarks/parse/fail-26.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_PBK7J3/bookmarks/parse/fail-26.xbel/.dirs/system-data2 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_PBK7J3/bookmarks/parse/fail-26.xbel/.dirs/data 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_PBK7J3/bookmarks/parse/fail-26.xbel/.dirs/state 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_PBK7J3/bookmarks/parse/fail-26.xbel/.dirs/runtime 1131s ok 32 /bookmarks/parse/fail-26.xbel 1131s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_PBK7J3/bookmarks/parse/fail-27.xbel/.dirs/home 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_PBK7J3/bookmarks/parse/fail-27.xbel/.dirs/cache 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_PBK7J3/bookmarks/parse/fail-27.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_PBK7J3/bookmarks/parse/fail-27.xbel/.dirs/system-config2 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_PBK7J3/bookmarks/parse/fail-27.xbel/.dirs/config 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_PBK7J3/bookmarks/parse/fail-27.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_PBK7J3/bookmarks/parse/fail-27.xbel/.dirs/system-data2 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_PBK7J3/bookmarks/parse/fail-27.xbel/.dirs/data 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_PBK7J3/bookmarks/parse/fail-27.xbel/.dirs/state 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_PBK7J3/bookmarks/parse/fail-27.xbel/.dirs/runtime 1131s ok 33 /bookmarks/parse/fail-27.xbel 1131s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_PBK7J3/bookmarks/parse/fail-28.xbel/.dirs/home 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_PBK7J3/bookmarks/parse/fail-28.xbel/.dirs/cache 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_PBK7J3/bookmarks/parse/fail-28.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_PBK7J3/bookmarks/parse/fail-28.xbel/.dirs/system-config2 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_PBK7J3/bookmarks/parse/fail-28.xbel/.dirs/config 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_PBK7J3/bookmarks/parse/fail-28.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_PBK7J3/bookmarks/parse/fail-28.xbel/.dirs/system-data2 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_PBK7J3/bookmarks/parse/fail-28.xbel/.dirs/data 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_PBK7J3/bookmarks/parse/fail-28.xbel/.dirs/state 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_PBK7J3/bookmarks/parse/fail-28.xbel/.dirs/runtime 1131s ok 34 /bookmarks/parse/fail-28.xbel 1131s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_PBK7J3/bookmarks/parse/fail-29.xbel/.dirs/home 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_PBK7J3/bookmarks/parse/fail-29.xbel/.dirs/cache 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_PBK7J3/bookmarks/parse/fail-29.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_PBK7J3/bookmarks/parse/fail-29.xbel/.dirs/system-config2 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_PBK7J3/bookmarks/parse/fail-29.xbel/.dirs/config 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_PBK7J3/bookmarks/parse/fail-29.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_PBK7J3/bookmarks/parse/fail-29.xbel/.dirs/system-data2 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_PBK7J3/bookmarks/parse/fail-29.xbel/.dirs/data 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_PBK7J3/bookmarks/parse/fail-29.xbel/.dirs/state 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_PBK7J3/bookmarks/parse/fail-29.xbel/.dirs/runtime 1131s ok 35 /bookmarks/parse/fail-29.xbel 1131s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_PBK7J3/bookmarks/parse/fail-30.xbel/.dirs/home 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_PBK7J3/bookmarks/parse/fail-30.xbel/.dirs/cache 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_PBK7J3/bookmarks/parse/fail-30.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_PBK7J3/bookmarks/parse/fail-30.xbel/.dirs/system-config2 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_PBK7J3/bookmarks/parse/fail-30.xbel/.dirs/config 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_PBK7J3/bookmarks/parse/fail-30.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_PBK7J3/bookmarks/parse/fail-30.xbel/.dirs/system-data2 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_PBK7J3/bookmarks/parse/fail-30.xbel/.dirs/data 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_PBK7J3/bookmarks/parse/fail-30.xbel/.dirs/state 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_PBK7J3/bookmarks/parse/fail-30.xbel/.dirs/runtime 1131s ok 36 /bookmarks/parse/fail-30.xbel 1131s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_PBK7J3/bookmarks/parse/fail-31.xbel/.dirs/home 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_PBK7J3/bookmarks/parse/fail-31.xbel/.dirs/cache 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_PBK7J3/bookmarks/parse/fail-31.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_PBK7J3/bookmarks/parse/fail-31.xbel/.dirs/system-config2 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_PBK7J3/bookmarks/parse/fail-31.xbel/.dirs/config 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_PBK7J3/bookmarks/parse/fail-31.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_PBK7J3/bookmarks/parse/fail-31.xbel/.dirs/system-data2 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_PBK7J3/bookmarks/parse/fail-31.xbel/.dirs/data 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_PBK7J3/bookmarks/parse/fail-31.xbel/.dirs/state 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_PBK7J3/bookmarks/parse/fail-31.xbel/.dirs/runtime 1131s ok 37 /bookmarks/parse/fail-31.xbel 1131s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_PBK7J3/bookmarks/parse/fail-32.xbel/.dirs/home 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_PBK7J3/bookmarks/parse/fail-32.xbel/.dirs/cache 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_PBK7J3/bookmarks/parse/fail-32.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_PBK7J3/bookmarks/parse/fail-32.xbel/.dirs/system-config2 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_PBK7J3/bookmarks/parse/fail-32.xbel/.dirs/config 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_PBK7J3/bookmarks/parse/fail-32.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_PBK7J3/bookmarks/parse/fail-32.xbel/.dirs/system-data2 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_PBK7J3/bookmarks/parse/fail-32.xbel/.dirs/data 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_PBK7J3/bookmarks/parse/fail-32.xbel/.dirs/state 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_PBK7J3/bookmarks/parse/fail-32.xbel/.dirs/runtime 1131s ok 38 /bookmarks/parse/fail-32.xbel 1131s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_PBK7J3/bookmarks/parse/fail-33.xbel/.dirs/home 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_PBK7J3/bookmarks/parse/fail-33.xbel/.dirs/cache 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_PBK7J3/bookmarks/parse/fail-33.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_PBK7J3/bookmarks/parse/fail-33.xbel/.dirs/system-config2 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_PBK7J3/bookmarks/parse/fail-33.xbel/.dirs/config 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_PBK7J3/bookmarks/parse/fail-33.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_PBK7J3/bookmarks/parse/fail-33.xbel/.dirs/system-data2 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_PBK7J3/bookmarks/parse/fail-33.xbel/.dirs/data 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_PBK7J3/bookmarks/parse/fail-33.xbel/.dirs/state 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_PBK7J3/bookmarks/parse/fail-33.xbel/.dirs/runtime 1131s ok 39 /bookmarks/parse/fail-33.xbel 1131s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_PBK7J3/bookmarks/parse/fail-34.xbel/.dirs/home 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_PBK7J3/bookmarks/parse/fail-34.xbel/.dirs/cache 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_PBK7J3/bookmarks/parse/fail-34.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_PBK7J3/bookmarks/parse/fail-34.xbel/.dirs/system-config2 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_PBK7J3/bookmarks/parse/fail-34.xbel/.dirs/config 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_PBK7J3/bookmarks/parse/fail-34.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_PBK7J3/bookmarks/parse/fail-34.xbel/.dirs/system-data2 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_PBK7J3/bookmarks/parse/fail-34.xbel/.dirs/data 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_PBK7J3/bookmarks/parse/fail-34.xbel/.dirs/state 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_PBK7J3/bookmarks/parse/fail-34.xbel/.dirs/runtime 1131s ok 40 /bookmarks/parse/fail-34.xbel 1131s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_PBK7J3/bookmarks/parse/fail-35.xbel/.dirs/home 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_PBK7J3/bookmarks/parse/fail-35.xbel/.dirs/cache 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_PBK7J3/bookmarks/parse/fail-35.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_PBK7J3/bookmarks/parse/fail-35.xbel/.dirs/system-config2 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_PBK7J3/bookmarks/parse/fail-35.xbel/.dirs/config 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_PBK7J3/bookmarks/parse/fail-35.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_PBK7J3/bookmarks/parse/fail-35.xbel/.dirs/system-data2 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_PBK7J3/bookmarks/parse/fail-35.xbel/.dirs/data 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_PBK7J3/bookmarks/parse/fail-35.xbel/.dirs/state 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_PBK7J3/bookmarks/parse/fail-35.xbel/.dirs/runtime 1131s ok 41 /bookmarks/parse/fail-35.xbel 1131s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_PBK7J3/bookmarks/parse/fail-36.xbel/.dirs/home 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_PBK7J3/bookmarks/parse/fail-36.xbel/.dirs/cache 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_PBK7J3/bookmarks/parse/fail-36.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_PBK7J3/bookmarks/parse/fail-36.xbel/.dirs/system-config2 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_PBK7J3/bookmarks/parse/fail-36.xbel/.dirs/config 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_PBK7J3/bookmarks/parse/fail-36.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_PBK7J3/bookmarks/parse/fail-36.xbel/.dirs/system-data2 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_PBK7J3/bookmarks/parse/fail-36.xbel/.dirs/data 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_PBK7J3/bookmarks/parse/fail-36.xbel/.dirs/state 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_PBK7J3/bookmarks/parse/fail-36.xbel/.dirs/runtime 1131s ok 42 /bookmarks/parse/fail-36.xbel 1131s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_PBK7J3/bookmarks/parse/fail-37.xbel/.dirs/home 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_PBK7J3/bookmarks/parse/fail-37.xbel/.dirs/cache 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_PBK7J3/bookmarks/parse/fail-37.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_PBK7J3/bookmarks/parse/fail-37.xbel/.dirs/system-config2 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_PBK7J3/bookmarks/parse/fail-37.xbel/.dirs/config 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_PBK7J3/bookmarks/parse/fail-37.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_PBK7J3/bookmarks/parse/fail-37.xbel/.dirs/system-data2 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_PBK7J3/bookmarks/parse/fail-37.xbel/.dirs/data 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_PBK7J3/bookmarks/parse/fail-37.xbel/.dirs/state 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_PBK7J3/bookmarks/parse/fail-37.xbel/.dirs/runtime 1131s ok 43 /bookmarks/parse/fail-37.xbel 1131s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_PBK7J3/bookmarks/parse/fail-38.xbel/.dirs/home 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_PBK7J3/bookmarks/parse/fail-38.xbel/.dirs/cache 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_PBK7J3/bookmarks/parse/fail-38.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_PBK7J3/bookmarks/parse/fail-38.xbel/.dirs/system-config2 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_PBK7J3/bookmarks/parse/fail-38.xbel/.dirs/config 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_PBK7J3/bookmarks/parse/fail-38.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_PBK7J3/bookmarks/parse/fail-38.xbel/.dirs/system-data2 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_PBK7J3/bookmarks/parse/fail-38.xbel/.dirs/data 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_PBK7J3/bookmarks/parse/fail-38.xbel/.dirs/state 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_PBK7J3/bookmarks/parse/fail-38.xbel/.dirs/runtime 1131s ok 44 /bookmarks/parse/fail-38.xbel 1131s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_PBK7J3/bookmarks/parse/fail-39.xbel/.dirs/home 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_PBK7J3/bookmarks/parse/fail-39.xbel/.dirs/cache 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_PBK7J3/bookmarks/parse/fail-39.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_PBK7J3/bookmarks/parse/fail-39.xbel/.dirs/system-config2 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_PBK7J3/bookmarks/parse/fail-39.xbel/.dirs/config 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_PBK7J3/bookmarks/parse/fail-39.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_PBK7J3/bookmarks/parse/fail-39.xbel/.dirs/system-data2 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_PBK7J3/bookmarks/parse/fail-39.xbel/.dirs/data 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_PBK7J3/bookmarks/parse/fail-39.xbel/.dirs/state 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_PBK7J3/bookmarks/parse/fail-39.xbel/.dirs/runtime 1131s ok 45 /bookmarks/parse/fail-39.xbel 1131s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_PBK7J3/bookmarks/parse/fail-40.xbel/.dirs/home 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_PBK7J3/bookmarks/parse/fail-40.xbel/.dirs/cache 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_PBK7J3/bookmarks/parse/fail-40.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_PBK7J3/bookmarks/parse/fail-40.xbel/.dirs/system-config2 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_PBK7J3/bookmarks/parse/fail-40.xbel/.dirs/config 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_PBK7J3/bookmarks/parse/fail-40.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_PBK7J3/bookmarks/parse/fail-40.xbel/.dirs/system-data2 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_PBK7J3/bookmarks/parse/fail-40.xbel/.dirs/data 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_PBK7J3/bookmarks/parse/fail-40.xbel/.dirs/state 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_PBK7J3/bookmarks/parse/fail-40.xbel/.dirs/runtime 1131s ok 46 /bookmarks/parse/fail-40.xbel 1131s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_PBK7J3/bookmarks/parse/fail-41.xbel/.dirs/home 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_PBK7J3/bookmarks/parse/fail-41.xbel/.dirs/cache 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_PBK7J3/bookmarks/parse/fail-41.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_PBK7J3/bookmarks/parse/fail-41.xbel/.dirs/system-config2 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_PBK7J3/bookmarks/parse/fail-41.xbel/.dirs/config 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_PBK7J3/bookmarks/parse/fail-41.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_PBK7J3/bookmarks/parse/fail-41.xbel/.dirs/system-data2 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_PBK7J3/bookmarks/parse/fail-41.xbel/.dirs/data 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_PBK7J3/bookmarks/parse/fail-41.xbel/.dirs/state 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_PBK7J3/bookmarks/parse/fail-41.xbel/.dirs/runtime 1131s ok 47 /bookmarks/parse/fail-41.xbel 1131s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_PBK7J3/bookmarks/parse/fail-42.xbel/.dirs/home 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_PBK7J3/bookmarks/parse/fail-42.xbel/.dirs/cache 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_PBK7J3/bookmarks/parse/fail-42.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_PBK7J3/bookmarks/parse/fail-42.xbel/.dirs/system-config2 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_PBK7J3/bookmarks/parse/fail-42.xbel/.dirs/config 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_PBK7J3/bookmarks/parse/fail-42.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_PBK7J3/bookmarks/parse/fail-42.xbel/.dirs/system-data2 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_PBK7J3/bookmarks/parse/fail-42.xbel/.dirs/data 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_PBK7J3/bookmarks/parse/fail-42.xbel/.dirs/state 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_PBK7J3/bookmarks/parse/fail-42.xbel/.dirs/runtime 1131s ok 48 /bookmarks/parse/fail-42.xbel 1131s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_PBK7J3/bookmarks/parse/valid-01.xbel/.dirs/home 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_PBK7J3/bookmarks/parse/valid-01.xbel/.dirs/cache 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_PBK7J3/bookmarks/parse/valid-01.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_PBK7J3/bookmarks/parse/valid-01.xbel/.dirs/system-config2 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_PBK7J3/bookmarks/parse/valid-01.xbel/.dirs/config 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_PBK7J3/bookmarks/parse/valid-01.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_PBK7J3/bookmarks/parse/valid-01.xbel/.dirs/system-data2 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_PBK7J3/bookmarks/parse/valid-01.xbel/.dirs/data 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_PBK7J3/bookmarks/parse/valid-01.xbel/.dirs/state 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_PBK7J3/bookmarks/parse/valid-01.xbel/.dirs/runtime 1131s ok 49 /bookmarks/parse/valid-01.xbel 1131s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_PBK7J3/bookmarks/parse/valid-02.xbel/.dirs/home 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_PBK7J3/bookmarks/parse/valid-02.xbel/.dirs/cache 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_PBK7J3/bookmarks/parse/valid-02.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_PBK7J3/bookmarks/parse/valid-02.xbel/.dirs/system-config2 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_PBK7J3/bookmarks/parse/valid-02.xbel/.dirs/config 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_PBK7J3/bookmarks/parse/valid-02.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_PBK7J3/bookmarks/parse/valid-02.xbel/.dirs/system-data2 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_PBK7J3/bookmarks/parse/valid-02.xbel/.dirs/data 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_PBK7J3/bookmarks/parse/valid-02.xbel/.dirs/state 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_PBK7J3/bookmarks/parse/valid-02.xbel/.dirs/runtime 1131s ok 50 /bookmarks/parse/valid-02.xbel 1131s ok - glib/gdbus-test-codegen.test 1131s # Running test: glib/once.test 1131s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_PBK7J3/bookmarks/parse/valid-03.xbel/.dirs/home 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_PBK7J3/bookmarks/parse/valid-03.xbel/.dirs/cache 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_PBK7J3/bookmarks/parse/valid-03.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_PBK7J3/bookmarks/parse/valid-03.xbel/.dirs/system-config2 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_PBK7J3/bookmarks/parse/valid-03.xbel/.dirs/config 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_PBK7J3/bookmarks/parse/valid-03.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_PBK7J3/bookmarks/parse/valid-03.xbel/.dirs/system-data2 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_PBK7J3/bookmarks/parse/valid-03.xbel/.dirs/data 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_PBK7J3/bookmarks/parse/valid-03.xbel/.dirs/state 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_PBK7J3/bookmarks/parse/valid-03.xbel/.dirs/runtime 1131s ok 51 /bookmarks/parse/valid-03.xbel 1131s # End of parse tests 1131s # Start of copy tests 1131s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_PBK7J3/bookmarks/copy/fail-01.xbel/.dirs/home 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_PBK7J3/bookmarks/copy/fail-01.xbel/.dirs/cache 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_PBK7J3/bookmarks/copy/fail-01.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_PBK7J3/bookmarks/copy/fail-01.xbel/.dirs/system-config2 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_PBK7J3/bookmarks/copy/fail-01.xbel/.dirs/config 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_PBK7J3/bookmarks/copy/fail-01.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_PBK7J3/bookmarks/copy/fail-01.xbel/.dirs/system-data2 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_PBK7J3/bookmarks/copy/fail-01.xbel/.dirs/data 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_PBK7J3/bookmarks/copy/fail-01.xbel/.dirs/state 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_PBK7J3/bookmarks/copy/fail-01.xbel/.dirs/runtime 1131s ok 52 /bookmarks/copy/fail-01.xbel 1131s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_PBK7J3/bookmarks/copy/fail-02.xbel/.dirs/home 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_PBK7J3/bookmarks/copy/fail-02.xbel/.dirs/cache 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_PBK7J3/bookmarks/copy/fail-02.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_PBK7J3/bookmarks/copy/fail-02.xbel/.dirs/system-config2 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_PBK7J3/bookmarks/copy/fail-02.xbel/.dirs/config 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_PBK7J3/bookmarks/copy/fail-02.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_PBK7J3/bookmarks/copy/fail-02.xbel/.dirs/system-data2 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_PBK7J3/bookmarks/copy/fail-02.xbel/.dirs/data 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_PBK7J3/bookmarks/copy/fail-02.xbel/.dirs/state 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_PBK7J3/bookmarks/copy/fail-02.xbel/.dirs/runtime 1131s ok 53 /bookmarks/copy/fail-02.xbel 1131s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_PBK7J3/bookmarks/copy/fail-03.xbel/.dirs/home 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_PBK7J3/bookmarks/copy/fail-03.xbel/.dirs/cache 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_PBK7J3/bookmarks/copy/fail-03.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_PBK7J3/bookmarks/copy/fail-03.xbel/.dirs/system-config2 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_PBK7J3/bookmarks/copy/fail-03.xbel/.dirs/config 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_PBK7J3/bookmarks/copy/fail-03.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_PBK7J3/bookmarks/copy/fail-03.xbel/.dirs/system-data2 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_PBK7J3/bookmarks/copy/fail-03.xbel/.dirs/data 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_PBK7J3/bookmarks/copy/fail-03.xbel/.dirs/state 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_PBK7J3/bookmarks/copy/fail-03.xbel/.dirs/runtime 1131s ok 54 /bookmarks/copy/fail-03.xbel 1131s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_PBK7J3/bookmarks/copy/fail-04.xbel/.dirs/home 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_PBK7J3/bookmarks/copy/fail-04.xbel/.dirs/cache 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_PBK7J3/bookmarks/copy/fail-04.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_PBK7J3/bookmarks/copy/fail-04.xbel/.dirs/system-config2 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_PBK7J3/bookmarks/copy/fail-04.xbel/.dirs/config 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_PBK7J3/bookmarks/copy/fail-04.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_PBK7J3/bookmarks/copy/fail-04.xbel/.dirs/system-data2 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_PBK7J3/bookmarks/copy/fail-04.xbel/.dirs/data 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_PBK7J3/bookmarks/copy/fail-04.xbel/.dirs/state 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_PBK7J3/bookmarks/copy/fail-04.xbel/.dirs/runtime 1131s ok 55 /bookmarks/copy/fail-04.xbel 1131s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_PBK7J3/bookmarks/copy/fail-05.xbel/.dirs/home 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_PBK7J3/bookmarks/copy/fail-05.xbel/.dirs/cache 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_PBK7J3/bookmarks/copy/fail-05.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_PBK7J3/bookmarks/copy/fail-05.xbel/.dirs/system-config2 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_PBK7J3/bookmarks/copy/fail-05.xbel/.dirs/config 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_PBK7J3/bookmarks/copy/fail-05.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_PBK7J3/bookmarks/copy/fail-05.xbel/.dirs/system-data2 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_PBK7J3/bookmarks/copy/fail-05.xbel/.dirs/data 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_PBK7J3/bookmarks/copy/fail-05.xbel/.dirs/state 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_PBK7J3/bookmarks/copy/fail-05.xbel/.dirs/runtime 1131s ok 56 /bookmarks/copy/fail-05.xbel 1131s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_PBK7J3/bookmarks/copy/fail-06.xbel/.dirs/home 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_PBK7J3/bookmarks/copy/fail-06.xbel/.dirs/cache 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_PBK7J3/bookmarks/copy/fail-06.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_PBK7J3/bookmarks/copy/fail-06.xbel/.dirs/system-config2 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_PBK7J3/bookmarks/copy/fail-06.xbel/.dirs/config 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_PBK7J3/bookmarks/copy/fail-06.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_PBK7J3/bookmarks/copy/fail-06.xbel/.dirs/system-data2 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_PBK7J3/bookmarks/copy/fail-06.xbel/.dirs/data 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_PBK7J3/bookmarks/copy/fail-06.xbel/.dirs/state 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_PBK7J3/bookmarks/copy/fail-06.xbel/.dirs/runtime 1131s ok 57 /bookmarks/copy/fail-06.xbel 1131s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_PBK7J3/bookmarks/copy/fail-07.xbel/.dirs/home 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_PBK7J3/bookmarks/copy/fail-07.xbel/.dirs/cache 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_PBK7J3/bookmarks/copy/fail-07.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_PBK7J3/bookmarks/copy/fail-07.xbel/.dirs/system-config2 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_PBK7J3/bookmarks/copy/fail-07.xbel/.dirs/config 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_PBK7J3/bookmarks/copy/fail-07.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_PBK7J3/bookmarks/copy/fail-07.xbel/.dirs/system-data2 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_PBK7J3/bookmarks/copy/fail-07.xbel/.dirs/data 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_PBK7J3/bookmarks/copy/fail-07.xbel/.dirs/state 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_PBK7J3/bookmarks/copy/fail-07.xbel/.dirs/runtime 1131s ok 58 /bookmarks/copy/fail-07.xbel 1131s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_PBK7J3/bookmarks/copy/fail-08.xbel/.dirs/home 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_PBK7J3/bookmarks/copy/fail-08.xbel/.dirs/cache 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_PBK7J3/bookmarks/copy/fail-08.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_PBK7J3/bookmarks/copy/fail-08.xbel/.dirs/system-config2 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_PBK7J3/bookmarks/copy/fail-08.xbel/.dirs/config 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_PBK7J3/bookmarks/copy/fail-08.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_PBK7J3/bookmarks/copy/fail-08.xbel/.dirs/system-data2 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_PBK7J3/bookmarks/copy/fail-08.xbel/.dirs/data 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_PBK7J3/bookmarks/copy/fail-08.xbel/.dirs/state 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_PBK7J3/bookmarks/copy/fail-08.xbel/.dirs/runtime 1131s ok 59 /bookmarks/copy/fail-08.xbel 1131s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_PBK7J3/bookmarks/copy/fail-09.xbel/.dirs/home 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_PBK7J3/bookmarks/copy/fail-09.xbel/.dirs/cache 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_PBK7J3/bookmarks/copy/fail-09.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_PBK7J3/bookmarks/copy/fail-09.xbel/.dirs/system-config2 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_PBK7J3/bookmarks/copy/fail-09.xbel/.dirs/config 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_PBK7J3/bookmarks/copy/fail-09.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_PBK7J3/bookmarks/copy/fail-09.xbel/.dirs/system-data2 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_PBK7J3/bookmarks/copy/fail-09.xbel/.dirs/data 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_PBK7J3/bookmarks/copy/fail-09.xbel/.dirs/state 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_PBK7J3/bookmarks/copy/fail-09.xbel/.dirs/runtime 1131s ok 60 /bookmarks/copy/fail-09.xbel 1131s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_PBK7J3/bookmarks/copy/fail-10.xbel/.dirs/home 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_PBK7J3/bookmarks/copy/fail-10.xbel/.dirs/cache 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_PBK7J3/bookmarks/copy/fail-10.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_PBK7J3/bookmarks/copy/fail-10.xbel/.dirs/system-config2 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_PBK7J3/bookmarks/copy/fail-10.xbel/.dirs/config 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_PBK7J3/bookmarks/copy/fail-10.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_PBK7J3/bookmarks/copy/fail-10.xbel/.dirs/system-data2 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_PBK7J3/bookmarks/copy/fail-10.xbel/.dirs/data 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_PBK7J3/bookmarks/copy/fail-10.xbel/.dirs/state 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_PBK7J3/bookmarks/copy/fail-10.xbel/.dirs/runtime 1131s ok 61 /bookmarks/copy/fail-10.xbel 1131s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_PBK7J3/bookmarks/copy/fail-11.xbel/.dirs/home 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_PBK7J3/bookmarks/copy/fail-11.xbel/.dirs/cache 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_PBK7J3/bookmarks/copy/fail-11.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_PBK7J3/bookmarks/copy/fail-11.xbel/.dirs/system-config2 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_PBK7J3/bookmarks/copy/fail-11.xbel/.dirs/config 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_PBK7J3/bookmarks/copy/fail-11.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_PBK7J3/bookmarks/copy/fail-11.xbel/.dirs/system-data2 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_PBK7J3/bookmarks/copy/fail-11.xbel/.dirs/data 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_PBK7J3/bookmarks/copy/fail-11.xbel/.dirs/state 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_PBK7J3/bookmarks/copy/fail-11.xbel/.dirs/runtime 1131s ok 62 /bookmarks/copy/fail-11.xbel 1131s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_PBK7J3/bookmarks/copy/fail-12.xbel/.dirs/home 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_PBK7J3/bookmarks/copy/fail-12.xbel/.dirs/cache 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_PBK7J3/bookmarks/copy/fail-12.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_PBK7J3/bookmarks/copy/fail-12.xbel/.dirs/system-config2 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_PBK7J3/bookmarks/copy/fail-12.xbel/.dirs/config 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_PBK7J3/bookmarks/copy/fail-12.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_PBK7J3/bookmarks/copy/fail-12.xbel/.dirs/system-data2 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_PBK7J3/bookmarks/copy/fail-12.xbel/.dirs/data 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_PBK7J3/bookmarks/copy/fail-12.xbel/.dirs/state 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_PBK7J3/bookmarks/copy/fail-12.xbel/.dirs/runtime 1131s ok 63 /bookmarks/copy/fail-12.xbel 1131s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_PBK7J3/bookmarks/copy/fail-13.xbel/.dirs/home 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_PBK7J3/bookmarks/copy/fail-13.xbel/.dirs/cache 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_PBK7J3/bookmarks/copy/fail-13.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_PBK7J3/bookmarks/copy/fail-13.xbel/.dirs/system-config2 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_PBK7J3/bookmarks/copy/fail-13.xbel/.dirs/config 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_PBK7J3/bookmarks/copy/fail-13.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_PBK7J3/bookmarks/copy/fail-13.xbel/.dirs/system-data2 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_PBK7J3/bookmarks/copy/fail-13.xbel/.dirs/data 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_PBK7J3/bookmarks/copy/fail-13.xbel/.dirs/state 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_PBK7J3/bookmarks/copy/fail-13.xbel/.dirs/runtime 1131s ok 64 /bookmarks/copy/fail-13.xbel 1131s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_PBK7J3/bookmarks/copy/fail-14.xbel/.dirs/home 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_PBK7J3/bookmarks/copy/fail-14.xbel/.dirs/cache 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_PBK7J3/bookmarks/copy/fail-14.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_PBK7J3/bookmarks/copy/fail-14.xbel/.dirs/system-config2 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_PBK7J3/bookmarks/copy/fail-14.xbel/.dirs/config 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_PBK7J3/bookmarks/copy/fail-14.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_PBK7J3/bookmarks/copy/fail-14.xbel/.dirs/system-data2 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_PBK7J3/bookmarks/copy/fail-14.xbel/.dirs/data 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_PBK7J3/bookmarks/copy/fail-14.xbel/.dirs/state 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_PBK7J3/bookmarks/copy/fail-14.xbel/.dirs/runtime 1131s ok 65 /bookmarks/copy/fail-14.xbel 1131s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_PBK7J3/bookmarks/copy/fail-15.xbel/.dirs/home 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_PBK7J3/bookmarks/copy/fail-15.xbel/.dirs/cache 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_PBK7J3/bookmarks/copy/fail-15.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_PBK7J3/bookmarks/copy/fail-15.xbel/.dirs/system-config2 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_PBK7J3/bookmarks/copy/fail-15.xbel/.dirs/config 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_PBK7J3/bookmarks/copy/fail-15.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_PBK7J3/bookmarks/copy/fail-15.xbel/.dirs/system-data2 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_PBK7J3/bookmarks/copy/fail-15.xbel/.dirs/data 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_PBK7J3/bookmarks/copy/fail-15.xbel/.dirs/state 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_PBK7J3/bookmarks/copy/fail-15.xbel/.dirs/runtime 1131s ok 66 /bookmarks/copy/fail-15.xbel 1131s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_PBK7J3/bookmarks/copy/fail-16.xbel/.dirs/home 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_PBK7J3/bookmarks/copy/fail-16.xbel/.dirs/cache 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_PBK7J3/bookmarks/copy/fail-16.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_PBK7J3/bookmarks/copy/fail-16.xbel/.dirs/system-config2 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_PBK7J3/bookmarks/copy/fail-16.xbel/.dirs/config 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_PBK7J3/bookmarks/copy/fail-16.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_PBK7J3/bookmarks/copy/fail-16.xbel/.dirs/system-data2 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_PBK7J3/bookmarks/copy/fail-16.xbel/.dirs/data 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_PBK7J3/bookmarks/copy/fail-16.xbel/.dirs/state 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_PBK7J3/bookmarks/copy/fail-16.xbel/.dirs/runtime 1131s ok 67 /bookmarks/copy/fail-16.xbel 1131s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_PBK7J3/bookmarks/copy/fail-17.xbel/.dirs/home 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_PBK7J3/bookmarks/copy/fail-17.xbel/.dirs/cache 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_PBK7J3/bookmarks/copy/fail-17.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_PBK7J3/bookmarks/copy/fail-17.xbel/.dirs/system-config2 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_PBK7J3/bookmarks/copy/fail-17.xbel/.dirs/config 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_PBK7J3/bookmarks/copy/fail-17.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_PBK7J3/bookmarks/copy/fail-17.xbel/.dirs/system-data2 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_PBK7J3/bookmarks/copy/fail-17.xbel/.dirs/data 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_PBK7J3/bookmarks/copy/fail-17.xbel/.dirs/state 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_PBK7J3/bookmarks/copy/fail-17.xbel/.dirs/runtime 1131s ok 68 /bookmarks/copy/fail-17.xbel 1131s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_PBK7J3/bookmarks/copy/fail-18.xbel/.dirs/home 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_PBK7J3/bookmarks/copy/fail-18.xbel/.dirs/cache 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_PBK7J3/bookmarks/copy/fail-18.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_PBK7J3/bookmarks/copy/fail-18.xbel/.dirs/system-config2 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_PBK7J3/bookmarks/copy/fail-18.xbel/.dirs/config 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_PBK7J3/bookmarks/copy/fail-18.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_PBK7J3/bookmarks/copy/fail-18.xbel/.dirs/system-data2 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_PBK7J3/bookmarks/copy/fail-18.xbel/.dirs/data 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_PBK7J3/bookmarks/copy/fail-18.xbel/.dirs/state 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_PBK7J3/bookmarks/copy/fail-18.xbel/.dirs/runtime 1131s ok 69 /bookmarks/copy/fail-18.xbel 1131s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_PBK7J3/bookmarks/copy/fail-19.xbel/.dirs/home 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_PBK7J3/bookmarks/copy/fail-19.xbel/.dirs/cache 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_PBK7J3/bookmarks/copy/fail-19.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_PBK7J3/bookmarks/copy/fail-19.xbel/.dirs/system-config2 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_PBK7J3/bookmarks/copy/fail-19.xbel/.dirs/config 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_PBK7J3/bookmarks/copy/fail-19.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_PBK7J3/bookmarks/copy/fail-19.xbel/.dirs/system-data2 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_PBK7J3/bookmarks/copy/fail-19.xbel/.dirs/data 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_PBK7J3/bookmarks/copy/fail-19.xbel/.dirs/state 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_PBK7J3/bookmarks/copy/fail-19.xbel/.dirs/runtime 1131s ok 70 /bookmarks/copy/fail-19.xbel 1131s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_PBK7J3/bookmarks/copy/fail-20.xbel/.dirs/home 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_PBK7J3/bookmarks/copy/fail-20.xbel/.dirs/cache 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_PBK7J3/bookmarks/copy/fail-20.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_PBK7J3/bookmarks/copy/fail-20.xbel/.dirs/system-config2 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_PBK7J3/bookmarks/copy/fail-20.xbel/.dirs/config 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_PBK7J3/bookmarks/copy/fail-20.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_PBK7J3/bookmarks/copy/fail-20.xbel/.dirs/system-data2 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_PBK7J3/bookmarks/copy/fail-20.xbel/.dirs/data 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_PBK7J3/bookmarks/copy/fail-20.xbel/.dirs/state 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_PBK7J3/bookmarks/copy/fail-20.xbel/.dirs/runtime 1131s ok 71 /bookmarks/copy/fail-20.xbel 1131s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_PBK7J3/bookmarks/copy/fail-21.xbel/.dirs/home 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_PBK7J3/bookmarks/copy/fail-21.xbel/.dirs/cache 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_PBK7J3/bookmarks/copy/fail-21.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_PBK7J3/bookmarks/copy/fail-21.xbel/.dirs/system-config2 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_PBK7J3/bookmarks/copy/fail-21.xbel/.dirs/config 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_PBK7J3/bookmarks/copy/fail-21.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_PBK7J3/bookmarks/copy/fail-21.xbel/.dirs/system-data2 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_PBK7J3/bookmarks/copy/fail-21.xbel/.dirs/data 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_PBK7J3/bookmarks/copy/fail-21.xbel/.dirs/state 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_PBK7J3/bookmarks/copy/fail-21.xbel/.dirs/runtime 1131s ok 72 /bookmarks/copy/fail-21.xbel 1131s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_PBK7J3/bookmarks/copy/fail-22.xbel/.dirs/home 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_PBK7J3/bookmarks/copy/fail-22.xbel/.dirs/cache 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_PBK7J3/bookmarks/copy/fail-22.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_PBK7J3/bookmarks/copy/fail-22.xbel/.dirs/system-config2 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_PBK7J3/bookmarks/copy/fail-22.xbel/.dirs/config 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_PBK7J3/bookmarks/copy/fail-22.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_PBK7J3/bookmarks/copy/fail-22.xbel/.dirs/system-data2 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_PBK7J3/bookmarks/copy/fail-22.xbel/.dirs/data 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_PBK7J3/bookmarks/copy/fail-22.xbel/.dirs/state 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_PBK7J3/bookmarks/copy/fail-22.xbel/.dirs/runtime 1131s ok 73 /bookmarks/copy/fail-22.xbel 1131s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_PBK7J3/bookmarks/copy/fail-23.xbel/.dirs/home 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_PBK7J3/bookmarks/copy/fail-23.xbel/.dirs/cache 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_PBK7J3/bookmarks/copy/fail-23.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_PBK7J3/bookmarks/copy/fail-23.xbel/.dirs/system-config2 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_PBK7J3/bookmarks/copy/fail-23.xbel/.dirs/config 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_PBK7J3/bookmarks/copy/fail-23.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_PBK7J3/bookmarks/copy/fail-23.xbel/.dirs/system-data2 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_PBK7J3/bookmarks/copy/fail-23.xbel/.dirs/data 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_PBK7J3/bookmarks/copy/fail-23.xbel/.dirs/state 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_PBK7J3/bookmarks/copy/fail-23.xbel/.dirs/runtime 1131s ok 74 /bookmarks/copy/fail-23.xbel 1131s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_PBK7J3/bookmarks/copy/fail-24.xbel/.dirs/home 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_PBK7J3/bookmarks/copy/fail-24.xbel/.dirs/cache 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_PBK7J3/bookmarks/copy/fail-24.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_PBK7J3/bookmarks/copy/fail-24.xbel/.dirs/system-config2 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_PBK7J3/bookmarks/copy/fail-24.xbel/.dirs/config 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_PBK7J3/bookmarks/copy/fail-24.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_PBK7J3/bookmarks/copy/fail-24.xbel/.dirs/system-data2 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_PBK7J3/bookmarks/copy/fail-24.xbel/.dirs/data 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_PBK7J3/bookmarks/copy/fail-24.xbel/.dirs/state 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_PBK7J3/bookmarks/copy/fail-24.xbel/.dirs/runtime 1131s ok 75 /bookmarks/copy/fail-24.xbel 1131s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_PBK7J3/bookmarks/copy/fail-25.xbel/.dirs/home 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_PBK7J3/bookmarks/copy/fail-25.xbel/.dirs/cache 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_PBK7J3/bookmarks/copy/fail-25.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_PBK7J3/bookmarks/copy/fail-25.xbel/.dirs/system-config2 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_PBK7J3/bookmarks/copy/fail-25.xbel/.dirs/config 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_PBK7J3/bookmarks/copy/fail-25.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_PBK7J3/bookmarks/copy/fail-25.xbel/.dirs/system-data2 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_PBK7J3/bookmarks/copy/fail-25.xbel/.dirs/data 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_PBK7J3/bookmarks/copy/fail-25.xbel/.dirs/state 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_PBK7J3/bookmarks/copy/fail-25.xbel/.dirs/runtime 1131s ok 76 /bookmarks/copy/fail-25.xbel 1131s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_PBK7J3/bookmarks/copy/fail-26.xbel/.dirs/home 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_PBK7J3/bookmarks/copy/fail-26.xbel/.dirs/cache 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_PBK7J3/bookmarks/copy/fail-26.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_PBK7J3/bookmarks/copy/fail-26.xbel/.dirs/system-config2 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_PBK7J3/bookmarks/copy/fail-26.xbel/.dirs/config 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_PBK7J3/bookmarks/copy/fail-26.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_PBK7J3/bookmarks/copy/fail-26.xbel/.dirs/system-data2 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_PBK7J3/bookmarks/copy/fail-26.xbel/.dirs/data 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_PBK7J3/bookmarks/copy/fail-26.xbel/.dirs/state 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_PBK7J3/bookmarks/copy/fail-26.xbel/.dirs/runtime 1131s ok 77 /bookmarks/copy/fail-26.xbel 1131s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_PBK7J3/bookmarks/copy/fail-27.xbel/.dirs/home 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_PBK7J3/bookmarks/copy/fail-27.xbel/.dirs/cache 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_PBK7J3/bookmarks/copy/fail-27.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_PBK7J3/bookmarks/copy/fail-27.xbel/.dirs/system-config2 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_PBK7J3/bookmarks/copy/fail-27.xbel/.dirs/config 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_PBK7J3/bookmarks/copy/fail-27.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_PBK7J3/bookmarks/copy/fail-27.xbel/.dirs/system-data2 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_PBK7J3/bookmarks/copy/fail-27.xbel/.dirs/data 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_PBK7J3/bookmarks/copy/fail-27.xbel/.dirs/state 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_PBK7J3/bookmarks/copy/fail-27.xbel/.dirs/runtime 1131s ok 78 /bookmarks/copy/fail-27.xbel 1131s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_PBK7J3/bookmarks/copy/fail-28.xbel/.dirs/home 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_PBK7J3/bookmarks/copy/fail-28.xbel/.dirs/cache 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_PBK7J3/bookmarks/copy/fail-28.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_PBK7J3/bookmarks/copy/fail-28.xbel/.dirs/system-config2 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_PBK7J3/bookmarks/copy/fail-28.xbel/.dirs/config 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_PBK7J3/bookmarks/copy/fail-28.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_PBK7J3/bookmarks/copy/fail-28.xbel/.dirs/system-data2 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_PBK7J3/bookmarks/copy/fail-28.xbel/.dirs/data 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_PBK7J3/bookmarks/copy/fail-28.xbel/.dirs/state 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_PBK7J3/bookmarks/copy/fail-28.xbel/.dirs/runtime 1131s ok 79 /bookmarks/copy/fail-28.xbel 1131s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_PBK7J3/bookmarks/copy/fail-29.xbel/.dirs/home 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_PBK7J3/bookmarks/copy/fail-29.xbel/.dirs/cache 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_PBK7J3/bookmarks/copy/fail-29.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_PBK7J3/bookmarks/copy/fail-29.xbel/.dirs/system-config2 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_PBK7J3/bookmarks/copy/fail-29.xbel/.dirs/config 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_PBK7J3/bookmarks/copy/fail-29.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_PBK7J3/bookmarks/copy/fail-29.xbel/.dirs/system-data2 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_PBK7J3/bookmarks/copy/fail-29.xbel/.dirs/data 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_PBK7J3/bookmarks/copy/fail-29.xbel/.dirs/state 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_PBK7J3/bookmarks/copy/fail-29.xbel/.dirs/runtime 1131s ok 80 /bookmarks/copy/fail-29.xbel 1131s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_PBK7J3/bookmarks/copy/fail-30.xbel/.dirs/home 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_PBK7J3/bookmarks/copy/fail-30.xbel/.dirs/cache 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_PBK7J3/bookmarks/copy/fail-30.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_PBK7J3/bookmarks/copy/fail-30.xbel/.dirs/system-config2 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_PBK7J3/bookmarks/copy/fail-30.xbel/.dirs/config 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_PBK7J3/bookmarks/copy/fail-30.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_PBK7J3/bookmarks/copy/fail-30.xbel/.dirs/system-data2 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_PBK7J3/bookmarks/copy/fail-30.xbel/.dirs/data 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_PBK7J3/bookmarks/copy/fail-30.xbel/.dirs/state 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_PBK7J3/bookmarks/copy/fail-30.xbel/.dirs/runtime 1131s ok 81 /bookmarks/copy/fail-30.xbel 1131s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_PBK7J3/bookmarks/copy/fail-31.xbel/.dirs/home 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_PBK7J3/bookmarks/copy/fail-31.xbel/.dirs/cache 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_PBK7J3/bookmarks/copy/fail-31.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_PBK7J3/bookmarks/copy/fail-31.xbel/.dirs/system-config2 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_PBK7J3/bookmarks/copy/fail-31.xbel/.dirs/config 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_PBK7J3/bookmarks/copy/fail-31.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_PBK7J3/bookmarks/copy/fail-31.xbel/.dirs/system-data2 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_PBK7J3/bookmarks/copy/fail-31.xbel/.dirs/data 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_PBK7J3/bookmarks/copy/fail-31.xbel/.dirs/state 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_PBK7J3/bookmarks/copy/fail-31.xbel/.dirs/runtime 1131s ok 82 /bookmarks/copy/fail-31.xbel 1131s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_PBK7J3/bookmarks/copy/fail-32.xbel/.dirs/home 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_PBK7J3/bookmarks/copy/fail-32.xbel/.dirs/cache 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_PBK7J3/bookmarks/copy/fail-32.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_PBK7J3/bookmarks/copy/fail-32.xbel/.dirs/system-config2 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_PBK7J3/bookmarks/copy/fail-32.xbel/.dirs/config 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_PBK7J3/bookmarks/copy/fail-32.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_PBK7J3/bookmarks/copy/fail-32.xbel/.dirs/system-data2 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_PBK7J3/bookmarks/copy/fail-32.xbel/.dirs/data 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_PBK7J3/bookmarks/copy/fail-32.xbel/.dirs/state 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_PBK7J3/bookmarks/copy/fail-32.xbel/.dirs/runtime 1131s ok 83 /bookmarks/copy/fail-32.xbel 1131s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_PBK7J3/bookmarks/copy/fail-33.xbel/.dirs/home 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_PBK7J3/bookmarks/copy/fail-33.xbel/.dirs/cache 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_PBK7J3/bookmarks/copy/fail-33.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_PBK7J3/bookmarks/copy/fail-33.xbel/.dirs/system-config2 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_PBK7J3/bookmarks/copy/fail-33.xbel/.dirs/config 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_PBK7J3/bookmarks/copy/fail-33.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_PBK7J3/bookmarks/copy/fail-33.xbel/.dirs/system-data2 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_PBK7J3/bookmarks/copy/fail-33.xbel/.dirs/data 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_PBK7J3/bookmarks/copy/fail-33.xbel/.dirs/state 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_PBK7J3/bookmarks/copy/fail-33.xbel/.dirs/runtime 1131s ok 84 /bookmarks/copy/fail-33.xbel 1131s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_PBK7J3/bookmarks/copy/fail-34.xbel/.dirs/home 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_PBK7J3/bookmarks/copy/fail-34.xbel/.dirs/cache 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_PBK7J3/bookmarks/copy/fail-34.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_PBK7J3/bookmarks/copy/fail-34.xbel/.dirs/system-config2 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_PBK7J3/bookmarks/copy/fail-34.xbel/.dirs/config 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_PBK7J3/bookmarks/copy/fail-34.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_PBK7J3/bookmarks/copy/fail-34.xbel/.dirs/system-data2 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_PBK7J3/bookmarks/copy/fail-34.xbel/.dirs/data 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_PBK7J3/bookmarks/copy/fail-34.xbel/.dirs/state 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_PBK7J3/bookmarks/copy/fail-34.xbel/.dirs/runtime 1131s ok 85 /bookmarks/copy/fail-34.xbel 1131s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_PBK7J3/bookmarks/copy/fail-35.xbel/.dirs/home 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_PBK7J3/bookmarks/copy/fail-35.xbel/.dirs/cache 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_PBK7J3/bookmarks/copy/fail-35.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_PBK7J3/bookmarks/copy/fail-35.xbel/.dirs/system-config2 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_PBK7J3/bookmarks/copy/fail-35.xbel/.dirs/config 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_PBK7J3/bookmarks/copy/fail-35.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_PBK7J3/bookmarks/copy/fail-35.xbel/.dirs/system-data2 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_PBK7J3/bookmarks/copy/fail-35.xbel/.dirs/data 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_PBK7J3/bookmarks/copy/fail-35.xbel/.dirs/state 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_PBK7J3/bookmarks/copy/fail-35.xbel/.dirs/runtime 1131s ok 86 /bookmarks/copy/fail-35.xbel 1131s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_PBK7J3/bookmarks/copy/fail-36.xbel/.dirs/home 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_PBK7J3/bookmarks/copy/fail-36.xbel/.dirs/cache 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_PBK7J3/bookmarks/copy/fail-36.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_PBK7J3/bookmarks/copy/fail-36.xbel/.dirs/system-config2 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_PBK7J3/bookmarks/copy/fail-36.xbel/.dirs/config 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_PBK7J3/bookmarks/copy/fail-36.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_PBK7J3/bookmarks/copy/fail-36.xbel/.dirs/system-data2 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_PBK7J3/bookmarks/copy/fail-36.xbel/.dirs/data 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_PBK7J3/bookmarks/copy/fail-36.xbel/.dirs/state 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_PBK7J3/bookmarks/copy/fail-36.xbel/.dirs/runtime 1131s ok 87 /bookmarks/copy/fail-36.xbel 1131s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_PBK7J3/bookmarks/copy/fail-37.xbel/.dirs/home 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_PBK7J3/bookmarks/copy/fail-37.xbel/.dirs/cache 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_PBK7J3/bookmarks/copy/fail-37.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_PBK7J3/bookmarks/copy/fail-37.xbel/.dirs/system-config2 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_PBK7J3/bookmarks/copy/fail-37.xbel/.dirs/config 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_PBK7J3/bookmarks/copy/fail-37.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_PBK7J3/bookmarks/copy/fail-37.xbel/.dirs/system-data2 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_PBK7J3/bookmarks/copy/fail-37.xbel/.dirs/data 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_PBK7J3/bookmarks/copy/fail-37.xbel/.dirs/state 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_PBK7J3/bookmarks/copy/fail-37.xbel/.dirs/runtime 1131s ok 88 /bookmarks/copy/fail-37.xbel 1131s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_PBK7J3/bookmarks/copy/fail-38.xbel/.dirs/home 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_PBK7J3/bookmarks/copy/fail-38.xbel/.dirs/cache 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_PBK7J3/bookmarks/copy/fail-38.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_PBK7J3/bookmarks/copy/fail-38.xbel/.dirs/system-config2 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_PBK7J3/bookmarks/copy/fail-38.xbel/.dirs/config 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_PBK7J3/bookmarks/copy/fail-38.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_PBK7J3/bookmarks/copy/fail-38.xbel/.dirs/system-data2 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_PBK7J3/bookmarks/copy/fail-38.xbel/.dirs/data 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_PBK7J3/bookmarks/copy/fail-38.xbel/.dirs/state 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_PBK7J3/bookmarks/copy/fail-38.xbel/.dirs/runtime 1131s ok 89 /bookmarks/copy/fail-38.xbel 1131s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_PBK7J3/bookmarks/copy/fail-39.xbel/.dirs/home 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_PBK7J3/bookmarks/copy/fail-39.xbel/.dirs/cache 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_PBK7J3/bookmarks/copy/fail-39.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_PBK7J3/bookmarks/copy/fail-39.xbel/.dirs/system-config2 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_PBK7J3/bookmarks/copy/fail-39.xbel/.dirs/config 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_PBK7J3/bookmarks/copy/fail-39.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_PBK7J3/bookmarks/copy/fail-39.xbel/.dirs/system-data2 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_PBK7J3/bookmarks/copy/fail-39.xbel/.dirs/data 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_PBK7J3/bookmarks/copy/fail-39.xbel/.dirs/state 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_PBK7J3/bookmarks/copy/fail-39.xbel/.dirs/runtime 1131s ok 90 /bookmarks/copy/fail-39.xbel 1131s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_PBK7J3/bookmarks/copy/fail-40.xbel/.dirs/home 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_PBK7J3/bookmarks/copy/fail-40.xbel/.dirs/cache 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_PBK7J3/bookmarks/copy/fail-40.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_PBK7J3/bookmarks/copy/fail-40.xbel/.dirs/system-config2 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_PBK7J3/bookmarks/copy/fail-40.xbel/.dirs/config 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_PBK7J3/bookmarks/copy/fail-40.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_PBK7J3/bookmarks/copy/fail-40.xbel/.dirs/system-data2 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_PBK7J3/bookmarks/copy/fail-40.xbel/.dirs/data 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_PBK7J3/bookmarks/copy/fail-40.xbel/.dirs/state 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_PBK7J3/bookmarks/copy/fail-40.xbel/.dirs/runtime 1131s ok 91 /bookmarks/copy/fail-40.xbel 1131s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_PBK7J3/bookmarks/copy/fail-41.xbel/.dirs/home 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_PBK7J3/bookmarks/copy/fail-41.xbel/.dirs/cache 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_PBK7J3/bookmarks/copy/fail-41.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_PBK7J3/bookmarks/copy/fail-41.xbel/.dirs/system-config2 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_PBK7J3/bookmarks/copy/fail-41.xbel/.dirs/config 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_PBK7J3/bookmarks/copy/fail-41.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_PBK7J3/bookmarks/copy/fail-41.xbel/.dirs/system-data2 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_PBK7J3/bookmarks/copy/fail-41.xbel/.dirs/data 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_PBK7J3/bookmarks/copy/fail-41.xbel/.dirs/state 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_PBK7J3/bookmarks/copy/fail-41.xbel/.dirs/runtime 1131s ok 92 /bookmarks/copy/fail-41.xbel 1131s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_PBK7J3/bookmarks/copy/fail-42.xbel/.dirs/home 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_PBK7J3/bookmarks/copy/fail-42.xbel/.dirs/cache 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_PBK7J3/bookmarks/copy/fail-42.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_PBK7J3/bookmarks/copy/fail-42.xbel/.dirs/system-config2 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_PBK7J3/bookmarks/copy/fail-42.xbel/.dirs/config 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_PBK7J3/bookmarks/copy/fail-42.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_PBK7J3/bookmarks/copy/fail-42.xbel/.dirs/system-data2 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_PBK7J3/bookmarks/copy/fail-42.xbel/.dirs/data 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_PBK7J3/bookmarks/copy/fail-42.xbel/.dirs/state 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_PBK7J3/bookmarks/copy/fail-42.xbel/.dirs/runtime 1131s ok 93 /bookmarks/copy/fail-42.xbel 1131s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_PBK7J3/bookmarks/copy/valid-01.xbel/.dirs/home 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_PBK7J3/bookmarks/copy/valid-01.xbel/.dirs/cache 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_PBK7J3/bookmarks/copy/valid-01.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_PBK7J3/bookmarks/copy/valid-01.xbel/.dirs/system-config2 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_PBK7J3/bookmarks/copy/valid-01.xbel/.dirs/config 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_PBK7J3/bookmarks/copy/valid-01.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_PBK7J3/bookmarks/copy/valid-01.xbel/.dirs/system-data2 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_PBK7J3/bookmarks/copy/valid-01.xbel/.dirs/data 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_PBK7J3/bookmarks/copy/valid-01.xbel/.dirs/state 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_PBK7J3/bookmarks/copy/valid-01.xbel/.dirs/runtime 1131s ok 94 /bookmarks/copy/valid-01.xbel 1131s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_PBK7J3/bookmarks/copy/valid-02.xbel/.dirs/home 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_PBK7J3/bookmarks/copy/valid-02.xbel/.dirs/cache 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_PBK7J3/bookmarks/copy/valid-02.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_PBK7J3/bookmarks/copy/valid-02.xbel/.dirs/system-config2 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_PBK7J3/bookmarks/copy/valid-02.xbel/.dirs/config 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_PBK7J3/bookmarks/copy/valid-02.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_PBK7J3/bookmarks/copy/valid-02.xbel/.dirs/system-data2 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_PBK7J3/bookmarks/copy/valid-02.xbel/.dirs/data 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_PBK7J3/bookmarks/copy/valid-02.xbel/.dirs/state 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_PBK7J3/bookmarks/copy/valid-02.xbel/.dirs/runtime 1131s ok 95 /bookmarks/copy/valid-02.xbel 1131s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_PBK7J3/bookmarks/copy/valid-03.xbel/.dirs/home 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_PBK7J3/bookmarks/copy/valid-03.xbel/.dirs/cache 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_PBK7J3/bookmarks/copy/valid-03.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_PBK7J3/bookmarks/copy/valid-03.xbel/.dirs/system-config2 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_PBK7J3/bookmarks/copy/valid-03.xbel/.dirs/config 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_PBK7J3/bookmarks/copy/valid-03.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_PBK7J3/bookmarks/copy/valid-03.xbel/.dirs/system-data2 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_PBK7J3/bookmarks/copy/valid-03.xbel/.dirs/data 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_PBK7J3/bookmarks/copy/valid-03.xbel/.dirs/state 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_PBK7J3/bookmarks/copy/valid-03.xbel/.dirs/runtime 1131s ok 96 /bookmarks/copy/valid-03.xbel 1131s # End of copy tests 1131s # End of bookmarks tests 1131s TAP version 14 1131s # random seed: R02Sc45abf4fd96bc420824b23100a96e209 1131s 1..8 1131s # Start of scanner tests 1131s ok 1 /scanner/warn 1131s ok 2 /scanner/error 1131s ok 3 /scanner/symbols 1131s ok 4 /scanner/tokens 1131s ok 5 /scanner/multiline-comment 1131s ok 6 /scanner/int-to-float 1131s ok 7 /scanner/fd-input 1131s # Start of fd-input tests 1131s ok 8 /scanner/fd-input/rewind 1131s # End of fd-input tests 1131s # End of scanner tests 1131s TAP version 14 1131s # random seed: R02S017008bfb4ea8fbbf5149025e41a3502 1131s 1..4 1131s # Start of socket-service tests 1131s # GLib-GIO-DEBUG: _g_io_module_get_default: Found default implementation dummy (GDummyProxyResolver) for ‘gio-proxy-resolver’ 1131s # GLib-GIO-DEBUG: g_socket_client_connect_async: starting new g_socket_client_connect_async() with GTask 0x236c590 and GSocketClientAsyncConnectData 0x2362c50 1131s # GLib-GIO-DEBUG: GSocketClient: Starting new address enumeration 1131s ok 1 /socket-service/start-stop 1131s # GLib-GIO-DEBUG: g_socket_client_connect_async: starting new g_socket_client_connect_async() with GTask 0x2367e80 and GSocketClientAsyncConnectData 0x2367e08 1131s # GLib-GIO-DEBUG: GSocketClient: Starting new address enumeration 1131s # GLib-GIO-DEBUG: GSocketClient: Address enumeration succeeded 1131s # GLib-GIO-DEBUG: g_socket_client_enumerator_callback: starting connection attempt 0x2365d88 for GSocketClientAsyncConnectData 0x2362c50 1131s # GLib-GIO-DEBUG: GSocketClient: Starting TCP connection attempt 1131s # GLib-GIO-DEBUG: GSocketClient: TCP connection successful 1131s # GLib-GIO-DEBUG: GSocketClient: Starting application layer connection 1131s # GLib-GIO-DEBUG: GSocketClient: Connection successful! 1131s # GLib-GIO-DEBUG: GSocketClient: Address enumeration succeeded 1131s # GLib-GIO-DEBUG: g_socket_client_enumerator_callback: starting connection attempt 0x23624a8 for GSocketClientAsyncConnectData 0x2367e08 1131s # GLib-GIO-DEBUG: GSocketClient: Starting TCP connection attempt 1131s # GLib-GIO-DEBUG: GSocketClient: TCP connection successful 1131s # GLib-GIO-DEBUG: GSocketClient: Starting application layer connection 1131s # GLib-GIO-DEBUG: GSocketClient: Connection successful! 1131s ok 2 /socket-service/read_write_async 1131s # GLib-GIO-DEBUG: g_socket_client_connect_async: starting new g_socket_client_connect_async() with GTask 0x23673a8 and GSocketClientAsyncConnectData 0x23682c8 1131s # GLib-GIO-DEBUG: GSocketClient: Starting new address enumeration 1131s # GLib-GIO-DEBUG: GSocketClient: Address enumeration succeeded 1131s # GLib-GIO-DEBUG: g_socket_client_enumerator_callback: starting connection attempt 0x2367b78 for GSocketClientAsyncConnectData 0x23682c8 1131s # GLib-GIO-DEBUG: GSocketClient: Starting TCP connection attempt 1131s # GLib-GIO-DEBUG: GSocketClient: TCP connection successful 1131s # GLib-GIO-DEBUG: GSocketClient: Starting application layer connection 1131s # GLib-GIO-DEBUG: GSocketClient: Connection successful! 1131s ok 3 /socket-service/read_writev_async 1131s # Start of threaded tests 1131s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=712570 1131s # GLib-GIO-DEBUG: g_socket_client_connect_async: starting new g_socket_client_connect_async() with GTask 0x236a3d8 and GSocketClientAsyncConnectData 0x2369840 1131s # GLib-GIO-DEBUG: GSocketClient: Starting new address enumeration 1131s # GLib-GIO-DEBUG: GSocketClient: Address enumeration succeeded 1131s # GLib-GIO-DEBUG: g_socket_client_enumerator_callback: starting connection attempt 0x236a560 for GSocketClientAsyncConnectData 0x2369840 1131s # GLib-GIO-DEBUG: GSocketClient: Starting TCP connection attempt 1131s # GLib-GIO-DEBUG: GSocketClient: TCP connection successful 1131s # GLib-GIO-DEBUG: GSocketClient: Starting application layer connection 1131s # GLib-GIO-DEBUG: GSocketClient: Connection successful! 1131s ok 4 /socket-service/threaded/712570 1131s # End of threaded tests 1131s # End of socket-service tests 1131s TAP version 14 1131s # random seed: R02S2d4443b22207b71d4653ade713a14187 1131s 1..8 1131s # Start of gdbus tests 1131s # Start of codegen tests 1131s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-test-codegen_6765J3/gdbus/codegen/annotations/.dirs/home 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-test-codegen_6765J3/gdbus/codegen/annotations/.dirs/cache 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-test-codegen_6765J3/gdbus/codegen/annotations/.dirs/system-config1:/tmp/test_gdbus-test-codegen_6765J3/gdbus/codegen/annotations/.dirs/system-config2 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-test-codegen_6765J3/gdbus/codegen/annotations/.dirs/config 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-test-codegen_6765J3/gdbus/codegen/annotations/.dirs/system-data1:/tmp/test_gdbus-test-codegen_6765J3/gdbus/codegen/annotations/.dirs/system-data2 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-test-codegen_6765J3/gdbus/codegen/annotations/.dirs/data 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-test-codegen_6765J3/gdbus/codegen/annotations/.dirs/state 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-test-codegen_6765J3/gdbus/codegen/annotations/.dirs/runtime 1131s ok 1 /gdbus/codegen/annotations 1131s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-test-codegen_6765J3/gdbus/codegen/interface_stability/.dirs/home 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-test-codegen_6765J3/gdbus/codegen/interface_stability/.dirs/cache 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-test-codegen_6765J3/gdbus/codegen/interface_stability/.dirs/system-config1:/tmp/test_gdbus-test-codegen_6765J3/gdbus/codegen/interface_stability/.dirs/system-config2 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-test-codegen_6765J3/gdbus/codegen/interface_stability/.dirs/config 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-test-codegen_6765J3/gdbus/codegen/interface_stability/.dirs/system-data1:/tmp/test_gdbus-test-codegen_6765J3/gdbus/codegen/interface_stability/.dirs/system-data2 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-test-codegen_6765J3/gdbus/codegen/interface_stability/.dirs/data 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-test-codegen_6765J3/gdbus/codegen/interface_stability/.dirs/state 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-test-codegen_6765J3/gdbus/codegen/interface_stability/.dirs/runtime 1131s ok 2 /gdbus/codegen/interface_stability 1131s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-test-codegen_6765J3/gdbus/codegen/object-manager/.dirs/home 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-test-codegen_6765J3/gdbus/codegen/object-manager/.dirs/cache 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-test-codegen_6765J3/gdbus/codegen/object-manager/.dirs/system-config1:/tmp/test_gdbus-test-codegen_6765J3/gdbus/codegen/object-manager/.dirs/system-config2 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-test-codegen_6765J3/gdbus/codegen/object-manager/.dirs/config 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-test-codegen_6765J3/gdbus/codegen/object-manager/.dirs/system-data1:/tmp/test_gdbus-test-codegen_6765J3/gdbus/codegen/object-manager/.dirs/system-data2 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-test-codegen_6765J3/gdbus/codegen/object-manager/.dirs/data 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-test-codegen_6765J3/gdbus/codegen/object-manager/.dirs/state 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-test-codegen_6765J3/gdbus/codegen/object-manager/.dirs/runtime 1131s ok 3 /gdbus/codegen/object-manager 1131s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-test-codegen_6765J3/gdbus/codegen/property-naming/.dirs/home 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-test-codegen_6765J3/gdbus/codegen/property-naming/.dirs/cache 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-test-codegen_6765J3/gdbus/codegen/property-naming/.dirs/system-config1:/tmp/test_gdbus-test-codegen_6765J3/gdbus/codegen/property-naming/.dirs/system-config2 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-test-codegen_6765J3/gdbus/codegen/property-naming/.dirs/config 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-test-codegen_6765J3/gdbus/codegen/property-naming/.dirs/system-data1:/tmp/test_gdbus-test-codegen_6765J3/gdbus/codegen/property-naming/.dirs/system-data2 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-test-codegen_6765J3/gdbus/codegen/property-naming/.dirs/data 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-test-codegen_6765J3/gdbus/codegen/property-naming/.dirs/state 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-test-codegen_6765J3/gdbus/codegen/property-naming/.dirs/runtime 1131s ok 4 /gdbus/codegen/property-naming 1131s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-test-codegen_6765J3/gdbus/codegen/autocleanups/.dirs/home 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-test-codegen_6765J3/gdbus/codegen/autocleanups/.dirs/cache 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-test-codegen_6765J3/gdbus/codegen/autocleanups/.dirs/system-config1:/tmp/test_gdbus-test-codegen_6765J3/gdbus/codegen/autocleanups/.dirs/system-config2 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-test-codegen_6765J3/gdbus/codegen/autocleanups/.dirs/config 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-test-codegen_6765J3/gdbus/codegen/autocleanups/.dirs/system-data1:/tmp/test_gdbus-test-codegen_6765J3/gdbus/codegen/autocleanups/.dirs/system-data2 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-test-codegen_6765J3/gdbus/codegen/autocleanups/.dirs/data 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-test-codegen_6765J3/gdbus/codegen/autocleanups/.dirs/state 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-test-codegen_6765J3/gdbus/codegen/autocleanups/.dirs/runtime 1131s ok 5 /gdbus/codegen/autocleanups 1131s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-test-codegen_6765J3/gdbus/codegen/deprecations/.dirs/home 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-test-codegen_6765J3/gdbus/codegen/deprecations/.dirs/cache 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-test-codegen_6765J3/gdbus/codegen/deprecations/.dirs/system-config1:/tmp/test_gdbus-test-codegen_6765J3/gdbus/codegen/deprecations/.dirs/system-config2 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-test-codegen_6765J3/gdbus/codegen/deprecations/.dirs/config 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-test-codegen_6765J3/gdbus/codegen/deprecations/.dirs/system-data1:/tmp/test_gdbus-test-codegen_6765J3/gdbus/codegen/deprecations/.dirs/system-data2 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-test-codegen_6765J3/gdbus/codegen/deprecations/.dirs/data 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-test-codegen_6765J3/gdbus/codegen/deprecations/.dirs/state 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-test-codegen_6765J3/gdbus/codegen/deprecations/.dirs/runtime 1131s ok 6 /gdbus/codegen/deprecations 1131s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-test-codegen_6765J3/gdbus/codegen/standalone-interface-info/.dirs/home 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-test-codegen_6765J3/gdbus/codegen/standalone-interface-info/.dirs/cache 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-test-codegen_6765J3/gdbus/codegen/standalone-interface-info/.dirs/system-config1:/tmp/test_gdbus-test-codegen_6765J3/gdbus/codegen/standalone-interface-info/.dirs/system-config2 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-test-codegen_6765J3/gdbus/codegen/standalone-interface-info/.dirs/config 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-test-codegen_6765J3/gdbus/codegen/standalone-interface-info/.dirs/system-data1:/tmp/test_gdbus-test-codegen_6765J3/gdbus/codegen/standalone-interface-info/.dirs/system-data2 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-test-codegen_6765J3/gdbus/codegen/standalone-interface-info/.dirs/data 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-test-codegen_6765J3/gdbus/codegen/standalone-interface-info/.dirs/state 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-test-codegen_6765J3/gdbus/codegen/standalone-interface-info/.dirs/runtime 1131s ok 7 /gdbus/codegen/standalone-interface-info 1131s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-test-codegen_6765J3/gdbus/codegen/unix-fd-list/.dirs/home 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-test-codegen_6765J3/gdbus/codegen/unix-fd-list/.dirs/cache 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-test-codegen_6765J3/gdbus/codegen/unix-fd-list/.dirs/system-config1:/tmp/test_gdbus-test-codegen_6765J3/gdbus/codegen/unix-fd-list/.dirs/system-config2 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-test-codegen_6765J3/gdbus/codegen/unix-fd-list/.dirs/config 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-test-codegen_6765J3/gdbus/codegen/unix-fd-list/.dirs/system-data1:/tmp/test_gdbus-test-codegen_6765J3/gdbus/codegen/unix-fd-list/.dirs/system-data2 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-test-codegen_6765J3/gdbus/codegen/unix-fd-list/.dirs/data 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-test-codegen_6765J3/gdbus/codegen/unix-fd-list/.dirs/state 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-test-codegen_6765J3/gdbus/codegen/unix-fd-list/.dirs/runtime 1131s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/issues/1726 1131s ok 8 /gdbus/codegen/unix-fd-list 1131s # End of codegen tests 1131s # End of gdbus tests 1131s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1131s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1131s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1131s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1131s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1131s TAP version 14 1131s # random seed: R02Sae4e8f6636516586d250149dcd492d2a 1131s 1..5 1131s # Start of once tests 1131s # /once/single-threaded summary: Test g_once() usage from a single thread 1131s ok 1 /once/single-threaded 1131s # /once/multi-threaded summary: Test g_once() usage from multiple threads 1131s ok 2 /once/multi-threaded 1131s # End of once tests 1131s # Start of once-init tests 1131s # /once-init/single-threaded summary: Test g_once_init_{enter,leave}() usage from a single thread 1131s ok 3 /once-init/single-threaded 1131s # /once-init/multi-threaded summary: Test g_once_init_{enter,leave}() usage from multiple threads 1131s ok 4 /once-init/multi-threaded 1131s # /once-init/string summary: Test g_once_init_{enter,leave}() usage with a string 1131s ok 5 /once-init/string 1131s # End of once-init tests 1131s ok - glib/once.test 1131s # Running test: glib/slist.test 1131s TAP version 14 1131s # random seed: R02S0e471343c3408401eaa61fff41963625 1131s 1..14 1131s # Start of slist tests 1131s ok 1 /slist/sort 1131s ok 2 /slist/sort-with-data 1131s ok 3 /slist/insert-sorted 1131s ok 4 /slist/insert-sorted-with-data 1131s ok 5 /slist/reverse 1131s ok 6 /slist/nth 1131s ok 7 /slist/remove 1131s ok 8 /slist/remove-all 1131s ok 9 /slist/insert 1131s ok 10 /slist/position 1131s ok 11 /slist/concat 1131s ok 12 /slist/copy 1131s # Start of sort tests 1131s ok 13 /slist/sort/stable 1131s # End of sort tests 1131s # Start of copy tests 1131s ok 14 /slist/copy/deep 1131s # End of copy tests 1131s # End of slist tests 1131s ok - glib/slist.test 1131s # Running test: glib/file.test 1131s TAP version 14 1131s # random seed: R02S2a69e89a59e6e11fb6140534dbbbbbc7 1131s 1..55 1131s # Start of file tests 1131s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file_PP8OK3/file/basic/.dirs/home 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file_PP8OK3/file/basic/.dirs/cache 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file_PP8OK3/file/basic/.dirs/system-config1:/tmp/test_file_PP8OK3/file/basic/.dirs/system-config2 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file_PP8OK3/file/basic/.dirs/config 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file_PP8OK3/file/basic/.dirs/system-data1:/tmp/test_file_PP8OK3/file/basic/.dirs/system-data2 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file_PP8OK3/file/basic/.dirs/data 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file_PP8OK3/file/basic/.dirs/state 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file_PP8OK3/file/basic/.dirs/runtime 1131s # GLib-GIO-DEBUG: _g_io_module_get_default: Found default implementation local (GLocalVfs) for ‘gio-vfs’ 1131s ok 1 /file/basic 1131s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file_PP8OK3/file/build-filename/.dirs/home 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file_PP8OK3/file/build-filename/.dirs/cache 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file_PP8OK3/file/build-filename/.dirs/system-config1:/tmp/test_file_PP8OK3/file/build-filename/.dirs/system-config2 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file_PP8OK3/file/build-filename/.dirs/config 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file_PP8OK3/file/build-filename/.dirs/system-data1:/tmp/test_file_PP8OK3/file/build-filename/.dirs/system-data2 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file_PP8OK3/file/build-filename/.dirs/data 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file_PP8OK3/file/build-filename/.dirs/state 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file_PP8OK3/file/build-filename/.dirs/runtime 1131s ok 2 /file/build-filename 1131s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file_PP8OK3/file/build-filenamev/.dirs/home 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file_PP8OK3/file/build-filenamev/.dirs/cache 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file_PP8OK3/file/build-filenamev/.dirs/system-config1:/tmp/test_file_PP8OK3/file/build-filenamev/.dirs/system-config2 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file_PP8OK3/file/build-filenamev/.dirs/config 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file_PP8OK3/file/build-filenamev/.dirs/system-data1:/tmp/test_file_PP8OK3/file/build-filenamev/.dirs/system-data2 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file_PP8OK3/file/build-filenamev/.dirs/data 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file_PP8OK3/file/build-filenamev/.dirs/state 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file_PP8OK3/file/build-filenamev/.dirs/runtime 1131s ok 3 /file/build-filenamev 1131s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file_PP8OK3/file/parent/.dirs/home 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file_PP8OK3/file/parent/.dirs/cache 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file_PP8OK3/file/parent/.dirs/system-config1:/tmp/test_file_PP8OK3/file/parent/.dirs/system-config2 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file_PP8OK3/file/parent/.dirs/config 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file_PP8OK3/file/parent/.dirs/system-data1:/tmp/test_file_PP8OK3/file/parent/.dirs/system-data2 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file_PP8OK3/file/parent/.dirs/data 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file_PP8OK3/file/parent/.dirs/state 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file_PP8OK3/file/parent/.dirs/runtime 1131s ok 4 /file/parent 1131s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file_PP8OK3/file/child/.dirs/home 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file_PP8OK3/file/child/.dirs/cache 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file_PP8OK3/file/child/.dirs/system-config1:/tmp/test_file_PP8OK3/file/child/.dirs/system-config2 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file_PP8OK3/file/child/.dirs/config 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file_PP8OK3/file/child/.dirs/system-data1:/tmp/test_file_PP8OK3/file/child/.dirs/system-data2 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file_PP8OK3/file/child/.dirs/data 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file_PP8OK3/file/child/.dirs/state 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file_PP8OK3/file/child/.dirs/runtime 1131s ok 5 /file/child 1131s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file_PP8OK3/file/empty-path/.dirs/home 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file_PP8OK3/file/empty-path/.dirs/cache 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file_PP8OK3/file/empty-path/.dirs/system-config1:/tmp/test_file_PP8OK3/file/empty-path/.dirs/system-config2 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file_PP8OK3/file/empty-path/.dirs/config 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file_PP8OK3/file/empty-path/.dirs/system-data1:/tmp/test_file_PP8OK3/file/empty-path/.dirs/system-data2 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file_PP8OK3/file/empty-path/.dirs/data 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file_PP8OK3/file/empty-path/.dirs/state 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file_PP8OK3/file/empty-path/.dirs/runtime 1131s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/2328 1131s # /file/empty-path summary: Check that creating a file with an empty path results in errors 1131s ok 6 /file/empty-path 1131s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file_PP8OK3/file/type/.dirs/home 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file_PP8OK3/file/type/.dirs/cache 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file_PP8OK3/file/type/.dirs/system-config1:/tmp/test_file_PP8OK3/file/type/.dirs/system-config2 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file_PP8OK3/file/type/.dirs/config 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file_PP8OK3/file/type/.dirs/system-data1:/tmp/test_file_PP8OK3/file/type/.dirs/system-data2 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file_PP8OK3/file/type/.dirs/data 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file_PP8OK3/file/type/.dirs/state 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file_PP8OK3/file/type/.dirs/runtime 1131s ok 7 /file/type 1131s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file_PP8OK3/file/parse-name/.dirs/home 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file_PP8OK3/file/parse-name/.dirs/cache 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file_PP8OK3/file/parse-name/.dirs/system-config1:/tmp/test_file_PP8OK3/file/parse-name/.dirs/system-config2 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file_PP8OK3/file/parse-name/.dirs/config 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file_PP8OK3/file/parse-name/.dirs/system-data1:/tmp/test_file_PP8OK3/file/parse-name/.dirs/system-data2 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file_PP8OK3/file/parse-name/.dirs/data 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file_PP8OK3/file/parse-name/.dirs/state 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file_PP8OK3/file/parse-name/.dirs/runtime 1131s ok 8 /file/parse-name 1131s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file_PP8OK3/file/replace-load/.dirs/home 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file_PP8OK3/file/replace-load/.dirs/cache 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file_PP8OK3/file/replace-load/.dirs/system-config1:/tmp/test_file_PP8OK3/file/replace-load/.dirs/system-config2 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file_PP8OK3/file/replace-load/.dirs/config 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file_PP8OK3/file/replace-load/.dirs/system-data1:/tmp/test_file_PP8OK3/file/replace-load/.dirs/system-data2 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file_PP8OK3/file/replace-load/.dirs/data 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file_PP8OK3/file/replace-load/.dirs/state 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file_PP8OK3/file/replace-load/.dirs/runtime 1131s ok 9 /file/replace-load 1131s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file_PP8OK3/file/replace-cancel/.dirs/home 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file_PP8OK3/file/replace-cancel/.dirs/cache 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file_PP8OK3/file/replace-cancel/.dirs/system-config1:/tmp/test_file_PP8OK3/file/replace-cancel/.dirs/system-config2 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file_PP8OK3/file/replace-cancel/.dirs/config 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file_PP8OK3/file/replace-cancel/.dirs/system-data1:/tmp/test_file_PP8OK3/file/replace-cancel/.dirs/system-data2 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file_PP8OK3/file/replace-cancel/.dirs/data 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file_PP8OK3/file/replace-cancel/.dirs/state 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file_PP8OK3/file/replace-cancel/.dirs/runtime 1131s # Bug Reference: https://bugzilla.gnome.org/629301 1131s ok 10 /file/replace-cancel 1131s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file_PP8OK3/file/replace-symlink/.dirs/home 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file_PP8OK3/file/replace-symlink/.dirs/cache 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file_PP8OK3/file/replace-symlink/.dirs/system-config1:/tmp/test_file_PP8OK3/file/replace-symlink/.dirs/system-config2 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file_PP8OK3/file/replace-symlink/.dirs/config 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file_PP8OK3/file/replace-symlink/.dirs/system-data1:/tmp/test_file_PP8OK3/file/replace-symlink/.dirs/system-data2 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file_PP8OK3/file/replace-symlink/.dirs/data 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file_PP8OK3/file/replace-symlink/.dirs/state 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file_PP8OK3/file/replace-symlink/.dirs/runtime 1131s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/2325 1131s # /file/replace-symlink summary: Test that G_FILE_CREATE_REPLACE_DESTINATION doesn’t follow symlinks 1131s # Using temporary directory /tmp/test_file_PP8OK3/g_file_replace_symlink_L8LPK3 1131s ok 11 /file/replace-symlink 1131s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file_PP8OK3/file/async-new-tmp/.dirs/home 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file_PP8OK3/file/async-new-tmp/.dirs/cache 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file_PP8OK3/file/async-new-tmp/.dirs/system-config1:/tmp/test_file_PP8OK3/file/async-new-tmp/.dirs/system-config2 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file_PP8OK3/file/async-new-tmp/.dirs/config 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file_PP8OK3/file/async-new-tmp/.dirs/system-data1:/tmp/test_file_PP8OK3/file/async-new-tmp/.dirs/system-data2 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file_PP8OK3/file/async-new-tmp/.dirs/data 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file_PP8OK3/file/async-new-tmp/.dirs/state 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file_PP8OK3/file/async-new-tmp/.dirs/runtime 1131s ok 12 /file/async-new-tmp 1131s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file_PP8OK3/file/async-new-tmp-dir/.dirs/home 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file_PP8OK3/file/async-new-tmp-dir/.dirs/cache 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file_PP8OK3/file/async-new-tmp-dir/.dirs/system-config1:/tmp/test_file_PP8OK3/file/async-new-tmp-dir/.dirs/system-config2 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file_PP8OK3/file/async-new-tmp-dir/.dirs/config 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file_PP8OK3/file/async-new-tmp-dir/.dirs/system-data1:/tmp/test_file_PP8OK3/file/async-new-tmp-dir/.dirs/system-data2 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file_PP8OK3/file/async-new-tmp-dir/.dirs/data 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file_PP8OK3/file/async-new-tmp-dir/.dirs/state 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file_PP8OK3/file/async-new-tmp-dir/.dirs/runtime 1131s ok 13 /file/async-new-tmp-dir 1131s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file_PP8OK3/file/async-delete/.dirs/home 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file_PP8OK3/file/async-delete/.dirs/cache 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file_PP8OK3/file/async-delete/.dirs/system-config1:/tmp/test_file_PP8OK3/file/async-delete/.dirs/system-config2 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file_PP8OK3/file/async-delete/.dirs/config 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file_PP8OK3/file/async-delete/.dirs/system-data1:/tmp/test_file_PP8OK3/file/async-delete/.dirs/system-data2 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file_PP8OK3/file/async-delete/.dirs/data 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file_PP8OK3/file/async-delete/.dirs/state 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file_PP8OK3/file/async-delete/.dirs/runtime 1131s ok 14 /file/async-delete 1131s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file_PP8OK3/file/async-make-symlink/.dirs/home 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file_PP8OK3/file/async-make-symlink/.dirs/cache 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file_PP8OK3/file/async-make-symlink/.dirs/system-config1:/tmp/test_file_PP8OK3/file/async-make-symlink/.dirs/system-config2 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file_PP8OK3/file/async-make-symlink/.dirs/config 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file_PP8OK3/file/async-make-symlink/.dirs/system-data1:/tmp/test_file_PP8OK3/file/async-make-symlink/.dirs/system-data2 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file_PP8OK3/file/async-make-symlink/.dirs/data 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file_PP8OK3/file/async-make-symlink/.dirs/state 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file_PP8OK3/file/async-make-symlink/.dirs/runtime 1131s ok 15 /file/async-make-symlink 1131s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file_PP8OK3/file/copy-preserve-mode/.dirs/home 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file_PP8OK3/file/copy-preserve-mode/.dirs/cache 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file_PP8OK3/file/copy-preserve-mode/.dirs/system-config1:/tmp/test_file_PP8OK3/file/copy-preserve-mode/.dirs/system-config2 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file_PP8OK3/file/copy-preserve-mode/.dirs/config 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file_PP8OK3/file/copy-preserve-mode/.dirs/system-data1:/tmp/test_file_PP8OK3/file/copy-preserve-mode/.dirs/system-data2 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file_PP8OK3/file/copy-preserve-mode/.dirs/data 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file_PP8OK3/file/copy-preserve-mode/.dirs/state 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file_PP8OK3/file/copy-preserve-mode/.dirs/runtime 1131s # Current umask: 2 1131s # Vector 0 1131s # Vector 1 1131s # Vector 2 1131s # Vector 3 1131s # Vector 4 1131s # Vector 5 1131s # Vector 6 1131s # Vector 7 1131s # Vector 8 1131s # Vector 9 1131s # Vector 10 1131s ok 16 /file/copy-preserve-mode 1131s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file_PP8OK3/file/copy-async-with-closures/.dirs/home 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file_PP8OK3/file/copy-async-with-closures/.dirs/cache 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file_PP8OK3/file/copy-async-with-closures/.dirs/system-config1:/tmp/test_file_PP8OK3/file/copy-async-with-closures/.dirs/system-config2 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file_PP8OK3/file/copy-async-with-closures/.dirs/config 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file_PP8OK3/file/copy-async-with-closures/.dirs/system-data1:/tmp/test_file_PP8OK3/file/copy-async-with-closures/.dirs/system-data2 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file_PP8OK3/file/copy-async-with-closures/.dirs/data 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file_PP8OK3/file/copy-async-with-closures/.dirs/state 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file_PP8OK3/file/copy-async-with-closures/.dirs/runtime 1131s ok 17 /file/copy-async-with-closures 1131s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file_PP8OK3/file/measure/.dirs/home 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file_PP8OK3/file/measure/.dirs/cache 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file_PP8OK3/file/measure/.dirs/system-config1:/tmp/test_file_PP8OK3/file/measure/.dirs/system-config2 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file_PP8OK3/file/measure/.dirs/config 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file_PP8OK3/file/measure/.dirs/system-data1:/tmp/test_file_PP8OK3/file/measure/.dirs/system-data2 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file_PP8OK3/file/measure/.dirs/data 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file_PP8OK3/file/measure/.dirs/state 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file_PP8OK3/file/measure/.dirs/runtime 1131s ok 18 /file/measure 1131s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file_PP8OK3/file/measure-async/.dirs/home 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file_PP8OK3/file/measure-async/.dirs/cache 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file_PP8OK3/file/measure-async/.dirs/system-config1:/tmp/test_file_PP8OK3/file/measure-async/.dirs/system-config2 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file_PP8OK3/file/measure-async/.dirs/config 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file_PP8OK3/file/measure-async/.dirs/system-data1:/tmp/test_file_PP8OK3/file/measure-async/.dirs/system-data2 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file_PP8OK3/file/measure-async/.dirs/data 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file_PP8OK3/file/measure-async/.dirs/state 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file_PP8OK3/file/measure-async/.dirs/runtime 1131s ok 19 /file/measure-async 1131s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file_PP8OK3/file/load-bytes/.dirs/home 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file_PP8OK3/file/load-bytes/.dirs/cache 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file_PP8OK3/file/load-bytes/.dirs/system-config1:/tmp/test_file_PP8OK3/file/load-bytes/.dirs/system-config2 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file_PP8OK3/file/load-bytes/.dirs/config 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file_PP8OK3/file/load-bytes/.dirs/system-data1:/tmp/test_file_PP8OK3/file/load-bytes/.dirs/system-data2 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file_PP8OK3/file/load-bytes/.dirs/data 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file_PP8OK3/file/load-bytes/.dirs/state 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file_PP8OK3/file/load-bytes/.dirs/runtime 1131s ok 20 /file/load-bytes 1131s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file_PP8OK3/file/load-bytes-async/.dirs/home 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file_PP8OK3/file/load-bytes-async/.dirs/cache 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file_PP8OK3/file/load-bytes-async/.dirs/system-config1:/tmp/test_file_PP8OK3/file/load-bytes-async/.dirs/system-config2 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file_PP8OK3/file/load-bytes-async/.dirs/config 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file_PP8OK3/file/load-bytes-async/.dirs/system-data1:/tmp/test_file_PP8OK3/file/load-bytes-async/.dirs/system-data2 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file_PP8OK3/file/load-bytes-async/.dirs/data 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file_PP8OK3/file/load-bytes-async/.dirs/state 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file_PP8OK3/file/load-bytes-async/.dirs/runtime 1131s ok 21 /file/load-bytes-async 1131s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file_PP8OK3/file/load-bytes-4gb/.dirs/home 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file_PP8OK3/file/load-bytes-4gb/.dirs/cache 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file_PP8OK3/file/load-bytes-4gb/.dirs/system-config1:/tmp/test_file_PP8OK3/file/load-bytes-4gb/.dirs/system-config2 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file_PP8OK3/file/load-bytes-4gb/.dirs/config 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file_PP8OK3/file/load-bytes-4gb/.dirs/system-data1:/tmp/test_file_PP8OK3/file/load-bytes-4gb/.dirs/system-data2 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file_PP8OK3/file/load-bytes-4gb/.dirs/data 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file_PP8OK3/file/load-bytes-4gb/.dirs/state 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file_PP8OK3/file/load-bytes-4gb/.dirs/runtime 1131s ok 22 /file/load-bytes-4gb # SKIP Skipping slow >4GB file test 1131s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file_PP8OK3/file/load-contents-4gb/.dirs/home 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file_PP8OK3/file/load-contents-4gb/.dirs/cache 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file_PP8OK3/file/load-contents-4gb/.dirs/system-config1:/tmp/test_file_PP8OK3/file/load-contents-4gb/.dirs/system-config2 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file_PP8OK3/file/load-contents-4gb/.dirs/config 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file_PP8OK3/file/load-contents-4gb/.dirs/system-data1:/tmp/test_file_PP8OK3/file/load-contents-4gb/.dirs/system-data2 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file_PP8OK3/file/load-contents-4gb/.dirs/data 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file_PP8OK3/file/load-contents-4gb/.dirs/state 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file_PP8OK3/file/load-contents-4gb/.dirs/runtime 1131s ok 23 /file/load-contents-4gb # SKIP Skipping slow >4GB file test 1131s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file_PP8OK3/file/load-contents-4gb-async/.dirs/home 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file_PP8OK3/file/load-contents-4gb-async/.dirs/cache 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file_PP8OK3/file/load-contents-4gb-async/.dirs/system-config1:/tmp/test_file_PP8OK3/file/load-contents-4gb-async/.dirs/system-config2 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file_PP8OK3/file/load-contents-4gb-async/.dirs/config 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file_PP8OK3/file/load-contents-4gb-async/.dirs/system-data1:/tmp/test_file_PP8OK3/file/load-contents-4gb-async/.dirs/system-data2 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file_PP8OK3/file/load-contents-4gb-async/.dirs/data 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file_PP8OK3/file/load-contents-4gb-async/.dirs/state 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file_PP8OK3/file/load-contents-4gb-async/.dirs/runtime 1131s ok 24 /file/load-contents-4gb-async # SKIP Skipping slow >4GB file test 1131s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file_PP8OK3/file/writev/.dirs/home 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file_PP8OK3/file/writev/.dirs/cache 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file_PP8OK3/file/writev/.dirs/system-config1:/tmp/test_file_PP8OK3/file/writev/.dirs/system-config2 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file_PP8OK3/file/writev/.dirs/config 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file_PP8OK3/file/writev/.dirs/system-data1:/tmp/test_file_PP8OK3/file/writev/.dirs/system-data2 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file_PP8OK3/file/writev/.dirs/data 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file_PP8OK3/file/writev/.dirs/state 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file_PP8OK3/file/writev/.dirs/runtime 1131s ok 25 /file/writev 1131s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file_PP8OK3/file/build-attribute-list-for-copy/.dirs/home 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file_PP8OK3/file/build-attribute-list-for-copy/.dirs/cache 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file_PP8OK3/file/build-attribute-list-for-copy/.dirs/system-config1:/tmp/test_file_PP8OK3/file/build-attribute-list-for-copy/.dirs/system-config2 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file_PP8OK3/file/build-attribute-list-for-copy/.dirs/config 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file_PP8OK3/file/build-attribute-list-for-copy/.dirs/system-data1:/tmp/test_file_PP8OK3/file/build-attribute-list-for-copy/.dirs/system-data2 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file_PP8OK3/file/build-attribute-list-for-copy/.dirs/data 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file_PP8OK3/file/build-attribute-list-for-copy/.dirs/state 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file_PP8OK3/file/build-attribute-list-for-copy/.dirs/runtime 1131s # Attributes for copy: standard::size,time::modified,time::modified-nsec,time::modified-usec,unix::mode,xattr::* 1131s # Attributes for copy: standard::size,time::modified,time::modified-nsec,time::modified-usec,xattr::* 1131s # 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::* 1131s # 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::* 1131s # Attributes for copy: standard::size,time::access,time::access-nsec,time::access-usec,unix::gid,unix::mode,unix::uid,xattr::*,xattr-sys::* 1131s # Attributes for copy: standard::size,xattr::* 1131s # Attributes for copy: standard::size,unix::mode,xattr::* 1131s ok 26 /file/build-attribute-list-for-copy 1131s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file_PP8OK3/file/move_async/.dirs/home 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file_PP8OK3/file/move_async/.dirs/cache 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file_PP8OK3/file/move_async/.dirs/system-config1:/tmp/test_file_PP8OK3/file/move_async/.dirs/system-config2 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file_PP8OK3/file/move_async/.dirs/config 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file_PP8OK3/file/move_async/.dirs/system-data1:/tmp/test_file_PP8OK3/file/move_async/.dirs/system-data2 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file_PP8OK3/file/move_async/.dirs/data 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file_PP8OK3/file/move_async/.dirs/state 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file_PP8OK3/file/move_async/.dirs/runtime 1131s ok 27 /file/move_async 1131s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file_PP8OK3/file/move-async-with-closures/.dirs/home 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file_PP8OK3/file/move-async-with-closures/.dirs/cache 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file_PP8OK3/file/move-async-with-closures/.dirs/system-config1:/tmp/test_file_PP8OK3/file/move-async-with-closures/.dirs/system-config2 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file_PP8OK3/file/move-async-with-closures/.dirs/config 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file_PP8OK3/file/move-async-with-closures/.dirs/system-data1:/tmp/test_file_PP8OK3/file/move-async-with-closures/.dirs/system-data2 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file_PP8OK3/file/move-async-with-closures/.dirs/data 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file_PP8OK3/file/move-async-with-closures/.dirs/state 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file_PP8OK3/file/move-async-with-closures/.dirs/runtime 1131s ok 28 /file/move-async-with-closures 1131s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file_PP8OK3/file/query-zero-length-content-type/.dirs/home 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file_PP8OK3/file/query-zero-length-content-type/.dirs/cache 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file_PP8OK3/file/query-zero-length-content-type/.dirs/system-config1:/tmp/test_file_PP8OK3/file/query-zero-length-content-type/.dirs/system-config2 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file_PP8OK3/file/query-zero-length-content-type/.dirs/config 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file_PP8OK3/file/query-zero-length-content-type/.dirs/system-data1:/tmp/test_file_PP8OK3/file/query-zero-length-content-type/.dirs/system-data2 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file_PP8OK3/file/query-zero-length-content-type/.dirs/data 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file_PP8OK3/file/query-zero-length-content-type/.dirs/state 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file_PP8OK3/file/query-zero-length-content-type/.dirs/runtime 1131s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=755795 1131s # /file/query-zero-length-content-type summary: empty files should always be considered application/x-zerosize 1131s ok 29 /file/query-zero-length-content-type 1131s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file_PP8OK3/file/query-default-handler-file/.dirs/home 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file_PP8OK3/file/query-default-handler-file/.dirs/cache 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file_PP8OK3/file/query-default-handler-file/.dirs/system-config1:/tmp/test_file_PP8OK3/file/query-default-handler-file/.dirs/system-config2 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file_PP8OK3/file/query-default-handler-file/.dirs/config 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file_PP8OK3/file/query-default-handler-file/.dirs/system-data1:/tmp/test_file_PP8OK3/file/query-default-handler-file/.dirs/system-data2 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file_PP8OK3/file/query-default-handler-file/.dirs/data 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file_PP8OK3/file/query-default-handler-file/.dirs/state 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file_PP8OK3/file/query-default-handler-file/.dirs/runtime 1131s # GLib-GIO-DEBUG: ensure_dir: Ensuring /tmp/test_file_PP8OK3/file/query-default-handler-file/.dirs/data/applications 1131s # GLib-GIO-DEBUG: ensure_dir: Ensuring /tmp/test_file_PP8OK3/file/query-default-handler-file/.dirs/config 1131s # GLib-GIO-DEBUG: ensure_dir: Ensuring /tmp/test_file_PP8OK3/file/query-default-handler-file/.dirs/config 1131s # GLib-GIO-DEBUG: ensure_dir: Ensuring /tmp/test_file_PP8OK3/file/query-default-handler-file/.dirs/config 1131s ok 30 /file/query-default-handler-file 1131s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file_PP8OK3/file/query-default-handler-file-async/.dirs/home 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file_PP8OK3/file/query-default-handler-file-async/.dirs/cache 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file_PP8OK3/file/query-default-handler-file-async/.dirs/system-config1:/tmp/test_file_PP8OK3/file/query-default-handler-file-async/.dirs/system-config2 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file_PP8OK3/file/query-default-handler-file-async/.dirs/config 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file_PP8OK3/file/query-default-handler-file-async/.dirs/system-data1:/tmp/test_file_PP8OK3/file/query-default-handler-file-async/.dirs/system-data2 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file_PP8OK3/file/query-default-handler-file-async/.dirs/data 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file_PP8OK3/file/query-default-handler-file-async/.dirs/state 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file_PP8OK3/file/query-default-handler-file-async/.dirs/runtime 1131s # GLib-GIO-DEBUG: ensure_dir: Ensuring /tmp/test_file_PP8OK3/file/query-default-handler-file-async/.dirs/data/applications 1131s # GLib-GIO-DEBUG: ensure_dir: Ensuring /tmp/test_file_PP8OK3/file/query-default-handler-file-async/.dirs/config 1131s # GLib-GIO-DEBUG: desktop_file_dirs_lock: Resetting desktop app info dirs from /tmp/test_file_PP8OK3/file/query-default-handler-file/.dirs/config to /tmp/test_file_PP8OK3/file/query-default-handler-file-async/.dirs/config 1131s # GLib-GIO-DEBUG: ensure_dir: Ensuring /tmp/test_file_PP8OK3/file/query-default-handler-file-async/.dirs/config 1131s # GLib-GIO-DEBUG: ensure_dir: Ensuring /tmp/test_file_PP8OK3/file/query-default-handler-file-async/.dirs/config 1131s ok 31 /file/query-default-handler-file-async 1131s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file_PP8OK3/file/query-default-handler-uri/.dirs/home 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file_PP8OK3/file/query-default-handler-uri/.dirs/cache 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file_PP8OK3/file/query-default-handler-uri/.dirs/system-config1:/tmp/test_file_PP8OK3/file/query-default-handler-uri/.dirs/system-config2 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file_PP8OK3/file/query-default-handler-uri/.dirs/config 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file_PP8OK3/file/query-default-handler-uri/.dirs/system-data1:/tmp/test_file_PP8OK3/file/query-default-handler-uri/.dirs/system-data2 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file_PP8OK3/file/query-default-handler-uri/.dirs/data 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file_PP8OK3/file/query-default-handler-uri/.dirs/state 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file_PP8OK3/file/query-default-handler-uri/.dirs/runtime 1131s # GLib-GIO-DEBUG: ensure_dir: Ensuring /tmp/test_file_PP8OK3/file/query-default-handler-uri/.dirs/data/applications 1131s # GLib-GIO-DEBUG: ensure_dir: Ensuring /tmp/test_file_PP8OK3/file/query-default-handler-uri/.dirs/config 1131s # GLib-GIO-DEBUG: desktop_file_dirs_lock: Resetting desktop app info dirs from /tmp/test_file_PP8OK3/file/query-default-handler-file-async/.dirs/config to /tmp/test_file_PP8OK3/file/query-default-handler-uri/.dirs/config 1131s # GLib-GIO-DEBUG: ensure_dir: Ensuring /tmp/test_file_PP8OK3/file/query-default-handler-uri/.dirs/config 1131s # GLib-GIO-DEBUG: ensure_dir: Ensuring /tmp/test_file_PP8OK3/file/query-default-handler-uri/.dirs/config 1131s ok 32 /file/query-default-handler-uri 1131s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file_PP8OK3/file/query-default-handler-uri-async/.dirs/home 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file_PP8OK3/file/query-default-handler-uri-async/.dirs/cache 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file_PP8OK3/file/query-default-handler-uri-async/.dirs/system-config1:/tmp/test_file_PP8OK3/file/query-default-handler-uri-async/.dirs/system-config2 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file_PP8OK3/file/query-default-handler-uri-async/.dirs/config 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file_PP8OK3/file/query-default-handler-uri-async/.dirs/system-data1:/tmp/test_file_PP8OK3/file/query-default-handler-uri-async/.dirs/system-data2 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file_PP8OK3/file/query-default-handler-uri-async/.dirs/data 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file_PP8OK3/file/query-default-handler-uri-async/.dirs/state 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file_PP8OK3/file/query-default-handler-uri-async/.dirs/runtime 1131s # GLib-GIO-DEBUG: ensure_dir: Ensuring /tmp/test_file_PP8OK3/file/query-default-handler-uri-async/.dirs/data/applications 1131s # GLib-GIO-DEBUG: ensure_dir: Ensuring /tmp/test_file_PP8OK3/file/query-default-handler-uri-async/.dirs/config 1131s # GLib-GIO-DEBUG: desktop_file_dirs_lock: Resetting desktop app info dirs from /tmp/test_file_PP8OK3/file/query-default-handler-uri/.dirs/config to /tmp/test_file_PP8OK3/file/query-default-handler-uri-async/.dirs/config 1131s # GLib-GIO-DEBUG: ensure_dir: Ensuring /tmp/test_file_PP8OK3/file/query-default-handler-uri-async/.dirs/config 1131s # GLib-GIO-DEBUG: ensure_dir: Ensuring /tmp/test_file_PP8OK3/file/query-default-handler-uri-async/.dirs/config 1131s ok 33 /file/query-default-handler-uri-async 1131s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file_PP8OK3/file/enumerator-cancellation/.dirs/home 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file_PP8OK3/file/enumerator-cancellation/.dirs/cache 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file_PP8OK3/file/enumerator-cancellation/.dirs/system-config1:/tmp/test_file_PP8OK3/file/enumerator-cancellation/.dirs/system-config2 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file_PP8OK3/file/enumerator-cancellation/.dirs/config 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file_PP8OK3/file/enumerator-cancellation/.dirs/system-data1:/tmp/test_file_PP8OK3/file/enumerator-cancellation/.dirs/system-data2 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file_PP8OK3/file/enumerator-cancellation/.dirs/data 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file_PP8OK3/file/enumerator-cancellation/.dirs/state 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file_PP8OK3/file/enumerator-cancellation/.dirs/runtime 1131s ok 34 /file/enumerator-cancellation 1131s # Start of async-create-delete tests 1131s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file_PP8OK3/file/async-create-delete/0/.dirs/home 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file_PP8OK3/file/async-create-delete/0/.dirs/cache 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file_PP8OK3/file/async-create-delete/0/.dirs/system-config1:/tmp/test_file_PP8OK3/file/async-create-delete/0/.dirs/system-config2 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file_PP8OK3/file/async-create-delete/0/.dirs/config 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file_PP8OK3/file/async-create-delete/0/.dirs/system-data1:/tmp/test_file_PP8OK3/file/async-create-delete/0/.dirs/system-data2 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file_PP8OK3/file/async-create-delete/0/.dirs/data 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file_PP8OK3/file/async-create-delete/0/.dirs/state 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file_PP8OK3/file/async-create-delete/0/.dirs/runtime 1131s ok 35 /file/async-create-delete/0 1131s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file_PP8OK3/file/async-create-delete/1/.dirs/home 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file_PP8OK3/file/async-create-delete/1/.dirs/cache 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file_PP8OK3/file/async-create-delete/1/.dirs/system-config1:/tmp/test_file_PP8OK3/file/async-create-delete/1/.dirs/system-config2 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file_PP8OK3/file/async-create-delete/1/.dirs/config 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file_PP8OK3/file/async-create-delete/1/.dirs/system-data1:/tmp/test_file_PP8OK3/file/async-create-delete/1/.dirs/system-data2 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file_PP8OK3/file/async-create-delete/1/.dirs/data 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file_PP8OK3/file/async-create-delete/1/.dirs/state 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file_PP8OK3/file/async-create-delete/1/.dirs/runtime 1131s ok 36 /file/async-create-delete/1 1131s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file_PP8OK3/file/async-create-delete/10/.dirs/home 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file_PP8OK3/file/async-create-delete/10/.dirs/cache 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file_PP8OK3/file/async-create-delete/10/.dirs/system-config1:/tmp/test_file_PP8OK3/file/async-create-delete/10/.dirs/system-config2 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file_PP8OK3/file/async-create-delete/10/.dirs/config 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file_PP8OK3/file/async-create-delete/10/.dirs/system-data1:/tmp/test_file_PP8OK3/file/async-create-delete/10/.dirs/system-data2 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file_PP8OK3/file/async-create-delete/10/.dirs/data 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file_PP8OK3/file/async-create-delete/10/.dirs/state 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file_PP8OK3/file/async-create-delete/10/.dirs/runtime 1131s ok 37 /file/async-create-delete/10 1131s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file_PP8OK3/file/async-create-delete/25/.dirs/home 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file_PP8OK3/file/async-create-delete/25/.dirs/cache 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file_PP8OK3/file/async-create-delete/25/.dirs/system-config1:/tmp/test_file_PP8OK3/file/async-create-delete/25/.dirs/system-config2 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file_PP8OK3/file/async-create-delete/25/.dirs/config 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file_PP8OK3/file/async-create-delete/25/.dirs/system-data1:/tmp/test_file_PP8OK3/file/async-create-delete/25/.dirs/system-data2 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file_PP8OK3/file/async-create-delete/25/.dirs/data 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file_PP8OK3/file/async-create-delete/25/.dirs/state 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file_PP8OK3/file/async-create-delete/25/.dirs/runtime 1132s ok 38 /file/async-create-delete/25 1132s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file_PP8OK3/file/async-create-delete/4096/.dirs/home 1132s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file_PP8OK3/file/async-create-delete/4096/.dirs/cache 1132s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file_PP8OK3/file/async-create-delete/4096/.dirs/system-config1:/tmp/test_file_PP8OK3/file/async-create-delete/4096/.dirs/system-config2 1132s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file_PP8OK3/file/async-create-delete/4096/.dirs/config 1132s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file_PP8OK3/file/async-create-delete/4096/.dirs/system-data1:/tmp/test_file_PP8OK3/file/async-create-delete/4096/.dirs/system-data2 1132s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file_PP8OK3/file/async-create-delete/4096/.dirs/data 1132s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file_PP8OK3/file/async-create-delete/4096/.dirs/state 1132s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file_PP8OK3/file/async-create-delete/4096/.dirs/runtime 1132s ok 39 /file/async-create-delete/4096 1132s # End of async-create-delete tests 1132s # Start of replace-symlink tests 1132s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file_PP8OK3/file/replace-symlink/using-etag/.dirs/home 1132s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file_PP8OK3/file/replace-symlink/using-etag/.dirs/cache 1132s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file_PP8OK3/file/replace-symlink/using-etag/.dirs/system-config1:/tmp/test_file_PP8OK3/file/replace-symlink/using-etag/.dirs/system-config2 1132s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file_PP8OK3/file/replace-symlink/using-etag/.dirs/config 1132s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file_PP8OK3/file/replace-symlink/using-etag/.dirs/system-data1:/tmp/test_file_PP8OK3/file/replace-symlink/using-etag/.dirs/system-data2 1132s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file_PP8OK3/file/replace-symlink/using-etag/.dirs/data 1132s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file_PP8OK3/file/replace-symlink/using-etag/.dirs/state 1132s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file_PP8OK3/file/replace-symlink/using-etag/.dirs/runtime 1132s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/2417 1132s # /file/replace-symlink/using-etag summary: Test that ETag checks work when replacing a file through a symlink 1132s # Using temporary directory /tmp/test_file_PP8OK3/g_file_replace_symlink_using_etag_L7UEK3 1134s ok 40 /file/replace-symlink/using-etag 1134s # slow test /file/replace-symlink/using-etag executed in 2.00 secs 1134s # End of replace-symlink tests 1134s # Start of replace tests 1134s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file_PP8OK3/file/replace/write-only/.dirs/home 1134s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file_PP8OK3/file/replace/write-only/.dirs/cache 1134s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file_PP8OK3/file/replace/write-only/.dirs/system-config1:/tmp/test_file_PP8OK3/file/replace/write-only/.dirs/system-config2 1134s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file_PP8OK3/file/replace/write-only/.dirs/config 1134s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file_PP8OK3/file/replace/write-only/.dirs/system-data1:/tmp/test_file_PP8OK3/file/replace/write-only/.dirs/system-data2 1134s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file_PP8OK3/file/replace/write-only/.dirs/data 1134s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file_PP8OK3/file/replace/write-only/.dirs/state 1134s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file_PP8OK3/file/replace/write-only/.dirs/runtime 1134s # /file/replace/write-only summary: Test various situations for g_file_replace() 1134s # Current umask: 2 1134s # Test 0, using temporary directory /tmp/test_file_PP8OK3/g_file_replace_8QZEK3 1134s # Test 1, using temporary directory /tmp/test_file_PP8OK3/g_file_replace_MAZEK3 1134s # Test 2, using temporary directory /tmp/test_file_PP8OK3/g_file_replace_JXOEK3 1134s # Test 3, using temporary directory /tmp/test_file_PP8OK3/g_file_replace_N8QEK3 1134s # Test 4, using temporary directory /tmp/test_file_PP8OK3/g_file_replace_BGSEK3 1134s # Test 5, using temporary directory /tmp/test_file_PP8OK3/g_file_replace_M1REK3 1134s # Test 6, using temporary directory /tmp/test_file_PP8OK3/g_file_replace_GQUEK3 1134s # Test 7, using temporary directory /tmp/test_file_PP8OK3/g_file_replace_LRHDK3 1134s # Test 8, using temporary directory /tmp/test_file_PP8OK3/g_file_replace_OHHDK3 1134s # Test 9, using temporary directory /tmp/test_file_PP8OK3/g_file_replace_UIIDK3 1134s # Test 10, using temporary directory /tmp/test_file_PP8OK3/g_file_replace_C8JDK3 1134s # Test 11, using temporary directory /tmp/test_file_PP8OK3/g_file_replace_YCLDK3 1134s # Test 12, using temporary directory /tmp/test_file_PP8OK3/g_file_replace_YJMDK3 1134s # Test 13, using temporary directory /tmp/test_file_PP8OK3/g_file_replace_23LDK3 1134s # Test 14, using temporary directory /tmp/test_file_PP8OK3/g_file_replace_3FCDK3 1134s # Test 15, using temporary directory /tmp/test_file_PP8OK3/g_file_replace_FFEDK3 1134s # Test 16, using temporary directory /tmp/test_file_PP8OK3/g_file_replace_FWFDK3 1134s # Test 17, using temporary directory /tmp/test_file_PP8OK3/g_file_replace_NGVDK3 1134s # Test 18, using temporary directory /tmp/test_file_PP8OK3/g_file_replace_2FWDK3 1134s # Test 19, using temporary directory /tmp/test_file_PP8OK3/g_file_replace_TBZDK3 1134s # Test 20, using temporary directory /tmp/test_file_PP8OK3/g_file_replace_7ZNDK3 1134s # Test 21, using temporary directory /tmp/test_file_PP8OK3/g_file_replace_RFRDK3 1134s # Test 22, using temporary directory /tmp/test_file_PP8OK3/g_file_replace_RKSDK3 1134s # Test 23, using temporary directory /tmp/test_file_PP8OK3/g_file_replace_NA6DK3 1134s # Test 24, using temporary directory /tmp/test_file_PP8OK3/g_file_replace_KI7DK3 1134s # Test 25, using temporary directory /tmp/test_file_PP8OK3/g_file_replace_R39DK3 1134s # Test 26, using temporary directory /tmp/test_file_PP8OK3/g_file_replace_BDBEK3 1134s # Test 27, using temporary directory /tmp/test_file_PP8OK3/g_file_replace_3VAEK3 1134s # Test 28, using temporary directory /tmp/test_file_PP8OK3/g_file_replace_MT0DK3 1134s # Test 29, using temporary directory /tmp/test_file_PP8OK3/g_file_replace_QC3DK3 1134s # Test 30, using temporary directory /tmp/test_file_PP8OK3/g_file_replace_N22DK3 1134s # Test 31, using temporary directory /tmp/test_file_PP8OK3/g_file_replace_D33DK3 1134s # Test 32, using temporary directory /tmp/test_file_PP8OK3/g_file_replace_CE5DK3 1134s # Test 33, using temporary directory /tmp/test_file_PP8OK3/g_file_replace_CJKEK3 1134s # Test 34, using temporary directory /tmp/test_file_PP8OK3/g_file_replace_Q6JEK3 1134s # Test 35, using temporary directory /tmp/test_file_PP8OK3/g_file_replace_XALEK3 1134s # Test 36, using temporary directory /tmp/test_file_PP8OK3/g_file_replace_IJMEK3 1134s # Test 37, using temporary directory /tmp/test_file_PP8OK3/g_file_replace_RBCEK3 1134s # Test 38, using temporary directory /tmp/test_file_PP8OK3/g_file_replace_TZEEK3 1134s # Test 39, using temporary directory /tmp/test_file_PP8OK3/g_file_replace_AFHEK3 1134s # Test 40, using temporary directory /tmp/test_file_PP8OK3/g_file_replace_ZG3BK3 1134s # Test 41, using temporary directory /tmp/test_file_PP8OK3/g_file_replace_WM4BK3 1134s # Test 42, using temporary directory /tmp/test_file_PP8OK3/g_file_replace_NB6BK3 1134s # Test 43, using temporary directory /tmp/test_file_PP8OK3/g_file_replace_X9VBK3 1134s # Test 44, using temporary directory /tmp/test_file_PP8OK3/g_file_replace_FVYBK3 1134s # Test 45, using temporary directory /tmp/test_file_PP8OK3/g_file_replace_UDYBK3 1134s # Test 46, using temporary directory /tmp/test_file_PP8OK3/g_file_replace_7W0BK3 1134s # Test 47, using temporary directory /tmp/test_file_PP8OK3/g_file_replace_FH0BK3 1134s # Test 48, using temporary directory /tmp/test_file_PP8OK3/g_file_replace_AZFCK3 1134s # We do not have CAP_DAC_OVERRIDE or equivalent 1134s ok 41 /file/replace/write-only 1134s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file_PP8OK3/file/replace/read-write/.dirs/home 1134s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file_PP8OK3/file/replace/read-write/.dirs/cache 1134s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file_PP8OK3/file/replace/read-write/.dirs/system-config1:/tmp/test_file_PP8OK3/file/replace/read-write/.dirs/system-config2 1134s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file_PP8OK3/file/replace/read-write/.dirs/config 1134s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file_PP8OK3/file/replace/read-write/.dirs/system-data1:/tmp/test_file_PP8OK3/file/replace/read-write/.dirs/system-data2 1134s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file_PP8OK3/file/replace/read-write/.dirs/data 1134s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file_PP8OK3/file/replace/read-write/.dirs/state 1134s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file_PP8OK3/file/replace/read-write/.dirs/runtime 1134s # /file/replace/read-write summary: Test various situations for g_file_replace() 1134s # Current umask: 2 1134s # Test 0, using temporary directory /tmp/test_file_PP8OK3/g_file_replace_2WGCK3 1134s # Test 1, using temporary directory /tmp/test_file_PP8OK3/g_file_replace_8RGCK3 1134s # Test 2, using temporary directory /tmp/test_file_PP8OK3/g_file_replace_H5ICK3 1134s # Test 3, using temporary directory /tmp/test_file_PP8OK3/g_file_replace_GW8BK3 1134s # Test 4, using temporary directory /tmp/test_file_PP8OK3/g_file_replace_CS9BK3 1134s # Test 5, using temporary directory /tmp/test_file_PP8OK3/g_file_replace_9O9BK3 1134s # Test 6, using temporary directory /tmp/test_file_PP8OK3/g_file_replace_54BCK3 1134s # Test 7, using temporary directory /tmp/test_file_PP8OK3/g_file_replace_OMECK3 1134s # Test 8, using temporary directory /tmp/test_file_PP8OK3/g_file_replace_PXDCK3 1134s # Test 9, using temporary directory /tmp/test_file_PP8OK3/g_file_replace_9ZRCK3 1134s # Test 10, using temporary directory /tmp/test_file_PP8OK3/g_file_replace_8FTCK3 1134s # Test 11, using temporary directory /tmp/test_file_PP8OK3/g_file_replace_NPVCK3 1134s # Test 12, using temporary directory /tmp/test_file_PP8OK3/g_file_replace_JCVCK3 1134s # Test 13, using temporary directory /tmp/test_file_PP8OK3/g_file_replace_QVWCK3 1134s # Test 14, using temporary directory /tmp/test_file_PP8OK3/g_file_replace_E4KCK3 1134s # Test 15, using temporary directory /tmp/test_file_PP8OK3/g_file_replace_JINCK3 1134s # Test 16, using temporary directory /tmp/test_file_PP8OK3/g_file_replace_DAQCK3 1134s # Test 17, using temporary directory /tmp/test_file_PP8OK3/g_file_replace_B75CK3 1134s # Test 18, using temporary directory /tmp/test_file_PP8OK3/g_file_replace_QL8CK3 1134s # Test 19, using temporary directory /tmp/test_file_PP8OK3/g_file_replace_BT9CK3 1134s # Test 20, using temporary directory /tmp/test_file_PP8OK3/g_file_replace_CNYCK3 1134s # Test 21, using temporary directory /tmp/test_file_PP8OK3/g_file_replace_840CK3 1134s # Test 22, using temporary directory /tmp/test_file_PP8OK3/g_file_replace_NI3CK3 1134s # Test 23, using temporary directory /tmp/test_file_PP8OK3/g_file_replace_HF3CK3 1134s # Test 24, using temporary directory /tmp/test_file_PP8OK3/g_file_replace_Y4OAK3 1134s # Test 25, using temporary directory /tmp/test_file_PP8OK3/g_file_replace_42RAK3 1134s # Test 26, using temporary directory /tmp/test_file_PP8OK3/g_file_replace_VORAK3 1134s # Test 27, using temporary directory /tmp/test_file_PP8OK3/g_file_replace_TUSAK3 1134s # Test 28, using temporary directory /tmp/test_file_PP8OK3/g_file_replace_QRIAK3 1134s # Test 29, using temporary directory /tmp/test_file_PP8OK3/g_file_replace_62KAK3 1134s # Test 30, using temporary directory /tmp/test_file_PP8OK3/g_file_replace_OFKAK3 1134s # Test 31, using temporary directory /tmp/test_file_PP8OK3/g_file_replace_SULAK3 1134s # Test 32, using temporary directory /tmp/test_file_PP8OK3/g_file_replace_1VMAK3 1134s # Test 33, using temporary directory /tmp/test_file_PP8OK3/g_file_replace_SX1AK3 1134s # Test 34, using temporary directory /tmp/test_file_PP8OK3/g_file_replace_Q52AK3 1134s # Test 35, using temporary directory /tmp/test_file_PP8OK3/g_file_replace_JQ2AK3 1134s # Test 36, using temporary directory /tmp/test_file_PP8OK3/g_file_replace_N84AK3 1134s # Test 37, using temporary directory /tmp/test_file_PP8OK3/g_file_replace_N8UAK3 1134s # Test 38, using temporary directory /tmp/test_file_PP8OK3/g_file_replace_VOXAK3 1134s # Test 39, using temporary directory /tmp/test_file_PP8OK3/g_file_replace_JPYAK3 1134s # Test 40, using temporary directory /tmp/test_file_PP8OK3/g_file_replace_9YDBK3 1134s # Test 41, using temporary directory /tmp/test_file_PP8OK3/g_file_replace_V9EBK3 1134s # Test 42, using temporary directory /tmp/test_file_PP8OK3/g_file_replace_B5HBK3 1134s # Test 43, using temporary directory /tmp/test_file_PP8OK3/g_file_replace_1Y7AK3 1134s # Test 44, using temporary directory /tmp/test_file_PP8OK3/g_file_replace_998AK3 1134s # Test 45, using temporary directory /tmp/test_file_PP8OK3/g_file_replace_FFABK3 1134s # Test 46, using temporary directory /tmp/test_file_PP8OK3/g_file_replace_AACBK3 1134s # Test 47, using temporary directory /tmp/test_file_PP8OK3/g_file_replace_H8BBK3 1134s # Test 48, using temporary directory /tmp/test_file_PP8OK3/g_file_replace_RHRBK3 1134s # We do not have CAP_DAC_OVERRIDE or equivalent 1134s ok 42 /file/replace/read-write 1134s # End of replace tests 1134s # Start of copy tests 1134s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file_PP8OK3/file/copy/progress/.dirs/home 1134s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file_PP8OK3/file/copy/progress/.dirs/cache 1134s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file_PP8OK3/file/copy/progress/.dirs/system-config1:/tmp/test_file_PP8OK3/file/copy/progress/.dirs/system-config2 1134s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file_PP8OK3/file/copy/progress/.dirs/config 1134s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file_PP8OK3/file/copy/progress/.dirs/system-data1:/tmp/test_file_PP8OK3/file/copy/progress/.dirs/system-data2 1134s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file_PP8OK3/file/copy/progress/.dirs/data 1134s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file_PP8OK3/file/copy/progress/.dirs/state 1134s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file_PP8OK3/file/copy/progress/.dirs/runtime 1134s ok 43 /file/copy/progress 1134s # End of copy tests 1134s # Start of writev tests 1134s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file_PP8OK3/file/writev/no-bytes-written/.dirs/home 1134s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file_PP8OK3/file/writev/no-bytes-written/.dirs/cache 1134s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file_PP8OK3/file/writev/no-bytes-written/.dirs/system-config1:/tmp/test_file_PP8OK3/file/writev/no-bytes-written/.dirs/system-config2 1134s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file_PP8OK3/file/writev/no-bytes-written/.dirs/config 1134s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file_PP8OK3/file/writev/no-bytes-written/.dirs/system-data1:/tmp/test_file_PP8OK3/file/writev/no-bytes-written/.dirs/system-data2 1134s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file_PP8OK3/file/writev/no-bytes-written/.dirs/data 1134s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file_PP8OK3/file/writev/no-bytes-written/.dirs/state 1134s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file_PP8OK3/file/writev/no-bytes-written/.dirs/runtime 1134s ok 44 /file/writev/no-bytes-written 1134s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file_PP8OK3/file/writev/no-vectors/.dirs/home 1134s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file_PP8OK3/file/writev/no-vectors/.dirs/cache 1134s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file_PP8OK3/file/writev/no-vectors/.dirs/system-config1:/tmp/test_file_PP8OK3/file/writev/no-vectors/.dirs/system-config2 1134s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file_PP8OK3/file/writev/no-vectors/.dirs/config 1134s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file_PP8OK3/file/writev/no-vectors/.dirs/system-data1:/tmp/test_file_PP8OK3/file/writev/no-vectors/.dirs/system-data2 1134s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file_PP8OK3/file/writev/no-vectors/.dirs/data 1134s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file_PP8OK3/file/writev/no-vectors/.dirs/state 1134s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file_PP8OK3/file/writev/no-vectors/.dirs/runtime 1134s ok 45 /file/writev/no-vectors 1134s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file_PP8OK3/file/writev/empty-vectors/.dirs/home 1134s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file_PP8OK3/file/writev/empty-vectors/.dirs/cache 1134s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file_PP8OK3/file/writev/empty-vectors/.dirs/system-config1:/tmp/test_file_PP8OK3/file/writev/empty-vectors/.dirs/system-config2 1134s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file_PP8OK3/file/writev/empty-vectors/.dirs/config 1134s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file_PP8OK3/file/writev/empty-vectors/.dirs/system-data1:/tmp/test_file_PP8OK3/file/writev/empty-vectors/.dirs/system-data2 1134s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file_PP8OK3/file/writev/empty-vectors/.dirs/data 1134s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file_PP8OK3/file/writev/empty-vectors/.dirs/state 1134s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file_PP8OK3/file/writev/empty-vectors/.dirs/runtime 1134s ok 46 /file/writev/empty-vectors 1134s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file_PP8OK3/file/writev/too-big-vectors/.dirs/home 1134s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file_PP8OK3/file/writev/too-big-vectors/.dirs/cache 1134s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file_PP8OK3/file/writev/too-big-vectors/.dirs/system-config1:/tmp/test_file_PP8OK3/file/writev/too-big-vectors/.dirs/system-config2 1134s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file_PP8OK3/file/writev/too-big-vectors/.dirs/config 1134s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file_PP8OK3/file/writev/too-big-vectors/.dirs/system-data1:/tmp/test_file_PP8OK3/file/writev/too-big-vectors/.dirs/system-data2 1134s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file_PP8OK3/file/writev/too-big-vectors/.dirs/data 1134s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file_PP8OK3/file/writev/too-big-vectors/.dirs/state 1134s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file_PP8OK3/file/writev/too-big-vectors/.dirs/runtime 1134s ok 47 /file/writev/too-big-vectors 1134s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file_PP8OK3/file/writev/async/.dirs/home 1134s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file_PP8OK3/file/writev/async/.dirs/cache 1134s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file_PP8OK3/file/writev/async/.dirs/system-config1:/tmp/test_file_PP8OK3/file/writev/async/.dirs/system-config2 1134s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file_PP8OK3/file/writev/async/.dirs/config 1134s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file_PP8OK3/file/writev/async/.dirs/system-data1:/tmp/test_file_PP8OK3/file/writev/async/.dirs/system-data2 1134s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file_PP8OK3/file/writev/async/.dirs/data 1134s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file_PP8OK3/file/writev/async/.dirs/state 1134s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file_PP8OK3/file/writev/async/.dirs/runtime 1134s ok 48 /file/writev/async 1134s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file_PP8OK3/file/writev/async_all/.dirs/home 1134s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file_PP8OK3/file/writev/async_all/.dirs/cache 1134s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file_PP8OK3/file/writev/async_all/.dirs/system-config1:/tmp/test_file_PP8OK3/file/writev/async_all/.dirs/system-config2 1134s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file_PP8OK3/file/writev/async_all/.dirs/config 1134s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file_PP8OK3/file/writev/async_all/.dirs/system-data1:/tmp/test_file_PP8OK3/file/writev/async_all/.dirs/system-data2 1134s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file_PP8OK3/file/writev/async_all/.dirs/data 1134s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file_PP8OK3/file/writev/async_all/.dirs/state 1134s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file_PP8OK3/file/writev/async_all/.dirs/runtime 1134s ok 49 /file/writev/async_all 1134s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file_PP8OK3/file/writev/async_all-empty-vectors/.dirs/home 1134s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file_PP8OK3/file/writev/async_all-empty-vectors/.dirs/cache 1134s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file_PP8OK3/file/writev/async_all-empty-vectors/.dirs/system-config1:/tmp/test_file_PP8OK3/file/writev/async_all-empty-vectors/.dirs/system-config2 1134s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file_PP8OK3/file/writev/async_all-empty-vectors/.dirs/config 1134s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file_PP8OK3/file/writev/async_all-empty-vectors/.dirs/system-data1:/tmp/test_file_PP8OK3/file/writev/async_all-empty-vectors/.dirs/system-data2 1134s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file_PP8OK3/file/writev/async_all-empty-vectors/.dirs/data 1134s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file_PP8OK3/file/writev/async_all-empty-vectors/.dirs/state 1134s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file_PP8OK3/file/writev/async_all-empty-vectors/.dirs/runtime 1134s ok 50 /file/writev/async_all-empty-vectors 1134s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file_PP8OK3/file/writev/async_all-no-vectors/.dirs/home 1134s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file_PP8OK3/file/writev/async_all-no-vectors/.dirs/cache 1134s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file_PP8OK3/file/writev/async_all-no-vectors/.dirs/system-config1:/tmp/test_file_PP8OK3/file/writev/async_all-no-vectors/.dirs/system-config2 1134s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file_PP8OK3/file/writev/async_all-no-vectors/.dirs/config 1134s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file_PP8OK3/file/writev/async_all-no-vectors/.dirs/system-data1:/tmp/test_file_PP8OK3/file/writev/async_all-no-vectors/.dirs/system-data2 1134s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file_PP8OK3/file/writev/async_all-no-vectors/.dirs/data 1134s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file_PP8OK3/file/writev/async_all-no-vectors/.dirs/state 1134s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file_PP8OK3/file/writev/async_all-no-vectors/.dirs/runtime 1134s ok 51 /file/writev/async_all-no-vectors 1134s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file_PP8OK3/file/writev/async_all-to-big-vectors/.dirs/home 1134s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file_PP8OK3/file/writev/async_all-to-big-vectors/.dirs/cache 1134s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file_PP8OK3/file/writev/async_all-to-big-vectors/.dirs/system-config1:/tmp/test_file_PP8OK3/file/writev/async_all-to-big-vectors/.dirs/system-config2 1134s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file_PP8OK3/file/writev/async_all-to-big-vectors/.dirs/config 1134s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file_PP8OK3/file/writev/async_all-to-big-vectors/.dirs/system-data1:/tmp/test_file_PP8OK3/file/writev/async_all-to-big-vectors/.dirs/system-data2 1134s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file_PP8OK3/file/writev/async_all-to-big-vectors/.dirs/data 1134s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file_PP8OK3/file/writev/async_all-to-big-vectors/.dirs/state 1134s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file_PP8OK3/file/writev/async_all-to-big-vectors/.dirs/runtime 1134s ok 52 /file/writev/async_all-to-big-vectors 1134s ok - glib/file.test 1134s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file_PP8OK3/file/writev/async_all-cancellation/.dirs/home 1134s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file_PP8OK3/file/writev/async_all-cancellation/.dirs/cache 1134s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file_PP8OK3/file/writev/async_all-cancellation/.dirs/system-config1:/tmp/test_file_PP8OK3/file/writev/async_all-cancellation/.dirs/system-config2 1134s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file_PP8OK3/file/writev/async_all-cancellation/.dirs/config 1134s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file_PP8OK3/file/writev/async_all-cancellation/.dirs/system-data1:/tmp/test_file_PP8OK3/file/writev/async_all-cancellation/.dirs/system-data2 1134s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file_PP8OK3/file/writev/async_all-cancellation/.dirs/data 1134s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file_PP8OK3/file/writev/async_all-cancellation/.dirs/state 1134s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file_PP8OK3/file/writev/async_all-cancellation/.dirs/runtime 1134s ok 53 /file/writev/async_all-cancellation 1134s # End of writev tests 1134s # Start of from-uri tests 1134s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file_PP8OK3/file/from-uri/ignores-query-string/.dirs/home 1134s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file_PP8OK3/file/from-uri/ignores-query-string/.dirs/cache 1134s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file_PP8OK3/file/from-uri/ignores-query-string/.dirs/system-config1:/tmp/test_file_PP8OK3/file/from-uri/ignores-query-string/.dirs/system-config2 1134s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file_PP8OK3/file/from-uri/ignores-query-string/.dirs/config 1134s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file_PP8OK3/file/from-uri/ignores-query-string/.dirs/system-data1:/tmp/test_file_PP8OK3/file/from-uri/ignores-query-string/.dirs/system-data2 1134s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file_PP8OK3/file/from-uri/ignores-query-string/.dirs/data 1134s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file_PP8OK3/file/from-uri/ignores-query-string/.dirs/state 1134s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file_PP8OK3/file/from-uri/ignores-query-string/.dirs/runtime 1134s ok 54 /file/from-uri/ignores-query-string 1134s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file_PP8OK3/file/from-uri/ignores-fragment/.dirs/home 1134s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file_PP8OK3/file/from-uri/ignores-fragment/.dirs/cache 1134s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file_PP8OK3/file/from-uri/ignores-fragment/.dirs/system-config1:/tmp/test_file_PP8OK3/file/from-uri/ignores-fragment/.dirs/system-config2 1134s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file_PP8OK3/file/from-uri/ignores-fragment/.dirs/config 1134s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file_PP8OK3/file/from-uri/ignores-fragment/.dirs/system-data1:/tmp/test_file_PP8OK3/file/from-uri/ignores-fragment/.dirs/system-data2 1134s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file_PP8OK3/file/from-uri/ignores-fragment/.dirs/data 1134s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file_PP8OK3/file/from-uri/ignores-fragment/.dirs/state 1134s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file_PP8OK3/file/from-uri/ignores-fragment/.dirs/runtime 1134s ok 55 /file/from-uri/ignores-fragment 1134s # End of from-uri tests 1134s # End of file tests 1134s # Running test: glib/gdbus-serialization.test 1134s TAP version 14 1134s # random seed: R02Se0aa5efaad289a06cd5f0f20c16d5ac3 1134s 1..18 1134s # Start of gdbus tests 1134s # Start of message-serialize tests 1134s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-serialization_XDE9J3/gdbus/message-serialize/basic/.dirs/home 1134s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-serialization_XDE9J3/gdbus/message-serialize/basic/.dirs/cache 1134s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-serialization_XDE9J3/gdbus/message-serialize/basic/.dirs/system-config1:/tmp/test_gdbus-serialization_XDE9J3/gdbus/message-serialize/basic/.dirs/system-config2 1134s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-serialization_XDE9J3/gdbus/message-serialize/basic/.dirs/config 1134s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-serialization_XDE9J3/gdbus/message-serialize/basic/.dirs/system-data1:/tmp/test_gdbus-serialization_XDE9J3/gdbus/message-serialize/basic/.dirs/system-data2 1134s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-serialization_XDE9J3/gdbus/message-serialize/basic/.dirs/data 1134s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-serialization_XDE9J3/gdbus/message-serialize/basic/.dirs/state 1134s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-serialization_XDE9J3/gdbus/message-serialize/basic/.dirs/runtime 1134s ok 1 /gdbus/message-serialize/basic 1134s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-serialization_XDE9J3/gdbus/message-serialize/complex/.dirs/home 1134s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-serialization_XDE9J3/gdbus/message-serialize/complex/.dirs/cache 1134s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-serialization_XDE9J3/gdbus/message-serialize/complex/.dirs/system-config1:/tmp/test_gdbus-serialization_XDE9J3/gdbus/message-serialize/complex/.dirs/system-config2 1134s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-serialization_XDE9J3/gdbus/message-serialize/complex/.dirs/config 1134s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-serialization_XDE9J3/gdbus/message-serialize/complex/.dirs/system-data1:/tmp/test_gdbus-serialization_XDE9J3/gdbus/message-serialize/complex/.dirs/system-data2 1134s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-serialization_XDE9J3/gdbus/message-serialize/complex/.dirs/data 1134s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-serialization_XDE9J3/gdbus/message-serialize/complex/.dirs/state 1134s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-serialization_XDE9J3/gdbus/message-serialize/complex/.dirs/runtime 1134s ok 2 /gdbus/message-serialize/complex 1134s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-serialization_XDE9J3/gdbus/message-serialize/invalid/.dirs/home 1134s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-serialization_XDE9J3/gdbus/message-serialize/invalid/.dirs/cache 1134s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-serialization_XDE9J3/gdbus/message-serialize/invalid/.dirs/system-config1:/tmp/test_gdbus-serialization_XDE9J3/gdbus/message-serialize/invalid/.dirs/system-config2 1134s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-serialization_XDE9J3/gdbus/message-serialize/invalid/.dirs/config 1134s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-serialization_XDE9J3/gdbus/message-serialize/invalid/.dirs/system-data1:/tmp/test_gdbus-serialization_XDE9J3/gdbus/message-serialize/invalid/.dirs/system-data2 1134s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-serialization_XDE9J3/gdbus/message-serialize/invalid/.dirs/data 1134s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-serialization_XDE9J3/gdbus/message-serialize/invalid/.dirs/state 1134s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-serialization_XDE9J3/gdbus/message-serialize/invalid/.dirs/runtime 1134s ok 3 /gdbus/message-serialize/invalid 1134s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-serialization_XDE9J3/gdbus/message-serialize/header-checks/.dirs/home 1134s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-serialization_XDE9J3/gdbus/message-serialize/header-checks/.dirs/cache 1134s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-serialization_XDE9J3/gdbus/message-serialize/header-checks/.dirs/system-config1:/tmp/test_gdbus-serialization_XDE9J3/gdbus/message-serialize/header-checks/.dirs/system-config2 1134s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-serialization_XDE9J3/gdbus/message-serialize/header-checks/.dirs/config 1134s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-serialization_XDE9J3/gdbus/message-serialize/header-checks/.dirs/system-data1:/tmp/test_gdbus-serialization_XDE9J3/gdbus/message-serialize/header-checks/.dirs/system-data2 1134s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-serialization_XDE9J3/gdbus/message-serialize/header-checks/.dirs/data 1134s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-serialization_XDE9J3/gdbus/message-serialize/header-checks/.dirs/state 1134s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-serialization_XDE9J3/gdbus/message-serialize/header-checks/.dirs/runtime 1134s ok 4 /gdbus/message-serialize/header-checks 1134s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-serialization_XDE9J3/gdbus/message-serialize/double-array/.dirs/home 1134s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-serialization_XDE9J3/gdbus/message-serialize/double-array/.dirs/cache 1134s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-serialization_XDE9J3/gdbus/message-serialize/double-array/.dirs/system-config1:/tmp/test_gdbus-serialization_XDE9J3/gdbus/message-serialize/double-array/.dirs/system-config2 1134s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-serialization_XDE9J3/gdbus/message-serialize/double-array/.dirs/config 1134s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-serialization_XDE9J3/gdbus/message-serialize/double-array/.dirs/system-data1:/tmp/test_gdbus-serialization_XDE9J3/gdbus/message-serialize/double-array/.dirs/system-data2 1134s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-serialization_XDE9J3/gdbus/message-serialize/double-array/.dirs/data 1134s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-serialization_XDE9J3/gdbus/message-serialize/double-array/.dirs/state 1134s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-serialization_XDE9J3/gdbus/message-serialize/double-array/.dirs/runtime 1134s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=732754 1134s ok 5 /gdbus/message-serialize/double-array 1134s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-serialization_XDE9J3/gdbus/message-serialize/empty-structure/.dirs/home 1134s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-serialization_XDE9J3/gdbus/message-serialize/empty-structure/.dirs/cache 1134s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-serialization_XDE9J3/gdbus/message-serialize/empty-structure/.dirs/system-config1:/tmp/test_gdbus-serialization_XDE9J3/gdbus/message-serialize/empty-structure/.dirs/system-config2 1134s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-serialization_XDE9J3/gdbus/message-serialize/empty-structure/.dirs/config 1134s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-serialization_XDE9J3/gdbus/message-serialize/empty-structure/.dirs/system-data1:/tmp/test_gdbus-serialization_XDE9J3/gdbus/message-serialize/empty-structure/.dirs/system-data2 1134s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-serialization_XDE9J3/gdbus/message-serialize/empty-structure/.dirs/data 1134s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-serialization_XDE9J3/gdbus/message-serialize/empty-structure/.dirs/state 1134s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-serialization_XDE9J3/gdbus/message-serialize/empty-structure/.dirs/runtime 1134s # /gdbus/message-serialize/empty-structure summary: Test that empty structures are rejected when serializing. 1134s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/2557 1134s ok 6 /gdbus/message-serialize/empty-structure 1134s # Start of header-checks tests 1134s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-serialization_XDE9J3/gdbus/message-serialize/header-checks/valid/.dirs/home 1134s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-serialization_XDE9J3/gdbus/message-serialize/header-checks/valid/.dirs/cache 1134s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-serialization_XDE9J3/gdbus/message-serialize/header-checks/valid/.dirs/system-config1:/tmp/test_gdbus-serialization_XDE9J3/gdbus/message-serialize/header-checks/valid/.dirs/system-config2 1134s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-serialization_XDE9J3/gdbus/message-serialize/header-checks/valid/.dirs/config 1134s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-serialization_XDE9J3/gdbus/message-serialize/header-checks/valid/.dirs/system-data1:/tmp/test_gdbus-serialization_XDE9J3/gdbus/message-serialize/header-checks/valid/.dirs/system-data2 1134s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-serialization_XDE9J3/gdbus/message-serialize/header-checks/valid/.dirs/data 1134s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-serialization_XDE9J3/gdbus/message-serialize/header-checks/valid/.dirs/state 1134s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-serialization_XDE9J3/gdbus/message-serialize/header-checks/valid/.dirs/runtime 1134s # /gdbus/message-serialize/header-checks/valid summary: Test that validation allows well-formed messages of all the different types 1134s ok 7 /gdbus/message-serialize/header-checks/valid 1134s # End of header-checks tests 1134s # End of message-serialize tests 1134s # Start of message-parse tests 1134s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-serialization_XDE9J3/gdbus/message-parse/empty-arrays-of-arrays/.dirs/home 1134s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-serialization_XDE9J3/gdbus/message-parse/empty-arrays-of-arrays/.dirs/cache 1134s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-serialization_XDE9J3/gdbus/message-parse/empty-arrays-of-arrays/.dirs/system-config1:/tmp/test_gdbus-serialization_XDE9J3/gdbus/message-parse/empty-arrays-of-arrays/.dirs/system-config2 1134s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-serialization_XDE9J3/gdbus/message-parse/empty-arrays-of-arrays/.dirs/config 1134s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-serialization_XDE9J3/gdbus/message-parse/empty-arrays-of-arrays/.dirs/system-data1:/tmp/test_gdbus-serialization_XDE9J3/gdbus/message-parse/empty-arrays-of-arrays/.dirs/system-data2 1134s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-serialization_XDE9J3/gdbus/message-parse/empty-arrays-of-arrays/.dirs/data 1134s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-serialization_XDE9J3/gdbus/message-parse/empty-arrays-of-arrays/.dirs/state 1134s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-serialization_XDE9J3/gdbus/message-parse/empty-arrays-of-arrays/.dirs/runtime 1134s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=673612 1134s ok 8 /gdbus/message-parse/empty-arrays-of-arrays 1134s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-serialization_XDE9J3/gdbus/message-parse/non-signature-header/.dirs/home 1134s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-serialization_XDE9J3/gdbus/message-parse/non-signature-header/.dirs/cache 1134s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-serialization_XDE9J3/gdbus/message-parse/non-signature-header/.dirs/system-config1:/tmp/test_gdbus-serialization_XDE9J3/gdbus/message-parse/non-signature-header/.dirs/system-config2 1134s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-serialization_XDE9J3/gdbus/message-parse/non-signature-header/.dirs/config 1134s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-serialization_XDE9J3/gdbus/message-parse/non-signature-header/.dirs/system-data1:/tmp/test_gdbus-serialization_XDE9J3/gdbus/message-parse/non-signature-header/.dirs/system-data2 1134s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-serialization_XDE9J3/gdbus/message-parse/non-signature-header/.dirs/data 1134s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-serialization_XDE9J3/gdbus/message-parse/non-signature-header/.dirs/state 1134s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-serialization_XDE9J3/gdbus/message-parse/non-signature-header/.dirs/runtime 1134s ok 9 /gdbus/message-parse/non-signature-header 1134s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-serialization_XDE9J3/gdbus/message-parse/empty-signature-header/.dirs/home 1134s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-serialization_XDE9J3/gdbus/message-parse/empty-signature-header/.dirs/cache 1134s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-serialization_XDE9J3/gdbus/message-parse/empty-signature-header/.dirs/system-config1:/tmp/test_gdbus-serialization_XDE9J3/gdbus/message-parse/empty-signature-header/.dirs/system-config2 1134s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-serialization_XDE9J3/gdbus/message-parse/empty-signature-header/.dirs/config 1134s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-serialization_XDE9J3/gdbus/message-parse/empty-signature-header/.dirs/system-data1:/tmp/test_gdbus-serialization_XDE9J3/gdbus/message-parse/empty-signature-header/.dirs/system-data2 1134s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-serialization_XDE9J3/gdbus/message-parse/empty-signature-header/.dirs/data 1134s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-serialization_XDE9J3/gdbus/message-parse/empty-signature-header/.dirs/state 1134s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-serialization_XDE9J3/gdbus/message-parse/empty-signature-header/.dirs/runtime 1134s ok 10 /gdbus/message-parse/empty-signature-header 1134s ok - glib/gdbus-serialization.test 1134s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-serialization_XDE9J3/gdbus/message-parse/multiple-signature-header/.dirs/home 1134s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-serialization_XDE9J3/gdbus/message-parse/multiple-signature-header/.dirs/cache 1134s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-serialization_XDE9J3/gdbus/message-parse/multiple-signature-header/.dirs/system-config1:/tmp/test_gdbus-serialization_XDE9J3/gdbus/message-parse/multiple-signature-header/.dirs/system-config2 1134s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-serialization_XDE9J3/gdbus/message-parse/multiple-signature-header/.dirs/config 1134s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-serialization_XDE9J3/gdbus/message-parse/multiple-signature-header/.dirs/system-data1:/tmp/test_gdbus-serialization_XDE9J3/gdbus/message-parse/multiple-signature-header/.dirs/system-data2 1134s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-serialization_XDE9J3/gdbus/message-parse/multiple-signature-header/.dirs/data 1134s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-serialization_XDE9J3/gdbus/message-parse/multiple-signature-header/.dirs/state 1134s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-serialization_XDE9J3/gdbus/message-parse/multiple-signature-header/.dirs/runtime 1134s ok 11 /gdbus/message-parse/multiple-signature-header 1134s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-serialization_XDE9J3/gdbus/message-parse/over-long-signature-header/.dirs/home 1134s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-serialization_XDE9J3/gdbus/message-parse/over-long-signature-header/.dirs/cache 1134s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-serialization_XDE9J3/gdbus/message-parse/over-long-signature-header/.dirs/system-config1:/tmp/test_gdbus-serialization_XDE9J3/gdbus/message-parse/over-long-signature-header/.dirs/system-config2 1134s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-serialization_XDE9J3/gdbus/message-parse/over-long-signature-header/.dirs/config 1134s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-serialization_XDE9J3/gdbus/message-parse/over-long-signature-header/.dirs/system-data1:/tmp/test_gdbus-serialization_XDE9J3/gdbus/message-parse/over-long-signature-header/.dirs/system-data2 1134s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-serialization_XDE9J3/gdbus/message-parse/over-long-signature-header/.dirs/data 1134s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-serialization_XDE9J3/gdbus/message-parse/over-long-signature-header/.dirs/state 1134s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-serialization_XDE9J3/gdbus/message-parse/over-long-signature-header/.dirs/runtime 1134s ok 12 /gdbus/message-parse/over-long-signature-header 1134s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-serialization_XDE9J3/gdbus/message-parse/deep-header-nesting/.dirs/home 1134s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-serialization_XDE9J3/gdbus/message-parse/deep-header-nesting/.dirs/cache 1134s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-serialization_XDE9J3/gdbus/message-parse/deep-header-nesting/.dirs/system-config1:/tmp/test_gdbus-serialization_XDE9J3/gdbus/message-parse/deep-header-nesting/.dirs/system-config2 1134s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-serialization_XDE9J3/gdbus/message-parse/deep-header-nesting/.dirs/config 1134s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-serialization_XDE9J3/gdbus/message-parse/deep-header-nesting/.dirs/system-data1:/tmp/test_gdbus-serialization_XDE9J3/gdbus/message-parse/deep-header-nesting/.dirs/system-data2 1134s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-serialization_XDE9J3/gdbus/message-parse/deep-header-nesting/.dirs/data 1134s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-serialization_XDE9J3/gdbus/message-parse/deep-header-nesting/.dirs/state 1134s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-serialization_XDE9J3/gdbus/message-parse/deep-header-nesting/.dirs/runtime 1134s ok 13 /gdbus/message-parse/deep-header-nesting 1134s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-serialization_XDE9J3/gdbus/message-parse/deep-body-nesting/.dirs/home 1134s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-serialization_XDE9J3/gdbus/message-parse/deep-body-nesting/.dirs/cache 1134s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-serialization_XDE9J3/gdbus/message-parse/deep-body-nesting/.dirs/system-config1:/tmp/test_gdbus-serialization_XDE9J3/gdbus/message-parse/deep-body-nesting/.dirs/system-config2 1134s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-serialization_XDE9J3/gdbus/message-parse/deep-body-nesting/.dirs/config 1134s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-serialization_XDE9J3/gdbus/message-parse/deep-body-nesting/.dirs/system-data1:/tmp/test_gdbus-serialization_XDE9J3/gdbus/message-parse/deep-body-nesting/.dirs/system-data2 1134s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-serialization_XDE9J3/gdbus/message-parse/deep-body-nesting/.dirs/data 1134s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-serialization_XDE9J3/gdbus/message-parse/deep-body-nesting/.dirs/state 1134s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-serialization_XDE9J3/gdbus/message-parse/deep-body-nesting/.dirs/runtime 1134s ok 14 /gdbus/message-parse/deep-body-nesting 1134s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-serialization_XDE9J3/gdbus/message-parse/truncated/.dirs/home 1134s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-serialization_XDE9J3/gdbus/message-parse/truncated/.dirs/cache 1134s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-serialization_XDE9J3/gdbus/message-parse/truncated/.dirs/system-config1:/tmp/test_gdbus-serialization_XDE9J3/gdbus/message-parse/truncated/.dirs/system-config2 1134s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-serialization_XDE9J3/gdbus/message-parse/truncated/.dirs/config 1134s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-serialization_XDE9J3/gdbus/message-parse/truncated/.dirs/system-data1:/tmp/test_gdbus-serialization_XDE9J3/gdbus/message-parse/truncated/.dirs/system-data2 1134s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-serialization_XDE9J3/gdbus/message-parse/truncated/.dirs/data 1134s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-serialization_XDE9J3/gdbus/message-parse/truncated/.dirs/state 1134s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-serialization_XDE9J3/gdbus/message-parse/truncated/.dirs/runtime 1134s # /gdbus/message-parse/truncated summary: Test that truncated messages are properly rejected. 1134s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/2528 1134s ok 15 /gdbus/message-parse/truncated 1134s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-serialization_XDE9J3/gdbus/message-parse/empty-structure/.dirs/home 1134s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-serialization_XDE9J3/gdbus/message-parse/empty-structure/.dirs/cache 1134s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-serialization_XDE9J3/gdbus/message-parse/empty-structure/.dirs/system-config1:/tmp/test_gdbus-serialization_XDE9J3/gdbus/message-parse/empty-structure/.dirs/system-config2 1134s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-serialization_XDE9J3/gdbus/message-parse/empty-structure/.dirs/config 1134s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-serialization_XDE9J3/gdbus/message-parse/empty-structure/.dirs/system-data1:/tmp/test_gdbus-serialization_XDE9J3/gdbus/message-parse/empty-structure/.dirs/system-data2 1134s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-serialization_XDE9J3/gdbus/message-parse/empty-structure/.dirs/data 1134s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-serialization_XDE9J3/gdbus/message-parse/empty-structure/.dirs/state 1134s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-serialization_XDE9J3/gdbus/message-parse/empty-structure/.dirs/runtime 1134s # /gdbus/message-parse/empty-structure summary: Test that empty structures are rejected when parsing. 1134s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/2557 1134s # Running test: glib/gio-tool.py.test 1134s ok 16 /gdbus/message-parse/empty-structure 1134s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-serialization_XDE9J3/gdbus/message-parse/missing-header/.dirs/home 1134s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-serialization_XDE9J3/gdbus/message-parse/missing-header/.dirs/cache 1134s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-serialization_XDE9J3/gdbus/message-parse/missing-header/.dirs/system-config1:/tmp/test_gdbus-serialization_XDE9J3/gdbus/message-parse/missing-header/.dirs/system-config2 1134s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-serialization_XDE9J3/gdbus/message-parse/missing-header/.dirs/config 1134s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-serialization_XDE9J3/gdbus/message-parse/missing-header/.dirs/system-data1:/tmp/test_gdbus-serialization_XDE9J3/gdbus/message-parse/missing-header/.dirs/system-data2 1134s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-serialization_XDE9J3/gdbus/message-parse/missing-header/.dirs/data 1134s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-serialization_XDE9J3/gdbus/message-parse/missing-header/.dirs/state 1134s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-serialization_XDE9J3/gdbus/message-parse/missing-header/.dirs/runtime 1134s # /gdbus/message-parse/missing-header summary: Test that missing (required) headers prompt an error. 1134s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3061 1134s ok 17 /gdbus/message-parse/missing-header 1134s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-serialization_XDE9J3/gdbus/message-parse/invalid-header-type/.dirs/home 1134s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-serialization_XDE9J3/gdbus/message-parse/invalid-header-type/.dirs/cache 1134s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-serialization_XDE9J3/gdbus/message-parse/invalid-header-type/.dirs/system-config1:/tmp/test_gdbus-serialization_XDE9J3/gdbus/message-parse/invalid-header-type/.dirs/system-config2 1134s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-serialization_XDE9J3/gdbus/message-parse/invalid-header-type/.dirs/config 1134s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-serialization_XDE9J3/gdbus/message-parse/invalid-header-type/.dirs/system-data1:/tmp/test_gdbus-serialization_XDE9J3/gdbus/message-parse/invalid-header-type/.dirs/system-data2 1134s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-serialization_XDE9J3/gdbus/message-parse/invalid-header-type/.dirs/data 1134s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-serialization_XDE9J3/gdbus/message-parse/invalid-header-type/.dirs/state 1134s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-serialization_XDE9J3/gdbus/message-parse/invalid-header-type/.dirs/runtime 1134s # /gdbus/message-parse/invalid-header-type summary: Test that the type of well-known headers is checked. 1134s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3061 1134s ok 18 /gdbus/message-parse/invalid-header-type 1134s # End of message-parse tests 1134s # End of gdbus tests 1134s TAP version 13 1134s ok 1 __main__.TestGioLaunchExpandsDesktopEntry.test_absolute_from_folder 1134s # gio: /usr/bin/gio 1134s # tmpdir: /tmp/tmpezj9jbzu 1134s # Running: ['/usr/bin/gio', 'launch', '/tmp/tmpezj9jbzu/folder/desktop.entry'] 1134s # Working Directory: /tmp/tmpezj9jbzu/folder 1134s # Return code: 0 1134s # Output: 1134s # /tmp/tmpezj9jbzu/folder/desktop.entry 1134s # Error: 1134s ok 2 __main__.TestGioLaunchExpandsDesktopEntry.test_absolute_from_parent 1134s # gio: /usr/bin/gio 1134s # tmpdir: /tmp/tmpk9xe07ze 1134s # Running: ['/usr/bin/gio', 'launch', '/tmp/tmpk9xe07ze/folder/desktop.entry'] 1134s # Working Directory: /tmp/tmpk9xe07ze 1134s # Return code: 0 1134s # Output: 1134s # /tmp/tmpk9xe07ze/folder/desktop.entry 1134s # Error: 1134s ok 3 __main__.TestGioLaunchExpandsDesktopEntry.test_absolute_from_sibling 1134s # gio: /usr/bin/gio 1134s # tmpdir: /tmp/tmpzaxxyyts 1134s # Running: ['/usr/bin/gio', 'launch', '/tmp/tmpzaxxyyts/folder/desktop.entry'] 1134s # Working Directory: /tmp/tmpzaxxyyts/sibling 1134s # Return code: 0 1134s # Output: 1134s # /tmp/tmpzaxxyyts/folder/desktop.entry 1134s # Error: 1134s ok 4 __main__.TestGioLaunchExpandsDesktopEntry.test_relative_from_folder 1134s # gio: /usr/bin/gio 1134s # tmpdir: /tmp/tmpav3kr_vj 1134s # Running: ['/usr/bin/gio', 'launch', 'desktop.entry'] 1134s # Working Directory: /tmp/tmpav3kr_vj/folder 1134s # Return code: 0 1134s # Output: 1134s # /tmp/tmpav3kr_vj/folder/desktop.entry 1134s # Error: 1134s ok 5 __main__.TestGioLaunchExpandsDesktopEntry.test_relative_from_parent 1134s # gio: /usr/bin/gio 1134s # tmpdir: /tmp/tmpaigvkejw 1134s # Running: ['/usr/bin/gio', 'launch', 'folder/desktop.entry'] 1134s # Working Directory: /tmp/tmpaigvkejw 1134s # Return code: 0 1134s # Output: 1134s # /tmp/tmpaigvkejw/folder/desktop.entry 1134s # Error: 1134s ok 6 __main__.TestGioLaunchExpandsDesktopEntry.test_relative_from_sibling 1134s # gio: /usr/bin/gio 1134s # tmpdir: /tmp/tmp3ivtdygf 1134s # Running: ['/usr/bin/gio', 'launch', '../folder/desktop.entry'] 1134s # Working Directory: /tmp/tmp3ivtdygf/sibling 1134s # Return code: 0 1134s # Output: 1134s # /tmp/tmp3ivtdygf/folder/desktop.entry 1134s # Error: 1134s ok 7 __main__.TestGioTool.test_help 1134s # gio: /usr/bin/gio 1134s # tmpdir: /tmp/tmpkgixgw2o 1134s # Running: ['/usr/bin/gio', '--help'] 1134s # Return code: 0 1134s # Output: 1134s # Usage: 1134s # gio COMMAND [ARGS…] 1134s # 1134s # Commands: 1134s # help Print help 1134s # version Print version 1134s # cat Concatenate files to standard output 1134s # copy Copy one or more files 1134s # info Show information about locations 1134s # launch Launch an application from a desktop file 1134s # list List the contents of locations 1134s # mime Get or set the handler for a mimetype 1134s # mkdir Create directories 1134s # monitor Monitor files and directories for changes 1134s # mount Mount or unmount the locations 1134s # move Move one or more files 1134s # open Open files with the default application 1134s # rename Rename a file 1134s # remove Delete one or more files 1134s # save Read from standard input and save 1134s # set Set a file attribute 1134s # trash Move files or directories to the trash 1134s # tree Lists the contents of locations in a tree 1134s # 1134s # Use “gio help COMMAND” to get detailed help. 1134s # Error: 1134s # 1134s # Running: ['/usr/bin/gio', 'help'] 1134s # Return code: 0 1134s # Output: 1134s # Usage: 1134s # gio COMMAND [ARGS…] 1134s # 1134s # Commands: 1134s # help Print help 1134s # version Print version 1134s # cat Concatenate files to standard output 1134s # copy Copy one or more files 1134s # info Show information about locations 1134s # launch Launch an application from a desktop file 1134s # list List the contents of locations 1134s # mime Get or set the handler for a mimetype 1134s # mkdir Create directories 1134s # monitor Monitor files and directories for changes 1134s # mount Mount or unmount the locations 1134s # move Move one or more files 1134s # open Open files with the default application 1134s # rename Rename a file 1134s # remove Delete one or more files 1134s # save Read from standard input and save 1134s # set Set a file attribute 1134s # trash Move files or directories to the trash 1134s # tree Lists the contents of locations in a tree 1134s # 1134s # Use “gio help COMMAND” to get detailed help. 1134s # Error: 1134s ok 8 __main__.TestGioTool.test_info_non_default_attributes 1134s # gio: /usr/bin/gio 1134s # tmpdir: /tmp/tmpjdoakt0s 1134s # Running: ['/usr/bin/gio', 'info', '--attributes=standard::content-type', '/tmp/tmpjdoakt0s/tmp4_x6mxsn'] 1134s # Return code: 0 1134s # Output: 1134s # uri: file:///tmp/tmpjdoakt0s/tmp4_x6mxsn 1134s # local path: /tmp/tmpjdoakt0s/tmp4_x6mxsn 1134s # unix mount: /dev/vda2[/lxd/containers/autopkgtest-lxd-vpgxgc/rootfs] / btrfs rw,relatime,idmapped,discard=async,space_cache=v2,user_subvol_rm_allowed,subvolid=48683,subvol=/lxd/containers/autopkgtest-lxd-vpgxgc 1134s # attributes: 1134s # standard::content-type: application/x-zerosize 1134s # Error: 1134s ok 9 __main__.TestGioTool.test_no_args 1134s # gio: /usr/bin/gio 1134s # tmpdir: /tmp/tmpdz_7l2uz 1134s # Running: ['/usr/bin/gio'] 1134s # Return code: 1 1134s # Output: 1134s # 1134s # Error: 1134s # Usage: 1134s # gio COMMAND [ARGS…] 1134s # 1134s # Commands: 1134s # help Print help 1134s # version Print version 1134s # cat Concatenate files to standard output 1134s # copy Copy one or more files 1134s # info Show information about locations 1134s # launch Launch an application from a desktop file 1134s # list List the contents of locations 1134s # mime Get or set the handler for a mimetype 1134s # mkdir Create directories 1134s # monitor Monitor files and directories for changes 1134s # mount Mount or unmount the locations 1134s # move Move one or more files 1134s # open Open files with the default application 1134s # rename Rename a file 1134s # remove Delete one or more files 1134s # save Read from standard input and save 1134s # set Set a file attribute 1134s # trash Move files or directories to the trash 1134s # tree Lists the contents of locations in a tree 1134s # 1134s # Use “gio help COMMAND” to get detailed help. 1134s 1..9 1134s ok - glib/gio-tool.py.test 1134s # Running test: glib/qdata.test 1134s TAP version 14 1134s # random seed: R02S9123bae9081972b04564dd0a8f96b36d 1134s 1..2 1134s # Start of qdata tests 1135s # Executing: glib/qdata.test 1136s ok 1 /qdata/threaded 1136s # slow test /qdata/threaded executed in 1.40 secs 1136s ok 2 /qdata/dup 1136s # End of qdata tests 1136s ok - glib/qdata.test 1136s # Running test: glib/sequence.test 1136s TAP version 14 1136s # random seed: R02S8b9e9650722bd47be9d0f72208c339ae 1136s 1..16 1136s # Start of sequence tests 1136s ok 1 /sequence/out-of-range-jump 1136s ok 2 /sequence/iter-move 1136s ok 3 /sequence/insert-sorted-non-pointer 1136s ok 4 /sequence/stable-sort 1136s ok 5 /sequence/is_empty 1136s # Start of random tests 1136s ok 6 /sequence/random/seed:825541564 1136s # slow test /sequence/random/seed:825541564 executed in 0.61 secs 1137s ok 7 /sequence/random/seed:801678400 1137s # slow test /sequence/random/seed:801678400 executed in 0.58 secs 1137s ok 8 /sequence/random/seed:1477639090 1137s # slow test /sequence/random/seed:1477639090 executed in 0.61 secs 1138s ok 9 /sequence/random/seed:3369132895 1138s # slow test /sequence/random/seed:3369132895 executed in 0.56 secs 1139s ok 10 /sequence/random/seed:1192944867 1139s # slow test /sequence/random/seed:1192944867 executed in 0.58 secs 1139s ok 11 /sequence/random/seed:770458294 1139s # slow test /sequence/random/seed:770458294 executed in 0.61 secs 1140s # Executing: glib/sequence.test 1140s ok 12 /sequence/random/seed:1099575817 1140s # slow test /sequence/random/seed:1099575817 executed in 0.58 secs 1140s ok 13 /sequence/random/seed:590523467 1140s # slow test /sequence/random/seed:590523467 executed in 0.60 secs 1141s ok 14 /sequence/random/seed:3583571454 1141s # slow test /sequence/random/seed:3583571454 executed in 0.61 secs 1142s ok 15 /sequence/random/seed:579241222 1142s # slow test /sequence/random/seed:579241222 executed in 0.61 secs 1142s ok 16 /sequence/random/seed:1633640531 1142s # slow test /sequence/random/seed:1633640531 executed in 0.60 secs 1142s # End of random tests 1142s # End of sequence tests 1142s ok - glib/sequence.test 1142s # Running test: glib/signals-refcount2.test 1142s TAP version 14 1142s # random seed: R02Sae9aa032e7dac989d8982ee3cdc32ee6 1142s 1..1 1142s # Start of gobject tests 1142s # Start of refcount tests 1142s # init 0x3afac90 1142s # 1142s # init 0x3b01510 1142s # 1145s # Executing: glib/signals-refcount2.test 1147s # dispose 0x3afac90! 1147s # 1147s # dispose 0x3b01510! 1147s # 1147s ok 1 /gobject/refcount/signals 1147s # slow test /gobject/refcount/signals executed in 5.00 secs 1147s # End of refcount tests 1147s # End of gobject tests 1147s ok - glib/signals-refcount2.test 1147s # Running test: glib/unicode.test 1147s TAP version 14 1147s # random seed: R02Sa92ace4dec918f46fc596187fb5dd4bc 1147s 1..39 1147s # Start of unicode tests 1147s ok 1 /unicode/alnum 1147s ok 2 /unicode/alpha 1147s ok 3 /unicode/break-type 1147s ok 4 /unicode/canonical-decomposition 1147s ok 5 /unicode/casefold 1147s # Cannot set locale to lt_LT, skipping 1147s # Cannot set locale to lt_LT, skipping 1147s # Cannot set locale to lt_LT, skipping 1147s # Cannot set locale to lt_LT, skipping 1147s # Cannot set locale to lt_LT, skipping 1147s # Cannot set locale to lt_LT, skipping 1147s # Cannot set locale to lt_LT, skipping 1147s # Cannot set locale to lt_LT, skipping 1147s # Cannot set locale to lt_LT, skipping 1147s # Cannot set locale to lt_LT, skipping 1147s # Cannot set locale to lt_LT, skipping 1147s ok 6 /unicode/casemap_and_casefold 1147s ok 7 /unicode/cases 1147s ok 8 /unicode/character-type 1147s ok 9 /unicode/cntrl 1147s ok 10 /unicode/combining-class 1147s # Composing U+000041 and U+000042; expecting U+000000 1147s # Composing U+000041 and U+000000; expecting U+000000 1147s # Composing U+000066 and U+000069; expecting U+000000 1147s # Composing U+000308 and U+000301; expecting U+000000 1147s # Composing U+000f71 and U+000f72; expecting U+000000 1147s # Composing U+00212b and U+000000; expecting U+000000 1147s # Composing U+0000c5 and U+000000; expecting U+000000 1147s # Composing U+002126 and U+000000; expecting U+000000 1147s # Composing U+0003a9 and U+000000; expecting U+000000 1147s # Composing U+000041 and U+00030a; expecting U+0000c5 1147s # Composing U+00006f and U+000302; expecting U+0000f4 1147s # Composing U+001e63 and U+000307; expecting U+001e69 1147s # Composing U+000073 and U+000323; expecting U+001e63 1147s # Composing U+000064 and U+000307; expecting U+001e0b 1147s # Composing U+000064 and U+000323; expecting U+001e0d 1147s # Composing U+00d4cc and U+0011b6; expecting U+00d4db 1147s # Composing U+001111 and U+001171; expecting U+00d4cc 1147s # Composing U+00ce20 and U+0011b8; expecting U+00ce31 1147s # Composing U+00110e and U+001173; expecting U+00ce20 1147s # Composing U+001100 and U+001160; expecting U+000000 1147s # Composing U+001100 and U+001177; expecting U+000000 1147s # Composing U+00abff and U+0011b6; expecting U+000000 1147s # Composing U+00d7a5 and U+0011b6; expecting U+000000 1147s # Composing U+00ac01 and U+0011b6; expecting U+000000 1147s # Composing U+00d4cc and U+0011a6; expecting U+000000 1147s # Composing U+00d4cc and U+0011c4; expecting U+000000 1147s # Composing U+01611e and U+01611e; expecting U+016121 1147s # Composing U+01611e and U+01611f; expecting U+016123 1147s # Composing U+0000f6 and U+000304; expecting U+00022b 1147s # Composing U+000b47 and U+000b57; expecting U+000b4c 1147s # Composing U+0000a0 and U+000b57; expecting U+000000 1147s # Composing U+016e00 and U+00030a; expecting U+000000 1147s # Composing U+00212b and U+016e00; expecting U+000000 1147s # Composing U+001e63 and U+000306; expecting U+000000 1147s # Composing U+001e63 and U+000304; expecting U+000000 1147s # Composing U+001e63 and U+000b57; expecting U+000000 1147s # Composing U+001e63 and U+000000; expecting U+000000 1147s # Composing U+001e63 and U+0113c2; expecting U+000000 1147s # Composing U+001f01 and U+0113c2; expecting U+000000 1147s # Composing U+00006e and U+000302; expecting U+000000 1147s # Composing U+001e63 and U+01611f; expecting U+000000 1147s # Composing U+01138e and U+0113b8; expecting U+000000 1147s # Composing U+01611e and U+000000; expecting U+000000 1147s # Composing U+000000 and U+01611f; expecting U+000000 1147s # Composing U+011390 and U+0113c2; expecting U+000000 1147s ok 11 /unicode/compose 1147s ok 12 /unicode/decompose 1147s ok 13 /unicode/decompose-tail 1147s ok 14 /unicode/defined 1147s ok 15 /unicode/digit 1147s ok 16 /unicode/digit-value 1147s # Fully decomposing U+000041; expecting 1 codepoints 1147s # Fully decomposing U+00fb01; expecting 1 codepoints 1147s # Fully decomposing U+00212b; expecting 2 codepoints 1147s # Fully decomposing U+002126; expecting 1 codepoints 1147s # Fully decomposing U+000344; expecting 2 codepoints 1147s # Fully decomposing U+000f73; expecting 2 codepoints 1147s # Fully decomposing U+0000c5; expecting 2 codepoints 1147s # Fully decomposing U+0000f4; expecting 2 codepoints 1147s # Fully decomposing U+001e69; expecting 3 codepoints 1147s # Fully decomposing U+001e63; expecting 2 codepoints 1147s # Fully decomposing U+001e0b; expecting 2 codepoints 1147s # Fully decomposing U+001e0d; expecting 2 codepoints 1147s # Fully decomposing U+00d4db; expecting 3 codepoints 1147s # Fully decomposing U+00d4cc; expecting 2 codepoints 1147s # Fully decomposing U+00ce31; expecting 3 codepoints 1147s # Fully decomposing U+00ce20; expecting 2 codepoints 1147s ok 17 /unicode/fully-decompose-canonical 1147s ok - glib/unicode.test 1147s # Running test: glib/signals-refcount3.test 1147s ok 18 /unicode/fully-decompose-len 1147s ok 19 /unicode/normalization 1147s ok 20 /unicode/graph 1147s # Testing script Zyyy (code 1517910393) 1147s # Testing script Zinh (code 1516858984) 1147s # Testing script Zmth (code 1517122664) 1147s # Testing script Arab (code 1098015074) 1147s # Testing script Armn (code 1098018158) 1147s # Testing script Beng (code 1113943655) 1147s # Testing script Bopo (code 1114599535) 1147s # Testing script Cher (code 1130915186) 1147s # Testing script Copt (code 1131376756) 1147s # Testing script Cyrl (code 1132032620) 1147s # Testing script Dsrt (code 1148416628) 1147s # Testing script Deva (code 1147500129) 1147s # Testing script Ethi (code 1165256809) 1147s # Testing script Geor (code 1197830002) 1147s # Testing script Goth (code 1198486632) 1147s # Testing script Grek (code 1198679403) 1147s # Testing script Gujr (code 1198877298) 1147s # Testing script Guru (code 1198879349) 1147s # Testing script Hani (code 1214344809) 1147s # Testing script Hang (code 1214344807) 1147s # Testing script Hebr (code 1214603890) 1147s # Testing script Hira (code 1214870113) 1147s # Testing script Knda (code 1265525857) 1147s # Testing script Kana (code 1264676449) 1147s # Testing script Khmr (code 1265134962) 1147s # Testing script Laoo (code 1281453935) 1147s # Testing script Latn (code 1281455214) 1147s # Testing script Mlym (code 1298954605) 1147s # Testing script Mong (code 1299148391) 1147s # Testing script Mymr (code 1299803506) 1147s # Testing script Ogam (code 1332175213) 1147s # Testing script Ital (code 1232363884) 1147s # Testing script Orya (code 1332902241) 1147s # Testing script Runr (code 1383427698) 1147s # Testing script Sinh (code 1399418472) 1147s # Testing script Syrc (code 1400468067) 1147s # Testing script Taml (code 1415671148) 1147s # Testing script Telu (code 1415933045) 1147s # Testing script Thaa (code 1416126817) 1147s # Testing script Thai (code 1416126825) 1147s # Testing script Tibt (code 1416192628) 1147s # Testing script Cans (code 1130458739) 1147s # Testing script Yiii (code 1500080489) 1147s # Testing script Tglg (code 1416064103) 1147s # Testing script Hano (code 1214344815) 1147s # Testing script Buhd (code 1114990692) 1147s # Testing script Tagb (code 1415669602) 1147s # Testing script Brai (code 1114792297) 1147s # Testing script Cprt (code 1131442804) 1147s # Testing script Limb (code 1281977698) 1147s # Testing script Osma (code 1332964705) 1147s # Testing script Shaw (code 1399349623) 1147s # Testing script Linb (code 1281977954) 1147s # Testing script Tale (code 1415670885) 1147s # Testing script Ugar (code 1432838514) 1147s # Testing script Talu (code 1415670901) 1147s # Testing script Bugi (code 1114990441) 1147s # Testing script Glag (code 1198285159) 1147s # Testing script Tfng (code 1415999079) 1147s # Testing script Sylo (code 1400466543) 1147s # Testing script Xpeo (code 1483761007) 1147s # Testing script Khar (code 1265131890) 1147s # Testing script Zzzz (code 1517976186) 1147s # Testing script Bali (code 1113681001) 1147s # Testing script Xsux (code 1483961720) 1147s # Testing script Phnx (code 1349021304) 1147s # Testing script Phag (code 1349017959) 1147s # Testing script Nkoo (code 1315663727) 1147s # Testing script Kali (code 1264675945) 1147s # Testing script Lepc (code 1281716323) 1147s # Testing script Rjng (code 1382706791) 1147s # Testing script Sund (code 1400204900) 1147s # Testing script Saur (code 1398895986) 1147s # Testing script Cham (code 1130914157) 1147s # Testing script Olck (code 1332503403) 1147s # Testing script Vaii (code 1449224553) 1147s # Testing script Cari (code 1130459753) 1147s # Testing script Lyci (code 1283023721) 1147s # Testing script Lydi (code 1283023977) 1147s # Testing script Avst (code 1098281844) 1147s # Testing script Bamu (code 1113681269) 1147s # Testing script Egyp (code 1164409200) 1147s # Testing script Armi (code 1098018153) 1147s # Testing script Phli (code 1349020777) 1147s # Testing script Prti (code 1349678185) 1147s # Testing script Java (code 1247901281) 1147s # Testing script Kthi (code 1265920105) 1147s # Testing script Lisu (code 1281979253) 1147s # Testing script Mtei (code 1299473769) 1147s # Testing script Sarb (code 1398895202) 1147s # Testing script Orkh (code 1332898664) 1147s # Testing script Samr (code 1398893938) 1147s # Testing script Lana (code 1281453665) 1147s # Testing script Tavt (code 1415673460) 1147s # Testing script Batk (code 1113683051) 1147s # Testing script Brah (code 1114792296) 1147s # Testing script Mand (code 1298230884) 1147s # Testing script Cakm (code 1130457965) 1147s # Testing script Merc (code 1298494051) 1147s # Testing script Mero (code 1298494063) 1147s # Testing script Plrd (code 1349284452) 1147s # Testing script Shrd (code 1399353956) 1147s # Testing script Sora (code 1399812705) 1147s # Testing script Takr (code 1415670642) 1147s # Testing script Bass (code 1113682803) 1147s # Testing script Aghb (code 1097295970) 1147s # Testing script Dupl (code 1148547180) 1147s # Testing script Elba (code 1164730977) 1147s # Testing script Gran (code 1198678382) 1147s # Testing script Khoj (code 1265135466) 1147s # Testing script Sind (code 1399418468) 1147s # Testing script Lina (code 1281977953) 1147s # Testing script Mahj (code 1298229354) 1147s # Testing script Mani (code 1298230889) 1147s # Testing script Mend (code 1298493028) 1147s # Testing script Modi (code 1299145833) 1147s # Testing script Mroo (code 1299345263) 1147s # Testing script Nbat (code 1315070324) 1147s # Testing script Narb (code 1315009122) 1147s # Testing script Perm (code 1348825709) 1147s # Testing script Hmng (code 1215131239) 1147s # Testing script Palm (code 1348562029) 1147s # Testing script Pauc (code 1348564323) 1147s # Testing script Phlp (code 1349020784) 1147s # Testing script Sidd (code 1399415908) 1147s # Testing script Tirh (code 1416196712) 1147s # Testing script Wara (code 1466004065) 1147s # Testing script Ahom (code 1097363309) 1147s # Testing script Hluw (code 1215067511) 1147s # Testing script Hatr (code 1214346354) 1147s # Testing script Mult (code 1299541108) 1147s # Testing script Hung (code 1215655527) 1147s # Testing script Sgnw (code 1399287415) 1147s # Testing script Adlm (code 1097100397) 1147s # Testing script Bhks (code 1114139507) 1147s # Testing script Marc (code 1298231907) 1147s # Testing script Newa (code 1315272545) 1147s # Testing script Osge (code 1332963173) 1147s # Testing script Tang (code 1415671399) 1147s # Testing script Gonm (code 1198485101) 1147s # Testing script Nshu (code 1316186229) 1147s # Testing script Soyo (code 1399814511) 1147s # Testing script Zanb (code 1516334690) 1147s # Testing script Dogr (code 1148151666) 1147s # Testing script Gong (code 1198485095) 1147s # Testing script Rohg (code 1383032935) 1147s # Testing script Maka (code 1298230113) 1147s # Testing script Medf (code 1298490470) 1147s # Testing script Sogo (code 1399809903) 1147s # Testing script Sogd (code 1399809892) 1147s # Testing script Elym (code 1164736877) 1147s # Testing script Nand (code 1315008100) 1147s # Testing script Hmnp (code 1215131248) 1147s # Testing script Wcho (code 1466132591) 1147s # Testing script Chrs (code 1130918515) 1147s # Testing script Diak (code 1147756907) 1147s # Testing script Kits (code 1265202291) 1147s # Testing script Yezi (code 1499822697) 1147s # Testing script Cpmn (code 1131441518) 1147s # Testing script Ougr (code 1333094258) 1147s # Testing script Tnsa (code 1416524641) 1147s # Testing script Toto (code 1416590447) 1147s # Testing script Vith (code 1449751656) 1147s # Testing script Kawi (code 1264678761) 1147s # Testing script Nagm (code 1315006317) 1147s # Testing script Todr (code 1416586354) 1147s # Testing script Gara (code 1197568609) 1147s # Testing script Tutg (code 1416983655) 1147s # Testing script Sunu (code 1400204917) 1147s # Testing script Gukh (code 1198877544) 1147s # Testing script Krai (code 1265787241) 1147s # Testing script Onao (code 1332633967) 1147s ok 21 /unicode/iso15924 1147s ok 22 /unicode/lower 1147s ok 23 /unicode/mark 1147s ok 24 /unicode/mirror 1147s ok 25 /unicode/print 1147s ok 26 /unicode/punctuation 1147s ok 27 /unicode/script 1147s ok 28 /unicode/space 1147s ok 29 /unicode/strdown 1147s ok 30 /unicode/strup 1147s ok 31 /unicode/turkish-strupdown 1147s ok 32 /unicode/title 1147s ok 33 /unicode/upper 1147s ok 34 /unicode/validate 1147s ok 35 /unicode/wide 1147s ok 36 /unicode/xdigit 1147s ok 37 /unicode/xdigit-value 1147s ok 38 /unicode/zero-width 1147s ok 39 /unicode/normalize 1147s # End of unicode tests 1147s TAP version 14 1147s # random seed: R02S7edafb9b7f529368aec9235993adc50e 1147s 1..1 1147s # Start of gobject tests 1147s # Start of refcount tests 1147s # init 0xa90dc90 1147s # 1147s # init 0xa914510 1147s # 1150s # Executing: glib/signals-refcount3.test 1152s # dispose 0xa90dc90! 1152s # 1152s # dispose 0xa914510! 1152s # 1152s ok 1 /gobject/refcount/signals 1152s # slow test /gobject/refcount/signals executed in 5.00 secs 1152s # End of refcount tests 1152s # End of gobject tests 1152s ok - glib/signals-refcount3.test 1152s # Running test: glib/application-command-line.test 1152s TAP version 14 1152s # random seed: R02S738b14a80d4e444fa8176d901eff4219 1152s 1..1 1152s # Start of application-command-line tests 1152s ok 1 /application-command-line/basic-properties 1152s # End of application-command-line tests 1152s ok - glib/application-command-line.test 1152s # Running test: glib/option-argv0.test 1152s TAP version 14 1152s # random seed: R02Se6181f3586b835f06b0098e849e081ea 1152s 1..1 1152s # Start of option tests 1152s ok 1 /option/argv0 1152s # End of option tests 1152s ok - glib/option-argv0.test 1152s # Running test: glib/buffered-output-stream.test 1152s ok - glib/buffered-output-stream.test 1152s TAP version 14 1152s # random seed: R02S454c6e40d020fa3c77647e755ce59f8f 1152s 1..5 1152s # Start of buffered-output-stream tests 1152s ok 1 /buffered-output-stream/write 1152s ok 2 /buffered-output-stream/grow 1152s ok 3 /buffered-output-stream/seek 1152s ok 4 /buffered-output-stream/truncate 1152s # End of buffered-output-stream tests 1152s # Start of filter-output-stream tests 1152s ok 5 /filter-output-stream/close 1152s # End of filter-output-stream tests 1152s # Running test: glib/power-profile-monitor-dbus.test 1153s TAP version 13 1153s ok 1 __main__.TestPowerProfileMonitor.test_power_profile_power_saver_enabled 1153s 1..1 1153s ok - glib/power-profile-monitor-dbus.test 1153s # Running test: glib/messages-low-memory.py.test 1153s TAP version 13 1153s ok 1 __main__.TestMessagesLowMemory.test_message_memory_allocation_failure 1153s # messages-low-memory: /usr/libexec/installed-tests/glib/messages-low-memory 1153s # tmpdir: /tmp/tmpfbmcq3vo 1153s # Running: ['/usr/libexec/installed-tests/glib/messages-low-memory'] 1153s # Return code: -6 1153s # Output: 1153s # 1153s # Error: 1153s # GLib-Message: 11:33:53.397: Simulates a situation in which we were crashing because of low-memory, leading malloc to fail instead of aborting 1153s # GLib-Message: 11:33:53.397: bug: https://gitlab.gnome.org/GNOME/glib/-/issues/2753 1153s # ../../../glib/gprintf.c:351: failed to allocate memory 1153s 1..1 1153s ok - glib/messages-low-memory.py.test 1153s # Running test: glib/gdbus-connection-flush.test 1153s TAP version 14 1153s # random seed: R02S8733089f50f9aac67b549d9565f1c62e 1153s 1..2 1153s # Start of gdbus tests 1153s # Start of connection tests 1153s # Start of flush tests 1153s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-connection-flush_Z0V5J3/gdbus/connection/flush/busy/.dirs/home 1153s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-connection-flush_Z0V5J3/gdbus/connection/flush/busy/.dirs/cache 1153s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-connection-flush_Z0V5J3/gdbus/connection/flush/busy/.dirs/system-config1:/tmp/test_gdbus-connection-flush_Z0V5J3/gdbus/connection/flush/busy/.dirs/system-config2 1153s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-connection-flush_Z0V5J3/gdbus/connection/flush/busy/.dirs/config 1153s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-connection-flush_Z0V5J3/gdbus/connection/flush/busy/.dirs/system-data1:/tmp/test_gdbus-connection-flush_Z0V5J3/gdbus/connection/flush/busy/.dirs/system-data2 1153s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-connection-flush_Z0V5J3/gdbus/connection/flush/busy/.dirs/data 1153s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-connection-flush_Z0V5J3/gdbus/connection/flush/busy/.dirs/state 1153s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-connection-flush_Z0V5J3/gdbus/connection/flush/busy/.dirs/runtime 1153s ok 1 /gdbus/connection/flush/busy 1153s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-connection-flush_Z0V5J3/gdbus/connection/flush/idle/.dirs/home 1153s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-connection-flush_Z0V5J3/gdbus/connection/flush/idle/.dirs/cache 1153s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-connection-flush_Z0V5J3/gdbus/connection/flush/idle/.dirs/system-config1:/tmp/test_gdbus-connection-flush_Z0V5J3/gdbus/connection/flush/idle/.dirs/system-config2 1153s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-connection-flush_Z0V5J3/gdbus/connection/flush/idle/.dirs/config 1153s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-connection-flush_Z0V5J3/gdbus/connection/flush/idle/.dirs/system-data1:/tmp/test_gdbus-connection-flush_Z0V5J3/gdbus/connection/flush/idle/.dirs/system-data2 1153s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-connection-flush_Z0V5J3/gdbus/connection/flush/idle/.dirs/data 1153s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-connection-flush_Z0V5J3/gdbus/connection/flush/idle/.dirs/state 1153s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-connection-flush_Z0V5J3/gdbus/connection/flush/idle/.dirs/runtime 1153s ok 2 /gdbus/connection/flush/idle 1153s # End of flush tests 1153s # End of connection tests 1153s # End of gdbus tests 1153s ok - glib/gdbus-connection-flush.test 1153s # Running test: glib/gdbus-connection-slow.test 1153s TAP version 14 1153s # random seed: R02Sad5484b429188e93a07d8fd69483af42 1153s 1..2 1153s # Start of gdbus tests 1153s # Start of connection tests 1153s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-connection-slow_BQR3J3/gdbus/connection/flush/.dirs/home 1153s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-connection-slow_BQR3J3/gdbus/connection/flush/.dirs/cache 1153s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-connection-slow_BQR3J3/gdbus/connection/flush/.dirs/system-config1:/tmp/test_gdbus-connection-slow_BQR3J3/gdbus/connection/flush/.dirs/system-config2 1153s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-connection-slow_BQR3J3/gdbus/connection/flush/.dirs/config 1153s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-connection-slow_BQR3J3/gdbus/connection/flush/.dirs/system-data1:/tmp/test_gdbus-connection-slow_BQR3J3/gdbus/connection/flush/.dirs/system-data2 1153s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-connection-slow_BQR3J3/gdbus/connection/flush/.dirs/data 1153s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-connection-slow_BQR3J3/gdbus/connection/flush/.dirs/state 1153s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-connection-slow_BQR3J3/gdbus/connection/flush/.dirs/runtime 1154s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1154s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1154s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1154s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1154s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1154s ok 1 /gdbus/connection/flush 1154s # slow test /gdbus/connection/flush executed in 0.54 secs 1154s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-connection-slow_BQR3J3/gdbus/connection/large_message/.dirs/home 1154s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-connection-slow_BQR3J3/gdbus/connection/large_message/.dirs/cache 1154s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-connection-slow_BQR3J3/gdbus/connection/large_message/.dirs/system-config1:/tmp/test_gdbus-connection-slow_BQR3J3/gdbus/connection/large_message/.dirs/system-config2 1154s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-connection-slow_BQR3J3/gdbus/connection/large_message/.dirs/config 1154s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-connection-slow_BQR3J3/gdbus/connection/large_message/.dirs/system-data1:/tmp/test_gdbus-connection-slow_BQR3J3/gdbus/connection/large_message/.dirs/system-data2 1154s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-connection-slow_BQR3J3/gdbus/connection/large_message/.dirs/data 1154s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-connection-slow_BQR3J3/gdbus/connection/large_message/.dirs/state 1154s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-connection-slow_BQR3J3/gdbus/connection/large_message/.dirs/runtime 1154s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1154s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1154s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1154s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1154s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1154s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1154s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1154s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1154s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1154s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1154s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1154s ok 2 /gdbus/connection/large_message 1154s # slow test /gdbus/connection/large_message executed in 0.54 secs 1154s # End of connection tests 1154s # End of gdbus tests 1154s ok - glib/gdbus-connection-slow.test 1154s # Running test: glib/completion.test 1154s TAP version 14 1154s # random seed: R02Sbc483ee24677618c7766ad610e62eb64 1154s 1..1 1154s # Start of completion tests 1154s ok 1 /completion/test-completion 1154s # End of completion tests 1154s ok - glib/completion.test 1154s # Running test: glib/thread.test 1154s TAP version 14 1154s # random seed: R02S0248e597c67d34fbc4759587c4d94332 1154s 1..7 1154s # Start of thread tests 1154s ok 1 /thread/thread1 1154s ok 2 /thread/thread2 1154s ok 3 /thread/thread3 1154s ok 4 /thread/thread4 1154s ok 5 /thread/thread5 1154s ok 6 /thread/thread6 1154s ok - glib/thread.test 1154s # Running test: glib/gobject-query.py.test 1154s ok 7 /thread/thread7 1154s # End of thread tests 1154s TAP version 13 1154s ok 1 __main__.TestGobjectQuery.test_froots 1154s # gobject-query: /usr/bin/gobject-query 1154s # tmpdir: /tmp/tmpm5tbcrb4 1154s # Running: ['/usr/bin/gobject-query', 'froots'] 1154s # Return code: 0 1154s # Output: 1154s # ├void 1154s # ├GInterface 1154s # │ └GTypePlugin 1154s # ├gchar 1154s # ├guchar 1154s # ├gboolean 1154s # ├gint 1154s # ├guint 1154s # ├glong 1154s # ├gulong 1154s # ├gint64 1154s # ├guint64 1154s # ├GEnum 1154s # ├GFlags 1154s # ├gfloat 1154s # ├gdouble 1154s # ├gchararray 1154s # ├gpointer 1154s # │ └GType 1154s # ├GBoxed 1154s # │ └GValueArray 1154s # ├GParam 1154s # │ ├GParamChar 1154s # │ ├GParamUChar 1154s # │ ├GParamBoolean 1154s # │ ├GParamInt 1154s # │ ├GParamUInt 1154s # │ ├GParamLong 1154s # │ ├GParamULong 1154s # │ ├GParamInt64 1154s # │ ├GParamUInt64 1154s # │ ├GParamUnichar 1154s # │ ├GParamEnum 1154s # │ ├GParamFlags 1154s # │ ├GParamFloat 1154s # │ ├GParamDouble 1154s # │ ├GParamString 1154s # │ ├GParamParam 1154s # │ ├GParamBoxed 1154s # │ ├GParamPointer 1154s # │ ├GParamValueArray 1154s # │ ├GParamObject 1154s # │ ├GParamOverride 1154s # │ ├GParamGType 1154s # │ └GParamVariant 1154s # ├GObject 1154s # └GVariant 1154s # Error: 1154s ok 2 __main__.TestGobjectQuery.test_help 1154s # gobject-query: /usr/bin/gobject-query 1154s # tmpdir: /tmp/tmpk44s1wpr 1154s # Running: ['/usr/bin/gobject-query', '--help'] 1154s # Return code: 0 1154s # Output: 1154s # usage: gobject-query [-r ] [-{i|b} ""] [-s #] [-{h|x|y}] 1154s # -r specify root type 1154s # -n don't descend type tree 1154s # -h show help 1154s # -b specify indent string 1154s # -i specify incremental indent string 1154s # -s specify line spacing 1154s # qualifiers: 1154s # froots iterate over fundamental roots 1154s # tree print type tree 1154s # Error: 1154s ok 3 __main__.TestGobjectQuery.test_tree 1154s # gobject-query: /usr/bin/gobject-query 1154s # tmpdir: /tmp/tmp_ew2egck 1154s # Running: ['/usr/bin/gobject-query', 'tree'] 1154s # Return code: 0 1154s # Output: 1154s # GObject 1154s # Error: 1154s ok 4 __main__.TestGobjectQuery.test_version 1154s # gobject-query: /usr/bin/gobject-query 1154s # tmpdir: /tmp/tmp9wd47eyu 1154s # Running: ['/usr/bin/gobject-query', '--version'] 1154s # Return code: 0 1154s # Output: 1154s # 2.86.3 1154s # Error: 1154s 1..4 1154s ok - glib/gobject-query.py.test 1154s # Running test: glib/codegen.py.test 1155s TAP version 13 1155s ok 1 __main__.TestCodegen.test_call_flags_and_timeout_method_args 1155s # gdbus-codegen: /usr/bin/gdbus-codegen 1155s # tmpdir: /tmp/tmptulnil0o 1155s # /tmp/tmptulnil0o/tmpdrfjbzdz.xml: 1155s # 1155s # 1155s # 1155s # 1155s # 1155s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmptulnil0o/tmpdrfjbzdz.xml', '--output', '-', '--header'] 1155s # Return code: 0 1155s # Output: 1155s # /* 1155s # * This file is generated by gdbus-codegen, do not modify it. 1155s # * 1155s # * The license of this code is the same as for the D-Bus interface description 1155s # * it was derived from. Note that it links to GLib, so must comply with the 1155s # * LGPL linking clauses. 1155s # */ 1155s # 1155s # #ifndef __STDOUT__ 1155s # #define __STDOUT__ 1155s # 1155s # #include 1155s # 1155s # G_BEGIN_DECLS 1155s # 1155s # 1155s # /* ------------------------------------------------------------------------ */ 1155s # /* Declarations for org.project.UsefulInterface */ 1155s # 1155s # #define TYPE_ORG_PROJECT_USEFUL_INTERFACE (org_project_useful_interface_get_type ()) 1155s # #define ORG_PROJECT_USEFUL_INTERFACE(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_ORG_PROJECT_USEFUL_INTERFACE, OrgProjectUsefulInterface)) 1155s # #define IS_ORG_PROJECT_USEFUL_INTERFACE(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_ORG_PROJECT_USEFUL_INTERFACE)) 1155s # #define ORG_PROJECT_USEFUL_INTERFACE_GET_IFACE(o) (G_TYPE_INSTANCE_GET_INTERFACE ((o), TYPE_ORG_PROJECT_USEFUL_INTERFACE, OrgProjectUsefulInterfaceIface)) 1155s # 1155s # struct _OrgProjectUsefulInterface; 1155s # typedef struct _OrgProjectUsefulInterface OrgProjectUsefulInterface; 1155s # typedef struct _OrgProjectUsefulInterfaceIface OrgProjectUsefulInterfaceIface; 1155s # 1155s # struct _OrgProjectUsefulInterfaceIface 1155s # { 1155s # GTypeInterface parent_iface; 1155s # 1155s # gboolean (*handle_useful_method) ( 1155s # OrgProjectUsefulInterface *object, 1155s # GDBusMethodInvocation *invocation); 1155s # 1155s # }; 1155s # 1155s # GType org_project_useful_interface_get_type (void) G_GNUC_CONST; 1155s # 1155s # GDBusInterfaceInfo *org_project_useful_interface_interface_info (void); 1155s # guint org_project_useful_interface_override_properties (GObjectClass *klass, guint property_id_begin); 1155s # 1155s # 1155s # /* D-Bus method call completion functions: */ 1155s # void org_project_useful_interface_complete_useful_method ( 1155s # OrgProjectUsefulInterface *object, 1155s # GDBusMethodInvocation *invocation); 1155s # 1155s # 1155s # 1155s # /* D-Bus method calls: */ 1155s # void org_project_useful_interface_call_useful_method ( 1155s # OrgProjectUsefulInterface *proxy, 1155s # GCancellable *cancellable, 1155s # GAsyncReadyCallback callback, 1155s # gpointer user_data); 1155s # 1155s # gboolean org_project_useful_interface_call_useful_method_finish ( 1155s # OrgProjectUsefulInterface *proxy, 1155s # GAsyncResult *res, 1155s # GError **error); 1155s # 1155s # gboolean org_project_useful_interface_call_useful_method_sync ( 1155s # OrgProjectUsefulInterface *proxy, 1155s # GCancellable *cancellable, 1155s # GError **error); 1155s # 1155s # 1155s # 1155s # /* ---- */ 1155s # 1155s # #define TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY (org_project_useful_interface_proxy_get_type ()) 1155s # #define ORG_PROJECT_USEFUL_INTERFACE_PROXY(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY, OrgProjectUsefulInterfaceProxy)) 1155s # #define ORG_PROJECT_USEFUL_INTERFACE_PROXY_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY, OrgProjectUsefulInterfaceProxyClass)) 1155s # #define ORG_PROJECT_USEFUL_INTERFACE_PROXY_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY, OrgProjectUsefulInterfaceProxyClass)) 1155s # #define IS_ORG_PROJECT_USEFUL_INTERFACE_PROXY(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY)) 1155s # #define IS_ORG_PROJECT_USEFUL_INTERFACE_PROXY_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY)) 1155s # 1155s # typedef struct _OrgProjectUsefulInterfaceProxy OrgProjectUsefulInterfaceProxy; 1155s # typedef struct _OrgProjectUsefulInterfaceProxyClass OrgProjectUsefulInterfaceProxyClass; 1155s # typedef struct _OrgProjectUsefulInterfaceProxyPrivate OrgProjectUsefulInterfaceProxyPrivate; 1155s # 1155s # struct _OrgProjectUsefulInterfaceProxy 1155s # { 1155s # /*< private >*/ 1155s # GDBusProxy parent_instance; 1155s # OrgProjectUsefulInterfaceProxyPrivate *priv; 1155s # }; 1155s # 1155s # struct _OrgProjectUsefulInterfaceProxyClass 1155s # { 1155s # GDBusProxyClass parent_class; 1155s # }; 1155s # 1155s # GType org_project_useful_interface_proxy_get_type (void) G_GNUC_CONST; 1155s # 1155s # #if GLIB_CHECK_VERSION(2, 44, 0) 1155s # G_DEFINE_AUTOPTR_CLEANUP_FUNC (OrgProjectUsefulInterfaceProxy, g_object_unref) 1155s # #endif 1155s # 1155s # void org_project_useful_interface_proxy_new ( 1155s # GDBusConnection *connection, 1155s # GDBusProxyFlags flags, 1155s # const gchar *name, 1155s # const gchar *object_path, 1155s # GCancellable *cancellable, 1155s # GAsyncReadyCallback callback, 1155s # gpointer user_data); 1155s # OrgProjectUsefulInterface *org_project_useful_interface_proxy_new_finish ( 1155s # GAsyncResult *res, 1155s # GError **error); 1155s # OrgProjectUsefulInterface *org_project_useful_interface_proxy_new_sync ( 1155s # GDBusConnection *connection, 1155s # GDBusProxyFlags flags, 1155s # const gchar *name, 1155s # const gchar *object_path, 1155s # GCancellable *cancellable, 1155s # GError **error); 1155s # 1155s # void org_project_useful_interface_proxy_new_for_bus ( 1155s # GBusType bus_type, 1155s # GDBusProxyFlags flags, 1155s # const gchar *name, 1155s # const gchar *object_path, 1155s # GCancellable *cancellable, 1155s # GAsyncReadyCallback callback, 1155s # gpointer user_data); 1155s # OrgProjectUsefulInterface *org_project_useful_interface_proxy_new_for_bus_finish ( 1155s # GAsyncResult *res, 1155s # GError **error); 1155s # OrgProjectUsefulInterface *org_project_useful_interface_proxy_new_for_bus_sync ( 1155s # GBusType bus_type, 1155s # GDBusProxyFlags flags, 1155s # const gchar *name, 1155s # const gchar *object_path, 1155s # GCancellable *cancellable, 1155s # GError **error); 1155s # 1155s # 1155s # /* ---- */ 1155s # 1155s # #define TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON (org_project_useful_interface_skeleton_get_type ()) 1155s # #define ORG_PROJECT_USEFUL_INTERFACE_SKELETON(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, OrgProjectUsefulInterfaceSkeleton)) 1155s # #define ORG_PROJECT_USEFUL_INTERFACE_SKELETON_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, OrgProjectUsefulInterfaceSkeletonClass)) 1155s # #define ORG_PROJECT_USEFUL_INTERFACE_SKELETON_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, OrgProjectUsefulInterfaceSkeletonClass)) 1155s # #define IS_ORG_PROJECT_USEFUL_INTERFACE_SKELETON(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON)) 1155s # #define IS_ORG_PROJECT_USEFUL_INTERFACE_SKELETON_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON)) 1155s # 1155s # typedef struct _OrgProjectUsefulInterfaceSkeleton OrgProjectUsefulInterfaceSkeleton; 1155s # typedef struct _OrgProjectUsefulInterfaceSkeletonClass OrgProjectUsefulInterfaceSkeletonClass; 1155s # typedef struct _OrgProjectUsefulInterfaceSkeletonPrivate OrgProjectUsefulInterfaceSkeletonPrivate; 1155s # 1155s # struct _OrgProjectUsefulInterfaceSkeleton 1155s # { 1155s # /*< private >*/ 1155s # GDBusInterfaceSkeleton parent_instance; 1155s # OrgProjectUsefulInterfaceSkeletonPrivate *priv; 1155s # }; 1155s # 1155s # struct _OrgProjectUsefulInterfaceSkeletonClass 1155s # { 1155s # GDBusInterfaceSkeletonClass parent_class; 1155s # }; 1155s # 1155s # GType org_project_useful_interface_skeleton_get_type (void) G_GNUC_CONST; 1155s # 1155s # #if GLIB_CHECK_VERSION(2, 44, 0) 1155s # G_DEFINE_AUTOPTR_CLEANUP_FUNC (OrgProjectUsefulInterfaceSkeleton, g_object_unref) 1155s # #endif 1155s # 1155s # OrgProjectUsefulInterface *org_project_useful_interface_skeleton_new (void); 1155s # 1155s # 1155s # G_END_DECLS 1155s # 1155s # #endif /* __STDOUT__ */ 1155s # Error: 1155s # 1155s # /tmp/tmptulnil0o/tmp6aewbott.xml: 1155s # 1155s # 1155s # 1155s # 1155s # 1155s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmptulnil0o/tmp6aewbott.xml', '--output', '-', '--header', '--glib-min-required', '2.32'] 1155s # Return code: 0 1155s # Output: 1155s # /* 1155s # * This file is generated by gdbus-codegen, do not modify it. 1155s # * 1155s # * The license of this code is the same as for the D-Bus interface description 1155s # * it was derived from. Note that it links to GLib, so must comply with the 1155s # * LGPL linking clauses. 1155s # */ 1155s # 1155s # #ifndef __STDOUT__ 1155s # #define __STDOUT__ 1155s # 1155s # #include 1155s # 1155s # G_BEGIN_DECLS 1155s # 1155s # 1155s # /* ------------------------------------------------------------------------ */ 1155s # /* Declarations for org.project.UsefulInterface */ 1155s # 1155s # #define TYPE_ORG_PROJECT_USEFUL_INTERFACE (org_project_useful_interface_get_type ()) 1155s # #define ORG_PROJECT_USEFUL_INTERFACE(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_ORG_PROJECT_USEFUL_INTERFACE, OrgProjectUsefulInterface)) 1155s # #define IS_ORG_PROJECT_USEFUL_INTERFACE(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_ORG_PROJECT_USEFUL_INTERFACE)) 1155s # #define ORG_PROJECT_USEFUL_INTERFACE_GET_IFACE(o) (G_TYPE_INSTANCE_GET_INTERFACE ((o), TYPE_ORG_PROJECT_USEFUL_INTERFACE, OrgProjectUsefulInterfaceIface)) 1155s # 1155s # struct _OrgProjectUsefulInterface; 1155s # typedef struct _OrgProjectUsefulInterface OrgProjectUsefulInterface; 1155s # typedef struct _OrgProjectUsefulInterfaceIface OrgProjectUsefulInterfaceIface; 1155s # 1155s # struct _OrgProjectUsefulInterfaceIface 1155s # { 1155s # GTypeInterface parent_iface; 1155s # 1155s # gboolean (*handle_useful_method) ( 1155s # OrgProjectUsefulInterface *object, 1155s # GDBusMethodInvocation *invocation); 1155s # 1155s # }; 1155s # 1155s # GType org_project_useful_interface_get_type (void) G_GNUC_CONST; 1155s # 1155s # GDBusInterfaceInfo *org_project_useful_interface_interface_info (void); 1155s # guint org_project_useful_interface_override_properties (GObjectClass *klass, guint property_id_begin); 1155s # 1155s # 1155s # /* D-Bus method call completion functions: */ 1155s # void org_project_useful_interface_complete_useful_method ( 1155s # OrgProjectUsefulInterface *object, 1155s # GDBusMethodInvocation *invocation); 1155s # 1155s # 1155s # 1155s # /* D-Bus method calls: */ 1155s # void org_project_useful_interface_call_useful_method ( 1155s # OrgProjectUsefulInterface *proxy, 1155s # GCancellable *cancellable, 1155s # GAsyncReadyCallback callback, 1155s # gpointer user_data); 1155s # 1155s # gboolean org_project_useful_interface_call_useful_method_finish ( 1155s # OrgProjectUsefulInterface *proxy, 1155s # GAsyncResult *res, 1155s # GError **error); 1155s # 1155s # gboolean org_project_useful_interface_call_useful_method_sync ( 1155s # OrgProjectUsefulInterface *proxy, 1155s # GCancellable *cancellable, 1155s # GError **error); 1155s # 1155s # 1155s # 1155s # /* ---- */ 1155s # 1155s # #define TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY (org_project_useful_interface_proxy_get_type ()) 1155s # #define ORG_PROJECT_USEFUL_INTERFACE_PROXY(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY, OrgProjectUsefulInterfaceProxy)) 1155s # #define ORG_PROJECT_USEFUL_INTERFACE_PROXY_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY, OrgProjectUsefulInterfaceProxyClass)) 1155s # #define ORG_PROJECT_USEFUL_INTERFACE_PROXY_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY, OrgProjectUsefulInterfaceProxyClass)) 1155s # #define IS_ORG_PROJECT_USEFUL_INTERFACE_PROXY(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY)) 1155s # #define IS_ORG_PROJECT_USEFUL_INTERFACE_PROXY_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY)) 1155s # 1155s # typedef struct _OrgProjectUsefulInterfaceProxy OrgProjectUsefulInterfaceProxy; 1155s # typedef struct _OrgProjectUsefulInterfaceProxyClass OrgProjectUsefulInterfaceProxyClass; 1155s # typedef struct _OrgProjectUsefulInterfaceProxyPrivate OrgProjectUsefulInterfaceProxyPrivate; 1155s # 1155s # struct _OrgProjectUsefulInterfaceProxy 1155s # { 1155s # /*< private >*/ 1155s # GDBusProxy parent_instance; 1155s # OrgProjectUsefulInterfaceProxyPrivate *priv; 1155s # }; 1155s # 1155s # struct _OrgProjectUsefulInterfaceProxyClass 1155s # { 1155s # GDBusProxyClass parent_class; 1155s # }; 1155s # 1155s # GType org_project_useful_interface_proxy_get_type (void) G_GNUC_CONST; 1155s # 1155s # #if GLIB_CHECK_VERSION(2, 44, 0) 1155s # G_DEFINE_AUTOPTR_CLEANUP_FUNC (OrgProjectUsefulInterfaceProxy, g_object_unref) 1155s # #endif 1155s # 1155s # void org_project_useful_interface_proxy_new ( 1155s # GDBusConnection *connection, 1155s # GDBusProxyFlags flags, 1155s # const gchar *name, 1155s # const gchar *object_path, 1155s # GCancellable *cancellable, 1155s # GAsyncReadyCallback callback, 1155s # gpointer user_data); 1155s # OrgProjectUsefulInterface *org_project_useful_interface_proxy_new_finish ( 1155s # GAsyncResult *res, 1155s # GError **error); 1155s # OrgProjectUsefulInterface *org_project_useful_interface_proxy_new_sync ( 1155s # GDBusConnection *connection, 1155s # GDBusProxyFlags flags, 1155s # const gchar *name, 1155s # const gchar *object_path, 1155s # GCancellable *cancellable, 1155s # GError **error); 1155s # 1155s # void org_project_useful_interface_proxy_new_for_bus ( 1155s # GBusType bus_type, 1155s # GDBusProxyFlags flags, 1155s # const gchar *name, 1155s # const gchar *object_path, 1155s # GCancellable *cancellable, 1155s # GAsyncReadyCallback callback, 1155s # gpointer user_data); 1155s # OrgProjectUsefulInterface *org_project_useful_interface_proxy_new_for_bus_finish ( 1155s # GAsyncResult *res, 1155s # GError **error); 1155s # OrgProjectUsefulInterface *org_project_useful_interface_proxy_new_for_bus_sync ( 1155s # GBusType bus_type, 1155s # GDBusProxyFlags flags, 1155s # const gchar *name, 1155s # const gchar *object_path, 1155s # GCancellable *cancellable, 1155s # GError **error); 1155s # 1155s # 1155s # /* ---- */ 1155s # 1155s # #define TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON (org_project_useful_interface_skeleton_get_type ()) 1155s # #define ORG_PROJECT_USEFUL_INTERFACE_SKELETON(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, OrgProjectUsefulInterfaceSkeleton)) 1155s # #define ORG_PROJECT_USEFUL_INTERFACE_SKELETON_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, OrgProjectUsefulInterfaceSkeletonClass)) 1155s # #define ORG_PROJECT_USEFUL_INTERFACE_SKELETON_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, OrgProjectUsefulInterfaceSkeletonClass)) 1155s # #define IS_ORG_PROJECT_USEFUL_INTERFACE_SKELETON(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON)) 1155s # #define IS_ORG_PROJECT_USEFUL_INTERFACE_SKELETON_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON)) 1155s # 1155s # typedef struct _OrgProjectUsefulInterfaceSkeleton OrgProjectUsefulInterfaceSkeleton; 1155s # typedef struct _OrgProjectUsefulInterfaceSkeletonClass OrgProjectUsefulInterfaceSkeletonClass; 1155s # typedef struct _OrgProjectUsefulInterfaceSkeletonPrivate OrgProjectUsefulInterfaceSkeletonPrivate; 1155s # 1155s # struct _OrgProjectUsefulInterfaceSkeleton 1155s # { 1155s # /*< private >*/ 1155s # GDBusInterfaceSkeleton parent_instance; 1155s # OrgProjectUsefulInterfaceSkeletonPrivate *priv; 1155s # }; 1155s # 1155s # struct _OrgProjectUsefulInterfaceSkeletonClass 1155s # { 1155s # GDBusInterfaceSkeletonClass parent_class; 1155s # }; 1155s # 1155s # GType org_project_useful_interface_skeleton_get_type (void) G_GNUC_CONST; 1155s # 1155s # #if GLIB_CHECK_VERSION(2, 44, 0) 1155s # G_DEFINE_AUTOPTR_CLEANUP_FUNC (OrgProjectUsefulInterfaceSkeleton, g_object_unref) 1155s # #endif 1155s # 1155s # OrgProjectUsefulInterface *org_project_useful_interface_skeleton_new (void); 1155s # 1155s # 1155s # G_END_DECLS 1155s # 1155s # #endif /* __STDOUT__ */ 1155s # Error: 1155s # 1155s # /tmp/tmptulnil0o/tmpsvbr21rc.xml: 1155s # 1155s # 1155s # 1155s # 1155s # 1155s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmptulnil0o/tmpsvbr21rc.xml', '--output', '-', '--header', '--glib-min-required', '2.64'] 1155s # Return code: 0 1155s # Output: 1155s # /* 1155s # * This file is generated by gdbus-codegen, do not modify it. 1155s # * 1155s # * The license of this code is the same as for the D-Bus interface description 1155s # * it was derived from. Note that it links to GLib, so must comply with the 1155s # * LGPL linking clauses. 1155s # */ 1155s # 1155s # #ifndef __STDOUT__ 1155s # #define __STDOUT__ 1155s # 1155s # #include 1155s # 1155s # G_BEGIN_DECLS 1155s # 1155s # 1155s # /* ------------------------------------------------------------------------ */ 1155s # /* Declarations for org.project.UsefulInterface */ 1155s # 1155s # #define TYPE_ORG_PROJECT_USEFUL_INTERFACE (org_project_useful_interface_get_type ()) 1155s # #define ORG_PROJECT_USEFUL_INTERFACE(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_ORG_PROJECT_USEFUL_INTERFACE, OrgProjectUsefulInterface)) 1155s # #define IS_ORG_PROJECT_USEFUL_INTERFACE(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_ORG_PROJECT_USEFUL_INTERFACE)) 1155s # #define ORG_PROJECT_USEFUL_INTERFACE_GET_IFACE(o) (G_TYPE_INSTANCE_GET_INTERFACE ((o), TYPE_ORG_PROJECT_USEFUL_INTERFACE, OrgProjectUsefulInterfaceIface)) 1155s # 1155s # struct _OrgProjectUsefulInterface; 1155s # typedef struct _OrgProjectUsefulInterface OrgProjectUsefulInterface; 1155s # typedef struct _OrgProjectUsefulInterfaceIface OrgProjectUsefulInterfaceIface; 1155s # 1155s # struct _OrgProjectUsefulInterfaceIface 1155s # { 1155s # GTypeInterface parent_iface; 1155s # 1155s # gboolean (*handle_useful_method) ( 1155s # OrgProjectUsefulInterface *object, 1155s # GDBusMethodInvocation *invocation); 1155s # 1155s # }; 1155s # 1155s # GType org_project_useful_interface_get_type (void) G_GNUC_CONST; 1155s # 1155s # GDBusInterfaceInfo *org_project_useful_interface_interface_info (void); 1155s # guint org_project_useful_interface_override_properties (GObjectClass *klass, guint property_id_begin); 1155s # 1155s # 1155s # /* D-Bus method call completion functions: */ 1155s # void org_project_useful_interface_complete_useful_method ( 1155s # OrgProjectUsefulInterface *object, 1155s # GDBusMethodInvocation *invocation); 1155s # 1155s # 1155s # 1155s # /* D-Bus method calls: */ 1155s # void org_project_useful_interface_call_useful_method ( 1155s # OrgProjectUsefulInterface *proxy, 1155s # GDBusCallFlags call_flags, 1155s # gint timeout_msec, 1155s # GCancellable *cancellable, 1155s # GAsyncReadyCallback callback, 1155s # gpointer user_data); 1155s # 1155s # gboolean org_project_useful_interface_call_useful_method_finish ( 1155s # OrgProjectUsefulInterface *proxy, 1155s # GAsyncResult *res, 1155s # GError **error); 1155s # 1155s # gboolean org_project_useful_interface_call_useful_method_sync ( 1155s # OrgProjectUsefulInterface *proxy, 1155s # GDBusCallFlags call_flags, 1155s # gint timeout_msec, 1155s # GCancellable *cancellable, 1155s # GError **error); 1155s # 1155s # 1155s # 1155s # /* ---- */ 1155s # 1155s # #define TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY (org_project_useful_interface_proxy_get_type ()) 1155s # #define ORG_PROJECT_USEFUL_INTERFACE_PROXY(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY, OrgProjectUsefulInterfaceProxy)) 1155s # #define ORG_PROJECT_USEFUL_INTERFACE_PROXY_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY, OrgProjectUsefulInterfaceProxyClass)) 1155s # #define ORG_PROJECT_USEFUL_INTERFACE_PROXY_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY, OrgProjectUsefulInterfaceProxyClass)) 1155s # #define IS_ORG_PROJECT_USEFUL_INTERFACE_PROXY(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY)) 1155s # #define IS_ORG_PROJECT_USEFUL_INTERFACE_PROXY_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY)) 1155s # 1155s # typedef struct _OrgProjectUsefulInterfaceProxy OrgProjectUsefulInterfaceProxy; 1155s # typedef struct _OrgProjectUsefulInterfaceProxyClass OrgProjectUsefulInterfaceProxyClass; 1155s # typedef struct _OrgProjectUsefulInterfaceProxyPrivate OrgProjectUsefulInterfaceProxyPrivate; 1155s # 1155s # struct _OrgProjectUsefulInterfaceProxy 1155s # { 1155s # /*< private >*/ 1155s # GDBusProxy parent_instance; 1155s # OrgProjectUsefulInterfaceProxyPrivate *priv; 1155s # }; 1155s # 1155s # struct _OrgProjectUsefulInterfaceProxyClass 1155s # { 1155s # GDBusProxyClass parent_class; 1155s # }; 1155s # 1155s # GType org_project_useful_interface_proxy_get_type (void) G_GNUC_CONST; 1155s # 1155s # #if GLIB_CHECK_VERSION(2, 44, 0) 1155s # G_DEFINE_AUTOPTR_CLEANUP_FUNC (OrgProjectUsefulInterfaceProxy, g_object_unref) 1155s # #endif 1155s # 1155s # void org_project_useful_interface_proxy_new ( 1155s # GDBusConnection *connection, 1155s # GDBusProxyFlags flags, 1155s # const gchar *name, 1155s # const gchar *object_path, 1155s # GCancellable *cancellable, 1155s # GAsyncReadyCallback callback, 1155s # gpointer user_data); 1155s # OrgProjectUsefulInterface *org_project_useful_interface_proxy_new_finish ( 1155s # GAsyncResult *res, 1155s # GError **error); 1155s # OrgProjectUsefulInterface *org_project_useful_interface_proxy_new_sync ( 1155s # GDBusConnection *connection, 1155s # GDBusProxyFlags flags, 1155s # const gchar *name, 1155s # const gchar *object_path, 1155s # GCancellable *cancellable, 1155s # GError **error); 1155s # 1155s # void org_project_useful_interface_proxy_new_for_bus ( 1155s # GBusType bus_type, 1155s # GDBusProxyFlags flags, 1155s # const gchar *name, 1155s # const gchar *object_path, 1155s # GCancellable *cancellable, 1155s # GAsyncReadyCallback callback, 1155s # gpointer user_data); 1155s # OrgProjectUsefulInterface *org_project_useful_interface_proxy_new_for_bus_finish ( 1155s # GAsyncResult *res, 1155s # GError **error); 1155s # OrgProjectUsefulInterface *org_project_useful_interface_proxy_new_for_bus_sync ( 1155s # GBusType bus_type, 1155s # GDBusProxyFlags flags, 1155s # const gchar *name, 1155s # const gchar *object_path, 1155s # GCancellable *cancellable, 1155s # GError **error); 1155s # 1155s # 1155s # /* ---- */ 1155s # 1155s # #define TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON (org_project_useful_interface_skeleton_get_type ()) 1155s # #define ORG_PROJECT_USEFUL_INTERFACE_SKELETON(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, OrgProjectUsefulInterfaceSkeleton)) 1155s # #define ORG_PROJECT_USEFUL_INTERFACE_SKELETON_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, OrgProjectUsefulInterfaceSkeletonClass)) 1155s # #define ORG_PROJECT_USEFUL_INTERFACE_SKELETON_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, OrgProjectUsefulInterfaceSkeletonClass)) 1155s # #define IS_ORG_PROJECT_USEFUL_INTERFACE_SKELETON(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON)) 1155s # #define IS_ORG_PROJECT_USEFUL_INTERFACE_SKELETON_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON)) 1155s # 1155s # typedef struct _OrgProjectUsefulInterfaceSkeleton OrgProjectUsefulInterfaceSkeleton; 1155s # typedef struct _OrgProjectUsefulInterfaceSkeletonClass OrgProjectUsefulInterfaceSkeletonClass; 1155s # typedef struct _OrgProjectUsefulInterfaceSkeletonPrivate OrgProjectUsefulInterfaceSkeletonPrivate; 1155s # 1155s # struct _OrgProjectUsefulInterfaceSkeleton 1155s # { 1155s # /*< private >*/ 1155s # GDBusInterfaceSkeleton parent_instance; 1155s # OrgProjectUsefulInterfaceSkeletonPrivate *priv; 1155s # }; 1155s # 1155s # struct _OrgProjectUsefulInterfaceSkeletonClass 1155s # { 1155s # GDBusInterfaceSkeletonClass parent_class; 1155s # }; 1155s # 1155s # GType org_project_useful_interface_skeleton_get_type (void) G_GNUC_CONST; 1155s # 1155s # #if GLIB_CHECK_VERSION(2, 44, 0) 1155s # G_DEFINE_AUTOPTR_CLEANUP_FUNC (OrgProjectUsefulInterfaceSkeleton, g_object_unref) 1155s # #endif 1155s # 1155s # OrgProjectUsefulInterface *org_project_useful_interface_skeleton_new (void); 1155s # 1155s # 1155s # G_END_DECLS 1155s # 1155s # #endif /* __STDOUT__ */ 1155s # Error: 1155s # Executing: glib/codegen.py.test 1156s ok 2 __main__.TestCodegen.test_dbus_types 1156s # gdbus-codegen: /usr/bin/gdbus-codegen 1156s # tmpdir: /tmp/tmp2vjrmu6t 1156s # /tmp/tmp2vjrmu6t/tmpjjgv6odd.xml: 1156s # 1156s # 1156s # 1156s # 1156s # 1156s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmp2vjrmu6t/tmpjjgv6odd.xml', '--output', '-', '--body'] 1156s # Return code: 1 1156s # Output: 1156s # 1156s # Error: 1156s # ERROR: Bad signature "{vs}". "v" is not a valid type for dictionary keys at position 1. 1156s # /tmp/tmp2vjrmu6t/tmpjqxcxc2x.xml: 1156s # 1156s # 1156s # 1156s # 1156s # 1156s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmp2vjrmu6t/tmpjqxcxc2x.xml', '--output', '-', '--body'] 1156s # Return code: 1 1156s # Output: 1156s # 1156s # Error: 1156s # ERROR: Bad signature "(ss(s{{sv}s}))". "{" is not a valid type for dictionary keys at position 6. 1156s # /tmp/tmp2vjrmu6t/tmpoe91p2ry.xml: 1156s # 1156s # 1156s # 1156s # 1156s # 1156s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmp2vjrmu6t/tmpoe91p2ry.xml', '--output', '-', '--body'] 1156s # Return code: 1 1156s # Output: 1156s # 1156s # Error: 1156s # ERROR: Bad signature "{s". Error parsing string or brackets not closed. 1156s # /tmp/tmp2vjrmu6t/tmpyj716odk.xml: 1156s # 1156s # 1156s # 1156s # 1156s # 1156s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmp2vjrmu6t/tmpyj716odk.xml', '--output', '-', '--body'] 1156s # Return code: 1 1156s # Output: 1156s # 1156s # Error: 1156s # ERROR: Bad signature "(s{sss})". Dict must end with "}" at position 5. 1156s # /tmp/tmp2vjrmu6t/tmpldma9opl.xml: 1156s # 1156s # 1156s # 1156s # 1156s # 1156s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmp2vjrmu6t/tmpldma9opl.xml', '--output', '-', '--body'] 1156s # Return code: 1 1156s # Output: 1156s # 1156s # Error: 1156s # ERROR: Bad signature "z". "z" is not a valid D-Bus type. 1156s # /tmp/tmp2vjrmu6t/tmpajvdikb2.xml: 1156s # 1156s # 1156s # 1156s # 1156s # 1156s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmp2vjrmu6t/tmpajvdikb2.xml', '--output', '-', '--body'] 1156s # Return code: 1 1156s # Output: 1156s # 1156s # Error: 1156s # ERROR: Bad signature "(ssms)". "m" is not a valid D-Bus type. 1156s # /tmp/tmp2vjrmu6t/tmp6erg5irn.xml: 1156s # 1156s # 1156s # 1156s # 1156s # 1156s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmp2vjrmu6t/tmp6erg5irn.xml', '--output', '-', '--body'] 1156s # Return code: 1 1156s # Output: 1156s # 1156s # Error: 1156s # ERROR: Bad signature "(". Error parsing string or brackets not closed. 1156s # /tmp/tmp2vjrmu6t/tmpwtr0b65d.xml: 1156s # 1156s # 1156s # 1156s # 1156s # 1156s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmp2vjrmu6t/tmpwtr0b65d.xml', '--output', '-', '--body'] 1156s # Return code: 1 1156s # Output: 1156s # 1156s # Error: 1156s # ERROR: Bad signature "(((ss))". Error parsing string or brackets not closed. 1156s # /tmp/tmp2vjrmu6t/tmpiv1ijkfl.xml: 1156s # 1156s # 1156s # 1156s # 1156s # 1156s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmp2vjrmu6t/tmpiv1ijkfl.xml', '--output', '-', '--body'] 1156s # Return code: 1 1156s # Output: 1156s # 1156s # Error: 1156s # ERROR: Bad signature "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaas". Too much recursion beginning at 129. 1156s # /tmp/tmp2vjrmu6t/tmpgh4d7137.xml: 1156s # 1156s # 1156s # 1156s # 1156s # 1156s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmp2vjrmu6t/tmpgh4d7137.xml', '--output', '-', '--body'] 1156s # Return code: 1 1156s # Output: 1156s # 1156s # Error: 1156s # ERROR: D-Bus maximum signature length of 255 exceeded. 1156s # /tmp/tmp2vjrmu6t/tmp39t30cat.xml: 1156s # 1156s # 1156s # 1156s # 1156s # 1156s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmp2vjrmu6t/tmp39t30cat.xml', '--output', '-', '--body'] 1156s # Return code: 1 1156s # Output: 1156s # 1156s # Error: 1156s # ERROR: D-Bus maximum signature length of 255 exceeded. 1156s # /tmp/tmp2vjrmu6t/tmp1vpmcft_.xml: 1156s # 1156s # 1156s # 1156s # 1156s # 1156s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmp2vjrmu6t/tmp1vpmcft_.xml', '--output', '-', '--body'] 1156s # Return code: 1 1156s # Output: 1156s # 1156s # Error: 1156s # ERROR: Bad signature "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa(aaaaaa{sv})". Too much recursion beginning at 129. 1156s # /tmp/tmp2vjrmu6t/tmp9is63n6t.xml: 1156s # 1156s # 1156s # 1156s # 1156s # 1156s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmp2vjrmu6t/tmp9is63n6t.xml', '--output', '-', '--body'] 1156s # Return code: 1 1156s # Output: 1156s # 1156s # Error: 1156s # ERROR: D-Bus maximum signature length of 255 exceeded. 1156s # /tmp/tmp2vjrmu6t/tmpisf3zt9d.xml: 1156s # 1156s # 1156s # 1156s # 1156s # 1156s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmp2vjrmu6t/tmpisf3zt9d.xml', '--output', '-', '--body'] 1156s # Return code: 0 1156s # Output: 1156s # /* 1156s # * This file is generated by gdbus-codegen, do not modify it. 1156s # * 1156s # * The license of this code is the same as for the D-Bus interface description 1156s # * it was derived from. Note that it links to GLib, so must comply with the 1156s # * LGPL linking clauses. 1156s # */ 1156s # 1156s # #ifdef HAVE_CONFIG_H 1156s # # include "config.h" 1156s # #endif 1156s # 1156s # #include 1156s # #ifdef G_OS_UNIX 1156s # # include 1156s # #endif 1156s # 1156s # #ifdef G_ENABLE_DEBUG 1156s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 1156s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 1156s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 1156s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 1156s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 1156s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 1156s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 1156s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 1156s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 1156s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 1156s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 1156s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 1156s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 1156s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 1156s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 1156s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 1156s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 1156s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 1156s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 1156s # #else /* !G_ENABLE_DEBUG */ 1156s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 1156s # * Do not access GValues directly in your code. Instead, use the 1156s # * g_value_get_*() functions 1156s # */ 1156s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 1156s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 1156s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 1156s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 1156s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 1156s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 1156s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 1156s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 1156s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 1156s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 1156s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 1156s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 1156s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 1156s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 1156s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 1156s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 1156s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 1156s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 1156s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 1156s # #endif /* !G_ENABLE_DEBUG */ 1156s # 1156s # typedef struct 1156s # { 1156s # GDBusArgInfo parent_struct; 1156s # gboolean use_gvariant; 1156s # } _ExtendedGDBusArgInfo; 1156s # 1156s # typedef struct 1156s # { 1156s # GDBusMethodInfo parent_struct; 1156s # const gchar *signal_name; 1156s # gboolean pass_fdlist; 1156s # } _ExtendedGDBusMethodInfo; 1156s # 1156s # typedef struct 1156s # { 1156s # GDBusSignalInfo parent_struct; 1156s # const gchar *signal_name; 1156s # } _ExtendedGDBusSignalInfo; 1156s # 1156s # typedef struct 1156s # { 1156s # GDBusPropertyInfo parent_struct; 1156s # const gchar *hyphen_name; 1156s # guint use_gvariant : 1; 1156s # guint emits_changed_signal : 1; 1156s # } _ExtendedGDBusPropertyInfo; 1156s # 1156s # typedef struct 1156s # { 1156s # GDBusInterfaceInfo parent_struct; 1156s # const gchar *hyphen_name; 1156s # } _ExtendedGDBusInterfaceInfo; 1156s # 1156s # typedef struct 1156s # { 1156s # const _ExtendedGDBusPropertyInfo *info; 1156s # guint prop_id; 1156s # GValue orig_value; /* the value before the change */ 1156s # } ChangedProperty; 1156s # 1156s # static void 1156s # _changed_property_free (ChangedProperty *data) 1156s # { 1156s # g_value_unset (&data->orig_value); 1156s # g_free (data); 1156s # } 1156s # 1156s # static gboolean 1156s # _g_strv_equal0 (gchar **a, gchar **b) 1156s # { 1156s # gboolean ret = FALSE; 1156s # guint n; 1156s # if (a == NULL && b == NULL) 1156s # { 1156s # ret = TRUE; 1156s # goto out; 1156s # } 1156s # if (a == NULL || b == NULL) 1156s # goto out; 1156s # if (g_strv_length (a) != g_strv_length (b)) 1156s # goto out; 1156s # for (n = 0; a[n] != NULL; n++) 1156s # if (g_strcmp0 (a[n], b[n]) != 0) 1156s # goto out; 1156s # ret = TRUE; 1156s # out: 1156s # return ret; 1156s # } 1156s # 1156s # static gboolean 1156s # _g_variant_equal0 (GVariant *a, GVariant *b) 1156s # { 1156s # gboolean ret = FALSE; 1156s # if (a == NULL && b == NULL) 1156s # { 1156s # ret = TRUE; 1156s # goto out; 1156s # } 1156s # if (a == NULL || b == NULL) 1156s # goto out; 1156s # ret = g_variant_equal (a, b); 1156s # out: 1156s # return ret; 1156s # } 1156s # 1156s # G_GNUC_UNUSED static gboolean 1156s # _g_value_equal (const GValue *a, const GValue *b) 1156s # { 1156s # gboolean ret = FALSE; 1156s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 1156s # switch (G_VALUE_TYPE (a)) 1156s # { 1156s # case G_TYPE_BOOLEAN: 1156s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 1156s # break; 1156s # case G_TYPE_UCHAR: 1156s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 1156s # break; 1156s # case G_TYPE_INT: 1156s # ret = (g_value_get_int (a) == g_value_get_int (b)); 1156s # break; 1156s # case G_TYPE_UINT: 1156s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 1156s # break; 1156s # case G_TYPE_INT64: 1156s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 1156s # break; 1156s # case G_TYPE_UINT64: 1156s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 1156s # break; 1156s # case G_TYPE_DOUBLE: 1156s # { 1156s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 1156s # gdouble da = g_value_get_double (a); 1156s # gdouble db = g_value_get_double (b); 1156s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 1156s # } 1156s # break; 1156s # case G_TYPE_STRING: 1156s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 1156s # break; 1156s # case G_TYPE_VARIANT: 1156s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 1156s # break; 1156s # default: 1156s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 1156s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 1156s # else 1156s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 1156s # break; 1156s # } 1156s # return ret; 1156s # } 1156s # 1156s # /* ------------------------------------------------------------------------ 1156s # * Code for interface GoodTypes 1156s # * ------------------------------------------------------------------------ 1156s # */ 1156s # 1156s # /** 1156s # * SECTION:GoodTypes 1156s # * @title: GoodTypes 1156s # * @short_description: Generated C code for the GoodTypes D-Bus interface 1156s # * 1156s # * This section contains code for working with the GoodTypes D-Bus interface in C. 1156s # */ 1156s # 1156s # /* ---- Introspection data for GoodTypes ---- */ 1156s # 1156s # static const _ExtendedGDBusPropertyInfo _good_types_property_info_good_property_type = 1156s # { 1156s # { 1156s # -1, 1156s # (gchar *) "GoodPropertyType", 1156s # (gchar *) "si{s{b(ybnqiuxtdh)}}{yv}{nv}{dv}", 1156s # G_DBUS_PROPERTY_INFO_FLAGS_READABLE, 1156s # NULL 1156s # }, 1156s # "good-property-type", 1156s # FALSE, 1156s # TRUE 1156s # }; 1156s # 1156s # static const GDBusPropertyInfo * const _good_types_property_info_pointers[] = 1156s # { 1156s # &_good_types_property_info_good_property_type.parent_struct, 1156s # NULL 1156s # }; 1156s # 1156s # static const _ExtendedGDBusInterfaceInfo _good_types_interface_info = 1156s # { 1156s # { 1156s # -1, 1156s # (gchar *) "GoodTypes", 1156s # NULL, 1156s # NULL, 1156s # (GDBusPropertyInfo **) &_good_types_property_info_pointers, 1156s # NULL 1156s # }, 1156s # "good-types", 1156s # }; 1156s # 1156s # 1156s # /** 1156s # * good_types_interface_info: 1156s # * 1156s # * Gets a machine-readable description of the GoodTypes D-Bus interface. 1156s # * 1156s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 1156s # */ 1156s # GDBusInterfaceInfo * 1156s # good_types_interface_info (void) 1156s # { 1156s # return (GDBusInterfaceInfo *) &_good_types_interface_info.parent_struct; 1156s # } 1156s # 1156s # /** 1156s # * good_types_override_properties: 1156s # * @klass: The class structure for a #GObject derived class. 1156s # * @property_id_begin: The property id to assign to the first overridden property. 1156s # * 1156s # * Overrides all #GObject properties in the GoodTypes interface for a concrete class. 1156s # * The properties are overridden in the order they are defined. 1156s # * 1156s # * Returns: The last property id. 1156s # */ 1156s # guint 1156s # good_types_override_properties (GObjectClass *klass, guint property_id_begin) 1156s # { 1156s # g_object_class_override_property (klass, property_id_begin++, "good-property-type"); 1156s # return property_id_begin - 1; 1156s # } 1156s # 1156s # 1156s # 1156s # /** 1156s # * GoodTypes: 1156s # * 1156s # * Abstract interface type for the D-Bus interface GoodTypes. 1156s # */ 1156s # 1156s # /** 1156s # * GoodTypesIface: 1156s # * @parent_iface: The parent interface. 1156s # * @get_good_property_type: Getter for the #GoodTypes:good-property-type property. 1156s # * 1156s # * Virtual table for the D-Bus interface GoodTypes. 1156s # */ 1156s # 1156s # typedef GoodTypesIface GoodTypesInterface; 1156s # G_DEFINE_INTERFACE (GoodTypes, good_types, G_TYPE_OBJECT) 1156s # 1156s # static void 1156s # good_types_default_init (GoodTypesIface *iface) 1156s # { 1156s # /* GObject properties for D-Bus properties: */ 1156s # /** 1156s # * GoodTypes:good-property-type: 1156s # * 1156s # * Represents the D-Bus property "GoodPropertyType". 1156s # * 1156s # * 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. 1156s # */ 1156s # g_object_interface_install_property (iface, 1156s # 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)); 1156s # } 1156s # 1156s # /** 1156s # * good_types_get_good_property_type: (skip) 1156s # * @object: A GoodTypes. 1156s # * 1156s # * Gets the value of the "GoodPropertyType" D-Bus property. 1156s # * 1156s # * Since this D-Bus property is readable, it is meaningful to use this function on both the client- and service-side. 1156s # * 1156s # * 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. 1156s # * 1156s # * 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. 1156s # */ 1156s # GVariant * 1156s # good_types_get_good_property_type (GoodTypes *object) 1156s # { 1156s # g_return_val_if_fail (IS_GOOD_TYPES (object), NULL); 1156s # 1156s # return GOOD_TYPES_GET_IFACE (object)->get_good_property_type (object); 1156s # } 1156s # 1156s # /** 1156s # * good_types_dup_good_property_type: (skip) 1156s # * @object: A GoodTypes. 1156s # * 1156s # * Gets a copy of the "GoodPropertyType" D-Bus property. 1156s # * 1156s # * Since this D-Bus property is readable, it is meaningful to use this function on both the client- and service-side. 1156s # * 1156s # * 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(). 1156s # */ 1156s # GVariant * 1156s # good_types_dup_good_property_type (GoodTypes *object) 1156s # { 1156s # GVariant *value; 1156s # g_object_get (G_OBJECT (object), "good-property-type", &value, NULL); 1156s # return value; 1156s # } 1156s # 1156s # /** 1156s # * good_types_set_good_property_type: (skip) 1156s # * @object: A GoodTypes. 1156s # * @value: The value to set. 1156s # * 1156s # * Sets the "GoodPropertyType" D-Bus property to @value. 1156s # * 1156s # * Since this D-Bus property is not writable, it is only meaningful to use this function on the service-side. 1156s # */ 1156s # void 1156s # good_types_set_good_property_type (GoodTypes *object, GVariant *value) 1156s # { 1156s # g_object_set (G_OBJECT (object), "good-property-type", value, NULL); 1156s # } 1156s # 1156s # /* ------------------------------------------------------------------------ */ 1156s # 1156s # /** 1156s # * GoodTypesProxy: 1156s # * 1156s # * The GoodTypesProxy structure contains only private data and should only be accessed using the provided API. 1156s # */ 1156s # 1156s # /** 1156s # * GoodTypesProxyClass: 1156s # * @parent_class: The parent class. 1156s # * 1156s # * Class structure for GoodTypesProxy. 1156s # */ 1156s # 1156s # struct _GoodTypesProxyPrivate 1156s # { 1156s # GData *qdata; 1156s # }; 1156s # 1156s # static void good_types_proxy_iface_init (GoodTypesIface *iface); 1156s # 1156s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1156s # G_DEFINE_TYPE_WITH_CODE (GoodTypesProxy, good_types_proxy, G_TYPE_DBUS_PROXY, 1156s # G_ADD_PRIVATE (GoodTypesProxy) 1156s # G_IMPLEMENT_INTERFACE (TYPE_GOOD_TYPES, good_types_proxy_iface_init)) 1156s # 1156s # #else 1156s # G_DEFINE_TYPE_WITH_CODE (GoodTypesProxy, good_types_proxy, G_TYPE_DBUS_PROXY, 1156s # G_IMPLEMENT_INTERFACE (TYPE_GOOD_TYPES, good_types_proxy_iface_init)) 1156s # 1156s # #endif 1156s # static void 1156s # good_types_proxy_finalize (GObject *object) 1156s # { 1156s # GoodTypesProxy *proxy = GOOD_TYPES_PROXY (object); 1156s # g_datalist_clear (&proxy->priv->qdata); 1156s # G_OBJECT_CLASS (good_types_proxy_parent_class)->finalize (object); 1156s # } 1156s # 1156s # static void 1156s # good_types_proxy_get_property (GObject *object, 1156s # guint prop_id, 1156s # GValue *value, 1156s # GParamSpec *pspec G_GNUC_UNUSED) 1156s # { 1156s # const _ExtendedGDBusPropertyInfo *info; 1156s # GVariant *variant; 1156s # g_assert (prop_id != 0 && prop_id - 1 < 1); 1156s # info = (const _ExtendedGDBusPropertyInfo *) _good_types_property_info_pointers[prop_id - 1]; 1156s # variant = g_dbus_proxy_get_cached_property (G_DBUS_PROXY (object), info->parent_struct.name); 1156s # if (info->use_gvariant) 1156s # { 1156s # g_value_set_variant (value, variant); 1156s # } 1156s # else 1156s # { 1156s # if (variant != NULL) 1156s # g_dbus_gvariant_to_gvalue (variant, value); 1156s # } 1156s # if (variant != NULL) 1156s # g_variant_unref (variant); 1156s # } 1156s # 1156s # static void 1156s # good_types_proxy_set_property_cb (GDBusProxy *proxy, 1156s # GAsyncResult *res, 1156s # gpointer user_data) 1156s # { 1156s # const _ExtendedGDBusPropertyInfo *info = user_data; 1156s # GError *error; 1156s # GVariant *_ret; 1156s # error = NULL; 1156s # _ret = g_dbus_proxy_call_finish (proxy, res, &error); 1156s # if (!_ret) 1156s # { 1156s # g_warning ("Error setting property '%s' on interface GoodTypes: %s (%s, %d)", 1156s # info->parent_struct.name, 1156s # error->message, g_quark_to_string (error->domain), error->code); 1156s # g_error_free (error); 1156s # } 1156s # else 1156s # { 1156s # g_variant_unref (_ret); 1156s # } 1156s # } 1156s # 1156s # static void 1156s # good_types_proxy_set_property (GObject *object, 1156s # guint prop_id, 1156s # const GValue *value, 1156s # GParamSpec *pspec G_GNUC_UNUSED) 1156s # { 1156s # const _ExtendedGDBusPropertyInfo *info; 1156s # GVariant *variant; 1156s # g_assert (prop_id != 0 && prop_id - 1 < 1); 1156s # info = (const _ExtendedGDBusPropertyInfo *) _good_types_property_info_pointers[prop_id - 1]; 1156s # variant = g_dbus_gvalue_to_gvariant (value, G_VARIANT_TYPE (info->parent_struct.signature)); 1156s # g_dbus_proxy_call (G_DBUS_PROXY (object), 1156s # "org.freedesktop.DBus.Properties.Set", 1156s # g_variant_new ("(ssv)", "GoodTypes", info->parent_struct.name, variant), 1156s # G_DBUS_CALL_FLAGS_NONE, 1156s # -1, 1156s # NULL, (GAsyncReadyCallback) good_types_proxy_set_property_cb, (GDBusPropertyInfo *) &info->parent_struct); 1156s # g_variant_unref (variant); 1156s # } 1156s # 1156s # static void 1156s # good_types_proxy_g_signal (GDBusProxy *proxy, 1156s # const gchar *sender_name G_GNUC_UNUSED, 1156s # const gchar *signal_name, 1156s # GVariant *parameters) 1156s # { 1156s # _ExtendedGDBusSignalInfo *info; 1156s # GVariantIter iter; 1156s # GVariant *child; 1156s # GValue *paramv; 1156s # gsize num_params; 1156s # gsize n; 1156s # guint signal_id; 1156s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_good_types_interface_info.parent_struct, signal_name); 1156s # if (info == NULL) 1156s # return; 1156s # num_params = g_variant_n_children (parameters); 1156s # paramv = g_new0 (GValue, num_params + 1); 1156s # g_value_init (¶mv[0], TYPE_GOOD_TYPES); 1156s # g_value_set_object (¶mv[0], proxy); 1156s # g_variant_iter_init (&iter, parameters); 1156s # n = 1; 1156s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1156s # { 1156s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 1156s # if (arg_info->use_gvariant) 1156s # { 1156s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1156s # g_value_set_variant (¶mv[n], child); 1156s # n++; 1156s # } 1156s # else 1156s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1156s # g_variant_unref (child); 1156s # } 1156s # signal_id = g_signal_lookup (info->signal_name, TYPE_GOOD_TYPES); 1156s # g_signal_emitv (paramv, signal_id, 0, NULL); 1156s # for (n = 0; n < num_params + 1; n++) 1156s # g_value_unset (¶mv[n]); 1156s # g_free (paramv); 1156s # } 1156s # 1156s # static void 1156s # good_types_proxy_g_properties_changed (GDBusProxy *_proxy, 1156s # GVariant *changed_properties, 1156s # const gchar *const *invalidated_properties) 1156s # { 1156s # GoodTypesProxy *proxy = GOOD_TYPES_PROXY (_proxy); 1156s # guint n; 1156s # const gchar *key; 1156s # GVariantIter *iter; 1156s # _ExtendedGDBusPropertyInfo *info; 1156s # g_variant_get (changed_properties, "a{sv}", &iter); 1156s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 1156s # { 1156s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_good_types_interface_info.parent_struct, key); 1156s # g_datalist_remove_data (&proxy->priv->qdata, key); 1156s # if (info != NULL) 1156s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1156s # } 1156s # g_variant_iter_free (iter); 1156s # for (n = 0; invalidated_properties[n] != NULL; n++) 1156s # { 1156s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_good_types_interface_info.parent_struct, invalidated_properties[n]); 1156s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 1156s # if (info != NULL) 1156s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1156s # } 1156s # } 1156s # 1156s # static GVariant * 1156s # good_types_proxy_get_good_property_type (GoodTypes *object) 1156s # { 1156s # GoodTypesProxy *proxy = GOOD_TYPES_PROXY (object); 1156s # GVariant *variant; 1156s # GVariant *value = NULL; 1156s # variant = g_dbus_proxy_get_cached_property (G_DBUS_PROXY (proxy), "GoodPropertyType"); 1156s # value = variant; 1156s # if (variant != NULL) 1156s # g_variant_unref (variant); 1156s # return value; 1156s # } 1156s # 1156s # static void 1156s # good_types_proxy_init (GoodTypesProxy *proxy) 1156s # { 1156s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1156s # proxy->priv = good_types_proxy_get_instance_private (proxy); 1156s # #else 1156s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_GOOD_TYPES_PROXY, GoodTypesProxyPrivate); 1156s # #endif 1156s # 1156s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), good_types_interface_info ()); 1156s # } 1156s # 1156s # static void 1156s # good_types_proxy_class_init (GoodTypesProxyClass *klass) 1156s # { 1156s # GObjectClass *gobject_class; 1156s # GDBusProxyClass *proxy_class; 1156s # 1156s # gobject_class = G_OBJECT_CLASS (klass); 1156s # gobject_class->finalize = good_types_proxy_finalize; 1156s # gobject_class->get_property = good_types_proxy_get_property; 1156s # gobject_class->set_property = good_types_proxy_set_property; 1156s # 1156s # proxy_class = G_DBUS_PROXY_CLASS (klass); 1156s # proxy_class->g_signal = good_types_proxy_g_signal; 1156s # proxy_class->g_properties_changed = good_types_proxy_g_properties_changed; 1156s # 1156s # good_types_override_properties (gobject_class, 1); 1156s # 1156s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1156s # g_type_class_add_private (klass, sizeof (GoodTypesProxyPrivate)); 1156s # #endif 1156s # } 1156s # 1156s # static void 1156s # good_types_proxy_iface_init (GoodTypesIface *iface) 1156s # { 1156s # iface->get_good_property_type = good_types_proxy_get_good_property_type; 1156s # } 1156s # 1156s # /** 1156s # * good_types_proxy_new: 1156s # * @connection: A #GDBusConnection. 1156s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1156s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1156s # * @object_path: An object path. 1156s # * @cancellable: (nullable): A #GCancellable or %NULL. 1156s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1156s # * @user_data: User data to pass to @callback. 1156s # * 1156s # * Asynchronously creates a proxy for the D-Bus interface GoodTypes. See g_dbus_proxy_new() for more details. 1156s # * 1156s # * 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()). 1156s # * You can then call good_types_proxy_new_finish() to get the result of the operation. 1156s # * 1156s # * See good_types_proxy_new_sync() for the synchronous, blocking version of this constructor. 1156s # */ 1156s # void 1156s # good_types_proxy_new ( 1156s # GDBusConnection *connection, 1156s # GDBusProxyFlags flags, 1156s # const gchar *name, 1156s # const gchar *object_path, 1156s # GCancellable *cancellable, 1156s # GAsyncReadyCallback callback, 1156s # gpointer user_data) 1156s # { 1156s # 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); 1156s # } 1156s # 1156s # /** 1156s # * good_types_proxy_new_finish: 1156s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to good_types_proxy_new(). 1156s # * @error: Return location for error or %NULL 1156s # * 1156s # * Finishes an operation started with good_types_proxy_new(). 1156s # * 1156s # * Returns: (transfer full) (type GoodTypesProxy): The constructed proxy object or %NULL if @error is set. 1156s # */ 1156s # GoodTypes * 1156s # good_types_proxy_new_finish ( 1156s # GAsyncResult *res, 1156s # GError **error) 1156s # { 1156s # GObject *ret; 1156s # GObject *source_object; 1156s # source_object = g_async_result_get_source_object (res); 1156s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1156s # g_object_unref (source_object); 1156s # if (ret != NULL) 1156s # return GOOD_TYPES (ret); 1156s # else 1156s # return NULL; 1156s # } 1156s # 1156s # /** 1156s # * good_types_proxy_new_sync: 1156s # * @connection: A #GDBusConnection. 1156s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1156s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1156s # * @object_path: An object path. 1156s # * @cancellable: (nullable): A #GCancellable or %NULL. 1156s # * @error: Return location for error or %NULL 1156s # * 1156s # * Synchronously creates a proxy for the D-Bus interface GoodTypes. See g_dbus_proxy_new_sync() for more details. 1156s # * 1156s # * The calling thread is blocked until a reply is received. 1156s # * 1156s # * See good_types_proxy_new() for the asynchronous version of this constructor. 1156s # * 1156s # * Returns: (transfer full) (type GoodTypesProxy): The constructed proxy object or %NULL if @error is set. 1156s # */ 1156s # GoodTypes * 1156s # good_types_proxy_new_sync ( 1156s # GDBusConnection *connection, 1156s # GDBusProxyFlags flags, 1156s # const gchar *name, 1156s # const gchar *object_path, 1156s # GCancellable *cancellable, 1156s # GError **error) 1156s # { 1156s # GInitable *ret; 1156s # 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); 1156s # if (ret != NULL) 1156s # return GOOD_TYPES (ret); 1156s # else 1156s # return NULL; 1156s # } 1156s # 1156s # 1156s # /** 1156s # * good_types_proxy_new_for_bus: 1156s # * @bus_type: A #GBusType. 1156s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1156s # * @name: A bus name (well-known or unique). 1156s # * @object_path: An object path. 1156s # * @cancellable: (nullable): A #GCancellable or %NULL. 1156s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1156s # * @user_data: User data to pass to @callback. 1156s # * 1156s # * Like good_types_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 1156s # * 1156s # * 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()). 1156s # * You can then call good_types_proxy_new_for_bus_finish() to get the result of the operation. 1156s # * 1156s # * See good_types_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 1156s # */ 1156s # void 1156s # good_types_proxy_new_for_bus ( 1156s # GBusType bus_type, 1156s # GDBusProxyFlags flags, 1156s # const gchar *name, 1156s # const gchar *object_path, 1156s # GCancellable *cancellable, 1156s # GAsyncReadyCallback callback, 1156s # gpointer user_data) 1156s # { 1156s # 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); 1156s # } 1156s # 1156s # /** 1156s # * good_types_proxy_new_for_bus_finish: 1156s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to good_types_proxy_new_for_bus(). 1156s # * @error: Return location for error or %NULL 1156s # * 1156s # * Finishes an operation started with good_types_proxy_new_for_bus(). 1156s # * 1156s # * Returns: (transfer full) (type GoodTypesProxy): The constructed proxy object or %NULL if @error is set. 1156s # */ 1156s # GoodTypes * 1156s # good_types_proxy_new_for_bus_finish ( 1156s # GAsyncResult *res, 1156s # GError **error) 1156s # { 1156s # GObject *ret; 1156s # GObject *source_object; 1156s # source_object = g_async_result_get_source_object (res); 1156s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1156s # g_object_unref (source_object); 1156s # if (ret != NULL) 1156s # return GOOD_TYPES (ret); 1156s # else 1156s # return NULL; 1156s # } 1156s # 1156s # /** 1156s # * good_types_proxy_new_for_bus_sync: 1156s # * @bus_type: A #GBusType. 1156s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1156s # * @name: A bus name (well-known or unique). 1156s # * @object_path: An object path. 1156s # * @cancellable: (nullable): A #GCancellable or %NULL. 1156s # * @error: Return location for error or %NULL 1156s # * 1156s # * Like good_types_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 1156s # * 1156s # * The calling thread is blocked until a reply is received. 1156s # * 1156s # * See good_types_proxy_new_for_bus() for the asynchronous version of this constructor. 1156s # * 1156s # * Returns: (transfer full) (type GoodTypesProxy): The constructed proxy object or %NULL if @error is set. 1156s # */ 1156s # GoodTypes * 1156s # good_types_proxy_new_for_bus_sync ( 1156s # GBusType bus_type, 1156s # GDBusProxyFlags flags, 1156s # const gchar *name, 1156s # const gchar *object_path, 1156s # GCancellable *cancellable, 1156s # GError **error) 1156s # { 1156s # GInitable *ret; 1156s # 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); 1156s # if (ret != NULL) 1156s # return GOOD_TYPES (ret); 1156s # else 1156s # return NULL; 1156s # } 1156s # 1156s # 1156s # /* ------------------------------------------------------------------------ */ 1156s # 1156s # /** 1156s # * GoodTypesSkeleton: 1156s # * 1156s # * The GoodTypesSkeleton structure contains only private data and should only be accessed using the provided API. 1156s # */ 1156s # 1156s # /** 1156s # * GoodTypesSkeletonClass: 1156s # * @parent_class: The parent class. 1156s # * 1156s # * Class structure for GoodTypesSkeleton. 1156s # */ 1156s # 1156s # struct _GoodTypesSkeletonPrivate 1156s # { 1156s # GValue *properties; 1156s # GList *changed_properties; 1156s # GSource *changed_properties_idle_source; 1156s # GMainContext *context; 1156s # GMutex lock; 1156s # }; 1156s # 1156s # static void 1156s # _good_types_skeleton_handle_method_call ( 1156s # GDBusConnection *connection G_GNUC_UNUSED, 1156s # const gchar *sender G_GNUC_UNUSED, 1156s # const gchar *object_path G_GNUC_UNUSED, 1156s # const gchar *interface_name, 1156s # const gchar *method_name, 1156s # GVariant *parameters, 1156s # GDBusMethodInvocation *invocation, 1156s # gpointer user_data) 1156s # { 1156s # GoodTypesSkeleton *skeleton = GOOD_TYPES_SKELETON (user_data); 1156s # _ExtendedGDBusMethodInfo *info; 1156s # GVariantIter iter; 1156s # GVariant *child; 1156s # GValue *paramv; 1156s # gsize num_params; 1156s # guint num_extra; 1156s # gsize n; 1156s # guint signal_id; 1156s # GValue return_value = G_VALUE_INIT; 1156s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 1156s # g_assert (info != NULL); 1156s # num_params = g_variant_n_children (parameters); 1156s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 1156s # n = 0; 1156s # g_value_init (¶mv[n], TYPE_GOOD_TYPES); 1156s # g_value_set_object (¶mv[n++], skeleton); 1156s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 1156s # g_value_set_object (¶mv[n++], invocation); 1156s # if (info->pass_fdlist) 1156s # { 1156s # #ifdef G_OS_UNIX 1156s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 1156s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 1156s # #else 1156s # g_assert_not_reached (); 1156s # #endif 1156s # } 1156s # g_variant_iter_init (&iter, parameters); 1156s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1156s # { 1156s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 1156s # if (arg_info->use_gvariant) 1156s # { 1156s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1156s # g_value_set_variant (¶mv[n], child); 1156s # n++; 1156s # } 1156s # else 1156s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1156s # g_variant_unref (child); 1156s # } 1156s # signal_id = g_signal_lookup (info->signal_name, TYPE_GOOD_TYPES); 1156s # g_value_init (&return_value, G_TYPE_BOOLEAN); 1156s # g_signal_emitv (paramv, signal_id, 0, &return_value); 1156s # if (!g_value_get_boolean (&return_value)) 1156s # 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); 1156s # g_value_unset (&return_value); 1156s # for (n = 0; n < num_params + num_extra; n++) 1156s # g_value_unset (¶mv[n]); 1156s # g_free (paramv); 1156s # } 1156s # 1156s # static GVariant * 1156s # _good_types_skeleton_handle_get_property ( 1156s # GDBusConnection *connection G_GNUC_UNUSED, 1156s # const gchar *sender G_GNUC_UNUSED, 1156s # const gchar *object_path G_GNUC_UNUSED, 1156s # const gchar *interface_name G_GNUC_UNUSED, 1156s # const gchar *property_name, 1156s # GError **error, 1156s # gpointer user_data) 1156s # { 1156s # GoodTypesSkeleton *skeleton = GOOD_TYPES_SKELETON (user_data); 1156s # GValue value = G_VALUE_INIT; 1156s # GParamSpec *pspec; 1156s # _ExtendedGDBusPropertyInfo *info; 1156s # GVariant *ret; 1156s # ret = NULL; 1156s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_good_types_interface_info.parent_struct, property_name); 1156s # g_assert (info != NULL); 1156s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1156s # if (pspec == NULL) 1156s # { 1156s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1156s # } 1156s # else 1156s # { 1156s # g_value_init (&value, pspec->value_type); 1156s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1156s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 1156s # g_value_unset (&value); 1156s # } 1156s # return ret; 1156s # } 1156s # 1156s # static gboolean 1156s # _good_types_skeleton_handle_set_property ( 1156s # GDBusConnection *connection G_GNUC_UNUSED, 1156s # const gchar *sender G_GNUC_UNUSED, 1156s # const gchar *object_path G_GNUC_UNUSED, 1156s # const gchar *interface_name G_GNUC_UNUSED, 1156s # const gchar *property_name, 1156s # GVariant *variant, 1156s # GError **error, 1156s # gpointer user_data) 1156s # { 1156s # GoodTypesSkeleton *skeleton = GOOD_TYPES_SKELETON (user_data); 1156s # GValue value = G_VALUE_INIT; 1156s # GParamSpec *pspec; 1156s # _ExtendedGDBusPropertyInfo *info; 1156s # gboolean ret; 1156s # ret = FALSE; 1156s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_good_types_interface_info.parent_struct, property_name); 1156s # g_assert (info != NULL); 1156s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1156s # if (pspec == NULL) 1156s # { 1156s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1156s # } 1156s # else 1156s # { 1156s # if (info->use_gvariant) 1156s # g_value_set_variant (&value, variant); 1156s # else 1156s # g_dbus_gvariant_to_gvalue (variant, &value); 1156s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1156s # g_value_unset (&value); 1156s # ret = TRUE; 1156s # } 1156s # return ret; 1156s # } 1156s # 1156s # static const GDBusInterfaceVTable _good_types_skeleton_vtable = 1156s # { 1156s # _good_types_skeleton_handle_method_call, 1156s # _good_types_skeleton_handle_get_property, 1156s # _good_types_skeleton_handle_set_property, 1156s # {NULL} 1156s # }; 1156s # 1156s # static GDBusInterfaceInfo * 1156s # good_types_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1156s # { 1156s # return good_types_interface_info (); 1156s # } 1156s # 1156s # static GDBusInterfaceVTable * 1156s # good_types_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1156s # { 1156s # return (GDBusInterfaceVTable *) &_good_types_skeleton_vtable; 1156s # } 1156s # 1156s # static GVariant * 1156s # good_types_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 1156s # { 1156s # GoodTypesSkeleton *skeleton = GOOD_TYPES_SKELETON (_skeleton); 1156s # 1156s # GVariantBuilder builder; 1156s # guint n; 1156s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 1156s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 1156s # #else 1156s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 1156s # #endif 1156s # if (_good_types_interface_info.parent_struct.properties == NULL) 1156s # goto out; 1156s # for (n = 0; _good_types_interface_info.parent_struct.properties[n] != NULL; n++) 1156s # { 1156s # GDBusPropertyInfo *info = _good_types_interface_info.parent_struct.properties[n]; 1156s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 1156s # { 1156s # GVariant *value; 1156s # 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); 1156s # if (value != NULL) 1156s # { 1156s # g_variant_take_ref (value); 1156s # g_variant_builder_add (&builder, "{sv}", info->name, value); 1156s # g_variant_unref (value); 1156s # } 1156s # } 1156s # } 1156s # out: 1156s # return g_variant_builder_end (&builder); 1156s # } 1156s # 1156s # static gboolean _good_types_emit_changed (gpointer user_data); 1156s # 1156s # static void 1156s # good_types_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton) 1156s # { 1156s # GoodTypesSkeleton *skeleton = GOOD_TYPES_SKELETON (_skeleton); 1156s # gboolean emit_changed = FALSE; 1156s # 1156s # g_mutex_lock (&skeleton->priv->lock); 1156s # if (skeleton->priv->changed_properties_idle_source != NULL) 1156s # { 1156s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 1156s # skeleton->priv->changed_properties_idle_source = NULL; 1156s # emit_changed = TRUE; 1156s # } 1156s # g_mutex_unlock (&skeleton->priv->lock); 1156s # 1156s # if (emit_changed) 1156s # _good_types_emit_changed (skeleton); 1156s # } 1156s # 1156s # static void good_types_skeleton_iface_init (GoodTypesIface *iface); 1156s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1156s # G_DEFINE_TYPE_WITH_CODE (GoodTypesSkeleton, good_types_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1156s # G_ADD_PRIVATE (GoodTypesSkeleton) 1156s # G_IMPLEMENT_INTERFACE (TYPE_GOOD_TYPES, good_types_skeleton_iface_init)) 1156s # 1156s # #else 1156s # G_DEFINE_TYPE_WITH_CODE (GoodTypesSkeleton, good_types_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1156s # G_IMPLEMENT_INTERFACE (TYPE_GOOD_TYPES, good_types_skeleton_iface_init)) 1156s # 1156s # #endif 1156s # static void 1156s # good_types_skeleton_finalize (GObject *object) 1156s # { 1156s # GoodTypesSkeleton *skeleton = GOOD_TYPES_SKELETON (object); 1156s # guint n; 1156s # for (n = 0; n < 1; n++) 1156s # g_value_unset (&skeleton->priv->properties[n]); 1156s # g_free (skeleton->priv->properties); 1156s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 1156s # if (skeleton->priv->changed_properties_idle_source != NULL) 1156s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 1156s # g_main_context_unref (skeleton->priv->context); 1156s # g_mutex_clear (&skeleton->priv->lock); 1156s # G_OBJECT_CLASS (good_types_skeleton_parent_class)->finalize (object); 1156s # } 1156s # 1156s # static void 1156s # good_types_skeleton_get_property (GObject *object, 1156s # guint prop_id, 1156s # GValue *value, 1156s # GParamSpec *pspec G_GNUC_UNUSED) 1156s # { 1156s # GoodTypesSkeleton *skeleton = GOOD_TYPES_SKELETON (object); 1156s # g_assert (prop_id != 0 && prop_id - 1 < 1); 1156s # g_mutex_lock (&skeleton->priv->lock); 1156s # g_value_copy (&skeleton->priv->properties[prop_id - 1], value); 1156s # g_mutex_unlock (&skeleton->priv->lock); 1156s # } 1156s # 1156s # static gboolean 1156s # _good_types_emit_changed (gpointer user_data) 1156s # { 1156s # GoodTypesSkeleton *skeleton = GOOD_TYPES_SKELETON (user_data); 1156s # GList *l; 1156s # GVariantBuilder builder; 1156s # GVariantBuilder invalidated_builder; 1156s # guint num_changes; 1156s # 1156s # g_mutex_lock (&skeleton->priv->lock); 1156s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 1156s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 1156s # g_variant_builder_init_static (&invalidated_builder, G_VARIANT_TYPE ("as")); 1156s # #else 1156s # g_variant_builder_init (&builder, G_VARIANT_TYPE ("a{sv}")); 1156s # g_variant_builder_init (&invalidated_builder, G_VARIANT_TYPE ("as")); 1156s # #endif 1156s # for (l = skeleton->priv->changed_properties, num_changes = 0; l != NULL; l = l->next) 1156s # { 1156s # ChangedProperty *cp = l->data; 1156s # GVariant *variant; 1156s # const GValue *cur_value; 1156s # 1156s # cur_value = &skeleton->priv->properties[cp->prop_id - 1]; 1156s # if (!_g_value_equal (cur_value, &cp->orig_value)) 1156s # { 1156s # variant = g_dbus_gvalue_to_gvariant (cur_value, G_VARIANT_TYPE (cp->info->parent_struct.signature)); 1156s # g_variant_builder_add (&builder, "{sv}", cp->info->parent_struct.name, variant); 1156s # g_variant_unref (variant); 1156s # num_changes++; 1156s # } 1156s # } 1156s # if (num_changes > 0) 1156s # { 1156s # GList *connections, *ll; 1156s # GVariant *signal_variant; 1156s # signal_variant = g_variant_ref_sink (g_variant_new ("(sa{sv}as)", "GoodTypes", 1156s # &builder, &invalidated_builder)); 1156s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 1156s # for (ll = connections; ll != NULL; ll = ll->next) 1156s # { 1156s # GDBusConnection *connection = ll->data; 1156s # 1156s # g_dbus_connection_emit_signal (connection, 1156s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), 1156s # "org.freedesktop.DBus.Properties", 1156s # "PropertiesChanged", 1156s # signal_variant, 1156s # NULL); 1156s # } 1156s # g_variant_unref (signal_variant); 1156s # g_list_free_full (connections, g_object_unref); 1156s # } 1156s # else 1156s # { 1156s # g_variant_builder_clear (&builder); 1156s # g_variant_builder_clear (&invalidated_builder); 1156s # } 1156s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 1156s # skeleton->priv->changed_properties = NULL; 1156s # skeleton->priv->changed_properties_idle_source = NULL; 1156s # g_mutex_unlock (&skeleton->priv->lock); 1156s # return FALSE; 1156s # } 1156s # 1156s # static void 1156s # _good_types_schedule_emit_changed (GoodTypesSkeleton *skeleton, const _ExtendedGDBusPropertyInfo *info, guint prop_id, const GValue *orig_value) 1156s # { 1156s # ChangedProperty *cp; 1156s # GList *l; 1156s # cp = NULL; 1156s # for (l = skeleton->priv->changed_properties; l != NULL; l = l->next) 1156s # { 1156s # ChangedProperty *i_cp = l->data; 1156s # if (i_cp->info == info) 1156s # { 1156s # cp = i_cp; 1156s # break; 1156s # } 1156s # } 1156s # if (cp == NULL) 1156s # { 1156s # cp = g_new0 (ChangedProperty, 1); 1156s # cp->prop_id = prop_id; 1156s # cp->info = info; 1156s # skeleton->priv->changed_properties = g_list_prepend (skeleton->priv->changed_properties, cp); 1156s # g_value_init (&cp->orig_value, G_VALUE_TYPE (orig_value)); 1156s # g_value_copy (orig_value, &cp->orig_value); 1156s # } 1156s # } 1156s # 1156s # static void 1156s # good_types_skeleton_notify (GObject *object, 1156s # GParamSpec *pspec G_GNUC_UNUSED) 1156s # { 1156s # GoodTypesSkeleton *skeleton = GOOD_TYPES_SKELETON (object); 1156s # g_mutex_lock (&skeleton->priv->lock); 1156s # if (skeleton->priv->changed_properties != NULL && 1156s # skeleton->priv->changed_properties_idle_source == NULL) 1156s # { 1156s # skeleton->priv->changed_properties_idle_source = g_idle_source_new (); 1156s # g_source_set_priority (skeleton->priv->changed_properties_idle_source, G_PRIORITY_DEFAULT); 1156s # g_source_set_callback (skeleton->priv->changed_properties_idle_source, _good_types_emit_changed, g_object_ref (skeleton), (GDestroyNotify) g_object_unref); 1156s # g_source_set_name (skeleton->priv->changed_properties_idle_source, "[generated] _good_types_emit_changed"); 1156s # g_source_attach (skeleton->priv->changed_properties_idle_source, skeleton->priv->context); 1156s # g_source_unref (skeleton->priv->changed_properties_idle_source); 1156s # } 1156s # g_mutex_unlock (&skeleton->priv->lock); 1156s # } 1156s # 1156s # static void 1156s # good_types_skeleton_set_property (GObject *object, 1156s # guint prop_id, 1156s # const GValue *value, 1156s # GParamSpec *pspec) 1156s # { 1156s # const _ExtendedGDBusPropertyInfo *info; 1156s # GoodTypesSkeleton *skeleton = GOOD_TYPES_SKELETON (object); 1156s # g_assert (prop_id != 0 && prop_id - 1 < 1); 1156s # info = (const _ExtendedGDBusPropertyInfo *) _good_types_property_info_pointers[prop_id - 1]; 1156s # g_mutex_lock (&skeleton->priv->lock); 1156s # g_object_freeze_notify (object); 1156s # if (!_g_value_equal (value, &skeleton->priv->properties[prop_id - 1])) 1156s # { 1156s # if (g_dbus_interface_skeleton_get_connection (G_DBUS_INTERFACE_SKELETON (skeleton)) != NULL && 1156s # info->emits_changed_signal) 1156s # _good_types_schedule_emit_changed (skeleton, info, prop_id, &skeleton->priv->properties[prop_id - 1]); 1156s # g_value_copy (value, &skeleton->priv->properties[prop_id - 1]); 1156s # g_object_notify_by_pspec (object, pspec); 1156s # } 1156s # g_mutex_unlock (&skeleton->priv->lock); 1156s # g_object_thaw_notify (object); 1156s # } 1156s # 1156s # static void 1156s # good_types_skeleton_init (GoodTypesSkeleton *skeleton) 1156s # { 1156s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1156s # skeleton->priv = good_types_skeleton_get_instance_private (skeleton); 1156s # #else 1156s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_GOOD_TYPES_SKELETON, GoodTypesSkeletonPrivate); 1156s # #endif 1156s # 1156s # g_mutex_init (&skeleton->priv->lock); 1156s # skeleton->priv->context = g_main_context_ref_thread_default (); 1156s # skeleton->priv->properties = g_new0 (GValue, 1); 1156s # g_value_init (&skeleton->priv->properties[0], G_TYPE_VARIANT); 1156s # } 1156s # 1156s # static GVariant * 1156s # good_types_skeleton_get_good_property_type (GoodTypes *object) 1156s # { 1156s # GoodTypesSkeleton *skeleton = GOOD_TYPES_SKELETON (object); 1156s # GVariant *value; 1156s # g_mutex_lock (&skeleton->priv->lock); 1156s # value = g_marshal_value_peek_variant (&(skeleton->priv->properties[0])); 1156s # g_mutex_unlock (&skeleton->priv->lock); 1156s # return value; 1156s # } 1156s # 1156s # static void 1156s # good_types_skeleton_class_init (GoodTypesSkeletonClass *klass) 1156s # { 1156s # GObjectClass *gobject_class; 1156s # GDBusInterfaceSkeletonClass *skeleton_class; 1156s # 1156s # gobject_class = G_OBJECT_CLASS (klass); 1156s # gobject_class->finalize = good_types_skeleton_finalize; 1156s # gobject_class->get_property = good_types_skeleton_get_property; 1156s # gobject_class->set_property = good_types_skeleton_set_property; 1156s # gobject_class->notify = good_types_skeleton_notify; 1156s # 1156s # 1156s # good_types_override_properties (gobject_class, 1); 1156s # 1156s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 1156s # skeleton_class->get_info = good_types_skeleton_dbus_interface_get_info; 1156s # skeleton_class->get_properties = good_types_skeleton_dbus_interface_get_properties; 1156s # skeleton_class->flush = good_types_skeleton_dbus_interface_flush; 1156s # skeleton_class->get_vtable = good_types_skeleton_dbus_interface_get_vtable; 1156s # 1156s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1156s # g_type_class_add_private (klass, sizeof (GoodTypesSkeletonPrivate)); 1156s # #endif 1156s # } 1156s # 1156s # static void 1156s # good_types_skeleton_iface_init (GoodTypesIface *iface) 1156s # { 1156s # iface->get_good_property_type = good_types_skeleton_get_good_property_type; 1156s # } 1156s # 1156s # /** 1156s # * good_types_skeleton_new: 1156s # * 1156s # * Creates a skeleton object for the D-Bus interface GoodTypes. 1156s # * 1156s # * Returns: (transfer full) (type GoodTypesSkeleton): The skeleton object. 1156s # */ 1156s # GoodTypes * 1156s # good_types_skeleton_new (void) 1156s # { 1156s # return GOOD_TYPES (g_object_new (TYPE_GOOD_TYPES_SKELETON, NULL)); 1156s # } 1156s # Error: 1156s # 1156s # /tmp/tmp2vjrmu6t/tmpa2n3gut5.xml: 1156s # 1156s # 1156s # 1156s # 1156s # 1156s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmp2vjrmu6t/tmpa2n3gut5.xml', '--output', '-', '--body'] 1156s # Return code: 0 1156s # Output: 1156s # /* 1156s # * This file is generated by gdbus-codegen, do not modify it. 1156s # * 1156s # * The license of this code is the same as for the D-Bus interface description 1156s # * it was derived from. Note that it links to GLib, so must comply with the 1156s # * LGPL linking clauses. 1156s # */ 1156s # 1156s # #ifdef HAVE_CONFIG_H 1156s # # include "config.h" 1156s # #endif 1156s # 1156s # #include 1156s # #ifdef G_OS_UNIX 1156s # # include 1156s # #endif 1156s # 1156s # #ifdef G_ENABLE_DEBUG 1156s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 1156s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 1156s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 1156s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 1156s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 1156s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 1156s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 1156s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 1156s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 1156s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 1156s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 1156s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 1156s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 1156s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 1156s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 1156s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 1156s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 1156s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 1156s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 1156s # #else /* !G_ENABLE_DEBUG */ 1156s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 1156s # * Do not access GValues directly in your code. Instead, use the 1156s # * g_value_get_*() functions 1156s # */ 1156s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 1156s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 1156s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 1156s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 1156s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 1156s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 1156s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 1156s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 1156s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 1156s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 1156s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 1156s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 1156s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 1156s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 1156s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 1156s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 1156s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 1156s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 1156s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 1156s # #endif /* !G_ENABLE_DEBUG */ 1156s # 1156s # typedef struct 1156s # { 1156s # GDBusArgInfo parent_struct; 1156s # gboolean use_gvariant; 1156s # } _ExtendedGDBusArgInfo; 1156s # 1156s # typedef struct 1156s # { 1156s # GDBusMethodInfo parent_struct; 1156s # const gchar *signal_name; 1156s # gboolean pass_fdlist; 1156s # } _ExtendedGDBusMethodInfo; 1156s # 1156s # typedef struct 1156s # { 1156s # GDBusSignalInfo parent_struct; 1156s # const gchar *signal_name; 1156s # } _ExtendedGDBusSignalInfo; 1156s # 1156s # typedef struct 1156s # { 1156s # GDBusPropertyInfo parent_struct; 1156s # const gchar *hyphen_name; 1156s # guint use_gvariant : 1; 1156s # guint emits_changed_signal : 1; 1156s # } _ExtendedGDBusPropertyInfo; 1156s # 1156s # typedef struct 1156s # { 1156s # GDBusInterfaceInfo parent_struct; 1156s # const gchar *hyphen_name; 1156s # } _ExtendedGDBusInterfaceInfo; 1156s # 1156s # typedef struct 1156s # { 1156s # const _ExtendedGDBusPropertyInfo *info; 1156s # guint prop_id; 1156s # GValue orig_value; /* the value before the change */ 1156s # } ChangedProperty; 1156s # 1156s # static void 1156s # _changed_property_free (ChangedProperty *data) 1156s # { 1156s # g_value_unset (&data->orig_value); 1156s # g_free (data); 1156s # } 1156s # 1156s # static gboolean 1156s # _g_strv_equal0 (gchar **a, gchar **b) 1156s # { 1156s # gboolean ret = FALSE; 1156s # guint n; 1156s # if (a == NULL && b == NULL) 1156s # { 1156s # ret = TRUE; 1156s # goto out; 1156s # } 1156s # if (a == NULL || b == NULL) 1156s # goto out; 1156s # if (g_strv_length (a) != g_strv_length (b)) 1156s # goto out; 1156s # for (n = 0; a[n] != NULL; n++) 1156s # if (g_strcmp0 (a[n], b[n]) != 0) 1156s # goto out; 1156s # ret = TRUE; 1156s # out: 1156s # return ret; 1156s # } 1156s # 1156s # static gboolean 1156s # _g_variant_equal0 (GVariant *a, GVariant *b) 1156s # { 1156s # gboolean ret = FALSE; 1156s # if (a == NULL && b == NULL) 1156s # { 1156s # ret = TRUE; 1156s # goto out; 1156s # } 1156s # if (a == NULL || b == NULL) 1156s # goto out; 1156s # ret = g_variant_equal (a, b); 1156s # out: 1156s # return ret; 1156s # } 1156s # 1156s # G_GNUC_UNUSED static gboolean 1156s # _g_value_equal (const GValue *a, const GValue *b) 1156s # { 1156s # gboolean ret = FALSE; 1156s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 1156s # switch (G_VALUE_TYPE (a)) 1156s # { 1156s # case G_TYPE_BOOLEAN: 1156s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 1156s # break; 1156s # case G_TYPE_UCHAR: 1156s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 1156s # break; 1156s # case G_TYPE_INT: 1156s # ret = (g_value_get_int (a) == g_value_get_int (b)); 1156s # break; 1156s # case G_TYPE_UINT: 1156s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 1156s # break; 1156s # case G_TYPE_INT64: 1156s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 1156s # break; 1156s # case G_TYPE_UINT64: 1156s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 1156s # break; 1156s # case G_TYPE_DOUBLE: 1156s # { 1156s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 1156s # gdouble da = g_value_get_double (a); 1156s # gdouble db = g_value_get_double (b); 1156s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 1156s # } 1156s # break; 1156s # case G_TYPE_STRING: 1156s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 1156s # break; 1156s # case G_TYPE_VARIANT: 1156s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 1156s # break; 1156s # default: 1156s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 1156s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 1156s # else 1156s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 1156s # break; 1156s # } 1156s # return ret; 1156s # } 1156s # 1156s # /* ------------------------------------------------------------------------ 1156s # * Code for interface GoodTypes 1156s # * ------------------------------------------------------------------------ 1156s # */ 1156s # 1156s # /** 1156s # * SECTION:GoodTypes 1156s # * @title: GoodTypes 1156s # * @short_description: Generated C code for the GoodTypes D-Bus interface 1156s # * 1156s # * This section contains code for working with the GoodTypes D-Bus interface in C. 1156s # */ 1156s # 1156s # /* ---- Introspection data for GoodTypes ---- */ 1156s # 1156s # static const _ExtendedGDBusPropertyInfo _good_types_property_info_good_property_type = 1156s # { 1156s # { 1156s # -1, 1156s # (gchar *) "GoodPropertyType", 1156s # (gchar *) "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaas", 1156s # G_DBUS_PROPERTY_INFO_FLAGS_READABLE, 1156s # NULL 1156s # }, 1156s # "good-property-type", 1156s # FALSE, 1156s # TRUE 1156s # }; 1156s # 1156s # static const GDBusPropertyInfo * const _good_types_property_info_pointers[] = 1156s # { 1156s # &_good_types_property_info_good_property_type.parent_struct, 1156s # NULL 1156s # }; 1156s # 1156s # static const _ExtendedGDBusInterfaceInfo _good_types_interface_info = 1156s # { 1156s # { 1156s # -1, 1156s # (gchar *) "GoodTypes", 1156s # NULL, 1156s # NULL, 1156s # (GDBusPropertyInfo **) &_good_types_property_info_pointers, 1156s # NULL 1156s # }, 1156s # "good-types", 1156s # }; 1156s # 1156s # 1156s # /** 1156s # * good_types_interface_info: 1156s # * 1156s # * Gets a machine-readable description of the GoodTypes D-Bus interface. 1156s # * 1156s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 1156s # */ 1156s # GDBusInterfaceInfo * 1156s # good_types_interface_info (void) 1156s # { 1156s # return (GDBusInterfaceInfo *) &_good_types_interface_info.parent_struct; 1156s # } 1156s # 1156s # /** 1156s # * good_types_override_properties: 1156s # * @klass: The class structure for a #GObject derived class. 1156s # * @property_id_begin: The property id to assign to the first overridden property. 1156s # * 1156s # * Overrides all #GObject properties in the GoodTypes interface for a concrete class. 1156s # * The properties are overridden in the order they are defined. 1156s # * 1156s # * Returns: The last property id. 1156s # */ 1156s # guint 1156s # good_types_override_properties (GObjectClass *klass, guint property_id_begin) 1156s # { 1156s # g_object_class_override_property (klass, property_id_begin++, "good-property-type"); 1156s # return property_id_begin - 1; 1156s # } 1156s # 1156s # 1156s # 1156s # /** 1156s # * GoodTypes: 1156s # * 1156s # * Abstract interface type for the D-Bus interface GoodTypes. 1156s # */ 1156s # 1156s # /** 1156s # * GoodTypesIface: 1156s # * @parent_iface: The parent interface. 1156s # * @get_good_property_type: Getter for the #GoodTypes:good-property-type property. 1156s # * 1156s # * Virtual table for the D-Bus interface GoodTypes. 1156s # */ 1156s # 1156s # typedef GoodTypesIface GoodTypesInterface; 1156s # G_DEFINE_INTERFACE (GoodTypes, good_types, G_TYPE_OBJECT) 1156s # 1156s # static void 1156s # good_types_default_init (GoodTypesIface *iface) 1156s # { 1156s # /* GObject properties for D-Bus properties: */ 1156s # /** 1156s # * GoodTypes:good-property-type: 1156s # * 1156s # * Represents the D-Bus property "GoodPropertyType". 1156s # * 1156s # * 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. 1156s # */ 1156s # g_object_interface_install_property (iface, 1156s # g_param_spec_variant ("good-property-type", "GoodPropertyType", "GoodPropertyType", G_VARIANT_TYPE ("aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaas"), NULL, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS)); 1156s # } 1156s # 1156s # /** 1156s # * good_types_get_good_property_type: (skip) 1156s # * @object: A GoodTypes. 1156s # * 1156s # * Gets the value of the "GoodPropertyType" D-Bus property. 1156s # * 1156s # * Since this D-Bus property is readable, it is meaningful to use this function on both the client- and service-side. 1156s # * 1156s # * 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. 1156s # * 1156s # * 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. 1156s # */ 1156s # GVariant * 1156s # good_types_get_good_property_type (GoodTypes *object) 1156s # { 1156s # g_return_val_if_fail (IS_GOOD_TYPES (object), NULL); 1156s # 1156s # return GOOD_TYPES_GET_IFACE (object)->get_good_property_type (object); 1156s # } 1156s # 1156s # /** 1156s # * good_types_dup_good_property_type: (skip) 1156s # * @object: A GoodTypes. 1156s # * 1156s # * Gets a copy of the "GoodPropertyType" D-Bus property. 1156s # * 1156s # * Since this D-Bus property is readable, it is meaningful to use this function on both the client- and service-side. 1156s # * 1156s # * 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(). 1156s # */ 1156s # GVariant * 1156s # good_types_dup_good_property_type (GoodTypes *object) 1156s # { 1156s # GVariant *value; 1156s # g_object_get (G_OBJECT (object), "good-property-type", &value, NULL); 1156s # return value; 1156s # } 1156s # 1156s # /** 1156s # * good_types_set_good_property_type: (skip) 1156s # * @object: A GoodTypes. 1156s # * @value: The value to set. 1156s # * 1156s # * Sets the "GoodPropertyType" D-Bus property to @value. 1156s # * 1156s # * Since this D-Bus property is not writable, it is only meaningful to use this function on the service-side. 1156s # */ 1156s # void 1156s # good_types_set_good_property_type (GoodTypes *object, GVariant *value) 1156s # { 1156s # g_object_set (G_OBJECT (object), "good-property-type", value, NULL); 1156s # } 1156s # 1156s # /* ------------------------------------------------------------------------ */ 1156s # 1156s # /** 1156s # * GoodTypesProxy: 1156s # * 1156s # * The GoodTypesProxy structure contains only private data and should only be accessed using the provided API. 1156s # */ 1156s # 1156s # /** 1156s # * GoodTypesProxyClass: 1156s # * @parent_class: The parent class. 1156s # * 1156s # * Class structure for GoodTypesProxy. 1156s # */ 1156s # 1156s # struct _GoodTypesProxyPrivate 1156s # { 1156s # GData *qdata; 1156s # }; 1156s # 1156s # static void good_types_proxy_iface_init (GoodTypesIface *iface); 1156s # 1156s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1156s # G_DEFINE_TYPE_WITH_CODE (GoodTypesProxy, good_types_proxy, G_TYPE_DBUS_PROXY, 1156s # G_ADD_PRIVATE (GoodTypesProxy) 1156s # G_IMPLEMENT_INTERFACE (TYPE_GOOD_TYPES, good_types_proxy_iface_init)) 1156s # 1156s # #else 1156s # G_DEFINE_TYPE_WITH_CODE (GoodTypesProxy, good_types_proxy, G_TYPE_DBUS_PROXY, 1156s # G_IMPLEMENT_INTERFACE (TYPE_GOOD_TYPES, good_types_proxy_iface_init)) 1156s # 1156s # #endif 1156s # static void 1156s # good_types_proxy_finalize (GObject *object) 1156s # { 1156s # GoodTypesProxy *proxy = GOOD_TYPES_PROXY (object); 1156s # g_datalist_clear (&proxy->priv->qdata); 1156s # G_OBJECT_CLASS (good_types_proxy_parent_class)->finalize (object); 1156s # } 1156s # 1156s # static void 1156s # good_types_proxy_get_property (GObject *object, 1156s # guint prop_id, 1156s # GValue *value, 1156s # GParamSpec *pspec G_GNUC_UNUSED) 1156s # { 1156s # const _ExtendedGDBusPropertyInfo *info; 1156s # GVariant *variant; 1156s # g_assert (prop_id != 0 && prop_id - 1 < 1); 1156s # info = (const _ExtendedGDBusPropertyInfo *) _good_types_property_info_pointers[prop_id - 1]; 1156s # variant = g_dbus_proxy_get_cached_property (G_DBUS_PROXY (object), info->parent_struct.name); 1156s # if (info->use_gvariant) 1156s # { 1156s # g_value_set_variant (value, variant); 1156s # } 1156s # else 1156s # { 1156s # if (variant != NULL) 1156s # g_dbus_gvariant_to_gvalue (variant, value); 1156s # } 1156s # if (variant != NULL) 1156s # g_variant_unref (variant); 1156s # } 1156s # 1156s # static void 1156s # good_types_proxy_set_property_cb (GDBusProxy *proxy, 1156s # GAsyncResult *res, 1156s # gpointer user_data) 1156s # { 1156s # const _ExtendedGDBusPropertyInfo *info = user_data; 1156s # GError *error; 1156s # GVariant *_ret; 1156s # error = NULL; 1156s # _ret = g_dbus_proxy_call_finish (proxy, res, &error); 1156s # if (!_ret) 1156s # { 1156s # g_warning ("Error setting property '%s' on interface GoodTypes: %s (%s, %d)", 1156s # info->parent_struct.name, 1156s # error->message, g_quark_to_string (error->domain), error->code); 1156s # g_error_free (error); 1156s # } 1156s # else 1156s # { 1156s # g_variant_unref (_ret); 1156s # } 1156s # } 1156s # 1156s # static void 1156s # good_types_proxy_set_property (GObject *object, 1156s # guint prop_id, 1156s # const GValue *value, 1156s # GParamSpec *pspec G_GNUC_UNUSED) 1156s # { 1156s # const _ExtendedGDBusPropertyInfo *info; 1156s # GVariant *variant; 1156s # g_assert (prop_id != 0 && prop_id - 1 < 1); 1156s # info = (const _ExtendedGDBusPropertyInfo *) _good_types_property_info_pointers[prop_id - 1]; 1156s # variant = g_dbus_gvalue_to_gvariant (value, G_VARIANT_TYPE (info->parent_struct.signature)); 1156s # g_dbus_proxy_call (G_DBUS_PROXY (object), 1156s # "org.freedesktop.DBus.Properties.Set", 1156s # g_variant_new ("(ssv)", "GoodTypes", info->parent_struct.name, variant), 1156s # G_DBUS_CALL_FLAGS_NONE, 1156s # -1, 1156s # NULL, (GAsyncReadyCallback) good_types_proxy_set_property_cb, (GDBusPropertyInfo *) &info->parent_struct); 1156s # g_variant_unref (variant); 1156s # } 1156s # 1156s # static void 1156s # good_types_proxy_g_signal (GDBusProxy *proxy, 1156s # const gchar *sender_name G_GNUC_UNUSED, 1156s # const gchar *signal_name, 1156s # GVariant *parameters) 1156s # { 1156s # _ExtendedGDBusSignalInfo *info; 1156s # GVariantIter iter; 1156s # GVariant *child; 1156s # GValue *paramv; 1156s # gsize num_params; 1156s # gsize n; 1156s # guint signal_id; 1156s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_good_types_interface_info.parent_struct, signal_name); 1156s # if (info == NULL) 1156s # return; 1156s # num_params = g_variant_n_children (parameters); 1156s # paramv = g_new0 (GValue, num_params + 1); 1156s # g_value_init (¶mv[0], TYPE_GOOD_TYPES); 1156s # g_value_set_object (¶mv[0], proxy); 1156s # g_variant_iter_init (&iter, parameters); 1156s # n = 1; 1156s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1156s # { 1156s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 1156s # if (arg_info->use_gvariant) 1156s # { 1156s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1156s # g_value_set_variant (¶mv[n], child); 1156s # n++; 1156s # } 1156s # else 1156s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1156s # g_variant_unref (child); 1156s # } 1156s # signal_id = g_signal_lookup (info->signal_name, TYPE_GOOD_TYPES); 1156s # g_signal_emitv (paramv, signal_id, 0, NULL); 1156s # for (n = 0; n < num_params + 1; n++) 1156s # g_value_unset (¶mv[n]); 1156s # g_free (paramv); 1156s # } 1156s # 1156s # static void 1156s # good_types_proxy_g_properties_changed (GDBusProxy *_proxy, 1156s # GVariant *changed_properties, 1156s # const gchar *const *invalidated_properties) 1156s # { 1156s # GoodTypesProxy *proxy = GOOD_TYPES_PROXY (_proxy); 1156s # guint n; 1156s # const gchar *key; 1156s # GVariantIter *iter; 1156s # _ExtendedGDBusPropertyInfo *info; 1156s # g_variant_get (changed_properties, "a{sv}", &iter); 1156s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 1156s # { 1156s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_good_types_interface_info.parent_struct, key); 1156s # g_datalist_remove_data (&proxy->priv->qdata, key); 1156s # if (info != NULL) 1156s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1156s # } 1156s # g_variant_iter_free (iter); 1156s # for (n = 0; invalidated_properties[n] != NULL; n++) 1156s # { 1156s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_good_types_interface_info.parent_struct, invalidated_properties[n]); 1156s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 1156s # if (info != NULL) 1156s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1156s # } 1156s # } 1156s # 1156s # static GVariant * 1156s # good_types_proxy_get_good_property_type (GoodTypes *object) 1156s # { 1156s # GoodTypesProxy *proxy = GOOD_TYPES_PROXY (object); 1156s # GVariant *variant; 1156s # GVariant *value = NULL; 1156s # variant = g_dbus_proxy_get_cached_property (G_DBUS_PROXY (proxy), "GoodPropertyType"); 1156s # value = variant; 1156s # if (variant != NULL) 1156s # g_variant_unref (variant); 1156s # return value; 1156s # } 1156s # 1156s # static void 1156s # good_types_proxy_init (GoodTypesProxy *proxy) 1156s # { 1156s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1156s # proxy->priv = good_types_proxy_get_instance_private (proxy); 1156s # #else 1156s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_GOOD_TYPES_PROXY, GoodTypesProxyPrivate); 1156s # #endif 1156s # 1156s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), good_types_interface_info ()); 1156s # } 1156s # 1156s # static void 1156s # good_types_proxy_class_init (GoodTypesProxyClass *klass) 1156s # { 1156s # GObjectClass *gobject_class; 1156s # GDBusProxyClass *proxy_class; 1156s # 1156s # gobject_class = G_OBJECT_CLASS (klass); 1156s # gobject_class->finalize = good_types_proxy_finalize; 1156s # gobject_class->get_property = good_types_proxy_get_property; 1156s # gobject_class->set_property = good_types_proxy_set_property; 1156s # 1156s # proxy_class = G_DBUS_PROXY_CLASS (klass); 1156s # proxy_class->g_signal = good_types_proxy_g_signal; 1156s # proxy_class->g_properties_changed = good_types_proxy_g_properties_changed; 1156s # 1156s # good_types_override_properties (gobject_class, 1); 1156s # 1156s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1156s # g_type_class_add_private (klass, sizeof (GoodTypesProxyPrivate)); 1156s # #endif 1156s # } 1156s # 1156s # static void 1156s # good_types_proxy_iface_init (GoodTypesIface *iface) 1156s # { 1156s # iface->get_good_property_type = good_types_proxy_get_good_property_type; 1156s # } 1156s # 1156s # /** 1156s # * good_types_proxy_new: 1156s # * @connection: A #GDBusConnection. 1156s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1156s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1156s # * @object_path: An object path. 1156s # * @cancellable: (nullable): A #GCancellable or %NULL. 1156s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1156s # * @user_data: User data to pass to @callback. 1156s # * 1156s # * Asynchronously creates a proxy for the D-Bus interface GoodTypes. See g_dbus_proxy_new() for more details. 1156s # * 1156s # * 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()). 1156s # * You can then call good_types_proxy_new_finish() to get the result of the operation. 1156s # * 1156s # * See good_types_proxy_new_sync() for the synchronous, blocking version of this constructor. 1156s # */ 1156s # void 1156s # good_types_proxy_new ( 1156s # GDBusConnection *connection, 1156s # GDBusProxyFlags flags, 1156s # const gchar *name, 1156s # const gchar *object_path, 1156s # GCancellable *cancellable, 1156s # GAsyncReadyCallback callback, 1156s # gpointer user_data) 1156s # { 1156s # 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); 1156s # } 1156s # 1156s # /** 1156s # * good_types_proxy_new_finish: 1156s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to good_types_proxy_new(). 1156s # * @error: Return location for error or %NULL 1156s # * 1156s # * Finishes an operation started with good_types_proxy_new(). 1156s # * 1156s # * Returns: (transfer full) (type GoodTypesProxy): The constructed proxy object or %NULL if @error is set. 1156s # */ 1156s # GoodTypes * 1156s # good_types_proxy_new_finish ( 1156s # GAsyncResult *res, 1156s # GError **error) 1156s # { 1156s # GObject *ret; 1156s # GObject *source_object; 1156s # source_object = g_async_result_get_source_object (res); 1156s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1156s # g_object_unref (source_object); 1156s # if (ret != NULL) 1156s # return GOOD_TYPES (ret); 1156s # else 1156s # return NULL; 1156s # } 1156s # 1156s # /** 1156s # * good_types_proxy_new_sync: 1156s # * @connection: A #GDBusConnection. 1156s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1156s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1156s # * @object_path: An object path. 1156s # * @cancellable: (nullable): A #GCancellable or %NULL. 1156s # * @error: Return location for error or %NULL 1156s # * 1156s # * Synchronously creates a proxy for the D-Bus interface GoodTypes. See g_dbus_proxy_new_sync() for more details. 1156s # * 1156s # * The calling thread is blocked until a reply is received. 1156s # * 1156s # * See good_types_proxy_new() for the asynchronous version of this constructor. 1156s # * 1156s # * Returns: (transfer full) (type GoodTypesProxy): The constructed proxy object or %NULL if @error is set. 1156s # */ 1156s # GoodTypes * 1156s # good_types_proxy_new_sync ( 1156s # GDBusConnection *connection, 1156s # GDBusProxyFlags flags, 1156s # const gchar *name, 1156s # const gchar *object_path, 1156s # GCancellable *cancellable, 1156s # GError **error) 1156s # { 1156s # GInitable *ret; 1156s # 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); 1156s # if (ret != NULL) 1156s # return GOOD_TYPES (ret); 1156s # else 1156s # return NULL; 1156s # } 1156s # 1156s # 1156s # /** 1156s # * good_types_proxy_new_for_bus: 1156s # * @bus_type: A #GBusType. 1156s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1156s # * @name: A bus name (well-known or unique). 1156s # * @object_path: An object path. 1156s # * @cancellable: (nullable): A #GCancellable or %NULL. 1156s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1156s # * @user_data: User data to pass to @callback. 1156s # * 1156s # * Like good_types_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 1156s # * 1156s # * 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()). 1156s # * You can then call good_types_proxy_new_for_bus_finish() to get the result of the operation. 1156s # * 1156s # * See good_types_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 1156s # */ 1156s # void 1156s # good_types_proxy_new_for_bus ( 1156s # GBusType bus_type, 1156s # GDBusProxyFlags flags, 1156s # const gchar *name, 1156s # const gchar *object_path, 1156s # GCancellable *cancellable, 1156s # GAsyncReadyCallback callback, 1156s # gpointer user_data) 1156s # { 1156s # 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); 1156s # } 1156s # 1156s # /** 1156s # * good_types_proxy_new_for_bus_finish: 1156s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to good_types_proxy_new_for_bus(). 1156s # * @error: Return location for error or %NULL 1156s # * 1156s # * Finishes an operation started with good_types_proxy_new_for_bus(). 1156s # * 1156s # * Returns: (transfer full) (type GoodTypesProxy): The constructed proxy object or %NULL if @error is set. 1156s # */ 1156s # GoodTypes * 1156s # good_types_proxy_new_for_bus_finish ( 1156s # GAsyncResult *res, 1156s # GError **error) 1156s # { 1156s # GObject *ret; 1156s # GObject *source_object; 1156s # source_object = g_async_result_get_source_object (res); 1156s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1156s # g_object_unref (source_object); 1156s # if (ret != NULL) 1156s # return GOOD_TYPES (ret); 1156s # else 1156s # return NULL; 1156s # } 1156s # 1156s # /** 1156s # * good_types_proxy_new_for_bus_sync: 1156s # * @bus_type: A #GBusType. 1156s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1156s # * @name: A bus name (well-known or unique). 1156s # * @object_path: An object path. 1156s # * @cancellable: (nullable): A #GCancellable or %NULL. 1156s # * @error: Return location for error or %NULL 1156s # * 1156s # * Like good_types_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 1156s # * 1156s # * The calling thread is blocked until a reply is received. 1156s # * 1156s # * See good_types_proxy_new_for_bus() for the asynchronous version of this constructor. 1156s # * 1156s # * Returns: (transfer full) (type GoodTypesProxy): The constructed proxy object or %NULL if @error is set. 1156s # */ 1156s # GoodTypes * 1156s # good_types_proxy_new_for_bus_sync ( 1156s # GBusType bus_type, 1156s # GDBusProxyFlags flags, 1156s # const gchar *name, 1156s # const gchar *object_path, 1156s # GCancellable *cancellable, 1156s # GError **error) 1156s # { 1156s # GInitable *ret; 1156s # 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); 1156s # if (ret != NULL) 1156s # return GOOD_TYPES (ret); 1156s # else 1156s # return NULL; 1156s # } 1156s # 1156s # 1156s # /* ------------------------------------------------------------------------ */ 1156s # 1156s # /** 1156s # * GoodTypesSkeleton: 1156s # * 1156s # * The GoodTypesSkeleton structure contains only private data and should only be accessed using the provided API. 1156s # */ 1156s # 1156s # /** 1156s # * GoodTypesSkeletonClass: 1156s # * @parent_class: The parent class. 1156s # * 1156s # * Class structure for GoodTypesSkeleton. 1156s # */ 1156s # 1156s # struct _GoodTypesSkeletonPrivate 1156s # { 1156s # GValue *properties; 1156s # GList *changed_properties; 1156s # GSource *changed_properties_idle_source; 1156s # GMainContext *context; 1156s # GMutex lock; 1156s # }; 1156s # 1156s # static void 1156s # _good_types_skeleton_handle_method_call ( 1156s # GDBusConnection *connection G_GNUC_UNUSED, 1156s # const gchar *sender G_GNUC_UNUSED, 1156s # const gchar *object_path G_GNUC_UNUSED, 1156s # const gchar *interface_name, 1156s # const gchar *method_name, 1156s # GVariant *parameters, 1156s # GDBusMethodInvocation *invocation, 1156s # gpointer user_data) 1156s # { 1156s # GoodTypesSkeleton *skeleton = GOOD_TYPES_SKELETON (user_data); 1156s # _ExtendedGDBusMethodInfo *info; 1156s # GVariantIter iter; 1156s # GVariant *child; 1156s # GValue *paramv; 1156s # gsize num_params; 1156s # guint num_extra; 1156s # gsize n; 1156s # guint signal_id; 1156s # GValue return_value = G_VALUE_INIT; 1156s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 1156s # g_assert (info != NULL); 1156s # num_params = g_variant_n_children (parameters); 1156s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 1156s # n = 0; 1156s # g_value_init (¶mv[n], TYPE_GOOD_TYPES); 1156s # g_value_set_object (¶mv[n++], skeleton); 1156s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 1156s # g_value_set_object (¶mv[n++], invocation); 1156s # if (info->pass_fdlist) 1156s # { 1156s # #ifdef G_OS_UNIX 1156s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 1156s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 1156s # #else 1156s # g_assert_not_reached (); 1156s # #endif 1156s # } 1156s # g_variant_iter_init (&iter, parameters); 1156s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1156s # { 1156s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 1156s # if (arg_info->use_gvariant) 1156s # { 1156s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1156s # g_value_set_variant (¶mv[n], child); 1156s # n++; 1156s # } 1156s # else 1156s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1156s # g_variant_unref (child); 1156s # } 1156s # signal_id = g_signal_lookup (info->signal_name, TYPE_GOOD_TYPES); 1156s # g_value_init (&return_value, G_TYPE_BOOLEAN); 1156s # g_signal_emitv (paramv, signal_id, 0, &return_value); 1156s # if (!g_value_get_boolean (&return_value)) 1156s # 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); 1156s # g_value_unset (&return_value); 1156s # for (n = 0; n < num_params + num_extra; n++) 1156s # g_value_unset (¶mv[n]); 1156s # g_free (paramv); 1156s # } 1156s # 1156s # static GVariant * 1156s # _good_types_skeleton_handle_get_property ( 1156s # GDBusConnection *connection G_GNUC_UNUSED, 1156s # const gchar *sender G_GNUC_UNUSED, 1156s # const gchar *object_path G_GNUC_UNUSED, 1156s # const gchar *interface_name G_GNUC_UNUSED, 1156s # const gchar *property_name, 1156s # GError **error, 1156s # gpointer user_data) 1156s # { 1156s # GoodTypesSkeleton *skeleton = GOOD_TYPES_SKELETON (user_data); 1156s # GValue value = G_VALUE_INIT; 1156s # GParamSpec *pspec; 1156s # _ExtendedGDBusPropertyInfo *info; 1156s # GVariant *ret; 1156s # ret = NULL; 1156s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_good_types_interface_info.parent_struct, property_name); 1156s # g_assert (info != NULL); 1156s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1156s # if (pspec == NULL) 1156s # { 1156s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1156s # } 1156s # else 1156s # { 1156s # g_value_init (&value, pspec->value_type); 1156s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1156s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 1156s # g_value_unset (&value); 1156s # } 1156s # return ret; 1156s # } 1156s # 1156s # static gboolean 1156s # _good_types_skeleton_handle_set_property ( 1156s # GDBusConnection *connection G_GNUC_UNUSED, 1156s # const gchar *sender G_GNUC_UNUSED, 1156s # const gchar *object_path G_GNUC_UNUSED, 1156s # const gchar *interface_name G_GNUC_UNUSED, 1156s # const gchar *property_name, 1156s # GVariant *variant, 1156s # GError **error, 1156s # gpointer user_data) 1156s # { 1156s # GoodTypesSkeleton *skeleton = GOOD_TYPES_SKELETON (user_data); 1156s # GValue value = G_VALUE_INIT; 1156s # GParamSpec *pspec; 1156s # _ExtendedGDBusPropertyInfo *info; 1156s # gboolean ret; 1156s # ret = FALSE; 1156s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_good_types_interface_info.parent_struct, property_name); 1156s # g_assert (info != NULL); 1156s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1156s # if (pspec == NULL) 1156s # { 1156s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1156s # } 1156s # else 1156s # { 1156s # if (info->use_gvariant) 1156s # g_value_set_variant (&value, variant); 1156s # else 1156s # g_dbus_gvariant_to_gvalue (variant, &value); 1156s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1156s # g_value_unset (&value); 1156s # ret = TRUE; 1156s # } 1156s # return ret; 1156s # } 1156s # 1156s # static const GDBusInterfaceVTable _good_types_skeleton_vtable = 1156s # { 1156s # _good_types_skeleton_handle_method_call, 1156s # _good_types_skeleton_handle_get_property, 1156s # _good_types_skeleton_handle_set_property, 1156s # {NULL} 1156s # }; 1156s # 1156s # static GDBusInterfaceInfo * 1156s # good_types_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1156s # { 1156s # return good_types_interface_info (); 1156s # } 1156s # 1156s # static GDBusInterfaceVTable * 1156s # good_types_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1156s # { 1156s # return (GDBusInterfaceVTable *) &_good_types_skeleton_vtable; 1156s # } 1156s # 1156s # static GVariant * 1156s # good_types_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 1156s # { 1156s # GoodTypesSkeleton *skeleton = GOOD_TYPES_SKELETON (_skeleton); 1156s # 1156s # GVariantBuilder builder; 1156s # guint n; 1156s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 1156s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 1156s # #else 1156s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 1156s # #endif 1156s # if (_good_types_interface_info.parent_struct.properties == NULL) 1156s # goto out; 1156s # for (n = 0; _good_types_interface_info.parent_struct.properties[n] != NULL; n++) 1156s # { 1156s # GDBusPropertyInfo *info = _good_types_interface_info.parent_struct.properties[n]; 1156s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 1156s # { 1156s # GVariant *value; 1156s # 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); 1156s # if (value != NULL) 1156s # { 1156s # g_variant_take_ref (value); 1156s # g_variant_builder_add (&builder, "{sv}", info->name, value); 1156s # g_variant_unref (value); 1156s # } 1156s # } 1156s # } 1156s # out: 1156s # return g_variant_builder_end (&builder); 1156s # } 1156s # 1156s # static gboolean _good_types_emit_changed (gpointer user_data); 1156s # 1156s # static void 1156s # good_types_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton) 1156s # { 1156s # GoodTypesSkeleton *skeleton = GOOD_TYPES_SKELETON (_skeleton); 1156s # gboolean emit_changed = FALSE; 1156s # 1156s # g_mutex_lock (&skeleton->priv->lock); 1156s # if (skeleton->priv->changed_properties_idle_source != NULL) 1156s # { 1156s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 1156s # skeleton->priv->changed_properties_idle_source = NULL; 1156s # emit_changed = TRUE; 1156s # } 1156s # g_mutex_unlock (&skeleton->priv->lock); 1156s # 1156s # if (emit_changed) 1156s # _good_types_emit_changed (skeleton); 1156s # } 1156s # 1156s # static void good_types_skeleton_iface_init (GoodTypesIface *iface); 1156s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1156s # G_DEFINE_TYPE_WITH_CODE (GoodTypesSkeleton, good_types_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1156s # G_ADD_PRIVATE (GoodTypesSkeleton) 1156s # G_IMPLEMENT_INTERFACE (TYPE_GOOD_TYPES, good_types_skeleton_iface_init)) 1156s # 1156s # #else 1156s # G_DEFINE_TYPE_WITH_CODE (GoodTypesSkeleton, good_types_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1156s # G_IMPLEMENT_INTERFACE (TYPE_GOOD_TYPES, good_types_skeleton_iface_init)) 1156s # 1156s # #endif 1156s # static void 1156s # good_types_skeleton_finalize (GObject *object) 1156s # { 1156s # GoodTypesSkeleton *skeleton = GOOD_TYPES_SKELETON (object); 1156s # guint n; 1156s # for (n = 0; n < 1; n++) 1156s # g_value_unset (&skeleton->priv->properties[n]); 1156s # g_free (skeleton->priv->properties); 1156s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 1156s # if (skeleton->priv->changed_properties_idle_source != NULL) 1156s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 1156s # g_main_context_unref (skeleton->priv->context); 1156s # g_mutex_clear (&skeleton->priv->lock); 1156s # G_OBJECT_CLASS (good_types_skeleton_parent_class)->finalize (object); 1156s # } 1156s # 1156s # static void 1156s # good_types_skeleton_get_property (GObject *object, 1156s # guint prop_id, 1156s # GValue *value, 1156s # GParamSpec *pspec G_GNUC_UNUSED) 1156s # { 1156s # GoodTypesSkeleton *skeleton = GOOD_TYPES_SKELETON (object); 1156s # g_assert (prop_id != 0 && prop_id - 1 < 1); 1156s # g_mutex_lock (&skeleton->priv->lock); 1156s # g_value_copy (&skeleton->priv->properties[prop_id - 1], value); 1156s # g_mutex_unlock (&skeleton->priv->lock); 1156s # } 1156s # 1156s # static gboolean 1156s # _good_types_emit_changed (gpointer user_data) 1156s # { 1156s # GoodTypesSkeleton *skeleton = GOOD_TYPES_SKELETON (user_data); 1156s # GList *l; 1156s # GVariantBuilder builder; 1156s # GVariantBuilder invalidated_builder; 1156s # guint num_changes; 1156s # 1156s # g_mutex_lock (&skeleton->priv->lock); 1156s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 1156s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 1156s # g_variant_builder_init_static (&invalidated_builder, G_VARIANT_TYPE ("as")); 1156s # #else 1156s # g_variant_builder_init (&builder, G_VARIANT_TYPE ("a{sv}")); 1156s # g_variant_builder_init (&invalidated_builder, G_VARIANT_TYPE ("as")); 1156s # #endif 1156s # for (l = skeleton->priv->changed_properties, num_changes = 0; l != NULL; l = l->next) 1156s # { 1156s # ChangedProperty *cp = l->data; 1156s # GVariant *variant; 1156s # const GValue *cur_value; 1156s # 1156s # cur_value = &skeleton->priv->properties[cp->prop_id - 1]; 1156s # if (!_g_value_equal (cur_value, &cp->orig_value)) 1156s # { 1156s # variant = g_dbus_gvalue_to_gvariant (cur_value, G_VARIANT_TYPE (cp->info->parent_struct.signature)); 1156s # g_variant_builder_add (&builder, "{sv}", cp->info->parent_struct.name, variant); 1156s # g_variant_unref (variant); 1156s # num_changes++; 1156s # } 1156s # } 1156s # if (num_changes > 0) 1156s # { 1156s # GList *connections, *ll; 1156s # GVariant *signal_variant; 1156s # signal_variant = g_variant_ref_sink (g_variant_new ("(sa{sv}as)", "GoodTypes", 1156s # &builder, &invalidated_builder)); 1156s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 1156s # for (ll = connections; ll != NULL; ll = ll->next) 1156s # { 1156s # GDBusConnection *connection = ll->data; 1156s # 1156s # g_dbus_connection_emit_signal (connection, 1156s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), 1156s # "org.freedesktop.DBus.Properties", 1156s # "PropertiesChanged", 1156s # signal_variant, 1156s # NULL); 1156s # } 1156s # g_variant_unref (signal_variant); 1156s # g_list_free_full (connections, g_object_unref); 1156s # } 1156s # else 1156s # { 1156s # g_variant_builder_clear (&builder); 1156s # g_variant_builder_clear (&invalidated_builder); 1156s # } 1156s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 1156s # skeleton->priv->changed_properties = NULL; 1156s # skeleton->priv->changed_properties_idle_source = NULL; 1156s # g_mutex_unlock (&skeleton->priv->lock); 1156s # return FALSE; 1156s # } 1156s # 1156s # static void 1156s # _good_types_schedule_emit_changed (GoodTypesSkeleton *skeleton, const _ExtendedGDBusPropertyInfo *info, guint prop_id, const GValue *orig_value) 1156s # { 1156s # ChangedProperty *cp; 1156s # GList *l; 1156s # cp = NULL; 1156s # for (l = skeleton->priv->changed_properties; l != NULL; l = l->next) 1156s # { 1156s # ChangedProperty *i_cp = l->data; 1156s # if (i_cp->info == info) 1156s # { 1156s # cp = i_cp; 1156s # break; 1156s # } 1156s # } 1156s # if (cp == NULL) 1156s # { 1156s # cp = g_new0 (ChangedProperty, 1); 1156s # cp->prop_id = prop_id; 1156s # cp->info = info; 1156s # skeleton->priv->changed_properties = g_list_prepend (skeleton->priv->changed_properties, cp); 1156s # g_value_init (&cp->orig_value, G_VALUE_TYPE (orig_value)); 1156s # g_value_copy (orig_value, &cp->orig_value); 1156s # } 1156s # } 1156s # 1156s # static void 1156s # good_types_skeleton_notify (GObject *object, 1156s # GParamSpec *pspec G_GNUC_UNUSED) 1156s # { 1156s # GoodTypesSkeleton *skeleton = GOOD_TYPES_SKELETON (object); 1156s # g_mutex_lock (&skeleton->priv->lock); 1156s # if (skeleton->priv->changed_properties != NULL && 1156s # skeleton->priv->changed_properties_idle_source == NULL) 1156s # { 1156s # skeleton->priv->changed_properties_idle_source = g_idle_source_new (); 1156s # g_source_set_priority (skeleton->priv->changed_properties_idle_source, G_PRIORITY_DEFAULT); 1156s # g_source_set_callback (skeleton->priv->changed_properties_idle_source, _good_types_emit_changed, g_object_ref (skeleton), (GDestroyNotify) g_object_unref); 1156s # g_source_set_name (skeleton->priv->changed_properties_idle_source, "[generated] _good_types_emit_changed"); 1156s # g_source_attach (skeleton->priv->changed_properties_idle_source, skeleton->priv->context); 1156s # g_source_unref (skeleton->priv->changed_properties_idle_source); 1156s # } 1156s # g_mutex_unlock (&skeleton->priv->lock); 1156s # } 1156s # 1156s # static void 1156s # good_types_skeleton_set_property (GObject *object, 1156s # guint prop_id, 1156s # const GValue *value, 1156s # GParamSpec *pspec) 1156s # { 1156s # const _ExtendedGDBusPropertyInfo *info; 1156s # GoodTypesSkeleton *skeleton = GOOD_TYPES_SKELETON (object); 1156s # g_assert (prop_id != 0 && prop_id - 1 < 1); 1156s # info = (const _ExtendedGDBusPropertyInfo *) _good_types_property_info_pointers[prop_id - 1]; 1156s # g_mutex_lock (&skeleton->priv->lock); 1156s # g_object_freeze_notify (object); 1156s # if (!_g_value_equal (value, &skeleton->priv->properties[prop_id - 1])) 1156s # { 1156s # if (g_dbus_interface_skeleton_get_connection (G_DBUS_INTERFACE_SKELETON (skeleton)) != NULL && 1156s # info->emits_changed_signal) 1156s # _good_types_schedule_emit_changed (skeleton, info, prop_id, &skeleton->priv->properties[prop_id - 1]); 1156s # g_value_copy (value, &skeleton->priv->properties[prop_id - 1]); 1156s # g_object_notify_by_pspec (object, pspec); 1156s # } 1156s # g_mutex_unlock (&skeleton->priv->lock); 1156s # g_object_thaw_notify (object); 1156s # } 1156s # 1156s # static void 1156s # good_types_skeleton_init (GoodTypesSkeleton *skeleton) 1156s # { 1156s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1156s # skeleton->priv = good_types_skeleton_get_instance_private (skeleton); 1156s # #else 1156s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_GOOD_TYPES_SKELETON, GoodTypesSkeletonPrivate); 1156s # #endif 1156s # 1156s # g_mutex_init (&skeleton->priv->lock); 1156s # skeleton->priv->context = g_main_context_ref_thread_default (); 1156s # skeleton->priv->properties = g_new0 (GValue, 1); 1156s # g_value_init (&skeleton->priv->properties[0], G_TYPE_VARIANT); 1156s # } 1156s # 1156s # static GVariant * 1156s # good_types_skeleton_get_good_property_type (GoodTypes *object) 1156s # { 1156s # GoodTypesSkeleton *skeleton = GOOD_TYPES_SKELETON (object); 1156s # GVariant *value; 1156s # g_mutex_lock (&skeleton->priv->lock); 1156s # value = g_marshal_value_peek_variant (&(skeleton->priv->properties[0])); 1156s # g_mutex_unlock (&skeleton->priv->lock); 1156s # return value; 1156s # } 1156s # 1156s # static void 1156s # good_types_skeleton_class_init (GoodTypesSkeletonClass *klass) 1156s # { 1156s # GObjectClass *gobject_class; 1156s # GDBusInterfaceSkeletonClass *skeleton_class; 1156s # 1156s # gobject_class = G_OBJECT_CLASS (klass); 1156s # gobject_class->finalize = good_types_skeleton_finalize; 1156s # gobject_class->get_property = good_types_skeleton_get_property; 1156s # gobject_class->set_property = good_types_skeleton_set_property; 1156s # gobject_class->notify = good_types_skeleton_notify; 1156s # 1156s # 1156s # good_types_override_properties (gobject_class, 1); 1156s # 1156s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 1156s # skeleton_class->get_info = good_types_skeleton_dbus_interface_get_info; 1156s # skeleton_class->get_properties = good_types_skeleton_dbus_interface_get_properties; 1156s # skeleton_class->flush = good_types_skeleton_dbus_interface_flush; 1156s # skeleton_class->get_vtable = good_types_skeleton_dbus_interface_get_vtable; 1156s # 1156s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1156s # g_type_class_add_private (klass, sizeof (GoodTypesSkeletonPrivate)); 1156s # #endif 1156s # } 1156s # 1156s # static void 1156s # good_types_skeleton_iface_init (GoodTypesIface *iface) 1156s # { 1156s # iface->get_good_property_type = good_types_skeleton_get_good_property_type; 1156s # } 1156s # 1156s # /** 1156s # * good_types_skeleton_new: 1156s # * 1156s # * Creates a skeleton object for the D-Bus interface GoodTypes. 1156s # * 1156s # * Returns: (transfer full) (type GoodTypesSkeleton): The skeleton object. 1156s # */ 1156s # GoodTypes * 1156s # good_types_skeleton_new (void) 1156s # { 1156s # return GOOD_TYPES (g_object_new (TYPE_GOOD_TYPES_SKELETON, NULL)); 1156s # } 1156s # Error: 1156s # 1156s # /tmp/tmp2vjrmu6t/tmp216_1l25.xml: 1156s # 1156s # 1156s # 1156s # 1156s # 1156s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmp2vjrmu6t/tmp216_1l25.xml', '--output', '-', '--body'] 1156s # Return code: 0 1156s # Output: 1156s # /* 1156s # * This file is generated by gdbus-codegen, do not modify it. 1156s # * 1156s # * The license of this code is the same as for the D-Bus interface description 1156s # * it was derived from. Note that it links to GLib, so must comply with the 1156s # * LGPL linking clauses. 1156s # */ 1156s # 1156s # #ifdef HAVE_CONFIG_H 1156s # # include "config.h" 1156s # #endif 1156s # 1156s # #include 1156s # #ifdef G_OS_UNIX 1156s # # include 1156s # #endif 1156s # 1156s # #ifdef G_ENABLE_DEBUG 1156s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 1156s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 1156s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 1156s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 1156s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 1156s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 1156s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 1156s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 1156s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 1156s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 1156s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 1156s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 1156s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 1156s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 1156s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 1156s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 1156s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 1156s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 1156s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 1156s # #else /* !G_ENABLE_DEBUG */ 1156s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 1156s # * Do not access GValues directly in your code. Instead, use the 1156s # * g_value_get_*() functions 1156s # */ 1156s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 1156s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 1156s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 1156s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 1156s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 1156s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 1156s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 1156s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 1156s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 1156s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 1156s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 1156s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 1156s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 1156s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 1156s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 1156s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 1156s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 1156s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 1156s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 1156s # #endif /* !G_ENABLE_DEBUG */ 1156s # 1156s # typedef struct 1156s # { 1156s # GDBusArgInfo parent_struct; 1156s # gboolean use_gvariant; 1156s # } _ExtendedGDBusArgInfo; 1156s # 1156s # typedef struct 1156s # { 1156s # GDBusMethodInfo parent_struct; 1156s # const gchar *signal_name; 1156s # gboolean pass_fdlist; 1156s # } _ExtendedGDBusMethodInfo; 1156s # 1156s # typedef struct 1156s # { 1156s # GDBusSignalInfo parent_struct; 1156s # const gchar *signal_name; 1156s # } _ExtendedGDBusSignalInfo; 1156s # 1156s # typedef struct 1156s # { 1156s # GDBusPropertyInfo parent_struct; 1156s # const gchar *hyphen_name; 1156s # guint use_gvariant : 1; 1156s # guint emits_changed_signal : 1; 1156s # } _ExtendedGDBusPropertyInfo; 1156s # 1156s # typedef struct 1156s # { 1156s # GDBusInterfaceInfo parent_struct; 1156s # const gchar *hyphen_name; 1156s # } _ExtendedGDBusInterfaceInfo; 1156s # 1156s # typedef struct 1156s # { 1156s # const _ExtendedGDBusPropertyInfo *info; 1156s # guint prop_id; 1156s # GValue orig_value; /* the value before the change */ 1156s # } ChangedProperty; 1156s # 1156s # static void 1156s # _changed_property_free (ChangedProperty *data) 1156s # { 1156s # g_value_unset (&data->orig_value); 1156s # g_free (data); 1156s # } 1156s # 1156s # static gboolean 1156s # _g_strv_equal0 (gchar **a, gchar **b) 1156s # { 1156s # gboolean ret = FALSE; 1156s # guint n; 1156s # if (a == NULL && b == NULL) 1156s # { 1156s # ret = TRUE; 1156s # goto out; 1156s # } 1156s # if (a == NULL || b == NULL) 1156s # goto out; 1156s # if (g_strv_length (a) != g_strv_length (b)) 1156s # goto out; 1156s # for (n = 0; a[n] != NULL; n++) 1156s # if (g_strcmp0 (a[n], b[n]) != 0) 1156s # goto out; 1156s # ret = TRUE; 1156s # out: 1156s # return ret; 1156s # } 1156s # 1156s # static gboolean 1156s # _g_variant_equal0 (GVariant *a, GVariant *b) 1156s # { 1156s # gboolean ret = FALSE; 1156s # if (a == NULL && b == NULL) 1156s # { 1156s # ret = TRUE; 1156s # goto out; 1156s # } 1156s # if (a == NULL || b == NULL) 1156s # goto out; 1156s # ret = g_variant_equal (a, b); 1156s # out: 1156s # return ret; 1156s # } 1156s # 1156s # G_GNUC_UNUSED static gboolean 1156s # _g_value_equal (const GValue *a, const GValue *b) 1156s # { 1156s # gboolean ret = FALSE; 1156s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 1156s # switch (G_VALUE_TYPE (a)) 1156s # { 1156s # case G_TYPE_BOOLEAN: 1156s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 1156s # break; 1156s # case G_TYPE_UCHAR: 1156s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 1156s # break; 1156s # case G_TYPE_INT: 1156s # ret = (g_value_get_int (a) == g_value_get_int (b)); 1156s # break; 1156s # case G_TYPE_UINT: 1156s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 1156s # break; 1156s # case G_TYPE_INT64: 1156s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 1156s # break; 1156s # case G_TYPE_UINT64: 1156s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 1156s # break; 1156s # case G_TYPE_DOUBLE: 1156s # { 1156s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 1156s # gdouble da = g_value_get_double (a); 1156s # gdouble db = g_value_get_double (b); 1156s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 1156s # } 1156s # break; 1156s # case G_TYPE_STRING: 1156s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 1156s # break; 1156s # case G_TYPE_VARIANT: 1156s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 1156s # break; 1156s # default: 1156s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 1156s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 1156s # else 1156s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 1156s # break; 1156s # } 1156s # return ret; 1156s # } 1156s # 1156s # /* ------------------------------------------------------------------------ 1156s # * Code for interface GoodTypes 1156s # * ------------------------------------------------------------------------ 1156s # */ 1156s # 1156s # /** 1156s # * SECTION:GoodTypes 1156s # * @title: GoodTypes 1156s # * @short_description: Generated C code for the GoodTypes D-Bus interface 1156s # * 1156s # * This section contains code for working with the GoodTypes D-Bus interface in C. 1156s # */ 1156s # 1156s # /* ---- Introspection data for GoodTypes ---- */ 1156s # 1156s # static const _ExtendedGDBusPropertyInfo _good_types_property_info_good_property_type = 1156s # { 1156s # { 1156s # -1, 1156s # (gchar *) "GoodPropertyType", 1156s # (gchar *) "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa(aaaaaaaaaaaaaaaaa{sv})", 1156s # G_DBUS_PROPERTY_INFO_FLAGS_READABLE, 1156s # NULL 1156s # }, 1156s # "good-property-type", 1156s # FALSE, 1156s # TRUE 1156s # }; 1156s # 1156s # static const GDBusPropertyInfo * const _good_types_property_info_pointers[] = 1156s # { 1156s # &_good_types_property_info_good_property_type.parent_struct, 1156s # NULL 1156s # }; 1156s # 1156s # static const _ExtendedGDBusInterfaceInfo _good_types_interface_info = 1156s # { 1156s # { 1156s # -1, 1156s # (gchar *) "GoodTypes", 1156s # NULL, 1156s # NULL, 1156s # (GDBusPropertyInfo **) &_good_types_property_info_pointers, 1156s # NULL 1156s # }, 1156s # "good-types", 1156s # }; 1156s # 1156s # 1156s # /** 1156s # * good_types_interface_info: 1156s # * 1156s # * Gets a machine-readable description of the GoodTypes D-Bus interface. 1156s # * 1156s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 1156s # */ 1156s # GDBusInterfaceInfo * 1156s # good_types_interface_info (void) 1156s # { 1156s # return (GDBusInterfaceInfo *) &_good_types_interface_info.parent_struct; 1156s # } 1156s # 1156s # /** 1156s # * good_types_override_properties: 1156s # * @klass: The class structure for a #GObject derived class. 1156s # * @property_id_begin: The property id to assign to the first overridden property. 1156s # * 1156s # * Overrides all #GObject properties in the GoodTypes interface for a concrete class. 1156s # * The properties are overridden in the order they are defined. 1156s # * 1156s # * Returns: The last property id. 1156s # */ 1156s # guint 1156s # good_types_override_properties (GObjectClass *klass, guint property_id_begin) 1156s # { 1156s # g_object_class_override_property (klass, property_id_begin++, "good-property-type"); 1156s # return property_id_begin - 1; 1156s # } 1156s # 1156s # 1156s # 1156s # /** 1156s # * GoodTypes: 1156s # * 1156s # * Abstract interface type for the D-Bus interface GoodTypes. 1156s # */ 1156s # 1156s # /** 1156s # * GoodTypesIface: 1156s # * @parent_iface: The parent interface. 1156s # * @get_good_property_type: Getter for the #GoodTypes:good-property-type property. 1156s # * 1156s # * Virtual table for the D-Bus interface GoodTypes. 1156s # */ 1156s # 1156s # typedef GoodTypesIface GoodTypesInterface; 1156s # G_DEFINE_INTERFACE (GoodTypes, good_types, G_TYPE_OBJECT) 1156s # 1156s # static void 1156s # good_types_default_init (GoodTypesIface *iface) 1156s # { 1156s # /* GObject properties for D-Bus properties: */ 1156s # /** 1156s # * GoodTypes:good-property-type: 1156s # * 1156s # * Represents the D-Bus property "GoodPropertyType". 1156s # * 1156s # * 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. 1156s # */ 1156s # g_object_interface_install_property (iface, 1156s # g_param_spec_variant ("good-property-type", "GoodPropertyType", "GoodPropertyType", G_VARIANT_TYPE ("aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa(aaaaaaaaaaaaaaaaa{sv})"), NULL, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS)); 1156s # } 1156s # 1156s # /** 1156s # * good_types_get_good_property_type: (skip) 1156s # * @object: A GoodTypes. 1156s # * 1156s # * Gets the value of the "GoodPropertyType" D-Bus property. 1156s # * 1156s # * Since this D-Bus property is readable, it is meaningful to use this function on both the client- and service-side. 1156s # * 1156s # * 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. 1156s # * 1156s # * 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. 1156s # */ 1156s # GVariant * 1156s # good_types_get_good_property_type (GoodTypes *object) 1156s # { 1156s # g_return_val_if_fail (IS_GOOD_TYPES (object), NULL); 1156s # 1156s # return GOOD_TYPES_GET_IFACE (object)->get_good_property_type (object); 1156s # } 1156s # 1156s # /** 1156s # * good_types_dup_good_property_type: (skip) 1156s # * @object: A GoodTypes. 1156s # * 1156s # * Gets a copy of the "GoodPropertyType" D-Bus property. 1156s # * 1156s # * Since this D-Bus property is readable, it is meaningful to use this function on both the client- and service-side. 1156s # * 1156s # * 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(). 1156s # */ 1156s # GVariant * 1156s # good_types_dup_good_property_type (GoodTypes *object) 1156s # { 1156s # GVariant *value; 1156s # g_object_get (G_OBJECT (object), "good-property-type", &value, NULL); 1156s # return value; 1156s # } 1156s # 1156s # /** 1156s # * good_types_set_good_property_type: (skip) 1156s # * @object: A GoodTypes. 1156s # * @value: The value to set. 1156s # * 1156s # * Sets the "GoodPropertyType" D-Bus property to @value. 1156s # * 1156s # * Since this D-Bus property is not writable, it is only meaningful to use this function on the service-side. 1156s # */ 1156s # void 1156s # good_types_set_good_property_type (GoodTypes *object, GVariant *value) 1156s # { 1156s # g_object_set (G_OBJECT (object), "good-property-type", value, NULL); 1156s # } 1156s # 1156s # /* ------------------------------------------------------------------------ */ 1156s # 1156s # /** 1156s # * GoodTypesProxy: 1156s # * 1156s # * The GoodTypesProxy structure contains only private data and should only be accessed using the provided API. 1156s # */ 1156s # 1156s # /** 1156s # * GoodTypesProxyClass: 1156s # * @parent_class: The parent class. 1156s # * 1156s # * Class structure for GoodTypesProxy. 1156s # */ 1156s # 1156s # struct _GoodTypesProxyPrivate 1156s # { 1156s # GData *qdata; 1156s # }; 1156s # 1156s # static void good_types_proxy_iface_init (GoodTypesIface *iface); 1156s # 1156s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1156s # G_DEFINE_TYPE_WITH_CODE (GoodTypesProxy, good_types_proxy, G_TYPE_DBUS_PROXY, 1156s # G_ADD_PRIVATE (GoodTypesProxy) 1156s # G_IMPLEMENT_INTERFACE (TYPE_GOOD_TYPES, good_types_proxy_iface_init)) 1156s # 1156s # #else 1156s # G_DEFINE_TYPE_WITH_CODE (GoodTypesProxy, good_types_proxy, G_TYPE_DBUS_PROXY, 1156s # G_IMPLEMENT_INTERFACE (TYPE_GOOD_TYPES, good_types_proxy_iface_init)) 1156s # 1156s # #endif 1156s # static void 1156s # good_types_proxy_finalize (GObject *object) 1156s # { 1156s # GoodTypesProxy *proxy = GOOD_TYPES_PROXY (object); 1156s # g_datalist_clear (&proxy->priv->qdata); 1156s # G_OBJECT_CLASS (good_types_proxy_parent_class)->finalize (object); 1156s # } 1156s # 1156s # static void 1156s # good_types_proxy_get_property (GObject *object, 1156s # guint prop_id, 1156s # GValue *value, 1156s # GParamSpec *pspec G_GNUC_UNUSED) 1156s # { 1156s # const _ExtendedGDBusPropertyInfo *info; 1156s # GVariant *variant; 1156s # g_assert (prop_id != 0 && prop_id - 1 < 1); 1156s # info = (const _ExtendedGDBusPropertyInfo *) _good_types_property_info_pointers[prop_id - 1]; 1156s # variant = g_dbus_proxy_get_cached_property (G_DBUS_PROXY (object), info->parent_struct.name); 1156s # if (info->use_gvariant) 1156s # { 1156s # g_value_set_variant (value, variant); 1156s # } 1156s # else 1156s # { 1156s # if (variant != NULL) 1156s # g_dbus_gvariant_to_gvalue (variant, value); 1156s # } 1156s # if (variant != NULL) 1156s # g_variant_unref (variant); 1156s # } 1156s # 1156s # static void 1156s # good_types_proxy_set_property_cb (GDBusProxy *proxy, 1156s # GAsyncResult *res, 1156s # gpointer user_data) 1156s # { 1156s # const _ExtendedGDBusPropertyInfo *info = user_data; 1156s # GError *error; 1156s # GVariant *_ret; 1156s # error = NULL; 1156s # _ret = g_dbus_proxy_call_finish (proxy, res, &error); 1156s # if (!_ret) 1156s # { 1156s # g_warning ("Error setting property '%s' on interface GoodTypes: %s (%s, %d)", 1156s # info->parent_struct.name, 1156s # error->message, g_quark_to_string (error->domain), error->code); 1156s # g_error_free (error); 1156s # } 1156s # else 1156s # { 1156s # g_variant_unref (_ret); 1156s # } 1156s # } 1156s # 1156s # static void 1156s # good_types_proxy_set_property (GObject *object, 1156s # guint prop_id, 1156s # const GValue *value, 1156s # GParamSpec *pspec G_GNUC_UNUSED) 1156s # { 1156s # const _ExtendedGDBusPropertyInfo *info; 1156s # GVariant *variant; 1156s # g_assert (prop_id != 0 && prop_id - 1 < 1); 1156s # info = (const _ExtendedGDBusPropertyInfo *) _good_types_property_info_pointers[prop_id - 1]; 1156s # variant = g_dbus_gvalue_to_gvariant (value, G_VARIANT_TYPE (info->parent_struct.signature)); 1156s # g_dbus_proxy_call (G_DBUS_PROXY (object), 1156s # "org.freedesktop.DBus.Properties.Set", 1156s # g_variant_new ("(ssv)", "GoodTypes", info->parent_struct.name, variant), 1156s # G_DBUS_CALL_FLAGS_NONE, 1156s # -1, 1156s # NULL, (GAsyncReadyCallback) good_types_proxy_set_property_cb, (GDBusPropertyInfo *) &info->parent_struct); 1156s # g_variant_unref (variant); 1156s # } 1156s # 1156s # static void 1156s # good_types_proxy_g_signal (GDBusProxy *proxy, 1156s # const gchar *sender_name G_GNUC_UNUSED, 1156s # const gchar *signal_name, 1156s # GVariant *parameters) 1156s # { 1156s # _ExtendedGDBusSignalInfo *info; 1156s # GVariantIter iter; 1156s # GVariant *child; 1156s # GValue *paramv; 1156s # gsize num_params; 1156s # gsize n; 1156s # guint signal_id; 1156s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_good_types_interface_info.parent_struct, signal_name); 1156s # if (info == NULL) 1156s # return; 1156s # num_params = g_variant_n_children (parameters); 1156s # paramv = g_new0 (GValue, num_params + 1); 1156s # g_value_init (¶mv[0], TYPE_GOOD_TYPES); 1156s # g_value_set_object (¶mv[0], proxy); 1156s # g_variant_iter_init (&iter, parameters); 1156s # n = 1; 1156s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1156s # { 1156s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 1156s # if (arg_info->use_gvariant) 1156s # { 1156s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1156s # g_value_set_variant (¶mv[n], child); 1156s # n++; 1156s # } 1156s # else 1156s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1156s # g_variant_unref (child); 1156s # } 1156s # signal_id = g_signal_lookup (info->signal_name, TYPE_GOOD_TYPES); 1156s # g_signal_emitv (paramv, signal_id, 0, NULL); 1156s # for (n = 0; n < num_params + 1; n++) 1156s # g_value_unset (¶mv[n]); 1156s # g_free (paramv); 1156s # } 1156s # 1156s # static void 1156s # good_types_proxy_g_properties_changed (GDBusProxy *_proxy, 1156s # GVariant *changed_properties, 1156s # const gchar *const *invalidated_properties) 1156s # { 1156s # GoodTypesProxy *proxy = GOOD_TYPES_PROXY (_proxy); 1156s # guint n; 1156s # const gchar *key; 1156s # GVariantIter *iter; 1156s # _ExtendedGDBusPropertyInfo *info; 1156s # g_variant_get (changed_properties, "a{sv}", &iter); 1156s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 1156s # { 1156s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_good_types_interface_info.parent_struct, key); 1156s # g_datalist_remove_data (&proxy->priv->qdata, key); 1156s # if (info != NULL) 1156s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1156s # } 1156s # g_variant_iter_free (iter); 1156s # for (n = 0; invalidated_properties[n] != NULL; n++) 1156s # { 1156s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_good_types_interface_info.parent_struct, invalidated_properties[n]); 1156s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 1156s # if (info != NULL) 1156s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1156s # } 1156s # } 1156s # 1156s # static GVariant * 1156s # good_types_proxy_get_good_property_type (GoodTypes *object) 1156s # { 1156s # GoodTypesProxy *proxy = GOOD_TYPES_PROXY (object); 1156s # GVariant *variant; 1156s # GVariant *value = NULL; 1156s # variant = g_dbus_proxy_get_cached_property (G_DBUS_PROXY (proxy), "GoodPropertyType"); 1156s # value = variant; 1156s # if (variant != NULL) 1156s # g_variant_unref (variant); 1156s # return value; 1156s # } 1156s # 1156s # static void 1156s # good_types_proxy_init (GoodTypesProxy *proxy) 1156s # { 1156s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1156s # proxy->priv = good_types_proxy_get_instance_private (proxy); 1156s # #else 1156s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_GOOD_TYPES_PROXY, GoodTypesProxyPrivate); 1156s # #endif 1156s # 1156s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), good_types_interface_info ()); 1156s # } 1156s # 1156s # static void 1156s # good_types_proxy_class_init (GoodTypesProxyClass *klass) 1156s # { 1156s # GObjectClass *gobject_class; 1156s # GDBusProxyClass *proxy_class; 1156s # 1156s # gobject_class = G_OBJECT_CLASS (klass); 1156s # gobject_class->finalize = good_types_proxy_finalize; 1156s # gobject_class->get_property = good_types_proxy_get_property; 1156s # gobject_class->set_property = good_types_proxy_set_property; 1156s # 1156s # proxy_class = G_DBUS_PROXY_CLASS (klass); 1156s # proxy_class->g_signal = good_types_proxy_g_signal; 1156s # proxy_class->g_properties_changed = good_types_proxy_g_properties_changed; 1156s # 1156s # good_types_override_properties (gobject_class, 1); 1156s # 1156s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1156s # g_type_class_add_private (klass, sizeof (GoodTypesProxyPrivate)); 1156s # #endif 1156s # } 1156s # 1156s # static void 1156s # good_types_proxy_iface_init (GoodTypesIface *iface) 1156s # { 1156s # iface->get_good_property_type = good_types_proxy_get_good_property_type; 1156s # } 1156s # 1156s # /** 1156s # * good_types_proxy_new: 1156s # * @connection: A #GDBusConnection. 1156s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1156s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1156s # * @object_path: An object path. 1156s # * @cancellable: (nullable): A #GCancellable or %NULL. 1156s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1156s # * @user_data: User data to pass to @callback. 1156s # * 1156s # * Asynchronously creates a proxy for the D-Bus interface GoodTypes. See g_dbus_proxy_new() for more details. 1156s # * 1156s # * 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()). 1156s # * You can then call good_types_proxy_new_finish() to get the result of the operation. 1156s # * 1156s # * See good_types_proxy_new_sync() for the synchronous, blocking version of this constructor. 1156s # */ 1156s # void 1156s # good_types_proxy_new ( 1156s # GDBusConnection *connection, 1156s # GDBusProxyFlags flags, 1156s # const gchar *name, 1156s # const gchar *object_path, 1156s # GCancellable *cancellable, 1156s # GAsyncReadyCallback callback, 1156s # gpointer user_data) 1156s # { 1156s # 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); 1156s # } 1156s # 1156s # /** 1156s # * good_types_proxy_new_finish: 1156s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to good_types_proxy_new(). 1156s # * @error: Return location for error or %NULL 1156s # * 1156s # * Finishes an operation started with good_types_proxy_new(). 1156s # * 1156s # * Returns: (transfer full) (type GoodTypesProxy): The constructed proxy object or %NULL if @error is set. 1156s # */ 1156s # GoodTypes * 1156s # good_types_proxy_new_finish ( 1156s # GAsyncResult *res, 1156s # GError **error) 1156s # { 1156s # GObject *ret; 1156s # GObject *source_object; 1156s # source_object = g_async_result_get_source_object (res); 1156s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1156s # g_object_unref (source_object); 1156s # if (ret != NULL) 1156s # return GOOD_TYPES (ret); 1156s # else 1156s # return NULL; 1156s # } 1156s # 1156s # /** 1156s # * good_types_proxy_new_sync: 1156s # * @connection: A #GDBusConnection. 1156s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1156s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1156s # * @object_path: An object path. 1156s # * @cancellable: (nullable): A #GCancellable or %NULL. 1156s # * @error: Return location for error or %NULL 1156s # * 1156s # * Synchronously creates a proxy for the D-Bus interface GoodTypes. See g_dbus_proxy_new_sync() for more details. 1156s # * 1156s # * The calling thread is blocked until a reply is received. 1156s # * 1156s # * See good_types_proxy_new() for the asynchronous version of this constructor. 1156s # * 1156s # * Returns: (transfer full) (type GoodTypesProxy): The constructed proxy object or %NULL if @error is set. 1156s # */ 1156s # GoodTypes * 1156s # good_types_proxy_new_sync ( 1156s # GDBusConnection *connection, 1156s # GDBusProxyFlags flags, 1156s # const gchar *name, 1156s # const gchar *object_path, 1156s # GCancellable *cancellable, 1156s # GError **error) 1156s # { 1156s # GInitable *ret; 1156s # 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); 1156s # if (ret != NULL) 1156s # return GOOD_TYPES (ret); 1156s # else 1156s # return NULL; 1156s # } 1156s # 1156s # 1156s # /** 1156s # * good_types_proxy_new_for_bus: 1156s # * @bus_type: A #GBusType. 1156s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1156s # * @name: A bus name (well-known or unique). 1156s # * @object_path: An object path. 1156s # * @cancellable: (nullable): A #GCancellable or %NULL. 1156s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1156s # * @user_data: User data to pass to @callback. 1156s # * 1156s # * Like good_types_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 1156s # * 1156s # * 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()). 1156s # * You can then call good_types_proxy_new_for_bus_finish() to get the result of the operation. 1156s # * 1156s # * See good_types_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 1156s # */ 1156s # void 1156s # good_types_proxy_new_for_bus ( 1156s # GBusType bus_type, 1156s # GDBusProxyFlags flags, 1156s # const gchar *name, 1156s # const gchar *object_path, 1156s # GCancellable *cancellable, 1156s # GAsyncReadyCallback callback, 1156s # gpointer user_data) 1156s # { 1156s # 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); 1156s # } 1156s # 1156s # /** 1156s # * good_types_proxy_new_for_bus_finish: 1156s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to good_types_proxy_new_for_bus(). 1156s # * @error: Return location for error or %NULL 1156s # * 1156s # * Finishes an operation started with good_types_proxy_new_for_bus(). 1156s # * 1156s # * Returns: (transfer full) (type GoodTypesProxy): The constructed proxy object or %NULL if @error is set. 1156s # */ 1156s # GoodTypes * 1156s # good_types_proxy_new_for_bus_finish ( 1156s # GAsyncResult *res, 1156s # GError **error) 1156s # { 1156s # GObject *ret; 1156s # GObject *source_object; 1156s # source_object = g_async_result_get_source_object (res); 1156s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1156s # g_object_unref (source_object); 1156s # if (ret != NULL) 1156s # return GOOD_TYPES (ret); 1156s # else 1156s # return NULL; 1156s # } 1156s # 1156s # /** 1156s # * good_types_proxy_new_for_bus_sync: 1156s # * @bus_type: A #GBusType. 1156s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1156s # * @name: A bus name (well-known or unique). 1156s # * @object_path: An object path. 1156s # * @cancellable: (nullable): A #GCancellable or %NULL. 1156s # * @error: Return location for error or %NULL 1156s # * 1156s # * Like good_types_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 1156s # * 1156s # * The calling thread is blocked until a reply is received. 1156s # * 1156s # * See good_types_proxy_new_for_bus() for the asynchronous version of this constructor. 1156s # * 1156s # * Returns: (transfer full) (type GoodTypesProxy): The constructed proxy object or %NULL if @error is set. 1156s # */ 1156s # GoodTypes * 1156s # good_types_proxy_new_for_bus_sync ( 1156s # GBusType bus_type, 1156s # GDBusProxyFlags flags, 1156s # const gchar *name, 1156s # const gchar *object_path, 1156s # GCancellable *cancellable, 1156s # GError **error) 1156s # { 1156s # GInitable *ret; 1156s # 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); 1156s # if (ret != NULL) 1156s # return GOOD_TYPES (ret); 1156s # else 1156s # return NULL; 1156s # } 1156s # 1156s # 1156s # /* ------------------------------------------------------------------------ */ 1156s # 1156s # /** 1156s # * GoodTypesSkeleton: 1156s # * 1156s # * The GoodTypesSkeleton structure contains only private data and should only be accessed using the provided API. 1156s # */ 1156s # 1156s # /** 1156s # * GoodTypesSkeletonClass: 1156s # * @parent_class: The parent class. 1156s # * 1156s # * Class structure for GoodTypesSkeleton. 1156s # */ 1156s # 1156s # struct _GoodTypesSkeletonPrivate 1156s # { 1156s # GValue *properties; 1156s # GList *changed_properties; 1156s # GSource *changed_properties_idle_source; 1156s # GMainContext *context; 1156s # GMutex lock; 1156s # }; 1156s # 1156s # static void 1156s # _good_types_skeleton_handle_method_call ( 1156s # GDBusConnection *connection G_GNUC_UNUSED, 1156s # const gchar *sender G_GNUC_UNUSED, 1156s # const gchar *object_path G_GNUC_UNUSED, 1156s # const gchar *interface_name, 1156s # const gchar *method_name, 1156s # GVariant *parameters, 1156s # GDBusMethodInvocation *invocation, 1156s # gpointer user_data) 1156s # { 1156s # GoodTypesSkeleton *skeleton = GOOD_TYPES_SKELETON (user_data); 1156s # _ExtendedGDBusMethodInfo *info; 1156s # GVariantIter iter; 1156s # GVariant *child; 1156s # GValue *paramv; 1156s # gsize num_params; 1156s # guint num_extra; 1156s # gsize n; 1156s # guint signal_id; 1156s # GValue return_value = G_VALUE_INIT; 1156s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 1156s # g_assert (info != NULL); 1156s # num_params = g_variant_n_children (parameters); 1156s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 1156s # n = 0; 1156s # g_value_init (¶mv[n], TYPE_GOOD_TYPES); 1156s # g_value_set_object (¶mv[n++], skeleton); 1156s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 1156s # g_value_set_object (¶mv[n++], invocation); 1156s # if (info->pass_fdlist) 1156s # { 1156s # #ifdef G_OS_UNIX 1156s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 1156s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 1156s # #else 1156s # g_assert_not_reached (); 1156s # #endif 1156s # } 1156s # g_variant_iter_init (&iter, parameters); 1156s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1156s # { 1156s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 1156s # if (arg_info->use_gvariant) 1156s # { 1156s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1156s # g_value_set_variant (¶mv[n], child); 1156s # n++; 1156s # } 1156s # else 1156s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1156s # g_variant_unref (child); 1156s # } 1156s # signal_id = g_signal_lookup (info->signal_name, TYPE_GOOD_TYPES); 1156s # g_value_init (&return_value, G_TYPE_BOOLEAN); 1156s # g_signal_emitv (paramv, signal_id, 0, &return_value); 1156s # if (!g_value_get_boolean (&return_value)) 1156s # 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); 1156s # g_value_unset (&return_value); 1156s # for (n = 0; n < num_params + num_extra; n++) 1156s # g_value_unset (¶mv[n]); 1156s # g_free (paramv); 1156s # } 1156s # 1156s # static GVariant * 1156s # _good_types_skeleton_handle_get_property ( 1156s # GDBusConnection *connection G_GNUC_UNUSED, 1156s # const gchar *sender G_GNUC_UNUSED, 1156s # const gchar *object_path G_GNUC_UNUSED, 1156s # const gchar *interface_name G_GNUC_UNUSED, 1156s # const gchar *property_name, 1156s # GError **error, 1156s # gpointer user_data) 1156s # { 1156s # GoodTypesSkeleton *skeleton = GOOD_TYPES_SKELETON (user_data); 1156s # GValue value = G_VALUE_INIT; 1156s # GParamSpec *pspec; 1156s # _ExtendedGDBusPropertyInfo *info; 1156s # GVariant *ret; 1156s # ret = NULL; 1156s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_good_types_interface_info.parent_struct, property_name); 1156s # g_assert (info != NULL); 1156s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1156s # if (pspec == NULL) 1156s # { 1156s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1156s # } 1156s # else 1156s # { 1156s # g_value_init (&value, pspec->value_type); 1156s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1156s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 1156s # g_value_unset (&value); 1156s # } 1156s # return ret; 1156s # } 1156s # 1156s # static gboolean 1156s # _good_types_skeleton_handle_set_property ( 1156s # GDBusConnection *connection G_GNUC_UNUSED, 1156s # const gchar *sender G_GNUC_UNUSED, 1156s # const gchar *object_path G_GNUC_UNUSED, 1156s # const gchar *interface_name G_GNUC_UNUSED, 1156s # const gchar *property_name, 1156s # GVariant *variant, 1156s # GError **error, 1156s # gpointer user_data) 1156s # { 1156s # GoodTypesSkeleton *skeleton = GOOD_TYPES_SKELETON (user_data); 1156s # GValue value = G_VALUE_INIT; 1156s # GParamSpec *pspec; 1156s # _ExtendedGDBusPropertyInfo *info; 1156s # gboolean ret; 1156s # ret = FALSE; 1156s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_good_types_interface_info.parent_struct, property_name); 1156s # g_assert (info != NULL); 1156s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1156s # if (pspec == NULL) 1156s # { 1156s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1156s # } 1156s # else 1156s # { 1156s # if (info->use_gvariant) 1156s # g_value_set_variant (&value, variant); 1156s # else 1156s # g_dbus_gvariant_to_gvalue (variant, &value); 1156s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1156s # g_value_unset (&value); 1156s # ret = TRUE; 1156s # } 1156s # return ret; 1156s # } 1156s # 1156s # static const GDBusInterfaceVTable _good_types_skeleton_vtable = 1156s # { 1156s # _good_types_skeleton_handle_method_call, 1156s # _good_types_skeleton_handle_get_property, 1156s # _good_types_skeleton_handle_set_property, 1156s # {NULL} 1156s # }; 1156s # 1156s # static GDBusInterfaceInfo * 1156s # good_types_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1156s # { 1156s # return good_types_interface_info (); 1156s # } 1156s # 1156s # static GDBusInterfaceVTable * 1156s # good_types_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1156s # { 1156s # return (GDBusInterfaceVTable *) &_good_types_skeleton_vtable; 1156s # } 1156s # 1156s # static GVariant * 1156s # good_types_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 1156s # { 1156s # GoodTypesSkeleton *skeleton = GOOD_TYPES_SKELETON (_skeleton); 1156s # 1156s # GVariantBuilder builder; 1156s # guint n; 1156s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 1156s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 1156s # #else 1156s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 1156s # #endif 1156s # if (_good_types_interface_info.parent_struct.properties == NULL) 1156s # goto out; 1156s # for (n = 0; _good_types_interface_info.parent_struct.properties[n] != NULL; n++) 1156s # { 1156s # GDBusPropertyInfo *info = _good_types_interface_info.parent_struct.properties[n]; 1156s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 1156s # { 1156s # GVariant *value; 1156s # 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); 1156s # if (value != NULL) 1156s # { 1156s # g_variant_take_ref (value); 1156s # g_variant_builder_add (&builder, "{sv}", info->name, value); 1156s # g_variant_unref (value); 1156s # } 1156s # } 1156s # } 1156s # out: 1156s # return g_variant_builder_end (&builder); 1156s # } 1156s # 1156s # static gboolean _good_types_emit_changed (gpointer user_data); 1156s # 1156s # static void 1156s # good_types_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton) 1156s # { 1156s # GoodTypesSkeleton *skeleton = GOOD_TYPES_SKELETON (_skeleton); 1156s # gboolean emit_changed = FALSE; 1156s # 1156s # g_mutex_lock (&skeleton->priv->lock); 1156s # if (skeleton->priv->changed_properties_idle_source != NULL) 1156s # { 1156s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 1156s # skeleton->priv->changed_properties_idle_source = NULL; 1156s # emit_changed = TRUE; 1156s # } 1156s # g_mutex_unlock (&skeleton->priv->lock); 1156s # 1156s # if (emit_changed) 1156s # _good_types_emit_changed (skeleton); 1156s # } 1156s # 1156s # static void good_types_skeleton_iface_init (GoodTypesIface *iface); 1156s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1156s # G_DEFINE_TYPE_WITH_CODE (GoodTypesSkeleton, good_types_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1156s # G_ADD_PRIVATE (GoodTypesSkeleton) 1156s # G_IMPLEMENT_INTERFACE (TYPE_GOOD_TYPES, good_types_skeleton_iface_init)) 1156s # 1156s # #else 1156s # G_DEFINE_TYPE_WITH_CODE (GoodTypesSkeleton, good_types_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1156s # G_IMPLEMENT_INTERFACE (TYPE_GOOD_TYPES, good_types_skeleton_iface_init)) 1156s # 1156s # #endif 1156s # static void 1156s # good_types_skeleton_finalize (GObject *object) 1156s # { 1156s # GoodTypesSkeleton *skeleton = GOOD_TYPES_SKELETON (object); 1156s # guint n; 1156s # for (n = 0; n < 1; n++) 1156s # g_value_unset (&skeleton->priv->properties[n]); 1156s # g_free (skeleton->priv->properties); 1156s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 1156s # if (skeleton->priv->changed_properties_idle_source != NULL) 1156s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 1156s # g_main_context_unref (skeleton->priv->context); 1156s # g_mutex_clear (&skeleton->priv->lock); 1156s # G_OBJECT_CLASS (good_types_skeleton_parent_class)->finalize (object); 1156s # } 1156s # 1156s # static void 1156s # good_types_skeleton_get_property (GObject *object, 1156s # guint prop_id, 1156s # GValue *value, 1156s # GParamSpec *pspec G_GNUC_UNUSED) 1156s # { 1156s # GoodTypesSkeleton *skeleton = GOOD_TYPES_SKELETON (object); 1156s # g_assert (prop_id != 0 && prop_id - 1 < 1); 1156s # g_mutex_lock (&skeleton->priv->lock); 1156s # g_value_copy (&skeleton->priv->properties[prop_id - 1], value); 1156s # g_mutex_unlock (&skeleton->priv->lock); 1156s # } 1156s # 1156s # static gboolean 1156s # _good_types_emit_changed (gpointer user_data) 1156s # { 1156s # GoodTypesSkeleton *skeleton = GOOD_TYPES_SKELETON (user_data); 1156s # GList *l; 1156s # GVariantBuilder builder; 1156s # GVariantBuilder invalidated_builder; 1156s # guint num_changes; 1156s # 1156s # g_mutex_lock (&skeleton->priv->lock); 1156s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 1156s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 1156s # g_variant_builder_init_static (&invalidated_builder, G_VARIANT_TYPE ("as")); 1156s # #else 1156s # g_variant_builder_init (&builder, G_VARIANT_TYPE ("a{sv}")); 1156s # g_variant_builder_init (&invalidated_builder, G_VARIANT_TYPE ("as")); 1156s # #endif 1156s # for (l = skeleton->priv->changed_properties, num_changes = 0; l != NULL; l = l->next) 1156s # { 1156s # ChangedProperty *cp = l->data; 1156s # GVariant *variant; 1156s # const GValue *cur_value; 1156s # 1156s # cur_value = &skeleton->priv->properties[cp->prop_id - 1]; 1156s # if (!_g_value_equal (cur_value, &cp->orig_value)) 1156s # { 1156s # variant = g_dbus_gvalue_to_gvariant (cur_value, G_VARIANT_TYPE (cp->info->parent_struct.signature)); 1156s # g_variant_builder_add (&builder, "{sv}", cp->info->parent_struct.name, variant); 1156s # g_variant_unref (variant); 1156s # num_changes++; 1156s # } 1156s # } 1156s # if (num_changes > 0) 1156s # { 1156s # GList *connections, *ll; 1156s # GVariant *signal_variant; 1156s # signal_variant = g_variant_ref_sink (g_variant_new ("(sa{sv}as)", "GoodTypes", 1156s # &builder, &invalidated_builder)); 1156s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 1156s # for (ll = connections; ll != NULL; ll = ll->next) 1156s # { 1156s # GDBusConnection *connection = ll->data; 1156s # 1156s # g_dbus_connection_emit_signal (connection, 1156s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), 1156s # "org.freedesktop.DBus.Properties", 1156s # "PropertiesChanged", 1156s # signal_variant, 1156s # NULL); 1156s # } 1156s # g_variant_unref (signal_variant); 1156s # g_list_free_full (connections, g_object_unref); 1156s # } 1156s # else 1156s # { 1156s # g_variant_builder_clear (&builder); 1156s # g_variant_builder_clear (&invalidated_builder); 1156s # } 1156s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 1156s # skeleton->priv->changed_properties = NULL; 1156s # skeleton->priv->changed_properties_idle_source = NULL; 1156s # g_mutex_unlock (&skeleton->priv->lock); 1156s # return FALSE; 1156s # } 1156s # 1156s # static void 1156s # _good_types_schedule_emit_changed (GoodTypesSkeleton *skeleton, const _ExtendedGDBusPropertyInfo *info, guint prop_id, const GValue *orig_value) 1156s # { 1156s # ChangedProperty *cp; 1156s # GList *l; 1156s # cp = NULL; 1156s # for (l = skeleton->priv->changed_properties; l != NULL; l = l->next) 1156s # { 1156s # ChangedProperty *i_cp = l->data; 1156s # if (i_cp->info == info) 1156s # { 1156s # cp = i_cp; 1156s # break; 1156s # } 1156s # } 1156s # if (cp == NULL) 1156s # { 1156s # cp = g_new0 (ChangedProperty, 1); 1156s # cp->prop_id = prop_id; 1156s # cp->info = info; 1156s # skeleton->priv->changed_properties = g_list_prepend (skeleton->priv->changed_properties, cp); 1156s # g_value_init (&cp->orig_value, G_VALUE_TYPE (orig_value)); 1156s # g_value_copy (orig_value, &cp->orig_value); 1156s # } 1156s # } 1156s # 1156s # static void 1156s # good_types_skeleton_notify (GObject *object, 1156s # GParamSpec *pspec G_GNUC_UNUSED) 1156s # { 1156s # GoodTypesSkeleton *skeleton = GOOD_TYPES_SKELETON (object); 1156s # g_mutex_lock (&skeleton->priv->lock); 1156s # if (skeleton->priv->changed_properties != NULL && 1156s # skeleton->priv->changed_properties_idle_source == NULL) 1156s # { 1156s # skeleton->priv->changed_properties_idle_source = g_idle_source_new (); 1156s # g_source_set_priority (skeleton->priv->changed_properties_idle_source, G_PRIORITY_DEFAULT); 1156s # g_source_set_callback (skeleton->priv->changed_properties_idle_source, _good_types_emit_changed, g_object_ref (skeleton), (GDestroyNotify) g_object_unref); 1156s # g_source_set_name (skeleton->priv->changed_properties_idle_source, "[generated] _good_types_emit_changed"); 1156s # g_source_attach (skeleton->priv->changed_properties_idle_source, skeleton->priv->context); 1156s # g_source_unref (skeleton->priv->changed_properties_idle_source); 1156s # } 1156s # g_mutex_unlock (&skeleton->priv->lock); 1156s # } 1156s # 1156s # static void 1156s # good_types_skeleton_set_property (GObject *object, 1156s # guint prop_id, 1156s # const GValue *value, 1156s # GParamSpec *pspec) 1156s # { 1156s # const _ExtendedGDBusPropertyInfo *info; 1156s # GoodTypesSkeleton *skeleton = GOOD_TYPES_SKELETON (object); 1156s # g_assert (prop_id != 0 && prop_id - 1 < 1); 1156s # info = (const _ExtendedGDBusPropertyInfo *) _good_types_property_info_pointers[prop_id - 1]; 1156s # g_mutex_lock (&skeleton->priv->lock); 1156s # g_object_freeze_notify (object); 1156s # if (!_g_value_equal (value, &skeleton->priv->properties[prop_id - 1])) 1156s # { 1156s # if (g_dbus_interface_skeleton_get_connection (G_DBUS_INTERFACE_SKELETON (skeleton)) != NULL && 1156s # info->emits_changed_signal) 1156s # _good_types_schedule_emit_changed (skeleton, info, prop_id, &skeleton->priv->properties[prop_id - 1]); 1156s # g_value_copy (value, &skeleton->priv->properties[prop_id - 1]); 1156s # g_object_notify_by_pspec (object, pspec); 1156s # } 1156s # g_mutex_unlock (&skeleton->priv->lock); 1156s # g_object_thaw_notify (object); 1156s # } 1156s # 1156s # static void 1156s # good_types_skeleton_init (GoodTypesSkeleton *skeleton) 1156s # { 1156s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1156s # skeleton->priv = good_types_skeleton_get_instance_private (skeleton); 1156s # #else 1156s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_GOOD_TYPES_SKELETON, GoodTypesSkeletonPrivate); 1156s # #endif 1156s # 1156s # g_mutex_init (&skeleton->priv->lock); 1156s # skeleton->priv->context = g_main_context_ref_thread_default (); 1156s # skeleton->priv->properties = g_new0 (GValue, 1); 1156s # g_value_init (&skeleton->priv->properties[0], G_TYPE_VARIANT); 1156s # } 1156s # 1156s # static GVariant * 1156s # good_types_skeleton_get_good_property_type (GoodTypes *object) 1156s # { 1156s # GoodTypesSkeleton *skeleton = GOOD_TYPES_SKELETON (object); 1156s # GVariant *value; 1156s # g_mutex_lock (&skeleton->priv->lock); 1156s # value = g_marshal_value_peek_variant (&(skeleton->priv->properties[0])); 1156s # g_mutex_unlock (&skeleton->priv->lock); 1156s # return value; 1156s # } 1156s # 1156s # static void 1156s # good_types_skeleton_class_init (GoodTypesSkeletonClass *klass) 1156s # { 1156s # GObjectClass *gobject_class; 1156s # GDBusInterfaceSkeletonClass *skeleton_class; 1156s # 1156s # gobject_class = G_OBJECT_CLASS (klass); 1156s # gobject_class->finalize = good_types_skeleton_finalize; 1156s # gobject_class->get_property = good_types_skeleton_get_property; 1156s # gobject_class->set_property = good_types_skeleton_set_property; 1156s # gobject_class->notify = good_types_skeleton_notify; 1156s # 1156s # 1156s # good_types_override_properties (gobject_class, 1); 1156s # 1156s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 1156s # skeleton_class->get_info = good_types_skeleton_dbus_interface_get_info; 1156s # skeleton_class->get_properties = good_types_skeleton_dbus_interface_get_properties; 1156s # skeleton_class->flush = good_types_skeleton_dbus_interface_flush; 1156s # skeleton_class->get_vtable = good_types_skeleton_dbus_interface_get_vtable; 1156s # 1156s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1156s # g_type_class_add_private (klass, sizeof (GoodTypesSkeletonPrivate)); 1156s # #endif 1156s # } 1156s # 1156s # static void 1156s # good_types_skeleton_iface_init (GoodTypesIface *iface) 1156s # { 1156s # iface->get_good_property_type = good_types_skeleton_get_good_property_type; 1156s # } 1156s # 1156s # /** 1156s # * good_types_skeleton_new: 1156s # * 1156s # * Creates a skeleton object for the D-Bus interface GoodTypes. 1156s # * 1156s # * Returns: (transfer full) (type GoodTypesSkeleton): The skeleton object. 1156s # */ 1156s # GoodTypes * 1156s # good_types_skeleton_new (void) 1156s # { 1156s # return GOOD_TYPES (g_object_new (TYPE_GOOD_TYPES_SKELETON, NULL)); 1156s # } 1156s # Error: 1156s ok 3 __main__.TestCodegen.test_empty_interface_body 1156s # gdbus-codegen: /usr/bin/gdbus-codegen 1156s # tmpdir: /tmp/tmpu_bvpie3 1156s # /tmp/tmpu_bvpie3/tmpsm15imib.xml: 1156s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpu_bvpie3/tmpsm15imib.xml', '--output', '-', '--body'] 1156s # Return code: 0 1156s # Output: 1156s # /* 1156s # * This file is generated by gdbus-codegen, do not modify it. 1156s # * 1156s # * The license of this code is the same as for the D-Bus interface description 1156s # * it was derived from. Note that it links to GLib, so must comply with the 1156s # * LGPL linking clauses. 1156s # */ 1156s # 1156s # #ifdef HAVE_CONFIG_H 1156s # # include "config.h" 1156s # #endif 1156s # 1156s # #include 1156s # #ifdef G_OS_UNIX 1156s # # include 1156s # #endif 1156s # 1156s # #ifdef G_ENABLE_DEBUG 1156s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 1156s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 1156s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 1156s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 1156s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 1156s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 1156s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 1156s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 1156s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 1156s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 1156s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 1156s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 1156s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 1156s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 1156s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 1156s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 1156s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 1156s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 1156s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 1156s # #else /* !G_ENABLE_DEBUG */ 1156s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 1156s # * Do not access GValues directly in your code. Instead, use the 1156s # * g_value_get_*() functions 1156s # */ 1156s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 1156s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 1156s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 1156s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 1156s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 1156s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 1156s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 1156s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 1156s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 1156s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 1156s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 1156s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 1156s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 1156s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 1156s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 1156s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 1156s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 1156s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 1156s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 1156s # #endif /* !G_ENABLE_DEBUG */ 1156s # 1156s # typedef struct 1156s # { 1156s # GDBusArgInfo parent_struct; 1156s # gboolean use_gvariant; 1156s # } _ExtendedGDBusArgInfo; 1156s # 1156s # typedef struct 1156s # { 1156s # GDBusMethodInfo parent_struct; 1156s # const gchar *signal_name; 1156s # gboolean pass_fdlist; 1156s # } _ExtendedGDBusMethodInfo; 1156s # 1156s # typedef struct 1156s # { 1156s # GDBusSignalInfo parent_struct; 1156s # const gchar *signal_name; 1156s # } _ExtendedGDBusSignalInfo; 1156s # 1156s # typedef struct 1156s # { 1156s # GDBusPropertyInfo parent_struct; 1156s # const gchar *hyphen_name; 1156s # guint use_gvariant : 1; 1156s # guint emits_changed_signal : 1; 1156s # } _ExtendedGDBusPropertyInfo; 1156s # 1156s # typedef struct 1156s # { 1156s # GDBusInterfaceInfo parent_struct; 1156s # const gchar *hyphen_name; 1156s # } _ExtendedGDBusInterfaceInfo; 1156s # 1156s # typedef struct 1156s # { 1156s # const _ExtendedGDBusPropertyInfo *info; 1156s # guint prop_id; 1156s # GValue orig_value; /* the value before the change */ 1156s # } ChangedProperty; 1156s # 1156s # static void 1156s # _changed_property_free (ChangedProperty *data) 1156s # { 1156s # g_value_unset (&data->orig_value); 1156s # g_free (data); 1156s # } 1156s # 1156s # static gboolean 1156s # _g_strv_equal0 (gchar **a, gchar **b) 1156s # { 1156s # gboolean ret = FALSE; 1156s # guint n; 1156s # if (a == NULL && b == NULL) 1156s # { 1156s # ret = TRUE; 1156s # goto out; 1156s # } 1156s # if (a == NULL || b == NULL) 1156s # goto out; 1156s # if (g_strv_length (a) != g_strv_length (b)) 1156s # goto out; 1156s # for (n = 0; a[n] != NULL; n++) 1156s # if (g_strcmp0 (a[n], b[n]) != 0) 1156s # goto out; 1156s # ret = TRUE; 1156s # out: 1156s # return ret; 1156s # } 1156s # 1156s # static gboolean 1156s # _g_variant_equal0 (GVariant *a, GVariant *b) 1156s # { 1156s # gboolean ret = FALSE; 1156s # if (a == NULL && b == NULL) 1156s # { 1156s # ret = TRUE; 1156s # goto out; 1156s # } 1156s # if (a == NULL || b == NULL) 1156s # goto out; 1156s # ret = g_variant_equal (a, b); 1156s # out: 1156s # return ret; 1156s # } 1156s # 1156s # G_GNUC_UNUSED static gboolean 1156s # _g_value_equal (const GValue *a, const GValue *b) 1156s # { 1156s # gboolean ret = FALSE; 1156s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 1156s # switch (G_VALUE_TYPE (a)) 1156s # { 1156s # case G_TYPE_BOOLEAN: 1156s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 1156s # break; 1156s # case G_TYPE_UCHAR: 1156s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 1156s # break; 1156s # case G_TYPE_INT: 1156s # ret = (g_value_get_int (a) == g_value_get_int (b)); 1156s # break; 1156s # case G_TYPE_UINT: 1156s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 1156s # break; 1156s # case G_TYPE_INT64: 1156s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 1156s # break; 1156s # case G_TYPE_UINT64: 1156s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 1156s # break; 1156s # case G_TYPE_DOUBLE: 1156s # { 1156s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 1156s # gdouble da = g_value_get_double (a); 1156s # gdouble db = g_value_get_double (b); 1156s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 1156s # } 1156s # break; 1156s # case G_TYPE_STRING: 1156s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 1156s # break; 1156s # case G_TYPE_VARIANT: 1156s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 1156s # break; 1156s # default: 1156s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 1156s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 1156s # else 1156s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 1156s # break; 1156s # } 1156s # return ret; 1156s # } 1156s # Error: 1156s ok 4 __main__.TestCodegen.test_empty_interface_header 1156s # gdbus-codegen: /usr/bin/gdbus-codegen 1156s # tmpdir: /tmp/tmpyxzw9i32 1156s # /tmp/tmpyxzw9i32/tmp84_qsucf.xml: 1156s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpyxzw9i32/tmp84_qsucf.xml', '--output', '-', '--header'] 1156s # Return code: 0 1156s # Output: 1156s # /* 1156s # * This file is generated by gdbus-codegen, do not modify it. 1156s # * 1156s # * The license of this code is the same as for the D-Bus interface description 1156s # * it was derived from. Note that it links to GLib, so must comply with the 1156s # * LGPL linking clauses. 1156s # */ 1156s # 1156s # #ifndef __STDOUT__ 1156s # #define __STDOUT__ 1156s # 1156s # #include 1156s # 1156s # G_BEGIN_DECLS 1156s # 1156s # 1156s # G_END_DECLS 1156s # 1156s # #endif /* __STDOUT__ */ 1156s # Error: 1156s ok 5 __main__.TestCodegen.test_empty_interface_info_body 1156s # gdbus-codegen: /usr/bin/gdbus-codegen 1156s # tmpdir: /tmp/tmp19n1b78t 1156s # /tmp/tmp19n1b78t/tmp8rwsjco7.xml: 1156s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmp19n1b78t/tmp8rwsjco7.xml', '--output', '-', '--interface-info-body'] 1156s # Return code: 0 1156s # Output: 1156s # /* 1156s # * This file is generated by gdbus-codegen, do not modify it. 1156s # * 1156s # * The license of this code is the same as for the D-Bus interface description 1156s # * it was derived from. Note that it links to GLib, so must comply with the 1156s # * LGPL linking clauses. 1156s # */ 1156s # 1156s # #ifdef HAVE_CONFIG_H 1156s # # include "config.h" 1156s # #endif 1156s # 1156s # #include 1156s # Error: 1156s ok 6 __main__.TestCodegen.test_empty_interface_info_header 1156s # gdbus-codegen: /usr/bin/gdbus-codegen 1156s # tmpdir: /tmp/tmpv1tb849d 1156s # /tmp/tmpv1tb849d/tmpzw_535mx.xml: 1156s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpv1tb849d/tmpzw_535mx.xml', '--output', '-', '--interface-info-header'] 1156s # Return code: 0 1156s # Output: 1156s # /* 1156s # * This file is generated by gdbus-codegen, do not modify it. 1156s # * 1156s # * The license of this code is the same as for the D-Bus interface description 1156s # * it was derived from. Note that it links to GLib, so must comply with the 1156s # * LGPL linking clauses. 1156s # */ 1156s # 1156s # #ifndef __STDOUT__ 1156s # #define __STDOUT__ 1156s # 1156s # #include 1156s # 1156s # G_BEGIN_DECLS 1156s # 1156s # 1156s # G_END_DECLS 1156s # 1156s # #endif /* __STDOUT__ */ 1156s # Error: 1156s ok 7 __main__.TestCodegen.test_generate_docbook 1156s # gdbus-codegen: /usr/bin/gdbus-codegen 1156s # tmpdir: /tmp/tmp5vh7jbru 1156s # /tmp/tmp5vh7jbru/tmpkwfbtk1y.xml: 1156s # 1156s # 1156s # 1156s # 1156s # 1156s # 1156s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmp5vh7jbru/tmpkwfbtk1y.xml', '--generate-docbook', 'test'] 1156s # Return code: 0 1156s # Output: 1156s # 1156s # Error: 1156s ok 8 __main__.TestCodegen.test_generate_md 1156s # gdbus-codegen: /usr/bin/gdbus-codegen 1156s # tmpdir: /tmp/tmpd6730o51 1156s # /tmp/tmpd6730o51/tmp2vmi6tqx.xml: 1156s # 1156s # 1156s # 1156s # 1156s # 1156s # 1156s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpd6730o51/tmp2vmi6tqx.xml', '--generate-md', 'test'] 1156s # Return code: 0 1156s # Output: 1156s # 1156s # Error: 1156s ok 9 __main__.TestCodegen.test_generate_methods_marshaller_simple_method 1156s # gdbus-codegen: /usr/bin/gdbus-codegen 1156s # tmpdir: /tmp/tmp22sp0ox5 1156s # /tmp/tmp22sp0ox5/tmp4a85vis_.xml: 1156s # 1156s # 1156s # 1156s # 1156s # 1156s # 1156s # 1156s # 1156s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmp22sp0ox5/tmp4a85vis_.xml', '--output', '-', '--body'] 1156s # Return code: 0 1156s # Output: 1156s # /* 1156s # * This file is generated by gdbus-codegen, do not modify it. 1156s # * 1156s # * The license of this code is the same as for the D-Bus interface description 1156s # * it was derived from. Note that it links to GLib, so must comply with the 1156s # * LGPL linking clauses. 1156s # */ 1156s # 1156s # #ifdef HAVE_CONFIG_H 1156s # # include "config.h" 1156s # #endif 1156s # 1156s # #include 1156s # #ifdef G_OS_UNIX 1156s # # include 1156s # #endif 1156s # 1156s # #ifdef G_ENABLE_DEBUG 1156s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 1156s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 1156s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 1156s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 1156s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 1156s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 1156s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 1156s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 1156s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 1156s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 1156s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 1156s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 1156s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 1156s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 1156s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 1156s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 1156s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 1156s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 1156s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 1156s # #else /* !G_ENABLE_DEBUG */ 1156s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 1156s # * Do not access GValues directly in your code. Instead, use the 1156s # * g_value_get_*() functions 1156s # */ 1156s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 1156s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 1156s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 1156s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 1156s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 1156s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 1156s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 1156s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 1156s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 1156s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 1156s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 1156s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 1156s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 1156s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 1156s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 1156s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 1156s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 1156s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 1156s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 1156s # #endif /* !G_ENABLE_DEBUG */ 1156s # 1156s # typedef struct 1156s # { 1156s # GDBusArgInfo parent_struct; 1156s # gboolean use_gvariant; 1156s # } _ExtendedGDBusArgInfo; 1156s # 1156s # typedef struct 1156s # { 1156s # GDBusMethodInfo parent_struct; 1156s # const gchar *signal_name; 1156s # gboolean pass_fdlist; 1156s # } _ExtendedGDBusMethodInfo; 1156s # 1156s # typedef struct 1156s # { 1156s # GDBusSignalInfo parent_struct; 1156s # const gchar *signal_name; 1156s # } _ExtendedGDBusSignalInfo; 1156s # 1156s # typedef struct 1156s # { 1156s # GDBusPropertyInfo parent_struct; 1156s # const gchar *hyphen_name; 1156s # guint use_gvariant : 1; 1156s # guint emits_changed_signal : 1; 1156s # } _ExtendedGDBusPropertyInfo; 1156s # 1156s # typedef struct 1156s # { 1156s # GDBusInterfaceInfo parent_struct; 1156s # const gchar *hyphen_name; 1156s # } _ExtendedGDBusInterfaceInfo; 1156s # 1156s # typedef struct 1156s # { 1156s # const _ExtendedGDBusPropertyInfo *info; 1156s # guint prop_id; 1156s # GValue orig_value; /* the value before the change */ 1156s # } ChangedProperty; 1156s # 1156s # static void 1156s # _changed_property_free (ChangedProperty *data) 1156s # { 1156s # g_value_unset (&data->orig_value); 1156s # g_free (data); 1156s # } 1156s # 1156s # static gboolean 1156s # _g_strv_equal0 (gchar **a, gchar **b) 1156s # { 1156s # gboolean ret = FALSE; 1156s # guint n; 1156s # if (a == NULL && b == NULL) 1156s # { 1156s # ret = TRUE; 1156s # goto out; 1156s # } 1156s # if (a == NULL || b == NULL) 1156s # goto out; 1156s # if (g_strv_length (a) != g_strv_length (b)) 1156s # goto out; 1156s # for (n = 0; a[n] != NULL; n++) 1156s # if (g_strcmp0 (a[n], b[n]) != 0) 1156s # goto out; 1156s # ret = TRUE; 1156s # out: 1156s # return ret; 1156s # } 1156s # 1156s # static gboolean 1156s # _g_variant_equal0 (GVariant *a, GVariant *b) 1156s # { 1156s # gboolean ret = FALSE; 1156s # if (a == NULL && b == NULL) 1156s # { 1156s # ret = TRUE; 1156s # goto out; 1156s # } 1156s # if (a == NULL || b == NULL) 1156s # goto out; 1156s # ret = g_variant_equal (a, b); 1156s # out: 1156s # return ret; 1156s # } 1156s # 1156s # G_GNUC_UNUSED static gboolean 1156s # _g_value_equal (const GValue *a, const GValue *b) 1156s # { 1156s # gboolean ret = FALSE; 1156s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 1156s # switch (G_VALUE_TYPE (a)) 1156s # { 1156s # case G_TYPE_BOOLEAN: 1156s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 1156s # break; 1156s # case G_TYPE_UCHAR: 1156s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 1156s # break; 1156s # case G_TYPE_INT: 1156s # ret = (g_value_get_int (a) == g_value_get_int (b)); 1156s # break; 1156s # case G_TYPE_UINT: 1156s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 1156s # break; 1156s # case G_TYPE_INT64: 1156s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 1156s # break; 1156s # case G_TYPE_UINT64: 1156s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 1156s # break; 1156s # case G_TYPE_DOUBLE: 1156s # { 1156s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 1156s # gdouble da = g_value_get_double (a); 1156s # gdouble db = g_value_get_double (b); 1156s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 1156s # } 1156s # break; 1156s # case G_TYPE_STRING: 1156s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 1156s # break; 1156s # case G_TYPE_VARIANT: 1156s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 1156s # break; 1156s # default: 1156s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 1156s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 1156s # else 1156s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 1156s # break; 1156s # } 1156s # return ret; 1156s # } 1156s # 1156s # static void 1156s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT ( 1156s # GClosure *closure, 1156s # GValue *return_value, 1156s # unsigned int n_param_values, 1156s # const GValue *param_values, 1156s # void *invocation_hint G_GNUC_UNUSED, 1156s # void *marshal_data) 1156s # { 1156s # typedef gboolean (*_GDbusCodegenMarshalBoolean_ObjectFunc) 1156s # (void *data1, 1156s # GDBusMethodInvocation *arg_method_invocation, 1156s # void *data2); 1156s # _GDbusCodegenMarshalBoolean_ObjectFunc callback; 1156s # GCClosure *cc = (GCClosure*) closure; 1156s # void *data1, *data2; 1156s # gboolean v_return; 1156s # 1156s # g_return_if_fail (return_value != NULL); 1156s # g_return_if_fail (n_param_values == 2); 1156s # 1156s # if (G_CCLOSURE_SWAP_DATA (closure)) 1156s # { 1156s # data1 = closure->data; 1156s # data2 = g_value_peek_pointer (param_values + 0); 1156s # } 1156s # else 1156s # { 1156s # data1 = g_value_peek_pointer (param_values + 0); 1156s # data2 = closure->data; 1156s # } 1156s # 1156s # callback = (_GDbusCodegenMarshalBoolean_ObjectFunc) 1156s # (marshal_data ? marshal_data : cc->callback); 1156s # 1156s # v_return = 1156s # callback (data1, 1156s # g_marshal_value_peek_object (param_values + 1), 1156s # data2); 1156s # 1156s # g_value_set_boolean (return_value, v_return); 1156s # } 1156s # 1156s # /* ------------------------------------------------------------------------ 1156s # * Code for interface org.project.CallableIface 1156s # * ------------------------------------------------------------------------ 1156s # */ 1156s # 1156s # /** 1156s # * SECTION:OrgProjectCallableIface 1156s # * @title: OrgProjectCallableIface 1156s # * @short_description: Generated C code for the org.project.CallableIface D-Bus interface 1156s # * 1156s # * This section contains code for working with the org.project.CallableIface D-Bus interface in C. 1156s # */ 1156s # 1156s # /* ---- Introspection data for org.project.CallableIface ---- */ 1156s # 1156s # static const _ExtendedGDBusMethodInfo _org_project_callable_iface_method_info_simple_method = 1156s # { 1156s # { 1156s # -1, 1156s # (gchar *) "SimpleMethod", 1156s # NULL, 1156s # NULL, 1156s # NULL 1156s # }, 1156s # "handle-simple-method", 1156s # FALSE 1156s # }; 1156s # 1156s # static const GDBusMethodInfo * const _org_project_callable_iface_method_info_pointers[] = 1156s # { 1156s # &_org_project_callable_iface_method_info_simple_method.parent_struct, 1156s # NULL 1156s # }; 1156s # 1156s # static const _ExtendedGDBusInterfaceInfo _org_project_callable_iface_interface_info = 1156s # { 1156s # { 1156s # -1, 1156s # (gchar *) "org.project.CallableIface", 1156s # (GDBusMethodInfo **) &_org_project_callable_iface_method_info_pointers, 1156s # NULL, 1156s # NULL, 1156s # NULL 1156s # }, 1156s # "org-project-callable-iface", 1156s # }; 1156s # 1156s # 1156s # /** 1156s # * org_project_callable_iface_interface_info: 1156s # * 1156s # * Gets a machine-readable description of the org.project.CallableIface D-Bus interface. 1156s # * 1156s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 1156s # */ 1156s # GDBusInterfaceInfo * 1156s # org_project_callable_iface_interface_info (void) 1156s # { 1156s # return (GDBusInterfaceInfo *) &_org_project_callable_iface_interface_info.parent_struct; 1156s # } 1156s # 1156s # /** 1156s # * org_project_callable_iface_override_properties: 1156s # * @klass: The class structure for a #GObject derived class. 1156s # * @property_id_begin: The property id to assign to the first overridden property. 1156s # * 1156s # * Overrides all #GObject properties in the #OrgProjectCallableIface interface for a concrete class. 1156s # * The properties are overridden in the order they are defined. 1156s # * 1156s # * Returns: The last property id. 1156s # */ 1156s # guint 1156s # org_project_callable_iface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 1156s # { 1156s # return property_id_begin - 1; 1156s # } 1156s # 1156s # 1156s # inline static void 1156s # org_project_callable_iface_method_marshal_simple_method ( 1156s # GClosure *closure, 1156s # GValue *return_value, 1156s # unsigned int n_param_values, 1156s # const GValue *param_values, 1156s # void *invocation_hint, 1156s # void *marshal_data) 1156s # { 1156s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT (closure, 1156s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1156s # } 1156s # 1156s # 1156s # /** 1156s # * OrgProjectCallableIface: 1156s # * 1156s # * Abstract interface type for the D-Bus interface org.project.CallableIface. 1156s # */ 1156s # 1156s # /** 1156s # * OrgProjectCallableIfaceIface: 1156s # * @parent_iface: The parent interface. 1156s # * @handle_simple_method: Handler for the #OrgProjectCallableIface::handle-simple-method signal. 1156s # * 1156s # * Virtual table for the D-Bus interface org.project.CallableIface. 1156s # */ 1156s # 1156s # typedef OrgProjectCallableIfaceIface OrgProjectCallableIfaceInterface; 1156s # G_DEFINE_INTERFACE (OrgProjectCallableIface, org_project_callable_iface, G_TYPE_OBJECT) 1156s # 1156s # static void 1156s # org_project_callable_iface_default_init (OrgProjectCallableIfaceIface *iface) 1156s # { 1156s # /* GObject signals for incoming D-Bus method calls: */ 1156s # /** 1156s # * OrgProjectCallableIface::handle-simple-method: 1156s # * @object: A #OrgProjectCallableIface. 1156s # * @invocation: A #GDBusMethodInvocation. 1156s # * 1156s # * Signal emitted when a remote caller is invoking the SimpleMethod() D-Bus method. 1156s # * 1156s # * 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. 1156s # * 1156s # * 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. 1156s # */ 1156s # g_signal_new ("handle-simple-method", 1156s # G_TYPE_FROM_INTERFACE (iface), 1156s # G_SIGNAL_RUN_LAST, 1156s # G_STRUCT_OFFSET (OrgProjectCallableIfaceIface, handle_simple_method), 1156s # g_signal_accumulator_true_handled, 1156s # NULL, 1156s # org_project_callable_iface_method_marshal_simple_method, 1156s # G_TYPE_BOOLEAN, 1156s # 1, 1156s # G_TYPE_DBUS_METHOD_INVOCATION); 1156s # 1156s # } 1156s # 1156s # /** 1156s # * org_project_callable_iface_call_simple_method: 1156s # * @proxy: A #OrgProjectCallableIfaceProxy. 1156s # * @cancellable: (nullable): A #GCancellable or %NULL. 1156s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL. 1156s # * @user_data: User data to pass to @callback. 1156s # * 1156s # * Asynchronously invokes the SimpleMethod() D-Bus method on @proxy. 1156s # * 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()). 1156s # * You can then call org_project_callable_iface_call_simple_method_finish() to get the result of the operation. 1156s # * 1156s # * See org_project_callable_iface_call_simple_method_sync() for the synchronous, blocking version of this method. 1156s # */ 1156s # void 1156s # org_project_callable_iface_call_simple_method ( 1156s # OrgProjectCallableIface *proxy, 1156s # GCancellable *cancellable, 1156s # GAsyncReadyCallback callback, 1156s # gpointer user_data) 1156s # { 1156s # g_dbus_proxy_call (G_DBUS_PROXY (proxy), 1156s # "SimpleMethod", 1156s # g_variant_new ("()"), 1156s # G_DBUS_CALL_FLAGS_NONE, 1156s # -1, 1156s # cancellable, 1156s # callback, 1156s # user_data); 1156s # } 1156s # 1156s # /** 1156s # * org_project_callable_iface_call_simple_method_finish: 1156s # * @proxy: A #OrgProjectCallableIfaceProxy. 1156s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_callable_iface_call_simple_method(). 1156s # * @error: Return location for error or %NULL. 1156s # * 1156s # * Finishes an operation started with org_project_callable_iface_call_simple_method(). 1156s # * 1156s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1156s # */ 1156s # gboolean 1156s # org_project_callable_iface_call_simple_method_finish ( 1156s # OrgProjectCallableIface *proxy, 1156s # GAsyncResult *res, 1156s # GError **error) 1156s # { 1156s # GVariant *_ret; 1156s # _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error); 1156s # if (_ret == NULL) 1156s # goto _out; 1156s # g_variant_get (_ret, 1156s # "()"); 1156s # g_variant_unref (_ret); 1156s # _out: 1156s # return _ret != NULL; 1156s # } 1156s # 1156s # /** 1156s # * org_project_callable_iface_call_simple_method_sync: 1156s # * @proxy: A #OrgProjectCallableIfaceProxy. 1156s # * @cancellable: (nullable): A #GCancellable or %NULL. 1156s # * @error: Return location for error or %NULL. 1156s # * 1156s # * Synchronously invokes the SimpleMethod() D-Bus method on @proxy. The calling thread is blocked until a reply is received. 1156s # * 1156s # * See org_project_callable_iface_call_simple_method() for the asynchronous version of this method. 1156s # * 1156s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1156s # */ 1156s # gboolean 1156s # org_project_callable_iface_call_simple_method_sync ( 1156s # OrgProjectCallableIface *proxy, 1156s # GCancellable *cancellable, 1156s # GError **error) 1156s # { 1156s # GVariant *_ret; 1156s # _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy), 1156s # "SimpleMethod", 1156s # g_variant_new ("()"), 1156s # G_DBUS_CALL_FLAGS_NONE, 1156s # -1, 1156s # cancellable, 1156s # error); 1156s # if (_ret == NULL) 1156s # goto _out; 1156s # g_variant_get (_ret, 1156s # "()"); 1156s # g_variant_unref (_ret); 1156s # _out: 1156s # return _ret != NULL; 1156s # } 1156s # 1156s # /** 1156s # * org_project_callable_iface_complete_simple_method: 1156s # * @object: A #OrgProjectCallableIface. 1156s # * @invocation: (transfer full): A #GDBusMethodInvocation. 1156s # * 1156s # * 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. 1156s # * 1156s # * This method will free @invocation, you cannot use it afterwards. 1156s # */ 1156s # void 1156s # org_project_callable_iface_complete_simple_method ( 1156s # OrgProjectCallableIface *object G_GNUC_UNUSED, 1156s # GDBusMethodInvocation *invocation) 1156s # { 1156s # g_dbus_method_invocation_return_value (invocation, 1156s # g_variant_new ("()")); 1156s # } 1156s # 1156s # /* ------------------------------------------------------------------------ */ 1156s # 1156s # /** 1156s # * OrgProjectCallableIfaceProxy: 1156s # * 1156s # * The #OrgProjectCallableIfaceProxy structure contains only private data and should only be accessed using the provided API. 1156s # */ 1156s # 1156s # /** 1156s # * OrgProjectCallableIfaceProxyClass: 1156s # * @parent_class: The parent class. 1156s # * 1156s # * Class structure for #OrgProjectCallableIfaceProxy. 1156s # */ 1156s # 1156s # struct _OrgProjectCallableIfaceProxyPrivate 1156s # { 1156s # GData *qdata; 1156s # }; 1156s # 1156s # static void org_project_callable_iface_proxy_iface_init (OrgProjectCallableIfaceIface *iface); 1156s # 1156s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1156s # G_DEFINE_TYPE_WITH_CODE (OrgProjectCallableIfaceProxy, org_project_callable_iface_proxy, G_TYPE_DBUS_PROXY, 1156s # G_ADD_PRIVATE (OrgProjectCallableIfaceProxy) 1156s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_CALLABLE_IFACE, org_project_callable_iface_proxy_iface_init)) 1156s # 1156s # #else 1156s # G_DEFINE_TYPE_WITH_CODE (OrgProjectCallableIfaceProxy, org_project_callable_iface_proxy, G_TYPE_DBUS_PROXY, 1156s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_CALLABLE_IFACE, org_project_callable_iface_proxy_iface_init)) 1156s # 1156s # #endif 1156s # static void 1156s # org_project_callable_iface_proxy_finalize (GObject *object) 1156s # { 1156s # OrgProjectCallableIfaceProxy *proxy = ORG_PROJECT_CALLABLE_IFACE_PROXY (object); 1156s # g_datalist_clear (&proxy->priv->qdata); 1156s # G_OBJECT_CLASS (org_project_callable_iface_proxy_parent_class)->finalize (object); 1156s # } 1156s # 1156s # static void 1156s # org_project_callable_iface_proxy_get_property (GObject *object G_GNUC_UNUSED, 1156s # guint prop_id G_GNUC_UNUSED, 1156s # GValue *value G_GNUC_UNUSED, 1156s # GParamSpec *pspec G_GNUC_UNUSED) 1156s # { 1156s # } 1156s # 1156s # static void 1156s # org_project_callable_iface_proxy_set_property (GObject *object G_GNUC_UNUSED, 1156s # guint prop_id G_GNUC_UNUSED, 1156s # const GValue *value G_GNUC_UNUSED, 1156s # GParamSpec *pspec G_GNUC_UNUSED) 1156s # { 1156s # } 1156s # 1156s # static void 1156s # org_project_callable_iface_proxy_g_signal (GDBusProxy *proxy, 1156s # const gchar *sender_name G_GNUC_UNUSED, 1156s # const gchar *signal_name, 1156s # GVariant *parameters) 1156s # { 1156s # _ExtendedGDBusSignalInfo *info; 1156s # GVariantIter iter; 1156s # GVariant *child; 1156s # GValue *paramv; 1156s # gsize num_params; 1156s # gsize n; 1156s # guint signal_id; 1156s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_callable_iface_interface_info.parent_struct, signal_name); 1156s # if (info == NULL) 1156s # return; 1156s # num_params = g_variant_n_children (parameters); 1156s # paramv = g_new0 (GValue, num_params + 1); 1156s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_CALLABLE_IFACE); 1156s # g_value_set_object (¶mv[0], proxy); 1156s # g_variant_iter_init (&iter, parameters); 1156s # n = 1; 1156s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1156s # { 1156s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 1156s # if (arg_info->use_gvariant) 1156s # { 1156s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1156s # g_value_set_variant (¶mv[n], child); 1156s # n++; 1156s # } 1156s # else 1156s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1156s # g_variant_unref (child); 1156s # } 1156s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_CALLABLE_IFACE); 1156s # g_signal_emitv (paramv, signal_id, 0, NULL); 1156s # for (n = 0; n < num_params + 1; n++) 1156s # g_value_unset (¶mv[n]); 1156s # g_free (paramv); 1156s # } 1156s # 1156s # static void 1156s # org_project_callable_iface_proxy_g_properties_changed (GDBusProxy *_proxy, 1156s # GVariant *changed_properties, 1156s # const gchar *const *invalidated_properties) 1156s # { 1156s # OrgProjectCallableIfaceProxy *proxy = ORG_PROJECT_CALLABLE_IFACE_PROXY (_proxy); 1156s # guint n; 1156s # const gchar *key; 1156s # GVariantIter *iter; 1156s # _ExtendedGDBusPropertyInfo *info; 1156s # g_variant_get (changed_properties, "a{sv}", &iter); 1156s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 1156s # { 1156s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_callable_iface_interface_info.parent_struct, key); 1156s # g_datalist_remove_data (&proxy->priv->qdata, key); 1156s # if (info != NULL) 1156s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1156s # } 1156s # g_variant_iter_free (iter); 1156s # for (n = 0; invalidated_properties[n] != NULL; n++) 1156s # { 1156s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_callable_iface_interface_info.parent_struct, invalidated_properties[n]); 1156s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 1156s # if (info != NULL) 1156s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1156s # } 1156s # } 1156s # 1156s # static void 1156s # org_project_callable_iface_proxy_init (OrgProjectCallableIfaceProxy *proxy) 1156s # { 1156s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1156s # proxy->priv = org_project_callable_iface_proxy_get_instance_private (proxy); 1156s # #else 1156s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_CALLABLE_IFACE_PROXY, OrgProjectCallableIfaceProxyPrivate); 1156s # #endif 1156s # 1156s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_callable_iface_interface_info ()); 1156s # } 1156s # 1156s # static void 1156s # org_project_callable_iface_proxy_class_init (OrgProjectCallableIfaceProxyClass *klass) 1156s # { 1156s # GObjectClass *gobject_class; 1156s # GDBusProxyClass *proxy_class; 1156s # 1156s # gobject_class = G_OBJECT_CLASS (klass); 1156s # gobject_class->finalize = org_project_callable_iface_proxy_finalize; 1156s # gobject_class->get_property = org_project_callable_iface_proxy_get_property; 1156s # gobject_class->set_property = org_project_callable_iface_proxy_set_property; 1156s # 1156s # proxy_class = G_DBUS_PROXY_CLASS (klass); 1156s # proxy_class->g_signal = org_project_callable_iface_proxy_g_signal; 1156s # proxy_class->g_properties_changed = org_project_callable_iface_proxy_g_properties_changed; 1156s # 1156s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1156s # g_type_class_add_private (klass, sizeof (OrgProjectCallableIfaceProxyPrivate)); 1156s # #endif 1156s # } 1156s # 1156s # static void 1156s # org_project_callable_iface_proxy_iface_init (OrgProjectCallableIfaceIface *iface G_GNUC_UNUSED) 1156s # { 1156s # } 1156s # 1156s # /** 1156s # * org_project_callable_iface_proxy_new: 1156s # * @connection: A #GDBusConnection. 1156s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1156s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1156s # * @object_path: An object path. 1156s # * @cancellable: (nullable): A #GCancellable or %NULL. 1156s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1156s # * @user_data: User data to pass to @callback. 1156s # * 1156s # * Asynchronously creates a proxy for the D-Bus interface org.project.CallableIface. See g_dbus_proxy_new() for more details. 1156s # * 1156s # * 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()). 1156s # * You can then call org_project_callable_iface_proxy_new_finish() to get the result of the operation. 1156s # * 1156s # * See org_project_callable_iface_proxy_new_sync() for the synchronous, blocking version of this constructor. 1156s # */ 1156s # void 1156s # org_project_callable_iface_proxy_new ( 1156s # GDBusConnection *connection, 1156s # GDBusProxyFlags flags, 1156s # const gchar *name, 1156s # const gchar *object_path, 1156s # GCancellable *cancellable, 1156s # GAsyncReadyCallback callback, 1156s # gpointer user_data) 1156s # { 1156s # 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); 1156s # } 1156s # 1156s # /** 1156s # * org_project_callable_iface_proxy_new_finish: 1156s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_callable_iface_proxy_new(). 1156s # * @error: Return location for error or %NULL 1156s # * 1156s # * Finishes an operation started with org_project_callable_iface_proxy_new(). 1156s # * 1156s # * Returns: (transfer full) (type OrgProjectCallableIfaceProxy): The constructed proxy object or %NULL if @error is set. 1156s # */ 1156s # OrgProjectCallableIface * 1156s # org_project_callable_iface_proxy_new_finish ( 1156s # GAsyncResult *res, 1156s # GError **error) 1156s # { 1156s # GObject *ret; 1156s # GObject *source_object; 1156s # source_object = g_async_result_get_source_object (res); 1156s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1156s # g_object_unref (source_object); 1156s # if (ret != NULL) 1156s # return ORG_PROJECT_CALLABLE_IFACE (ret); 1156s # else 1156s # return NULL; 1156s # } 1156s # 1156s # /** 1156s # * org_project_callable_iface_proxy_new_sync: 1156s # * @connection: A #GDBusConnection. 1156s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1156s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1156s # * @object_path: An object path. 1156s # * @cancellable: (nullable): A #GCancellable or %NULL. 1156s # * @error: Return location for error or %NULL 1156s # * 1156s # * Synchronously creates a proxy for the D-Bus interface org.project.CallableIface. See g_dbus_proxy_new_sync() for more details. 1156s # * 1156s # * The calling thread is blocked until a reply is received. 1156s # * 1156s # * See org_project_callable_iface_proxy_new() for the asynchronous version of this constructor. 1156s # * 1156s # * Returns: (transfer full) (type OrgProjectCallableIfaceProxy): The constructed proxy object or %NULL if @error is set. 1156s # */ 1156s # OrgProjectCallableIface * 1156s # org_project_callable_iface_proxy_new_sync ( 1156s # GDBusConnection *connection, 1156s # GDBusProxyFlags flags, 1156s # const gchar *name, 1156s # const gchar *object_path, 1156s # GCancellable *cancellable, 1156s # GError **error) 1156s # { 1156s # GInitable *ret; 1156s # 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); 1156s # if (ret != NULL) 1156s # return ORG_PROJECT_CALLABLE_IFACE (ret); 1156s # else 1156s # return NULL; 1156s # } 1156s # 1156s # 1156s # /** 1156s # * org_project_callable_iface_proxy_new_for_bus: 1156s # * @bus_type: A #GBusType. 1156s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1156s # * @name: A bus name (well-known or unique). 1156s # * @object_path: An object path. 1156s # * @cancellable: (nullable): A #GCancellable or %NULL. 1156s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1156s # * @user_data: User data to pass to @callback. 1156s # * 1156s # * Like org_project_callable_iface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 1156s # * 1156s # * 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()). 1156s # * You can then call org_project_callable_iface_proxy_new_for_bus_finish() to get the result of the operation. 1156s # * 1156s # * See org_project_callable_iface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 1156s # */ 1156s # void 1156s # org_project_callable_iface_proxy_new_for_bus ( 1156s # GBusType bus_type, 1156s # GDBusProxyFlags flags, 1156s # const gchar *name, 1156s # const gchar *object_path, 1156s # GCancellable *cancellable, 1156s # GAsyncReadyCallback callback, 1156s # gpointer user_data) 1156s # { 1156s # 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); 1156s # } 1156s # 1156s # /** 1156s # * org_project_callable_iface_proxy_new_for_bus_finish: 1156s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_callable_iface_proxy_new_for_bus(). 1156s # * @error: Return location for error or %NULL 1156s # * 1156s # * Finishes an operation started with org_project_callable_iface_proxy_new_for_bus(). 1156s # * 1156s # * Returns: (transfer full) (type OrgProjectCallableIfaceProxy): The constructed proxy object or %NULL if @error is set. 1156s # */ 1156s # OrgProjectCallableIface * 1156s # org_project_callable_iface_proxy_new_for_bus_finish ( 1156s # GAsyncResult *res, 1156s # GError **error) 1156s # { 1156s # GObject *ret; 1156s # GObject *source_object; 1156s # source_object = g_async_result_get_source_object (res); 1156s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1156s # g_object_unref (source_object); 1156s # if (ret != NULL) 1156s # return ORG_PROJECT_CALLABLE_IFACE (ret); 1156s # else 1156s # return NULL; 1156s # } 1156s # 1156s # /** 1156s # * org_project_callable_iface_proxy_new_for_bus_sync: 1156s # * @bus_type: A #GBusType. 1156s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1156s # * @name: A bus name (well-known or unique). 1156s # * @object_path: An object path. 1156s # * @cancellable: (nullable): A #GCancellable or %NULL. 1156s # * @error: Return location for error or %NULL 1156s # * 1156s # * Like org_project_callable_iface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 1156s # * 1156s # * The calling thread is blocked until a reply is received. 1156s # * 1156s # * See org_project_callable_iface_proxy_new_for_bus() for the asynchronous version of this constructor. 1156s # * 1156s # * Returns: (transfer full) (type OrgProjectCallableIfaceProxy): The constructed proxy object or %NULL if @error is set. 1156s # */ 1156s # OrgProjectCallableIface * 1156s # org_project_callable_iface_proxy_new_for_bus_sync ( 1156s # GBusType bus_type, 1156s # GDBusProxyFlags flags, 1156s # const gchar *name, 1156s # const gchar *object_path, 1156s # GCancellable *cancellable, 1156s # GError **error) 1156s # { 1156s # GInitable *ret; 1156s # 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); 1156s # if (ret != NULL) 1156s # return ORG_PROJECT_CALLABLE_IFACE (ret); 1156s # else 1156s # return NULL; 1156s # } 1156s # 1156s # 1156s # /* ------------------------------------------------------------------------ */ 1156s # 1156s # /** 1156s # * OrgProjectCallableIfaceSkeleton: 1156s # * 1156s # * The #OrgProjectCallableIfaceSkeleton structure contains only private data and should only be accessed using the provided API. 1156s # */ 1156s # 1156s # /** 1156s # * OrgProjectCallableIfaceSkeletonClass: 1156s # * @parent_class: The parent class. 1156s # * 1156s # * Class structure for #OrgProjectCallableIfaceSkeleton. 1156s # */ 1156s # 1156s # struct _OrgProjectCallableIfaceSkeletonPrivate 1156s # { 1156s # GValue *properties; 1156s # GList *changed_properties; 1156s # GSource *changed_properties_idle_source; 1156s # GMainContext *context; 1156s # GMutex lock; 1156s # }; 1156s # 1156s # static void 1156s # _org_project_callable_iface_skeleton_handle_method_call ( 1156s # GDBusConnection *connection G_GNUC_UNUSED, 1156s # const gchar *sender G_GNUC_UNUSED, 1156s # const gchar *object_path G_GNUC_UNUSED, 1156s # const gchar *interface_name, 1156s # const gchar *method_name, 1156s # GVariant *parameters, 1156s # GDBusMethodInvocation *invocation, 1156s # gpointer user_data) 1156s # { 1156s # OrgProjectCallableIfaceSkeleton *skeleton = ORG_PROJECT_CALLABLE_IFACE_SKELETON (user_data); 1156s # _ExtendedGDBusMethodInfo *info; 1156s # GVariantIter iter; 1156s # GVariant *child; 1156s # GValue *paramv; 1156s # gsize num_params; 1156s # guint num_extra; 1156s # gsize n; 1156s # guint signal_id; 1156s # GValue return_value = G_VALUE_INIT; 1156s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 1156s # g_assert (info != NULL); 1156s # num_params = g_variant_n_children (parameters); 1156s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 1156s # n = 0; 1156s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_CALLABLE_IFACE); 1156s # g_value_set_object (¶mv[n++], skeleton); 1156s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 1156s # g_value_set_object (¶mv[n++], invocation); 1156s # if (info->pass_fdlist) 1156s # { 1156s # #ifdef G_OS_UNIX 1156s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 1156s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 1156s # #else 1156s # g_assert_not_reached (); 1156s # #endif 1156s # } 1156s # g_variant_iter_init (&iter, parameters); 1156s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1156s # { 1156s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 1156s # if (arg_info->use_gvariant) 1156s # { 1156s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1156s # g_value_set_variant (¶mv[n], child); 1156s # n++; 1156s # } 1156s # else 1156s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1156s # g_variant_unref (child); 1156s # } 1156s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_CALLABLE_IFACE); 1156s # g_value_init (&return_value, G_TYPE_BOOLEAN); 1156s # g_signal_emitv (paramv, signal_id, 0, &return_value); 1156s # if (!g_value_get_boolean (&return_value)) 1156s # 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); 1156s # g_value_unset (&return_value); 1156s # for (n = 0; n < num_params + num_extra; n++) 1156s # g_value_unset (¶mv[n]); 1156s # g_free (paramv); 1156s # } 1156s # 1156s # static GVariant * 1156s # _org_project_callable_iface_skeleton_handle_get_property ( 1156s # GDBusConnection *connection G_GNUC_UNUSED, 1156s # const gchar *sender G_GNUC_UNUSED, 1156s # const gchar *object_path G_GNUC_UNUSED, 1156s # const gchar *interface_name G_GNUC_UNUSED, 1156s # const gchar *property_name, 1156s # GError **error, 1156s # gpointer user_data) 1156s # { 1156s # OrgProjectCallableIfaceSkeleton *skeleton = ORG_PROJECT_CALLABLE_IFACE_SKELETON (user_data); 1156s # GValue value = G_VALUE_INIT; 1156s # GParamSpec *pspec; 1156s # _ExtendedGDBusPropertyInfo *info; 1156s # GVariant *ret; 1156s # ret = NULL; 1156s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_callable_iface_interface_info.parent_struct, property_name); 1156s # g_assert (info != NULL); 1156s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1156s # if (pspec == NULL) 1156s # { 1156s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1156s # } 1156s # else 1156s # { 1156s # g_value_init (&value, pspec->value_type); 1156s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1156s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 1156s # g_value_unset (&value); 1156s # } 1156s # return ret; 1156s # } 1156s # 1156s # static gboolean 1156s # _org_project_callable_iface_skeleton_handle_set_property ( 1156s # GDBusConnection *connection G_GNUC_UNUSED, 1156s # const gchar *sender G_GNUC_UNUSED, 1156s # const gchar *object_path G_GNUC_UNUSED, 1156s # const gchar *interface_name G_GNUC_UNUSED, 1156s # const gchar *property_name, 1156s # GVariant *variant, 1156s # GError **error, 1156s # gpointer user_data) 1156s # { 1156s # OrgProjectCallableIfaceSkeleton *skeleton = ORG_PROJECT_CALLABLE_IFACE_SKELETON (user_data); 1156s # GValue value = G_VALUE_INIT; 1156s # GParamSpec *pspec; 1156s # _ExtendedGDBusPropertyInfo *info; 1156s # gboolean ret; 1156s # ret = FALSE; 1156s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_callable_iface_interface_info.parent_struct, property_name); 1156s # g_assert (info != NULL); 1156s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1156s # if (pspec == NULL) 1156s # { 1156s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1156s # } 1156s # else 1156s # { 1156s # if (info->use_gvariant) 1156s # g_value_set_variant (&value, variant); 1156s # else 1156s # g_dbus_gvariant_to_gvalue (variant, &value); 1156s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1156s # g_value_unset (&value); 1156s # ret = TRUE; 1156s # } 1156s # return ret; 1156s # } 1156s # 1156s # static const GDBusInterfaceVTable _org_project_callable_iface_skeleton_vtable = 1156s # { 1156s # _org_project_callable_iface_skeleton_handle_method_call, 1156s # _org_project_callable_iface_skeleton_handle_get_property, 1156s # _org_project_callable_iface_skeleton_handle_set_property, 1156s # {NULL} 1156s # }; 1156s # 1156s # static GDBusInterfaceInfo * 1156s # org_project_callable_iface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1156s # { 1156s # return org_project_callable_iface_interface_info (); 1156s # } 1156s # 1156s # static GDBusInterfaceVTable * 1156s # org_project_callable_iface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1156s # { 1156s # return (GDBusInterfaceVTable *) &_org_project_callable_iface_skeleton_vtable; 1156s # } 1156s # 1156s # static GVariant * 1156s # org_project_callable_iface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 1156s # { 1156s # OrgProjectCallableIfaceSkeleton *skeleton = ORG_PROJECT_CALLABLE_IFACE_SKELETON (_skeleton); 1156s # 1156s # GVariantBuilder builder; 1156s # guint n; 1156s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 1156s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 1156s # #else 1156s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 1156s # #endif 1156s # if (_org_project_callable_iface_interface_info.parent_struct.properties == NULL) 1156s # goto out; 1156s # for (n = 0; _org_project_callable_iface_interface_info.parent_struct.properties[n] != NULL; n++) 1156s # { 1156s # GDBusPropertyInfo *info = _org_project_callable_iface_interface_info.parent_struct.properties[n]; 1156s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 1156s # { 1156s # GVariant *value; 1156s # 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); 1156s # if (value != NULL) 1156s # { 1156s # g_variant_take_ref (value); 1156s # g_variant_builder_add (&builder, "{sv}", info->name, value); 1156s # g_variant_unref (value); 1156s # } 1156s # } 1156s # } 1156s # out: 1156s # return g_variant_builder_end (&builder); 1156s # } 1156s # 1156s # static void 1156s # org_project_callable_iface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 1156s # { 1156s # } 1156s # 1156s # static void org_project_callable_iface_skeleton_iface_init (OrgProjectCallableIfaceIface *iface); 1156s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1156s # G_DEFINE_TYPE_WITH_CODE (OrgProjectCallableIfaceSkeleton, org_project_callable_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1156s # G_ADD_PRIVATE (OrgProjectCallableIfaceSkeleton) 1156s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_CALLABLE_IFACE, org_project_callable_iface_skeleton_iface_init)) 1156s # 1156s # #else 1156s # G_DEFINE_TYPE_WITH_CODE (OrgProjectCallableIfaceSkeleton, org_project_callable_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1156s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_CALLABLE_IFACE, org_project_callable_iface_skeleton_iface_init)) 1156s # 1156s # #endif 1156s # static void 1156s # org_project_callable_iface_skeleton_finalize (GObject *object) 1156s # { 1156s # OrgProjectCallableIfaceSkeleton *skeleton = ORG_PROJECT_CALLABLE_IFACE_SKELETON (object); 1156s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 1156s # if (skeleton->priv->changed_properties_idle_source != NULL) 1156s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 1156s # g_main_context_unref (skeleton->priv->context); 1156s # g_mutex_clear (&skeleton->priv->lock); 1156s # G_OBJECT_CLASS (org_project_callable_iface_skeleton_parent_class)->finalize (object); 1156s # } 1156s # 1156s # static void 1156s # org_project_callable_iface_skeleton_init (OrgProjectCallableIfaceSkeleton *skeleton) 1156s # { 1156s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1156s # skeleton->priv = org_project_callable_iface_skeleton_get_instance_private (skeleton); 1156s # #else 1156s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_CALLABLE_IFACE_SKELETON, OrgProjectCallableIfaceSkeletonPrivate); 1156s # #endif 1156s # 1156s # g_mutex_init (&skeleton->priv->lock); 1156s # skeleton->priv->context = g_main_context_ref_thread_default (); 1156s # } 1156s # 1156s # static void 1156s # org_project_callable_iface_skeleton_class_init (OrgProjectCallableIfaceSkeletonClass *klass) 1156s # { 1156s # GObjectClass *gobject_class; 1156s # GDBusInterfaceSkeletonClass *skeleton_class; 1156s # 1156s # gobject_class = G_OBJECT_CLASS (klass); 1156s # gobject_class->finalize = org_project_callable_iface_skeleton_finalize; 1156s # 1156s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 1156s # skeleton_class->get_info = org_project_callable_iface_skeleton_dbus_interface_get_info; 1156s # skeleton_class->get_properties = org_project_callable_iface_skeleton_dbus_interface_get_properties; 1156s # skeleton_class->flush = org_project_callable_iface_skeleton_dbus_interface_flush; 1156s # skeleton_class->get_vtable = org_project_callable_iface_skeleton_dbus_interface_get_vtable; 1156s # 1156s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1156s # g_type_class_add_private (klass, sizeof (OrgProjectCallableIfaceSkeletonPrivate)); 1156s # #endif 1156s # } 1156s # 1156s # static void 1156s # org_project_callable_iface_skeleton_iface_init (OrgProjectCallableIfaceIface *iface G_GNUC_UNUSED) 1156s # { 1156s # } 1156s # 1156s # /** 1156s # * org_project_callable_iface_skeleton_new: 1156s # * 1156s # * Creates a skeleton object for the D-Bus interface org.project.CallableIface. 1156s # * 1156s # * Returns: (transfer full) (type OrgProjectCallableIfaceSkeleton): The skeleton object. 1156s # */ 1156s # OrgProjectCallableIface * 1156s # org_project_callable_iface_skeleton_new (void) 1156s # { 1156s # return ORG_PROJECT_CALLABLE_IFACE (g_object_new (TYPE_ORG_PROJECT_CALLABLE_IFACE_SKELETON, NULL)); 1156s # } 1156s # 1156s # /* ------------------------------------------------------------------------ 1156s # * Code for interface org.project.OtherCallableIface 1156s # * ------------------------------------------------------------------------ 1156s # */ 1156s # 1156s # /** 1156s # * SECTION:OrgProjectOtherCallableIface 1156s # * @title: OrgProjectOtherCallableIface 1156s # * @short_description: Generated C code for the org.project.OtherCallableIface D-Bus interface 1156s # * 1156s # * This section contains code for working with the org.project.OtherCallableIface D-Bus interface in C. 1156s # */ 1156s # 1156s # /* ---- Introspection data for org.project.OtherCallableIface ---- */ 1156s # 1156s # static const _ExtendedGDBusMethodInfo _org_project_other_callable_iface_method_info_simple_method = 1156s # { 1156s # { 1156s # -1, 1156s # (gchar *) "SimpleMethod", 1156s # NULL, 1156s # NULL, 1156s # NULL 1156s # }, 1156s # "handle-simple-method", 1156s # FALSE 1156s # }; 1156s # 1156s # static const GDBusMethodInfo * const _org_project_other_callable_iface_method_info_pointers[] = 1156s # { 1156s # &_org_project_other_callable_iface_method_info_simple_method.parent_struct, 1156s # NULL 1156s # }; 1156s # 1156s # static const _ExtendedGDBusInterfaceInfo _org_project_other_callable_iface_interface_info = 1156s # { 1156s # { 1156s # -1, 1156s # (gchar *) "org.project.OtherCallableIface", 1156s # (GDBusMethodInfo **) &_org_project_other_callable_iface_method_info_pointers, 1156s # NULL, 1156s # NULL, 1156s # NULL 1156s # }, 1156s # "org-project-other-callable-iface", 1156s # }; 1156s # 1156s # 1156s # /** 1156s # * org_project_other_callable_iface_interface_info: 1156s # * 1156s # * Gets a machine-readable description of the org.project.OtherCallableIface D-Bus interface. 1156s # * 1156s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 1156s # */ 1156s # GDBusInterfaceInfo * 1156s # org_project_other_callable_iface_interface_info (void) 1156s # { 1156s # return (GDBusInterfaceInfo *) &_org_project_other_callable_iface_interface_info.parent_struct; 1156s # } 1156s # 1156s # /** 1156s # * org_project_other_callable_iface_override_properties: 1156s # * @klass: The class structure for a #GObject derived class. 1156s # * @property_id_begin: The property id to assign to the first overridden property. 1156s # * 1156s # * Overrides all #GObject properties in the #OrgProjectOtherCallableIface interface for a concrete class. 1156s # * The properties are overridden in the order they are defined. 1156s # * 1156s # * Returns: The last property id. 1156s # */ 1156s # guint 1156s # org_project_other_callable_iface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 1156s # { 1156s # return property_id_begin - 1; 1156s # } 1156s # 1156s # 1156s # inline static void 1156s # org_project_other_callable_iface_method_marshal_simple_method ( 1156s # GClosure *closure, 1156s # GValue *return_value, 1156s # unsigned int n_param_values, 1156s # const GValue *param_values, 1156s # void *invocation_hint, 1156s # void *marshal_data) 1156s # { 1156s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT (closure, 1156s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1156s # } 1156s # 1156s # 1156s # /** 1156s # * OrgProjectOtherCallableIface: 1156s # * 1156s # * Abstract interface type for the D-Bus interface org.project.OtherCallableIface. 1156s # */ 1156s # 1156s # /** 1156s # * OrgProjectOtherCallableIfaceIface: 1156s # * @parent_iface: The parent interface. 1156s # * @handle_simple_method: Handler for the #OrgProjectOtherCallableIface::handle-simple-method signal. 1156s # * 1156s # * Virtual table for the D-Bus interface org.project.OtherCallableIface. 1156s # */ 1156s # 1156s # typedef OrgProjectOtherCallableIfaceIface OrgProjectOtherCallableIfaceInterface; 1156s # G_DEFINE_INTERFACE (OrgProjectOtherCallableIface, org_project_other_callable_iface, G_TYPE_OBJECT) 1156s # 1156s # static void 1156s # org_project_other_callable_iface_default_init (OrgProjectOtherCallableIfaceIface *iface) 1156s # { 1156s # /* GObject signals for incoming D-Bus method calls: */ 1156s # /** 1156s # * OrgProjectOtherCallableIface::handle-simple-method: 1156s # * @object: A #OrgProjectOtherCallableIface. 1156s # * @invocation: A #GDBusMethodInvocation. 1156s # * 1156s # * Signal emitted when a remote caller is invoking the SimpleMethod() D-Bus method. 1156s # * 1156s # * 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. 1156s # * 1156s # * 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. 1156s # */ 1156s # g_signal_new ("handle-simple-method", 1156s # G_TYPE_FROM_INTERFACE (iface), 1156s # G_SIGNAL_RUN_LAST, 1156s # G_STRUCT_OFFSET (OrgProjectOtherCallableIfaceIface, handle_simple_method), 1156s # g_signal_accumulator_true_handled, 1156s # NULL, 1156s # org_project_other_callable_iface_method_marshal_simple_method, 1156s # G_TYPE_BOOLEAN, 1156s # 1, 1156s # G_TYPE_DBUS_METHOD_INVOCATION); 1156s # 1156s # } 1156s # 1156s # /** 1156s # * org_project_other_callable_iface_call_simple_method: 1156s # * @proxy: A #OrgProjectOtherCallableIfaceProxy. 1156s # * @cancellable: (nullable): A #GCancellable or %NULL. 1156s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL. 1156s # * @user_data: User data to pass to @callback. 1156s # * 1156s # * Asynchronously invokes the SimpleMethod() D-Bus method on @proxy. 1156s # * 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()). 1156s # * You can then call org_project_other_callable_iface_call_simple_method_finish() to get the result of the operation. 1156s # * 1156s # * See org_project_other_callable_iface_call_simple_method_sync() for the synchronous, blocking version of this method. 1156s # */ 1156s # void 1156s # org_project_other_callable_iface_call_simple_method ( 1156s # OrgProjectOtherCallableIface *proxy, 1156s # GCancellable *cancellable, 1156s # GAsyncReadyCallback callback, 1156s # gpointer user_data) 1156s # { 1156s # g_dbus_proxy_call (G_DBUS_PROXY (proxy), 1156s # "SimpleMethod", 1156s # g_variant_new ("()"), 1156s # G_DBUS_CALL_FLAGS_NONE, 1156s # -1, 1156s # cancellable, 1156s # callback, 1156s # user_data); 1156s # } 1156s # 1156s # /** 1156s # * org_project_other_callable_iface_call_simple_method_finish: 1156s # * @proxy: A #OrgProjectOtherCallableIfaceProxy. 1156s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_other_callable_iface_call_simple_method(). 1156s # * @error: Return location for error or %NULL. 1156s # * 1156s # * Finishes an operation started with org_project_other_callable_iface_call_simple_method(). 1156s # * 1156s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1156s # */ 1156s # gboolean 1156s # org_project_other_callable_iface_call_simple_method_finish ( 1156s # OrgProjectOtherCallableIface *proxy, 1156s # GAsyncResult *res, 1156s # GError **error) 1156s # { 1156s # GVariant *_ret; 1156s # _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error); 1156s # if (_ret == NULL) 1156s # goto _out; 1156s # g_variant_get (_ret, 1156s # "()"); 1156s # g_variant_unref (_ret); 1156s # _out: 1156s # return _ret != NULL; 1156s # } 1156s # 1156s # /** 1156s # * org_project_other_callable_iface_call_simple_method_sync: 1156s # * @proxy: A #OrgProjectOtherCallableIfaceProxy. 1156s # * @cancellable: (nullable): A #GCancellable or %NULL. 1156s # * @error: Return location for error or %NULL. 1156s # * 1156s # * Synchronously invokes the SimpleMethod() D-Bus method on @proxy. The calling thread is blocked until a reply is received. 1156s # * 1156s # * See org_project_other_callable_iface_call_simple_method() for the asynchronous version of this method. 1156s # * 1156s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1156s # */ 1156s # gboolean 1156s # org_project_other_callable_iface_call_simple_method_sync ( 1156s # OrgProjectOtherCallableIface *proxy, 1156s # GCancellable *cancellable, 1156s # GError **error) 1156s # { 1156s # GVariant *_ret; 1156s # _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy), 1156s # "SimpleMethod", 1156s # g_variant_new ("()"), 1156s # G_DBUS_CALL_FLAGS_NONE, 1156s # -1, 1156s # cancellable, 1156s # error); 1156s # if (_ret == NULL) 1156s # goto _out; 1156s # g_variant_get (_ret, 1156s # "()"); 1156s # g_variant_unref (_ret); 1156s # _out: 1156s # return _ret != NULL; 1156s # } 1156s # 1156s # /** 1156s # * org_project_other_callable_iface_complete_simple_method: 1156s # * @object: A #OrgProjectOtherCallableIface. 1156s # * @invocation: (transfer full): A #GDBusMethodInvocation. 1156s # * 1156s # * 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. 1156s # * 1156s # * This method will free @invocation, you cannot use it afterwards. 1156s # */ 1156s # void 1156s # org_project_other_callable_iface_complete_simple_method ( 1156s # OrgProjectOtherCallableIface *object G_GNUC_UNUSED, 1156s # GDBusMethodInvocation *invocation) 1156s # { 1156s # g_dbus_method_invocation_return_value (invocation, 1156s # g_variant_new ("()")); 1156s # } 1156s # 1156s # /* ------------------------------------------------------------------------ */ 1156s # 1156s # /** 1156s # * OrgProjectOtherCallableIfaceProxy: 1156s # * 1156s # * The #OrgProjectOtherCallableIfaceProxy structure contains only private data and should only be accessed using the provided API. 1156s # */ 1156s # 1156s # /** 1156s # * OrgProjectOtherCallableIfaceProxyClass: 1156s # * @parent_class: The parent class. 1156s # * 1156s # * Class structure for #OrgProjectOtherCallableIfaceProxy. 1156s # */ 1156s # 1156s # struct _OrgProjectOtherCallableIfaceProxyPrivate 1156s # { 1156s # GData *qdata; 1156s # }; 1156s # 1156s # static void org_project_other_callable_iface_proxy_iface_init (OrgProjectOtherCallableIfaceIface *iface); 1156s # 1156s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1156s # G_DEFINE_TYPE_WITH_CODE (OrgProjectOtherCallableIfaceProxy, org_project_other_callable_iface_proxy, G_TYPE_DBUS_PROXY, 1156s # G_ADD_PRIVATE (OrgProjectOtherCallableIfaceProxy) 1156s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_OTHER_CALLABLE_IFACE, org_project_other_callable_iface_proxy_iface_init)) 1156s # 1156s # #else 1156s # G_DEFINE_TYPE_WITH_CODE (OrgProjectOtherCallableIfaceProxy, org_project_other_callable_iface_proxy, G_TYPE_DBUS_PROXY, 1156s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_OTHER_CALLABLE_IFACE, org_project_other_callable_iface_proxy_iface_init)) 1156s # 1156s # #endif 1156s # static void 1156s # org_project_other_callable_iface_proxy_finalize (GObject *object) 1156s # { 1156s # OrgProjectOtherCallableIfaceProxy *proxy = ORG_PROJECT_OTHER_CALLABLE_IFACE_PROXY (object); 1156s # g_datalist_clear (&proxy->priv->qdata); 1156s # G_OBJECT_CLASS (org_project_other_callable_iface_proxy_parent_class)->finalize (object); 1156s # } 1156s # 1156s # static void 1156s # org_project_other_callable_iface_proxy_get_property (GObject *object G_GNUC_UNUSED, 1156s # guint prop_id G_GNUC_UNUSED, 1156s # GValue *value G_GNUC_UNUSED, 1156s # GParamSpec *pspec G_GNUC_UNUSED) 1156s # { 1156s # } 1156s # 1156s # static void 1156s # org_project_other_callable_iface_proxy_set_property (GObject *object G_GNUC_UNUSED, 1156s # guint prop_id G_GNUC_UNUSED, 1156s # const GValue *value G_GNUC_UNUSED, 1156s # GParamSpec *pspec G_GNUC_UNUSED) 1156s # { 1156s # } 1156s # 1156s # static void 1156s # org_project_other_callable_iface_proxy_g_signal (GDBusProxy *proxy, 1156s # const gchar *sender_name G_GNUC_UNUSED, 1156s # const gchar *signal_name, 1156s # GVariant *parameters) 1156s # { 1156s # _ExtendedGDBusSignalInfo *info; 1156s # GVariantIter iter; 1156s # GVariant *child; 1156s # GValue *paramv; 1156s # gsize num_params; 1156s # gsize n; 1156s # guint signal_id; 1156s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_other_callable_iface_interface_info.parent_struct, signal_name); 1156s # if (info == NULL) 1156s # return; 1156s # num_params = g_variant_n_children (parameters); 1156s # paramv = g_new0 (GValue, num_params + 1); 1156s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_OTHER_CALLABLE_IFACE); 1156s # g_value_set_object (¶mv[0], proxy); 1156s # g_variant_iter_init (&iter, parameters); 1156s # n = 1; 1156s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1156s # { 1156s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 1156s # if (arg_info->use_gvariant) 1156s # { 1156s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1156s # g_value_set_variant (¶mv[n], child); 1156s # n++; 1156s # } 1156s # else 1156s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1156s # g_variant_unref (child); 1156s # } 1156s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_OTHER_CALLABLE_IFACE); 1156s # g_signal_emitv (paramv, signal_id, 0, NULL); 1156s # for (n = 0; n < num_params + 1; n++) 1156s # g_value_unset (¶mv[n]); 1156s # g_free (paramv); 1156s # } 1156s # 1156s # static void 1156s # org_project_other_callable_iface_proxy_g_properties_changed (GDBusProxy *_proxy, 1156s # GVariant *changed_properties, 1156s # const gchar *const *invalidated_properties) 1156s # { 1156s # OrgProjectOtherCallableIfaceProxy *proxy = ORG_PROJECT_OTHER_CALLABLE_IFACE_PROXY (_proxy); 1156s # guint n; 1156s # const gchar *key; 1156s # GVariantIter *iter; 1156s # _ExtendedGDBusPropertyInfo *info; 1156s # g_variant_get (changed_properties, "a{sv}", &iter); 1156s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 1156s # { 1156s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_other_callable_iface_interface_info.parent_struct, key); 1156s # g_datalist_remove_data (&proxy->priv->qdata, key); 1156s # if (info != NULL) 1156s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1156s # } 1156s # g_variant_iter_free (iter); 1156s # for (n = 0; invalidated_properties[n] != NULL; n++) 1156s # { 1156s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_other_callable_iface_interface_info.parent_struct, invalidated_properties[n]); 1156s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 1156s # if (info != NULL) 1156s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1156s # } 1156s # } 1156s # 1156s # static void 1156s # org_project_other_callable_iface_proxy_init (OrgProjectOtherCallableIfaceProxy *proxy) 1156s # { 1156s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1156s # proxy->priv = org_project_other_callable_iface_proxy_get_instance_private (proxy); 1156s # #else 1156s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_OTHER_CALLABLE_IFACE_PROXY, OrgProjectOtherCallableIfaceProxyPrivate); 1156s # #endif 1156s # 1156s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_other_callable_iface_interface_info ()); 1156s # } 1156s # 1156s # static void 1156s # org_project_other_callable_iface_proxy_class_init (OrgProjectOtherCallableIfaceProxyClass *klass) 1156s # { 1156s # GObjectClass *gobject_class; 1156s # GDBusProxyClass *proxy_class; 1156s # 1156s # gobject_class = G_OBJECT_CLASS (klass); 1156s # gobject_class->finalize = org_project_other_callable_iface_proxy_finalize; 1156s # gobject_class->get_property = org_project_other_callable_iface_proxy_get_property; 1156s # gobject_class->set_property = org_project_other_callable_iface_proxy_set_property; 1156s # 1156s # proxy_class = G_DBUS_PROXY_CLASS (klass); 1156s # proxy_class->g_signal = org_project_other_callable_iface_proxy_g_signal; 1156s # proxy_class->g_properties_changed = org_project_other_callable_iface_proxy_g_properties_changed; 1156s # 1156s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1156s # g_type_class_add_private (klass, sizeof (OrgProjectOtherCallableIfaceProxyPrivate)); 1156s # #endif 1156s # } 1156s # 1156s # static void 1156s # org_project_other_callable_iface_proxy_iface_init (OrgProjectOtherCallableIfaceIface *iface G_GNUC_UNUSED) 1156s # { 1156s # } 1156s # 1156s # /** 1156s # * org_project_other_callable_iface_proxy_new: 1156s # * @connection: A #GDBusConnection. 1156s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1156s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1156s # * @object_path: An object path. 1156s # * @cancellable: (nullable): A #GCancellable or %NULL. 1156s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1156s # * @user_data: User data to pass to @callback. 1156s # * 1156s # * Asynchronously creates a proxy for the D-Bus interface org.project.OtherCallableIface. See g_dbus_proxy_new() for more details. 1156s # * 1156s # * 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()). 1156s # * You can then call org_project_other_callable_iface_proxy_new_finish() to get the result of the operation. 1156s # * 1156s # * See org_project_other_callable_iface_proxy_new_sync() for the synchronous, blocking version of this constructor. 1156s # */ 1156s # void 1156s # org_project_other_callable_iface_proxy_new ( 1156s # GDBusConnection *connection, 1156s # GDBusProxyFlags flags, 1156s # const gchar *name, 1156s # const gchar *object_path, 1156s # GCancellable *cancellable, 1156s # GAsyncReadyCallback callback, 1156s # gpointer user_data) 1156s # { 1156s # 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); 1156s # } 1156s # 1156s # /** 1156s # * org_project_other_callable_iface_proxy_new_finish: 1156s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_other_callable_iface_proxy_new(). 1156s # * @error: Return location for error or %NULL 1156s # * 1156s # * Finishes an operation started with org_project_other_callable_iface_proxy_new(). 1156s # * 1156s # * Returns: (transfer full) (type OrgProjectOtherCallableIfaceProxy): The constructed proxy object or %NULL if @error is set. 1156s # */ 1156s # OrgProjectOtherCallableIface * 1156s # org_project_other_callable_iface_proxy_new_finish ( 1156s # GAsyncResult *res, 1156s # GError **error) 1156s # { 1156s # GObject *ret; 1156s # GObject *source_object; 1156s # source_object = g_async_result_get_source_object (res); 1156s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1156s # g_object_unref (source_object); 1156s # if (ret != NULL) 1156s # return ORG_PROJECT_OTHER_CALLABLE_IFACE (ret); 1156s # else 1156s # return NULL; 1156s # } 1156s # 1156s # /** 1156s # * org_project_other_callable_iface_proxy_new_sync: 1156s # * @connection: A #GDBusConnection. 1156s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1156s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1156s # * @object_path: An object path. 1156s # * @cancellable: (nullable): A #GCancellable or %NULL. 1156s # * @error: Return location for error or %NULL 1156s # * 1156s # * Synchronously creates a proxy for the D-Bus interface org.project.OtherCallableIface. See g_dbus_proxy_new_sync() for more details. 1156s # * 1156s # * The calling thread is blocked until a reply is received. 1156s # * 1156s # * See org_project_other_callable_iface_proxy_new() for the asynchronous version of this constructor. 1156s # * 1156s # * Returns: (transfer full) (type OrgProjectOtherCallableIfaceProxy): The constructed proxy object or %NULL if @error is set. 1156s # */ 1156s # OrgProjectOtherCallableIface * 1156s # org_project_other_callable_iface_proxy_new_sync ( 1156s # GDBusConnection *connection, 1156s # GDBusProxyFlags flags, 1156s # const gchar *name, 1156s # const gchar *object_path, 1156s # GCancellable *cancellable, 1156s # GError **error) 1156s # { 1156s # GInitable *ret; 1156s # 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); 1156s # if (ret != NULL) 1156s # return ORG_PROJECT_OTHER_CALLABLE_IFACE (ret); 1156s # else 1156s # return NULL; 1156s # } 1156s # 1156s # 1156s # /** 1156s # * org_project_other_callable_iface_proxy_new_for_bus: 1156s # * @bus_type: A #GBusType. 1156s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1156s # * @name: A bus name (well-known or unique). 1156s # * @object_path: An object path. 1156s # * @cancellable: (nullable): A #GCancellable or %NULL. 1156s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1156s # * @user_data: User data to pass to @callback. 1156s # * 1156s # * Like org_project_other_callable_iface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 1156s # * 1156s # * 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()). 1156s # * You can then call org_project_other_callable_iface_proxy_new_for_bus_finish() to get the result of the operation. 1156s # * 1156s # * See org_project_other_callable_iface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 1156s # */ 1156s # void 1156s # org_project_other_callable_iface_proxy_new_for_bus ( 1156s # GBusType bus_type, 1156s # GDBusProxyFlags flags, 1156s # const gchar *name, 1156s # const gchar *object_path, 1156s # GCancellable *cancellable, 1156s # GAsyncReadyCallback callback, 1156s # gpointer user_data) 1156s # { 1156s # 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); 1156s # } 1156s # 1156s # /** 1156s # * org_project_other_callable_iface_proxy_new_for_bus_finish: 1156s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_other_callable_iface_proxy_new_for_bus(). 1156s # * @error: Return location for error or %NULL 1156s # * 1156s # * Finishes an operation started with org_project_other_callable_iface_proxy_new_for_bus(). 1156s # * 1156s # * Returns: (transfer full) (type OrgProjectOtherCallableIfaceProxy): The constructed proxy object or %NULL if @error is set. 1156s # */ 1156s # OrgProjectOtherCallableIface * 1156s # org_project_other_callable_iface_proxy_new_for_bus_finish ( 1156s # GAsyncResult *res, 1156s # GError **error) 1156s # { 1156s # GObject *ret; 1156s # GObject *source_object; 1156s # source_object = g_async_result_get_source_object (res); 1156s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1156s # g_object_unref (source_object); 1156s # if (ret != NULL) 1156s # return ORG_PROJECT_OTHER_CALLABLE_IFACE (ret); 1156s # else 1156s # return NULL; 1156s # } 1156s # 1156s # /** 1156s # * org_project_other_callable_iface_proxy_new_for_bus_sync: 1156s # * @bus_type: A #GBusType. 1156s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1156s # * @name: A bus name (well-known or unique). 1156s # * @object_path: An object path. 1156s # * @cancellable: (nullable): A #GCancellable or %NULL. 1156s # * @error: Return location for error or %NULL 1156s # * 1156s # * Like org_project_other_callable_iface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 1156s # * 1156s # * The calling thread is blocked until a reply is received. 1156s # * 1156s # * See org_project_other_callable_iface_proxy_new_for_bus() for the asynchronous version of this constructor. 1156s # * 1156s # * Returns: (transfer full) (type OrgProjectOtherCallableIfaceProxy): The constructed proxy object or %NULL if @error is set. 1156s # */ 1156s # OrgProjectOtherCallableIface * 1156s # org_project_other_callable_iface_proxy_new_for_bus_sync ( 1156s # GBusType bus_type, 1156s # GDBusProxyFlags flags, 1156s # const gchar *name, 1156s # const gchar *object_path, 1156s # GCancellable *cancellable, 1156s # GError **error) 1156s # { 1156s # GInitable *ret; 1156s # 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); 1156s # if (ret != NULL) 1156s # return ORG_PROJECT_OTHER_CALLABLE_IFACE (ret); 1156s # else 1156s # return NULL; 1156s # } 1156s # 1156s # 1156s # /* ------------------------------------------------------------------------ */ 1156s # 1156s # /** 1156s # * OrgProjectOtherCallableIfaceSkeleton: 1156s # * 1156s # * The #OrgProjectOtherCallableIfaceSkeleton structure contains only private data and should only be accessed using the provided API. 1156s # */ 1156s # 1156s # /** 1156s # * OrgProjectOtherCallableIfaceSkeletonClass: 1156s # * @parent_class: The parent class. 1156s # * 1156s # * Class structure for #OrgProjectOtherCallableIfaceSkeleton. 1156s # */ 1156s # 1156s # struct _OrgProjectOtherCallableIfaceSkeletonPrivate 1156s # { 1156s # GValue *properties; 1156s # GList *changed_properties; 1156s # GSource *changed_properties_idle_source; 1156s # GMainContext *context; 1156s # GMutex lock; 1156s # }; 1156s # 1156s # static void 1156s # _org_project_other_callable_iface_skeleton_handle_method_call ( 1156s # GDBusConnection *connection G_GNUC_UNUSED, 1156s # const gchar *sender G_GNUC_UNUSED, 1156s # const gchar *object_path G_GNUC_UNUSED, 1156s # const gchar *interface_name, 1156s # const gchar *method_name, 1156s # GVariant *parameters, 1156s # GDBusMethodInvocation *invocation, 1156s # gpointer user_data) 1156s # { 1156s # OrgProjectOtherCallableIfaceSkeleton *skeleton = ORG_PROJECT_OTHER_CALLABLE_IFACE_SKELETON (user_data); 1156s # _ExtendedGDBusMethodInfo *info; 1156s # GVariantIter iter; 1156s # GVariant *child; 1156s # GValue *paramv; 1156s # gsize num_params; 1156s # guint num_extra; 1156s # gsize n; 1156s # guint signal_id; 1156s # GValue return_value = G_VALUE_INIT; 1156s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 1156s # g_assert (info != NULL); 1156s # num_params = g_variant_n_children (parameters); 1156s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 1156s # n = 0; 1156s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_OTHER_CALLABLE_IFACE); 1156s # g_value_set_object (¶mv[n++], skeleton); 1156s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 1156s # g_value_set_object (¶mv[n++], invocation); 1156s # if (info->pass_fdlist) 1156s # { 1156s # #ifdef G_OS_UNIX 1156s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 1156s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 1156s # #else 1156s # g_assert_not_reached (); 1156s # #endif 1156s # } 1156s # g_variant_iter_init (&iter, parameters); 1156s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1156s # { 1156s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 1156s # if (arg_info->use_gvariant) 1156s # { 1156s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1156s # g_value_set_variant (¶mv[n], child); 1156s # n++; 1156s # } 1156s # else 1156s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1156s # g_variant_unref (child); 1156s # } 1156s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_OTHER_CALLABLE_IFACE); 1156s # g_value_init (&return_value, G_TYPE_BOOLEAN); 1156s # g_signal_emitv (paramv, signal_id, 0, &return_value); 1156s # if (!g_value_get_boolean (&return_value)) 1156s # 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); 1156s # g_value_unset (&return_value); 1156s # for (n = 0; n < num_params + num_extra; n++) 1156s # g_value_unset (¶mv[n]); 1156s # g_free (paramv); 1156s # } 1156s # 1156s # static GVariant * 1156s # _org_project_other_callable_iface_skeleton_handle_get_property ( 1156s # GDBusConnection *connection G_GNUC_UNUSED, 1156s # const gchar *sender G_GNUC_UNUSED, 1156s # const gchar *object_path G_GNUC_UNUSED, 1156s # const gchar *interface_name G_GNUC_UNUSED, 1156s # const gchar *property_name, 1156s # GError **error, 1156s # gpointer user_data) 1156s # { 1156s # OrgProjectOtherCallableIfaceSkeleton *skeleton = ORG_PROJECT_OTHER_CALLABLE_IFACE_SKELETON (user_data); 1156s # GValue value = G_VALUE_INIT; 1156s # GParamSpec *pspec; 1156s # _ExtendedGDBusPropertyInfo *info; 1156s # GVariant *ret; 1156s # ret = NULL; 1156s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_other_callable_iface_interface_info.parent_struct, property_name); 1156s # g_assert (info != NULL); 1156s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1156s # if (pspec == NULL) 1156s # { 1156s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1156s # } 1156s # else 1156s # { 1156s # g_value_init (&value, pspec->value_type); 1156s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1156s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 1156s # g_value_unset (&value); 1156s # } 1156s # return ret; 1156s # } 1156s # 1156s # static gboolean 1156s # _org_project_other_callable_iface_skeleton_handle_set_property ( 1156s # GDBusConnection *connection G_GNUC_UNUSED, 1156s # const gchar *sender G_GNUC_UNUSED, 1156s # const gchar *object_path G_GNUC_UNUSED, 1156s # const gchar *interface_name G_GNUC_UNUSED, 1156s # const gchar *property_name, 1156s # GVariant *variant, 1156s # GError **error, 1156s # gpointer user_data) 1156s # { 1156s # OrgProjectOtherCallableIfaceSkeleton *skeleton = ORG_PROJECT_OTHER_CALLABLE_IFACE_SKELETON (user_data); 1156s # GValue value = G_VALUE_INIT; 1156s # GParamSpec *pspec; 1156s # _ExtendedGDBusPropertyInfo *info; 1156s # gboolean ret; 1156s # ret = FALSE; 1156s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_other_callable_iface_interface_info.parent_struct, property_name); 1156s # g_assert (info != NULL); 1156s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1156s # if (pspec == NULL) 1156s # { 1156s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1156s # } 1156s # else 1156s # { 1156s # if (info->use_gvariant) 1156s # g_value_set_variant (&value, variant); 1156s # else 1156s # g_dbus_gvariant_to_gvalue (variant, &value); 1156s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1156s # g_value_unset (&value); 1156s # ret = TRUE; 1156s # } 1156s # return ret; 1156s # } 1156s # 1156s # static const GDBusInterfaceVTable _org_project_other_callable_iface_skeleton_vtable = 1156s # { 1156s # _org_project_other_callable_iface_skeleton_handle_method_call, 1156s # _org_project_other_callable_iface_skeleton_handle_get_property, 1156s # _org_project_other_callable_iface_skeleton_handle_set_property, 1156s # {NULL} 1156s # }; 1156s # 1156s # static GDBusInterfaceInfo * 1156s # org_project_other_callable_iface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1156s # { 1156s # return org_project_other_callable_iface_interface_info (); 1156s # } 1156s # 1156s # static GDBusInterfaceVTable * 1156s # org_project_other_callable_iface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1156s # { 1156s # return (GDBusInterfaceVTable *) &_org_project_other_callable_iface_skeleton_vtable; 1156s # } 1156s # 1156s # static GVariant * 1156s # org_project_other_callable_iface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 1156s # { 1156s # OrgProjectOtherCallableIfaceSkeleton *skeleton = ORG_PROJECT_OTHER_CALLABLE_IFACE_SKELETON (_skeleton); 1156s # 1156s # GVariantBuilder builder; 1156s # guint n; 1156s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 1156s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 1156s # #else 1156s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 1156s # #endif 1156s # if (_org_project_other_callable_iface_interface_info.parent_struct.properties == NULL) 1156s # goto out; 1156s # for (n = 0; _org_project_other_callable_iface_interface_info.parent_struct.properties[n] != NULL; n++) 1156s # { 1156s # GDBusPropertyInfo *info = _org_project_other_callable_iface_interface_info.parent_struct.properties[n]; 1156s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 1156s # { 1156s # GVariant *value; 1156s # 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); 1156s # if (value != NULL) 1156s # { 1156s # g_variant_take_ref (value); 1156s # g_variant_builder_add (&builder, "{sv}", info->name, value); 1156s # g_variant_unref (value); 1156s # } 1156s # } 1156s # } 1156s # out: 1156s # return g_variant_builder_end (&builder); 1156s # } 1156s # 1156s # static void 1156s # org_project_other_callable_iface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 1156s # { 1156s # } 1156s # 1156s # static void org_project_other_callable_iface_skeleton_iface_init (OrgProjectOtherCallableIfaceIface *iface); 1156s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1156s # G_DEFINE_TYPE_WITH_CODE (OrgProjectOtherCallableIfaceSkeleton, org_project_other_callable_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1156s # G_ADD_PRIVATE (OrgProjectOtherCallableIfaceSkeleton) 1156s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_OTHER_CALLABLE_IFACE, org_project_other_callable_iface_skeleton_iface_init)) 1156s # 1156s # #else 1156s # G_DEFINE_TYPE_WITH_CODE (OrgProjectOtherCallableIfaceSkeleton, org_project_other_callable_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1156s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_OTHER_CALLABLE_IFACE, org_project_other_callable_iface_skeleton_iface_init)) 1156s # 1156s # #endif 1156s # static void 1156s # org_project_other_callable_iface_skeleton_finalize (GObject *object) 1156s # { 1156s # OrgProjectOtherCallableIfaceSkeleton *skeleton = ORG_PROJECT_OTHER_CALLABLE_IFACE_SKELETON (object); 1156s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 1156s # if (skeleton->priv->changed_properties_idle_source != NULL) 1156s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 1156s # g_main_context_unref (skeleton->priv->context); 1156s # g_mutex_clear (&skeleton->priv->lock); 1156s # G_OBJECT_CLASS (org_project_other_callable_iface_skeleton_parent_class)->finalize (object); 1156s # } 1156s # 1156s # static void 1156s # org_project_other_callable_iface_skeleton_init (OrgProjectOtherCallableIfaceSkeleton *skeleton) 1156s # { 1156s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1156s # skeleton->priv = org_project_other_callable_iface_skeleton_get_instance_private (skeleton); 1156s # #else 1156s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_OTHER_CALLABLE_IFACE_SKELETON, OrgProjectOtherCallableIfaceSkeletonPrivate); 1156s # #endif 1156s # 1156s # g_mutex_init (&skeleton->priv->lock); 1156s # skeleton->priv->context = g_main_context_ref_thread_default (); 1156s # } 1156s # 1156s # static void 1156s # org_project_other_callable_iface_skeleton_class_init (OrgProjectOtherCallableIfaceSkeletonClass *klass) 1156s # { 1156s # GObjectClass *gobject_class; 1156s # GDBusInterfaceSkeletonClass *skeleton_class; 1156s # 1156s # gobject_class = G_OBJECT_CLASS (klass); 1156s # gobject_class->finalize = org_project_other_callable_iface_skeleton_finalize; 1156s # 1156s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 1156s # skeleton_class->get_info = org_project_other_callable_iface_skeleton_dbus_interface_get_info; 1156s # skeleton_class->get_properties = org_project_other_callable_iface_skeleton_dbus_interface_get_properties; 1156s # skeleton_class->flush = org_project_other_callable_iface_skeleton_dbus_interface_flush; 1156s # skeleton_class->get_vtable = org_project_other_callable_iface_skeleton_dbus_interface_get_vtable; 1156s # 1156s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1156s # g_type_class_add_private (klass, sizeof (OrgProjectOtherCallableIfaceSkeletonPrivate)); 1156s # #endif 1156s # } 1156s # 1156s # static void 1156s # org_project_other_callable_iface_skeleton_iface_init (OrgProjectOtherCallableIfaceIface *iface G_GNUC_UNUSED) 1156s # { 1156s # } 1156s # 1156s # /** 1156s # * org_project_other_callable_iface_skeleton_new: 1156s # * 1156s # * Creates a skeleton object for the D-Bus interface org.project.OtherCallableIface. 1156s # * 1156s # * Returns: (transfer full) (type OrgProjectOtherCallableIfaceSkeleton): The skeleton object. 1156s # */ 1156s # OrgProjectOtherCallableIface * 1156s # org_project_other_callable_iface_skeleton_new (void) 1156s # { 1156s # return ORG_PROJECT_OTHER_CALLABLE_IFACE (g_object_new (TYPE_ORG_PROJECT_OTHER_CALLABLE_IFACE_SKELETON, NULL)); 1156s # } 1156s # Error: 1157s ok 10 __main__.TestCodegen.test_generate_methods_marshaller_single_typed_in_args 1157s # gdbus-codegen: /usr/bin/gdbus-codegen 1157s # tmpdir: /tmp/tmpv_fj8nn0 1157s # /tmp/tmpv_fj8nn0/tmp8n21h33c.xml: 1157s # 1157s # 1157s # 1157s # 1157s # 1157s # 1157s # 1157s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpv_fj8nn0/tmp8n21h33c.xml', '--output', '-', '--body'] 1157s # Return code: 0 1157s # Output: 1157s # /* 1157s # * This file is generated by gdbus-codegen, do not modify it. 1157s # * 1157s # * The license of this code is the same as for the D-Bus interface description 1157s # * it was derived from. Note that it links to GLib, so must comply with the 1157s # * LGPL linking clauses. 1157s # */ 1157s # 1157s # #ifdef HAVE_CONFIG_H 1157s # # include "config.h" 1157s # #endif 1157s # 1157s # #include 1157s # #ifdef G_OS_UNIX 1157s # # include 1157s # #endif 1157s # 1157s # #ifdef G_ENABLE_DEBUG 1157s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 1157s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 1157s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 1157s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 1157s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 1157s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 1157s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 1157s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 1157s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 1157s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 1157s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 1157s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 1157s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 1157s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 1157s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 1157s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 1157s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 1157s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 1157s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 1157s # #else /* !G_ENABLE_DEBUG */ 1157s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 1157s # * Do not access GValues directly in your code. Instead, use the 1157s # * g_value_get_*() functions 1157s # */ 1157s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 1157s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 1157s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 1157s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 1157s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 1157s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 1157s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 1157s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 1157s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 1157s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 1157s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 1157s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 1157s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 1157s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 1157s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 1157s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 1157s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 1157s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 1157s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 1157s # #endif /* !G_ENABLE_DEBUG */ 1157s # 1157s # typedef struct 1157s # { 1157s # GDBusArgInfo parent_struct; 1157s # gboolean use_gvariant; 1157s # } _ExtendedGDBusArgInfo; 1157s # 1157s # typedef struct 1157s # { 1157s # GDBusMethodInfo parent_struct; 1157s # const gchar *signal_name; 1157s # gboolean pass_fdlist; 1157s # } _ExtendedGDBusMethodInfo; 1157s # 1157s # typedef struct 1157s # { 1157s # GDBusSignalInfo parent_struct; 1157s # const gchar *signal_name; 1157s # } _ExtendedGDBusSignalInfo; 1157s # 1157s # typedef struct 1157s # { 1157s # GDBusPropertyInfo parent_struct; 1157s # const gchar *hyphen_name; 1157s # guint use_gvariant : 1; 1157s # guint emits_changed_signal : 1; 1157s # } _ExtendedGDBusPropertyInfo; 1157s # 1157s # typedef struct 1157s # { 1157s # GDBusInterfaceInfo parent_struct; 1157s # const gchar *hyphen_name; 1157s # } _ExtendedGDBusInterfaceInfo; 1157s # 1157s # typedef struct 1157s # { 1157s # const _ExtendedGDBusPropertyInfo *info; 1157s # guint prop_id; 1157s # GValue orig_value; /* the value before the change */ 1157s # } ChangedProperty; 1157s # 1157s # static void 1157s # _changed_property_free (ChangedProperty *data) 1157s # { 1157s # g_value_unset (&data->orig_value); 1157s # g_free (data); 1157s # } 1157s # 1157s # static gboolean 1157s # _g_strv_equal0 (gchar **a, gchar **b) 1157s # { 1157s # gboolean ret = FALSE; 1157s # guint n; 1157s # if (a == NULL && b == NULL) 1157s # { 1157s # ret = TRUE; 1157s # goto out; 1157s # } 1157s # if (a == NULL || b == NULL) 1157s # goto out; 1157s # if (g_strv_length (a) != g_strv_length (b)) 1157s # goto out; 1157s # for (n = 0; a[n] != NULL; n++) 1157s # if (g_strcmp0 (a[n], b[n]) != 0) 1157s # goto out; 1157s # ret = TRUE; 1157s # out: 1157s # return ret; 1157s # } 1157s # 1157s # static gboolean 1157s # _g_variant_equal0 (GVariant *a, GVariant *b) 1157s # { 1157s # gboolean ret = FALSE; 1157s # if (a == NULL && b == NULL) 1157s # { 1157s # ret = TRUE; 1157s # goto out; 1157s # } 1157s # if (a == NULL || b == NULL) 1157s # goto out; 1157s # ret = g_variant_equal (a, b); 1157s # out: 1157s # return ret; 1157s # } 1157s # 1157s # G_GNUC_UNUSED static gboolean 1157s # _g_value_equal (const GValue *a, const GValue *b) 1157s # { 1157s # gboolean ret = FALSE; 1157s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 1157s # switch (G_VALUE_TYPE (a)) 1157s # { 1157s # case G_TYPE_BOOLEAN: 1157s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 1157s # break; 1157s # case G_TYPE_UCHAR: 1157s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 1157s # break; 1157s # case G_TYPE_INT: 1157s # ret = (g_value_get_int (a) == g_value_get_int (b)); 1157s # break; 1157s # case G_TYPE_UINT: 1157s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 1157s # break; 1157s # case G_TYPE_INT64: 1157s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 1157s # break; 1157s # case G_TYPE_UINT64: 1157s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 1157s # break; 1157s # case G_TYPE_DOUBLE: 1157s # { 1157s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 1157s # gdouble da = g_value_get_double (a); 1157s # gdouble db = g_value_get_double (b); 1157s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 1157s # } 1157s # break; 1157s # case G_TYPE_STRING: 1157s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 1157s # break; 1157s # case G_TYPE_VARIANT: 1157s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 1157s # break; 1157s # default: 1157s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 1157s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 1157s # else 1157s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 1157s # break; 1157s # } 1157s # return ret; 1157s # } 1157s # 1157s # static void 1157s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT_BOOLEAN ( 1157s # GClosure *closure, 1157s # GValue *return_value, 1157s # unsigned int n_param_values, 1157s # const GValue *param_values, 1157s # void *invocation_hint G_GNUC_UNUSED, 1157s # void *marshal_data) 1157s # { 1157s # typedef gboolean (*_GDbusCodegenMarshalBoolean_ObjectBooleanFunc) 1157s # (void *data1, 1157s # GDBusMethodInvocation *arg_method_invocation, 1157s # gboolean arg_arg_b, 1157s # void *data2); 1157s # _GDbusCodegenMarshalBoolean_ObjectBooleanFunc callback; 1157s # GCClosure *cc = (GCClosure*) closure; 1157s # void *data1, *data2; 1157s # gboolean v_return; 1157s # 1157s # g_return_if_fail (return_value != NULL); 1157s # g_return_if_fail (n_param_values == 3); 1157s # 1157s # if (G_CCLOSURE_SWAP_DATA (closure)) 1157s # { 1157s # data1 = closure->data; 1157s # data2 = g_value_peek_pointer (param_values + 0); 1157s # } 1157s # else 1157s # { 1157s # data1 = g_value_peek_pointer (param_values + 0); 1157s # data2 = closure->data; 1157s # } 1157s # 1157s # callback = (_GDbusCodegenMarshalBoolean_ObjectBooleanFunc) 1157s # (marshal_data ? marshal_data : cc->callback); 1157s # 1157s # v_return = 1157s # callback (data1, 1157s # g_marshal_value_peek_object (param_values + 1), 1157s # g_marshal_value_peek_boolean (param_values + 2), 1157s # data2); 1157s # 1157s # g_value_set_boolean (return_value, v_return); 1157s # } 1157s # 1157s # /* ------------------------------------------------------------------------ 1157s # * Code for interface org.project.UsefulInterface 1157s # * ------------------------------------------------------------------------ 1157s # */ 1157s # 1157s # /** 1157s # * SECTION:OrgProjectUsefulInterface 1157s # * @title: OrgProjectUsefulInterface 1157s # * @short_description: Generated C code for the org.project.UsefulInterface D-Bus interface 1157s # * 1157s # * This section contains code for working with the org.project.UsefulInterface D-Bus interface in C. 1157s # */ 1157s # 1157s # /* ---- Introspection data for org.project.UsefulInterface ---- */ 1157s # 1157s # static const _ExtendedGDBusArgInfo _org_project_useful_interface_method_info_single_arg_method_b_IN_ARG_arg_b = 1157s # { 1157s # { 1157s # -1, 1157s # (gchar *) "arg_b", 1157s # (gchar *) "b", 1157s # NULL 1157s # }, 1157s # FALSE 1157s # }; 1157s # 1157s # static const GDBusArgInfo * const _org_project_useful_interface_method_info_single_arg_method_b_IN_ARG_pointers[] = 1157s # { 1157s # &_org_project_useful_interface_method_info_single_arg_method_b_IN_ARG_arg_b.parent_struct, 1157s # NULL 1157s # }; 1157s # 1157s # static const _ExtendedGDBusMethodInfo _org_project_useful_interface_method_info_single_arg_method_b = 1157s # { 1157s # { 1157s # -1, 1157s # (gchar *) "SingleArgMethodB", 1157s # (GDBusArgInfo **) &_org_project_useful_interface_method_info_single_arg_method_b_IN_ARG_pointers, 1157s # NULL, 1157s # NULL 1157s # }, 1157s # "handle-single-arg-method-b", 1157s # FALSE 1157s # }; 1157s # 1157s # static const GDBusMethodInfo * const _org_project_useful_interface_method_info_pointers[] = 1157s # { 1157s # &_org_project_useful_interface_method_info_single_arg_method_b.parent_struct, 1157s # NULL 1157s # }; 1157s # 1157s # static const _ExtendedGDBusInterfaceInfo _org_project_useful_interface_interface_info = 1157s # { 1157s # { 1157s # -1, 1157s # (gchar *) "org.project.UsefulInterface", 1157s # (GDBusMethodInfo **) &_org_project_useful_interface_method_info_pointers, 1157s # NULL, 1157s # NULL, 1157s # NULL 1157s # }, 1157s # "org-project-useful-interface", 1157s # }; 1157s # 1157s # 1157s # /** 1157s # * org_project_useful_interface_interface_info: 1157s # * 1157s # * Gets a machine-readable description of the org.project.UsefulInterface D-Bus interface. 1157s # * 1157s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 1157s # */ 1157s # GDBusInterfaceInfo * 1157s # org_project_useful_interface_interface_info (void) 1157s # { 1157s # return (GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct; 1157s # } 1157s # 1157s # /** 1157s # * org_project_useful_interface_override_properties: 1157s # * @klass: The class structure for a #GObject derived class. 1157s # * @property_id_begin: The property id to assign to the first overridden property. 1157s # * 1157s # * Overrides all #GObject properties in the #OrgProjectUsefulInterface interface for a concrete class. 1157s # * The properties are overridden in the order they are defined. 1157s # * 1157s # * Returns: The last property id. 1157s # */ 1157s # guint 1157s # org_project_useful_interface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 1157s # { 1157s # return property_id_begin - 1; 1157s # } 1157s # 1157s # 1157s # inline static void 1157s # org_project_useful_interface_method_marshal_single_arg_method_b ( 1157s # GClosure *closure, 1157s # GValue *return_value, 1157s # unsigned int n_param_values, 1157s # const GValue *param_values, 1157s # void *invocation_hint, 1157s # void *marshal_data) 1157s # { 1157s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT_BOOLEAN (closure, 1157s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1157s # } 1157s # 1157s # 1157s # /** 1157s # * OrgProjectUsefulInterface: 1157s # * 1157s # * Abstract interface type for the D-Bus interface org.project.UsefulInterface. 1157s # */ 1157s # 1157s # /** 1157s # * OrgProjectUsefulInterfaceIface: 1157s # * @parent_iface: The parent interface. 1157s # * @handle_single_arg_method_b: Handler for the #OrgProjectUsefulInterface::handle-single-arg-method-b signal. 1157s # * 1157s # * Virtual table for the D-Bus interface org.project.UsefulInterface. 1157s # */ 1157s # 1157s # typedef OrgProjectUsefulInterfaceIface OrgProjectUsefulInterfaceInterface; 1157s # G_DEFINE_INTERFACE (OrgProjectUsefulInterface, org_project_useful_interface, G_TYPE_OBJECT) 1157s # 1157s # static void 1157s # org_project_useful_interface_default_init (OrgProjectUsefulInterfaceIface *iface) 1157s # { 1157s # /* GObject signals for incoming D-Bus method calls: */ 1157s # /** 1157s # * OrgProjectUsefulInterface::handle-single-arg-method-b: 1157s # * @object: A #OrgProjectUsefulInterface. 1157s # * @invocation: A #GDBusMethodInvocation. 1157s # * @arg_arg_b: Argument passed by remote caller. 1157s # * 1157s # * Signal emitted when a remote caller is invoking the SingleArgMethodB() D-Bus method. 1157s # * 1157s # * 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. 1157s # * 1157s # * 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. 1157s # */ 1157s # g_signal_new ("handle-single-arg-method-b", 1157s # G_TYPE_FROM_INTERFACE (iface), 1157s # G_SIGNAL_RUN_LAST, 1157s # G_STRUCT_OFFSET (OrgProjectUsefulInterfaceIface, handle_single_arg_method_b), 1157s # g_signal_accumulator_true_handled, 1157s # NULL, 1157s # org_project_useful_interface_method_marshal_single_arg_method_b, 1157s # G_TYPE_BOOLEAN, 1157s # 2, 1157s # G_TYPE_DBUS_METHOD_INVOCATION, G_TYPE_BOOLEAN); 1157s # 1157s # } 1157s # 1157s # /** 1157s # * org_project_useful_interface_call_single_arg_method_b: 1157s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1157s # * @arg_arg_b: Argument to pass with the method invocation. 1157s # * @cancellable: (nullable): A #GCancellable or %NULL. 1157s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL. 1157s # * @user_data: User data to pass to @callback. 1157s # * 1157s # * Asynchronously invokes the SingleArgMethodB() D-Bus method on @proxy. 1157s # * 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()). 1157s # * You can then call org_project_useful_interface_call_single_arg_method_b_finish() to get the result of the operation. 1157s # * 1157s # * See org_project_useful_interface_call_single_arg_method_b_sync() for the synchronous, blocking version of this method. 1157s # */ 1157s # void 1157s # org_project_useful_interface_call_single_arg_method_b ( 1157s # OrgProjectUsefulInterface *proxy, 1157s # gboolean arg_arg_b, 1157s # GCancellable *cancellable, 1157s # GAsyncReadyCallback callback, 1157s # gpointer user_data) 1157s # { 1157s # g_dbus_proxy_call (G_DBUS_PROXY (proxy), 1157s # "SingleArgMethodB", 1157s # g_variant_new ("(b)", 1157s # arg_arg_b), 1157s # G_DBUS_CALL_FLAGS_NONE, 1157s # -1, 1157s # cancellable, 1157s # callback, 1157s # user_data); 1157s # } 1157s # 1157s # /** 1157s # * org_project_useful_interface_call_single_arg_method_b_finish: 1157s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1157s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_call_single_arg_method_b(). 1157s # * @error: Return location for error or %NULL. 1157s # * 1157s # * Finishes an operation started with org_project_useful_interface_call_single_arg_method_b(). 1157s # * 1157s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1157s # */ 1157s # gboolean 1157s # org_project_useful_interface_call_single_arg_method_b_finish ( 1157s # OrgProjectUsefulInterface *proxy, 1157s # GAsyncResult *res, 1157s # GError **error) 1157s # { 1157s # GVariant *_ret; 1157s # _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error); 1157s # if (_ret == NULL) 1157s # goto _out; 1157s # g_variant_get (_ret, 1157s # "()"); 1157s # g_variant_unref (_ret); 1157s # _out: 1157s # return _ret != NULL; 1157s # } 1157s # 1157s # /** 1157s # * org_project_useful_interface_call_single_arg_method_b_sync: 1157s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1157s # * @arg_arg_b: Argument to pass with the method invocation. 1157s # * @cancellable: (nullable): A #GCancellable or %NULL. 1157s # * @error: Return location for error or %NULL. 1157s # * 1157s # * Synchronously invokes the SingleArgMethodB() D-Bus method on @proxy. The calling thread is blocked until a reply is received. 1157s # * 1157s # * See org_project_useful_interface_call_single_arg_method_b() for the asynchronous version of this method. 1157s # * 1157s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1157s # */ 1157s # gboolean 1157s # org_project_useful_interface_call_single_arg_method_b_sync ( 1157s # OrgProjectUsefulInterface *proxy, 1157s # gboolean arg_arg_b, 1157s # GCancellable *cancellable, 1157s # GError **error) 1157s # { 1157s # GVariant *_ret; 1157s # _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy), 1157s # "SingleArgMethodB", 1157s # g_variant_new ("(b)", 1157s # arg_arg_b), 1157s # G_DBUS_CALL_FLAGS_NONE, 1157s # -1, 1157s # cancellable, 1157s # error); 1157s # if (_ret == NULL) 1157s # goto _out; 1157s # g_variant_get (_ret, 1157s # "()"); 1157s # g_variant_unref (_ret); 1157s # _out: 1157s # return _ret != NULL; 1157s # } 1157s # 1157s # /** 1157s # * org_project_useful_interface_complete_single_arg_method_b: 1157s # * @object: A #OrgProjectUsefulInterface. 1157s # * @invocation: (transfer full): A #GDBusMethodInvocation. 1157s # * 1157s # * 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. 1157s # * 1157s # * This method will free @invocation, you cannot use it afterwards. 1157s # */ 1157s # void 1157s # org_project_useful_interface_complete_single_arg_method_b ( 1157s # OrgProjectUsefulInterface *object G_GNUC_UNUSED, 1157s # GDBusMethodInvocation *invocation) 1157s # { 1157s # g_dbus_method_invocation_return_value (invocation, 1157s # g_variant_new ("()")); 1157s # } 1157s # 1157s # /* ------------------------------------------------------------------------ */ 1157s # 1157s # /** 1157s # * OrgProjectUsefulInterfaceProxy: 1157s # * 1157s # * The #OrgProjectUsefulInterfaceProxy structure contains only private data and should only be accessed using the provided API. 1157s # */ 1157s # 1157s # /** 1157s # * OrgProjectUsefulInterfaceProxyClass: 1157s # * @parent_class: The parent class. 1157s # * 1157s # * Class structure for #OrgProjectUsefulInterfaceProxy. 1157s # */ 1157s # 1157s # struct _OrgProjectUsefulInterfaceProxyPrivate 1157s # { 1157s # GData *qdata; 1157s # }; 1157s # 1157s # static void org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface); 1157s # 1157s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1157s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 1157s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceProxy) 1157s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 1157s # 1157s # #else 1157s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 1157s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 1157s # 1157s # #endif 1157s # static void 1157s # org_project_useful_interface_proxy_finalize (GObject *object) 1157s # { 1157s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (object); 1157s # g_datalist_clear (&proxy->priv->qdata); 1157s # G_OBJECT_CLASS (org_project_useful_interface_proxy_parent_class)->finalize (object); 1157s # } 1157s # 1157s # static void 1157s # org_project_useful_interface_proxy_get_property (GObject *object G_GNUC_UNUSED, 1157s # guint prop_id G_GNUC_UNUSED, 1157s # GValue *value G_GNUC_UNUSED, 1157s # GParamSpec *pspec G_GNUC_UNUSED) 1157s # { 1157s # } 1157s # 1157s # static void 1157s # org_project_useful_interface_proxy_set_property (GObject *object G_GNUC_UNUSED, 1157s # guint prop_id G_GNUC_UNUSED, 1157s # const GValue *value G_GNUC_UNUSED, 1157s # GParamSpec *pspec G_GNUC_UNUSED) 1157s # { 1157s # } 1157s # 1157s # static void 1157s # org_project_useful_interface_proxy_g_signal (GDBusProxy *proxy, 1157s # const gchar *sender_name G_GNUC_UNUSED, 1157s # const gchar *signal_name, 1157s # GVariant *parameters) 1157s # { 1157s # _ExtendedGDBusSignalInfo *info; 1157s # GVariantIter iter; 1157s # GVariant *child; 1157s # GValue *paramv; 1157s # gsize num_params; 1157s # gsize n; 1157s # guint signal_id; 1157s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, signal_name); 1157s # if (info == NULL) 1157s # return; 1157s # num_params = g_variant_n_children (parameters); 1157s # paramv = g_new0 (GValue, num_params + 1); 1157s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1157s # g_value_set_object (¶mv[0], proxy); 1157s # g_variant_iter_init (&iter, parameters); 1157s # n = 1; 1157s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1157s # { 1157s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 1157s # if (arg_info->use_gvariant) 1157s # { 1157s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1157s # g_value_set_variant (¶mv[n], child); 1157s # n++; 1157s # } 1157s # else 1157s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1157s # g_variant_unref (child); 1157s # } 1157s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1157s # g_signal_emitv (paramv, signal_id, 0, NULL); 1157s # for (n = 0; n < num_params + 1; n++) 1157s # g_value_unset (¶mv[n]); 1157s # g_free (paramv); 1157s # } 1157s # 1157s # static void 1157s # org_project_useful_interface_proxy_g_properties_changed (GDBusProxy *_proxy, 1157s # GVariant *changed_properties, 1157s # const gchar *const *invalidated_properties) 1157s # { 1157s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (_proxy); 1157s # guint n; 1157s # const gchar *key; 1157s # GVariantIter *iter; 1157s # _ExtendedGDBusPropertyInfo *info; 1157s # g_variant_get (changed_properties, "a{sv}", &iter); 1157s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 1157s # { 1157s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, key); 1157s # g_datalist_remove_data (&proxy->priv->qdata, key); 1157s # if (info != NULL) 1157s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1157s # } 1157s # g_variant_iter_free (iter); 1157s # for (n = 0; invalidated_properties[n] != NULL; n++) 1157s # { 1157s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, invalidated_properties[n]); 1157s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 1157s # if (info != NULL) 1157s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1157s # } 1157s # } 1157s # 1157s # static void 1157s # org_project_useful_interface_proxy_init (OrgProjectUsefulInterfaceProxy *proxy) 1157s # { 1157s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1157s # proxy->priv = org_project_useful_interface_proxy_get_instance_private (proxy); 1157s # #else 1157s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY, OrgProjectUsefulInterfaceProxyPrivate); 1157s # #endif 1157s # 1157s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_useful_interface_interface_info ()); 1157s # } 1157s # 1157s # static void 1157s # org_project_useful_interface_proxy_class_init (OrgProjectUsefulInterfaceProxyClass *klass) 1157s # { 1157s # GObjectClass *gobject_class; 1157s # GDBusProxyClass *proxy_class; 1157s # 1157s # gobject_class = G_OBJECT_CLASS (klass); 1157s # gobject_class->finalize = org_project_useful_interface_proxy_finalize; 1157s # gobject_class->get_property = org_project_useful_interface_proxy_get_property; 1157s # gobject_class->set_property = org_project_useful_interface_proxy_set_property; 1157s # 1157s # proxy_class = G_DBUS_PROXY_CLASS (klass); 1157s # proxy_class->g_signal = org_project_useful_interface_proxy_g_signal; 1157s # proxy_class->g_properties_changed = org_project_useful_interface_proxy_g_properties_changed; 1157s # 1157s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1157s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceProxyPrivate)); 1157s # #endif 1157s # } 1157s # 1157s # static void 1157s # org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 1157s # { 1157s # } 1157s # 1157s # /** 1157s # * org_project_useful_interface_proxy_new: 1157s # * @connection: A #GDBusConnection. 1157s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1157s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1157s # * @object_path: An object path. 1157s # * @cancellable: (nullable): A #GCancellable or %NULL. 1157s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1157s # * @user_data: User data to pass to @callback. 1157s # * 1157s # * Asynchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new() for more details. 1157s # * 1157s # * 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()). 1157s # * You can then call org_project_useful_interface_proxy_new_finish() to get the result of the operation. 1157s # * 1157s # * See org_project_useful_interface_proxy_new_sync() for the synchronous, blocking version of this constructor. 1157s # */ 1157s # void 1157s # org_project_useful_interface_proxy_new ( 1157s # GDBusConnection *connection, 1157s # GDBusProxyFlags flags, 1157s # const gchar *name, 1157s # const gchar *object_path, 1157s # GCancellable *cancellable, 1157s # GAsyncReadyCallback callback, 1157s # gpointer user_data) 1157s # { 1157s # 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); 1157s # } 1157s # 1157s # /** 1157s # * org_project_useful_interface_proxy_new_finish: 1157s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new(). 1157s # * @error: Return location for error or %NULL 1157s # * 1157s # * Finishes an operation started with org_project_useful_interface_proxy_new(). 1157s # * 1157s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1157s # */ 1157s # OrgProjectUsefulInterface * 1157s # org_project_useful_interface_proxy_new_finish ( 1157s # GAsyncResult *res, 1157s # GError **error) 1157s # { 1157s # GObject *ret; 1157s # GObject *source_object; 1157s # source_object = g_async_result_get_source_object (res); 1157s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1157s # g_object_unref (source_object); 1157s # if (ret != NULL) 1157s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1157s # else 1157s # return NULL; 1157s # } 1157s # 1157s # /** 1157s # * org_project_useful_interface_proxy_new_sync: 1157s # * @connection: A #GDBusConnection. 1157s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1157s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1157s # * @object_path: An object path. 1157s # * @cancellable: (nullable): A #GCancellable or %NULL. 1157s # * @error: Return location for error or %NULL 1157s # * 1157s # * Synchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new_sync() for more details. 1157s # * 1157s # * The calling thread is blocked until a reply is received. 1157s # * 1157s # * See org_project_useful_interface_proxy_new() for the asynchronous version of this constructor. 1157s # * 1157s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1157s # */ 1157s # OrgProjectUsefulInterface * 1157s # org_project_useful_interface_proxy_new_sync ( 1157s # GDBusConnection *connection, 1157s # GDBusProxyFlags flags, 1157s # const gchar *name, 1157s # const gchar *object_path, 1157s # GCancellable *cancellable, 1157s # GError **error) 1157s # { 1157s # GInitable *ret; 1157s # 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); 1157s # if (ret != NULL) 1157s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1157s # else 1157s # return NULL; 1157s # } 1157s # 1157s # 1157s # /** 1157s # * org_project_useful_interface_proxy_new_for_bus: 1157s # * @bus_type: A #GBusType. 1157s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1157s # * @name: A bus name (well-known or unique). 1157s # * @object_path: An object path. 1157s # * @cancellable: (nullable): A #GCancellable or %NULL. 1157s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1157s # * @user_data: User data to pass to @callback. 1157s # * 1157s # * Like org_project_useful_interface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 1157s # * 1157s # * 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()). 1157s # * You can then call org_project_useful_interface_proxy_new_for_bus_finish() to get the result of the operation. 1157s # * 1157s # * See org_project_useful_interface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 1157s # */ 1157s # void 1157s # org_project_useful_interface_proxy_new_for_bus ( 1157s # GBusType bus_type, 1157s # GDBusProxyFlags flags, 1157s # const gchar *name, 1157s # const gchar *object_path, 1157s # GCancellable *cancellable, 1157s # GAsyncReadyCallback callback, 1157s # gpointer user_data) 1157s # { 1157s # 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); 1157s # } 1157s # 1157s # /** 1157s # * org_project_useful_interface_proxy_new_for_bus_finish: 1157s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new_for_bus(). 1157s # * @error: Return location for error or %NULL 1157s # * 1157s # * Finishes an operation started with org_project_useful_interface_proxy_new_for_bus(). 1157s # * 1157s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1157s # */ 1157s # OrgProjectUsefulInterface * 1157s # org_project_useful_interface_proxy_new_for_bus_finish ( 1157s # GAsyncResult *res, 1157s # GError **error) 1157s # { 1157s # GObject *ret; 1157s # GObject *source_object; 1157s # source_object = g_async_result_get_source_object (res); 1157s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1157s # g_object_unref (source_object); 1157s # if (ret != NULL) 1157s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1157s # else 1157s # return NULL; 1157s # } 1157s # 1157s # /** 1157s # * org_project_useful_interface_proxy_new_for_bus_sync: 1157s # * @bus_type: A #GBusType. 1157s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1157s # * @name: A bus name (well-known or unique). 1157s # * @object_path: An object path. 1157s # * @cancellable: (nullable): A #GCancellable or %NULL. 1157s # * @error: Return location for error or %NULL 1157s # * 1157s # * Like org_project_useful_interface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 1157s # * 1157s # * The calling thread is blocked until a reply is received. 1157s # * 1157s # * See org_project_useful_interface_proxy_new_for_bus() for the asynchronous version of this constructor. 1157s # * 1157s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1157s # */ 1157s # OrgProjectUsefulInterface * 1157s # org_project_useful_interface_proxy_new_for_bus_sync ( 1157s # GBusType bus_type, 1157s # GDBusProxyFlags flags, 1157s # const gchar *name, 1157s # const gchar *object_path, 1157s # GCancellable *cancellable, 1157s # GError **error) 1157s # { 1157s # GInitable *ret; 1157s # 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); 1157s # if (ret != NULL) 1157s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1157s # else 1157s # return NULL; 1157s # } 1157s # 1157s # 1157s # /* ------------------------------------------------------------------------ */ 1157s # 1157s # /** 1157s # * OrgProjectUsefulInterfaceSkeleton: 1157s # * 1157s # * The #OrgProjectUsefulInterfaceSkeleton structure contains only private data and should only be accessed using the provided API. 1157s # */ 1157s # 1157s # /** 1157s # * OrgProjectUsefulInterfaceSkeletonClass: 1157s # * @parent_class: The parent class. 1157s # * 1157s # * Class structure for #OrgProjectUsefulInterfaceSkeleton. 1157s # */ 1157s # 1157s # struct _OrgProjectUsefulInterfaceSkeletonPrivate 1157s # { 1157s # GValue *properties; 1157s # GList *changed_properties; 1157s # GSource *changed_properties_idle_source; 1157s # GMainContext *context; 1157s # GMutex lock; 1157s # }; 1157s # 1157s # static void 1157s # _org_project_useful_interface_skeleton_handle_method_call ( 1157s # GDBusConnection *connection G_GNUC_UNUSED, 1157s # const gchar *sender G_GNUC_UNUSED, 1157s # const gchar *object_path G_GNUC_UNUSED, 1157s # const gchar *interface_name, 1157s # const gchar *method_name, 1157s # GVariant *parameters, 1157s # GDBusMethodInvocation *invocation, 1157s # gpointer user_data) 1157s # { 1157s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1157s # _ExtendedGDBusMethodInfo *info; 1157s # GVariantIter iter; 1157s # GVariant *child; 1157s # GValue *paramv; 1157s # gsize num_params; 1157s # guint num_extra; 1157s # gsize n; 1157s # guint signal_id; 1157s # GValue return_value = G_VALUE_INIT; 1157s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 1157s # g_assert (info != NULL); 1157s # num_params = g_variant_n_children (parameters); 1157s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 1157s # n = 0; 1157s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1157s # g_value_set_object (¶mv[n++], skeleton); 1157s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 1157s # g_value_set_object (¶mv[n++], invocation); 1157s # if (info->pass_fdlist) 1157s # { 1157s # #ifdef G_OS_UNIX 1157s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 1157s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 1157s # #else 1157s # g_assert_not_reached (); 1157s # #endif 1157s # } 1157s # g_variant_iter_init (&iter, parameters); 1157s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1157s # { 1157s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 1157s # if (arg_info->use_gvariant) 1157s # { 1157s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1157s # g_value_set_variant (¶mv[n], child); 1157s # n++; 1157s # } 1157s # else 1157s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1157s # g_variant_unref (child); 1157s # } 1157s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1157s # g_value_init (&return_value, G_TYPE_BOOLEAN); 1157s # g_signal_emitv (paramv, signal_id, 0, &return_value); 1157s # if (!g_value_get_boolean (&return_value)) 1157s # 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); 1157s # g_value_unset (&return_value); 1157s # for (n = 0; n < num_params + num_extra; n++) 1157s # g_value_unset (¶mv[n]); 1157s # g_free (paramv); 1157s # } 1157s # 1157s # static GVariant * 1157s # _org_project_useful_interface_skeleton_handle_get_property ( 1157s # GDBusConnection *connection G_GNUC_UNUSED, 1157s # const gchar *sender G_GNUC_UNUSED, 1157s # const gchar *object_path G_GNUC_UNUSED, 1158s # const gchar *interface_name G_GNUC_UNUSED, 1158s # const gchar *property_name, 1158s # GError **error, 1158s # gpointer user_data) 1158s # { 1158s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1158s # GValue value = G_VALUE_INIT; 1158s # GParamSpec *pspec; 1158s # _ExtendedGDBusPropertyInfo *info; 1158s # GVariant *ret; 1158s # ret = NULL; 1158s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 1158s # g_assert (info != NULL); 1158s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1158s # if (pspec == NULL) 1158s # { 1158s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1158s # } 1158s # else 1158s # { 1158s # g_value_init (&value, pspec->value_type); 1158s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1158s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 1158s # g_value_unset (&value); 1158s # } 1158s # return ret; 1158s # } 1158s # 1158s # static gboolean 1158s # _org_project_useful_interface_skeleton_handle_set_property ( 1158s # GDBusConnection *connection G_GNUC_UNUSED, 1158s # const gchar *sender G_GNUC_UNUSED, 1158s # const gchar *object_path G_GNUC_UNUSED, 1158s # const gchar *interface_name G_GNUC_UNUSED, 1158s # const gchar *property_name, 1158s # GVariant *variant, 1158s # GError **error, 1158s # gpointer user_data) 1158s # { 1158s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1158s # GValue value = G_VALUE_INIT; 1158s # GParamSpec *pspec; 1158s # _ExtendedGDBusPropertyInfo *info; 1158s # gboolean ret; 1158s # ret = FALSE; 1158s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 1158s # g_assert (info != NULL); 1158s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1158s # if (pspec == NULL) 1158s # { 1158s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1158s # } 1158s # else 1158s # { 1158s # if (info->use_gvariant) 1158s # g_value_set_variant (&value, variant); 1158s # else 1158s # g_dbus_gvariant_to_gvalue (variant, &value); 1158s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1158s # g_value_unset (&value); 1158s # ret = TRUE; 1158s # } 1158s # return ret; 1158s # } 1158s # 1158s # static const GDBusInterfaceVTable _org_project_useful_interface_skeleton_vtable = 1158s # { 1158s # _org_project_useful_interface_skeleton_handle_method_call, 1158s # _org_project_useful_interface_skeleton_handle_get_property, 1158s # _org_project_useful_interface_skeleton_handle_set_property, 1158s # {NULL} 1158s # }; 1158s # 1158s # static GDBusInterfaceInfo * 1158s # org_project_useful_interface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1158s # { 1158s # return org_project_useful_interface_interface_info (); 1158s # } 1158s # 1158s # static GDBusInterfaceVTable * 1158s # org_project_useful_interface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1158s # { 1158s # return (GDBusInterfaceVTable *) &_org_project_useful_interface_skeleton_vtable; 1158s # } 1158s # 1158s # static GVariant * 1158s # org_project_useful_interface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 1158s # { 1158s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (_skeleton); 1158s # 1158s # GVariantBuilder builder; 1158s # guint n; 1158s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 1158s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 1158s # #else 1158s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 1158s # #endif 1158s # if (_org_project_useful_interface_interface_info.parent_struct.properties == NULL) 1158s # goto out; 1158s # for (n = 0; _org_project_useful_interface_interface_info.parent_struct.properties[n] != NULL; n++) 1158s # { 1158s # GDBusPropertyInfo *info = _org_project_useful_interface_interface_info.parent_struct.properties[n]; 1158s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 1158s # { 1158s # GVariant *value; 1158s # 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); 1158s # if (value != NULL) 1158s # { 1158s # g_variant_take_ref (value); 1158s # g_variant_builder_add (&builder, "{sv}", info->name, value); 1158s # g_variant_unref (value); 1158s # } 1158s # } 1158s # } 1158s # out: 1158s # return g_variant_builder_end (&builder); 1158s # } 1158s # 1158s # static void 1158s # org_project_useful_interface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 1158s # { 1158s # } 1158s # 1158s # static void org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface); 1158s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1158s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1158s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceSkeleton) 1158s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 1158s # 1158s # #else 1158s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1158s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 1158s # 1158s # #endif 1158s # static void 1158s # org_project_useful_interface_skeleton_finalize (GObject *object) 1158s # { 1158s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (object); 1158s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 1158s # if (skeleton->priv->changed_properties_idle_source != NULL) 1158s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 1158s # g_main_context_unref (skeleton->priv->context); 1158s # g_mutex_clear (&skeleton->priv->lock); 1158s # G_OBJECT_CLASS (org_project_useful_interface_skeleton_parent_class)->finalize (object); 1158s # } 1158s # 1158s # static void 1158s # org_project_useful_interface_skeleton_init (OrgProjectUsefulInterfaceSkeleton *skeleton) 1158s # { 1158s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1158s # skeleton->priv = org_project_useful_interface_skeleton_get_instance_private (skeleton); 1158s # #else 1158s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, OrgProjectUsefulInterfaceSkeletonPrivate); 1158s # #endif 1158s # 1158s # g_mutex_init (&skeleton->priv->lock); 1158s # skeleton->priv->context = g_main_context_ref_thread_default (); 1158s # } 1158s # 1158s # static void 1158s # org_project_useful_interface_skeleton_class_init (OrgProjectUsefulInterfaceSkeletonClass *klass) 1158s # { 1158s # GObjectClass *gobject_class; 1158s # GDBusInterfaceSkeletonClass *skeleton_class; 1158s # 1158s # gobject_class = G_OBJECT_CLASS (klass); 1158s # gobject_class->finalize = org_project_useful_interface_skeleton_finalize; 1158s # 1158s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 1158s # skeleton_class->get_info = org_project_useful_interface_skeleton_dbus_interface_get_info; 1158s # skeleton_class->get_properties = org_project_useful_interface_skeleton_dbus_interface_get_properties; 1158s # skeleton_class->flush = org_project_useful_interface_skeleton_dbus_interface_flush; 1158s # skeleton_class->get_vtable = org_project_useful_interface_skeleton_dbus_interface_get_vtable; 1158s # 1158s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1158s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceSkeletonPrivate)); 1158s # #endif 1158s # } 1158s # 1158s # static void 1158s # org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 1158s # { 1158s # } 1158s # 1158s # /** 1158s # * org_project_useful_interface_skeleton_new: 1158s # * 1158s # * Creates a skeleton object for the D-Bus interface org.project.UsefulInterface. 1158s # * 1158s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceSkeleton): The skeleton object. 1158s # */ 1158s # OrgProjectUsefulInterface * 1158s # org_project_useful_interface_skeleton_new (void) 1158s # { 1158s # return ORG_PROJECT_USEFUL_INTERFACE (g_object_new (TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, NULL)); 1158s # } 1158s # Error: 1158s # 1158s # /tmp/tmpv_fj8nn0/tmpb691cnip.xml: 1158s # 1158s # 1158s # 1158s # 1158s # 1158s # 1158s # 1158s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpv_fj8nn0/tmpb691cnip.xml', '--output', '-', '--body'] 1158s # Return code: 0 1158s # Output: 1158s # /* 1158s # * This file is generated by gdbus-codegen, do not modify it. 1158s # * 1158s # * The license of this code is the same as for the D-Bus interface description 1158s # * it was derived from. Note that it links to GLib, so must comply with the 1158s # * LGPL linking clauses. 1158s # */ 1158s # 1158s # #ifdef HAVE_CONFIG_H 1158s # # include "config.h" 1158s # #endif 1158s # 1158s # #include 1158s # #ifdef G_OS_UNIX 1158s # # include 1158s # #endif 1158s # 1158s # #ifdef G_ENABLE_DEBUG 1158s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 1158s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 1158s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 1158s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 1158s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 1158s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 1158s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 1158s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 1158s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 1158s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 1158s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 1158s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 1158s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 1158s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 1158s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 1158s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 1158s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 1158s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 1158s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 1158s # #else /* !G_ENABLE_DEBUG */ 1158s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 1158s # * Do not access GValues directly in your code. Instead, use the 1158s # * g_value_get_*() functions 1158s # */ 1158s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 1158s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 1158s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 1158s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 1158s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 1158s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 1158s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 1158s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 1158s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 1158s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 1158s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 1158s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 1158s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 1158s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 1158s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 1158s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 1158s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 1158s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 1158s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 1158s # #endif /* !G_ENABLE_DEBUG */ 1158s # 1158s # typedef struct 1158s # { 1158s # GDBusArgInfo parent_struct; 1158s # gboolean use_gvariant; 1158s # } _ExtendedGDBusArgInfo; 1158s # 1158s # typedef struct 1158s # { 1158s # GDBusMethodInfo parent_struct; 1158s # const gchar *signal_name; 1158s # gboolean pass_fdlist; 1158s # } _ExtendedGDBusMethodInfo; 1158s # 1158s # typedef struct 1158s # { 1158s # GDBusSignalInfo parent_struct; 1158s # const gchar *signal_name; 1158s # } _ExtendedGDBusSignalInfo; 1158s # 1158s # typedef struct 1158s # { 1158s # GDBusPropertyInfo parent_struct; 1158s # const gchar *hyphen_name; 1158s # guint use_gvariant : 1; 1158s # guint emits_changed_signal : 1; 1158s # } _ExtendedGDBusPropertyInfo; 1158s # 1158s # typedef struct 1158s # { 1158s # GDBusInterfaceInfo parent_struct; 1158s # const gchar *hyphen_name; 1158s # } _ExtendedGDBusInterfaceInfo; 1158s # 1158s # typedef struct 1158s # { 1158s # const _ExtendedGDBusPropertyInfo *info; 1158s # guint prop_id; 1158s # GValue orig_value; /* the value before the change */ 1158s # } ChangedProperty; 1158s # 1158s # static void 1158s # _changed_property_free (ChangedProperty *data) 1158s # { 1158s # g_value_unset (&data->orig_value); 1158s # g_free (data); 1158s # } 1158s # 1158s # static gboolean 1158s # _g_strv_equal0 (gchar **a, gchar **b) 1158s # { 1158s # gboolean ret = FALSE; 1158s # guint n; 1158s # if (a == NULL && b == NULL) 1158s # { 1158s # ret = TRUE; 1158s # goto out; 1158s # } 1158s # if (a == NULL || b == NULL) 1158s # goto out; 1158s # if (g_strv_length (a) != g_strv_length (b)) 1158s # goto out; 1158s # for (n = 0; a[n] != NULL; n++) 1158s # if (g_strcmp0 (a[n], b[n]) != 0) 1158s # goto out; 1158s # ret = TRUE; 1158s # out: 1158s # return ret; 1158s # } 1158s # 1158s # static gboolean 1158s # _g_variant_equal0 (GVariant *a, GVariant *b) 1158s # { 1158s # gboolean ret = FALSE; 1158s # if (a == NULL && b == NULL) 1158s # { 1158s # ret = TRUE; 1158s # goto out; 1158s # } 1158s # if (a == NULL || b == NULL) 1158s # goto out; 1158s # ret = g_variant_equal (a, b); 1158s # out: 1158s # return ret; 1158s # } 1158s # 1158s # G_GNUC_UNUSED static gboolean 1158s # _g_value_equal (const GValue *a, const GValue *b) 1158s # { 1158s # gboolean ret = FALSE; 1158s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 1158s # switch (G_VALUE_TYPE (a)) 1158s # { 1158s # case G_TYPE_BOOLEAN: 1158s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 1158s # break; 1158s # case G_TYPE_UCHAR: 1158s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 1158s # break; 1158s # case G_TYPE_INT: 1158s # ret = (g_value_get_int (a) == g_value_get_int (b)); 1158s # break; 1158s # case G_TYPE_UINT: 1158s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 1158s # break; 1158s # case G_TYPE_INT64: 1158s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 1158s # break; 1158s # case G_TYPE_UINT64: 1158s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 1158s # break; 1158s # case G_TYPE_DOUBLE: 1158s # { 1158s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 1158s # gdouble da = g_value_get_double (a); 1158s # gdouble db = g_value_get_double (b); 1158s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 1158s # } 1158s # break; 1158s # case G_TYPE_STRING: 1158s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 1158s # break; 1158s # case G_TYPE_VARIANT: 1158s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 1158s # break; 1158s # default: 1158s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 1158s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 1158s # else 1158s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 1158s # break; 1158s # } 1158s # return ret; 1158s # } 1158s # 1158s # static void 1158s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT_UCHAR ( 1158s # GClosure *closure, 1158s # GValue *return_value, 1158s # unsigned int n_param_values, 1158s # const GValue *param_values, 1158s # void *invocation_hint G_GNUC_UNUSED, 1158s # void *marshal_data) 1158s # { 1158s # typedef gboolean (*_GDbusCodegenMarshalBoolean_ObjectUcharFunc) 1158s # (void *data1, 1158s # GDBusMethodInvocation *arg_method_invocation, 1158s # guchar arg_arg_y, 1158s # void *data2); 1158s # _GDbusCodegenMarshalBoolean_ObjectUcharFunc callback; 1158s # GCClosure *cc = (GCClosure*) closure; 1158s # void *data1, *data2; 1158s # gboolean v_return; 1158s # 1158s # g_return_if_fail (return_value != NULL); 1158s # g_return_if_fail (n_param_values == 3); 1158s # 1158s # if (G_CCLOSURE_SWAP_DATA (closure)) 1158s # { 1158s # data1 = closure->data; 1158s # data2 = g_value_peek_pointer (param_values + 0); 1158s # } 1158s # else 1158s # { 1158s # data1 = g_value_peek_pointer (param_values + 0); 1158s # data2 = closure->data; 1158s # } 1158s # 1158s # callback = (_GDbusCodegenMarshalBoolean_ObjectUcharFunc) 1158s # (marshal_data ? marshal_data : cc->callback); 1158s # 1158s # v_return = 1158s # callback (data1, 1158s # g_marshal_value_peek_object (param_values + 1), 1158s # g_marshal_value_peek_uchar (param_values + 2), 1158s # data2); 1158s # 1158s # g_value_set_boolean (return_value, v_return); 1158s # } 1158s # 1158s # /* ------------------------------------------------------------------------ 1158s # * Code for interface org.project.UsefulInterface 1158s # * ------------------------------------------------------------------------ 1158s # */ 1158s # 1158s # /** 1158s # * SECTION:OrgProjectUsefulInterface 1158s # * @title: OrgProjectUsefulInterface 1158s # * @short_description: Generated C code for the org.project.UsefulInterface D-Bus interface 1158s # * 1158s # * This section contains code for working with the org.project.UsefulInterface D-Bus interface in C. 1158s # */ 1158s # 1158s # /* ---- Introspection data for org.project.UsefulInterface ---- */ 1158s # 1158s # static const _ExtendedGDBusArgInfo _org_project_useful_interface_method_info_single_arg_method_y_IN_ARG_arg_y = 1158s # { 1158s # { 1158s # -1, 1158s # (gchar *) "arg_y", 1158s # (gchar *) "y", 1158s # NULL 1158s # }, 1158s # FALSE 1158s # }; 1158s # 1158s # static const GDBusArgInfo * const _org_project_useful_interface_method_info_single_arg_method_y_IN_ARG_pointers[] = 1158s # { 1158s # &_org_project_useful_interface_method_info_single_arg_method_y_IN_ARG_arg_y.parent_struct, 1158s # NULL 1158s # }; 1158s # 1158s # static const _ExtendedGDBusMethodInfo _org_project_useful_interface_method_info_single_arg_method_y = 1158s # { 1158s # { 1158s # -1, 1158s # (gchar *) "SingleArgMethodY", 1158s # (GDBusArgInfo **) &_org_project_useful_interface_method_info_single_arg_method_y_IN_ARG_pointers, 1158s # NULL, 1158s # NULL 1158s # }, 1158s # "handle-single-arg-method-y", 1158s # FALSE 1158s # }; 1158s # 1158s # static const GDBusMethodInfo * const _org_project_useful_interface_method_info_pointers[] = 1158s # { 1158s # &_org_project_useful_interface_method_info_single_arg_method_y.parent_struct, 1158s # NULL 1158s # }; 1158s # 1158s # static const _ExtendedGDBusInterfaceInfo _org_project_useful_interface_interface_info = 1158s # { 1158s # { 1158s # -1, 1158s # (gchar *) "org.project.UsefulInterface", 1158s # (GDBusMethodInfo **) &_org_project_useful_interface_method_info_pointers, 1158s # NULL, 1158s # NULL, 1158s # NULL 1158s # }, 1158s # "org-project-useful-interface", 1158s # }; 1158s # 1158s # 1158s # /** 1158s # * org_project_useful_interface_interface_info: 1158s # * 1158s # * Gets a machine-readable description of the org.project.UsefulInterface D-Bus interface. 1158s # * 1158s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 1158s # */ 1158s # GDBusInterfaceInfo * 1158s # org_project_useful_interface_interface_info (void) 1158s # { 1158s # return (GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct; 1158s # } 1158s # 1158s # /** 1158s # * org_project_useful_interface_override_properties: 1158s # * @klass: The class structure for a #GObject derived class. 1158s # * @property_id_begin: The property id to assign to the first overridden property. 1158s # * 1158s # * Overrides all #GObject properties in the #OrgProjectUsefulInterface interface for a concrete class. 1158s # * The properties are overridden in the order they are defined. 1158s # * 1158s # * Returns: The last property id. 1158s # */ 1158s # guint 1158s # org_project_useful_interface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 1158s # { 1158s # return property_id_begin - 1; 1158s # } 1158s # 1158s # 1158s # inline static void 1158s # org_project_useful_interface_method_marshal_single_arg_method_y ( 1158s # GClosure *closure, 1158s # GValue *return_value, 1158s # unsigned int n_param_values, 1158s # const GValue *param_values, 1158s # void *invocation_hint, 1158s # void *marshal_data) 1158s # { 1158s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT_UCHAR (closure, 1158s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1158s # } 1158s # 1158s # 1158s # /** 1158s # * OrgProjectUsefulInterface: 1158s # * 1158s # * Abstract interface type for the D-Bus interface org.project.UsefulInterface. 1158s # */ 1158s # 1158s # /** 1158s # * OrgProjectUsefulInterfaceIface: 1158s # * @parent_iface: The parent interface. 1158s # * @handle_single_arg_method_y: Handler for the #OrgProjectUsefulInterface::handle-single-arg-method-y signal. 1158s # * 1158s # * Virtual table for the D-Bus interface org.project.UsefulInterface. 1158s # */ 1158s # 1158s # typedef OrgProjectUsefulInterfaceIface OrgProjectUsefulInterfaceInterface; 1158s # G_DEFINE_INTERFACE (OrgProjectUsefulInterface, org_project_useful_interface, G_TYPE_OBJECT) 1158s # 1158s # static void 1158s # org_project_useful_interface_default_init (OrgProjectUsefulInterfaceIface *iface) 1158s # { 1158s # /* GObject signals for incoming D-Bus method calls: */ 1158s # /** 1158s # * OrgProjectUsefulInterface::handle-single-arg-method-y: 1158s # * @object: A #OrgProjectUsefulInterface. 1158s # * @invocation: A #GDBusMethodInvocation. 1158s # * @arg_arg_y: Argument passed by remote caller. 1158s # * 1158s # * Signal emitted when a remote caller is invoking the SingleArgMethodY() D-Bus method. 1158s # * 1158s # * 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. 1158s # * 1158s # * 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. 1158s # */ 1158s # g_signal_new ("handle-single-arg-method-y", 1158s # G_TYPE_FROM_INTERFACE (iface), 1158s # G_SIGNAL_RUN_LAST, 1158s # G_STRUCT_OFFSET (OrgProjectUsefulInterfaceIface, handle_single_arg_method_y), 1158s # g_signal_accumulator_true_handled, 1158s # NULL, 1158s # org_project_useful_interface_method_marshal_single_arg_method_y, 1158s # G_TYPE_BOOLEAN, 1158s # 2, 1158s # G_TYPE_DBUS_METHOD_INVOCATION, G_TYPE_UCHAR); 1158s # 1158s # } 1158s # 1158s # /** 1158s # * org_project_useful_interface_call_single_arg_method_y: 1158s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1158s # * @arg_arg_y: Argument to pass with the method invocation. 1158s # * @cancellable: (nullable): A #GCancellable or %NULL. 1158s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL. 1158s # * @user_data: User data to pass to @callback. 1158s # * 1158s # * Asynchronously invokes the SingleArgMethodY() D-Bus method on @proxy. 1158s # * 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()). 1158s # * You can then call org_project_useful_interface_call_single_arg_method_y_finish() to get the result of the operation. 1158s # * 1158s # * See org_project_useful_interface_call_single_arg_method_y_sync() for the synchronous, blocking version of this method. 1158s # */ 1158s # void 1158s # org_project_useful_interface_call_single_arg_method_y ( 1158s # OrgProjectUsefulInterface *proxy, 1158s # guchar arg_arg_y, 1158s # GCancellable *cancellable, 1158s # GAsyncReadyCallback callback, 1158s # gpointer user_data) 1158s # { 1158s # g_dbus_proxy_call (G_DBUS_PROXY (proxy), 1158s # "SingleArgMethodY", 1158s # g_variant_new ("(y)", 1158s # arg_arg_y), 1158s # G_DBUS_CALL_FLAGS_NONE, 1158s # -1, 1158s # cancellable, 1158s # callback, 1158s # user_data); 1158s # } 1158s # 1158s # /** 1158s # * org_project_useful_interface_call_single_arg_method_y_finish: 1158s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1158s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_call_single_arg_method_y(). 1158s # * @error: Return location for error or %NULL. 1158s # * 1158s # * Finishes an operation started with org_project_useful_interface_call_single_arg_method_y(). 1158s # * 1158s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1158s # */ 1158s # gboolean 1158s # org_project_useful_interface_call_single_arg_method_y_finish ( 1158s # OrgProjectUsefulInterface *proxy, 1158s # GAsyncResult *res, 1158s # GError **error) 1158s # { 1158s # GVariant *_ret; 1158s # _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error); 1158s # if (_ret == NULL) 1158s # goto _out; 1158s # g_variant_get (_ret, 1158s # "()"); 1158s # g_variant_unref (_ret); 1158s # _out: 1158s # return _ret != NULL; 1158s # } 1158s # 1158s # /** 1158s # * org_project_useful_interface_call_single_arg_method_y_sync: 1158s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1158s # * @arg_arg_y: Argument to pass with the method invocation. 1158s # * @cancellable: (nullable): A #GCancellable or %NULL. 1158s # * @error: Return location for error or %NULL. 1158s # * 1158s # * Synchronously invokes the SingleArgMethodY() D-Bus method on @proxy. The calling thread is blocked until a reply is received. 1158s # * 1158s # * See org_project_useful_interface_call_single_arg_method_y() for the asynchronous version of this method. 1158s # * 1158s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1158s # */ 1158s # gboolean 1158s # org_project_useful_interface_call_single_arg_method_y_sync ( 1158s # OrgProjectUsefulInterface *proxy, 1158s # guchar arg_arg_y, 1158s # GCancellable *cancellable, 1158s # GError **error) 1158s # { 1158s # GVariant *_ret; 1158s # _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy), 1158s # "SingleArgMethodY", 1158s # g_variant_new ("(y)", 1158s # arg_arg_y), 1158s # G_DBUS_CALL_FLAGS_NONE, 1158s # -1, 1158s # cancellable, 1158s # error); 1158s # if (_ret == NULL) 1158s # goto _out; 1158s # g_variant_get (_ret, 1158s # "()"); 1158s # g_variant_unref (_ret); 1158s # _out: 1158s # return _ret != NULL; 1158s # } 1158s # 1158s # /** 1158s # * org_project_useful_interface_complete_single_arg_method_y: 1158s # * @object: A #OrgProjectUsefulInterface. 1158s # * @invocation: (transfer full): A #GDBusMethodInvocation. 1158s # * 1158s # * 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. 1158s # * 1158s # * This method will free @invocation, you cannot use it afterwards. 1158s # */ 1158s # void 1158s # org_project_useful_interface_complete_single_arg_method_y ( 1158s # OrgProjectUsefulInterface *object G_GNUC_UNUSED, 1158s # GDBusMethodInvocation *invocation) 1158s # { 1158s # g_dbus_method_invocation_return_value (invocation, 1158s # g_variant_new ("()")); 1158s # } 1158s # 1158s # /* ------------------------------------------------------------------------ */ 1158s # 1158s # /** 1158s # * OrgProjectUsefulInterfaceProxy: 1158s # * 1158s # * The #OrgProjectUsefulInterfaceProxy structure contains only private data and should only be accessed using the provided API. 1158s # */ 1158s # 1158s # /** 1158s # * OrgProjectUsefulInterfaceProxyClass: 1158s # * @parent_class: The parent class. 1158s # * 1158s # * Class structure for #OrgProjectUsefulInterfaceProxy. 1158s # */ 1158s # 1158s # struct _OrgProjectUsefulInterfaceProxyPrivate 1158s # { 1158s # GData *qdata; 1158s # }; 1158s # 1158s # static void org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface); 1158s # 1158s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1158s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 1158s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceProxy) 1158s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 1158s # 1158s # #else 1158s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 1158s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 1158s # 1158s # #endif 1158s # static void 1158s # org_project_useful_interface_proxy_finalize (GObject *object) 1158s # { 1158s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (object); 1158s # g_datalist_clear (&proxy->priv->qdata); 1158s # G_OBJECT_CLASS (org_project_useful_interface_proxy_parent_class)->finalize (object); 1158s # } 1158s # 1158s # static void 1158s # org_project_useful_interface_proxy_get_property (GObject *object G_GNUC_UNUSED, 1158s # guint prop_id G_GNUC_UNUSED, 1158s # GValue *value G_GNUC_UNUSED, 1158s # GParamSpec *pspec G_GNUC_UNUSED) 1158s # { 1158s # } 1158s # 1158s # static void 1158s # org_project_useful_interface_proxy_set_property (GObject *object G_GNUC_UNUSED, 1158s # guint prop_id G_GNUC_UNUSED, 1158s # const GValue *value G_GNUC_UNUSED, 1158s # GParamSpec *pspec G_GNUC_UNUSED) 1158s # { 1158s # } 1158s # 1158s # static void 1158s # org_project_useful_interface_proxy_g_signal (GDBusProxy *proxy, 1158s # const gchar *sender_name G_GNUC_UNUSED, 1158s # const gchar *signal_name, 1158s # GVariant *parameters) 1158s # { 1158s # _ExtendedGDBusSignalInfo *info; 1158s # GVariantIter iter; 1158s # GVariant *child; 1158s # GValue *paramv; 1158s # gsize num_params; 1158s # gsize n; 1158s # guint signal_id; 1158s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, signal_name); 1158s # if (info == NULL) 1158s # return; 1158s # num_params = g_variant_n_children (parameters); 1158s # paramv = g_new0 (GValue, num_params + 1); 1158s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1158s # g_value_set_object (¶mv[0], proxy); 1158s # g_variant_iter_init (&iter, parameters); 1158s # n = 1; 1158s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1158s # { 1158s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 1158s # if (arg_info->use_gvariant) 1158s # { 1158s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1158s # g_value_set_variant (¶mv[n], child); 1158s # n++; 1158s # } 1158s # else 1158s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1158s # g_variant_unref (child); 1158s # } 1158s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1158s # g_signal_emitv (paramv, signal_id, 0, NULL); 1158s # for (n = 0; n < num_params + 1; n++) 1158s # g_value_unset (¶mv[n]); 1158s # g_free (paramv); 1158s # } 1158s # 1158s # static void 1158s # org_project_useful_interface_proxy_g_properties_changed (GDBusProxy *_proxy, 1158s # GVariant *changed_properties, 1158s # const gchar *const *invalidated_properties) 1158s # { 1158s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (_proxy); 1158s # guint n; 1158s # const gchar *key; 1158s # GVariantIter *iter; 1158s # _ExtendedGDBusPropertyInfo *info; 1158s # g_variant_get (changed_properties, "a{sv}", &iter); 1158s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 1158s # { 1158s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, key); 1158s # g_datalist_remove_data (&proxy->priv->qdata, key); 1158s # if (info != NULL) 1158s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1158s # } 1158s # g_variant_iter_free (iter); 1158s # for (n = 0; invalidated_properties[n] != NULL; n++) 1158s # { 1158s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, invalidated_properties[n]); 1158s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 1158s # if (info != NULL) 1158s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1158s # } 1158s # } 1158s # 1158s # static void 1158s # org_project_useful_interface_proxy_init (OrgProjectUsefulInterfaceProxy *proxy) 1158s # { 1158s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1158s # proxy->priv = org_project_useful_interface_proxy_get_instance_private (proxy); 1158s # #else 1158s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY, OrgProjectUsefulInterfaceProxyPrivate); 1158s # #endif 1158s # 1158s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_useful_interface_interface_info ()); 1158s # } 1158s # 1158s # static void 1158s # org_project_useful_interface_proxy_class_init (OrgProjectUsefulInterfaceProxyClass *klass) 1158s # { 1158s # GObjectClass *gobject_class; 1158s # GDBusProxyClass *proxy_class; 1158s # 1158s # gobject_class = G_OBJECT_CLASS (klass); 1158s # gobject_class->finalize = org_project_useful_interface_proxy_finalize; 1158s # gobject_class->get_property = org_project_useful_interface_proxy_get_property; 1158s # gobject_class->set_property = org_project_useful_interface_proxy_set_property; 1158s # 1158s # proxy_class = G_DBUS_PROXY_CLASS (klass); 1158s # proxy_class->g_signal = org_project_useful_interface_proxy_g_signal; 1158s # proxy_class->g_properties_changed = org_project_useful_interface_proxy_g_properties_changed; 1158s # 1158s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1158s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceProxyPrivate)); 1158s # #endif 1158s # } 1158s # 1158s # static void 1158s # org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 1158s # { 1158s # } 1158s # 1158s # /** 1158s # * org_project_useful_interface_proxy_new: 1158s # * @connection: A #GDBusConnection. 1158s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1158s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1158s # * @object_path: An object path. 1158s # * @cancellable: (nullable): A #GCancellable or %NULL. 1158s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1158s # * @user_data: User data to pass to @callback. 1158s # * 1158s # * Asynchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new() for more details. 1158s # * 1158s # * 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()). 1158s # * You can then call org_project_useful_interface_proxy_new_finish() to get the result of the operation. 1158s # * 1158s # * See org_project_useful_interface_proxy_new_sync() for the synchronous, blocking version of this constructor. 1158s # */ 1158s # void 1158s # org_project_useful_interface_proxy_new ( 1158s # GDBusConnection *connection, 1158s # GDBusProxyFlags flags, 1158s # const gchar *name, 1158s # const gchar *object_path, 1158s # GCancellable *cancellable, 1158s # GAsyncReadyCallback callback, 1158s # gpointer user_data) 1158s # { 1158s # 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); 1158s # } 1158s # 1158s # /** 1158s # * org_project_useful_interface_proxy_new_finish: 1158s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new(). 1158s # * @error: Return location for error or %NULL 1158s # * 1158s # * Finishes an operation started with org_project_useful_interface_proxy_new(). 1158s # * 1158s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1158s # */ 1158s # OrgProjectUsefulInterface * 1158s # org_project_useful_interface_proxy_new_finish ( 1158s # GAsyncResult *res, 1158s # GError **error) 1158s # { 1158s # GObject *ret; 1158s # GObject *source_object; 1158s # source_object = g_async_result_get_source_object (res); 1158s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1158s # g_object_unref (source_object); 1158s # if (ret != NULL) 1158s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1158s # else 1158s # return NULL; 1158s # } 1158s # 1158s # /** 1158s # * org_project_useful_interface_proxy_new_sync: 1158s # * @connection: A #GDBusConnection. 1158s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1158s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1158s # * @object_path: An object path. 1158s # * @cancellable: (nullable): A #GCancellable or %NULL. 1158s # * @error: Return location for error or %NULL 1158s # * 1158s # * Synchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new_sync() for more details. 1158s # * 1158s # * The calling thread is blocked until a reply is received. 1158s # * 1158s # * See org_project_useful_interface_proxy_new() for the asynchronous version of this constructor. 1158s # * 1158s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1158s # */ 1158s # OrgProjectUsefulInterface * 1158s # org_project_useful_interface_proxy_new_sync ( 1158s # GDBusConnection *connection, 1158s # GDBusProxyFlags flags, 1158s # const gchar *name, 1158s # const gchar *object_path, 1158s # GCancellable *cancellable, 1158s # GError **error) 1158s # { 1158s # GInitable *ret; 1158s # 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); 1158s # if (ret != NULL) 1158s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1158s # else 1158s # return NULL; 1158s # } 1158s # 1158s # 1158s # /** 1158s # * org_project_useful_interface_proxy_new_for_bus: 1158s # * @bus_type: A #GBusType. 1158s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1158s # * @name: A bus name (well-known or unique). 1158s # * @object_path: An object path. 1158s # * @cancellable: (nullable): A #GCancellable or %NULL. 1158s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1158s # * @user_data: User data to pass to @callback. 1158s # * 1158s # * Like org_project_useful_interface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 1158s # * 1158s # * 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()). 1158s # * You can then call org_project_useful_interface_proxy_new_for_bus_finish() to get the result of the operation. 1158s # * 1158s # * See org_project_useful_interface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 1158s # */ 1158s # void 1158s # org_project_useful_interface_proxy_new_for_bus ( 1158s # GBusType bus_type, 1158s # GDBusProxyFlags flags, 1158s # const gchar *name, 1158s # const gchar *object_path, 1158s # GCancellable *cancellable, 1158s # GAsyncReadyCallback callback, 1158s # gpointer user_data) 1158s # { 1158s # 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); 1158s # } 1158s # 1158s # /** 1158s # * org_project_useful_interface_proxy_new_for_bus_finish: 1158s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new_for_bus(). 1158s # * @error: Return location for error or %NULL 1158s # * 1158s # * Finishes an operation started with org_project_useful_interface_proxy_new_for_bus(). 1158s # * 1158s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1158s # */ 1158s # OrgProjectUsefulInterface * 1158s # org_project_useful_interface_proxy_new_for_bus_finish ( 1158s # GAsyncResult *res, 1158s # GError **error) 1158s # { 1158s # GObject *ret; 1158s # GObject *source_object; 1158s # source_object = g_async_result_get_source_object (res); 1158s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1158s # g_object_unref (source_object); 1158s # if (ret != NULL) 1158s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1158s # else 1158s # return NULL; 1158s # } 1158s # 1158s # /** 1158s # * org_project_useful_interface_proxy_new_for_bus_sync: 1158s # * @bus_type: A #GBusType. 1158s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1158s # * @name: A bus name (well-known or unique). 1158s # * @object_path: An object path. 1158s # * @cancellable: (nullable): A #GCancellable or %NULL. 1158s # * @error: Return location for error or %NULL 1158s # * 1158s # * Like org_project_useful_interface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 1158s # * 1158s # * The calling thread is blocked until a reply is received. 1158s # * 1158s # * See org_project_useful_interface_proxy_new_for_bus() for the asynchronous version of this constructor. 1158s # * 1158s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1158s # */ 1158s # OrgProjectUsefulInterface * 1158s # org_project_useful_interface_proxy_new_for_bus_sync ( 1158s # GBusType bus_type, 1158s # GDBusProxyFlags flags, 1158s # const gchar *name, 1158s # const gchar *object_path, 1158s # GCancellable *cancellable, 1158s # GError **error) 1158s # { 1158s # GInitable *ret; 1158s # 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); 1158s # if (ret != NULL) 1158s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1158s # else 1158s # return NULL; 1158s # } 1158s # 1158s # 1158s # /* ------------------------------------------------------------------------ */ 1158s # 1158s # /** 1158s # * OrgProjectUsefulInterfaceSkeleton: 1158s # * 1158s # * The #OrgProjectUsefulInterfaceSkeleton structure contains only private data and should only be accessed using the provided API. 1158s # */ 1158s # 1158s # /** 1158s # * OrgProjectUsefulInterfaceSkeletonClass: 1158s # * @parent_class: The parent class. 1158s # * 1158s # * Class structure for #OrgProjectUsefulInterfaceSkeleton. 1158s # */ 1158s # 1158s # struct _OrgProjectUsefulInterfaceSkeletonPrivate 1158s # { 1158s # GValue *properties; 1158s # GList *changed_properties; 1158s # GSource *changed_properties_idle_source; 1158s # GMainContext *context; 1158s # GMutex lock; 1158s # }; 1158s # 1158s # static void 1158s # _org_project_useful_interface_skeleton_handle_method_call ( 1158s # GDBusConnection *connection G_GNUC_UNUSED, 1158s # const gchar *sender G_GNUC_UNUSED, 1158s # const gchar *object_path G_GNUC_UNUSED, 1158s # const gchar *interface_name, 1158s # const gchar *method_name, 1158s # GVariant *parameters, 1158s # GDBusMethodInvocation *invocation, 1158s # gpointer user_data) 1158s # { 1158s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1158s # _ExtendedGDBusMethodInfo *info; 1158s # GVariantIter iter; 1158s # GVariant *child; 1158s # GValue *paramv; 1158s # gsize num_params; 1158s # guint num_extra; 1158s # gsize n; 1158s # guint signal_id; 1158s # GValue return_value = G_VALUE_INIT; 1158s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 1158s # g_assert (info != NULL); 1158s # num_params = g_variant_n_children (parameters); 1158s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 1158s # n = 0; 1158s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1158s # g_value_set_object (¶mv[n++], skeleton); 1158s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 1158s # g_value_set_object (¶mv[n++], invocation); 1158s # if (info->pass_fdlist) 1158s # { 1158s # #ifdef G_OS_UNIX 1158s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 1158s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 1158s # #else 1158s # g_assert_not_reached (); 1158s # #endif 1158s # } 1158s # g_variant_iter_init (&iter, parameters); 1158s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1158s # { 1158s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 1158s # if (arg_info->use_gvariant) 1158s # { 1158s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1158s # g_value_set_variant (¶mv[n], child); 1158s # n++; 1158s # } 1158s # else 1158s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1158s # g_variant_unref (child); 1158s # } 1158s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1158s # g_value_init (&return_value, G_TYPE_BOOLEAN); 1158s # g_signal_emitv (paramv, signal_id, 0, &return_value); 1158s # if (!g_value_get_boolean (&return_value)) 1158s # 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); 1158s # g_value_unset (&return_value); 1158s # for (n = 0; n < num_params + num_extra; n++) 1158s # g_value_unset (¶mv[n]); 1158s # g_free (paramv); 1158s # } 1158s # 1158s # static GVariant * 1158s # _org_project_useful_interface_skeleton_handle_get_property ( 1158s # GDBusConnection *connection G_GNUC_UNUSED, 1158s # const gchar *sender G_GNUC_UNUSED, 1158s # const gchar *object_path G_GNUC_UNUSED, 1158s # const gchar *interface_name G_GNUC_UNUSED, 1158s # const gchar *property_name, 1158s # GError **error, 1158s # gpointer user_data) 1158s # { 1158s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1158s # GValue value = G_VALUE_INIT; 1158s # GParamSpec *pspec; 1158s # _ExtendedGDBusPropertyInfo *info; 1158s # GVariant *ret; 1158s # ret = NULL; 1158s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 1158s # g_assert (info != NULL); 1158s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1158s # if (pspec == NULL) 1158s # { 1158s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1158s # } 1158s # else 1158s # { 1158s # g_value_init (&value, pspec->value_type); 1158s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1158s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 1158s # g_value_unset (&value); 1158s # } 1158s # return ret; 1158s # } 1158s # 1158s # static gboolean 1158s # _org_project_useful_interface_skeleton_handle_set_property ( 1158s # GDBusConnection *connection G_GNUC_UNUSED, 1158s # const gchar *sender G_GNUC_UNUSED, 1158s # const gchar *object_path G_GNUC_UNUSED, 1158s # const gchar *interface_name G_GNUC_UNUSED, 1158s # const gchar *property_name, 1158s # GVariant *variant, 1158s # GError **error, 1158s # gpointer user_data) 1158s # { 1158s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1158s # GValue value = G_VALUE_INIT; 1158s # GParamSpec *pspec; 1158s # _ExtendedGDBusPropertyInfo *info; 1158s # gboolean ret; 1158s # ret = FALSE; 1158s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 1158s # g_assert (info != NULL); 1158s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1158s # if (pspec == NULL) 1158s # { 1158s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1158s # } 1158s # else 1158s # { 1158s # if (info->use_gvariant) 1158s # g_value_set_variant (&value, variant); 1158s # else 1158s # g_dbus_gvariant_to_gvalue (variant, &value); 1158s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1158s # g_value_unset (&value); 1158s # ret = TRUE; 1158s # } 1158s # return ret; 1158s # } 1158s # 1158s # static const GDBusInterfaceVTable _org_project_useful_interface_skeleton_vtable = 1158s # { 1158s # _org_project_useful_interface_skeleton_handle_method_call, 1158s # _org_project_useful_interface_skeleton_handle_get_property, 1158s # _org_project_useful_interface_skeleton_handle_set_property, 1158s # {NULL} 1158s # }; 1158s # 1158s # static GDBusInterfaceInfo * 1158s # org_project_useful_interface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1158s # { 1158s # return org_project_useful_interface_interface_info (); 1158s # } 1158s # 1158s # static GDBusInterfaceVTable * 1158s # org_project_useful_interface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1158s # { 1158s # return (GDBusInterfaceVTable *) &_org_project_useful_interface_skeleton_vtable; 1158s # } 1158s # 1158s # static GVariant * 1158s # org_project_useful_interface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 1158s # { 1158s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (_skeleton); 1158s # 1158s # GVariantBuilder builder; 1158s # guint n; 1158s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 1158s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 1158s # #else 1158s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 1158s # #endif 1158s # if (_org_project_useful_interface_interface_info.parent_struct.properties == NULL) 1158s # goto out; 1158s # for (n = 0; _org_project_useful_interface_interface_info.parent_struct.properties[n] != NULL; n++) 1158s # { 1158s # GDBusPropertyInfo *info = _org_project_useful_interface_interface_info.parent_struct.properties[n]; 1158s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 1158s # { 1158s # GVariant *value; 1158s # 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); 1158s # if (value != NULL) 1158s # { 1158s # g_variant_take_ref (value); 1158s # g_variant_builder_add (&builder, "{sv}", info->name, value); 1158s # g_variant_unref (value); 1158s # } 1158s # } 1158s # } 1158s # out: 1158s # return g_variant_builder_end (&builder); 1158s # } 1158s # 1158s # static void 1158s # org_project_useful_interface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 1158s # { 1158s # } 1158s # 1158s # static void org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface); 1158s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1158s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1158s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceSkeleton) 1158s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 1158s # 1158s # #else 1158s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1158s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 1158s # 1158s # #endif 1158s # static void 1158s # org_project_useful_interface_skeleton_finalize (GObject *object) 1158s # { 1158s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (object); 1158s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 1158s # if (skeleton->priv->changed_properties_idle_source != NULL) 1158s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 1158s # g_main_context_unref (skeleton->priv->context); 1158s # g_mutex_clear (&skeleton->priv->lock); 1158s # G_OBJECT_CLASS (org_project_useful_interface_skeleton_parent_class)->finalize (object); 1158s # } 1158s # 1158s # static void 1158s # org_project_useful_interface_skeleton_init (OrgProjectUsefulInterfaceSkeleton *skeleton) 1158s # { 1158s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1158s # skeleton->priv = org_project_useful_interface_skeleton_get_instance_private (skeleton); 1158s # #else 1158s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, OrgProjectUsefulInterfaceSkeletonPrivate); 1158s # #endif 1158s # 1158s # g_mutex_init (&skeleton->priv->lock); 1158s # skeleton->priv->context = g_main_context_ref_thread_default (); 1158s # } 1158s # 1158s # static void 1158s # org_project_useful_interface_skeleton_class_init (OrgProjectUsefulInterfaceSkeletonClass *klass) 1158s # { 1158s # GObjectClass *gobject_class; 1158s # GDBusInterfaceSkeletonClass *skeleton_class; 1158s # 1158s # gobject_class = G_OBJECT_CLASS (klass); 1158s # gobject_class->finalize = org_project_useful_interface_skeleton_finalize; 1158s # 1158s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 1158s # skeleton_class->get_info = org_project_useful_interface_skeleton_dbus_interface_get_info; 1158s # skeleton_class->get_properties = org_project_useful_interface_skeleton_dbus_interface_get_properties; 1158s # skeleton_class->flush = org_project_useful_interface_skeleton_dbus_interface_flush; 1158s # skeleton_class->get_vtable = org_project_useful_interface_skeleton_dbus_interface_get_vtable; 1158s # 1158s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1158s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceSkeletonPrivate)); 1158s # #endif 1158s # } 1158s # 1158s # static void 1158s # org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 1158s # { 1158s # } 1158s # 1158s # /** 1158s # * org_project_useful_interface_skeleton_new: 1158s # * 1158s # * Creates a skeleton object for the D-Bus interface org.project.UsefulInterface. 1158s # * 1158s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceSkeleton): The skeleton object. 1158s # */ 1158s # OrgProjectUsefulInterface * 1158s # org_project_useful_interface_skeleton_new (void) 1158s # { 1158s # return ORG_PROJECT_USEFUL_INTERFACE (g_object_new (TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, NULL)); 1158s # } 1158s # Error: 1158s # 1158s # /tmp/tmpv_fj8nn0/tmpuqlrdxho.xml: 1158s # 1158s # 1158s # 1158s # 1158s # 1158s # 1158s # 1158s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpv_fj8nn0/tmpuqlrdxho.xml', '--output', '-', '--body'] 1158s # Return code: 0 1158s # Output: 1158s # /* 1158s # * This file is generated by gdbus-codegen, do not modify it. 1158s # * 1158s # * The license of this code is the same as for the D-Bus interface description 1158s # * it was derived from. Note that it links to GLib, so must comply with the 1158s # * LGPL linking clauses. 1158s # */ 1158s # 1158s # #ifdef HAVE_CONFIG_H 1158s # # include "config.h" 1158s # #endif 1158s # 1158s # #include 1158s # #ifdef G_OS_UNIX 1158s # # include 1158s # #endif 1158s # 1158s # #ifdef G_ENABLE_DEBUG 1158s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 1158s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 1158s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 1158s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 1158s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 1158s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 1158s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 1158s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 1158s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 1158s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 1158s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 1158s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 1158s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 1158s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 1158s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 1158s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 1158s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 1158s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 1158s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 1158s # #else /* !G_ENABLE_DEBUG */ 1158s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 1158s # * Do not access GValues directly in your code. Instead, use the 1158s # * g_value_get_*() functions 1158s # */ 1158s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 1158s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 1158s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 1158s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 1158s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 1158s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 1158s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 1158s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 1158s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 1158s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 1158s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 1158s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 1158s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 1158s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 1158s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 1158s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 1158s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 1158s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 1158s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 1158s # #endif /* !G_ENABLE_DEBUG */ 1158s # 1158s # typedef struct 1158s # { 1158s # GDBusArgInfo parent_struct; 1158s # gboolean use_gvariant; 1158s # } _ExtendedGDBusArgInfo; 1158s # 1158s # typedef struct 1158s # { 1158s # GDBusMethodInfo parent_struct; 1158s # const gchar *signal_name; 1158s # gboolean pass_fdlist; 1158s # } _ExtendedGDBusMethodInfo; 1158s # 1158s # typedef struct 1158s # { 1158s # GDBusSignalInfo parent_struct; 1158s # const gchar *signal_name; 1158s # } _ExtendedGDBusSignalInfo; 1158s # 1158s # typedef struct 1158s # { 1158s # GDBusPropertyInfo parent_struct; 1158s # const gchar *hyphen_name; 1158s # guint use_gvariant : 1; 1158s # guint emits_changed_signal : 1; 1158s # } _ExtendedGDBusPropertyInfo; 1158s # 1158s # typedef struct 1158s # { 1158s # GDBusInterfaceInfo parent_struct; 1158s # const gchar *hyphen_name; 1158s # } _ExtendedGDBusInterfaceInfo; 1158s # 1158s # typedef struct 1158s # { 1158s # const _ExtendedGDBusPropertyInfo *info; 1158s # guint prop_id; 1158s # GValue orig_value; /* the value before the change */ 1158s # } ChangedProperty; 1158s # 1158s # static void 1158s # _changed_property_free (ChangedProperty *data) 1158s # { 1158s # g_value_unset (&data->orig_value); 1158s # g_free (data); 1158s # } 1158s # 1158s # static gboolean 1158s # _g_strv_equal0 (gchar **a, gchar **b) 1158s # { 1158s # gboolean ret = FALSE; 1158s # guint n; 1158s # if (a == NULL && b == NULL) 1158s # { 1158s # ret = TRUE; 1158s # goto out; 1158s # } 1158s # if (a == NULL || b == NULL) 1158s # goto out; 1158s # if (g_strv_length (a) != g_strv_length (b)) 1158s # goto out; 1158s # for (n = 0; a[n] != NULL; n++) 1158s # if (g_strcmp0 (a[n], b[n]) != 0) 1158s # goto out; 1158s # ret = TRUE; 1158s # out: 1158s # return ret; 1158s # } 1158s # 1158s # static gboolean 1158s # _g_variant_equal0 (GVariant *a, GVariant *b) 1158s # { 1158s # gboolean ret = FALSE; 1158s # if (a == NULL && b == NULL) 1158s # { 1158s # ret = TRUE; 1158s # goto out; 1158s # } 1158s # if (a == NULL || b == NULL) 1158s # goto out; 1158s # ret = g_variant_equal (a, b); 1158s # out: 1158s # return ret; 1158s # } 1158s # 1158s # G_GNUC_UNUSED static gboolean 1158s # _g_value_equal (const GValue *a, const GValue *b) 1158s # { 1158s # gboolean ret = FALSE; 1158s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 1158s # switch (G_VALUE_TYPE (a)) 1158s # { 1158s # case G_TYPE_BOOLEAN: 1158s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 1158s # break; 1158s # case G_TYPE_UCHAR: 1158s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 1158s # break; 1158s # case G_TYPE_INT: 1158s # ret = (g_value_get_int (a) == g_value_get_int (b)); 1158s # break; 1158s # case G_TYPE_UINT: 1158s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 1158s # break; 1158s # case G_TYPE_INT64: 1158s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 1158s # break; 1158s # case G_TYPE_UINT64: 1158s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 1158s # break; 1158s # case G_TYPE_DOUBLE: 1158s # { 1158s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 1158s # gdouble da = g_value_get_double (a); 1158s # gdouble db = g_value_get_double (b); 1158s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 1158s # } 1158s # break; 1158s # case G_TYPE_STRING: 1158s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 1158s # break; 1158s # case G_TYPE_VARIANT: 1158s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 1158s # break; 1158s # default: 1158s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 1158s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 1158s # else 1158s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 1158s # break; 1158s # } 1158s # return ret; 1158s # } 1158s # 1158s # static void 1158s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT_INT ( 1158s # GClosure *closure, 1158s # GValue *return_value, 1158s # unsigned int n_param_values, 1158s # const GValue *param_values, 1158s # void *invocation_hint G_GNUC_UNUSED, 1158s # void *marshal_data) 1158s # { 1158s # typedef gboolean (*_GDbusCodegenMarshalBoolean_ObjectIntFunc) 1158s # (void *data1, 1158s # GDBusMethodInvocation *arg_method_invocation, 1158s # gint16 arg_arg_n, 1158s # void *data2); 1158s # _GDbusCodegenMarshalBoolean_ObjectIntFunc callback; 1158s # GCClosure *cc = (GCClosure*) closure; 1158s # void *data1, *data2; 1158s # gboolean v_return; 1158s # 1158s # g_return_if_fail (return_value != NULL); 1158s # g_return_if_fail (n_param_values == 3); 1158s # 1158s # if (G_CCLOSURE_SWAP_DATA (closure)) 1158s # { 1158s # data1 = closure->data; 1158s # data2 = g_value_peek_pointer (param_values + 0); 1158s # } 1158s # else 1158s # { 1158s # data1 = g_value_peek_pointer (param_values + 0); 1158s # data2 = closure->data; 1158s # } 1158s # 1158s # callback = (_GDbusCodegenMarshalBoolean_ObjectIntFunc) 1158s # (marshal_data ? marshal_data : cc->callback); 1158s # 1158s # v_return = 1158s # callback (data1, 1158s # g_marshal_value_peek_object (param_values + 1), 1158s # g_marshal_value_peek_int (param_values + 2), 1158s # data2); 1158s # 1158s # g_value_set_boolean (return_value, v_return); 1158s # } 1158s # 1158s # /* ------------------------------------------------------------------------ 1158s # * Code for interface org.project.UsefulInterface 1158s # * ------------------------------------------------------------------------ 1158s # */ 1158s # 1158s # /** 1158s # * SECTION:OrgProjectUsefulInterface 1158s # * @title: OrgProjectUsefulInterface 1158s # * @short_description: Generated C code for the org.project.UsefulInterface D-Bus interface 1158s # * 1158s # * This section contains code for working with the org.project.UsefulInterface D-Bus interface in C. 1158s # */ 1158s # 1158s # /* ---- Introspection data for org.project.UsefulInterface ---- */ 1158s # 1158s # static const _ExtendedGDBusArgInfo _org_project_useful_interface_method_info_single_arg_method_n_IN_ARG_arg_n = 1158s # { 1158s # { 1158s # -1, 1158s # (gchar *) "arg_n", 1158s # (gchar *) "n", 1158s # NULL 1158s # }, 1158s # FALSE 1158s # }; 1158s # 1158s # static const GDBusArgInfo * const _org_project_useful_interface_method_info_single_arg_method_n_IN_ARG_pointers[] = 1158s # { 1158s # &_org_project_useful_interface_method_info_single_arg_method_n_IN_ARG_arg_n.parent_struct, 1158s # NULL 1158s # }; 1158s # 1158s # static const _ExtendedGDBusMethodInfo _org_project_useful_interface_method_info_single_arg_method_n = 1158s # { 1158s # { 1158s # -1, 1158s # (gchar *) "SingleArgMethodN", 1158s # (GDBusArgInfo **) &_org_project_useful_interface_method_info_single_arg_method_n_IN_ARG_pointers, 1158s # NULL, 1158s # NULL 1158s # }, 1158s # "handle-single-arg-method-n", 1158s # FALSE 1158s # }; 1158s # 1158s # static const GDBusMethodInfo * const _org_project_useful_interface_method_info_pointers[] = 1158s # { 1158s # &_org_project_useful_interface_method_info_single_arg_method_n.parent_struct, 1158s # NULL 1158s # }; 1158s # 1158s # static const _ExtendedGDBusInterfaceInfo _org_project_useful_interface_interface_info = 1158s # { 1158s # { 1158s # -1, 1158s # (gchar *) "org.project.UsefulInterface", 1158s # (GDBusMethodInfo **) &_org_project_useful_interface_method_info_pointers, 1158s # NULL, 1158s # NULL, 1158s # NULL 1158s # }, 1158s # "org-project-useful-interface", 1158s # }; 1158s # 1158s # 1158s # /** 1158s # * org_project_useful_interface_interface_info: 1158s # * 1158s # * Gets a machine-readable description of the org.project.UsefulInterface D-Bus interface. 1158s # * 1158s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 1158s # */ 1158s # GDBusInterfaceInfo * 1158s # org_project_useful_interface_interface_info (void) 1158s # { 1158s # return (GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct; 1158s # } 1158s # 1158s # /** 1158s # * org_project_useful_interface_override_properties: 1158s # * @klass: The class structure for a #GObject derived class. 1158s # * @property_id_begin: The property id to assign to the first overridden property. 1158s # * 1158s # * Overrides all #GObject properties in the #OrgProjectUsefulInterface interface for a concrete class. 1158s # * The properties are overridden in the order they are defined. 1158s # * 1158s # * Returns: The last property id. 1158s # */ 1158s # guint 1158s # org_project_useful_interface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 1158s # { 1158s # return property_id_begin - 1; 1158s # } 1158s # 1158s # 1158s # inline static void 1158s # org_project_useful_interface_method_marshal_single_arg_method_n ( 1158s # GClosure *closure, 1158s # GValue *return_value, 1158s # unsigned int n_param_values, 1158s # const GValue *param_values, 1158s # void *invocation_hint, 1158s # void *marshal_data) 1158s # { 1158s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT_INT (closure, 1158s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1158s # } 1158s # 1158s # 1158s # /** 1158s # * OrgProjectUsefulInterface: 1158s # * 1158s # * Abstract interface type for the D-Bus interface org.project.UsefulInterface. 1158s # */ 1158s # 1158s # /** 1158s # * OrgProjectUsefulInterfaceIface: 1158s # * @parent_iface: The parent interface. 1158s # * @handle_single_arg_method_n: Handler for the #OrgProjectUsefulInterface::handle-single-arg-method-n signal. 1158s # * 1158s # * Virtual table for the D-Bus interface org.project.UsefulInterface. 1158s # */ 1158s # 1158s # typedef OrgProjectUsefulInterfaceIface OrgProjectUsefulInterfaceInterface; 1158s # G_DEFINE_INTERFACE (OrgProjectUsefulInterface, org_project_useful_interface, G_TYPE_OBJECT) 1158s # 1158s # static void 1158s # org_project_useful_interface_default_init (OrgProjectUsefulInterfaceIface *iface) 1158s # { 1158s # /* GObject signals for incoming D-Bus method calls: */ 1158s # /** 1158s # * OrgProjectUsefulInterface::handle-single-arg-method-n: 1158s # * @object: A #OrgProjectUsefulInterface. 1158s # * @invocation: A #GDBusMethodInvocation. 1158s # * @arg_arg_n: Argument passed by remote caller. 1158s # * 1158s # * Signal emitted when a remote caller is invoking the SingleArgMethodN() D-Bus method. 1158s # * 1158s # * 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. 1158s # * 1158s # * 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. 1158s # */ 1158s # g_signal_new ("handle-single-arg-method-n", 1158s # G_TYPE_FROM_INTERFACE (iface), 1158s # G_SIGNAL_RUN_LAST, 1158s # G_STRUCT_OFFSET (OrgProjectUsefulInterfaceIface, handle_single_arg_method_n), 1158s # g_signal_accumulator_true_handled, 1158s # NULL, 1158s # org_project_useful_interface_method_marshal_single_arg_method_n, 1158s # G_TYPE_BOOLEAN, 1158s # 2, 1158s # G_TYPE_DBUS_METHOD_INVOCATION, G_TYPE_INT); 1158s # 1158s # } 1158s # 1158s # /** 1158s # * org_project_useful_interface_call_single_arg_method_n: 1158s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1158s # * @arg_arg_n: Argument to pass with the method invocation. 1158s # * @cancellable: (nullable): A #GCancellable or %NULL. 1158s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL. 1158s # * @user_data: User data to pass to @callback. 1158s # * 1158s # * Asynchronously invokes the SingleArgMethodN() D-Bus method on @proxy. 1158s # * 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()). 1158s # * You can then call org_project_useful_interface_call_single_arg_method_n_finish() to get the result of the operation. 1158s # * 1158s # * See org_project_useful_interface_call_single_arg_method_n_sync() for the synchronous, blocking version of this method. 1158s # */ 1158s # void 1158s # org_project_useful_interface_call_single_arg_method_n ( 1158s # OrgProjectUsefulInterface *proxy, 1158s # gint16 arg_arg_n, 1158s # GCancellable *cancellable, 1158s # GAsyncReadyCallback callback, 1158s # gpointer user_data) 1158s # { 1158s # g_dbus_proxy_call (G_DBUS_PROXY (proxy), 1158s # "SingleArgMethodN", 1158s # g_variant_new ("(n)", 1158s # arg_arg_n), 1158s # G_DBUS_CALL_FLAGS_NONE, 1158s # -1, 1158s # cancellable, 1158s # callback, 1158s # user_data); 1158s # } 1158s # 1158s # /** 1158s # * org_project_useful_interface_call_single_arg_method_n_finish: 1158s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1158s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_call_single_arg_method_n(). 1158s # * @error: Return location for error or %NULL. 1158s # * 1158s # * Finishes an operation started with org_project_useful_interface_call_single_arg_method_n(). 1158s # * 1158s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1158s # */ 1158s # gboolean 1158s # org_project_useful_interface_call_single_arg_method_n_finish ( 1158s # OrgProjectUsefulInterface *proxy, 1158s # GAsyncResult *res, 1158s # GError **error) 1158s # { 1158s # GVariant *_ret; 1158s # _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error); 1158s # if (_ret == NULL) 1158s # goto _out; 1158s # g_variant_get (_ret, 1158s # "()"); 1158s # g_variant_unref (_ret); 1158s # _out: 1158s # return _ret != NULL; 1158s # } 1158s # 1158s # /** 1158s # * org_project_useful_interface_call_single_arg_method_n_sync: 1158s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1158s # * @arg_arg_n: Argument to pass with the method invocation. 1158s # * @cancellable: (nullable): A #GCancellable or %NULL. 1158s # * @error: Return location for error or %NULL. 1158s # * 1158s # * Synchronously invokes the SingleArgMethodN() D-Bus method on @proxy. The calling thread is blocked until a reply is received. 1158s # * 1158s # * See org_project_useful_interface_call_single_arg_method_n() for the asynchronous version of this method. 1158s # * 1158s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1158s # */ 1158s # gboolean 1158s # org_project_useful_interface_call_single_arg_method_n_sync ( 1158s # OrgProjectUsefulInterface *proxy, 1158s # gint16 arg_arg_n, 1158s # GCancellable *cancellable, 1158s # GError **error) 1158s # { 1158s # GVariant *_ret; 1158s # _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy), 1158s # "SingleArgMethodN", 1158s # g_variant_new ("(n)", 1158s # arg_arg_n), 1158s # G_DBUS_CALL_FLAGS_NONE, 1158s # -1, 1158s # cancellable, 1158s # error); 1158s # if (_ret == NULL) 1158s # goto _out; 1158s # g_variant_get (_ret, 1158s # "()"); 1158s # g_variant_unref (_ret); 1158s # _out: 1158s # return _ret != NULL; 1158s # } 1158s # 1158s # /** 1158s # * org_project_useful_interface_complete_single_arg_method_n: 1158s # * @object: A #OrgProjectUsefulInterface. 1158s # * @invocation: (transfer full): A #GDBusMethodInvocation. 1158s # * 1158s # * 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. 1158s # * 1158s # * This method will free @invocation, you cannot use it afterwards. 1158s # */ 1158s # void 1158s # org_project_useful_interface_complete_single_arg_method_n ( 1158s # OrgProjectUsefulInterface *object G_GNUC_UNUSED, 1158s # GDBusMethodInvocation *invocation) 1158s # { 1158s # g_dbus_method_invocation_return_value (invocation, 1158s # g_variant_new ("()")); 1158s # } 1158s # 1158s # /* ------------------------------------------------------------------------ */ 1158s # 1158s # /** 1158s # * OrgProjectUsefulInterfaceProxy: 1158s # * 1158s # * The #OrgProjectUsefulInterfaceProxy structure contains only private data and should only be accessed using the provided API. 1158s # */ 1158s # 1158s # /** 1158s # * OrgProjectUsefulInterfaceProxyClass: 1158s # * @parent_class: The parent class. 1158s # * 1158s # * Class structure for #OrgProjectUsefulInterfaceProxy. 1158s # */ 1158s # 1158s # struct _OrgProjectUsefulInterfaceProxyPrivate 1158s # { 1158s # GData *qdata; 1158s # }; 1158s # 1158s # static void org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface); 1158s # 1158s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1158s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 1158s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceProxy) 1158s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 1158s # 1158s # #else 1158s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 1158s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 1158s # 1158s # #endif 1158s # static void 1158s # org_project_useful_interface_proxy_finalize (GObject *object) 1158s # { 1158s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (object); 1158s # g_datalist_clear (&proxy->priv->qdata); 1158s # G_OBJECT_CLASS (org_project_useful_interface_proxy_parent_class)->finalize (object); 1158s # } 1158s # 1158s # static void 1158s # org_project_useful_interface_proxy_get_property (GObject *object G_GNUC_UNUSED, 1158s # guint prop_id G_GNUC_UNUSED, 1158s # GValue *value G_GNUC_UNUSED, 1158s # GParamSpec *pspec G_GNUC_UNUSED) 1158s # { 1158s # } 1158s # 1158s # static void 1158s # org_project_useful_interface_proxy_set_property (GObject *object G_GNUC_UNUSED, 1158s # guint prop_id G_GNUC_UNUSED, 1158s # const GValue *value G_GNUC_UNUSED, 1158s # GParamSpec *pspec G_GNUC_UNUSED) 1158s # { 1158s # } 1158s # 1158s # static void 1158s # org_project_useful_interface_proxy_g_signal (GDBusProxy *proxy, 1158s # const gchar *sender_name G_GNUC_UNUSED, 1158s # const gchar *signal_name, 1158s # GVariant *parameters) 1158s # { 1158s # _ExtendedGDBusSignalInfo *info; 1158s # GVariantIter iter; 1158s # GVariant *child; 1158s # GValue *paramv; 1158s # gsize num_params; 1158s # gsize n; 1158s # guint signal_id; 1158s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, signal_name); 1158s # if (info == NULL) 1158s # return; 1158s # num_params = g_variant_n_children (parameters); 1158s # paramv = g_new0 (GValue, num_params + 1); 1158s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1158s # g_value_set_object (¶mv[0], proxy); 1158s # g_variant_iter_init (&iter, parameters); 1158s # n = 1; 1158s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1158s # { 1158s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 1158s # if (arg_info->use_gvariant) 1158s # { 1158s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1158s # g_value_set_variant (¶mv[n], child); 1158s # n++; 1158s # } 1158s # else 1158s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1158s # g_variant_unref (child); 1158s # } 1158s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1158s # g_signal_emitv (paramv, signal_id, 0, NULL); 1158s # for (n = 0; n < num_params + 1; n++) 1158s # g_value_unset (¶mv[n]); 1158s # g_free (paramv); 1158s # } 1158s # 1158s # static void 1158s # org_project_useful_interface_proxy_g_properties_changed (GDBusProxy *_proxy, 1158s # GVariant *changed_properties, 1158s # const gchar *const *invalidated_properties) 1158s # { 1158s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (_proxy); 1158s # guint n; 1158s # const gchar *key; 1158s # GVariantIter *iter; 1158s # _ExtendedGDBusPropertyInfo *info; 1158s # g_variant_get (changed_properties, "a{sv}", &iter); 1158s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 1158s # { 1158s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, key); 1158s # g_datalist_remove_data (&proxy->priv->qdata, key); 1158s # if (info != NULL) 1158s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1158s # } 1158s # g_variant_iter_free (iter); 1158s # for (n = 0; invalidated_properties[n] != NULL; n++) 1158s # { 1158s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, invalidated_properties[n]); 1158s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 1158s # if (info != NULL) 1158s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1158s # } 1158s # } 1158s # 1158s # static void 1158s # org_project_useful_interface_proxy_init (OrgProjectUsefulInterfaceProxy *proxy) 1158s # { 1158s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1158s # proxy->priv = org_project_useful_interface_proxy_get_instance_private (proxy); 1158s # #else 1158s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY, OrgProjectUsefulInterfaceProxyPrivate); 1158s # #endif 1158s # 1158s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_useful_interface_interface_info ()); 1158s # } 1158s # 1158s # static void 1158s # org_project_useful_interface_proxy_class_init (OrgProjectUsefulInterfaceProxyClass *klass) 1158s # { 1158s # GObjectClass *gobject_class; 1158s # GDBusProxyClass *proxy_class; 1158s # 1158s # gobject_class = G_OBJECT_CLASS (klass); 1158s # gobject_class->finalize = org_project_useful_interface_proxy_finalize; 1158s # gobject_class->get_property = org_project_useful_interface_proxy_get_property; 1158s # gobject_class->set_property = org_project_useful_interface_proxy_set_property; 1158s # 1158s # proxy_class = G_DBUS_PROXY_CLASS (klass); 1158s # proxy_class->g_signal = org_project_useful_interface_proxy_g_signal; 1158s # proxy_class->g_properties_changed = org_project_useful_interface_proxy_g_properties_changed; 1158s # 1158s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1158s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceProxyPrivate)); 1158s # #endif 1158s # } 1158s # 1158s # static void 1158s # org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 1158s # { 1158s # } 1158s # 1158s # /** 1158s # * org_project_useful_interface_proxy_new: 1158s # * @connection: A #GDBusConnection. 1158s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1158s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1158s # * @object_path: An object path. 1158s # * @cancellable: (nullable): A #GCancellable or %NULL. 1158s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1158s # * @user_data: User data to pass to @callback. 1158s # * 1158s # * Asynchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new() for more details. 1158s # * 1158s # * 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()). 1158s # * You can then call org_project_useful_interface_proxy_new_finish() to get the result of the operation. 1158s # * 1158s # * See org_project_useful_interface_proxy_new_sync() for the synchronous, blocking version of this constructor. 1158s # */ 1158s # void 1158s # org_project_useful_interface_proxy_new ( 1158s # GDBusConnection *connection, 1158s # GDBusProxyFlags flags, 1158s # const gchar *name, 1158s # const gchar *object_path, 1158s # GCancellable *cancellable, 1158s # GAsyncReadyCallback callback, 1158s # gpointer user_data) 1158s # { 1158s # 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); 1158s # } 1158s # 1158s # /** 1158s # * org_project_useful_interface_proxy_new_finish: 1158s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new(). 1158s # * @error: Return location for error or %NULL 1158s # * 1158s # * Finishes an operation started with org_project_useful_interface_proxy_new(). 1158s # * 1158s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1158s # */ 1158s # OrgProjectUsefulInterface * 1158s # org_project_useful_interface_proxy_new_finish ( 1158s # GAsyncResult *res, 1158s # GError **error) 1158s # { 1158s # GObject *ret; 1158s # GObject *source_object; 1158s # source_object = g_async_result_get_source_object (res); 1158s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1158s # g_object_unref (source_object); 1158s # if (ret != NULL) 1158s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1158s # else 1158s # return NULL; 1158s # } 1158s # 1158s # /** 1158s # * org_project_useful_interface_proxy_new_sync: 1158s # * @connection: A #GDBusConnection. 1158s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1158s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1158s # * @object_path: An object path. 1158s # * @cancellable: (nullable): A #GCancellable or %NULL. 1158s # * @error: Return location for error or %NULL 1158s # * 1158s # * Synchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new_sync() for more details. 1158s # * 1158s # * The calling thread is blocked until a reply is received. 1158s # * 1158s # * See org_project_useful_interface_proxy_new() for the asynchronous version of this constructor. 1158s # * 1158s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1158s # */ 1158s # OrgProjectUsefulInterface * 1158s # org_project_useful_interface_proxy_new_sync ( 1158s # GDBusConnection *connection, 1158s # GDBusProxyFlags flags, 1158s # const gchar *name, 1158s # const gchar *object_path, 1158s # GCancellable *cancellable, 1158s # GError **error) 1158s # { 1158s # GInitable *ret; 1158s # 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); 1158s # if (ret != NULL) 1158s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1158s # else 1158s # return NULL; 1158s # } 1158s # 1158s # 1158s # /** 1158s # * org_project_useful_interface_proxy_new_for_bus: 1158s # * @bus_type: A #GBusType. 1158s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1158s # * @name: A bus name (well-known or unique). 1158s # * @object_path: An object path. 1158s # * @cancellable: (nullable): A #GCancellable or %NULL. 1158s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1158s # * @user_data: User data to pass to @callback. 1158s # * 1158s # * Like org_project_useful_interface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 1158s # * 1158s # * 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()). 1158s # * You can then call org_project_useful_interface_proxy_new_for_bus_finish() to get the result of the operation. 1158s # * 1158s # * See org_project_useful_interface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 1158s # */ 1158s # void 1158s # org_project_useful_interface_proxy_new_for_bus ( 1158s # GBusType bus_type, 1158s # GDBusProxyFlags flags, 1158s # const gchar *name, 1158s # const gchar *object_path, 1158s # GCancellable *cancellable, 1158s # GAsyncReadyCallback callback, 1158s # gpointer user_data) 1158s # { 1158s # 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); 1158s # } 1158s # 1158s # /** 1158s # * org_project_useful_interface_proxy_new_for_bus_finish: 1158s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new_for_bus(). 1158s # * @error: Return location for error or %NULL 1158s # * 1158s # * Finishes an operation started with org_project_useful_interface_proxy_new_for_bus(). 1158s # * 1158s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1158s # */ 1158s # OrgProjectUsefulInterface * 1158s # org_project_useful_interface_proxy_new_for_bus_finish ( 1158s # GAsyncResult *res, 1158s # GError **error) 1158s # { 1158s # GObject *ret; 1158s # GObject *source_object; 1158s # source_object = g_async_result_get_source_object (res); 1158s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1158s # g_object_unref (source_object); 1158s # if (ret != NULL) 1158s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1158s # else 1158s # return NULL; 1158s # } 1158s # 1158s # /** 1158s # * org_project_useful_interface_proxy_new_for_bus_sync: 1158s # * @bus_type: A #GBusType. 1158s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1158s # * @name: A bus name (well-known or unique). 1158s # * @object_path: An object path. 1158s # * @cancellable: (nullable): A #GCancellable or %NULL. 1158s # * @error: Return location for error or %NULL 1158s # * 1158s # * Like org_project_useful_interface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 1158s # * 1158s # * The calling thread is blocked until a reply is received. 1158s # * 1158s # * See org_project_useful_interface_proxy_new_for_bus() for the asynchronous version of this constructor. 1158s # * 1158s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1158s # */ 1158s # OrgProjectUsefulInterface * 1158s # org_project_useful_interface_proxy_new_for_bus_sync ( 1158s # GBusType bus_type, 1158s # GDBusProxyFlags flags, 1158s # const gchar *name, 1158s # const gchar *object_path, 1158s # GCancellable *cancellable, 1158s # GError **error) 1158s # { 1158s # GInitable *ret; 1158s # 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); 1158s # if (ret != NULL) 1158s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1158s # else 1158s # return NULL; 1158s # } 1158s # 1158s # 1158s # /* ------------------------------------------------------------------------ */ 1158s # 1158s # /** 1158s # * OrgProjectUsefulInterfaceSkeleton: 1158s # * 1158s # * The #OrgProjectUsefulInterfaceSkeleton structure contains only private data and should only be accessed using the provided API. 1158s # */ 1158s # 1158s # /** 1158s # * OrgProjectUsefulInterfaceSkeletonClass: 1158s # * @parent_class: The parent class. 1158s # * 1158s # * Class structure for #OrgProjectUsefulInterfaceSkeleton. 1158s # */ 1158s # 1158s # struct _OrgProjectUsefulInterfaceSkeletonPrivate 1158s # { 1158s # GValue *properties; 1158s # GList *changed_properties; 1158s # GSource *changed_properties_idle_source; 1158s # GMainContext *context; 1158s # GMutex lock; 1158s # }; 1158s # 1158s # static void 1158s # _org_project_useful_interface_skeleton_handle_method_call ( 1158s # GDBusConnection *connection G_GNUC_UNUSED, 1158s # const gchar *sender G_GNUC_UNUSED, 1158s # const gchar *object_path G_GNUC_UNUSED, 1158s # const gchar *interface_name, 1158s # const gchar *method_name, 1158s # GVariant *parameters, 1158s # GDBusMethodInvocation *invocation, 1158s # gpointer user_data) 1158s # { 1158s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1158s # _ExtendedGDBusMethodInfo *info; 1158s # GVariantIter iter; 1158s # GVariant *child; 1158s # GValue *paramv; 1158s # gsize num_params; 1158s # guint num_extra; 1158s # gsize n; 1158s # guint signal_id; 1158s # GValue return_value = G_VALUE_INIT; 1158s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 1158s # g_assert (info != NULL); 1158s # num_params = g_variant_n_children (parameters); 1158s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 1158s # n = 0; 1158s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1158s # g_value_set_object (¶mv[n++], skeleton); 1158s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 1158s # g_value_set_object (¶mv[n++], invocation); 1158s # if (info->pass_fdlist) 1158s # { 1158s # #ifdef G_OS_UNIX 1158s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 1158s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 1158s # #else 1158s # g_assert_not_reached (); 1158s # #endif 1158s # } 1158s # g_variant_iter_init (&iter, parameters); 1158s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1158s # { 1158s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 1158s # if (arg_info->use_gvariant) 1158s # { 1158s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1158s # g_value_set_variant (¶mv[n], child); 1158s # n++; 1158s # } 1158s # else 1158s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1158s # g_variant_unref (child); 1158s # } 1158s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1158s # g_value_init (&return_value, G_TYPE_BOOLEAN); 1158s # g_signal_emitv (paramv, signal_id, 0, &return_value); 1158s # if (!g_value_get_boolean (&return_value)) 1158s # 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); 1158s # g_value_unset (&return_value); 1158s # for (n = 0; n < num_params + num_extra; n++) 1158s # g_value_unset (¶mv[n]); 1158s # g_free (paramv); 1158s # } 1158s # 1158s # static GVariant * 1158s # _org_project_useful_interface_skeleton_handle_get_property ( 1158s # GDBusConnection *connection G_GNUC_UNUSED, 1158s # const gchar *sender G_GNUC_UNUSED, 1158s # const gchar *object_path G_GNUC_UNUSED, 1158s # const gchar *interface_name G_GNUC_UNUSED, 1158s # const gchar *property_name, 1158s # GError **error, 1158s # gpointer user_data) 1158s # { 1158s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1158s # GValue value = G_VALUE_INIT; 1158s # GParamSpec *pspec; 1158s # _ExtendedGDBusPropertyInfo *info; 1158s # GVariant *ret; 1158s # ret = NULL; 1158s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 1158s # g_assert (info != NULL); 1158s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1158s # if (pspec == NULL) 1158s # { 1158s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1158s # } 1158s # else 1158s # { 1158s # g_value_init (&value, pspec->value_type); 1158s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1158s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 1158s # g_value_unset (&value); 1158s # } 1158s # return ret; 1158s # } 1158s # 1158s # static gboolean 1158s # _org_project_useful_interface_skeleton_handle_set_property ( 1158s # GDBusConnection *connection G_GNUC_UNUSED, 1158s # const gchar *sender G_GNUC_UNUSED, 1158s # const gchar *object_path G_GNUC_UNUSED, 1158s # const gchar *interface_name G_GNUC_UNUSED, 1158s # const gchar *property_name, 1158s # GVariant *variant, 1158s # GError **error, 1158s # gpointer user_data) 1158s # { 1158s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1158s # GValue value = G_VALUE_INIT; 1158s # GParamSpec *pspec; 1158s # _ExtendedGDBusPropertyInfo *info; 1158s # gboolean ret; 1158s # ret = FALSE; 1158s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 1158s # g_assert (info != NULL); 1158s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1158s # if (pspec == NULL) 1158s # { 1158s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1158s # } 1158s # else 1158s # { 1158s # if (info->use_gvariant) 1158s # g_value_set_variant (&value, variant); 1158s # else 1158s # g_dbus_gvariant_to_gvalue (variant, &value); 1158s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1158s # g_value_unset (&value); 1158s # ret = TRUE; 1158s # } 1158s # return ret; 1158s # } 1158s # 1158s # static const GDBusInterfaceVTable _org_project_useful_interface_skeleton_vtable = 1158s # { 1158s # _org_project_useful_interface_skeleton_handle_method_call, 1158s # _org_project_useful_interface_skeleton_handle_get_property, 1158s # _org_project_useful_interface_skeleton_handle_set_property, 1158s # {NULL} 1158s # }; 1158s # 1158s # static GDBusInterfaceInfo * 1158s # org_project_useful_interface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1158s # { 1158s # return org_project_useful_interface_interface_info (); 1158s # } 1158s # 1158s # static GDBusInterfaceVTable * 1158s # org_project_useful_interface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1158s # { 1158s # return (GDBusInterfaceVTable *) &_org_project_useful_interface_skeleton_vtable; 1158s # } 1158s # 1158s # static GVariant * 1158s # org_project_useful_interface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 1158s # { 1158s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (_skeleton); 1158s # 1158s # GVariantBuilder builder; 1158s # guint n; 1158s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 1158s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 1158s # #else 1158s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 1158s # #endif 1158s # if (_org_project_useful_interface_interface_info.parent_struct.properties == NULL) 1158s # goto out; 1158s # for (n = 0; _org_project_useful_interface_interface_info.parent_struct.properties[n] != NULL; n++) 1158s # { 1158s # GDBusPropertyInfo *info = _org_project_useful_interface_interface_info.parent_struct.properties[n]; 1158s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 1158s # { 1158s # GVariant *value; 1158s # 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); 1158s # if (value != NULL) 1158s # { 1158s # g_variant_take_ref (value); 1158s # g_variant_builder_add (&builder, "{sv}", info->name, value); 1158s # g_variant_unref (value); 1158s # } 1158s # } 1158s # } 1158s # out: 1158s # return g_variant_builder_end (&builder); 1158s # } 1158s # 1158s # static void 1158s # org_project_useful_interface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 1158s # { 1158s # } 1158s # 1158s # static void org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface); 1158s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1158s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1158s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceSkeleton) 1158s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 1158s # 1158s # #else 1158s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1158s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 1158s # 1158s # #endif 1158s # static void 1158s # org_project_useful_interface_skeleton_finalize (GObject *object) 1158s # { 1158s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (object); 1158s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 1158s # if (skeleton->priv->changed_properties_idle_source != NULL) 1158s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 1158s # g_main_context_unref (skeleton->priv->context); 1158s # g_mutex_clear (&skeleton->priv->lock); 1158s # G_OBJECT_CLASS (org_project_useful_interface_skeleton_parent_class)->finalize (object); 1158s # } 1158s # 1158s # static void 1158s # org_project_useful_interface_skeleton_init (OrgProjectUsefulInterfaceSkeleton *skeleton) 1158s # { 1158s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1158s # skeleton->priv = org_project_useful_interface_skeleton_get_instance_private (skeleton); 1158s # #else 1158s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, OrgProjectUsefulInterfaceSkeletonPrivate); 1158s # #endif 1158s # 1158s # g_mutex_init (&skeleton->priv->lock); 1158s # skeleton->priv->context = g_main_context_ref_thread_default (); 1158s # } 1158s # 1158s # static void 1158s # org_project_useful_interface_skeleton_class_init (OrgProjectUsefulInterfaceSkeletonClass *klass) 1158s # { 1158s # GObjectClass *gobject_class; 1158s # GDBusInterfaceSkeletonClass *skeleton_class; 1158s # 1158s # gobject_class = G_OBJECT_CLASS (klass); 1158s # gobject_class->finalize = org_project_useful_interface_skeleton_finalize; 1158s # 1158s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 1158s # skeleton_class->get_info = org_project_useful_interface_skeleton_dbus_interface_get_info; 1158s # skeleton_class->get_properties = org_project_useful_interface_skeleton_dbus_interface_get_properties; 1158s # skeleton_class->flush = org_project_useful_interface_skeleton_dbus_interface_flush; 1158s # skeleton_class->get_vtable = org_project_useful_interface_skeleton_dbus_interface_get_vtable; 1158s # 1158s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1158s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceSkeletonPrivate)); 1158s # #endif 1158s # } 1158s # 1158s # static void 1158s # org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 1158s # { 1158s # } 1158s # 1158s # /** 1158s # * org_project_useful_interface_skeleton_new: 1158s # * 1158s # * Creates a skeleton object for the D-Bus interface org.project.UsefulInterface. 1158s # * 1158s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceSkeleton): The skeleton object. 1158s # */ 1158s # OrgProjectUsefulInterface * 1158s # org_project_useful_interface_skeleton_new (void) 1158s # { 1158s # return ORG_PROJECT_USEFUL_INTERFACE (g_object_new (TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, NULL)); 1158s # } 1158s # Error: 1158s # 1158s # /tmp/tmpv_fj8nn0/tmpbgmochbp.xml: 1158s # 1158s # 1158s # 1158s # 1158s # 1158s # 1158s # 1158s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpv_fj8nn0/tmpbgmochbp.xml', '--output', '-', '--body'] 1158s # Return code: 0 1158s # Output: 1158s # /* 1158s # * This file is generated by gdbus-codegen, do not modify it. 1158s # * 1158s # * The license of this code is the same as for the D-Bus interface description 1158s # * it was derived from. Note that it links to GLib, so must comply with the 1158s # * LGPL linking clauses. 1158s # */ 1158s # 1158s # #ifdef HAVE_CONFIG_H 1158s # # include "config.h" 1158s # #endif 1158s # 1158s # #include 1158s # #ifdef G_OS_UNIX 1158s # # include 1158s # #endif 1158s # 1158s # #ifdef G_ENABLE_DEBUG 1158s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 1158s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 1158s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 1158s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 1158s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 1158s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 1158s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 1158s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 1158s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 1158s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 1158s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 1158s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 1158s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 1158s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 1158s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 1158s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 1158s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 1158s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 1158s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 1158s # #else /* !G_ENABLE_DEBUG */ 1158s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 1158s # * Do not access GValues directly in your code. Instead, use the 1158s # * g_value_get_*() functions 1158s # */ 1158s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 1158s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 1158s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 1158s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 1158s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 1158s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 1158s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 1158s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 1158s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 1158s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 1158s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 1158s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 1158s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 1158s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 1158s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 1158s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 1158s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 1158s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 1158s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 1158s # #endif /* !G_ENABLE_DEBUG */ 1158s # 1158s # typedef struct 1158s # { 1158s # GDBusArgInfo parent_struct; 1158s # gboolean use_gvariant; 1158s # } _ExtendedGDBusArgInfo; 1158s # 1158s # typedef struct 1158s # { 1158s # GDBusMethodInfo parent_struct; 1158s # const gchar *signal_name; 1158s # gboolean pass_fdlist; 1158s # } _ExtendedGDBusMethodInfo; 1158s # 1158s # typedef struct 1158s # { 1158s # GDBusSignalInfo parent_struct; 1158s # const gchar *signal_name; 1158s # } _ExtendedGDBusSignalInfo; 1158s # 1158s # typedef struct 1158s # { 1158s # GDBusPropertyInfo parent_struct; 1158s # const gchar *hyphen_name; 1158s # guint use_gvariant : 1; 1158s # guint emits_changed_signal : 1; 1158s # } _ExtendedGDBusPropertyInfo; 1158s # 1158s # typedef struct 1158s # { 1158s # GDBusInterfaceInfo parent_struct; 1158s # const gchar *hyphen_name; 1158s # } _ExtendedGDBusInterfaceInfo; 1158s # 1158s # typedef struct 1158s # { 1158s # const _ExtendedGDBusPropertyInfo *info; 1158s # guint prop_id; 1158s # GValue orig_value; /* the value before the change */ 1158s # } ChangedProperty; 1158s # 1158s # static void 1158s # _changed_property_free (ChangedProperty *data) 1158s # { 1158s # g_value_unset (&data->orig_value); 1158s # g_free (data); 1158s # } 1158s # 1158s # static gboolean 1158s # _g_strv_equal0 (gchar **a, gchar **b) 1158s # { 1158s # gboolean ret = FALSE; 1158s # guint n; 1158s # if (a == NULL && b == NULL) 1158s # { 1158s # ret = TRUE; 1158s # goto out; 1158s # } 1158s # if (a == NULL || b == NULL) 1158s # goto out; 1158s # if (g_strv_length (a) != g_strv_length (b)) 1158s # goto out; 1158s # for (n = 0; a[n] != NULL; n++) 1158s # if (g_strcmp0 (a[n], b[n]) != 0) 1158s # goto out; 1158s # ret = TRUE; 1158s # out: 1158s # return ret; 1158s # } 1158s # 1158s # static gboolean 1158s # _g_variant_equal0 (GVariant *a, GVariant *b) 1158s # { 1158s # gboolean ret = FALSE; 1158s # if (a == NULL && b == NULL) 1158s # { 1158s # ret = TRUE; 1158s # goto out; 1158s # } 1158s # if (a == NULL || b == NULL) 1158s # goto out; 1158s # ret = g_variant_equal (a, b); 1158s # out: 1158s # return ret; 1158s # } 1158s # 1158s # G_GNUC_UNUSED static gboolean 1158s # _g_value_equal (const GValue *a, const GValue *b) 1158s # { 1158s # gboolean ret = FALSE; 1158s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 1158s # switch (G_VALUE_TYPE (a)) 1158s # { 1158s # case G_TYPE_BOOLEAN: 1158s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 1158s # break; 1158s # case G_TYPE_UCHAR: 1158s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 1158s # break; 1158s # case G_TYPE_INT: 1158s # ret = (g_value_get_int (a) == g_value_get_int (b)); 1158s # break; 1158s # case G_TYPE_UINT: 1158s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 1158s # break; 1158s # case G_TYPE_INT64: 1158s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 1158s # break; 1158s # case G_TYPE_UINT64: 1158s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 1158s # break; 1158s # case G_TYPE_DOUBLE: 1158s # { 1158s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 1158s # gdouble da = g_value_get_double (a); 1158s # gdouble db = g_value_get_double (b); 1158s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 1158s # } 1158s # break; 1158s # case G_TYPE_STRING: 1158s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 1158s # break; 1158s # case G_TYPE_VARIANT: 1158s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 1158s # break; 1158s # default: 1158s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 1158s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 1158s # else 1158s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 1158s # break; 1158s # } 1158s # return ret; 1158s # } 1158s # 1158s # static void 1158s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT_UINT ( 1158s # GClosure *closure, 1158s # GValue *return_value, 1158s # unsigned int n_param_values, 1158s # const GValue *param_values, 1158s # void *invocation_hint G_GNUC_UNUSED, 1158s # void *marshal_data) 1158s # { 1158s # typedef gboolean (*_GDbusCodegenMarshalBoolean_ObjectUintFunc) 1158s # (void *data1, 1158s # GDBusMethodInvocation *arg_method_invocation, 1158s # guint16 arg_arg_q, 1158s # void *data2); 1158s # _GDbusCodegenMarshalBoolean_ObjectUintFunc callback; 1158s # GCClosure *cc = (GCClosure*) closure; 1158s # void *data1, *data2; 1158s # gboolean v_return; 1158s # 1158s # g_return_if_fail (return_value != NULL); 1158s # g_return_if_fail (n_param_values == 3); 1158s # 1158s # if (G_CCLOSURE_SWAP_DATA (closure)) 1158s # { 1158s # data1 = closure->data; 1158s # data2 = g_value_peek_pointer (param_values + 0); 1158s # } 1158s # else 1158s # { 1158s # data1 = g_value_peek_pointer (param_values + 0); 1158s # data2 = closure->data; 1158s # } 1158s # 1158s # callback = (_GDbusCodegenMarshalBoolean_ObjectUintFunc) 1158s # (marshal_data ? marshal_data : cc->callback); 1158s # 1158s # v_return = 1158s # callback (data1, 1158s # g_marshal_value_peek_object (param_values + 1), 1158s # g_marshal_value_peek_uint (param_values + 2), 1158s # data2); 1158s # 1158s # g_value_set_boolean (return_value, v_return); 1158s # } 1158s # 1158s # /* ------------------------------------------------------------------------ 1158s # * Code for interface org.project.UsefulInterface 1158s # * ------------------------------------------------------------------------ 1158s # */ 1158s # 1158s # /** 1158s # * SECTION:OrgProjectUsefulInterface 1158s # * @title: OrgProjectUsefulInterface 1158s # * @short_description: Generated C code for the org.project.UsefulInterface D-Bus interface 1158s # * 1158s # * This section contains code for working with the org.project.UsefulInterface D-Bus interface in C. 1158s # */ 1158s # 1158s # /* ---- Introspection data for org.project.UsefulInterface ---- */ 1158s # 1158s # static const _ExtendedGDBusArgInfo _org_project_useful_interface_method_info_single_arg_method_q_IN_ARG_arg_q = 1158s # { 1158s # { 1158s # -1, 1158s # (gchar *) "arg_q", 1158s # (gchar *) "q", 1158s # NULL 1158s # }, 1158s # FALSE 1158s # }; 1158s # 1158s # static const GDBusArgInfo * const _org_project_useful_interface_method_info_single_arg_method_q_IN_ARG_pointers[] = 1158s # { 1158s # &_org_project_useful_interface_method_info_single_arg_method_q_IN_ARG_arg_q.parent_struct, 1158s # NULL 1158s # }; 1158s # 1158s # static const _ExtendedGDBusMethodInfo _org_project_useful_interface_method_info_single_arg_method_q = 1158s # { 1158s # { 1158s # -1, 1158s # (gchar *) "SingleArgMethodQ", 1158s # (GDBusArgInfo **) &_org_project_useful_interface_method_info_single_arg_method_q_IN_ARG_pointers, 1158s # NULL, 1158s # NULL 1158s # }, 1158s # "handle-single-arg-method-q", 1158s # FALSE 1158s # }; 1158s # 1158s # static const GDBusMethodInfo * const _org_project_useful_interface_method_info_pointers[] = 1158s # { 1158s # &_org_project_useful_interface_method_info_single_arg_method_q.parent_struct, 1158s # NULL 1158s # }; 1158s # 1158s # static const _ExtendedGDBusInterfaceInfo _org_project_useful_interface_interface_info = 1158s # { 1158s # { 1158s # -1, 1158s # (gchar *) "org.project.UsefulInterface", 1158s # (GDBusMethodInfo **) &_org_project_useful_interface_method_info_pointers, 1158s # NULL, 1158s # NULL, 1158s # NULL 1158s # }, 1158s # "org-project-useful-interface", 1158s # }; 1158s # 1158s # 1158s # /** 1158s # * org_project_useful_interface_interface_info: 1158s # * 1158s # * Gets a machine-readable description of the org.project.UsefulInterface D-Bus interface. 1158s # * 1158s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 1158s # */ 1158s # GDBusInterfaceInfo * 1158s # org_project_useful_interface_interface_info (void) 1158s # { 1158s # return (GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct; 1158s # } 1158s # 1158s # /** 1158s # * org_project_useful_interface_override_properties: 1158s # * @klass: The class structure for a #GObject derived class. 1158s # * @property_id_begin: The property id to assign to the first overridden property. 1158s # * 1158s # * Overrides all #GObject properties in the #OrgProjectUsefulInterface interface for a concrete class. 1158s # * The properties are overridden in the order they are defined. 1158s # * 1158s # * Returns: The last property id. 1158s # */ 1158s # guint 1158s # org_project_useful_interface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 1158s # { 1158s # return property_id_begin - 1; 1158s # } 1158s # 1158s # 1158s # inline static void 1158s # org_project_useful_interface_method_marshal_single_arg_method_q ( 1158s # GClosure *closure, 1158s # GValue *return_value, 1158s # unsigned int n_param_values, 1158s # const GValue *param_values, 1158s # void *invocation_hint, 1158s # void *marshal_data) 1158s # { 1158s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT_UINT (closure, 1158s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1158s # } 1158s # 1158s # 1158s # /** 1158s # * OrgProjectUsefulInterface: 1158s # * 1158s # * Abstract interface type for the D-Bus interface org.project.UsefulInterface. 1158s # */ 1158s # 1158s # /** 1158s # * OrgProjectUsefulInterfaceIface: 1158s # * @parent_iface: The parent interface. 1158s # * @handle_single_arg_method_q: Handler for the #OrgProjectUsefulInterface::handle-single-arg-method-q signal. 1158s # * 1158s # * Virtual table for the D-Bus interface org.project.UsefulInterface. 1158s # */ 1158s # 1158s # typedef OrgProjectUsefulInterfaceIface OrgProjectUsefulInterfaceInterface; 1158s # G_DEFINE_INTERFACE (OrgProjectUsefulInterface, org_project_useful_interface, G_TYPE_OBJECT) 1158s # 1158s # static void 1158s # org_project_useful_interface_default_init (OrgProjectUsefulInterfaceIface *iface) 1158s # { 1158s # /* GObject signals for incoming D-Bus method calls: */ 1158s # /** 1158s # * OrgProjectUsefulInterface::handle-single-arg-method-q: 1158s # * @object: A #OrgProjectUsefulInterface. 1158s # * @invocation: A #GDBusMethodInvocation. 1158s # * @arg_arg_q: Argument passed by remote caller. 1158s # * 1158s # * Signal emitted when a remote caller is invoking the SingleArgMethodQ() D-Bus method. 1158s # * 1158s # * 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. 1158s # * 1158s # * 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. 1158s # */ 1158s # g_signal_new ("handle-single-arg-method-q", 1158s # G_TYPE_FROM_INTERFACE (iface), 1158s # G_SIGNAL_RUN_LAST, 1158s # G_STRUCT_OFFSET (OrgProjectUsefulInterfaceIface, handle_single_arg_method_q), 1158s # g_signal_accumulator_true_handled, 1158s # NULL, 1158s # org_project_useful_interface_method_marshal_single_arg_method_q, 1158s # G_TYPE_BOOLEAN, 1158s # 2, 1158s # G_TYPE_DBUS_METHOD_INVOCATION, G_TYPE_UINT); 1158s # 1158s # } 1158s # 1158s # /** 1158s # * org_project_useful_interface_call_single_arg_method_q: 1158s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1158s # * @arg_arg_q: Argument to pass with the method invocation. 1158s # * @cancellable: (nullable): A #GCancellable or %NULL. 1158s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL. 1158s # * @user_data: User data to pass to @callback. 1158s # * 1158s # * Asynchronously invokes the SingleArgMethodQ() D-Bus method on @proxy. 1158s # * 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()). 1158s # * You can then call org_project_useful_interface_call_single_arg_method_q_finish() to get the result of the operation. 1158s # * 1158s # * See org_project_useful_interface_call_single_arg_method_q_sync() for the synchronous, blocking version of this method. 1158s # */ 1158s # void 1158s # org_project_useful_interface_call_single_arg_method_q ( 1158s # OrgProjectUsefulInterface *proxy, 1158s # guint16 arg_arg_q, 1158s # GCancellable *cancellable, 1158s # GAsyncReadyCallback callback, 1158s # gpointer user_data) 1158s # { 1158s # g_dbus_proxy_call (G_DBUS_PROXY (proxy), 1158s # "SingleArgMethodQ", 1158s # g_variant_new ("(q)", 1158s # arg_arg_q), 1158s # G_DBUS_CALL_FLAGS_NONE, 1158s # -1, 1158s # cancellable, 1158s # callback, 1158s # user_data); 1158s # } 1158s # 1158s # /** 1158s # * org_project_useful_interface_call_single_arg_method_q_finish: 1158s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1158s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_call_single_arg_method_q(). 1158s # * @error: Return location for error or %NULL. 1158s # * 1158s # * Finishes an operation started with org_project_useful_interface_call_single_arg_method_q(). 1158s # * 1158s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1158s # */ 1158s # gboolean 1158s # org_project_useful_interface_call_single_arg_method_q_finish ( 1158s # OrgProjectUsefulInterface *proxy, 1158s # GAsyncResult *res, 1158s # GError **error) 1158s # { 1158s # GVariant *_ret; 1158s # _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error); 1158s # if (_ret == NULL) 1158s # goto _out; 1158s # g_variant_get (_ret, 1158s # "()"); 1158s # g_variant_unref (_ret); 1158s # _out: 1158s # return _ret != NULL; 1158s # } 1158s # 1158s # /** 1158s # * org_project_useful_interface_call_single_arg_method_q_sync: 1158s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1158s # * @arg_arg_q: Argument to pass with the method invocation. 1158s # * @cancellable: (nullable): A #GCancellable or %NULL. 1158s # * @error: Return location for error or %NULL. 1158s # * 1158s # * Synchronously invokes the SingleArgMethodQ() D-Bus method on @proxy. The calling thread is blocked until a reply is received. 1158s # * 1158s # * See org_project_useful_interface_call_single_arg_method_q() for the asynchronous version of this method. 1158s # * 1158s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1158s # */ 1158s # gboolean 1158s # org_project_useful_interface_call_single_arg_method_q_sync ( 1158s # OrgProjectUsefulInterface *proxy, 1158s # guint16 arg_arg_q, 1158s # GCancellable *cancellable, 1158s # GError **error) 1158s # { 1158s # GVariant *_ret; 1158s # _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy), 1158s # "SingleArgMethodQ", 1158s # g_variant_new ("(q)", 1158s # arg_arg_q), 1158s # G_DBUS_CALL_FLAGS_NONE, 1158s # -1, 1158s # cancellable, 1158s # error); 1158s # if (_ret == NULL) 1158s # goto _out; 1158s # g_variant_get (_ret, 1158s # "()"); 1158s # g_variant_unref (_ret); 1158s # _out: 1158s # return _ret != NULL; 1158s # } 1158s # 1158s # /** 1158s # * org_project_useful_interface_complete_single_arg_method_q: 1158s # * @object: A #OrgProjectUsefulInterface. 1158s # * @invocation: (transfer full): A #GDBusMethodInvocation. 1158s # * 1158s # * 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. 1158s # * 1158s # * This method will free @invocation, you cannot use it afterwards. 1158s # */ 1158s # void 1158s # org_project_useful_interface_complete_single_arg_method_q ( 1158s # OrgProjectUsefulInterface *object G_GNUC_UNUSED, 1158s # GDBusMethodInvocation *invocation) 1158s # { 1158s # g_dbus_method_invocation_return_value (invocation, 1158s # g_variant_new ("()")); 1158s # } 1158s # 1158s # /* ------------------------------------------------------------------------ */ 1158s # 1158s # /** 1158s # * OrgProjectUsefulInterfaceProxy: 1158s # * 1158s # * The #OrgProjectUsefulInterfaceProxy structure contains only private data and should only be accessed using the provided API. 1158s # */ 1158s # 1158s # /** 1158s # * OrgProjectUsefulInterfaceProxyClass: 1158s # * @parent_class: The parent class. 1158s # * 1158s # * Class structure for #OrgProjectUsefulInterfaceProxy. 1158s # */ 1158s # 1158s # struct _OrgProjectUsefulInterfaceProxyPrivate 1158s # { 1158s # GData *qdata; 1158s # }; 1158s # 1158s # static void org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface); 1158s # 1158s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1158s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 1158s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceProxy) 1158s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 1158s # 1158s # #else 1158s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 1158s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 1158s # 1158s # #endif 1158s # static void 1158s # org_project_useful_interface_proxy_finalize (GObject *object) 1158s # { 1158s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (object); 1158s # g_datalist_clear (&proxy->priv->qdata); 1158s # G_OBJECT_CLASS (org_project_useful_interface_proxy_parent_class)->finalize (object); 1158s # } 1158s # 1158s # static void 1158s # org_project_useful_interface_proxy_get_property (GObject *object G_GNUC_UNUSED, 1158s # guint prop_id G_GNUC_UNUSED, 1158s # GValue *value G_GNUC_UNUSED, 1158s # GParamSpec *pspec G_GNUC_UNUSED) 1158s # { 1158s # } 1158s # 1158s # static void 1158s # org_project_useful_interface_proxy_set_property (GObject *object G_GNUC_UNUSED, 1158s # guint prop_id G_GNUC_UNUSED, 1158s # const GValue *value G_GNUC_UNUSED, 1158s # GParamSpec *pspec G_GNUC_UNUSED) 1158s # { 1158s # } 1158s # 1158s # static void 1158s # org_project_useful_interface_proxy_g_signal (GDBusProxy *proxy, 1158s # const gchar *sender_name G_GNUC_UNUSED, 1158s # const gchar *signal_name, 1158s # GVariant *parameters) 1158s # { 1158s # _ExtendedGDBusSignalInfo *info; 1158s # GVariantIter iter; 1158s # GVariant *child; 1158s # GValue *paramv; 1158s # gsize num_params; 1158s # gsize n; 1158s # guint signal_id; 1158s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, signal_name); 1158s # if (info == NULL) 1158s # return; 1158s # num_params = g_variant_n_children (parameters); 1158s # paramv = g_new0 (GValue, num_params + 1); 1158s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1158s # g_value_set_object (¶mv[0], proxy); 1158s # g_variant_iter_init (&iter, parameters); 1158s # n = 1; 1158s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1158s # { 1158s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 1158s # if (arg_info->use_gvariant) 1158s # { 1158s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1158s # g_value_set_variant (¶mv[n], child); 1158s # n++; 1158s # } 1158s # else 1158s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1158s # g_variant_unref (child); 1158s # } 1158s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1158s # g_signal_emitv (paramv, signal_id, 0, NULL); 1158s # for (n = 0; n < num_params + 1; n++) 1158s # g_value_unset (¶mv[n]); 1158s # g_free (paramv); 1158s # } 1158s # 1158s # static void 1158s # org_project_useful_interface_proxy_g_properties_changed (GDBusProxy *_proxy, 1158s # GVariant *changed_properties, 1158s # const gchar *const *invalidated_properties) 1158s # { 1158s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (_proxy); 1158s # guint n; 1158s # const gchar *key; 1158s # GVariantIter *iter; 1158s # _ExtendedGDBusPropertyInfo *info; 1158s # g_variant_get (changed_properties, "a{sv}", &iter); 1158s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 1158s # { 1158s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, key); 1158s # g_datalist_remove_data (&proxy->priv->qdata, key); 1158s # if (info != NULL) 1158s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1158s # } 1158s # g_variant_iter_free (iter); 1158s # for (n = 0; invalidated_properties[n] != NULL; n++) 1158s # { 1158s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, invalidated_properties[n]); 1158s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 1158s # if (info != NULL) 1158s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1158s # } 1158s # } 1158s # 1158s # static void 1158s # org_project_useful_interface_proxy_init (OrgProjectUsefulInterfaceProxy *proxy) 1158s # { 1158s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1158s # proxy->priv = org_project_useful_interface_proxy_get_instance_private (proxy); 1158s # #else 1158s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY, OrgProjectUsefulInterfaceProxyPrivate); 1158s # #endif 1158s # 1158s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_useful_interface_interface_info ()); 1158s # } 1158s # 1158s # static void 1158s # org_project_useful_interface_proxy_class_init (OrgProjectUsefulInterfaceProxyClass *klass) 1158s # { 1158s # GObjectClass *gobject_class; 1158s # GDBusProxyClass *proxy_class; 1158s # 1158s # gobject_class = G_OBJECT_CLASS (klass); 1158s # gobject_class->finalize = org_project_useful_interface_proxy_finalize; 1158s # gobject_class->get_property = org_project_useful_interface_proxy_get_property; 1158s # gobject_class->set_property = org_project_useful_interface_proxy_set_property; 1158s # 1158s # proxy_class = G_DBUS_PROXY_CLASS (klass); 1158s # proxy_class->g_signal = org_project_useful_interface_proxy_g_signal; 1158s # proxy_class->g_properties_changed = org_project_useful_interface_proxy_g_properties_changed; 1158s # 1158s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1158s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceProxyPrivate)); 1158s # #endif 1158s # } 1158s # 1158s # static void 1158s # org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 1158s # { 1158s # } 1158s # 1158s # /** 1158s # * org_project_useful_interface_proxy_new: 1158s # * @connection: A #GDBusConnection. 1158s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1158s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1158s # * @object_path: An object path. 1158s # * @cancellable: (nullable): A #GCancellable or %NULL. 1158s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1158s # * @user_data: User data to pass to @callback. 1158s # * 1158s # * Asynchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new() for more details. 1158s # * 1158s # * 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()). 1158s # * You can then call org_project_useful_interface_proxy_new_finish() to get the result of the operation. 1158s # * 1158s # * See org_project_useful_interface_proxy_new_sync() for the synchronous, blocking version of this constructor. 1158s # */ 1158s # void 1158s # org_project_useful_interface_proxy_new ( 1158s # GDBusConnection *connection, 1158s # GDBusProxyFlags flags, 1158s # const gchar *name, 1158s # const gchar *object_path, 1158s # GCancellable *cancellable, 1158s # GAsyncReadyCallback callback, 1158s # gpointer user_data) 1158s # { 1158s # 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); 1158s # } 1158s # 1158s # /** 1158s # * org_project_useful_interface_proxy_new_finish: 1158s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new(). 1158s # * @error: Return location for error or %NULL 1158s # * 1158s # * Finishes an operation started with org_project_useful_interface_proxy_new(). 1158s # * 1158s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1158s # */ 1158s # OrgProjectUsefulInterface * 1158s # org_project_useful_interface_proxy_new_finish ( 1158s # GAsyncResult *res, 1158s # GError **error) 1158s # { 1158s # GObject *ret; 1158s # GObject *source_object; 1158s # source_object = g_async_result_get_source_object (res); 1158s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1158s # g_object_unref (source_object); 1158s # if (ret != NULL) 1158s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1158s # else 1158s # return NULL; 1158s # } 1158s # 1158s # /** 1158s # * org_project_useful_interface_proxy_new_sync: 1158s # * @connection: A #GDBusConnection. 1158s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1158s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1158s # * @object_path: An object path. 1158s # * @cancellable: (nullable): A #GCancellable or %NULL. 1158s # * @error: Return location for error or %NULL 1158s # * 1158s # * Synchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new_sync() for more details. 1158s # * 1158s # * The calling thread is blocked until a reply is received. 1158s # * 1158s # * See org_project_useful_interface_proxy_new() for the asynchronous version of this constructor. 1158s # * 1158s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1158s # */ 1158s # OrgProjectUsefulInterface * 1158s # org_project_useful_interface_proxy_new_sync ( 1158s # GDBusConnection *connection, 1158s # GDBusProxyFlags flags, 1158s # const gchar *name, 1158s # const gchar *object_path, 1158s # GCancellable *cancellable, 1158s # GError **error) 1158s # { 1158s # GInitable *ret; 1158s # 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); 1158s # if (ret != NULL) 1158s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1158s # else 1158s # return NULL; 1158s # } 1158s # 1158s # 1158s # /** 1158s # * org_project_useful_interface_proxy_new_for_bus: 1158s # * @bus_type: A #GBusType. 1158s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1158s # * @name: A bus name (well-known or unique). 1158s # * @object_path: An object path. 1158s # * @cancellable: (nullable): A #GCancellable or %NULL. 1158s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1158s # * @user_data: User data to pass to @callback. 1158s # * 1158s # * Like org_project_useful_interface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 1158s # * 1158s # * 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()). 1158s # * You can then call org_project_useful_interface_proxy_new_for_bus_finish() to get the result of the operation. 1158s # * 1158s # * See org_project_useful_interface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 1158s # */ 1158s # void 1158s # org_project_useful_interface_proxy_new_for_bus ( 1158s # GBusType bus_type, 1158s # GDBusProxyFlags flags, 1158s # const gchar *name, 1158s # const gchar *object_path, 1158s # GCancellable *cancellable, 1158s # GAsyncReadyCallback callback, 1158s # gpointer user_data) 1158s # { 1158s # 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); 1158s # } 1158s # 1158s # /** 1158s # * org_project_useful_interface_proxy_new_for_bus_finish: 1158s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new_for_bus(). 1158s # * @error: Return location for error or %NULL 1158s # * 1158s # * Finishes an operation started with org_project_useful_interface_proxy_new_for_bus(). 1158s # * 1158s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1158s # */ 1158s # OrgProjectUsefulInterface * 1158s # org_project_useful_interface_proxy_new_for_bus_finish ( 1158s # GAsyncResult *res, 1158s # GError **error) 1158s # { 1158s # GObject *ret; 1158s # GObject *source_object; 1158s # source_object = g_async_result_get_source_object (res); 1158s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1158s # g_object_unref (source_object); 1158s # if (ret != NULL) 1158s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1158s # else 1158s # return NULL; 1158s # } 1158s # 1158s # /** 1158s # * org_project_useful_interface_proxy_new_for_bus_sync: 1158s # * @bus_type: A #GBusType. 1158s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1158s # * @name: A bus name (well-known or unique). 1158s # * @object_path: An object path. 1158s # * @cancellable: (nullable): A #GCancellable or %NULL. 1158s # * @error: Return location for error or %NULL 1158s # * 1158s # * Like org_project_useful_interface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 1158s # * 1158s # * The calling thread is blocked until a reply is received. 1158s # * 1158s # * See org_project_useful_interface_proxy_new_for_bus() for the asynchronous version of this constructor. 1158s # * 1158s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1158s # */ 1158s # OrgProjectUsefulInterface * 1158s # org_project_useful_interface_proxy_new_for_bus_sync ( 1158s # GBusType bus_type, 1158s # GDBusProxyFlags flags, 1158s # const gchar *name, 1158s # const gchar *object_path, 1158s # GCancellable *cancellable, 1158s # GError **error) 1158s # { 1158s # GInitable *ret; 1158s # 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); 1158s # if (ret != NULL) 1158s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1158s # else 1158s # return NULL; 1158s # } 1158s # 1158s # 1158s # /* ------------------------------------------------------------------------ */ 1158s # 1158s # /** 1158s # * OrgProjectUsefulInterfaceSkeleton: 1158s # * 1158s # * The #OrgProjectUsefulInterfaceSkeleton structure contains only private data and should only be accessed using the provided API. 1158s # */ 1158s # 1158s # /** 1158s # * OrgProjectUsefulInterfaceSkeletonClass: 1158s # * @parent_class: The parent class. 1158s # * 1158s # * Class structure for #OrgProjectUsefulInterfaceSkeleton. 1158s # */ 1158s # 1158s # struct _OrgProjectUsefulInterfaceSkeletonPrivate 1158s # { 1158s # GValue *properties; 1158s # GList *changed_properties; 1158s # GSource *changed_properties_idle_source; 1158s # GMainContext *context; 1158s # GMutex lock; 1158s # }; 1158s # 1158s # static void 1158s # _org_project_useful_interface_skeleton_handle_method_call ( 1158s # GDBusConnection *connection G_GNUC_UNUSED, 1158s # const gchar *sender G_GNUC_UNUSED, 1158s # const gchar *object_path G_GNUC_UNUSED, 1158s # const gchar *interface_name, 1158s # const gchar *method_name, 1158s # GVariant *parameters, 1158s # GDBusMethodInvocation *invocation, 1158s # gpointer user_data) 1158s # { 1158s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1158s # _ExtendedGDBusMethodInfo *info; 1158s # GVariantIter iter; 1158s # GVariant *child; 1158s # GValue *paramv; 1158s # gsize num_params; 1158s # guint num_extra; 1158s # gsize n; 1158s # guint signal_id; 1158s # GValue return_value = G_VALUE_INIT; 1158s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 1158s # g_assert (info != NULL); 1158s # num_params = g_variant_n_children (parameters); 1158s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 1158s # n = 0; 1158s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1158s # g_value_set_object (¶mv[n++], skeleton); 1158s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 1158s # g_value_set_object (¶mv[n++], invocation); 1158s # if (info->pass_fdlist) 1158s # { 1158s # #ifdef G_OS_UNIX 1158s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 1158s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 1158s # #else 1158s # g_assert_not_reached (); 1158s # #endif 1158s # } 1158s # g_variant_iter_init (&iter, parameters); 1158s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1158s # { 1158s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 1158s # if (arg_info->use_gvariant) 1158s # { 1158s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1158s # g_value_set_variant (¶mv[n], child); 1158s # n++; 1158s # } 1158s # else 1158s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1158s # g_variant_unref (child); 1158s # } 1158s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1158s # g_value_init (&return_value, G_TYPE_BOOLEAN); 1158s # g_signal_emitv (paramv, signal_id, 0, &return_value); 1158s # if (!g_value_get_boolean (&return_value)) 1158s # 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); 1158s # g_value_unset (&return_value); 1158s # for (n = 0; n < num_params + num_extra; n++) 1158s # g_value_unset (¶mv[n]); 1158s # g_free (paramv); 1158s # } 1158s # 1158s # static GVariant * 1158s # _org_project_useful_interface_skeleton_handle_get_property ( 1158s # GDBusConnection *connection G_GNUC_UNUSED, 1158s # const gchar *sender G_GNUC_UNUSED, 1158s # const gchar *object_path G_GNUC_UNUSED, 1158s # const gchar *interface_name G_GNUC_UNUSED, 1158s # const gchar *property_name, 1158s # GError **error, 1158s # gpointer user_data) 1158s # { 1158s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1158s # GValue value = G_VALUE_INIT; 1158s # GParamSpec *pspec; 1158s # _ExtendedGDBusPropertyInfo *info; 1158s # GVariant *ret; 1158s # ret = NULL; 1158s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 1158s # g_assert (info != NULL); 1158s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1158s # if (pspec == NULL) 1158s # { 1158s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1158s # } 1158s # else 1158s # { 1158s # g_value_init (&value, pspec->value_type); 1158s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1158s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 1158s # g_value_unset (&value); 1158s # } 1158s # return ret; 1158s # } 1158s # 1158s # static gboolean 1158s # _org_project_useful_interface_skeleton_handle_set_property ( 1158s # GDBusConnection *connection G_GNUC_UNUSED, 1158s # const gchar *sender G_GNUC_UNUSED, 1158s # const gchar *object_path G_GNUC_UNUSED, 1158s # const gchar *interface_name G_GNUC_UNUSED, 1158s # const gchar *property_name, 1158s # GVariant *variant, 1158s # GError **error, 1158s # gpointer user_data) 1158s # { 1158s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1158s # GValue value = G_VALUE_INIT; 1158s # GParamSpec *pspec; 1158s # _ExtendedGDBusPropertyInfo *info; 1158s # gboolean ret; 1158s # ret = FALSE; 1158s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 1158s # g_assert (info != NULL); 1158s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1158s # if (pspec == NULL) 1158s # { 1158s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1158s # } 1158s # else 1158s # { 1158s # if (info->use_gvariant) 1158s # g_value_set_variant (&value, variant); 1158s # else 1158s # g_dbus_gvariant_to_gvalue (variant, &value); 1158s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1158s # g_value_unset (&value); 1158s # ret = TRUE; 1158s # } 1158s # return ret; 1158s # } 1158s # 1158s # static const GDBusInterfaceVTable _org_project_useful_interface_skeleton_vtable = 1158s # { 1158s # _org_project_useful_interface_skeleton_handle_method_call, 1158s # _org_project_useful_interface_skeleton_handle_get_property, 1158s # _org_project_useful_interface_skeleton_handle_set_property, 1158s # {NULL} 1158s # }; 1158s # 1158s # static GDBusInterfaceInfo * 1158s # org_project_useful_interface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1158s # { 1158s # return org_project_useful_interface_interface_info (); 1158s # } 1158s # 1158s # static GDBusInterfaceVTable * 1158s # org_project_useful_interface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1158s # { 1158s # return (GDBusInterfaceVTable *) &_org_project_useful_interface_skeleton_vtable; 1158s # } 1158s # 1158s # static GVariant * 1158s # org_project_useful_interface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 1158s # { 1158s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (_skeleton); 1158s # 1158s # GVariantBuilder builder; 1158s # guint n; 1158s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 1158s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 1158s # #else 1158s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 1158s # #endif 1158s # if (_org_project_useful_interface_interface_info.parent_struct.properties == NULL) 1158s # goto out; 1158s # for (n = 0; _org_project_useful_interface_interface_info.parent_struct.properties[n] != NULL; n++) 1158s # { 1158s # GDBusPropertyInfo *info = _org_project_useful_interface_interface_info.parent_struct.properties[n]; 1158s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 1158s # { 1158s # GVariant *value; 1158s # 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); 1158s # if (value != NULL) 1158s # { 1158s # g_variant_take_ref (value); 1158s # g_variant_builder_add (&builder, "{sv}", info->name, value); 1158s # g_variant_unref (value); 1158s # } 1158s # } 1158s # } 1158s # out: 1158s # return g_variant_builder_end (&builder); 1158s # } 1158s # 1158s # static void 1158s # org_project_useful_interface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 1158s # { 1158s # } 1158s # 1158s # static void org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface); 1158s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1158s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1158s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceSkeleton) 1158s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 1158s # 1158s # #else 1158s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1158s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 1158s # 1158s # #endif 1158s # static void 1158s # org_project_useful_interface_skeleton_finalize (GObject *object) 1158s # { 1158s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (object); 1158s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 1158s # if (skeleton->priv->changed_properties_idle_source != NULL) 1158s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 1158s # g_main_context_unref (skeleton->priv->context); 1158s # g_mutex_clear (&skeleton->priv->lock); 1158s # G_OBJECT_CLASS (org_project_useful_interface_skeleton_parent_class)->finalize (object); 1158s # } 1158s # 1158s # static void 1158s # org_project_useful_interface_skeleton_init (OrgProjectUsefulInterfaceSkeleton *skeleton) 1158s # { 1158s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1158s # skeleton->priv = org_project_useful_interface_skeleton_get_instance_private (skeleton); 1158s # #else 1158s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, OrgProjectUsefulInterfaceSkeletonPrivate); 1158s # #endif 1158s # 1158s # g_mutex_init (&skeleton->priv->lock); 1158s # skeleton->priv->context = g_main_context_ref_thread_default (); 1158s # } 1158s # 1158s # static void 1158s # org_project_useful_interface_skeleton_class_init (OrgProjectUsefulInterfaceSkeletonClass *klass) 1158s # { 1158s # GObjectClass *gobject_class; 1158s # GDBusInterfaceSkeletonClass *skeleton_class; 1158s # 1158s # gobject_class = G_OBJECT_CLASS (klass); 1158s # gobject_class->finalize = org_project_useful_interface_skeleton_finalize; 1158s # 1158s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 1158s # skeleton_class->get_info = org_project_useful_interface_skeleton_dbus_interface_get_info; 1158s # skeleton_class->get_properties = org_project_useful_interface_skeleton_dbus_interface_get_properties; 1158s # skeleton_class->flush = org_project_useful_interface_skeleton_dbus_interface_flush; 1158s # skeleton_class->get_vtable = org_project_useful_interface_skeleton_dbus_interface_get_vtable; 1158s # 1158s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1158s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceSkeletonPrivate)); 1158s # #endif 1158s # } 1158s # 1158s # static void 1158s # org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 1158s # { 1158s # } 1158s # 1158s # /** 1158s # * org_project_useful_interface_skeleton_new: 1158s # * 1158s # * Creates a skeleton object for the D-Bus interface org.project.UsefulInterface. 1158s # * 1158s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceSkeleton): The skeleton object. 1158s # */ 1158s # OrgProjectUsefulInterface * 1158s # org_project_useful_interface_skeleton_new (void) 1158s # { 1158s # return ORG_PROJECT_USEFUL_INTERFACE (g_object_new (TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, NULL)); 1158s # } 1158s # Error: 1158s # 1158s # /tmp/tmpv_fj8nn0/tmpt4cgsbrp.xml: 1158s # 1158s # 1158s # 1158s # 1158s # 1158s # 1158s # 1158s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpv_fj8nn0/tmpt4cgsbrp.xml', '--output', '-', '--body'] 1158s # Return code: 0 1158s # Output: 1158s # /* 1158s # * This file is generated by gdbus-codegen, do not modify it. 1158s # * 1158s # * The license of this code is the same as for the D-Bus interface description 1158s # * it was derived from. Note that it links to GLib, so must comply with the 1158s # * LGPL linking clauses. 1158s # */ 1158s # 1158s # #ifdef HAVE_CONFIG_H 1158s # # include "config.h" 1158s # #endif 1158s # 1158s # #include 1158s # #ifdef G_OS_UNIX 1158s # # include 1158s # #endif 1158s # 1158s # #ifdef G_ENABLE_DEBUG 1158s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 1158s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 1158s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 1158s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 1158s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 1158s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 1158s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 1158s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 1158s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 1158s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 1158s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 1158s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 1158s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 1158s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 1158s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 1158s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 1158s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 1158s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 1158s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 1158s # #else /* !G_ENABLE_DEBUG */ 1158s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 1158s # * Do not access GValues directly in your code. Instead, use the 1158s # * g_value_get_*() functions 1158s # */ 1158s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 1158s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 1158s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 1158s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 1158s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 1158s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 1158s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 1158s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 1158s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 1158s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 1158s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 1158s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 1158s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 1158s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 1158s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 1158s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 1158s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 1158s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 1158s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 1158s # #endif /* !G_ENABLE_DEBUG */ 1158s # 1158s # typedef struct 1158s # { 1158s # GDBusArgInfo parent_struct; 1158s # gboolean use_gvariant; 1158s # } _ExtendedGDBusArgInfo; 1158s # 1158s # typedef struct 1158s # { 1158s # GDBusMethodInfo parent_struct; 1158s # const gchar *signal_name; 1158s # gboolean pass_fdlist; 1158s # } _ExtendedGDBusMethodInfo; 1158s # 1158s # typedef struct 1158s # { 1158s # GDBusSignalInfo parent_struct; 1158s # const gchar *signal_name; 1158s # } _ExtendedGDBusSignalInfo; 1158s # 1158s # typedef struct 1158s # { 1158s # GDBusPropertyInfo parent_struct; 1158s # const gchar *hyphen_name; 1158s # guint use_gvariant : 1; 1158s # guint emits_changed_signal : 1; 1158s # } _ExtendedGDBusPropertyInfo; 1158s # 1158s # typedef struct 1158s # { 1158s # GDBusInterfaceInfo parent_struct; 1158s # const gchar *hyphen_name; 1158s # } _ExtendedGDBusInterfaceInfo; 1158s # 1158s # typedef struct 1158s # { 1158s # const _ExtendedGDBusPropertyInfo *info; 1158s # guint prop_id; 1158s # GValue orig_value; /* the value before the change */ 1158s # } ChangedProperty; 1158s # 1158s # static void 1158s # _changed_property_free (ChangedProperty *data) 1158s # { 1158s # g_value_unset (&data->orig_value); 1158s # g_free (data); 1158s # } 1158s # 1158s # static gboolean 1158s # _g_strv_equal0 (gchar **a, gchar **b) 1158s # { 1158s # gboolean ret = FALSE; 1158s # guint n; 1158s # if (a == NULL && b == NULL) 1158s # { 1158s # ret = TRUE; 1158s # goto out; 1158s # } 1158s # if (a == NULL || b == NULL) 1158s # goto out; 1158s # if (g_strv_length (a) != g_strv_length (b)) 1158s # goto out; 1158s # for (n = 0; a[n] != NULL; n++) 1158s # if (g_strcmp0 (a[n], b[n]) != 0) 1158s # goto out; 1158s # ret = TRUE; 1158s # out: 1158s # return ret; 1158s # } 1158s # 1158s # static gboolean 1158s # _g_variant_equal0 (GVariant *a, GVariant *b) 1158s # { 1158s # gboolean ret = FALSE; 1158s # if (a == NULL && b == NULL) 1158s # { 1158s # ret = TRUE; 1158s # goto out; 1158s # } 1158s # if (a == NULL || b == NULL) 1158s # goto out; 1158s # ret = g_variant_equal (a, b); 1158s # out: 1158s # return ret; 1158s # } 1158s # 1158s # G_GNUC_UNUSED static gboolean 1158s # _g_value_equal (const GValue *a, const GValue *b) 1158s # { 1158s # gboolean ret = FALSE; 1158s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 1158s # switch (G_VALUE_TYPE (a)) 1158s # { 1158s # case G_TYPE_BOOLEAN: 1158s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 1158s # break; 1158s # case G_TYPE_UCHAR: 1158s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 1158s # break; 1158s # case G_TYPE_INT: 1158s # ret = (g_value_get_int (a) == g_value_get_int (b)); 1158s # break; 1158s # case G_TYPE_UINT: 1158s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 1158s # break; 1158s # case G_TYPE_INT64: 1158s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 1158s # break; 1158s # case G_TYPE_UINT64: 1158s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 1158s # break; 1158s # case G_TYPE_DOUBLE: 1158s # { 1158s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 1158s # gdouble da = g_value_get_double (a); 1158s # gdouble db = g_value_get_double (b); 1158s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 1158s # } 1158s # break; 1158s # case G_TYPE_STRING: 1158s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 1158s # break; 1158s # case G_TYPE_VARIANT: 1158s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 1158s # break; 1158s # default: 1158s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 1158s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 1158s # else 1158s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 1158s # break; 1158s # } 1158s # return ret; 1158s # } 1158s # 1158s # static void 1158s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT_INT ( 1158s # GClosure *closure, 1158s # GValue *return_value, 1158s # unsigned int n_param_values, 1158s # const GValue *param_values, 1158s # void *invocation_hint G_GNUC_UNUSED, 1158s # void *marshal_data) 1158s # { 1158s # typedef gboolean (*_GDbusCodegenMarshalBoolean_ObjectIntFunc) 1158s # (void *data1, 1158s # GDBusMethodInvocation *arg_method_invocation, 1158s # gint arg_arg_i, 1158s # void *data2); 1158s # _GDbusCodegenMarshalBoolean_ObjectIntFunc callback; 1158s # GCClosure *cc = (GCClosure*) closure; 1158s # void *data1, *data2; 1158s # gboolean v_return; 1158s # 1158s # g_return_if_fail (return_value != NULL); 1158s # g_return_if_fail (n_param_values == 3); 1158s # 1158s # if (G_CCLOSURE_SWAP_DATA (closure)) 1158s # { 1158s # data1 = closure->data; 1158s # data2 = g_value_peek_pointer (param_values + 0); 1158s # } 1158s # else 1158s # { 1158s # data1 = g_value_peek_pointer (param_values + 0); 1158s # data2 = closure->data; 1158s # } 1158s # 1158s # callback = (_GDbusCodegenMarshalBoolean_ObjectIntFunc) 1158s # (marshal_data ? marshal_data : cc->callback); 1158s # 1158s # v_return = 1158s # callback (data1, 1158s # g_marshal_value_peek_object (param_values + 1), 1158s # g_marshal_value_peek_int (param_values + 2), 1158s # data2); 1158s # 1158s # g_value_set_boolean (return_value, v_return); 1158s # } 1158s # 1158s # /* ------------------------------------------------------------------------ 1158s # * Code for interface org.project.UsefulInterface 1158s # * ------------------------------------------------------------------------ 1158s # */ 1158s # 1158s # /** 1158s # * SECTION:OrgProjectUsefulInterface 1158s # * @title: OrgProjectUsefulInterface 1158s # * @short_description: Generated C code for the org.project.UsefulInterface D-Bus interface 1158s # * 1158s # * This section contains code for working with the org.project.UsefulInterface D-Bus interface in C. 1158s # */ 1158s # 1158s # /* ---- Introspection data for org.project.UsefulInterface ---- */ 1158s # 1158s # static const _ExtendedGDBusArgInfo _org_project_useful_interface_method_info_single_arg_method_i_IN_ARG_arg_i = 1158s # { 1158s # { 1158s # -1, 1158s # (gchar *) "arg_i", 1158s # (gchar *) "i", 1158s # NULL 1158s # }, 1158s # FALSE 1158s # }; 1158s # 1158s # static const GDBusArgInfo * const _org_project_useful_interface_method_info_single_arg_method_i_IN_ARG_pointers[] = 1158s # { 1158s # &_org_project_useful_interface_method_info_single_arg_method_i_IN_ARG_arg_i.parent_struct, 1158s # NULL 1158s # }; 1158s # 1158s # static const _ExtendedGDBusMethodInfo _org_project_useful_interface_method_info_single_arg_method_i = 1158s # { 1158s # { 1158s # -1, 1158s # (gchar *) "SingleArgMethodI", 1158s # (GDBusArgInfo **) &_org_project_useful_interface_method_info_single_arg_method_i_IN_ARG_pointers, 1158s # NULL, 1158s # NULL 1158s # }, 1158s # "handle-single-arg-method-i", 1158s # FALSE 1158s # }; 1158s # 1158s # static const GDBusMethodInfo * const _org_project_useful_interface_method_info_pointers[] = 1158s # { 1158s # &_org_project_useful_interface_method_info_single_arg_method_i.parent_struct, 1158s # NULL 1158s # }; 1158s # 1158s # static const _ExtendedGDBusInterfaceInfo _org_project_useful_interface_interface_info = 1158s # { 1158s # { 1158s # -1, 1158s # (gchar *) "org.project.UsefulInterface", 1158s # (GDBusMethodInfo **) &_org_project_useful_interface_method_info_pointers, 1158s # NULL, 1158s # NULL, 1158s # NULL 1158s # }, 1158s # "org-project-useful-interface", 1158s # }; 1158s # 1158s # 1158s # /** 1158s # * org_project_useful_interface_interface_info: 1158s # * 1158s # * Gets a machine-readable description of the org.project.UsefulInterface D-Bus interface. 1158s # * 1158s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 1158s # */ 1158s # GDBusInterfaceInfo * 1158s # org_project_useful_interface_interface_info (void) 1158s # { 1158s # return (GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct; 1158s # } 1158s # 1158s # /** 1158s # * org_project_useful_interface_override_properties: 1158s # * @klass: The class structure for a #GObject derived class. 1158s # * @property_id_begin: The property id to assign to the first overridden property. 1158s # * 1158s # * Overrides all #GObject properties in the #OrgProjectUsefulInterface interface for a concrete class. 1158s # * The properties are overridden in the order they are defined. 1158s # * 1158s # * Returns: The last property id. 1158s # */ 1158s # guint 1158s # org_project_useful_interface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 1158s # { 1158s # return property_id_begin - 1; 1158s # } 1158s # 1158s # 1158s # inline static void 1158s # org_project_useful_interface_method_marshal_single_arg_method_i ( 1158s # GClosure *closure, 1158s # GValue *return_value, 1158s # unsigned int n_param_values, 1158s # const GValue *param_values, 1158s # void *invocation_hint, 1158s # void *marshal_data) 1158s # { 1158s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT_INT (closure, 1158s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1158s # } 1158s # 1158s # 1158s # /** 1158s # * OrgProjectUsefulInterface: 1158s # * 1158s # * Abstract interface type for the D-Bus interface org.project.UsefulInterface. 1158s # */ 1158s # 1158s # /** 1158s # * OrgProjectUsefulInterfaceIface: 1158s # * @parent_iface: The parent interface. 1158s # * @handle_single_arg_method_i: Handler for the #OrgProjectUsefulInterface::handle-single-arg-method-i signal. 1158s # * 1158s # * Virtual table for the D-Bus interface org.project.UsefulInterface. 1158s # */ 1158s # 1158s # typedef OrgProjectUsefulInterfaceIface OrgProjectUsefulInterfaceInterface; 1158s # G_DEFINE_INTERFACE (OrgProjectUsefulInterface, org_project_useful_interface, G_TYPE_OBJECT) 1158s # 1158s # static void 1158s # org_project_useful_interface_default_init (OrgProjectUsefulInterfaceIface *iface) 1158s # { 1158s # /* GObject signals for incoming D-Bus method calls: */ 1158s # /** 1158s # * OrgProjectUsefulInterface::handle-single-arg-method-i: 1158s # * @object: A #OrgProjectUsefulInterface. 1158s # * @invocation: A #GDBusMethodInvocation. 1158s # * @arg_arg_i: Argument passed by remote caller. 1158s # * 1158s # * Signal emitted when a remote caller is invoking the SingleArgMethodI() D-Bus method. 1158s # * 1158s # * 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. 1158s # * 1158s # * 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. 1158s # */ 1158s # g_signal_new ("handle-single-arg-method-i", 1158s # G_TYPE_FROM_INTERFACE (iface), 1158s # G_SIGNAL_RUN_LAST, 1158s # G_STRUCT_OFFSET (OrgProjectUsefulInterfaceIface, handle_single_arg_method_i), 1158s # g_signal_accumulator_true_handled, 1158s # NULL, 1158s # org_project_useful_interface_method_marshal_single_arg_method_i, 1158s # G_TYPE_BOOLEAN, 1158s # 2, 1158s # G_TYPE_DBUS_METHOD_INVOCATION, G_TYPE_INT); 1158s # 1158s # } 1158s # 1158s # /** 1158s # * org_project_useful_interface_call_single_arg_method_i: 1158s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1158s # * @arg_arg_i: Argument to pass with the method invocation. 1158s # * @cancellable: (nullable): A #GCancellable or %NULL. 1158s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL. 1158s # * @user_data: User data to pass to @callback. 1158s # * 1158s # * Asynchronously invokes the SingleArgMethodI() D-Bus method on @proxy. 1158s # * 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()). 1158s # * You can then call org_project_useful_interface_call_single_arg_method_i_finish() to get the result of the operation. 1158s # * 1158s # * See org_project_useful_interface_call_single_arg_method_i_sync() for the synchronous, blocking version of this method. 1158s # */ 1158s # void 1158s # org_project_useful_interface_call_single_arg_method_i ( 1158s # OrgProjectUsefulInterface *proxy, 1158s # gint arg_arg_i, 1158s # GCancellable *cancellable, 1158s # GAsyncReadyCallback callback, 1158s # gpointer user_data) 1158s # { 1158s # g_dbus_proxy_call (G_DBUS_PROXY (proxy), 1158s # "SingleArgMethodI", 1158s # g_variant_new ("(i)", 1158s # arg_arg_i), 1158s # G_DBUS_CALL_FLAGS_NONE, 1158s # -1, 1158s # cancellable, 1158s # callback, 1158s # user_data); 1158s # } 1158s # 1158s # /** 1158s # * org_project_useful_interface_call_single_arg_method_i_finish: 1158s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1158s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_call_single_arg_method_i(). 1158s # * @error: Return location for error or %NULL. 1158s # * 1158s # * Finishes an operation started with org_project_useful_interface_call_single_arg_method_i(). 1158s # * 1158s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1158s # */ 1158s # gboolean 1158s # org_project_useful_interface_call_single_arg_method_i_finish ( 1158s # OrgProjectUsefulInterface *proxy, 1158s # GAsyncResult *res, 1158s # GError **error) 1158s # { 1158s # GVariant *_ret; 1158s # _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error); 1158s # if (_ret == NULL) 1158s # goto _out; 1158s # g_variant_get (_ret, 1158s # "()"); 1158s # g_variant_unref (_ret); 1158s # _out: 1158s # return _ret != NULL; 1158s # } 1158s # 1158s # /** 1158s # * org_project_useful_interface_call_single_arg_method_i_sync: 1158s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1158s # * @arg_arg_i: Argument to pass with the method invocation. 1158s # * @cancellable: (nullable): A #GCancellable or %NULL. 1158s # * @error: Return location for error or %NULL. 1158s # * 1158s # * Synchronously invokes the SingleArgMethodI() D-Bus method on @proxy. The calling thread is blocked until a reply is received. 1158s # * 1158s # * See org_project_useful_interface_call_single_arg_method_i() for the asynchronous version of this method. 1158s # * 1158s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1158s # */ 1158s # gboolean 1158s # org_project_useful_interface_call_single_arg_method_i_sync ( 1158s # OrgProjectUsefulInterface *proxy, 1158s # gint arg_arg_i, 1158s # GCancellable *cancellable, 1158s # GError **error) 1158s # { 1158s # GVariant *_ret; 1158s # _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy), 1158s # "SingleArgMethodI", 1158s # g_variant_new ("(i)", 1158s # arg_arg_i), 1158s # G_DBUS_CALL_FLAGS_NONE, 1158s # -1, 1158s # cancellable, 1158s # error); 1158s # if (_ret == NULL) 1158s # goto _out; 1158s # g_variant_get (_ret, 1158s # "()"); 1158s # g_variant_unref (_ret); 1158s # _out: 1158s # return _ret != NULL; 1158s # } 1158s # 1158s # /** 1158s # * org_project_useful_interface_complete_single_arg_method_i: 1158s # * @object: A #OrgProjectUsefulInterface. 1158s # * @invocation: (transfer full): A #GDBusMethodInvocation. 1158s # * 1158s # * 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. 1158s # * 1158s # * This method will free @invocation, you cannot use it afterwards. 1158s # */ 1158s # void 1158s # org_project_useful_interface_complete_single_arg_method_i ( 1158s # OrgProjectUsefulInterface *object G_GNUC_UNUSED, 1158s # GDBusMethodInvocation *invocation) 1158s # { 1158s # g_dbus_method_invocation_return_value (invocation, 1158s # g_variant_new ("()")); 1158s # } 1158s # 1158s # /* ------------------------------------------------------------------------ */ 1158s # 1158s # /** 1158s # * OrgProjectUsefulInterfaceProxy: 1158s # * 1158s # * The #OrgProjectUsefulInterfaceProxy structure contains only private data and should only be accessed using the provided API. 1158s # */ 1158s # 1158s # /** 1158s # * OrgProjectUsefulInterfaceProxyClass: 1158s # * @parent_class: The parent class. 1158s # * 1158s # * Class structure for #OrgProjectUsefulInterfaceProxy. 1158s # */ 1158s # 1158s # struct _OrgProjectUsefulInterfaceProxyPrivate 1158s # { 1158s # GData *qdata; 1158s # }; 1158s # 1158s # static void org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface); 1158s # 1158s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1158s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 1158s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceProxy) 1158s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 1158s # 1158s # #else 1158s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 1158s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 1158s # 1158s # #endif 1158s # static void 1158s # org_project_useful_interface_proxy_finalize (GObject *object) 1158s # { 1158s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (object); 1158s # g_datalist_clear (&proxy->priv->qdata); 1158s # G_OBJECT_CLASS (org_project_useful_interface_proxy_parent_class)->finalize (object); 1158s # } 1158s # 1158s # static void 1158s # org_project_useful_interface_proxy_get_property (GObject *object G_GNUC_UNUSED, 1158s # guint prop_id G_GNUC_UNUSED, 1158s # GValue *value G_GNUC_UNUSED, 1158s # GParamSpec *pspec G_GNUC_UNUSED) 1158s # { 1158s # } 1158s # 1158s # static void 1158s # org_project_useful_interface_proxy_set_property (GObject *object G_GNUC_UNUSED, 1158s # guint prop_id G_GNUC_UNUSED, 1158s # const GValue *value G_GNUC_UNUSED, 1158s # GParamSpec *pspec G_GNUC_UNUSED) 1158s # { 1158s # } 1158s # 1158s # static void 1158s # org_project_useful_interface_proxy_g_signal (GDBusProxy *proxy, 1158s # const gchar *sender_name G_GNUC_UNUSED, 1158s # const gchar *signal_name, 1158s # GVariant *parameters) 1158s # { 1158s # _ExtendedGDBusSignalInfo *info; 1158s # GVariantIter iter; 1158s # GVariant *child; 1158s # GValue *paramv; 1158s # gsize num_params; 1158s # gsize n; 1158s # guint signal_id; 1158s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, signal_name); 1158s # if (info == NULL) 1158s # return; 1158s # num_params = g_variant_n_children (parameters); 1158s # paramv = g_new0 (GValue, num_params + 1); 1158s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1158s # g_value_set_object (¶mv[0], proxy); 1158s # g_variant_iter_init (&iter, parameters); 1158s # n = 1; 1158s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1158s # { 1158s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 1158s # if (arg_info->use_gvariant) 1158s # { 1158s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1158s # g_value_set_variant (¶mv[n], child); 1158s # n++; 1158s # } 1158s # else 1158s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1158s # g_variant_unref (child); 1158s # } 1158s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1158s # g_signal_emitv (paramv, signal_id, 0, NULL); 1158s # for (n = 0; n < num_params + 1; n++) 1158s # g_value_unset (¶mv[n]); 1158s # g_free (paramv); 1158s # } 1158s # 1158s # static void 1158s # org_project_useful_interface_proxy_g_properties_changed (GDBusProxy *_proxy, 1158s # GVariant *changed_properties, 1158s # const gchar *const *invalidated_properties) 1158s # { 1158s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (_proxy); 1158s # guint n; 1158s # const gchar *key; 1158s # GVariantIter *iter; 1158s # _ExtendedGDBusPropertyInfo *info; 1158s # g_variant_get (changed_properties, "a{sv}", &iter); 1158s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 1158s # { 1158s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, key); 1158s # g_datalist_remove_data (&proxy->priv->qdata, key); 1158s # if (info != NULL) 1158s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1158s # } 1158s # g_variant_iter_free (iter); 1158s # for (n = 0; invalidated_properties[n] != NULL; n++) 1158s # { 1158s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, invalidated_properties[n]); 1158s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 1158s # if (info != NULL) 1158s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1158s # } 1158s # } 1158s # 1158s # static void 1158s # org_project_useful_interface_proxy_init (OrgProjectUsefulInterfaceProxy *proxy) 1158s # { 1158s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1158s # proxy->priv = org_project_useful_interface_proxy_get_instance_private (proxy); 1158s # #else 1158s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY, OrgProjectUsefulInterfaceProxyPrivate); 1158s # #endif 1158s # 1158s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_useful_interface_interface_info ()); 1158s # } 1158s # 1158s # static void 1158s # org_project_useful_interface_proxy_class_init (OrgProjectUsefulInterfaceProxyClass *klass) 1158s # { 1158s # GObjectClass *gobject_class; 1158s # GDBusProxyClass *proxy_class; 1158s # 1158s # gobject_class = G_OBJECT_CLASS (klass); 1158s # gobject_class->finalize = org_project_useful_interface_proxy_finalize; 1158s # gobject_class->get_property = org_project_useful_interface_proxy_get_property; 1158s # gobject_class->set_property = org_project_useful_interface_proxy_set_property; 1158s # 1158s # proxy_class = G_DBUS_PROXY_CLASS (klass); 1158s # proxy_class->g_signal = org_project_useful_interface_proxy_g_signal; 1158s # proxy_class->g_properties_changed = org_project_useful_interface_proxy_g_properties_changed; 1158s # 1158s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1158s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceProxyPrivate)); 1158s # #endif 1158s # } 1158s # 1158s # static void 1158s # org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 1158s # { 1158s # } 1158s # 1158s # /** 1158s # * org_project_useful_interface_proxy_new: 1158s # * @connection: A #GDBusConnection. 1158s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1158s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1158s # * @object_path: An object path. 1158s # * @cancellable: (nullable): A #GCancellable or %NULL. 1158s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1158s # * @user_data: User data to pass to @callback. 1158s # * 1158s # * Asynchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new() for more details. 1158s # * 1158s # * 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()). 1158s # * You can then call org_project_useful_interface_proxy_new_finish() to get the result of the operation. 1158s # * 1158s # * See org_project_useful_interface_proxy_new_sync() for the synchronous, blocking version of this constructor. 1158s # */ 1158s # void 1158s # org_project_useful_interface_proxy_new ( 1158s # GDBusConnection *connection, 1158s # GDBusProxyFlags flags, 1158s # const gchar *name, 1158s # const gchar *object_path, 1158s # GCancellable *cancellable, 1158s # GAsyncReadyCallback callback, 1158s # gpointer user_data) 1158s # { 1158s # 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); 1158s # } 1158s # 1158s # /** 1158s # * org_project_useful_interface_proxy_new_finish: 1158s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new(). 1158s # * @error: Return location for error or %NULL 1158s # * 1158s # * Finishes an operation started with org_project_useful_interface_proxy_new(). 1158s # * 1158s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1158s # */ 1158s # OrgProjectUsefulInterface * 1158s # org_project_useful_interface_proxy_new_finish ( 1158s # GAsyncResult *res, 1158s # GError **error) 1158s # { 1158s # GObject *ret; 1158s # GObject *source_object; 1158s # source_object = g_async_result_get_source_object (res); 1158s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1158s # g_object_unref (source_object); 1158s # if (ret != NULL) 1158s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1158s # else 1158s # return NULL; 1158s # } 1158s # 1158s # /** 1158s # * org_project_useful_interface_proxy_new_sync: 1158s # * @connection: A #GDBusConnection. 1158s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1158s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1158s # * @object_path: An object path. 1158s # * @cancellable: (nullable): A #GCancellable or %NULL. 1158s # * @error: Return location for error or %NULL 1158s # * 1158s # * Synchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new_sync() for more details. 1158s # * 1158s # * The calling thread is blocked until a reply is received. 1158s # * 1158s # * See org_project_useful_interface_proxy_new() for the asynchronous version of this constructor. 1158s # * 1158s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1158s # */ 1158s # OrgProjectUsefulInterface * 1158s # org_project_useful_interface_proxy_new_sync ( 1158s # GDBusConnection *connection, 1158s # GDBusProxyFlags flags, 1158s # const gchar *name, 1158s # const gchar *object_path, 1158s # GCancellable *cancellable, 1158s # GError **error) 1158s # { 1158s # GInitable *ret; 1158s # 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); 1158s # if (ret != NULL) 1158s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1158s # else 1158s # return NULL; 1158s # } 1158s # 1158s # 1158s # /** 1158s # * org_project_useful_interface_proxy_new_for_bus: 1158s # * @bus_type: A #GBusType. 1158s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1158s # * @name: A bus name (well-known or unique). 1158s # * @object_path: An object path. 1158s # * @cancellable: (nullable): A #GCancellable or %NULL. 1158s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1158s # * @user_data: User data to pass to @callback. 1158s # * 1158s # * Like org_project_useful_interface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 1158s # * 1158s # * 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()). 1158s # * You can then call org_project_useful_interface_proxy_new_for_bus_finish() to get the result of the operation. 1158s # * 1158s # * See org_project_useful_interface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 1158s # */ 1158s # void 1158s # org_project_useful_interface_proxy_new_for_bus ( 1158s # GBusType bus_type, 1158s # GDBusProxyFlags flags, 1158s # const gchar *name, 1158s # const gchar *object_path, 1158s # GCancellable *cancellable, 1158s # GAsyncReadyCallback callback, 1158s # gpointer user_data) 1158s # { 1158s # 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); 1158s # } 1158s # 1158s # /** 1158s # * org_project_useful_interface_proxy_new_for_bus_finish: 1158s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new_for_bus(). 1158s # * @error: Return location for error or %NULL 1158s # * 1158s # * Finishes an operation started with org_project_useful_interface_proxy_new_for_bus(). 1158s # * 1158s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1158s # */ 1158s # OrgProjectUsefulInterface * 1158s # org_project_useful_interface_proxy_new_for_bus_finish ( 1158s # GAsyncResult *res, 1158s # GError **error) 1158s # { 1158s # GObject *ret; 1158s # GObject *source_object; 1158s # source_object = g_async_result_get_source_object (res); 1158s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1158s # g_object_unref (source_object); 1158s # if (ret != NULL) 1158s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1158s # else 1158s # return NULL; 1158s # } 1158s # 1158s # /** 1158s # * org_project_useful_interface_proxy_new_for_bus_sync: 1158s # * @bus_type: A #GBusType. 1158s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1158s # * @name: A bus name (well-known or unique). 1158s # * @object_path: An object path. 1158s # * @cancellable: (nullable): A #GCancellable or %NULL. 1158s # * @error: Return location for error or %NULL 1158s # * 1158s # * Like org_project_useful_interface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 1158s # * 1158s # * The calling thread is blocked until a reply is received. 1158s # * 1158s # * See org_project_useful_interface_proxy_new_for_bus() for the asynchronous version of this constructor. 1158s # * 1158s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1158s # */ 1158s # OrgProjectUsefulInterface * 1158s # org_project_useful_interface_proxy_new_for_bus_sync ( 1158s # GBusType bus_type, 1158s # GDBusProxyFlags flags, 1158s # const gchar *name, 1158s # const gchar *object_path, 1158s # GCancellable *cancellable, 1158s # GError **error) 1158s # { 1158s # GInitable *ret; 1158s # 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); 1158s # if (ret != NULL) 1158s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1158s # else 1158s # return NULL; 1158s # } 1158s # 1158s # 1158s # /* ------------------------------------------------------------------------ */ 1158s # 1158s # /** 1158s # * OrgProjectUsefulInterfaceSkeleton: 1158s # * 1158s # * The #OrgProjectUsefulInterfaceSkeleton structure contains only private data and should only be accessed using the provided API. 1158s # */ 1158s # 1158s # /** 1158s # * OrgProjectUsefulInterfaceSkeletonClass: 1158s # * @parent_class: The parent class. 1158s # * 1158s # * Class structure for #OrgProjectUsefulInterfaceSkeleton. 1158s # */ 1158s # 1158s # struct _OrgProjectUsefulInterfaceSkeletonPrivate 1158s # { 1158s # GValue *properties; 1158s # GList *changed_properties; 1158s # GSource *changed_properties_idle_source; 1158s # GMainContext *context; 1158s # GMutex lock; 1158s # }; 1158s # 1158s # static void 1158s # _org_project_useful_interface_skeleton_handle_method_call ( 1158s # GDBusConnection *connection G_GNUC_UNUSED, 1158s # const gchar *sender G_GNUC_UNUSED, 1158s # const gchar *object_path G_GNUC_UNUSED, 1158s # const gchar *interface_name, 1158s # const gchar *method_name, 1158s # GVariant *parameters, 1158s # GDBusMethodInvocation *invocation, 1158s # gpointer user_data) 1158s # { 1158s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1158s # _ExtendedGDBusMethodInfo *info; 1158s # GVariantIter iter; 1158s # GVariant *child; 1158s # GValue *paramv; 1158s # gsize num_params; 1158s # guint num_extra; 1158s # gsize n; 1158s # guint signal_id; 1158s # GValue return_value = G_VALUE_INIT; 1158s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 1158s # g_assert (info != NULL); 1158s # num_params = g_variant_n_children (parameters); 1158s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 1158s # n = 0; 1158s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1158s # g_value_set_object (¶mv[n++], skeleton); 1158s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 1158s # g_value_set_object (¶mv[n++], invocation); 1158s # if (info->pass_fdlist) 1158s # { 1158s # #ifdef G_OS_UNIX 1158s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 1158s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 1158s # #else 1158s # g_assert_not_reached (); 1158s # #endif 1158s # } 1158s # g_variant_iter_init (&iter, parameters); 1158s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1158s # { 1158s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 1158s # if (arg_info->use_gvariant) 1158s # { 1158s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1158s # g_value_set_variant (¶mv[n], child); 1158s # n++; 1158s # } 1158s # else 1158s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1158s # g_variant_unref (child); 1158s # } 1158s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1158s # g_value_init (&return_value, G_TYPE_BOOLEAN); 1158s # g_signal_emitv (paramv, signal_id, 0, &return_value); 1158s # if (!g_value_get_boolean (&return_value)) 1158s # 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); 1158s # g_value_unset (&return_value); 1158s # for (n = 0; n < num_params + num_extra; n++) 1158s # g_value_unset (¶mv[n]); 1158s # g_free (paramv); 1158s # } 1158s # 1158s # static GVariant * 1158s # _org_project_useful_interface_skeleton_handle_get_property ( 1158s # GDBusConnection *connection G_GNUC_UNUSED, 1158s # const gchar *sender G_GNUC_UNUSED, 1158s # const gchar *object_path G_GNUC_UNUSED, 1158s # const gchar *interface_name G_GNUC_UNUSED, 1158s # const gchar *property_name, 1158s # GError **error, 1158s # gpointer user_data) 1158s # { 1158s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1158s # GValue value = G_VALUE_INIT; 1158s # GParamSpec *pspec; 1158s # _ExtendedGDBusPropertyInfo *info; 1158s # GVariant *ret; 1158s # ret = NULL; 1158s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 1158s # g_assert (info != NULL); 1158s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1158s # if (pspec == NULL) 1158s # { 1158s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1158s # } 1158s # else 1158s # { 1158s # g_value_init (&value, pspec->value_type); 1158s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1158s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 1158s # g_value_unset (&value); 1158s # } 1158s # return ret; 1158s # } 1158s # 1158s # static gboolean 1158s # _org_project_useful_interface_skeleton_handle_set_property ( 1158s # GDBusConnection *connection G_GNUC_UNUSED, 1158s # const gchar *sender G_GNUC_UNUSED, 1158s # const gchar *object_path G_GNUC_UNUSED, 1158s # const gchar *interface_name G_GNUC_UNUSED, 1158s # const gchar *property_name, 1158s # GVariant *variant, 1158s # GError **error, 1158s # gpointer user_data) 1158s # { 1158s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1158s # GValue value = G_VALUE_INIT; 1158s # GParamSpec *pspec; 1158s # _ExtendedGDBusPropertyInfo *info; 1158s # gboolean ret; 1158s # ret = FALSE; 1158s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 1158s # g_assert (info != NULL); 1158s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1158s # if (pspec == NULL) 1158s # { 1158s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1158s # } 1158s # else 1158s # { 1158s # if (info->use_gvariant) 1158s # g_value_set_variant (&value, variant); 1158s # else 1158s # g_dbus_gvariant_to_gvalue (variant, &value); 1158s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1158s # g_value_unset (&value); 1158s # ret = TRUE; 1158s # } 1158s # return ret; 1158s # } 1158s # 1158s # static const GDBusInterfaceVTable _org_project_useful_interface_skeleton_vtable = 1158s # { 1158s # _org_project_useful_interface_skeleton_handle_method_call, 1158s # _org_project_useful_interface_skeleton_handle_get_property, 1158s # _org_project_useful_interface_skeleton_handle_set_property, 1158s # {NULL} 1158s # }; 1158s # 1158s # static GDBusInterfaceInfo * 1158s # org_project_useful_interface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1158s # { 1158s # return org_project_useful_interface_interface_info (); 1158s # } 1158s # 1158s # static GDBusInterfaceVTable * 1158s # org_project_useful_interface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1158s # { 1158s # return (GDBusInterfaceVTable *) &_org_project_useful_interface_skeleton_vtable; 1158s # } 1158s # 1158s # static GVariant * 1158s # org_project_useful_interface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 1158s # { 1158s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (_skeleton); 1158s # 1158s # GVariantBuilder builder; 1158s # guint n; 1158s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 1158s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 1158s # #else 1158s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 1158s # #endif 1158s # if (_org_project_useful_interface_interface_info.parent_struct.properties == NULL) 1158s # goto out; 1158s # for (n = 0; _org_project_useful_interface_interface_info.parent_struct.properties[n] != NULL; n++) 1158s # { 1158s # GDBusPropertyInfo *info = _org_project_useful_interface_interface_info.parent_struct.properties[n]; 1158s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 1158s # { 1158s # GVariant *value; 1158s # 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); 1158s # if (value != NULL) 1158s # { 1158s # g_variant_take_ref (value); 1158s # g_variant_builder_add (&builder, "{sv}", info->name, value); 1158s # g_variant_unref (value); 1158s # } 1158s # } 1158s # } 1158s # out: 1158s # return g_variant_builder_end (&builder); 1158s # } 1158s # 1158s # static void 1158s # org_project_useful_interface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 1158s # { 1158s # } 1158s # 1158s # static void org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface); 1158s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1158s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1158s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceSkeleton) 1158s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 1158s # 1158s # #else 1158s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1158s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 1158s # 1158s # #endif 1158s # static void 1158s # org_project_useful_interface_skeleton_finalize (GObject *object) 1158s # { 1158s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (object); 1158s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 1158s # if (skeleton->priv->changed_properties_idle_source != NULL) 1158s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 1158s # g_main_context_unref (skeleton->priv->context); 1158s # g_mutex_clear (&skeleton->priv->lock); 1158s # G_OBJECT_CLASS (org_project_useful_interface_skeleton_parent_class)->finalize (object); 1158s # } 1158s # 1158s # static void 1158s # org_project_useful_interface_skeleton_init (OrgProjectUsefulInterfaceSkeleton *skeleton) 1158s # { 1158s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1158s # skeleton->priv = org_project_useful_interface_skeleton_get_instance_private (skeleton); 1158s # #else 1158s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, OrgProjectUsefulInterfaceSkeletonPrivate); 1158s # #endif 1158s # 1158s # g_mutex_init (&skeleton->priv->lock); 1158s # skeleton->priv->context = g_main_context_ref_thread_default (); 1158s # } 1158s # 1158s # static void 1158s # org_project_useful_interface_skeleton_class_init (OrgProjectUsefulInterfaceSkeletonClass *klass) 1158s # { 1158s # GObjectClass *gobject_class; 1158s # GDBusInterfaceSkeletonClass *skeleton_class; 1158s # 1158s # gobject_class = G_OBJECT_CLASS (klass); 1158s # gobject_class->finalize = org_project_useful_interface_skeleton_finalize; 1158s # 1158s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 1158s # skeleton_class->get_info = org_project_useful_interface_skeleton_dbus_interface_get_info; 1158s # skeleton_class->get_properties = org_project_useful_interface_skeleton_dbus_interface_get_properties; 1158s # skeleton_class->flush = org_project_useful_interface_skeleton_dbus_interface_flush; 1158s # skeleton_class->get_vtable = org_project_useful_interface_skeleton_dbus_interface_get_vtable; 1158s # 1158s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1158s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceSkeletonPrivate)); 1158s # #endif 1158s # } 1158s # 1158s # static void 1158s # org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 1158s # { 1158s # } 1158s # 1158s # /** 1158s # * org_project_useful_interface_skeleton_new: 1158s # * 1158s # * Creates a skeleton object for the D-Bus interface org.project.UsefulInterface. 1158s # * 1158s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceSkeleton): The skeleton object. 1158s # */ 1158s # OrgProjectUsefulInterface * 1158s # org_project_useful_interface_skeleton_new (void) 1158s # { 1158s # return ORG_PROJECT_USEFUL_INTERFACE (g_object_new (TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, NULL)); 1158s # } 1158s # Error: 1158s # 1158s # /tmp/tmpv_fj8nn0/tmp295eyu90.xml: 1158s # 1158s # 1158s # 1158s # 1158s # 1158s # 1158s # 1158s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpv_fj8nn0/tmp295eyu90.xml', '--output', '-', '--body'] 1158s # Return code: 0 1158s # Output: 1158s # /* 1158s # * This file is generated by gdbus-codegen, do not modify it. 1158s # * 1158s # * The license of this code is the same as for the D-Bus interface description 1158s # * it was derived from. Note that it links to GLib, so must comply with the 1158s # * LGPL linking clauses. 1158s # */ 1158s # 1158s # #ifdef HAVE_CONFIG_H 1158s # # include "config.h" 1158s # #endif 1158s # 1158s # #include 1158s # #ifdef G_OS_UNIX 1158s # # include 1158s # #endif 1158s # 1158s # #ifdef G_ENABLE_DEBUG 1158s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 1158s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 1158s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 1158s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 1158s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 1158s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 1158s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 1158s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 1158s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 1158s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 1158s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 1158s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 1158s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 1158s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 1158s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 1158s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 1158s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 1158s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 1158s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 1158s # #else /* !G_ENABLE_DEBUG */ 1158s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 1158s # * Do not access GValues directly in your code. Instead, use the 1158s # * g_value_get_*() functions 1158s # */ 1158s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 1158s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 1158s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 1158s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 1158s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 1158s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 1158s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 1158s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 1158s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 1158s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 1158s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 1158s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 1158s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 1158s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 1158s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 1158s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 1158s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 1158s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 1158s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 1158s # #endif /* !G_ENABLE_DEBUG */ 1158s # 1158s # typedef struct 1158s # { 1158s # GDBusArgInfo parent_struct; 1158s # gboolean use_gvariant; 1158s # } _ExtendedGDBusArgInfo; 1158s # 1158s # typedef struct 1158s # { 1158s # GDBusMethodInfo parent_struct; 1158s # const gchar *signal_name; 1158s # gboolean pass_fdlist; 1158s # } _ExtendedGDBusMethodInfo; 1158s # 1158s # typedef struct 1158s # { 1158s # GDBusSignalInfo parent_struct; 1158s # const gchar *signal_name; 1158s # } _ExtendedGDBusSignalInfo; 1158s # 1158s # typedef struct 1158s # { 1158s # GDBusPropertyInfo parent_struct; 1158s # const gchar *hyphen_name; 1158s # guint use_gvariant : 1; 1158s # guint emits_changed_signal : 1; 1158s # } _ExtendedGDBusPropertyInfo; 1158s # 1158s # typedef struct 1158s # { 1158s # GDBusInterfaceInfo parent_struct; 1158s # const gchar *hyphen_name; 1158s # } _ExtendedGDBusInterfaceInfo; 1158s # 1158s # typedef struct 1158s # { 1158s # const _ExtendedGDBusPropertyInfo *info; 1158s # guint prop_id; 1158s # GValue orig_value; /* the value before the change */ 1158s # } ChangedProperty; 1158s # 1158s # static void 1158s # _changed_property_free (ChangedProperty *data) 1158s # { 1158s # g_value_unset (&data->orig_value); 1158s # g_free (data); 1158s # } 1158s # 1158s # static gboolean 1158s # _g_strv_equal0 (gchar **a, gchar **b) 1158s # { 1158s # gboolean ret = FALSE; 1158s # guint n; 1158s # if (a == NULL && b == NULL) 1158s # { 1158s # ret = TRUE; 1158s # goto out; 1158s # } 1158s # if (a == NULL || b == NULL) 1158s # goto out; 1158s # if (g_strv_length (a) != g_strv_length (b)) 1158s # goto out; 1158s # for (n = 0; a[n] != NULL; n++) 1158s # if (g_strcmp0 (a[n], b[n]) != 0) 1158s # goto out; 1158s # ret = TRUE; 1158s # out: 1158s # return ret; 1158s # } 1158s # 1158s # static gboolean 1158s # _g_variant_equal0 (GVariant *a, GVariant *b) 1158s # { 1158s # gboolean ret = FALSE; 1158s # if (a == NULL && b == NULL) 1158s # { 1158s # ret = TRUE; 1158s # goto out; 1158s # } 1158s # if (a == NULL || b == NULL) 1158s # goto out; 1158s # ret = g_variant_equal (a, b); 1158s # out: 1158s # return ret; 1158s # } 1158s # 1158s # G_GNUC_UNUSED static gboolean 1158s # _g_value_equal (const GValue *a, const GValue *b) 1158s # { 1158s # gboolean ret = FALSE; 1158s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 1158s # switch (G_VALUE_TYPE (a)) 1158s # { 1158s # case G_TYPE_BOOLEAN: 1158s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 1158s # break; 1158s # case G_TYPE_UCHAR: 1158s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 1158s # break; 1158s # case G_TYPE_INT: 1158s # ret = (g_value_get_int (a) == g_value_get_int (b)); 1158s # break; 1158s # case G_TYPE_UINT: 1158s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 1158s # break; 1158s # case G_TYPE_INT64: 1158s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 1158s # break; 1158s # case G_TYPE_UINT64: 1158s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 1158s # break; 1158s # case G_TYPE_DOUBLE: 1158s # { 1158s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 1158s # gdouble da = g_value_get_double (a); 1158s # gdouble db = g_value_get_double (b); 1158s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 1158s # } 1158s # break; 1158s # case G_TYPE_STRING: 1158s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 1158s # break; 1158s # case G_TYPE_VARIANT: 1158s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 1158s # break; 1158s # default: 1158s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 1158s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 1158s # else 1158s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 1158s # break; 1158s # } 1158s # return ret; 1158s # } 1158s # 1158s # static void 1158s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT_UINT ( 1158s # GClosure *closure, 1158s # GValue *return_value, 1158s # unsigned int n_param_values, 1158s # const GValue *param_values, 1158s # void *invocation_hint G_GNUC_UNUSED, 1158s # void *marshal_data) 1158s # { 1158s # typedef gboolean (*_GDbusCodegenMarshalBoolean_ObjectUintFunc) 1158s # (void *data1, 1158s # GDBusMethodInvocation *arg_method_invocation, 1158s # guint arg_arg_u, 1158s # void *data2); 1158s # _GDbusCodegenMarshalBoolean_ObjectUintFunc callback; 1158s # GCClosure *cc = (GCClosure*) closure; 1158s # void *data1, *data2; 1158s # gboolean v_return; 1158s # 1158s # g_return_if_fail (return_value != NULL); 1158s # g_return_if_fail (n_param_values == 3); 1158s # 1158s # if (G_CCLOSURE_SWAP_DATA (closure)) 1158s # { 1158s # data1 = closure->data; 1158s # data2 = g_value_peek_pointer (param_values + 0); 1158s # } 1158s # else 1158s # { 1158s # data1 = g_value_peek_pointer (param_values + 0); 1158s # data2 = closure->data; 1158s # } 1158s # 1158s # callback = (_GDbusCodegenMarshalBoolean_ObjectUintFunc) 1158s # (marshal_data ? marshal_data : cc->callback); 1158s # 1158s # v_return = 1158s # callback (data1, 1158s # g_marshal_value_peek_object (param_values + 1), 1158s # g_marshal_value_peek_uint (param_values + 2), 1158s # data2); 1158s # 1158s # g_value_set_boolean (return_value, v_return); 1158s # } 1158s # 1158s # /* ------------------------------------------------------------------------ 1158s # * Code for interface org.project.UsefulInterface 1158s # * ------------------------------------------------------------------------ 1158s # */ 1158s # 1158s # /** 1158s # * SECTION:OrgProjectUsefulInterface 1158s # * @title: OrgProjectUsefulInterface 1158s # * @short_description: Generated C code for the org.project.UsefulInterface D-Bus interface 1158s # * 1158s # * This section contains code for working with the org.project.UsefulInterface D-Bus interface in C. 1158s # */ 1158s # 1158s # /* ---- Introspection data for org.project.UsefulInterface ---- */ 1158s # 1158s # static const _ExtendedGDBusArgInfo _org_project_useful_interface_method_info_single_arg_method_u_IN_ARG_arg_u = 1158s # { 1158s # { 1158s # -1, 1158s # (gchar *) "arg_u", 1158s # (gchar *) "u", 1158s # NULL 1158s # }, 1158s # FALSE 1158s # }; 1158s # 1158s # static const GDBusArgInfo * const _org_project_useful_interface_method_info_single_arg_method_u_IN_ARG_pointers[] = 1158s # { 1158s # &_org_project_useful_interface_method_info_single_arg_method_u_IN_ARG_arg_u.parent_struct, 1158s # NULL 1158s # }; 1158s # 1158s # static const _ExtendedGDBusMethodInfo _org_project_useful_interface_method_info_single_arg_method_u = 1158s # { 1158s # { 1158s # -1, 1158s # (gchar *) "SingleArgMethodU", 1158s # (GDBusArgInfo **) &_org_project_useful_interface_method_info_single_arg_method_u_IN_ARG_pointers, 1158s # NULL, 1158s # NULL 1158s # }, 1158s # "handle-single-arg-method-u", 1158s # FALSE 1158s # }; 1158s # 1158s # static const GDBusMethodInfo * const _org_project_useful_interface_method_info_pointers[] = 1158s # { 1158s # &_org_project_useful_interface_method_info_single_arg_method_u.parent_struct, 1158s # NULL 1158s # }; 1158s # 1158s # static const _ExtendedGDBusInterfaceInfo _org_project_useful_interface_interface_info = 1158s # { 1158s # { 1158s # -1, 1158s # (gchar *) "org.project.UsefulInterface", 1158s # (GDBusMethodInfo **) &_org_project_useful_interface_method_info_pointers, 1158s # NULL, 1158s # NULL, 1158s # NULL 1158s # }, 1158s # "org-project-useful-interface", 1158s # }; 1158s # 1158s # 1158s # /** 1158s # * org_project_useful_interface_interface_info: 1158s # * 1158s # * Gets a machine-readable description of the org.project.UsefulInterface D-Bus interface. 1158s # * 1158s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 1158s # */ 1158s # GDBusInterfaceInfo * 1158s # org_project_useful_interface_interface_info (void) 1158s # { 1158s # return (GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct; 1158s # } 1158s # 1158s # /** 1158s # * org_project_useful_interface_override_properties: 1158s # * @klass: The class structure for a #GObject derived class. 1158s # * @property_id_begin: The property id to assign to the first overridden property. 1158s # * 1158s # * Overrides all #GObject properties in the #OrgProjectUsefulInterface interface for a concrete class. 1158s # * The properties are overridden in the order they are defined. 1158s # * 1158s # * Returns: The last property id. 1158s # */ 1158s # guint 1158s # org_project_useful_interface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 1158s # { 1158s # return property_id_begin - 1; 1158s # } 1158s # 1158s # 1158s # inline static void 1158s # org_project_useful_interface_method_marshal_single_arg_method_u ( 1158s # GClosure *closure, 1158s # GValue *return_value, 1158s # unsigned int n_param_values, 1158s # const GValue *param_values, 1158s # void *invocation_hint, 1158s # void *marshal_data) 1158s # { 1158s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT_UINT (closure, 1158s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1158s # } 1158s # 1158s # 1158s # /** 1158s # * OrgProjectUsefulInterface: 1158s # * 1158s # * Abstract interface type for the D-Bus interface org.project.UsefulInterface. 1158s # */ 1158s # 1158s # /** 1158s # * OrgProjectUsefulInterfaceIface: 1158s # * @parent_iface: The parent interface. 1158s # * @handle_single_arg_method_u: Handler for the #OrgProjectUsefulInterface::handle-single-arg-method-u signal. 1158s # * 1158s # * Virtual table for the D-Bus interface org.project.UsefulInterface. 1158s # */ 1158s # 1158s # typedef OrgProjectUsefulInterfaceIface OrgProjectUsefulInterfaceInterface; 1158s # G_DEFINE_INTERFACE (OrgProjectUsefulInterface, org_project_useful_interface, G_TYPE_OBJECT) 1158s # 1158s # static void 1158s # org_project_useful_interface_default_init (OrgProjectUsefulInterfaceIface *iface) 1158s # { 1158s # /* GObject signals for incoming D-Bus method calls: */ 1158s # /** 1158s # * OrgProjectUsefulInterface::handle-single-arg-method-u: 1158s # * @object: A #OrgProjectUsefulInterface. 1158s # * @invocation: A #GDBusMethodInvocation. 1158s # * @arg_arg_u: Argument passed by remote caller. 1158s # * 1158s # * Signal emitted when a remote caller is invoking the SingleArgMethodU() D-Bus method. 1158s # * 1158s # * 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. 1158s # * 1158s # * 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. 1158s # */ 1158s # g_signal_new ("handle-single-arg-method-u", 1158s # G_TYPE_FROM_INTERFACE (iface), 1158s # G_SIGNAL_RUN_LAST, 1158s # G_STRUCT_OFFSET (OrgProjectUsefulInterfaceIface, handle_single_arg_method_u), 1158s # g_signal_accumulator_true_handled, 1158s # NULL, 1158s # org_project_useful_interface_method_marshal_single_arg_method_u, 1158s # G_TYPE_BOOLEAN, 1158s # 2, 1158s # G_TYPE_DBUS_METHOD_INVOCATION, G_TYPE_UINT); 1158s # 1158s # } 1158s # 1158s # /** 1158s # * org_project_useful_interface_call_single_arg_method_u: 1158s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1158s # * @arg_arg_u: Argument to pass with the method invocation. 1158s # * @cancellable: (nullable): A #GCancellable or %NULL. 1158s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL. 1158s # * @user_data: User data to pass to @callback. 1158s # * 1158s # * Asynchronously invokes the SingleArgMethodU() D-Bus method on @proxy. 1158s # * 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()). 1158s # * You can then call org_project_useful_interface_call_single_arg_method_u_finish() to get the result of the operation. 1158s # * 1158s # * See org_project_useful_interface_call_single_arg_method_u_sync() for the synchronous, blocking version of this method. 1158s # */ 1158s # void 1158s # org_project_useful_interface_call_single_arg_method_u ( 1158s # OrgProjectUsefulInterface *proxy, 1158s # guint arg_arg_u, 1158s # GCancellable *cancellable, 1158s # GAsyncReadyCallback callback, 1158s # gpointer user_data) 1158s # { 1158s # g_dbus_proxy_call (G_DBUS_PROXY (proxy), 1158s # "SingleArgMethodU", 1158s # g_variant_new ("(u)", 1158s # arg_arg_u), 1158s # G_DBUS_CALL_FLAGS_NONE, 1158s # -1, 1158s # cancellable, 1158s # callback, 1158s # user_data); 1158s # } 1158s # 1158s # /** 1158s # * org_project_useful_interface_call_single_arg_method_u_finish: 1158s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1158s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_call_single_arg_method_u(). 1158s # * @error: Return location for error or %NULL. 1158s # * 1158s # * Finishes an operation started with org_project_useful_interface_call_single_arg_method_u(). 1158s # * 1158s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1158s # */ 1158s # gboolean 1158s # org_project_useful_interface_call_single_arg_method_u_finish ( 1158s # OrgProjectUsefulInterface *proxy, 1158s # GAsyncResult *res, 1158s # GError **error) 1158s # { 1158s # GVariant *_ret; 1158s # _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error); 1158s # if (_ret == NULL) 1158s # goto _out; 1158s # g_variant_get (_ret, 1158s # "()"); 1158s # g_variant_unref (_ret); 1158s # _out: 1158s # return _ret != NULL; 1158s # } 1158s # 1158s # /** 1158s # * org_project_useful_interface_call_single_arg_method_u_sync: 1158s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1158s # * @arg_arg_u: Argument to pass with the method invocation. 1158s # * @cancellable: (nullable): A #GCancellable or %NULL. 1158s # * @error: Return location for error or %NULL. 1158s # * 1158s # * Synchronously invokes the SingleArgMethodU() D-Bus method on @proxy. The calling thread is blocked until a reply is received. 1158s # * 1158s # * See org_project_useful_interface_call_single_arg_method_u() for the asynchronous version of this method. 1158s # * 1158s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1158s # */ 1158s # gboolean 1158s # org_project_useful_interface_call_single_arg_method_u_sync ( 1158s # OrgProjectUsefulInterface *proxy, 1158s # guint arg_arg_u, 1158s # GCancellable *cancellable, 1158s # GError **error) 1158s # { 1158s # GVariant *_ret; 1158s # _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy), 1158s # "SingleArgMethodU", 1158s # g_variant_new ("(u)", 1158s # arg_arg_u), 1158s # G_DBUS_CALL_FLAGS_NONE, 1158s # -1, 1158s # cancellable, 1158s # error); 1158s # if (_ret == NULL) 1158s # goto _out; 1158s # g_variant_get (_ret, 1158s # "()"); 1158s # g_variant_unref (_ret); 1158s # _out: 1158s # return _ret != NULL; 1158s # } 1158s # 1158s # /** 1158s # * org_project_useful_interface_complete_single_arg_method_u: 1158s # * @object: A #OrgProjectUsefulInterface. 1158s # * @invocation: (transfer full): A #GDBusMethodInvocation. 1158s # * 1158s # * 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. 1158s # * 1158s # * This method will free @invocation, you cannot use it afterwards. 1158s # */ 1158s # void 1158s # org_project_useful_interface_complete_single_arg_method_u ( 1158s # OrgProjectUsefulInterface *object G_GNUC_UNUSED, 1158s # GDBusMethodInvocation *invocation) 1158s # { 1158s # g_dbus_method_invocation_return_value (invocation, 1158s # g_variant_new ("()")); 1158s # } 1158s # 1158s # /* ------------------------------------------------------------------------ */ 1158s # 1158s # /** 1158s # * OrgProjectUsefulInterfaceProxy: 1158s # * 1158s # * The #OrgProjectUsefulInterfaceProxy structure contains only private data and should only be accessed using the provided API. 1158s # */ 1158s # 1158s # /** 1158s # * OrgProjectUsefulInterfaceProxyClass: 1158s # * @parent_class: The parent class. 1158s # * 1158s # * Class structure for #OrgProjectUsefulInterfaceProxy. 1158s # */ 1158s # 1158s # struct _OrgProjectUsefulInterfaceProxyPrivate 1158s # { 1158s # GData *qdata; 1158s # }; 1158s # 1158s # static void org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface); 1158s # 1158s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1158s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 1158s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceProxy) 1158s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 1158s # 1158s # #else 1158s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 1158s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 1158s # 1158s # #endif 1158s # static void 1158s # org_project_useful_interface_proxy_finalize (GObject *object) 1158s # { 1158s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (object); 1158s # g_datalist_clear (&proxy->priv->qdata); 1158s # G_OBJECT_CLASS (org_project_useful_interface_proxy_parent_class)->finalize (object); 1158s # } 1158s # 1158s # static void 1158s # org_project_useful_interface_proxy_get_property (GObject *object G_GNUC_UNUSED, 1158s # guint prop_id G_GNUC_UNUSED, 1158s # GValue *value G_GNUC_UNUSED, 1158s # GParamSpec *pspec G_GNUC_UNUSED) 1158s # { 1158s # } 1158s # 1158s # static void 1158s # org_project_useful_interface_proxy_set_property (GObject *object G_GNUC_UNUSED, 1158s # guint prop_id G_GNUC_UNUSED, 1158s # const GValue *value G_GNUC_UNUSED, 1158s # GParamSpec *pspec G_GNUC_UNUSED) 1158s # { 1158s # } 1158s # 1158s # static void 1158s # org_project_useful_interface_proxy_g_signal (GDBusProxy *proxy, 1158s # const gchar *sender_name G_GNUC_UNUSED, 1158s # const gchar *signal_name, 1158s # GVariant *parameters) 1158s # { 1158s # _ExtendedGDBusSignalInfo *info; 1158s # GVariantIter iter; 1158s # GVariant *child; 1158s # GValue *paramv; 1158s # gsize num_params; 1158s # gsize n; 1158s # guint signal_id; 1158s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, signal_name); 1158s # if (info == NULL) 1158s # return; 1158s # num_params = g_variant_n_children (parameters); 1158s # paramv = g_new0 (GValue, num_params + 1); 1158s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1158s # g_value_set_object (¶mv[0], proxy); 1158s # g_variant_iter_init (&iter, parameters); 1158s # n = 1; 1158s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1158s # { 1158s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 1158s # if (arg_info->use_gvariant) 1158s # { 1158s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1158s # g_value_set_variant (¶mv[n], child); 1158s # n++; 1158s # } 1158s # else 1158s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1158s # g_variant_unref (child); 1158s # } 1158s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1158s # g_signal_emitv (paramv, signal_id, 0, NULL); 1158s # for (n = 0; n < num_params + 1; n++) 1158s # g_value_unset (¶mv[n]); 1158s # g_free (paramv); 1158s # } 1158s # 1158s # static void 1158s # org_project_useful_interface_proxy_g_properties_changed (GDBusProxy *_proxy, 1158s # GVariant *changed_properties, 1158s # const gchar *const *invalidated_properties) 1158s # { 1158s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (_proxy); 1158s # guint n; 1158s # const gchar *key; 1158s # GVariantIter *iter; 1158s # _ExtendedGDBusPropertyInfo *info; 1158s # g_variant_get (changed_properties, "a{sv}", &iter); 1158s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 1158s # { 1158s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, key); 1158s # g_datalist_remove_data (&proxy->priv->qdata, key); 1158s # if (info != NULL) 1158s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1158s # } 1158s # g_variant_iter_free (iter); 1158s # for (n = 0; invalidated_properties[n] != NULL; n++) 1158s # { 1158s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, invalidated_properties[n]); 1158s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 1158s # if (info != NULL) 1158s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1158s # } 1158s # } 1158s # 1158s # static void 1158s # org_project_useful_interface_proxy_init (OrgProjectUsefulInterfaceProxy *proxy) 1158s # { 1158s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1158s # proxy->priv = org_project_useful_interface_proxy_get_instance_private (proxy); 1158s # #else 1158s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY, OrgProjectUsefulInterfaceProxyPrivate); 1158s # #endif 1158s # 1158s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_useful_interface_interface_info ()); 1158s # } 1158s # 1158s # static void 1158s # org_project_useful_interface_proxy_class_init (OrgProjectUsefulInterfaceProxyClass *klass) 1158s # { 1158s # GObjectClass *gobject_class; 1158s # GDBusProxyClass *proxy_class; 1158s # 1158s # gobject_class = G_OBJECT_CLASS (klass); 1158s # gobject_class->finalize = org_project_useful_interface_proxy_finalize; 1158s # gobject_class->get_property = org_project_useful_interface_proxy_get_property; 1158s # gobject_class->set_property = org_project_useful_interface_proxy_set_property; 1158s # 1158s # proxy_class = G_DBUS_PROXY_CLASS (klass); 1158s # proxy_class->g_signal = org_project_useful_interface_proxy_g_signal; 1158s # proxy_class->g_properties_changed = org_project_useful_interface_proxy_g_properties_changed; 1158s # 1158s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1158s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceProxyPrivate)); 1158s # #endif 1158s # } 1158s # 1158s # static void 1158s # org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 1158s # { 1158s # } 1158s # 1158s # /** 1158s # * org_project_useful_interface_proxy_new: 1158s # * @connection: A #GDBusConnection. 1158s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1158s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1158s # * @object_path: An object path. 1158s # * @cancellable: (nullable): A #GCancellable or %NULL. 1158s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1158s # * @user_data: User data to pass to @callback. 1158s # * 1158s # * Asynchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new() for more details. 1158s # * 1158s # * 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()). 1158s # * You can then call org_project_useful_interface_proxy_new_finish() to get the result of the operation. 1158s # * 1158s # * See org_project_useful_interface_proxy_new_sync() for the synchronous, blocking version of this constructor. 1158s # */ 1158s # void 1158s # org_project_useful_interface_proxy_new ( 1158s # GDBusConnection *connection, 1158s # GDBusProxyFlags flags, 1158s # const gchar *name, 1158s # const gchar *object_path, 1158s # GCancellable *cancellable, 1158s # GAsyncReadyCallback callback, 1158s # gpointer user_data) 1158s # { 1158s # 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); 1158s # } 1158s # 1158s # /** 1158s # * org_project_useful_interface_proxy_new_finish: 1158s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new(). 1158s # * @error: Return location for error or %NULL 1158s # * 1158s # * Finishes an operation started with org_project_useful_interface_proxy_new(). 1158s # * 1158s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1158s # */ 1158s # OrgProjectUsefulInterface * 1158s # org_project_useful_interface_proxy_new_finish ( 1158s # GAsyncResult *res, 1158s # GError **error) 1158s # { 1158s # GObject *ret; 1158s # GObject *source_object; 1158s # source_object = g_async_result_get_source_object (res); 1158s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1158s # g_object_unref (source_object); 1158s # if (ret != NULL) 1158s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1158s # else 1158s # return NULL; 1158s # } 1158s # 1158s # /** 1158s # * org_project_useful_interface_proxy_new_sync: 1158s # * @connection: A #GDBusConnection. 1158s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1158s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1158s # * @object_path: An object path. 1158s # * @cancellable: (nullable): A #GCancellable or %NULL. 1158s # * @error: Return location for error or %NULL 1158s # * 1158s # * Synchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new_sync() for more details. 1158s # * 1158s # * The calling thread is blocked until a reply is received. 1158s # * 1158s # * See org_project_useful_interface_proxy_new() for the asynchronous version of this constructor. 1158s # * 1158s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1158s # */ 1158s # OrgProjectUsefulInterface * 1158s # org_project_useful_interface_proxy_new_sync ( 1158s # GDBusConnection *connection, 1158s # GDBusProxyFlags flags, 1158s # const gchar *name, 1158s # const gchar *object_path, 1158s # GCancellable *cancellable, 1158s # GError **error) 1158s # { 1158s # GInitable *ret; 1158s # 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); 1158s # if (ret != NULL) 1158s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1158s # else 1158s # return NULL; 1158s # } 1158s # 1158s # 1158s # /** 1158s # * org_project_useful_interface_proxy_new_for_bus: 1158s # * @bus_type: A #GBusType. 1158s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1158s # * @name: A bus name (well-known or unique). 1158s # * @object_path: An object path. 1158s # * @cancellable: (nullable): A #GCancellable or %NULL. 1158s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1158s # * @user_data: User data to pass to @callback. 1158s # * 1158s # * Like org_project_useful_interface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 1158s # * 1158s # * 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()). 1158s # * You can then call org_project_useful_interface_proxy_new_for_bus_finish() to get the result of the operation. 1158s # * 1158s # * See org_project_useful_interface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 1158s # */ 1158s # void 1158s # org_project_useful_interface_proxy_new_for_bus ( 1158s # GBusType bus_type, 1158s # GDBusProxyFlags flags, 1158s # const gchar *name, 1158s # const gchar *object_path, 1158s # GCancellable *cancellable, 1158s # GAsyncReadyCallback callback, 1158s # gpointer user_data) 1158s # { 1158s # 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); 1158s # } 1158s # 1158s # /** 1158s # * org_project_useful_interface_proxy_new_for_bus_finish: 1158s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new_for_bus(). 1158s # * @error: Return location for error or %NULL 1158s # * 1158s # * Finishes an operation started with org_project_useful_interface_proxy_new_for_bus(). 1158s # * 1158s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1158s # */ 1158s # OrgProjectUsefulInterface * 1158s # org_project_useful_interface_proxy_new_for_bus_finish ( 1158s # GAsyncResult *res, 1158s # GError **error) 1158s # { 1158s # GObject *ret; 1158s # GObject *source_object; 1158s # source_object = g_async_result_get_source_object (res); 1158s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1158s # g_object_unref (source_object); 1158s # if (ret != NULL) 1158s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1158s # else 1158s # return NULL; 1158s # } 1158s # 1158s # /** 1158s # * org_project_useful_interface_proxy_new_for_bus_sync: 1158s # * @bus_type: A #GBusType. 1158s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1158s # * @name: A bus name (well-known or unique). 1158s # * @object_path: An object path. 1158s # * @cancellable: (nullable): A #GCancellable or %NULL. 1158s # * @error: Return location for error or %NULL 1158s # * 1158s # * Like org_project_useful_interface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 1158s # * 1158s # * The calling thread is blocked until a reply is received. 1158s # * 1158s # * See org_project_useful_interface_proxy_new_for_bus() for the asynchronous version of this constructor. 1158s # * 1158s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1158s # */ 1158s # OrgProjectUsefulInterface * 1158s # org_project_useful_interface_proxy_new_for_bus_sync ( 1158s # GBusType bus_type, 1158s # GDBusProxyFlags flags, 1158s # const gchar *name, 1158s # const gchar *object_path, 1158s # GCancellable *cancellable, 1158s # GError **error) 1158s # { 1158s # GInitable *ret; 1158s # 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); 1158s # if (ret != NULL) 1158s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1158s # else 1158s # return NULL; 1158s # } 1158s # 1158s # 1158s # /* ------------------------------------------------------------------------ */ 1158s # 1158s # /** 1158s # * OrgProjectUsefulInterfaceSkeleton: 1158s # * 1158s # * The #OrgProjectUsefulInterfaceSkeleton structure contains only private data and should only be accessed using the provided API. 1158s # */ 1158s # 1158s # /** 1158s # * OrgProjectUsefulInterfaceSkeletonClass: 1158s # * @parent_class: The parent class. 1158s # * 1158s # * Class structure for #OrgProjectUsefulInterfaceSkeleton. 1158s # */ 1158s # 1158s # struct _OrgProjectUsefulInterfaceSkeletonPrivate 1158s # { 1158s # GValue *properties; 1158s # GList *changed_properties; 1158s # GSource *changed_properties_idle_source; 1158s # GMainContext *context; 1158s # GMutex lock; 1158s # }; 1158s # 1158s # static void 1158s # _org_project_useful_interface_skeleton_handle_method_call ( 1158s # GDBusConnection *connection G_GNUC_UNUSED, 1158s # const gchar *sender G_GNUC_UNUSED, 1158s # const gchar *object_path G_GNUC_UNUSED, 1158s # const gchar *interface_name, 1158s # const gchar *method_name, 1158s # GVariant *parameters, 1158s # GDBusMethodInvocation *invocation, 1158s # gpointer user_data) 1158s # { 1158s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1158s # _ExtendedGDBusMethodInfo *info; 1158s # GVariantIter iter; 1158s # GVariant *child; 1158s # GValue *paramv; 1158s # gsize num_params; 1158s # guint num_extra; 1158s # gsize n; 1158s # guint signal_id; 1158s # GValue return_value = G_VALUE_INIT; 1158s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 1158s # g_assert (info != NULL); 1158s # num_params = g_variant_n_children (parameters); 1158s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 1158s # n = 0; 1158s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1158s # g_value_set_object (¶mv[n++], skeleton); 1158s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 1158s # g_value_set_object (¶mv[n++], invocation); 1158s # if (info->pass_fdlist) 1158s # { 1158s # #ifdef G_OS_UNIX 1158s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 1158s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 1158s # #else 1158s # g_assert_not_reached (); 1158s # #endif 1158s # } 1158s # g_variant_iter_init (&iter, parameters); 1158s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1158s # { 1158s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 1158s # if (arg_info->use_gvariant) 1158s # { 1158s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1158s # g_value_set_variant (¶mv[n], child); 1158s # n++; 1158s # } 1158s # else 1158s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1158s # g_variant_unref (child); 1158s # } 1158s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1158s # g_value_init (&return_value, G_TYPE_BOOLEAN); 1158s # g_signal_emitv (paramv, signal_id, 0, &return_value); 1158s # if (!g_value_get_boolean (&return_value)) 1158s # 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); 1158s # g_value_unset (&return_value); 1158s # for (n = 0; n < num_params + num_extra; n++) 1158s # g_value_unset (¶mv[n]); 1158s # g_free (paramv); 1158s # } 1158s # 1158s # static GVariant * 1158s # _org_project_useful_interface_skeleton_handle_get_property ( 1158s # GDBusConnection *connection G_GNUC_UNUSED, 1158s # const gchar *sender G_GNUC_UNUSED, 1158s # const gchar *object_path G_GNUC_UNUSED, 1158s # const gchar *interface_name G_GNUC_UNUSED, 1158s # const gchar *property_name, 1158s # GError **error, 1158s # gpointer user_data) 1158s # { 1158s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1158s # GValue value = G_VALUE_INIT; 1158s # GParamSpec *pspec; 1158s # _ExtendedGDBusPropertyInfo *info; 1158s # GVariant *ret; 1158s # ret = NULL; 1158s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 1158s # g_assert (info != NULL); 1158s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1158s # if (pspec == NULL) 1158s # { 1158s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1158s # } 1158s # else 1158s # { 1158s # g_value_init (&value, pspec->value_type); 1158s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1158s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 1158s # g_value_unset (&value); 1158s # } 1158s # return ret; 1158s # } 1158s # 1158s # static gboolean 1158s # _org_project_useful_interface_skeleton_handle_set_property ( 1158s # GDBusConnection *connection G_GNUC_UNUSED, 1158s # const gchar *sender G_GNUC_UNUSED, 1158s # const gchar *object_path G_GNUC_UNUSED, 1158s # const gchar *interface_name G_GNUC_UNUSED, 1158s # const gchar *property_name, 1158s # GVariant *variant, 1158s # GError **error, 1158s # gpointer user_data) 1158s # { 1158s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1158s # GValue value = G_VALUE_INIT; 1158s # GParamSpec *pspec; 1158s # _ExtendedGDBusPropertyInfo *info; 1158s # gboolean ret; 1158s # ret = FALSE; 1158s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 1158s # g_assert (info != NULL); 1158s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1158s # if (pspec == NULL) 1158s # { 1158s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1158s # } 1158s # else 1158s # { 1158s # if (info->use_gvariant) 1158s # g_value_set_variant (&value, variant); 1158s # else 1158s # g_dbus_gvariant_to_gvalue (variant, &value); 1158s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1158s # g_value_unset (&value); 1158s # ret = TRUE; 1158s # } 1158s # return ret; 1158s # } 1158s # 1158s # static const GDBusInterfaceVTable _org_project_useful_interface_skeleton_vtable = 1158s # { 1158s # _org_project_useful_interface_skeleton_handle_method_call, 1158s # _org_project_useful_interface_skeleton_handle_get_property, 1158s # _org_project_useful_interface_skeleton_handle_set_property, 1158s # {NULL} 1158s # }; 1158s # 1158s # static GDBusInterfaceInfo * 1158s # org_project_useful_interface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1158s # { 1158s # return org_project_useful_interface_interface_info (); 1158s # } 1158s # 1158s # static GDBusInterfaceVTable * 1158s # org_project_useful_interface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1158s # { 1158s # return (GDBusInterfaceVTable *) &_org_project_useful_interface_skeleton_vtable; 1158s # } 1158s # 1158s # static GVariant * 1158s # org_project_useful_interface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 1158s # { 1158s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (_skeleton); 1158s # 1158s # GVariantBuilder builder; 1158s # guint n; 1158s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 1158s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 1158s # #else 1158s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 1158s # #endif 1158s # if (_org_project_useful_interface_interface_info.parent_struct.properties == NULL) 1158s # goto out; 1158s # for (n = 0; _org_project_useful_interface_interface_info.parent_struct.properties[n] != NULL; n++) 1158s # { 1158s # GDBusPropertyInfo *info = _org_project_useful_interface_interface_info.parent_struct.properties[n]; 1158s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 1158s # { 1158s # GVariant *value; 1158s # 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); 1158s # if (value != NULL) 1158s # { 1158s # g_variant_take_ref (value); 1158s # g_variant_builder_add (&builder, "{sv}", info->name, value); 1158s # g_variant_unref (value); 1158s # } 1158s # } 1158s # } 1158s # out: 1158s # return g_variant_builder_end (&builder); 1158s # } 1158s # 1158s # static void 1158s # org_project_useful_interface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 1158s # { 1158s # } 1158s # 1158s # static void org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface); 1158s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1158s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1158s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceSkeleton) 1158s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 1158s # 1158s # #else 1158s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1158s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 1158s # 1158s # #endif 1158s # static void 1158s # org_project_useful_interface_skeleton_finalize (GObject *object) 1158s # { 1158s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (object); 1158s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 1158s # if (skeleton->priv->changed_properties_idle_source != NULL) 1158s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 1158s # g_main_context_unref (skeleton->priv->context); 1158s # g_mutex_clear (&skeleton->priv->lock); 1158s # G_OBJECT_CLASS (org_project_useful_interface_skeleton_parent_class)->finalize (object); 1158s # } 1158s # 1158s # static void 1158s # org_project_useful_interface_skeleton_init (OrgProjectUsefulInterfaceSkeleton *skeleton) 1158s # { 1158s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1158s # skeleton->priv = org_project_useful_interface_skeleton_get_instance_private (skeleton); 1158s # #else 1158s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, OrgProjectUsefulInterfaceSkeletonPrivate); 1158s # #endif 1158s # 1158s # g_mutex_init (&skeleton->priv->lock); 1158s # skeleton->priv->context = g_main_context_ref_thread_default (); 1158s # } 1158s # 1158s # static void 1158s # org_project_useful_interface_skeleton_class_init (OrgProjectUsefulInterfaceSkeletonClass *klass) 1158s # { 1158s # GObjectClass *gobject_class; 1158s # GDBusInterfaceSkeletonClass *skeleton_class; 1158s # 1158s # gobject_class = G_OBJECT_CLASS (klass); 1158s # gobject_class->finalize = org_project_useful_interface_skeleton_finalize; 1158s # 1158s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 1158s # skeleton_class->get_info = org_project_useful_interface_skeleton_dbus_interface_get_info; 1158s # skeleton_class->get_properties = org_project_useful_interface_skeleton_dbus_interface_get_properties; 1158s # skeleton_class->flush = org_project_useful_interface_skeleton_dbus_interface_flush; 1158s # skeleton_class->get_vtable = org_project_useful_interface_skeleton_dbus_interface_get_vtable; 1158s # 1158s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1158s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceSkeletonPrivate)); 1158s # #endif 1158s # } 1158s # 1158s # static void 1158s # org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 1158s # { 1158s # } 1158s # 1158s # /** 1158s # * org_project_useful_interface_skeleton_new: 1158s # * 1158s # * Creates a skeleton object for the D-Bus interface org.project.UsefulInterface. 1158s # * 1158s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceSkeleton): The skeleton object. 1158s # */ 1158s # OrgProjectUsefulInterface * 1158s # org_project_useful_interface_skeleton_new (void) 1158s # { 1158s # return ORG_PROJECT_USEFUL_INTERFACE (g_object_new (TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, NULL)); 1158s # } 1158s # Error: 1158s # 1158s # /tmp/tmpv_fj8nn0/tmpqxi3t3st.xml: 1158s # 1158s # 1158s # 1158s # 1158s # 1158s # 1158s # 1158s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpv_fj8nn0/tmpqxi3t3st.xml', '--output', '-', '--body'] 1158s # Return code: 0 1158s # Output: 1158s # /* 1158s # * This file is generated by gdbus-codegen, do not modify it. 1158s # * 1158s # * The license of this code is the same as for the D-Bus interface description 1158s # * it was derived from. Note that it links to GLib, so must comply with the 1158s # * LGPL linking clauses. 1158s # */ 1158s # 1158s # #ifdef HAVE_CONFIG_H 1158s # # include "config.h" 1158s # #endif 1158s # 1158s # #include 1158s # #ifdef G_OS_UNIX 1158s # # include 1158s # #endif 1158s # 1158s # #ifdef G_ENABLE_DEBUG 1158s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 1158s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 1158s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 1158s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 1158s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 1158s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 1158s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 1158s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 1158s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 1158s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 1158s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 1158s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 1158s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 1158s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 1158s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 1158s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 1158s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 1158s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 1158s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 1158s # #else /* !G_ENABLE_DEBUG */ 1158s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 1158s # * Do not access GValues directly in your code. Instead, use the 1158s # * g_value_get_*() functions 1158s # */ 1158s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 1158s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 1158s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 1158s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 1158s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 1158s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 1158s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 1158s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 1158s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 1158s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 1158s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 1158s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 1158s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 1158s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 1158s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 1158s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 1158s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 1158s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 1158s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 1158s # #endif /* !G_ENABLE_DEBUG */ 1158s # 1158s # typedef struct 1158s # { 1158s # GDBusArgInfo parent_struct; 1158s # gboolean use_gvariant; 1158s # } _ExtendedGDBusArgInfo; 1158s # 1158s # typedef struct 1158s # { 1158s # GDBusMethodInfo parent_struct; 1158s # const gchar *signal_name; 1158s # gboolean pass_fdlist; 1158s # } _ExtendedGDBusMethodInfo; 1158s # 1158s # typedef struct 1158s # { 1158s # GDBusSignalInfo parent_struct; 1158s # const gchar *signal_name; 1158s # } _ExtendedGDBusSignalInfo; 1158s # 1158s # typedef struct 1158s # { 1158s # GDBusPropertyInfo parent_struct; 1158s # const gchar *hyphen_name; 1158s # guint use_gvariant : 1; 1158s # guint emits_changed_signal : 1; 1158s # } _ExtendedGDBusPropertyInfo; 1158s # 1158s # typedef struct 1158s # { 1158s # GDBusInterfaceInfo parent_struct; 1158s # const gchar *hyphen_name; 1158s # } _ExtendedGDBusInterfaceInfo; 1158s # 1158s # typedef struct 1158s # { 1158s # const _ExtendedGDBusPropertyInfo *info; 1158s # guint prop_id; 1158s # GValue orig_value; /* the value before the change */ 1158s # } ChangedProperty; 1158s # 1158s # static void 1158s # _changed_property_free (ChangedProperty *data) 1158s # { 1158s # g_value_unset (&data->orig_value); 1158s # g_free (data); 1158s # } 1158s # 1158s # static gboolean 1158s # _g_strv_equal0 (gchar **a, gchar **b) 1158s # { 1158s # gboolean ret = FALSE; 1158s # guint n; 1158s # if (a == NULL && b == NULL) 1158s # { 1158s # ret = TRUE; 1158s # goto out; 1158s # } 1158s # if (a == NULL || b == NULL) 1158s # goto out; 1158s # if (g_strv_length (a) != g_strv_length (b)) 1158s # goto out; 1158s # for (n = 0; a[n] != NULL; n++) 1158s # if (g_strcmp0 (a[n], b[n]) != 0) 1158s # goto out; 1158s # ret = TRUE; 1158s # out: 1158s # return ret; 1158s # } 1158s # 1158s # static gboolean 1158s # _g_variant_equal0 (GVariant *a, GVariant *b) 1158s # { 1158s # gboolean ret = FALSE; 1158s # if (a == NULL && b == NULL) 1158s # { 1158s # ret = TRUE; 1158s # goto out; 1158s # } 1158s # if (a == NULL || b == NULL) 1158s # goto out; 1158s # ret = g_variant_equal (a, b); 1158s # out: 1158s # return ret; 1158s # } 1158s # 1158s # G_GNUC_UNUSED static gboolean 1158s # _g_value_equal (const GValue *a, const GValue *b) 1158s # { 1158s # gboolean ret = FALSE; 1158s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 1158s # switch (G_VALUE_TYPE (a)) 1158s # { 1158s # case G_TYPE_BOOLEAN: 1158s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 1158s # break; 1158s # case G_TYPE_UCHAR: 1158s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 1158s # break; 1158s # case G_TYPE_INT: 1158s # ret = (g_value_get_int (a) == g_value_get_int (b)); 1158s # break; 1158s # case G_TYPE_UINT: 1158s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 1158s # break; 1158s # case G_TYPE_INT64: 1158s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 1158s # break; 1158s # case G_TYPE_UINT64: 1158s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 1158s # break; 1158s # case G_TYPE_DOUBLE: 1158s # { 1158s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 1158s # gdouble da = g_value_get_double (a); 1158s # gdouble db = g_value_get_double (b); 1158s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 1158s # } 1158s # break; 1158s # case G_TYPE_STRING: 1158s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 1158s # break; 1158s # case G_TYPE_VARIANT: 1158s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 1158s # break; 1158s # default: 1158s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 1158s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 1158s # else 1158s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 1158s # break; 1158s # } 1158s # return ret; 1158s # } 1158s # 1158s # static void 1158s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT_INT64 ( 1158s # GClosure *closure, 1158s # GValue *return_value, 1158s # unsigned int n_param_values, 1158s # const GValue *param_values, 1158s # void *invocation_hint G_GNUC_UNUSED, 1158s # void *marshal_data) 1158s # { 1158s # typedef gboolean (*_GDbusCodegenMarshalBoolean_ObjectInt64Func) 1158s # (void *data1, 1158s # GDBusMethodInvocation *arg_method_invocation, 1158s # gint64 arg_arg_x, 1158s # void *data2); 1158s # _GDbusCodegenMarshalBoolean_ObjectInt64Func callback; 1158s # GCClosure *cc = (GCClosure*) closure; 1158s # void *data1, *data2; 1158s # gboolean v_return; 1158s # 1158s # g_return_if_fail (return_value != NULL); 1158s # g_return_if_fail (n_param_values == 3); 1158s # 1158s # if (G_CCLOSURE_SWAP_DATA (closure)) 1158s # { 1158s # data1 = closure->data; 1158s # data2 = g_value_peek_pointer (param_values + 0); 1158s # } 1158s # else 1158s # { 1158s # data1 = g_value_peek_pointer (param_values + 0); 1158s # data2 = closure->data; 1158s # } 1158s # 1158s # callback = (_GDbusCodegenMarshalBoolean_ObjectInt64Func) 1158s # (marshal_data ? marshal_data : cc->callback); 1158s # 1158s # v_return = 1158s # callback (data1, 1158s # g_marshal_value_peek_object (param_values + 1), 1158s # g_marshal_value_peek_int64 (param_values + 2), 1158s # data2); 1158s # 1158s # g_value_set_boolean (return_value, v_return); 1158s # } 1158s # 1158s # /* ------------------------------------------------------------------------ 1158s # * Code for interface org.project.UsefulInterface 1158s # * ------------------------------------------------------------------------ 1158s # */ 1158s # 1158s # /** 1158s # * SECTION:OrgProjectUsefulInterface 1158s # * @title: OrgProjectUsefulInterface 1158s # * @short_description: Generated C code for the org.project.UsefulInterface D-Bus interface 1158s # * 1158s # * This section contains code for working with the org.project.UsefulInterface D-Bus interface in C. 1158s # */ 1158s # 1158s # /* ---- Introspection data for org.project.UsefulInterface ---- */ 1158s # 1158s # static const _ExtendedGDBusArgInfo _org_project_useful_interface_method_info_single_arg_method_x_IN_ARG_arg_x = 1158s # { 1158s # { 1158s # -1, 1158s # (gchar *) "arg_x", 1158s # (gchar *) "x", 1158s # NULL 1158s # }, 1158s # FALSE 1158s # }; 1158s # 1158s # static const GDBusArgInfo * const _org_project_useful_interface_method_info_single_arg_method_x_IN_ARG_pointers[] = 1158s # { 1158s # &_org_project_useful_interface_method_info_single_arg_method_x_IN_ARG_arg_x.parent_struct, 1158s # NULL 1158s # }; 1158s # 1158s # static const _ExtendedGDBusMethodInfo _org_project_useful_interface_method_info_single_arg_method_x = 1158s # { 1158s # { 1158s # -1, 1158s # (gchar *) "SingleArgMethodX", 1158s # (GDBusArgInfo **) &_org_project_useful_interface_method_info_single_arg_method_x_IN_ARG_pointers, 1158s # NULL, 1158s # NULL 1158s # }, 1158s # "handle-single-arg-method-x", 1158s # FALSE 1158s # }; 1158s # 1158s # static const GDBusMethodInfo * const _org_project_useful_interface_method_info_pointers[] = 1158s # { 1158s # &_org_project_useful_interface_method_info_single_arg_method_x.parent_struct, 1158s # NULL 1158s # }; 1158s # 1158s # static const _ExtendedGDBusInterfaceInfo _org_project_useful_interface_interface_info = 1158s # { 1158s # { 1158s # -1, 1158s # (gchar *) "org.project.UsefulInterface", 1158s # (GDBusMethodInfo **) &_org_project_useful_interface_method_info_pointers, 1158s # NULL, 1158s # NULL, 1158s # NULL 1158s # }, 1158s # "org-project-useful-interface", 1158s # }; 1158s # 1158s # 1158s # /** 1158s # * org_project_useful_interface_interface_info: 1158s # * 1158s # * Gets a machine-readable description of the org.project.UsefulInterface D-Bus interface. 1158s # * 1158s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 1158s # */ 1158s # GDBusInterfaceInfo * 1158s # org_project_useful_interface_interface_info (void) 1158s # { 1158s # return (GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct; 1158s # } 1158s # 1158s # /** 1158s # * org_project_useful_interface_override_properties: 1158s # * @klass: The class structure for a #GObject derived class. 1158s # * @property_id_begin: The property id to assign to the first overridden property. 1158s # * 1158s # * Overrides all #GObject properties in the #OrgProjectUsefulInterface interface for a concrete class. 1158s # * The properties are overridden in the order they are defined. 1158s # * 1158s # * Returns: The last property id. 1158s # */ 1158s # guint 1158s # org_project_useful_interface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 1158s # { 1158s # return property_id_begin - 1; 1158s # } 1158s # 1158s # 1158s # inline static void 1158s # org_project_useful_interface_method_marshal_single_arg_method_x ( 1158s # GClosure *closure, 1158s # GValue *return_value, 1158s # unsigned int n_param_values, 1158s # const GValue *param_values, 1158s # void *invocation_hint, 1158s # void *marshal_data) 1158s # { 1158s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT_INT64 (closure, 1158s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1158s # } 1158s # 1158s # 1158s # /** 1158s # * OrgProjectUsefulInterface: 1158s # * 1158s # * Abstract interface type for the D-Bus interface org.project.UsefulInterface. 1158s # */ 1158s # 1158s # /** 1158s # * OrgProjectUsefulInterfaceIface: 1158s # * @parent_iface: The parent interface. 1158s # * @handle_single_arg_method_x: Handler for the #OrgProjectUsefulInterface::handle-single-arg-method-x signal. 1158s # * 1158s # * Virtual table for the D-Bus interface org.project.UsefulInterface. 1158s # */ 1158s # 1158s # typedef OrgProjectUsefulInterfaceIface OrgProjectUsefulInterfaceInterface; 1158s # G_DEFINE_INTERFACE (OrgProjectUsefulInterface, org_project_useful_interface, G_TYPE_OBJECT) 1158s # 1158s # static void 1158s # org_project_useful_interface_default_init (OrgProjectUsefulInterfaceIface *iface) 1158s # { 1158s # /* GObject signals for incoming D-Bus method calls: */ 1158s # /** 1158s # * OrgProjectUsefulInterface::handle-single-arg-method-x: 1158s # * @object: A #OrgProjectUsefulInterface. 1158s # * @invocation: A #GDBusMethodInvocation. 1158s # * @arg_arg_x: Argument passed by remote caller. 1158s # * 1158s # * Signal emitted when a remote caller is invoking the SingleArgMethodX() D-Bus method. 1158s # * 1158s # * 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. 1158s # * 1158s # * 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. 1158s # */ 1158s # g_signal_new ("handle-single-arg-method-x", 1158s # G_TYPE_FROM_INTERFACE (iface), 1158s # G_SIGNAL_RUN_LAST, 1158s # G_STRUCT_OFFSET (OrgProjectUsefulInterfaceIface, handle_single_arg_method_x), 1158s # g_signal_accumulator_true_handled, 1158s # NULL, 1158s # org_project_useful_interface_method_marshal_single_arg_method_x, 1158s # G_TYPE_BOOLEAN, 1158s # 2, 1158s # G_TYPE_DBUS_METHOD_INVOCATION, G_TYPE_INT64); 1158s # 1158s # } 1158s # 1158s # /** 1158s # * org_project_useful_interface_call_single_arg_method_x: 1158s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1158s # * @arg_arg_x: Argument to pass with the method invocation. 1158s # * @cancellable: (nullable): A #GCancellable or %NULL. 1158s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL. 1158s # * @user_data: User data to pass to @callback. 1158s # * 1158s # * Asynchronously invokes the SingleArgMethodX() D-Bus method on @proxy. 1158s # * 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()). 1158s # * You can then call org_project_useful_interface_call_single_arg_method_x_finish() to get the result of the operation. 1158s # * 1158s # * See org_project_useful_interface_call_single_arg_method_x_sync() for the synchronous, blocking version of this method. 1158s # */ 1158s # void 1158s # org_project_useful_interface_call_single_arg_method_x ( 1158s # OrgProjectUsefulInterface *proxy, 1158s # gint64 arg_arg_x, 1158s # GCancellable *cancellable, 1158s # GAsyncReadyCallback callback, 1158s # gpointer user_data) 1158s # { 1158s # g_dbus_proxy_call (G_DBUS_PROXY (proxy), 1158s # "SingleArgMethodX", 1158s # g_variant_new ("(x)", 1158s # arg_arg_x), 1158s # G_DBUS_CALL_FLAGS_NONE, 1158s # -1, 1158s # cancellable, 1158s # callback, 1158s # user_data); 1158s # } 1158s # 1158s # /** 1158s # * org_project_useful_interface_call_single_arg_method_x_finish: 1158s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1158s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_call_single_arg_method_x(). 1158s # * @error: Return location for error or %NULL. 1158s # * 1158s # * Finishes an operation started with org_project_useful_interface_call_single_arg_method_x(). 1158s # * 1158s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1158s # */ 1158s # gboolean 1158s # org_project_useful_interface_call_single_arg_method_x_finish ( 1158s # OrgProjectUsefulInterface *proxy, 1158s # GAsyncResult *res, 1158s # GError **error) 1158s # { 1158s # GVariant *_ret; 1158s # _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error); 1158s # if (_ret == NULL) 1158s # goto _out; 1158s # g_variant_get (_ret, 1158s # "()"); 1158s # g_variant_unref (_ret); 1158s # _out: 1158s # return _ret != NULL; 1158s # } 1158s # 1158s # /** 1158s # * org_project_useful_interface_call_single_arg_method_x_sync: 1158s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1158s # * @arg_arg_x: Argument to pass with the method invocation. 1158s # * @cancellable: (nullable): A #GCancellable or %NULL. 1158s # * @error: Return location for error or %NULL. 1158s # * 1158s # * Synchronously invokes the SingleArgMethodX() D-Bus method on @proxy. The calling thread is blocked until a reply is received. 1158s # * 1158s # * See org_project_useful_interface_call_single_arg_method_x() for the asynchronous version of this method. 1158s # * 1158s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1158s # */ 1158s # gboolean 1158s # org_project_useful_interface_call_single_arg_method_x_sync ( 1158s # OrgProjectUsefulInterface *proxy, 1158s # gint64 arg_arg_x, 1158s # GCancellable *cancellable, 1158s # GError **error) 1158s # { 1158s # GVariant *_ret; 1158s # _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy), 1158s # "SingleArgMethodX", 1158s # g_variant_new ("(x)", 1158s # arg_arg_x), 1158s # G_DBUS_CALL_FLAGS_NONE, 1158s # -1, 1158s # cancellable, 1158s # error); 1158s # if (_ret == NULL) 1158s # goto _out; 1158s # g_variant_get (_ret, 1158s # "()"); 1158s # g_variant_unref (_ret); 1158s # _out: 1158s # return _ret != NULL; 1158s # } 1158s # 1158s # /** 1158s # * org_project_useful_interface_complete_single_arg_method_x: 1158s # * @object: A #OrgProjectUsefulInterface. 1158s # * @invocation: (transfer full): A #GDBusMethodInvocation. 1158s # * 1158s # * 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. 1158s # * 1158s # * This method will free @invocation, you cannot use it afterwards. 1158s # */ 1158s # void 1158s # org_project_useful_interface_complete_single_arg_method_x ( 1158s # OrgProjectUsefulInterface *object G_GNUC_UNUSED, 1158s # GDBusMethodInvocation *invocation) 1158s # { 1158s # g_dbus_method_invocation_return_value (invocation, 1158s # g_variant_new ("()")); 1158s # } 1158s # 1158s # /* ------------------------------------------------------------------------ */ 1158s # 1158s # /** 1158s # * OrgProjectUsefulInterfaceProxy: 1158s # * 1158s # * The #OrgProjectUsefulInterfaceProxy structure contains only private data and should only be accessed using the provided API. 1158s # */ 1158s # 1158s # /** 1158s # * OrgProjectUsefulInterfaceProxyClass: 1158s # * @parent_class: The parent class. 1158s # * 1158s # * Class structure for #OrgProjectUsefulInterfaceProxy. 1158s # */ 1158s # 1158s # struct _OrgProjectUsefulInterfaceProxyPrivate 1158s # { 1158s # GData *qdata; 1158s # }; 1158s # 1158s # static void org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface); 1158s # 1158s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1158s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 1158s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceProxy) 1158s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 1158s # 1158s # #else 1158s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 1158s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 1158s # 1158s # #endif 1158s # static void 1158s # org_project_useful_interface_proxy_finalize (GObject *object) 1158s # { 1158s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (object); 1158s # g_datalist_clear (&proxy->priv->qdata); 1158s # G_OBJECT_CLASS (org_project_useful_interface_proxy_parent_class)->finalize (object); 1158s # } 1158s # 1158s # static void 1158s # org_project_useful_interface_proxy_get_property (GObject *object G_GNUC_UNUSED, 1158s # guint prop_id G_GNUC_UNUSED, 1158s # GValue *value G_GNUC_UNUSED, 1158s # GParamSpec *pspec G_GNUC_UNUSED) 1158s # { 1158s # } 1158s # 1158s # static void 1158s # org_project_useful_interface_proxy_set_property (GObject *object G_GNUC_UNUSED, 1158s # guint prop_id G_GNUC_UNUSED, 1158s # const GValue *value G_GNUC_UNUSED, 1158s # GParamSpec *pspec G_GNUC_UNUSED) 1158s # { 1158s # } 1158s # 1158s # static void 1158s # org_project_useful_interface_proxy_g_signal (GDBusProxy *proxy, 1158s # const gchar *sender_name G_GNUC_UNUSED, 1158s # const gchar *signal_name, 1158s # GVariant *parameters) 1158s # { 1158s # _ExtendedGDBusSignalInfo *info; 1158s # GVariantIter iter; 1158s # GVariant *child; 1158s # GValue *paramv; 1158s # gsize num_params; 1158s # gsize n; 1158s # guint signal_id; 1158s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, signal_name); 1158s # if (info == NULL) 1158s # return; 1158s # num_params = g_variant_n_children (parameters); 1158s # paramv = g_new0 (GValue, num_params + 1); 1158s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1158s # g_value_set_object (¶mv[0], proxy); 1158s # g_variant_iter_init (&iter, parameters); 1158s # n = 1; 1158s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1158s # { 1158s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 1158s # if (arg_info->use_gvariant) 1158s # { 1158s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1158s # g_value_set_variant (¶mv[n], child); 1158s # n++; 1158s # } 1158s # else 1158s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1158s # g_variant_unref (child); 1158s # } 1158s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1158s # g_signal_emitv (paramv, signal_id, 0, NULL); 1158s # for (n = 0; n < num_params + 1; n++) 1158s # g_value_unset (¶mv[n]); 1158s # g_free (paramv); 1158s # } 1158s # 1158s # static void 1158s # org_project_useful_interface_proxy_g_properties_changed (GDBusProxy *_proxy, 1158s # GVariant *changed_properties, 1158s # const gchar *const *invalidated_properties) 1158s # { 1158s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (_proxy); 1158s # guint n; 1158s # const gchar *key; 1158s # GVariantIter *iter; 1158s # _ExtendedGDBusPropertyInfo *info; 1158s # g_variant_get (changed_properties, "a{sv}", &iter); 1158s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 1158s # { 1158s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, key); 1158s # g_datalist_remove_data (&proxy->priv->qdata, key); 1158s # if (info != NULL) 1158s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1158s # } 1158s # g_variant_iter_free (iter); 1158s # for (n = 0; invalidated_properties[n] != NULL; n++) 1158s # { 1158s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, invalidated_properties[n]); 1158s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 1158s # if (info != NULL) 1158s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1158s # } 1158s # } 1158s # 1158s # static void 1158s # org_project_useful_interface_proxy_init (OrgProjectUsefulInterfaceProxy *proxy) 1158s # { 1158s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1158s # proxy->priv = org_project_useful_interface_proxy_get_instance_private (proxy); 1158s # #else 1158s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY, OrgProjectUsefulInterfaceProxyPrivate); 1158s # #endif 1158s # 1158s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_useful_interface_interface_info ()); 1158s # } 1158s # 1158s # static void 1158s # org_project_useful_interface_proxy_class_init (OrgProjectUsefulInterfaceProxyClass *klass) 1158s # { 1158s # GObjectClass *gobject_class; 1158s # GDBusProxyClass *proxy_class; 1158s # 1158s # gobject_class = G_OBJECT_CLASS (klass); 1158s # gobject_class->finalize = org_project_useful_interface_proxy_finalize; 1158s # gobject_class->get_property = org_project_useful_interface_proxy_get_property; 1158s # gobject_class->set_property = org_project_useful_interface_proxy_set_property; 1158s # 1158s # proxy_class = G_DBUS_PROXY_CLASS (klass); 1158s # proxy_class->g_signal = org_project_useful_interface_proxy_g_signal; 1158s # proxy_class->g_properties_changed = org_project_useful_interface_proxy_g_properties_changed; 1158s # 1158s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1158s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceProxyPrivate)); 1158s # #endif 1158s # } 1158s # 1158s # static void 1158s # org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 1158s # { 1158s # } 1158s # 1158s # /** 1158s # * org_project_useful_interface_proxy_new: 1158s # * @connection: A #GDBusConnection. 1158s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1158s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1158s # * @object_path: An object path. 1158s # * @cancellable: (nullable): A #GCancellable or %NULL. 1158s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1158s # * @user_data: User data to pass to @callback. 1158s # * 1158s # * Asynchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new() for more details. 1158s # * 1158s # * 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()). 1158s # * You can then call org_project_useful_interface_proxy_new_finish() to get the result of the operation. 1158s # * 1158s # * See org_project_useful_interface_proxy_new_sync() for the synchronous, blocking version of this constructor. 1158s # */ 1158s # void 1158s # org_project_useful_interface_proxy_new ( 1158s # GDBusConnection *connection, 1158s # GDBusProxyFlags flags, 1158s # const gchar *name, 1158s # const gchar *object_path, 1158s # GCancellable *cancellable, 1158s # GAsyncReadyCallback callback, 1158s # gpointer user_data) 1158s # { 1158s # 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); 1158s # } 1158s # 1158s # /** 1158s # * org_project_useful_interface_proxy_new_finish: 1158s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new(). 1158s # * @error: Return location for error or %NULL 1158s # * 1158s # * Finishes an operation started with org_project_useful_interface_proxy_new(). 1158s # * 1158s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1158s # */ 1158s # OrgProjectUsefulInterface * 1158s # org_project_useful_interface_proxy_new_finish ( 1158s # GAsyncResult *res, 1158s # GError **error) 1158s # { 1158s # GObject *ret; 1158s # GObject *source_object; 1158s # source_object = g_async_result_get_source_object (res); 1158s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1158s # g_object_unref (source_object); 1158s # if (ret != NULL) 1158s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1158s # else 1158s # return NULL; 1158s # } 1158s # 1158s # /** 1158s # * org_project_useful_interface_proxy_new_sync: 1158s # * @connection: A #GDBusConnection. 1158s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1158s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1158s # * @object_path: An object path. 1158s # * @cancellable: (nullable): A #GCancellable or %NULL. 1158s # * @error: Return location for error or %NULL 1158s # * 1158s # * Synchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new_sync() for more details. 1158s # * 1158s # * The calling thread is blocked until a reply is received. 1158s # * 1158s # * See org_project_useful_interface_proxy_new() for the asynchronous version of this constructor. 1158s # * 1158s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1158s # */ 1158s # OrgProjectUsefulInterface * 1158s # org_project_useful_interface_proxy_new_sync ( 1158s # GDBusConnection *connection, 1158s # GDBusProxyFlags flags, 1158s # const gchar *name, 1158s # const gchar *object_path, 1158s # GCancellable *cancellable, 1158s # GError **error) 1158s # { 1158s # GInitable *ret; 1158s # 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); 1158s # if (ret != NULL) 1158s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1158s # else 1158s # return NULL; 1158s # } 1158s # 1158s # 1158s # /** 1158s # * org_project_useful_interface_proxy_new_for_bus: 1158s # * @bus_type: A #GBusType. 1158s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1158s # * @name: A bus name (well-known or unique). 1158s # * @object_path: An object path. 1158s # * @cancellable: (nullable): A #GCancellable or %NULL. 1158s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1158s # * @user_data: User data to pass to @callback. 1158s # * 1158s # * Like org_project_useful_interface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 1158s # * 1158s # * 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()). 1158s # * You can then call org_project_useful_interface_proxy_new_for_bus_finish() to get the result of the operation. 1158s # * 1158s # * See org_project_useful_interface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 1158s # */ 1158s # void 1158s # org_project_useful_interface_proxy_new_for_bus ( 1158s # GBusType bus_type, 1158s # GDBusProxyFlags flags, 1158s # const gchar *name, 1158s # const gchar *object_path, 1158s # GCancellable *cancellable, 1158s # GAsyncReadyCallback callback, 1158s # gpointer user_data) 1158s # { 1158s # 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); 1158s # } 1158s # 1158s # /** 1158s # * org_project_useful_interface_proxy_new_for_bus_finish: 1158s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new_for_bus(). 1158s # * @error: Return location for error or %NULL 1158s # * 1158s # * Finishes an operation started with org_project_useful_interface_proxy_new_for_bus(). 1158s # * 1158s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1158s # */ 1158s # OrgProjectUsefulInterface * 1158s # org_project_useful_interface_proxy_new_for_bus_finish ( 1158s # GAsyncResult *res, 1158s # GError **error) 1158s # { 1158s # GObject *ret; 1158s # GObject *source_object; 1158s # source_object = g_async_result_get_source_object (res); 1158s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1158s # g_object_unref (source_object); 1158s # if (ret != NULL) 1158s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1158s # else 1158s # return NULL; 1158s # } 1158s # 1158s # /** 1158s # * org_project_useful_interface_proxy_new_for_bus_sync: 1158s # * @bus_type: A #GBusType. 1158s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1158s # * @name: A bus name (well-known or unique). 1158s # * @object_path: An object path. 1158s # * @cancellable: (nullable): A #GCancellable or %NULL. 1158s # * @error: Return location for error or %NULL 1158s # * 1158s # * Like org_project_useful_interface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 1158s # * 1158s # * The calling thread is blocked until a reply is received. 1158s # * 1158s # * See org_project_useful_interface_proxy_new_for_bus() for the asynchronous version of this constructor. 1158s # * 1158s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1158s # */ 1158s # OrgProjectUsefulInterface * 1158s # org_project_useful_interface_proxy_new_for_bus_sync ( 1158s # GBusType bus_type, 1158s # GDBusProxyFlags flags, 1158s # const gchar *name, 1158s # const gchar *object_path, 1158s # GCancellable *cancellable, 1158s # GError **error) 1158s # { 1158s # GInitable *ret; 1158s # 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); 1158s # if (ret != NULL) 1158s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1158s # else 1158s # return NULL; 1158s # } 1158s # 1158s # 1158s # /* ------------------------------------------------------------------------ */ 1158s # 1158s # /** 1158s # * OrgProjectUsefulInterfaceSkeleton: 1158s # * 1158s # * The #OrgProjectUsefulInterfaceSkeleton structure contains only private data and should only be accessed using the provided API. 1158s # */ 1158s # 1158s # /** 1158s # * OrgProjectUsefulInterfaceSkeletonClass: 1158s # * @parent_class: The parent class. 1158s # * 1158s # * Class structure for #OrgProjectUsefulInterfaceSkeleton. 1158s # */ 1158s # 1158s # struct _OrgProjectUsefulInterfaceSkeletonPrivate 1158s # { 1158s # GValue *properties; 1158s # GList *changed_properties; 1158s # GSource *changed_properties_idle_source; 1158s # GMainContext *context; 1158s # GMutex lock; 1158s # }; 1158s # 1158s # static void 1158s # _org_project_useful_interface_skeleton_handle_method_call ( 1158s # GDBusConnection *connection G_GNUC_UNUSED, 1158s # const gchar *sender G_GNUC_UNUSED, 1158s # const gchar *object_path G_GNUC_UNUSED, 1158s # const gchar *interface_name, 1158s # const gchar *method_name, 1158s # GVariant *parameters, 1158s # GDBusMethodInvocation *invocation, 1158s # gpointer user_data) 1158s # { 1158s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1158s # _ExtendedGDBusMethodInfo *info; 1158s # GVariantIter iter; 1158s # GVariant *child; 1158s # GValue *paramv; 1158s # gsize num_params; 1158s # guint num_extra; 1158s # gsize n; 1158s # guint signal_id; 1158s # GValue return_value = G_VALUE_INIT; 1158s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 1158s # g_assert (info != NULL); 1158s # num_params = g_variant_n_children (parameters); 1158s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 1158s # n = 0; 1158s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1158s # g_value_set_object (¶mv[n++], skeleton); 1158s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 1158s # g_value_set_object (¶mv[n++], invocation); 1158s # if (info->pass_fdlist) 1158s # { 1158s # #ifdef G_OS_UNIX 1158s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 1158s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 1158s # #else 1158s # g_assert_not_reached (); 1158s # #endif 1158s # } 1158s # g_variant_iter_init (&iter, parameters); 1158s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1158s # { 1158s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 1158s # if (arg_info->use_gvariant) 1158s # { 1158s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1158s # g_value_set_variant (¶mv[n], child); 1158s # n++; 1158s # } 1158s # else 1158s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1158s # g_variant_unref (child); 1158s # } 1158s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1158s # g_value_init (&return_value, G_TYPE_BOOLEAN); 1158s # g_signal_emitv (paramv, signal_id, 0, &return_value); 1158s # if (!g_value_get_boolean (&return_value)) 1158s # 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); 1158s # g_value_unset (&return_value); 1158s # for (n = 0; n < num_params + num_extra; n++) 1158s # g_value_unset (¶mv[n]); 1158s # g_free (paramv); 1158s # } 1158s # 1158s # static GVariant * 1158s # _org_project_useful_interface_skeleton_handle_get_property ( 1158s # GDBusConnection *connection G_GNUC_UNUSED, 1158s # const gchar *sender G_GNUC_UNUSED, 1158s # const gchar *object_path G_GNUC_UNUSED, 1158s # const gchar *interface_name G_GNUC_UNUSED, 1158s # const gchar *property_name, 1158s # GError **error, 1158s # gpointer user_data) 1158s # { 1158s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1158s # GValue value = G_VALUE_INIT; 1158s # GParamSpec *pspec; 1158s # _ExtendedGDBusPropertyInfo *info; 1158s # GVariant *ret; 1158s # ret = NULL; 1158s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 1158s # g_assert (info != NULL); 1158s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1158s # if (pspec == NULL) 1158s # { 1158s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1158s # } 1158s # else 1158s # { 1158s # g_value_init (&value, pspec->value_type); 1158s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1158s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 1158s # g_value_unset (&value); 1158s # } 1158s # return ret; 1158s # } 1158s # 1158s # static gboolean 1158s # _org_project_useful_interface_skeleton_handle_set_property ( 1158s # GDBusConnection *connection G_GNUC_UNUSED, 1158s # const gchar *sender G_GNUC_UNUSED, 1158s # const gchar *object_path G_GNUC_UNUSED, 1158s # const gchar *interface_name G_GNUC_UNUSED, 1158s # const gchar *property_name, 1158s # GVariant *variant, 1158s # GError **error, 1158s # gpointer user_data) 1158s # { 1158s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1158s # GValue value = G_VALUE_INIT; 1158s # GParamSpec *pspec; 1158s # _ExtendedGDBusPropertyInfo *info; 1158s # gboolean ret; 1158s # ret = FALSE; 1158s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 1158s # g_assert (info != NULL); 1158s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1158s # if (pspec == NULL) 1158s # { 1158s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1158s # } 1158s # else 1158s # { 1158s # if (info->use_gvariant) 1158s # g_value_set_variant (&value, variant); 1158s # else 1158s # g_dbus_gvariant_to_gvalue (variant, &value); 1158s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1158s # g_value_unset (&value); 1158s # ret = TRUE; 1158s # } 1158s # return ret; 1158s # } 1158s # 1158s # static const GDBusInterfaceVTable _org_project_useful_interface_skeleton_vtable = 1158s # { 1158s # _org_project_useful_interface_skeleton_handle_method_call, 1158s # _org_project_useful_interface_skeleton_handle_get_property, 1158s # _org_project_useful_interface_skeleton_handle_set_property, 1158s # {NULL} 1158s # }; 1158s # 1158s # static GDBusInterfaceInfo * 1158s # org_project_useful_interface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1158s # { 1158s # return org_project_useful_interface_interface_info (); 1158s # } 1158s # 1158s # static GDBusInterfaceVTable * 1158s # org_project_useful_interface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1158s # { 1158s # return (GDBusInterfaceVTable *) &_org_project_useful_interface_skeleton_vtable; 1158s # } 1158s # 1158s # static GVariant * 1158s # org_project_useful_interface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 1158s # { 1158s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (_skeleton); 1158s # 1158s # GVariantBuilder builder; 1158s # guint n; 1158s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 1158s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 1158s # #else 1158s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 1158s # #endif 1158s # if (_org_project_useful_interface_interface_info.parent_struct.properties == NULL) 1158s # goto out; 1158s # for (n = 0; _org_project_useful_interface_interface_info.parent_struct.properties[n] != NULL; n++) 1158s # { 1158s # GDBusPropertyInfo *info = _org_project_useful_interface_interface_info.parent_struct.properties[n]; 1158s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 1158s # { 1158s # GVariant *value; 1158s # 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); 1158s # if (value != NULL) 1158s # { 1158s # g_variant_take_ref (value); 1158s # g_variant_builder_add (&builder, "{sv}", info->name, value); 1158s # g_variant_unref (value); 1158s # } 1158s # } 1158s # } 1158s # out: 1158s # return g_variant_builder_end (&builder); 1158s # } 1158s # 1158s # static void 1158s # org_project_useful_interface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 1158s # { 1158s # } 1158s # 1158s # static void org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface); 1158s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1158s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1158s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceSkeleton) 1158s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 1158s # 1158s # #else 1158s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1158s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 1158s # 1158s # #endif 1158s # static void 1158s # org_project_useful_interface_skeleton_finalize (GObject *object) 1158s # { 1158s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (object); 1158s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 1158s # if (skeleton->priv->changed_properties_idle_source != NULL) 1158s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 1158s # g_main_context_unref (skeleton->priv->context); 1158s # g_mutex_clear (&skeleton->priv->lock); 1158s # G_OBJECT_CLASS (org_project_useful_interface_skeleton_parent_class)->finalize (object); 1158s # } 1158s # 1158s # static void 1158s # org_project_useful_interface_skeleton_init (OrgProjectUsefulInterfaceSkeleton *skeleton) 1158s # { 1158s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1158s # skeleton->priv = org_project_useful_interface_skeleton_get_instance_private (skeleton); 1158s # #else 1158s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, OrgProjectUsefulInterfaceSkeletonPrivate); 1158s # #endif 1158s # 1158s # g_mutex_init (&skeleton->priv->lock); 1158s # skeleton->priv->context = g_main_context_ref_thread_default (); 1158s # } 1158s # 1158s # static void 1158s # org_project_useful_interface_skeleton_class_init (OrgProjectUsefulInterfaceSkeletonClass *klass) 1158s # { 1158s # GObjectClass *gobject_class; 1158s # GDBusInterfaceSkeletonClass *skeleton_class; 1158s # 1158s # gobject_class = G_OBJECT_CLASS (klass); 1158s # gobject_class->finalize = org_project_useful_interface_skeleton_finalize; 1158s # 1158s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 1158s # skeleton_class->get_info = org_project_useful_interface_skeleton_dbus_interface_get_info; 1158s # skeleton_class->get_properties = org_project_useful_interface_skeleton_dbus_interface_get_properties; 1158s # skeleton_class->flush = org_project_useful_interface_skeleton_dbus_interface_flush; 1158s # skeleton_class->get_vtable = org_project_useful_interface_skeleton_dbus_interface_get_vtable; 1158s # 1158s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1158s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceSkeletonPrivate)); 1158s # #endif 1158s # } 1158s # 1158s # static void 1158s # org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 1158s # { 1158s # } 1158s # 1158s # /** 1158s # * org_project_useful_interface_skeleton_new: 1158s # * 1158s # * Creates a skeleton object for the D-Bus interface org.project.UsefulInterface. 1158s # * 1158s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceSkeleton): The skeleton object. 1158s # */ 1158s # OrgProjectUsefulInterface * 1158s # org_project_useful_interface_skeleton_new (void) 1158s # { 1158s # return ORG_PROJECT_USEFUL_INTERFACE (g_object_new (TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, NULL)); 1158s # } 1158s # Error: 1158s # 1158s # /tmp/tmpv_fj8nn0/tmpjueyb9q9.xml: 1158s # 1158s # 1158s # 1158s # 1158s # 1158s # 1158s # 1158s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpv_fj8nn0/tmpjueyb9q9.xml', '--output', '-', '--body'] 1158s # Return code: 0 1158s # Output: 1158s # /* 1158s # * This file is generated by gdbus-codegen, do not modify it. 1158s # * 1158s # * The license of this code is the same as for the D-Bus interface description 1158s # * it was derived from. Note that it links to GLib, so must comply with the 1158s # * LGPL linking clauses. 1158s # */ 1158s # 1158s # #ifdef HAVE_CONFIG_H 1158s # # include "config.h" 1158s # #endif 1158s # 1158s # #include 1158s # #ifdef G_OS_UNIX 1158s # # include 1158s # #endif 1158s # 1158s # #ifdef G_ENABLE_DEBUG 1158s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 1158s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 1158s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 1158s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 1158s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 1158s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 1158s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 1158s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 1158s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 1158s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 1158s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 1158s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 1158s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 1158s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 1158s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 1158s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 1158s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 1158s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 1158s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 1158s # #else /* !G_ENABLE_DEBUG */ 1158s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 1158s # * Do not access GValues directly in your code. Instead, use the 1158s # * g_value_get_*() functions 1158s # */ 1158s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 1158s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 1158s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 1158s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 1158s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 1158s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 1158s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 1158s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 1158s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 1158s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 1158s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 1158s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 1158s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 1158s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 1158s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 1158s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 1158s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 1158s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 1158s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 1158s # #endif /* !G_ENABLE_DEBUG */ 1158s # 1158s # typedef struct 1158s # { 1158s # GDBusArgInfo parent_struct; 1158s # gboolean use_gvariant; 1158s # } _ExtendedGDBusArgInfo; 1158s # 1158s # typedef struct 1158s # { 1158s # GDBusMethodInfo parent_struct; 1158s # const gchar *signal_name; 1158s # gboolean pass_fdlist; 1158s # } _ExtendedGDBusMethodInfo; 1158s # 1158s # typedef struct 1158s # { 1158s # GDBusSignalInfo parent_struct; 1158s # const gchar *signal_name; 1158s # } _ExtendedGDBusSignalInfo; 1158s # 1158s # typedef struct 1158s # { 1158s # GDBusPropertyInfo parent_struct; 1158s # const gchar *hyphen_name; 1158s # guint use_gvariant : 1; 1158s # guint emits_changed_signal : 1; 1158s # } _ExtendedGDBusPropertyInfo; 1158s # 1158s # typedef struct 1158s # { 1158s # GDBusInterfaceInfo parent_struct; 1158s # const gchar *hyphen_name; 1158s # } _ExtendedGDBusInterfaceInfo; 1158s # 1158s # typedef struct 1158s # { 1158s # const _ExtendedGDBusPropertyInfo *info; 1158s # guint prop_id; 1158s # GValue orig_value; /* the value before the change */ 1158s # } ChangedProperty; 1158s # 1158s # static void 1158s # _changed_property_free (ChangedProperty *data) 1158s # { 1158s # g_value_unset (&data->orig_value); 1158s # g_free (data); 1158s # } 1158s # 1158s # static gboolean 1158s # _g_strv_equal0 (gchar **a, gchar **b) 1158s # { 1158s # gboolean ret = FALSE; 1158s # guint n; 1158s # if (a == NULL && b == NULL) 1158s # { 1158s # ret = TRUE; 1158s # goto out; 1158s # } 1158s # if (a == NULL || b == NULL) 1158s # goto out; 1158s # if (g_strv_length (a) != g_strv_length (b)) 1158s # goto out; 1158s # for (n = 0; a[n] != NULL; n++) 1158s # if (g_strcmp0 (a[n], b[n]) != 0) 1158s # goto out; 1158s # ret = TRUE; 1158s # out: 1158s # return ret; 1158s # } 1158s # 1158s # static gboolean 1158s # _g_variant_equal0 (GVariant *a, GVariant *b) 1158s # { 1158s # gboolean ret = FALSE; 1158s # if (a == NULL && b == NULL) 1158s # { 1158s # ret = TRUE; 1158s # goto out; 1158s # } 1158s # if (a == NULL || b == NULL) 1158s # goto out; 1158s # ret = g_variant_equal (a, b); 1158s # out: 1158s # return ret; 1158s # } 1158s # 1158s # G_GNUC_UNUSED static gboolean 1158s # _g_value_equal (const GValue *a, const GValue *b) 1158s # { 1158s # gboolean ret = FALSE; 1158s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 1158s # switch (G_VALUE_TYPE (a)) 1158s # { 1158s # case G_TYPE_BOOLEAN: 1158s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 1158s # break; 1158s # case G_TYPE_UCHAR: 1158s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 1158s # break; 1158s # case G_TYPE_INT: 1158s # ret = (g_value_get_int (a) == g_value_get_int (b)); 1158s # break; 1158s # case G_TYPE_UINT: 1158s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 1158s # break; 1158s # case G_TYPE_INT64: 1158s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 1158s # break; 1158s # case G_TYPE_UINT64: 1158s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 1158s # break; 1158s # case G_TYPE_DOUBLE: 1158s # { 1158s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 1158s # gdouble da = g_value_get_double (a); 1158s # gdouble db = g_value_get_double (b); 1158s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 1158s # } 1158s # break; 1158s # case G_TYPE_STRING: 1158s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 1158s # break; 1158s # case G_TYPE_VARIANT: 1158s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 1158s # break; 1158s # default: 1158s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 1158s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 1158s # else 1158s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 1158s # break; 1158s # } 1158s # return ret; 1158s # } 1158s # 1158s # static void 1158s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT_UINT64 ( 1158s # GClosure *closure, 1158s # GValue *return_value, 1158s # unsigned int n_param_values, 1158s # const GValue *param_values, 1158s # void *invocation_hint G_GNUC_UNUSED, 1158s # void *marshal_data) 1158s # { 1158s # typedef gboolean (*_GDbusCodegenMarshalBoolean_ObjectUint64Func) 1158s # (void *data1, 1158s # GDBusMethodInvocation *arg_method_invocation, 1158s # guint64 arg_arg_t, 1158s # void *data2); 1158s # _GDbusCodegenMarshalBoolean_ObjectUint64Func callback; 1158s # GCClosure *cc = (GCClosure*) closure; 1158s # void *data1, *data2; 1158s # gboolean v_return; 1158s # 1158s # g_return_if_fail (return_value != NULL); 1158s # g_return_if_fail (n_param_values == 3); 1158s # 1158s # if (G_CCLOSURE_SWAP_DATA (closure)) 1158s # { 1158s # data1 = closure->data; 1158s # data2 = g_value_peek_pointer (param_values + 0); 1158s # } 1158s # else 1158s # { 1158s # data1 = g_value_peek_pointer (param_values + 0); 1158s # data2 = closure->data; 1158s # } 1158s # 1158s # callback = (_GDbusCodegenMarshalBoolean_ObjectUint64Func) 1158s # (marshal_data ? marshal_data : cc->callback); 1158s # 1158s # v_return = 1158s # callback (data1, 1158s # g_marshal_value_peek_object (param_values + 1), 1158s # g_marshal_value_peek_uint64 (param_values + 2), 1158s # data2); 1158s # 1158s # g_value_set_boolean (return_value, v_return); 1158s # } 1158s # 1158s # /* ------------------------------------------------------------------------ 1158s # * Code for interface org.project.UsefulInterface 1158s # * ------------------------------------------------------------------------ 1158s # */ 1158s # 1158s # /** 1158s # * SECTION:OrgProjectUsefulInterface 1158s # * @title: OrgProjectUsefulInterface 1158s # * @short_description: Generated C code for the org.project.UsefulInterface D-Bus interface 1158s # * 1158s # * This section contains code for working with the org.project.UsefulInterface D-Bus interface in C. 1158s # */ 1158s # 1158s # /* ---- Introspection data for org.project.UsefulInterface ---- */ 1158s # 1158s # static const _ExtendedGDBusArgInfo _org_project_useful_interface_method_info_single_arg_method_t_IN_ARG_arg_t = 1158s # { 1158s # { 1158s # -1, 1158s # (gchar *) "arg_t", 1158s # (gchar *) "t", 1158s # NULL 1158s # }, 1158s # FALSE 1158s # }; 1158s # 1158s # static const GDBusArgInfo * const _org_project_useful_interface_method_info_single_arg_method_t_IN_ARG_pointers[] = 1158s # { 1158s # &_org_project_useful_interface_method_info_single_arg_method_t_IN_ARG_arg_t.parent_struct, 1158s # NULL 1158s # }; 1158s # 1158s # static const _ExtendedGDBusMethodInfo _org_project_useful_interface_method_info_single_arg_method_t = 1158s # { 1158s # { 1158s # -1, 1158s # (gchar *) "SingleArgMethodT", 1158s # (GDBusArgInfo **) &_org_project_useful_interface_method_info_single_arg_method_t_IN_ARG_pointers, 1158s # NULL, 1158s # NULL 1158s # }, 1158s # "handle-single-arg-method-t", 1158s # FALSE 1158s # }; 1158s # 1158s # static const GDBusMethodInfo * const _org_project_useful_interface_method_info_pointers[] = 1158s # { 1158s # &_org_project_useful_interface_method_info_single_arg_method_t.parent_struct, 1158s # NULL 1158s # }; 1158s # 1158s # static const _ExtendedGDBusInterfaceInfo _org_project_useful_interface_interface_info = 1158s # { 1158s # { 1158s # -1, 1158s # (gchar *) "org.project.UsefulInterface", 1158s # (GDBusMethodInfo **) &_org_project_useful_interface_method_info_pointers, 1158s # NULL, 1158s # NULL, 1158s # NULL 1158s # }, 1158s # "org-project-useful-interface", 1158s # }; 1158s # 1158s # 1158s # /** 1158s # * org_project_useful_interface_interface_info: 1158s # * 1158s # * Gets a machine-readable description of the org.project.UsefulInterface D-Bus interface. 1158s # * 1158s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 1158s # */ 1158s # GDBusInterfaceInfo * 1158s # org_project_useful_interface_interface_info (void) 1158s # { 1158s # return (GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct; 1158s # } 1158s # 1158s # /** 1158s # * org_project_useful_interface_override_properties: 1158s # * @klass: The class structure for a #GObject derived class. 1158s # * @property_id_begin: The property id to assign to the first overridden property. 1158s # * 1158s # * Overrides all #GObject properties in the #OrgProjectUsefulInterface interface for a concrete class. 1158s # * The properties are overridden in the order they are defined. 1158s # * 1158s # * Returns: The last property id. 1158s # */ 1158s # guint 1158s # org_project_useful_interface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 1158s # { 1158s # return property_id_begin - 1; 1158s # } 1158s # 1158s # 1158s # inline static void 1158s # org_project_useful_interface_method_marshal_single_arg_method_t ( 1158s # GClosure *closure, 1158s # GValue *return_value, 1158s # unsigned int n_param_values, 1158s # const GValue *param_values, 1158s # void *invocation_hint, 1158s # void *marshal_data) 1158s # { 1158s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT_UINT64 (closure, 1158s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1158s # } 1158s # 1158s # 1158s # /** 1158s # * OrgProjectUsefulInterface: 1158s # * 1158s # * Abstract interface type for the D-Bus interface org.project.UsefulInterface. 1158s # */ 1158s # 1158s # /** 1158s # * OrgProjectUsefulInterfaceIface: 1158s # * @parent_iface: The parent interface. 1158s # * @handle_single_arg_method_t: Handler for the #OrgProjectUsefulInterface::handle-single-arg-method-t signal. 1158s # * 1158s # * Virtual table for the D-Bus interface org.project.UsefulInterface. 1158s # */ 1158s # 1158s # typedef OrgProjectUsefulInterfaceIface OrgProjectUsefulInterfaceInterface; 1158s # G_DEFINE_INTERFACE (OrgProjectUsefulInterface, org_project_useful_interface, G_TYPE_OBJECT) 1158s # 1158s # static void 1158s # org_project_useful_interface_default_init (OrgProjectUsefulInterfaceIface *iface) 1158s # { 1158s # /* GObject signals for incoming D-Bus method calls: */ 1158s # /** 1158s # * OrgProjectUsefulInterface::handle-single-arg-method-t: 1158s # * @object: A #OrgProjectUsefulInterface. 1158s # * @invocation: A #GDBusMethodInvocation. 1158s # * @arg_arg_t: Argument passed by remote caller. 1158s # * 1158s # * Signal emitted when a remote caller is invoking the SingleArgMethodT() D-Bus method. 1158s # * 1158s # * 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. 1158s # * 1158s # * 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. 1158s # */ 1158s # g_signal_new ("handle-single-arg-method-t", 1158s # G_TYPE_FROM_INTERFACE (iface), 1158s # G_SIGNAL_RUN_LAST, 1158s # G_STRUCT_OFFSET (OrgProjectUsefulInterfaceIface, handle_single_arg_method_t), 1158s # g_signal_accumulator_true_handled, 1158s # NULL, 1158s # org_project_useful_interface_method_marshal_single_arg_method_t, 1158s # G_TYPE_BOOLEAN, 1158s # 2, 1158s # G_TYPE_DBUS_METHOD_INVOCATION, G_TYPE_UINT64); 1158s # 1158s # } 1158s # 1158s # /** 1158s # * org_project_useful_interface_call_single_arg_method_t: 1158s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1158s # * @arg_arg_t: Argument to pass with the method invocation. 1158s # * @cancellable: (nullable): A #GCancellable or %NULL. 1158s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL. 1158s # * @user_data: User data to pass to @callback. 1158s # * 1158s # * Asynchronously invokes the SingleArgMethodT() D-Bus method on @proxy. 1158s # * 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()). 1158s # * You can then call org_project_useful_interface_call_single_arg_method_t_finish() to get the result of the operation. 1158s # * 1158s # * See org_project_useful_interface_call_single_arg_method_t_sync() for the synchronous, blocking version of this method. 1158s # */ 1158s # void 1158s # org_project_useful_interface_call_single_arg_method_t ( 1158s # OrgProjectUsefulInterface *proxy, 1158s # guint64 arg_arg_t, 1158s # GCancellable *cancellable, 1158s # GAsyncReadyCallback callback, 1158s # gpointer user_data) 1158s # { 1158s # g_dbus_proxy_call (G_DBUS_PROXY (proxy), 1158s # "SingleArgMethodT", 1158s # g_variant_new ("(t)", 1158s # arg_arg_t), 1158s # G_DBUS_CALL_FLAGS_NONE, 1158s # -1, 1158s # cancellable, 1158s # callback, 1158s # user_data); 1158s # } 1158s # 1158s # /** 1158s # * org_project_useful_interface_call_single_arg_method_t_finish: 1158s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1158s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_call_single_arg_method_t(). 1158s # * @error: Return location for error or %NULL. 1158s # * 1158s # * Finishes an operation started with org_project_useful_interface_call_single_arg_method_t(). 1158s # * 1158s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1158s # */ 1158s # gboolean 1158s # org_project_useful_interface_call_single_arg_method_t_finish ( 1158s # OrgProjectUsefulInterface *proxy, 1158s # GAsyncResult *res, 1158s # GError **error) 1158s # { 1158s # GVariant *_ret; 1158s # _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error); 1158s # if (_ret == NULL) 1158s # goto _out; 1158s # g_variant_get (_ret, 1158s # "()"); 1158s # g_variant_unref (_ret); 1158s # _out: 1158s # return _ret != NULL; 1158s # } 1158s # 1158s # /** 1158s # * org_project_useful_interface_call_single_arg_method_t_sync: 1158s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1158s # * @arg_arg_t: Argument to pass with the method invocation. 1158s # * @cancellable: (nullable): A #GCancellable or %NULL. 1158s # * @error: Return location for error or %NULL. 1158s # * 1158s # * Synchronously invokes the SingleArgMethodT() D-Bus method on @proxy. The calling thread is blocked until a reply is received. 1158s # * 1158s # * See org_project_useful_interface_call_single_arg_method_t() for the asynchronous version of this method. 1158s # * 1158s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1158s # */ 1158s # gboolean 1158s # org_project_useful_interface_call_single_arg_method_t_sync ( 1158s # OrgProjectUsefulInterface *proxy, 1158s # guint64 arg_arg_t, 1158s # GCancellable *cancellable, 1158s # GError **error) 1158s # { 1158s # GVariant *_ret; 1158s # _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy), 1158s # "SingleArgMethodT", 1158s # g_variant_new ("(t)", 1158s # arg_arg_t), 1158s # G_DBUS_CALL_FLAGS_NONE, 1158s # -1, 1158s # cancellable, 1158s # error); 1158s # if (_ret == NULL) 1158s # goto _out; 1158s # g_variant_get (_ret, 1158s # "()"); 1158s # g_variant_unref (_ret); 1158s # _out: 1158s # return _ret != NULL; 1158s # } 1158s # 1158s # /** 1158s # * org_project_useful_interface_complete_single_arg_method_t: 1158s # * @object: A #OrgProjectUsefulInterface. 1158s # * @invocation: (transfer full): A #GDBusMethodInvocation. 1158s # * 1158s # * 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. 1158s # * 1158s # * This method will free @invocation, you cannot use it afterwards. 1158s # */ 1158s # void 1158s # org_project_useful_interface_complete_single_arg_method_t ( 1158s # OrgProjectUsefulInterface *object G_GNUC_UNUSED, 1158s # GDBusMethodInvocation *invocation) 1158s # { 1158s # g_dbus_method_invocation_return_value (invocation, 1158s # g_variant_new ("()")); 1158s # } 1158s # 1158s # /* ------------------------------------------------------------------------ */ 1158s # 1158s # /** 1158s # * OrgProjectUsefulInterfaceProxy: 1158s # * 1158s # * The #OrgProjectUsefulInterfaceProxy structure contains only private data and should only be accessed using the provided API. 1158s # */ 1158s # 1158s # /** 1158s # * OrgProjectUsefulInterfaceProxyClass: 1158s # * @parent_class: The parent class. 1158s # * 1158s # * Class structure for #OrgProjectUsefulInterfaceProxy. 1158s # */ 1158s # 1158s # struct _OrgProjectUsefulInterfaceProxyPrivate 1158s # { 1158s # GData *qdata; 1158s # }; 1158s # 1158s # static void org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface); 1158s # 1158s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1158s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 1158s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceProxy) 1158s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 1158s # 1158s # #else 1158s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 1158s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 1158s # 1158s # #endif 1158s # static void 1158s # org_project_useful_interface_proxy_finalize (GObject *object) 1158s # { 1158s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (object); 1158s # g_datalist_clear (&proxy->priv->qdata); 1158s # G_OBJECT_CLASS (org_project_useful_interface_proxy_parent_class)->finalize (object); 1158s # } 1158s # 1158s # static void 1158s # org_project_useful_interface_proxy_get_property (GObject *object G_GNUC_UNUSED, 1158s # guint prop_id G_GNUC_UNUSED, 1158s # GValue *value G_GNUC_UNUSED, 1158s # GParamSpec *pspec G_GNUC_UNUSED) 1158s # { 1158s # } 1158s # 1158s # static void 1158s # org_project_useful_interface_proxy_set_property (GObject *object G_GNUC_UNUSED, 1158s # guint prop_id G_GNUC_UNUSED, 1158s # const GValue *value G_GNUC_UNUSED, 1158s # GParamSpec *pspec G_GNUC_UNUSED) 1158s # { 1158s # } 1158s # 1158s # static void 1158s # org_project_useful_interface_proxy_g_signal (GDBusProxy *proxy, 1158s # const gchar *sender_name G_GNUC_UNUSED, 1158s # const gchar *signal_name, 1158s # GVariant *parameters) 1158s # { 1158s # _ExtendedGDBusSignalInfo *info; 1158s # GVariantIter iter; 1158s # GVariant *child; 1158s # GValue *paramv; 1158s # gsize num_params; 1158s # gsize n; 1158s # guint signal_id; 1158s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, signal_name); 1158s # if (info == NULL) 1158s # return; 1158s # num_params = g_variant_n_children (parameters); 1158s # paramv = g_new0 (GValue, num_params + 1); 1158s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1158s # g_value_set_object (¶mv[0], proxy); 1158s # g_variant_iter_init (&iter, parameters); 1158s # n = 1; 1158s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1158s # { 1158s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 1158s # if (arg_info->use_gvariant) 1158s # { 1158s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1158s # g_value_set_variant (¶mv[n], child); 1158s # n++; 1158s # } 1158s # else 1158s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1158s # g_variant_unref (child); 1158s # } 1158s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1158s # g_signal_emitv (paramv, signal_id, 0, NULL); 1158s # for (n = 0; n < num_params + 1; n++) 1158s # g_value_unset (¶mv[n]); 1158s # g_free (paramv); 1158s # } 1158s # 1158s # static void 1158s # org_project_useful_interface_proxy_g_properties_changed (GDBusProxy *_proxy, 1158s # GVariant *changed_properties, 1158s # const gchar *const *invalidated_properties) 1158s # { 1158s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (_proxy); 1158s # guint n; 1158s # const gchar *key; 1158s # GVariantIter *iter; 1158s # _ExtendedGDBusPropertyInfo *info; 1158s # g_variant_get (changed_properties, "a{sv}", &iter); 1158s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 1158s # { 1158s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, key); 1158s # g_datalist_remove_data (&proxy->priv->qdata, key); 1158s # if (info != NULL) 1158s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1158s # } 1158s # g_variant_iter_free (iter); 1158s # for (n = 0; invalidated_properties[n] != NULL; n++) 1158s # { 1158s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, invalidated_properties[n]); 1158s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 1158s # if (info != NULL) 1158s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1158s # } 1158s # } 1158s # 1158s # static void 1158s # org_project_useful_interface_proxy_init (OrgProjectUsefulInterfaceProxy *proxy) 1158s # { 1158s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1158s # proxy->priv = org_project_useful_interface_proxy_get_instance_private (proxy); 1158s # #else 1158s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY, OrgProjectUsefulInterfaceProxyPrivate); 1158s # #endif 1158s # 1158s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_useful_interface_interface_info ()); 1158s # } 1158s # 1158s # static void 1158s # org_project_useful_interface_proxy_class_init (OrgProjectUsefulInterfaceProxyClass *klass) 1158s # { 1158s # GObjectClass *gobject_class; 1158s # GDBusProxyClass *proxy_class; 1158s # 1158s # gobject_class = G_OBJECT_CLASS (klass); 1158s # gobject_class->finalize = org_project_useful_interface_proxy_finalize; 1158s # gobject_class->get_property = org_project_useful_interface_proxy_get_property; 1158s # gobject_class->set_property = org_project_useful_interface_proxy_set_property; 1158s # 1158s # proxy_class = G_DBUS_PROXY_CLASS (klass); 1158s # proxy_class->g_signal = org_project_useful_interface_proxy_g_signal; 1158s # proxy_class->g_properties_changed = org_project_useful_interface_proxy_g_properties_changed; 1158s # 1158s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1158s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceProxyPrivate)); 1158s # #endif 1158s # } 1158s # 1158s # static void 1158s # org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 1158s # { 1158s # } 1158s # 1158s # /** 1158s # * org_project_useful_interface_proxy_new: 1158s # * @connection: A #GDBusConnection. 1158s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1158s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1158s # * @object_path: An object path. 1158s # * @cancellable: (nullable): A #GCancellable or %NULL. 1158s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1158s # * @user_data: User data to pass to @callback. 1158s # * 1158s # * Asynchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new() for more details. 1158s # * 1158s # * 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()). 1158s # * You can then call org_project_useful_interface_proxy_new_finish() to get the result of the operation. 1158s # * 1158s # * See org_project_useful_interface_proxy_new_sync() for the synchronous, blocking version of this constructor. 1158s # */ 1158s # void 1158s # org_project_useful_interface_proxy_new ( 1158s # GDBusConnection *connection, 1158s # GDBusProxyFlags flags, 1158s # const gchar *name, 1158s # const gchar *object_path, 1158s # GCancellable *cancellable, 1158s # GAsyncReadyCallback callback, 1158s # gpointer user_data) 1158s # { 1158s # 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); 1158s # } 1158s # 1158s # /** 1158s # * org_project_useful_interface_proxy_new_finish: 1158s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new(). 1158s # * @error: Return location for error or %NULL 1158s # * 1158s # * Finishes an operation started with org_project_useful_interface_proxy_new(). 1158s # * 1158s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1158s # */ 1158s # OrgProjectUsefulInterface * 1158s # org_project_useful_interface_proxy_new_finish ( 1158s # GAsyncResult *res, 1158s # GError **error) 1158s # { 1158s # GObject *ret; 1158s # GObject *source_object; 1158s # source_object = g_async_result_get_source_object (res); 1158s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1158s # g_object_unref (source_object); 1158s # if (ret != NULL) 1158s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1158s # else 1158s # return NULL; 1158s # } 1158s # 1158s # /** 1158s # * org_project_useful_interface_proxy_new_sync: 1158s # * @connection: A #GDBusConnection. 1158s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1158s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1158s # * @object_path: An object path. 1158s # * @cancellable: (nullable): A #GCancellable or %NULL. 1158s # * @error: Return location for error or %NULL 1158s # * 1158s # * Synchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new_sync() for more details. 1158s # * 1158s # * The calling thread is blocked until a reply is received. 1158s # * 1158s # * See org_project_useful_interface_proxy_new() for the asynchronous version of this constructor. 1158s # * 1158s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1158s # */ 1158s # OrgProjectUsefulInterface * 1158s # org_project_useful_interface_proxy_new_sync ( 1158s # GDBusConnection *connection, 1158s # GDBusProxyFlags flags, 1158s # const gchar *name, 1158s # const gchar *object_path, 1158s # GCancellable *cancellable, 1158s # GError **error) 1158s # { 1158s # GInitable *ret; 1158s # 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); 1158s # if (ret != NULL) 1158s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1158s # else 1158s # return NULL; 1158s # } 1158s # 1158s # 1158s # /** 1158s # * org_project_useful_interface_proxy_new_for_bus: 1158s # * @bus_type: A #GBusType. 1158s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1158s # * @name: A bus name (well-known or unique). 1158s # * @object_path: An object path. 1158s # * @cancellable: (nullable): A #GCancellable or %NULL. 1158s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1158s # * @user_data: User data to pass to @callback. 1158s # * 1158s # * Like org_project_useful_interface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 1158s # * 1158s # * 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()). 1158s # * You can then call org_project_useful_interface_proxy_new_for_bus_finish() to get the result of the operation. 1158s # * 1158s # * See org_project_useful_interface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 1158s # */ 1158s # void 1158s # org_project_useful_interface_proxy_new_for_bus ( 1158s # GBusType bus_type, 1158s # GDBusProxyFlags flags, 1158s # const gchar *name, 1158s # const gchar *object_path, 1158s # GCancellable *cancellable, 1158s # GAsyncReadyCallback callback, 1158s # gpointer user_data) 1158s # { 1158s # 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); 1158s # } 1158s # 1158s # /** 1158s # * org_project_useful_interface_proxy_new_for_bus_finish: 1158s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new_for_bus(). 1158s # * @error: Return location for error or %NULL 1158s # * 1158s # * Finishes an operation started with org_project_useful_interface_proxy_new_for_bus(). 1158s # * 1158s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1158s # */ 1158s # OrgProjectUsefulInterface * 1158s # org_project_useful_interface_proxy_new_for_bus_finish ( 1158s # GAsyncResult *res, 1158s # GError **error) 1158s # { 1158s # GObject *ret; 1158s # GObject *source_object; 1158s # source_object = g_async_result_get_source_object (res); 1158s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1158s # g_object_unref (source_object); 1158s # if (ret != NULL) 1158s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1158s # else 1158s # return NULL; 1158s # } 1158s # 1158s # /** 1158s # * org_project_useful_interface_proxy_new_for_bus_sync: 1158s # * @bus_type: A #GBusType. 1158s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1158s # * @name: A bus name (well-known or unique). 1158s # * @object_path: An object path. 1158s # * @cancellable: (nullable): A #GCancellable or %NULL. 1158s # * @error: Return location for error or %NULL 1158s # * 1158s # * Like org_project_useful_interface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 1158s # * 1158s # * The calling thread is blocked until a reply is received. 1158s # * 1158s # * See org_project_useful_interface_proxy_new_for_bus() for the asynchronous version of this constructor. 1158s # * 1158s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1158s # */ 1158s # OrgProjectUsefulInterface * 1158s # org_project_useful_interface_proxy_new_for_bus_sync ( 1158s # GBusType bus_type, 1158s # GDBusProxyFlags flags, 1158s # const gchar *name, 1158s # const gchar *object_path, 1158s # GCancellable *cancellable, 1158s # GError **error) 1158s # { 1158s # GInitable *ret; 1158s # 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); 1158s # if (ret != NULL) 1158s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1158s # else 1158s # return NULL; 1158s # } 1158s # 1158s # 1158s # /* ------------------------------------------------------------------------ */ 1158s # 1158s # /** 1158s # * OrgProjectUsefulInterfaceSkeleton: 1158s # * 1158s # * The #OrgProjectUsefulInterfaceSkeleton structure contains only private data and should only be accessed using the provided API. 1158s # */ 1158s # 1158s # /** 1158s # * OrgProjectUsefulInterfaceSkeletonClass: 1158s # * @parent_class: The parent class. 1158s # * 1158s # * Class structure for #OrgProjectUsefulInterfaceSkeleton. 1158s # */ 1158s # 1158s # struct _OrgProjectUsefulInterfaceSkeletonPrivate 1158s # { 1158s # GValue *properties; 1158s # GList *changed_properties; 1158s # GSource *changed_properties_idle_source; 1158s # GMainContext *context; 1158s # GMutex lock; 1158s # }; 1158s # 1158s # static void 1158s # _org_project_useful_interface_skeleton_handle_method_call ( 1158s # GDBusConnection *connection G_GNUC_UNUSED, 1158s # const gchar *sender G_GNUC_UNUSED, 1158s # const gchar *object_path G_GNUC_UNUSED, 1158s # const gchar *interface_name, 1158s # const gchar *method_name, 1158s # GVariant *parameters, 1158s # GDBusMethodInvocation *invocation, 1158s # gpointer user_data) 1158s # { 1158s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1158s # _ExtendedGDBusMethodInfo *info; 1158s # GVariantIter iter; 1158s # GVariant *child; 1158s # GValue *paramv; 1158s # gsize num_params; 1158s # guint num_extra; 1158s # gsize n; 1158s # guint signal_id; 1158s # GValue return_value = G_VALUE_INIT; 1158s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 1158s # g_assert (info != NULL); 1158s # num_params = g_variant_n_children (parameters); 1158s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 1158s # n = 0; 1158s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1158s # g_value_set_object (¶mv[n++], skeleton); 1158s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 1158s # g_value_set_object (¶mv[n++], invocation); 1158s # if (info->pass_fdlist) 1158s # { 1158s # #ifdef G_OS_UNIX 1158s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 1158s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 1158s # #else 1158s # g_assert_not_reached (); 1158s # #endif 1158s # } 1158s # g_variant_iter_init (&iter, parameters); 1158s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1158s # { 1158s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 1158s # if (arg_info->use_gvariant) 1158s # { 1158s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1158s # g_value_set_variant (¶mv[n], child); 1158s # n++; 1158s # } 1158s # else 1158s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1158s # g_variant_unref (child); 1158s # } 1158s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1158s # g_value_init (&return_value, G_TYPE_BOOLEAN); 1158s # g_signal_emitv (paramv, signal_id, 0, &return_value); 1158s # if (!g_value_get_boolean (&return_value)) 1158s # 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); 1158s # g_value_unset (&return_value); 1158s # for (n = 0; n < num_params + num_extra; n++) 1158s # g_value_unset (¶mv[n]); 1158s # g_free (paramv); 1158s # } 1158s # 1158s # static GVariant * 1158s # _org_project_useful_interface_skeleton_handle_get_property ( 1158s # GDBusConnection *connection G_GNUC_UNUSED, 1158s # const gchar *sender G_GNUC_UNUSED, 1158s # const gchar *object_path G_GNUC_UNUSED, 1158s # const gchar *interface_name G_GNUC_UNUSED, 1158s # const gchar *property_name, 1158s # GError **error, 1158s # gpointer user_data) 1158s # { 1158s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1158s # GValue value = G_VALUE_INIT; 1158s # GParamSpec *pspec; 1158s # _ExtendedGDBusPropertyInfo *info; 1158s # GVariant *ret; 1158s # ret = NULL; 1158s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 1158s # g_assert (info != NULL); 1158s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1158s # if (pspec == NULL) 1158s # { 1158s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1158s # } 1158s # else 1158s # { 1158s # g_value_init (&value, pspec->value_type); 1158s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1158s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 1158s # g_value_unset (&value); 1158s # } 1158s # return ret; 1158s # } 1158s # 1158s # static gboolean 1158s # _org_project_useful_interface_skeleton_handle_set_property ( 1158s # GDBusConnection *connection G_GNUC_UNUSED, 1158s # const gchar *sender G_GNUC_UNUSED, 1158s # const gchar *object_path G_GNUC_UNUSED, 1158s # const gchar *interface_name G_GNUC_UNUSED, 1158s # const gchar *property_name, 1158s # GVariant *variant, 1158s # GError **error, 1158s # gpointer user_data) 1158s # { 1158s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1158s # GValue value = G_VALUE_INIT; 1158s # GParamSpec *pspec; 1158s # _ExtendedGDBusPropertyInfo *info; 1158s # gboolean ret; 1158s # ret = FALSE; 1158s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 1158s # g_assert (info != NULL); 1158s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1158s # if (pspec == NULL) 1158s # { 1158s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1158s # } 1158s # else 1158s # { 1158s # if (info->use_gvariant) 1158s # g_value_set_variant (&value, variant); 1158s # else 1158s # g_dbus_gvariant_to_gvalue (variant, &value); 1158s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1158s # g_value_unset (&value); 1158s # ret = TRUE; 1158s # } 1158s # return ret; 1158s # } 1158s # 1158s # static const GDBusInterfaceVTable _org_project_useful_interface_skeleton_vtable = 1158s # { 1158s # _org_project_useful_interface_skeleton_handle_method_call, 1158s # _org_project_useful_interface_skeleton_handle_get_property, 1158s # _org_project_useful_interface_skeleton_handle_set_property, 1158s # {NULL} 1158s # }; 1158s # 1158s # static GDBusInterfaceInfo * 1158s # org_project_useful_interface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1158s # { 1158s # return org_project_useful_interface_interface_info (); 1158s # } 1158s # 1158s # static GDBusInterfaceVTable * 1158s # org_project_useful_interface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1158s # { 1158s # return (GDBusInterfaceVTable *) &_org_project_useful_interface_skeleton_vtable; 1158s # } 1158s # 1158s # static GVariant * 1158s # org_project_useful_interface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 1158s # { 1158s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (_skeleton); 1158s # 1158s # GVariantBuilder builder; 1158s # guint n; 1158s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 1158s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 1158s # #else 1158s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 1158s # #endif 1158s # if (_org_project_useful_interface_interface_info.parent_struct.properties == NULL) 1158s # goto out; 1158s # for (n = 0; _org_project_useful_interface_interface_info.parent_struct.properties[n] != NULL; n++) 1158s # { 1158s # GDBusPropertyInfo *info = _org_project_useful_interface_interface_info.parent_struct.properties[n]; 1158s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 1158s # { 1158s # GVariant *value; 1158s # 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); 1158s # if (value != NULL) 1158s # { 1158s # g_variant_take_ref (value); 1158s # g_variant_builder_add (&builder, "{sv}", info->name, value); 1158s # g_variant_unref (value); 1158s # } 1158s # } 1158s # } 1158s # out: 1158s # return g_variant_builder_end (&builder); 1158s # } 1158s # 1158s # static void 1158s # org_project_useful_interface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 1158s # { 1158s # } 1158s # 1158s # static void org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface); 1158s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1158s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1158s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceSkeleton) 1158s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 1158s # 1158s # #else 1158s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1158s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 1158s # 1158s # #endif 1158s # static void 1158s # org_project_useful_interface_skeleton_finalize (GObject *object) 1158s # { 1158s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (object); 1158s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 1158s # if (skeleton->priv->changed_properties_idle_source != NULL) 1158s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 1158s # g_main_context_unref (skeleton->priv->context); 1158s # g_mutex_clear (&skeleton->priv->lock); 1158s # G_OBJECT_CLASS (org_project_useful_interface_skeleton_parent_class)->finalize (object); 1158s # } 1158s # 1158s # static void 1158s # org_project_useful_interface_skeleton_init (OrgProjectUsefulInterfaceSkeleton *skeleton) 1158s # { 1158s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1158s # skeleton->priv = org_project_useful_interface_skeleton_get_instance_private (skeleton); 1158s # #else 1158s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, OrgProjectUsefulInterfaceSkeletonPrivate); 1158s # #endif 1158s # 1158s # g_mutex_init (&skeleton->priv->lock); 1158s # skeleton->priv->context = g_main_context_ref_thread_default (); 1158s # } 1158s # 1158s # static void 1158s # org_project_useful_interface_skeleton_class_init (OrgProjectUsefulInterfaceSkeletonClass *klass) 1158s # { 1158s # GObjectClass *gobject_class; 1158s # GDBusInterfaceSkeletonClass *skeleton_class; 1158s # 1158s # gobject_class = G_OBJECT_CLASS (klass); 1158s # gobject_class->finalize = org_project_useful_interface_skeleton_finalize; 1158s # 1158s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 1158s # skeleton_class->get_info = org_project_useful_interface_skeleton_dbus_interface_get_info; 1158s # skeleton_class->get_properties = org_project_useful_interface_skeleton_dbus_interface_get_properties; 1158s # skeleton_class->flush = org_project_useful_interface_skeleton_dbus_interface_flush; 1158s # skeleton_class->get_vtable = org_project_useful_interface_skeleton_dbus_interface_get_vtable; 1158s # 1158s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1158s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceSkeletonPrivate)); 1158s # #endif 1158s # } 1158s # 1158s # static void 1158s # org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 1158s # { 1158s # } 1158s # 1158s # /** 1158s # * org_project_useful_interface_skeleton_new: 1158s # * 1158s # * Creates a skeleton object for the D-Bus interface org.project.UsefulInterface. 1158s # * 1158s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceSkeleton): The skeleton object. 1158s # */ 1158s # OrgProjectUsefulInterface * 1158s # org_project_useful_interface_skeleton_new (void) 1158s # { 1158s # return ORG_PROJECT_USEFUL_INTERFACE (g_object_new (TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, NULL)); 1158s # } 1158s # Error: 1158s # 1158s # /tmp/tmpv_fj8nn0/tmpo4nb6sna.xml: 1158s # 1158s # 1158s # 1158s # 1158s # 1158s # 1158s # 1158s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpv_fj8nn0/tmpo4nb6sna.xml', '--output', '-', '--body'] 1158s # Return code: 0 1158s # Output: 1158s # /* 1158s # * This file is generated by gdbus-codegen, do not modify it. 1158s # * 1158s # * The license of this code is the same as for the D-Bus interface description 1158s # * it was derived from. Note that it links to GLib, so must comply with the 1158s # * LGPL linking clauses. 1158s # */ 1158s # 1158s # #ifdef HAVE_CONFIG_H 1158s # # include "config.h" 1158s # #endif 1158s # 1158s # #include 1158s # #ifdef G_OS_UNIX 1158s # # include 1158s # #endif 1158s # 1158s # #ifdef G_ENABLE_DEBUG 1158s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 1158s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 1158s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 1158s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 1158s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 1158s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 1158s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 1158s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 1158s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 1158s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 1158s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 1158s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 1158s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 1158s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 1158s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 1158s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 1158s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 1158s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 1158s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 1158s # #else /* !G_ENABLE_DEBUG */ 1158s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 1158s # * Do not access GValues directly in your code. Instead, use the 1158s # * g_value_get_*() functions 1158s # */ 1158s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 1158s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 1158s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 1158s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 1158s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 1158s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 1158s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 1158s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 1158s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 1158s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 1158s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 1158s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 1158s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 1158s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 1158s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 1158s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 1158s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 1158s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 1158s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 1158s # #endif /* !G_ENABLE_DEBUG */ 1158s # 1158s # typedef struct 1158s # { 1158s # GDBusArgInfo parent_struct; 1158s # gboolean use_gvariant; 1158s # } _ExtendedGDBusArgInfo; 1158s # 1158s # typedef struct 1158s # { 1158s # GDBusMethodInfo parent_struct; 1158s # const gchar *signal_name; 1158s # gboolean pass_fdlist; 1158s # } _ExtendedGDBusMethodInfo; 1158s # 1158s # typedef struct 1158s # { 1158s # GDBusSignalInfo parent_struct; 1158s # const gchar *signal_name; 1158s # } _ExtendedGDBusSignalInfo; 1158s # 1158s # typedef struct 1158s # { 1158s # GDBusPropertyInfo parent_struct; 1158s # const gchar *hyphen_name; 1158s # guint use_gvariant : 1; 1158s # guint emits_changed_signal : 1; 1158s # } _ExtendedGDBusPropertyInfo; 1158s # 1158s # typedef struct 1158s # { 1158s # GDBusInterfaceInfo parent_struct; 1158s # const gchar *hyphen_name; 1158s # } _ExtendedGDBusInterfaceInfo; 1158s # 1158s # typedef struct 1158s # { 1158s # const _ExtendedGDBusPropertyInfo *info; 1158s # guint prop_id; 1158s # GValue orig_value; /* the value before the change */ 1158s # } ChangedProperty; 1158s # 1158s # static void 1158s # _changed_property_free (ChangedProperty *data) 1158s # { 1158s # g_value_unset (&data->orig_value); 1158s # g_free (data); 1158s # } 1158s # 1158s # static gboolean 1158s # _g_strv_equal0 (gchar **a, gchar **b) 1158s # { 1158s # gboolean ret = FALSE; 1158s # guint n; 1158s # if (a == NULL && b == NULL) 1158s # { 1158s # ret = TRUE; 1158s # goto out; 1158s # } 1158s # if (a == NULL || b == NULL) 1158s # goto out; 1158s # if (g_strv_length (a) != g_strv_length (b)) 1158s # goto out; 1158s # for (n = 0; a[n] != NULL; n++) 1158s # if (g_strcmp0 (a[n], b[n]) != 0) 1158s # goto out; 1158s # ret = TRUE; 1158s # out: 1158s # return ret; 1158s # } 1158s # 1158s # static gboolean 1158s # _g_variant_equal0 (GVariant *a, GVariant *b) 1158s # { 1158s # gboolean ret = FALSE; 1158s # if (a == NULL && b == NULL) 1158s # { 1158s # ret = TRUE; 1158s # goto out; 1158s # } 1158s # if (a == NULL || b == NULL) 1158s # goto out; 1158s # ret = g_variant_equal (a, b); 1158s # out: 1158s # return ret; 1158s # } 1158s # 1158s # G_GNUC_UNUSED static gboolean 1158s # _g_value_equal (const GValue *a, const GValue *b) 1158s # { 1158s # gboolean ret = FALSE; 1158s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 1158s # switch (G_VALUE_TYPE (a)) 1158s # { 1158s # case G_TYPE_BOOLEAN: 1158s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 1158s # break; 1158s # case G_TYPE_UCHAR: 1158s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 1158s # break; 1158s # case G_TYPE_INT: 1158s # ret = (g_value_get_int (a) == g_value_get_int (b)); 1158s # break; 1158s # case G_TYPE_UINT: 1158s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 1158s # break; 1158s # case G_TYPE_INT64: 1158s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 1158s # break; 1158s # case G_TYPE_UINT64: 1158s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 1158s # break; 1158s # case G_TYPE_DOUBLE: 1158s # { 1158s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 1158s # gdouble da = g_value_get_double (a); 1158s # gdouble db = g_value_get_double (b); 1158s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 1158s # } 1158s # break; 1158s # case G_TYPE_STRING: 1158s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 1158s # break; 1158s # case G_TYPE_VARIANT: 1158s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 1158s # break; 1158s # default: 1158s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 1158s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 1158s # else 1158s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 1158s # break; 1158s # } 1158s # return ret; 1158s # } 1158s # 1158s # static void 1158s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT_DOUBLE ( 1158s # GClosure *closure, 1158s # GValue *return_value, 1158s # unsigned int n_param_values, 1158s # const GValue *param_values, 1158s # void *invocation_hint G_GNUC_UNUSED, 1158s # void *marshal_data) 1158s # { 1158s # typedef gboolean (*_GDbusCodegenMarshalBoolean_ObjectDoubleFunc) 1158s # (void *data1, 1158s # GDBusMethodInvocation *arg_method_invocation, 1158s # gdouble arg_arg_d, 1158s # void *data2); 1158s # _GDbusCodegenMarshalBoolean_ObjectDoubleFunc callback; 1158s # GCClosure *cc = (GCClosure*) closure; 1158s # void *data1, *data2; 1158s # gboolean v_return; 1158s # 1158s # g_return_if_fail (return_value != NULL); 1158s # g_return_if_fail (n_param_values == 3); 1158s # 1158s # if (G_CCLOSURE_SWAP_DATA (closure)) 1158s # { 1158s # data1 = closure->data; 1158s # data2 = g_value_peek_pointer (param_values + 0); 1158s # } 1158s # else 1158s # { 1158s # data1 = g_value_peek_pointer (param_values + 0); 1158s # data2 = closure->data; 1158s # } 1158s # 1158s # callback = (_GDbusCodegenMarshalBoolean_ObjectDoubleFunc) 1158s # (marshal_data ? marshal_data : cc->callback); 1158s # 1158s # v_return = 1158s # callback (data1, 1158s # g_marshal_value_peek_object (param_values + 1), 1158s # g_marshal_value_peek_double (param_values + 2), 1158s # data2); 1158s # 1158s # g_value_set_boolean (return_value, v_return); 1158s # } 1158s # 1158s # /* ------------------------------------------------------------------------ 1158s # * Code for interface org.project.UsefulInterface 1158s # * ------------------------------------------------------------------------ 1158s # */ 1158s # 1158s # /** 1158s # * SECTION:OrgProjectUsefulInterface 1158s # * @title: OrgProjectUsefulInterface 1158s # * @short_description: Generated C code for the org.project.UsefulInterface D-Bus interface 1158s # * 1158s # * This section contains code for working with the org.project.UsefulInterface D-Bus interface in C. 1158s # */ 1158s # 1158s # /* ---- Introspection data for org.project.UsefulInterface ---- */ 1158s # 1158s # static const _ExtendedGDBusArgInfo _org_project_useful_interface_method_info_single_arg_method_d_IN_ARG_arg_d = 1158s # { 1158s # { 1158s # -1, 1158s # (gchar *) "arg_d", 1158s # (gchar *) "d", 1158s # NULL 1158s # }, 1158s # FALSE 1158s # }; 1158s # 1158s # static const GDBusArgInfo * const _org_project_useful_interface_method_info_single_arg_method_d_IN_ARG_pointers[] = 1158s # { 1158s # &_org_project_useful_interface_method_info_single_arg_method_d_IN_ARG_arg_d.parent_struct, 1158s # NULL 1158s # }; 1158s # 1158s # static const _ExtendedGDBusMethodInfo _org_project_useful_interface_method_info_single_arg_method_d = 1158s # { 1158s # { 1158s # -1, 1158s # (gchar *) "SingleArgMethodD", 1158s # (GDBusArgInfo **) &_org_project_useful_interface_method_info_single_arg_method_d_IN_ARG_pointers, 1158s # NULL, 1158s # NULL 1158s # }, 1158s # "handle-single-arg-method-d", 1158s # FALSE 1158s # }; 1158s # 1158s # static const GDBusMethodInfo * const _org_project_useful_interface_method_info_pointers[] = 1158s # { 1158s # &_org_project_useful_interface_method_info_single_arg_method_d.parent_struct, 1158s # NULL 1158s # }; 1158s # 1158s # static const _ExtendedGDBusInterfaceInfo _org_project_useful_interface_interface_info = 1158s # { 1158s # { 1158s # -1, 1158s # (gchar *) "org.project.UsefulInterface", 1158s # (GDBusMethodInfo **) &_org_project_useful_interface_method_info_pointers, 1158s # NULL, 1158s # NULL, 1158s # NULL 1158s # }, 1158s # "org-project-useful-interface", 1158s # }; 1158s # 1158s # 1158s # /** 1158s # * org_project_useful_interface_interface_info: 1158s # * 1158s # * Gets a machine-readable description of the org.project.UsefulInterface D-Bus interface. 1158s # * 1158s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 1158s # */ 1158s # GDBusInterfaceInfo * 1158s # org_project_useful_interface_interface_info (void) 1158s # { 1158s # return (GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct; 1158s # } 1158s # 1158s # /** 1158s # * org_project_useful_interface_override_properties: 1158s # * @klass: The class structure for a #GObject derived class. 1158s # * @property_id_begin: The property id to assign to the first overridden property. 1158s # * 1158s # * Overrides all #GObject properties in the #OrgProjectUsefulInterface interface for a concrete class. 1158s # * The properties are overridden in the order they are defined. 1158s # * 1158s # * Returns: The last property id. 1158s # */ 1158s # guint 1158s # org_project_useful_interface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 1158s # { 1158s # return property_id_begin - 1; 1158s # } 1158s # 1158s # 1158s # inline static void 1158s # org_project_useful_interface_method_marshal_single_arg_method_d ( 1158s # GClosure *closure, 1158s # GValue *return_value, 1158s # unsigned int n_param_values, 1158s # const GValue *param_values, 1158s # void *invocation_hint, 1158s # void *marshal_data) 1158s # { 1158s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT_DOUBLE (closure, 1158s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1158s # } 1158s # 1158s # 1158s # /** 1158s # * OrgProjectUsefulInterface: 1158s # * 1158s # * Abstract interface type for the D-Bus interface org.project.UsefulInterface. 1158s # */ 1158s # 1158s # /** 1158s # * OrgProjectUsefulInterfaceIface: 1158s # * @parent_iface: The parent interface. 1158s # * @handle_single_arg_method_d: Handler for the #OrgProjectUsefulInterface::handle-single-arg-method-d signal. 1158s # * 1158s # * Virtual table for the D-Bus interface org.project.UsefulInterface. 1158s # */ 1158s # 1158s # typedef OrgProjectUsefulInterfaceIface OrgProjectUsefulInterfaceInterface; 1158s # G_DEFINE_INTERFACE (OrgProjectUsefulInterface, org_project_useful_interface, G_TYPE_OBJECT) 1158s # 1158s # static void 1158s # org_project_useful_interface_default_init (OrgProjectUsefulInterfaceIface *iface) 1158s # { 1158s # /* GObject signals for incoming D-Bus method calls: */ 1158s # /** 1158s # * OrgProjectUsefulInterface::handle-single-arg-method-d: 1158s # * @object: A #OrgProjectUsefulInterface. 1158s # * @invocation: A #GDBusMethodInvocation. 1158s # * @arg_arg_d: Argument passed by remote caller. 1158s # * 1158s # * Signal emitted when a remote caller is invoking the SingleArgMethodD() D-Bus method. 1158s # * 1158s # * 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. 1158s # * 1158s # * 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. 1158s # */ 1158s # g_signal_new ("handle-single-arg-method-d", 1158s # G_TYPE_FROM_INTERFACE (iface), 1158s # G_SIGNAL_RUN_LAST, 1158s # G_STRUCT_OFFSET (OrgProjectUsefulInterfaceIface, handle_single_arg_method_d), 1158s # g_signal_accumulator_true_handled, 1158s # NULL, 1158s # org_project_useful_interface_method_marshal_single_arg_method_d, 1158s # G_TYPE_BOOLEAN, 1158s # 2, 1158s # G_TYPE_DBUS_METHOD_INVOCATION, G_TYPE_DOUBLE); 1158s # 1158s # } 1158s # 1158s # /** 1158s # * org_project_useful_interface_call_single_arg_method_d: 1158s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1158s # * @arg_arg_d: Argument to pass with the method invocation. 1158s # * @cancellable: (nullable): A #GCancellable or %NULL. 1158s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL. 1158s # * @user_data: User data to pass to @callback. 1158s # * 1158s # * Asynchronously invokes the SingleArgMethodD() D-Bus method on @proxy. 1158s # * 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()). 1158s # * You can then call org_project_useful_interface_call_single_arg_method_d_finish() to get the result of the operation. 1158s # * 1158s # * See org_project_useful_interface_call_single_arg_method_d_sync() for the synchronous, blocking version of this method. 1158s # */ 1158s # void 1158s # org_project_useful_interface_call_single_arg_method_d ( 1158s # OrgProjectUsefulInterface *proxy, 1158s # gdouble arg_arg_d, 1158s # GCancellable *cancellable, 1158s # GAsyncReadyCallback callback, 1158s # gpointer user_data) 1158s # { 1158s # g_dbus_proxy_call (G_DBUS_PROXY (proxy), 1158s # "SingleArgMethodD", 1158s # g_variant_new ("(d)", 1158s # arg_arg_d), 1158s # G_DBUS_CALL_FLAGS_NONE, 1158s # -1, 1158s # cancellable, 1158s # callback, 1158s # user_data); 1158s # } 1158s # 1158s # /** 1158s # * org_project_useful_interface_call_single_arg_method_d_finish: 1158s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1158s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_call_single_arg_method_d(). 1158s # * @error: Return location for error or %NULL. 1158s # * 1158s # * Finishes an operation started with org_project_useful_interface_call_single_arg_method_d(). 1158s # * 1158s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1158s # */ 1158s # gboolean 1158s # org_project_useful_interface_call_single_arg_method_d_finish ( 1158s # OrgProjectUsefulInterface *proxy, 1158s # GAsyncResult *res, 1158s # GError **error) 1158s # { 1158s # GVariant *_ret; 1158s # _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error); 1158s # if (_ret == NULL) 1158s # goto _out; 1158s # g_variant_get (_ret, 1158s # "()"); 1158s # g_variant_unref (_ret); 1158s # _out: 1158s # return _ret != NULL; 1158s # } 1158s # 1158s # /** 1158s # * org_project_useful_interface_call_single_arg_method_d_sync: 1158s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1158s # * @arg_arg_d: Argument to pass with the method invocation. 1158s # * @cancellable: (nullable): A #GCancellable or %NULL. 1158s # * @error: Return location for error or %NULL. 1158s # * 1158s # * Synchronously invokes the SingleArgMethodD() D-Bus method on @proxy. The calling thread is blocked until a reply is received. 1158s # * 1158s # * See org_project_useful_interface_call_single_arg_method_d() for the asynchronous version of this method. 1158s # * 1158s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1158s # */ 1158s # gboolean 1158s # org_project_useful_interface_call_single_arg_method_d_sync ( 1158s # OrgProjectUsefulInterface *proxy, 1158s # gdouble arg_arg_d, 1158s # GCancellable *cancellable, 1158s # GError **error) 1158s # { 1158s # GVariant *_ret; 1158s # _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy), 1158s # "SingleArgMethodD", 1158s # g_variant_new ("(d)", 1158s # arg_arg_d), 1158s # G_DBUS_CALL_FLAGS_NONE, 1158s # -1, 1158s # cancellable, 1158s # error); 1158s # if (_ret == NULL) 1158s # goto _out; 1158s # g_variant_get (_ret, 1158s # "()"); 1158s # g_variant_unref (_ret); 1158s # _out: 1158s # return _ret != NULL; 1158s # } 1158s # 1158s # /** 1158s # * org_project_useful_interface_complete_single_arg_method_d: 1158s # * @object: A #OrgProjectUsefulInterface. 1158s # * @invocation: (transfer full): A #GDBusMethodInvocation. 1158s # * 1158s # * 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. 1158s # * 1158s # * This method will free @invocation, you cannot use it afterwards. 1158s # */ 1158s # void 1158s # org_project_useful_interface_complete_single_arg_method_d ( 1158s # OrgProjectUsefulInterface *object G_GNUC_UNUSED, 1158s # GDBusMethodInvocation *invocation) 1158s # { 1158s # g_dbus_method_invocation_return_value (invocation, 1158s # g_variant_new ("()")); 1158s # } 1158s # 1158s # /* ------------------------------------------------------------------------ */ 1158s # 1158s # /** 1158s # * OrgProjectUsefulInterfaceProxy: 1158s # * 1158s # * The #OrgProjectUsefulInterfaceProxy structure contains only private data and should only be accessed using the provided API. 1158s # */ 1158s # 1158s # /** 1158s # * OrgProjectUsefulInterfaceProxyClass: 1158s # * @parent_class: The parent class. 1158s # * 1158s # * Class structure for #OrgProjectUsefulInterfaceProxy. 1158s # */ 1158s # 1158s # struct _OrgProjectUsefulInterfaceProxyPrivate 1158s # { 1158s # GData *qdata; 1158s # }; 1158s # 1158s # static void org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface); 1158s # 1158s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1158s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 1158s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceProxy) 1158s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 1158s # 1158s # #else 1158s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 1158s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 1158s # 1158s # #endif 1158s # static void 1158s # org_project_useful_interface_proxy_finalize (GObject *object) 1158s # { 1158s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (object); 1158s # g_datalist_clear (&proxy->priv->qdata); 1158s # G_OBJECT_CLASS (org_project_useful_interface_proxy_parent_class)->finalize (object); 1158s # } 1158s # 1158s # static void 1158s # org_project_useful_interface_proxy_get_property (GObject *object G_GNUC_UNUSED, 1158s # guint prop_id G_GNUC_UNUSED, 1158s # GValue *value G_GNUC_UNUSED, 1158s # GParamSpec *pspec G_GNUC_UNUSED) 1158s # { 1158s # } 1158s # 1158s # static void 1158s # org_project_useful_interface_proxy_set_property (GObject *object G_GNUC_UNUSED, 1158s # guint prop_id G_GNUC_UNUSED, 1158s # const GValue *value G_GNUC_UNUSED, 1158s # GParamSpec *pspec G_GNUC_UNUSED) 1158s # { 1158s # } 1158s # 1158s # static void 1158s # org_project_useful_interface_proxy_g_signal (GDBusProxy *proxy, 1158s # const gchar *sender_name G_GNUC_UNUSED, 1158s # const gchar *signal_name, 1158s # GVariant *parameters) 1158s # { 1158s # _ExtendedGDBusSignalInfo *info; 1158s # GVariantIter iter; 1158s # GVariant *child; 1158s # GValue *paramv; 1158s # gsize num_params; 1158s # gsize n; 1158s # guint signal_id; 1158s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, signal_name); 1158s # if (info == NULL) 1158s # return; 1158s # num_params = g_variant_n_children (parameters); 1158s # paramv = g_new0 (GValue, num_params + 1); 1158s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1158s # g_value_set_object (¶mv[0], proxy); 1158s # g_variant_iter_init (&iter, parameters); 1158s # n = 1; 1158s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1158s # { 1158s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 1158s # if (arg_info->use_gvariant) 1158s # { 1158s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1158s # g_value_set_variant (¶mv[n], child); 1158s # n++; 1158s # } 1158s # else 1158s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1158s # g_variant_unref (child); 1158s # } 1158s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1158s # g_signal_emitv (paramv, signal_id, 0, NULL); 1158s # for (n = 0; n < num_params + 1; n++) 1158s # g_value_unset (¶mv[n]); 1158s # g_free (paramv); 1158s # } 1158s # 1158s # static void 1158s # org_project_useful_interface_proxy_g_properties_changed (GDBusProxy *_proxy, 1158s # GVariant *changed_properties, 1158s # const gchar *const *invalidated_properties) 1158s # { 1158s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (_proxy); 1158s # guint n; 1158s # const gchar *key; 1158s # GVariantIter *iter; 1158s # _ExtendedGDBusPropertyInfo *info; 1158s # g_variant_get (changed_properties, "a{sv}", &iter); 1158s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 1158s # { 1158s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, key); 1158s # g_datalist_remove_data (&proxy->priv->qdata, key); 1158s # if (info != NULL) 1158s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1158s # } 1158s # g_variant_iter_free (iter); 1158s # for (n = 0; invalidated_properties[n] != NULL; n++) 1158s # { 1158s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, invalidated_properties[n]); 1158s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 1158s # if (info != NULL) 1158s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1158s # } 1158s # } 1158s # 1158s # static void 1158s # org_project_useful_interface_proxy_init (OrgProjectUsefulInterfaceProxy *proxy) 1158s # { 1158s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1158s # proxy->priv = org_project_useful_interface_proxy_get_instance_private (proxy); 1158s # #else 1158s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY, OrgProjectUsefulInterfaceProxyPrivate); 1158s # #endif 1158s # 1158s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_useful_interface_interface_info ()); 1158s # } 1158s # 1158s # static void 1158s # org_project_useful_interface_proxy_class_init (OrgProjectUsefulInterfaceProxyClass *klass) 1158s # { 1158s # GObjectClass *gobject_class; 1158s # GDBusProxyClass *proxy_class; 1158s # 1158s # gobject_class = G_OBJECT_CLASS (klass); 1158s # gobject_class->finalize = org_project_useful_interface_proxy_finalize; 1158s # gobject_class->get_property = org_project_useful_interface_proxy_get_property; 1158s # gobject_class->set_property = org_project_useful_interface_proxy_set_property; 1158s # 1158s # proxy_class = G_DBUS_PROXY_CLASS (klass); 1158s # proxy_class->g_signal = org_project_useful_interface_proxy_g_signal; 1158s # proxy_class->g_properties_changed = org_project_useful_interface_proxy_g_properties_changed; 1158s # 1158s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1158s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceProxyPrivate)); 1158s # #endif 1158s # } 1158s # 1158s # static void 1158s # org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 1158s # { 1158s # } 1158s # 1158s # /** 1158s # * org_project_useful_interface_proxy_new: 1158s # * @connection: A #GDBusConnection. 1158s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1158s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1158s # * @object_path: An object path. 1158s # * @cancellable: (nullable): A #GCancellable or %NULL. 1158s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1158s # * @user_data: User data to pass to @callback. 1158s # * 1158s # * Asynchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new() for more details. 1158s # * 1158s # * 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()). 1158s # * You can then call org_project_useful_interface_proxy_new_finish() to get the result of the operation. 1158s # * 1158s # * See org_project_useful_interface_proxy_new_sync() for the synchronous, blocking version of this constructor. 1158s # */ 1158s # void 1158s # org_project_useful_interface_proxy_new ( 1158s # GDBusConnection *connection, 1158s # GDBusProxyFlags flags, 1158s # const gchar *name, 1158s # const gchar *object_path, 1158s # GCancellable *cancellable, 1158s # GAsyncReadyCallback callback, 1158s # gpointer user_data) 1158s # { 1158s # 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); 1158s # } 1158s # 1158s # /** 1158s # * org_project_useful_interface_proxy_new_finish: 1158s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new(). 1158s # * @error: Return location for error or %NULL 1158s # * 1158s # * Finishes an operation started with org_project_useful_interface_proxy_new(). 1158s # * 1158s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1158s # */ 1158s # OrgProjectUsefulInterface * 1158s # org_project_useful_interface_proxy_new_finish ( 1158s # GAsyncResult *res, 1158s # GError **error) 1158s # { 1158s # GObject *ret; 1158s # GObject *source_object; 1158s # source_object = g_async_result_get_source_object (res); 1158s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1158s # g_object_unref (source_object); 1158s # if (ret != NULL) 1158s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1158s # else 1158s # return NULL; 1158s # } 1158s # 1158s # /** 1158s # * org_project_useful_interface_proxy_new_sync: 1158s # * @connection: A #GDBusConnection. 1158s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1158s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1158s # * @object_path: An object path. 1158s # * @cancellable: (nullable): A #GCancellable or %NULL. 1158s # * @error: Return location for error or %NULL 1158s # * 1158s # * Synchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new_sync() for more details. 1158s # * 1158s # * The calling thread is blocked until a reply is received. 1158s # * 1158s # * See org_project_useful_interface_proxy_new() for the asynchronous version of this constructor. 1158s # * 1158s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1158s # */ 1158s # OrgProjectUsefulInterface * 1158s # org_project_useful_interface_proxy_new_sync ( 1158s # GDBusConnection *connection, 1158s # GDBusProxyFlags flags, 1158s # const gchar *name, 1158s # const gchar *object_path, 1158s # GCancellable *cancellable, 1158s # GError **error) 1158s # { 1158s # GInitable *ret; 1158s # 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); 1158s # if (ret != NULL) 1158s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1158s # else 1158s # return NULL; 1158s # } 1158s # 1158s # 1158s # /** 1158s # * org_project_useful_interface_proxy_new_for_bus: 1158s # * @bus_type: A #GBusType. 1158s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1158s # * @name: A bus name (well-known or unique). 1158s # * @object_path: An object path. 1158s # * @cancellable: (nullable): A #GCancellable or %NULL. 1158s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1158s # * @user_data: User data to pass to @callback. 1158s # * 1158s # * Like org_project_useful_interface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 1158s # * 1158s # * 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()). 1158s # * You can then call org_project_useful_interface_proxy_new_for_bus_finish() to get the result of the operation. 1158s # * 1158s # * See org_project_useful_interface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 1158s # */ 1158s # void 1158s # org_project_useful_interface_proxy_new_for_bus ( 1158s # GBusType bus_type, 1158s # GDBusProxyFlags flags, 1158s # const gchar *name, 1158s # const gchar *object_path, 1158s # GCancellable *cancellable, 1158s # GAsyncReadyCallback callback, 1158s # gpointer user_data) 1158s # { 1158s # 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); 1158s # } 1158s # 1158s # /** 1158s # * org_project_useful_interface_proxy_new_for_bus_finish: 1158s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new_for_bus(). 1158s # * @error: Return location for error or %NULL 1158s # * 1158s # * Finishes an operation started with org_project_useful_interface_proxy_new_for_bus(). 1158s # * 1158s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1158s # */ 1158s # OrgProjectUsefulInterface * 1158s # org_project_useful_interface_proxy_new_for_bus_finish ( 1158s # GAsyncResult *res, 1158s # GError **error) 1158s # { 1158s # GObject *ret; 1158s # GObject *source_object; 1158s # source_object = g_async_result_get_source_object (res); 1158s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1158s # g_object_unref (source_object); 1158s # if (ret != NULL) 1158s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1158s # else 1158s # return NULL; 1158s # } 1158s # 1158s # /** 1158s # * org_project_useful_interface_proxy_new_for_bus_sync: 1158s # * @bus_type: A #GBusType. 1158s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1158s # * @name: A bus name (well-known or unique). 1158s # * @object_path: An object path. 1158s # * @cancellable: (nullable): A #GCancellable or %NULL. 1158s # * @error: Return location for error or %NULL 1158s # * 1158s # * Like org_project_useful_interface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 1158s # * 1158s # * The calling thread is blocked until a reply is received. 1158s # * 1158s # * See org_project_useful_interface_proxy_new_for_bus() for the asynchronous version of this constructor. 1158s # * 1158s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1158s # */ 1158s # OrgProjectUsefulInterface * 1158s # org_project_useful_interface_proxy_new_for_bus_sync ( 1158s # GBusType bus_type, 1158s # GDBusProxyFlags flags, 1158s # const gchar *name, 1158s # const gchar *object_path, 1158s # GCancellable *cancellable, 1158s # GError **error) 1158s # { 1158s # GInitable *ret; 1158s # 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); 1158s # if (ret != NULL) 1158s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1158s # else 1158s # return NULL; 1158s # } 1158s # 1158s # 1158s # /* ------------------------------------------------------------------------ */ 1158s # 1158s # /** 1158s # * OrgProjectUsefulInterfaceSkeleton: 1158s # * 1158s # * The #OrgProjectUsefulInterfaceSkeleton structure contains only private data and should only be accessed using the provided API. 1158s # */ 1158s # 1158s # /** 1158s # * OrgProjectUsefulInterfaceSkeletonClass: 1158s # * @parent_class: The parent class. 1158s # * 1158s # * Class structure for #OrgProjectUsefulInterfaceSkeleton. 1158s # */ 1158s # 1158s # struct _OrgProjectUsefulInterfaceSkeletonPrivate 1158s # { 1158s # GValue *properties; 1158s # GList *changed_properties; 1158s # GSource *changed_properties_idle_source; 1158s # GMainContext *context; 1158s # GMutex lock; 1158s # }; 1158s # 1158s # static void 1158s # _org_project_useful_interface_skeleton_handle_method_call ( 1158s # GDBusConnection *connection G_GNUC_UNUSED, 1158s # const gchar *sender G_GNUC_UNUSED, 1158s # const gchar *object_path G_GNUC_UNUSED, 1158s # const gchar *interface_name, 1158s # const gchar *method_name, 1158s # GVariant *parameters, 1158s # GDBusMethodInvocation *invocation, 1158s # gpointer user_data) 1158s # { 1158s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1158s # _ExtendedGDBusMethodInfo *info; 1158s # GVariantIter iter; 1158s # GVariant *child; 1158s # GValue *paramv; 1158s # gsize num_params; 1158s # guint num_extra; 1158s # gsize n; 1158s # guint signal_id; 1158s # GValue return_value = G_VALUE_INIT; 1158s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 1158s # g_assert (info != NULL); 1158s # num_params = g_variant_n_children (parameters); 1158s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 1158s # n = 0; 1158s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1158s # g_value_set_object (¶mv[n++], skeleton); 1158s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 1158s # g_value_set_object (¶mv[n++], invocation); 1158s # if (info->pass_fdlist) 1158s # { 1158s # #ifdef G_OS_UNIX 1158s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 1158s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 1158s # #else 1158s # g_assert_not_reached (); 1158s # #endif 1158s # } 1158s # g_variant_iter_init (&iter, parameters); 1158s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1158s # { 1158s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 1158s # if (arg_info->use_gvariant) 1158s # { 1158s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1158s # g_value_set_variant (¶mv[n], child); 1158s # n++; 1158s # } 1158s # else 1158s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1158s # g_variant_unref (child); 1158s # } 1158s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1158s # g_value_init (&return_value, G_TYPE_BOOLEAN); 1158s # g_signal_emitv (paramv, signal_id, 0, &return_value); 1158s # if (!g_value_get_boolean (&return_value)) 1158s # 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); 1158s # g_value_unset (&return_value); 1158s # for (n = 0; n < num_params + num_extra; n++) 1158s # g_value_unset (¶mv[n]); 1158s # g_free (paramv); 1158s # } 1158s # 1158s # static GVariant * 1158s # _org_project_useful_interface_skeleton_handle_get_property ( 1158s # GDBusConnection *connection G_GNUC_UNUSED, 1158s # const gchar *sender G_GNUC_UNUSED, 1158s # const gchar *object_path G_GNUC_UNUSED, 1158s # const gchar *interface_name G_GNUC_UNUSED, 1158s # const gchar *property_name, 1158s # GError **error, 1158s # gpointer user_data) 1158s # { 1158s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1158s # GValue value = G_VALUE_INIT; 1158s # GParamSpec *pspec; 1158s # _ExtendedGDBusPropertyInfo *info; 1158s # GVariant *ret; 1158s # ret = NULL; 1158s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 1158s # g_assert (info != NULL); 1158s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1158s # if (pspec == NULL) 1158s # { 1158s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1158s # } 1158s # else 1158s # { 1158s # g_value_init (&value, pspec->value_type); 1158s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1158s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 1158s # g_value_unset (&value); 1158s # } 1158s # return ret; 1158s # } 1158s # 1158s # static gboolean 1158s # _org_project_useful_interface_skeleton_handle_set_property ( 1158s # GDBusConnection *connection G_GNUC_UNUSED, 1158s # const gchar *sender G_GNUC_UNUSED, 1158s # const gchar *object_path G_GNUC_UNUSED, 1158s # const gchar *interface_name G_GNUC_UNUSED, 1158s # const gchar *property_name, 1158s # GVariant *variant, 1158s # GError **error, 1158s # gpointer user_data) 1158s # { 1158s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1158s # GValue value = G_VALUE_INIT; 1158s # GParamSpec *pspec; 1158s # _ExtendedGDBusPropertyInfo *info; 1158s # gboolean ret; 1158s # ret = FALSE; 1158s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 1158s # g_assert (info != NULL); 1158s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1158s # if (pspec == NULL) 1158s # { 1158s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1158s # } 1158s # else 1158s # { 1158s # if (info->use_gvariant) 1158s # g_value_set_variant (&value, variant); 1158s # else 1158s # g_dbus_gvariant_to_gvalue (variant, &value); 1158s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1158s # g_value_unset (&value); 1158s # ret = TRUE; 1158s # } 1158s # return ret; 1158s # } 1158s # 1158s # static const GDBusInterfaceVTable _org_project_useful_interface_skeleton_vtable = 1158s # { 1158s # _org_project_useful_interface_skeleton_handle_method_call, 1158s # _org_project_useful_interface_skeleton_handle_get_property, 1158s # _org_project_useful_interface_skeleton_handle_set_property, 1158s # {NULL} 1158s # }; 1158s # 1158s # static GDBusInterfaceInfo * 1158s # org_project_useful_interface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1158s # { 1158s # return org_project_useful_interface_interface_info (); 1158s # } 1158s # 1158s # static GDBusInterfaceVTable * 1158s # org_project_useful_interface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1158s # { 1158s # return (GDBusInterfaceVTable *) &_org_project_useful_interface_skeleton_vtable; 1158s # } 1158s # 1158s # static GVariant * 1158s # org_project_useful_interface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 1158s # { 1158s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (_skeleton); 1158s # 1158s # GVariantBuilder builder; 1158s # guint n; 1158s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 1158s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 1158s # #else 1158s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 1158s # #endif 1158s # if (_org_project_useful_interface_interface_info.parent_struct.properties == NULL) 1158s # goto out; 1158s # for (n = 0; _org_project_useful_interface_interface_info.parent_struct.properties[n] != NULL; n++) 1158s # { 1158s # GDBusPropertyInfo *info = _org_project_useful_interface_interface_info.parent_struct.properties[n]; 1158s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 1158s # { 1158s # GVariant *value; 1158s # 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); 1158s # if (value != NULL) 1158s # { 1158s # g_variant_take_ref (value); 1158s # g_variant_builder_add (&builder, "{sv}", info->name, value); 1158s # g_variant_unref (value); 1158s # } 1158s # } 1158s # } 1158s # out: 1158s # return g_variant_builder_end (&builder); 1158s # } 1158s # 1158s # static void 1158s # org_project_useful_interface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 1158s # { 1158s # } 1158s # 1158s # static void org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface); 1158s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1158s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1158s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceSkeleton) 1158s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 1158s # 1158s # #else 1158s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1158s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 1158s # 1158s # #endif 1158s # static void 1158s # org_project_useful_interface_skeleton_finalize (GObject *object) 1158s # { 1158s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (object); 1158s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 1158s # if (skeleton->priv->changed_properties_idle_source != NULL) 1158s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 1158s # g_main_context_unref (skeleton->priv->context); 1158s # g_mutex_clear (&skeleton->priv->lock); 1158s # G_OBJECT_CLASS (org_project_useful_interface_skeleton_parent_class)->finalize (object); 1158s # } 1158s # 1158s # static void 1158s # org_project_useful_interface_skeleton_init (OrgProjectUsefulInterfaceSkeleton *skeleton) 1158s # { 1158s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1158s # skeleton->priv = org_project_useful_interface_skeleton_get_instance_private (skeleton); 1158s # #else 1158s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, OrgProjectUsefulInterfaceSkeletonPrivate); 1158s # #endif 1158s # 1158s # g_mutex_init (&skeleton->priv->lock); 1158s # skeleton->priv->context = g_main_context_ref_thread_default (); 1158s # } 1158s # 1158s # static void 1158s # org_project_useful_interface_skeleton_class_init (OrgProjectUsefulInterfaceSkeletonClass *klass) 1158s # { 1158s # GObjectClass *gobject_class; 1158s # GDBusInterfaceSkeletonClass *skeleton_class; 1158s # 1158s # gobject_class = G_OBJECT_CLASS (klass); 1158s # gobject_class->finalize = org_project_useful_interface_skeleton_finalize; 1158s # 1158s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 1158s # skeleton_class->get_info = org_project_useful_interface_skeleton_dbus_interface_get_info; 1158s # skeleton_class->get_properties = org_project_useful_interface_skeleton_dbus_interface_get_properties; 1158s # skeleton_class->flush = org_project_useful_interface_skeleton_dbus_interface_flush; 1158s # skeleton_class->get_vtable = org_project_useful_interface_skeleton_dbus_interface_get_vtable; 1158s # 1158s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1158s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceSkeletonPrivate)); 1158s # #endif 1158s # } 1158s # 1158s # static void 1158s # org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 1158s # { 1158s # } 1158s # 1158s # /** 1158s # * org_project_useful_interface_skeleton_new: 1158s # * 1158s # * Creates a skeleton object for the D-Bus interface org.project.UsefulInterface. 1158s # * 1158s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceSkeleton): The skeleton object. 1158s # */ 1158s # OrgProjectUsefulInterface * 1158s # org_project_useful_interface_skeleton_new (void) 1158s # { 1158s # return ORG_PROJECT_USEFUL_INTERFACE (g_object_new (TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, NULL)); 1158s # } 1158s # Error: 1158s # 1158s # /tmp/tmpv_fj8nn0/tmp41x8r5hk.xml: 1158s # 1158s # 1158s # 1158s # 1158s # 1158s # 1158s # 1158s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpv_fj8nn0/tmp41x8r5hk.xml', '--output', '-', '--body'] 1158s # Return code: 0 1158s # Output: 1158s # /* 1158s # * This file is generated by gdbus-codegen, do not modify it. 1158s # * 1158s # * The license of this code is the same as for the D-Bus interface description 1158s # * it was derived from. Note that it links to GLib, so must comply with the 1158s # * LGPL linking clauses. 1158s # */ 1158s # 1158s # #ifdef HAVE_CONFIG_H 1158s # # include "config.h" 1158s # #endif 1158s # 1158s # #include 1158s # #ifdef G_OS_UNIX 1158s # # include 1158s # #endif 1158s # 1158s # #ifdef G_ENABLE_DEBUG 1158s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 1158s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 1158s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 1158s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 1158s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 1158s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 1158s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 1158s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 1158s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 1158s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 1158s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 1158s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 1158s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 1158s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 1158s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 1158s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 1158s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 1158s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 1158s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 1158s # #else /* !G_ENABLE_DEBUG */ 1158s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 1158s # * Do not access GValues directly in your code. Instead, use the 1158s # * g_value_get_*() functions 1158s # */ 1158s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 1158s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 1158s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 1158s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 1158s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 1158s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 1158s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 1158s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 1158s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 1158s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 1158s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 1158s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 1158s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 1158s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 1158s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 1158s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 1158s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 1158s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 1158s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 1158s # #endif /* !G_ENABLE_DEBUG */ 1158s # 1158s # typedef struct 1158s # { 1158s # GDBusArgInfo parent_struct; 1158s # gboolean use_gvariant; 1158s # } _ExtendedGDBusArgInfo; 1158s # 1158s # typedef struct 1158s # { 1158s # GDBusMethodInfo parent_struct; 1158s # const gchar *signal_name; 1158s # gboolean pass_fdlist; 1158s # } _ExtendedGDBusMethodInfo; 1158s # 1158s # typedef struct 1158s # { 1158s # GDBusSignalInfo parent_struct; 1158s # const gchar *signal_name; 1158s # } _ExtendedGDBusSignalInfo; 1158s # 1158s # typedef struct 1158s # { 1158s # GDBusPropertyInfo parent_struct; 1158s # const gchar *hyphen_name; 1158s # guint use_gvariant : 1; 1158s # guint emits_changed_signal : 1; 1158s # } _ExtendedGDBusPropertyInfo; 1158s # 1158s # typedef struct 1158s # { 1158s # GDBusInterfaceInfo parent_struct; 1158s # const gchar *hyphen_name; 1158s # } _ExtendedGDBusInterfaceInfo; 1158s # 1158s # typedef struct 1158s # { 1158s # const _ExtendedGDBusPropertyInfo *info; 1158s # guint prop_id; 1158s # GValue orig_value; /* the value before the change */ 1158s # } ChangedProperty; 1158s # 1158s # static void 1158s # _changed_property_free (ChangedProperty *data) 1158s # { 1158s # g_value_unset (&data->orig_value); 1158s # g_free (data); 1158s # } 1158s # 1158s # static gboolean 1158s # _g_strv_equal0 (gchar **a, gchar **b) 1158s # { 1158s # gboolean ret = FALSE; 1158s # guint n; 1158s # if (a == NULL && b == NULL) 1158s # { 1158s # ret = TRUE; 1158s # goto out; 1158s # } 1158s # if (a == NULL || b == NULL) 1158s # goto out; 1158s # if (g_strv_length (a) != g_strv_length (b)) 1158s # goto out; 1158s # for (n = 0; a[n] != NULL; n++) 1158s # if (g_strcmp0 (a[n], b[n]) != 0) 1158s # goto out; 1158s # ret = TRUE; 1158s # out: 1158s # return ret; 1158s # } 1158s # 1158s # static gboolean 1158s # _g_variant_equal0 (GVariant *a, GVariant *b) 1158s # { 1158s # gboolean ret = FALSE; 1158s # if (a == NULL && b == NULL) 1158s # { 1158s # ret = TRUE; 1158s # goto out; 1158s # } 1158s # if (a == NULL || b == NULL) 1158s # goto out; 1158s # ret = g_variant_equal (a, b); 1158s # out: 1158s # return ret; 1158s # } 1158s # 1158s # G_GNUC_UNUSED static gboolean 1158s # _g_value_equal (const GValue *a, const GValue *b) 1158s # { 1158s # gboolean ret = FALSE; 1158s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 1158s # switch (G_VALUE_TYPE (a)) 1158s # { 1158s # case G_TYPE_BOOLEAN: 1158s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 1158s # break; 1158s # case G_TYPE_UCHAR: 1158s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 1158s # break; 1158s # case G_TYPE_INT: 1158s # ret = (g_value_get_int (a) == g_value_get_int (b)); 1158s # break; 1158s # case G_TYPE_UINT: 1158s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 1158s # break; 1158s # case G_TYPE_INT64: 1158s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 1158s # break; 1158s # case G_TYPE_UINT64: 1158s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 1158s # break; 1158s # case G_TYPE_DOUBLE: 1158s # { 1158s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 1158s # gdouble da = g_value_get_double (a); 1158s # gdouble db = g_value_get_double (b); 1158s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 1158s # } 1158s # break; 1158s # case G_TYPE_STRING: 1158s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 1158s # break; 1158s # case G_TYPE_VARIANT: 1158s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 1158s # break; 1158s # default: 1158s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 1158s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 1158s # else 1158s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 1158s # break; 1158s # } 1158s # return ret; 1158s # } 1158s # 1158s # static void 1158s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT_STRING ( 1158s # GClosure *closure, 1158s # GValue *return_value, 1158s # unsigned int n_param_values, 1158s # const GValue *param_values, 1158s # void *invocation_hint G_GNUC_UNUSED, 1158s # void *marshal_data) 1158s # { 1158s # typedef gboolean (*_GDbusCodegenMarshalBoolean_ObjectStringFunc) 1158s # (void *data1, 1158s # GDBusMethodInvocation *arg_method_invocation, 1158s # const gchar *arg_arg_s, 1158s # void *data2); 1158s # _GDbusCodegenMarshalBoolean_ObjectStringFunc callback; 1158s # GCClosure *cc = (GCClosure*) closure; 1158s # void *data1, *data2; 1158s # gboolean v_return; 1158s # 1158s # g_return_if_fail (return_value != NULL); 1158s # g_return_if_fail (n_param_values == 3); 1158s # 1158s # if (G_CCLOSURE_SWAP_DATA (closure)) 1158s # { 1158s # data1 = closure->data; 1158s # data2 = g_value_peek_pointer (param_values + 0); 1158s # } 1158s # else 1158s # { 1158s # data1 = g_value_peek_pointer (param_values + 0); 1158s # data2 = closure->data; 1158s # } 1158s # 1158s # callback = (_GDbusCodegenMarshalBoolean_ObjectStringFunc) 1158s # (marshal_data ? marshal_data : cc->callback); 1158s # 1158s # v_return = 1158s # callback (data1, 1158s # g_marshal_value_peek_object (param_values + 1), 1158s # g_marshal_value_peek_string (param_values + 2), 1158s # data2); 1158s # 1158s # g_value_set_boolean (return_value, v_return); 1158s # } 1158s # 1158s # /* ------------------------------------------------------------------------ 1158s # * Code for interface org.project.UsefulInterface 1158s # * ------------------------------------------------------------------------ 1158s # */ 1158s # 1158s # /** 1158s # * SECTION:OrgProjectUsefulInterface 1158s # * @title: OrgProjectUsefulInterface 1158s # * @short_description: Generated C code for the org.project.UsefulInterface D-Bus interface 1158s # * 1158s # * This section contains code for working with the org.project.UsefulInterface D-Bus interface in C. 1158s # */ 1158s # 1158s # /* ---- Introspection data for org.project.UsefulInterface ---- */ 1158s # 1158s # static const _ExtendedGDBusArgInfo _org_project_useful_interface_method_info_single_arg_method_s_IN_ARG_arg_s = 1158s # { 1158s # { 1158s # -1, 1158s # (gchar *) "arg_s", 1158s # (gchar *) "s", 1158s # NULL 1158s # }, 1158s # FALSE 1158s # }; 1158s # 1158s # static const GDBusArgInfo * const _org_project_useful_interface_method_info_single_arg_method_s_IN_ARG_pointers[] = 1158s # { 1158s # &_org_project_useful_interface_method_info_single_arg_method_s_IN_ARG_arg_s.parent_struct, 1158s # NULL 1158s # }; 1158s # 1158s # static const _ExtendedGDBusMethodInfo _org_project_useful_interface_method_info_single_arg_method_s = 1158s # { 1158s # { 1158s # -1, 1158s # (gchar *) "SingleArgMethodS", 1158s # (GDBusArgInfo **) &_org_project_useful_interface_method_info_single_arg_method_s_IN_ARG_pointers, 1158s # NULL, 1158s # NULL 1158s # }, 1158s # "handle-single-arg-method-s", 1158s # FALSE 1158s # }; 1158s # 1158s # static const GDBusMethodInfo * const _org_project_useful_interface_method_info_pointers[] = 1158s # { 1158s # &_org_project_useful_interface_method_info_single_arg_method_s.parent_struct, 1158s # NULL 1158s # }; 1158s # 1158s # static const _ExtendedGDBusInterfaceInfo _org_project_useful_interface_interface_info = 1158s # { 1158s # { 1158s # -1, 1158s # (gchar *) "org.project.UsefulInterface", 1158s # (GDBusMethodInfo **) &_org_project_useful_interface_method_info_pointers, 1158s # NULL, 1158s # NULL, 1158s # NULL 1158s # }, 1158s # "org-project-useful-interface", 1158s # }; 1158s # 1158s # 1158s # /** 1158s # * org_project_useful_interface_interface_info: 1158s # * 1158s # * Gets a machine-readable description of the org.project.UsefulInterface D-Bus interface. 1158s # * 1158s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 1158s # */ 1158s # GDBusInterfaceInfo * 1158s # org_project_useful_interface_interface_info (void) 1158s # { 1158s # return (GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct; 1158s # } 1158s # 1158s # /** 1158s # * org_project_useful_interface_override_properties: 1158s # * @klass: The class structure for a #GObject derived class. 1158s # * @property_id_begin: The property id to assign to the first overridden property. 1158s # * 1158s # * Overrides all #GObject properties in the #OrgProjectUsefulInterface interface for a concrete class. 1158s # * The properties are overridden in the order they are defined. 1158s # * 1158s # * Returns: The last property id. 1158s # */ 1158s # guint 1158s # org_project_useful_interface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 1158s # { 1158s # return property_id_begin - 1; 1158s # } 1158s # 1158s # 1158s # inline static void 1158s # org_project_useful_interface_method_marshal_single_arg_method_s ( 1158s # GClosure *closure, 1158s # GValue *return_value, 1158s # unsigned int n_param_values, 1158s # const GValue *param_values, 1158s # void *invocation_hint, 1158s # void *marshal_data) 1158s # { 1158s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT_STRING (closure, 1158s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1158s # } 1158s # 1158s # 1158s # /** 1158s # * OrgProjectUsefulInterface: 1158s # * 1158s # * Abstract interface type for the D-Bus interface org.project.UsefulInterface. 1158s # */ 1158s # 1158s # /** 1158s # * OrgProjectUsefulInterfaceIface: 1158s # * @parent_iface: The parent interface. 1158s # * @handle_single_arg_method_s: Handler for the #OrgProjectUsefulInterface::handle-single-arg-method-s signal. 1158s # * 1158s # * Virtual table for the D-Bus interface org.project.UsefulInterface. 1158s # */ 1158s # 1158s # typedef OrgProjectUsefulInterfaceIface OrgProjectUsefulInterfaceInterface; 1158s # G_DEFINE_INTERFACE (OrgProjectUsefulInterface, org_project_useful_interface, G_TYPE_OBJECT) 1158s # 1158s # static void 1158s # org_project_useful_interface_default_init (OrgProjectUsefulInterfaceIface *iface) 1158s # { 1158s # /* GObject signals for incoming D-Bus method calls: */ 1158s # /** 1158s # * OrgProjectUsefulInterface::handle-single-arg-method-s: 1158s # * @object: A #OrgProjectUsefulInterface. 1158s # * @invocation: A #GDBusMethodInvocation. 1158s # * @arg_arg_s: Argument passed by remote caller. 1158s # * 1158s # * Signal emitted when a remote caller is invoking the SingleArgMethodS() D-Bus method. 1158s # * 1158s # * 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. 1158s # * 1158s # * 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. 1158s # */ 1158s # g_signal_new ("handle-single-arg-method-s", 1158s # G_TYPE_FROM_INTERFACE (iface), 1158s # G_SIGNAL_RUN_LAST, 1158s # G_STRUCT_OFFSET (OrgProjectUsefulInterfaceIface, handle_single_arg_method_s), 1158s # g_signal_accumulator_true_handled, 1158s # NULL, 1158s # org_project_useful_interface_method_marshal_single_arg_method_s, 1158s # G_TYPE_BOOLEAN, 1158s # 2, 1158s # G_TYPE_DBUS_METHOD_INVOCATION, G_TYPE_STRING); 1158s # 1158s # } 1158s # 1158s # /** 1158s # * org_project_useful_interface_call_single_arg_method_s: 1158s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1158s # * @arg_arg_s: Argument to pass with the method invocation. 1158s # * @cancellable: (nullable): A #GCancellable or %NULL. 1158s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL. 1158s # * @user_data: User data to pass to @callback. 1158s # * 1158s # * Asynchronously invokes the SingleArgMethodS() D-Bus method on @proxy. 1158s # * 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()). 1158s # * You can then call org_project_useful_interface_call_single_arg_method_s_finish() to get the result of the operation. 1158s # * 1158s # * See org_project_useful_interface_call_single_arg_method_s_sync() for the synchronous, blocking version of this method. 1158s # */ 1158s # void 1158s # org_project_useful_interface_call_single_arg_method_s ( 1158s # OrgProjectUsefulInterface *proxy, 1158s # const gchar *arg_arg_s, 1158s # GCancellable *cancellable, 1158s # GAsyncReadyCallback callback, 1158s # gpointer user_data) 1158s # { 1158s # g_dbus_proxy_call (G_DBUS_PROXY (proxy), 1158s # "SingleArgMethodS", 1158s # g_variant_new ("(s)", 1158s # arg_arg_s), 1158s # G_DBUS_CALL_FLAGS_NONE, 1158s # -1, 1158s # cancellable, 1158s # callback, 1158s # user_data); 1158s # } 1158s # 1158s # /** 1158s # * org_project_useful_interface_call_single_arg_method_s_finish: 1158s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1158s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_call_single_arg_method_s(). 1158s # * @error: Return location for error or %NULL. 1158s # * 1158s # * Finishes an operation started with org_project_useful_interface_call_single_arg_method_s(). 1158s # * 1158s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1158s # */ 1158s # gboolean 1158s # org_project_useful_interface_call_single_arg_method_s_finish ( 1158s # OrgProjectUsefulInterface *proxy, 1158s # GAsyncResult *res, 1158s # GError **error) 1158s # { 1158s # GVariant *_ret; 1158s # _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error); 1158s # if (_ret == NULL) 1158s # goto _out; 1158s # g_variant_get (_ret, 1158s # "()"); 1158s # g_variant_unref (_ret); 1158s # _out: 1158s # return _ret != NULL; 1158s # } 1158s # 1158s # /** 1158s # * org_project_useful_interface_call_single_arg_method_s_sync: 1158s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1158s # * @arg_arg_s: Argument to pass with the method invocation. 1158s # * @cancellable: (nullable): A #GCancellable or %NULL. 1158s # * @error: Return location for error or %NULL. 1158s # * 1158s # * Synchronously invokes the SingleArgMethodS() D-Bus method on @proxy. The calling thread is blocked until a reply is received. 1158s # * 1158s # * See org_project_useful_interface_call_single_arg_method_s() for the asynchronous version of this method. 1158s # * 1158s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1158s # */ 1158s # gboolean 1158s # org_project_useful_interface_call_single_arg_method_s_sync ( 1158s # OrgProjectUsefulInterface *proxy, 1158s # const gchar *arg_arg_s, 1158s # GCancellable *cancellable, 1158s # GError **error) 1158s # { 1158s # GVariant *_ret; 1158s # _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy), 1158s # "SingleArgMethodS", 1158s # g_variant_new ("(s)", 1158s # arg_arg_s), 1158s # G_DBUS_CALL_FLAGS_NONE, 1158s # -1, 1158s # cancellable, 1158s # error); 1158s # if (_ret == NULL) 1158s # goto _out; 1158s # g_variant_get (_ret, 1158s # "()"); 1158s # g_variant_unref (_ret); 1158s # _out: 1158s # return _ret != NULL; 1158s # } 1158s # 1158s # /** 1158s # * org_project_useful_interface_complete_single_arg_method_s: 1158s # * @object: A #OrgProjectUsefulInterface. 1158s # * @invocation: (transfer full): A #GDBusMethodInvocation. 1158s # * 1158s # * 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. 1158s # * 1158s # * This method will free @invocation, you cannot use it afterwards. 1158s # */ 1158s # void 1158s # org_project_useful_interface_complete_single_arg_method_s ( 1158s # OrgProjectUsefulInterface *object G_GNUC_UNUSED, 1158s # GDBusMethodInvocation *invocation) 1158s # { 1158s # g_dbus_method_invocation_return_value (invocation, 1158s # g_variant_new ("()")); 1158s # } 1158s # 1158s # /* ------------------------------------------------------------------------ */ 1158s # 1158s # /** 1158s # * OrgProjectUsefulInterfaceProxy: 1158s # * 1158s # * The #OrgProjectUsefulInterfaceProxy structure contains only private data and should only be accessed using the provided API. 1158s # */ 1158s # 1158s # /** 1158s # * OrgProjectUsefulInterfaceProxyClass: 1158s # * @parent_class: The parent class. 1158s # * 1158s # * Class structure for #OrgProjectUsefulInterfaceProxy. 1158s # */ 1158s # 1158s # struct _OrgProjectUsefulInterfaceProxyPrivate 1158s # { 1158s # GData *qdata; 1158s # }; 1158s # 1158s # static void org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface); 1158s # 1158s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1158s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 1158s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceProxy) 1158s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 1158s # 1158s # #else 1158s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 1158s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 1158s # 1158s # #endif 1158s # static void 1158s # org_project_useful_interface_proxy_finalize (GObject *object) 1158s # { 1158s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (object); 1158s # g_datalist_clear (&proxy->priv->qdata); 1158s # G_OBJECT_CLASS (org_project_useful_interface_proxy_parent_class)->finalize (object); 1158s # } 1158s # 1158s # static void 1158s # org_project_useful_interface_proxy_get_property (GObject *object G_GNUC_UNUSED, 1158s # guint prop_id G_GNUC_UNUSED, 1158s # GValue *value G_GNUC_UNUSED, 1158s # GParamSpec *pspec G_GNUC_UNUSED) 1158s # { 1158s # } 1158s # 1158s # static void 1158s # org_project_useful_interface_proxy_set_property (GObject *object G_GNUC_UNUSED, 1158s # guint prop_id G_GNUC_UNUSED, 1158s # const GValue *value G_GNUC_UNUSED, 1158s # GParamSpec *pspec G_GNUC_UNUSED) 1158s # { 1158s # } 1158s # 1158s # static void 1158s # org_project_useful_interface_proxy_g_signal (GDBusProxy *proxy, 1158s # const gchar *sender_name G_GNUC_UNUSED, 1158s # const gchar *signal_name, 1158s # GVariant *parameters) 1158s # { 1158s # _ExtendedGDBusSignalInfo *info; 1158s # GVariantIter iter; 1158s # GVariant *child; 1158s # GValue *paramv; 1158s # gsize num_params; 1158s # gsize n; 1158s # guint signal_id; 1158s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, signal_name); 1158s # if (info == NULL) 1158s # return; 1158s # num_params = g_variant_n_children (parameters); 1158s # paramv = g_new0 (GValue, num_params + 1); 1158s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1158s # g_value_set_object (¶mv[0], proxy); 1158s # g_variant_iter_init (&iter, parameters); 1158s # n = 1; 1158s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1158s # { 1158s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 1158s # if (arg_info->use_gvariant) 1158s # { 1158s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1158s # g_value_set_variant (¶mv[n], child); 1158s # n++; 1158s # } 1158s # else 1158s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1158s # g_variant_unref (child); 1158s # } 1158s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1158s # g_signal_emitv (paramv, signal_id, 0, NULL); 1158s # for (n = 0; n < num_params + 1; n++) 1158s # g_value_unset (¶mv[n]); 1158s # g_free (paramv); 1158s # } 1158s # 1158s # static void 1158s # org_project_useful_interface_proxy_g_properties_changed (GDBusProxy *_proxy, 1158s # GVariant *changed_properties, 1158s # const gchar *const *invalidated_properties) 1158s # { 1158s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (_proxy); 1158s # guint n; 1158s # const gchar *key; 1158s # GVariantIter *iter; 1158s # _ExtendedGDBusPropertyInfo *info; 1158s # g_variant_get (changed_properties, "a{sv}", &iter); 1158s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 1158s # { 1158s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, key); 1158s # g_datalist_remove_data (&proxy->priv->qdata, key); 1158s # if (info != NULL) 1158s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1158s # } 1158s # g_variant_iter_free (iter); 1158s # for (n = 0; invalidated_properties[n] != NULL; n++) 1158s # { 1158s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, invalidated_properties[n]); 1158s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 1158s # if (info != NULL) 1158s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1158s # } 1158s # } 1158s # 1158s # static void 1158s # org_project_useful_interface_proxy_init (OrgProjectUsefulInterfaceProxy *proxy) 1158s # { 1158s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1158s # proxy->priv = org_project_useful_interface_proxy_get_instance_private (proxy); 1158s # #else 1158s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY, OrgProjectUsefulInterfaceProxyPrivate); 1158s # #endif 1158s # 1158s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_useful_interface_interface_info ()); 1158s # } 1158s # 1158s # static void 1158s # org_project_useful_interface_proxy_class_init (OrgProjectUsefulInterfaceProxyClass *klass) 1158s # { 1158s # GObjectClass *gobject_class; 1158s # GDBusProxyClass *proxy_class; 1158s # 1158s # gobject_class = G_OBJECT_CLASS (klass); 1158s # gobject_class->finalize = org_project_useful_interface_proxy_finalize; 1158s # gobject_class->get_property = org_project_useful_interface_proxy_get_property; 1158s # gobject_class->set_property = org_project_useful_interface_proxy_set_property; 1158s # 1158s # proxy_class = G_DBUS_PROXY_CLASS (klass); 1158s # proxy_class->g_signal = org_project_useful_interface_proxy_g_signal; 1158s # proxy_class->g_properties_changed = org_project_useful_interface_proxy_g_properties_changed; 1158s # 1158s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1158s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceProxyPrivate)); 1158s # #endif 1158s # } 1158s # 1158s # static void 1158s # org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 1158s # { 1158s # } 1158s # 1158s # /** 1158s # * org_project_useful_interface_proxy_new: 1158s # * @connection: A #GDBusConnection. 1158s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1158s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1158s # * @object_path: An object path. 1158s # * @cancellable: (nullable): A #GCancellable or %NULL. 1158s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1158s # * @user_data: User data to pass to @callback. 1158s # * 1158s # * Asynchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new() for more details. 1158s # * 1158s # * 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()). 1158s # * You can then call org_project_useful_interface_proxy_new_finish() to get the result of the operation. 1158s # * 1158s # * See org_project_useful_interface_proxy_new_sync() for the synchronous, blocking version of this constructor. 1158s # */ 1158s # void 1158s # org_project_useful_interface_proxy_new ( 1158s # GDBusConnection *connection, 1158s # GDBusProxyFlags flags, 1158s # const gchar *name, 1158s # const gchar *object_path, 1158s # GCancellable *cancellable, 1158s # GAsyncReadyCallback callback, 1158s # gpointer user_data) 1158s # { 1158s # 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); 1158s # } 1158s # 1158s # /** 1158s # * org_project_useful_interface_proxy_new_finish: 1158s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new(). 1158s # * @error: Return location for error or %NULL 1158s # * 1158s # * Finishes an operation started with org_project_useful_interface_proxy_new(). 1158s # * 1158s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1158s # */ 1158s # OrgProjectUsefulInterface * 1158s # org_project_useful_interface_proxy_new_finish ( 1158s # GAsyncResult *res, 1158s # GError **error) 1158s # { 1158s # GObject *ret; 1158s # GObject *source_object; 1158s # source_object = g_async_result_get_source_object (res); 1158s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1158s # g_object_unref (source_object); 1158s # if (ret != NULL) 1158s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1158s # else 1158s # return NULL; 1158s # } 1158s # 1158s # /** 1158s # * org_project_useful_interface_proxy_new_sync: 1158s # * @connection: A #GDBusConnection. 1158s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1158s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1158s # * @object_path: An object path. 1158s # * @cancellable: (nullable): A #GCancellable or %NULL. 1158s # * @error: Return location for error or %NULL 1158s # * 1158s # * Synchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new_sync() for more details. 1158s # * 1158s # * The calling thread is blocked until a reply is received. 1158s # * 1158s # * See org_project_useful_interface_proxy_new() for the asynchronous version of this constructor. 1158s # * 1158s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1158s # */ 1158s # OrgProjectUsefulInterface * 1158s # org_project_useful_interface_proxy_new_sync ( 1158s # GDBusConnection *connection, 1158s # GDBusProxyFlags flags, 1158s # const gchar *name, 1158s # const gchar *object_path, 1158s # GCancellable *cancellable, 1158s # GError **error) 1158s # { 1158s # GInitable *ret; 1158s # 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); 1158s # if (ret != NULL) 1158s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1158s # else 1158s # return NULL; 1158s # } 1158s # 1158s # 1158s # /** 1158s # * org_project_useful_interface_proxy_new_for_bus: 1158s # * @bus_type: A #GBusType. 1158s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1158s # * @name: A bus name (well-known or unique). 1158s # * @object_path: An object path. 1158s # * @cancellable: (nullable): A #GCancellable or %NULL. 1158s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1158s # * @user_data: User data to pass to @callback. 1158s # * 1158s # * Like org_project_useful_interface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 1158s # * 1158s # * 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()). 1158s # * You can then call org_project_useful_interface_proxy_new_for_bus_finish() to get the result of the operation. 1158s # * 1158s # * See org_project_useful_interface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 1158s # */ 1158s # void 1158s # org_project_useful_interface_proxy_new_for_bus ( 1158s # GBusType bus_type, 1158s # GDBusProxyFlags flags, 1158s # const gchar *name, 1158s # const gchar *object_path, 1158s # GCancellable *cancellable, 1158s # GAsyncReadyCallback callback, 1158s # gpointer user_data) 1158s # { 1158s # 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); 1158s # } 1158s # 1158s # /** 1158s # * org_project_useful_interface_proxy_new_for_bus_finish: 1158s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new_for_bus(). 1158s # * @error: Return location for error or %NULL 1158s # * 1158s # * Finishes an operation started with org_project_useful_interface_proxy_new_for_bus(). 1158s # * 1158s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1158s # */ 1158s # OrgProjectUsefulInterface * 1158s # org_project_useful_interface_proxy_new_for_bus_finish ( 1158s # GAsyncResult *res, 1158s # GError **error) 1158s # { 1158s # GObject *ret; 1158s # GObject *source_object; 1158s # source_object = g_async_result_get_source_object (res); 1158s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1158s # g_object_unref (source_object); 1158s # if (ret != NULL) 1158s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1158s # else 1158s # return NULL; 1158s # } 1158s # 1158s # /** 1158s # * org_project_useful_interface_proxy_new_for_bus_sync: 1158s # * @bus_type: A #GBusType. 1158s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1158s # * @name: A bus name (well-known or unique). 1158s # * @object_path: An object path. 1158s # * @cancellable: (nullable): A #GCancellable or %NULL. 1158s # * @error: Return location for error or %NULL 1158s # * 1158s # * Like org_project_useful_interface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 1158s # * 1158s # * The calling thread is blocked until a reply is received. 1158s # * 1158s # * See org_project_useful_interface_proxy_new_for_bus() for the asynchronous version of this constructor. 1158s # * 1158s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1158s # */ 1158s # OrgProjectUsefulInterface * 1158s # org_project_useful_interface_proxy_new_for_bus_sync ( 1158s # GBusType bus_type, 1158s # GDBusProxyFlags flags, 1158s # const gchar *name, 1158s # const gchar *object_path, 1158s # GCancellable *cancellable, 1158s # GError **error) 1158s # { 1158s # GInitable *ret; 1158s # 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); 1158s # if (ret != NULL) 1158s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1158s # else 1158s # return NULL; 1158s # } 1158s # 1158s # 1158s # /* ------------------------------------------------------------------------ */ 1158s # 1158s # /** 1158s # * OrgProjectUsefulInterfaceSkeleton: 1158s # * 1158s # * The #OrgProjectUsefulInterfaceSkeleton structure contains only private data and should only be accessed using the provided API. 1158s # */ 1158s # 1158s # /** 1158s # * OrgProjectUsefulInterfaceSkeletonClass: 1158s # * @parent_class: The parent class. 1158s # * 1158s # * Class structure for #OrgProjectUsefulInterfaceSkeleton. 1158s # */ 1158s # 1158s # struct _OrgProjectUsefulInterfaceSkeletonPrivate 1158s # { 1158s # GValue *properties; 1158s # GList *changed_properties; 1158s # GSource *changed_properties_idle_source; 1158s # GMainContext *context; 1158s # GMutex lock; 1158s # }; 1158s # 1158s # static void 1158s # _org_project_useful_interface_skeleton_handle_method_call ( 1158s # GDBusConnection *connection G_GNUC_UNUSED, 1158s # const gchar *sender G_GNUC_UNUSED, 1158s # const gchar *object_path G_GNUC_UNUSED, 1158s # const gchar *interface_name, 1158s # const gchar *method_name, 1158s # GVariant *parameters, 1158s # GDBusMethodInvocation *invocation, 1158s # gpointer user_data) 1158s # { 1158s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1158s # _ExtendedGDBusMethodInfo *info; 1158s # GVariantIter iter; 1158s # GVariant *child; 1158s # GValue *paramv; 1158s # gsize num_params; 1158s # guint num_extra; 1158s # gsize n; 1158s # guint signal_id; 1158s # GValue return_value = G_VALUE_INIT; 1158s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 1158s # g_assert (info != NULL); 1158s # num_params = g_variant_n_children (parameters); 1158s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 1158s # n = 0; 1158s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1158s # g_value_set_object (¶mv[n++], skeleton); 1158s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 1158s # g_value_set_object (¶mv[n++], invocation); 1158s # if (info->pass_fdlist) 1158s # { 1158s # #ifdef G_OS_UNIX 1158s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 1158s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 1158s # #else 1158s # g_assert_not_reached (); 1158s # #endif 1158s # } 1158s # g_variant_iter_init (&iter, parameters); 1158s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1158s # { 1158s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 1158s # if (arg_info->use_gvariant) 1158s # { 1158s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1158s # g_value_set_variant (¶mv[n], child); 1158s # n++; 1158s # } 1158s # else 1158s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1158s # g_variant_unref (child); 1158s # } 1158s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1158s # g_value_init (&return_value, G_TYPE_BOOLEAN); 1158s # g_signal_emitv (paramv, signal_id, 0, &return_value); 1158s # if (!g_value_get_boolean (&return_value)) 1158s # 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); 1158s # g_value_unset (&return_value); 1158s # for (n = 0; n < num_params + num_extra; n++) 1158s # g_value_unset (¶mv[n]); 1158s # g_free (paramv); 1158s # } 1158s # 1158s # static GVariant * 1158s # _org_project_useful_interface_skeleton_handle_get_property ( 1158s # GDBusConnection *connection G_GNUC_UNUSED, 1158s # const gchar *sender G_GNUC_UNUSED, 1158s # const gchar *object_path G_GNUC_UNUSED, 1158s # const gchar *interface_name G_GNUC_UNUSED, 1158s # const gchar *property_name, 1158s # GError **error, 1158s # gpointer user_data) 1158s # { 1158s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1158s # GValue value = G_VALUE_INIT; 1158s # GParamSpec *pspec; 1158s # _ExtendedGDBusPropertyInfo *info; 1158s # GVariant *ret; 1158s # ret = NULL; 1158s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 1158s # g_assert (info != NULL); 1158s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1158s # if (pspec == NULL) 1158s # { 1158s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1158s # } 1158s # else 1158s # { 1158s # g_value_init (&value, pspec->value_type); 1158s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1158s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 1158s # g_value_unset (&value); 1158s # } 1158s # return ret; 1158s # } 1158s # 1158s # static gboolean 1158s # _org_project_useful_interface_skeleton_handle_set_property ( 1158s # GDBusConnection *connection G_GNUC_UNUSED, 1158s # const gchar *sender G_GNUC_UNUSED, 1158s # const gchar *object_path G_GNUC_UNUSED, 1158s # const gchar *interface_name G_GNUC_UNUSED, 1158s # const gchar *property_name, 1158s # GVariant *variant, 1158s # GError **error, 1158s # gpointer user_data) 1158s # { 1158s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1158s # GValue value = G_VALUE_INIT; 1158s # GParamSpec *pspec; 1158s # _ExtendedGDBusPropertyInfo *info; 1158s # gboolean ret; 1158s # ret = FALSE; 1158s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 1158s # g_assert (info != NULL); 1158s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1158s # if (pspec == NULL) 1158s # { 1158s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1158s # } 1158s # else 1158s # { 1158s # if (info->use_gvariant) 1158s # g_value_set_variant (&value, variant); 1158s # else 1158s # g_dbus_gvariant_to_gvalue (variant, &value); 1158s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1158s # g_value_unset (&value); 1158s # ret = TRUE; 1158s # } 1158s # return ret; 1158s # } 1158s # 1158s # static const GDBusInterfaceVTable _org_project_useful_interface_skeleton_vtable = 1158s # { 1158s # _org_project_useful_interface_skeleton_handle_method_call, 1158s # _org_project_useful_interface_skeleton_handle_get_property, 1158s # _org_project_useful_interface_skeleton_handle_set_property, 1158s # {NULL} 1158s # }; 1158s # 1158s # static GDBusInterfaceInfo * 1158s # org_project_useful_interface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1158s # { 1158s # return org_project_useful_interface_interface_info (); 1158s # } 1158s # 1158s # static GDBusInterfaceVTable * 1158s # org_project_useful_interface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1158s # { 1158s # return (GDBusInterfaceVTable *) &_org_project_useful_interface_skeleton_vtable; 1158s # } 1158s # 1158s # static GVariant * 1158s # org_project_useful_interface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 1158s # { 1158s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (_skeleton); 1158s # 1158s # GVariantBuilder builder; 1158s # guint n; 1158s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 1158s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 1158s # #else 1158s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 1158s # #endif 1158s # if (_org_project_useful_interface_interface_info.parent_struct.properties == NULL) 1158s # goto out; 1158s # for (n = 0; _org_project_useful_interface_interface_info.parent_struct.properties[n] != NULL; n++) 1158s # { 1158s # GDBusPropertyInfo *info = _org_project_useful_interface_interface_info.parent_struct.properties[n]; 1158s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 1158s # { 1158s # GVariant *value; 1158s # 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); 1158s # if (value != NULL) 1158s # { 1158s # g_variant_take_ref (value); 1158s # g_variant_builder_add (&builder, "{sv}", info->name, value); 1158s # g_variant_unref (value); 1158s # } 1158s # } 1158s # } 1158s # out: 1158s # return g_variant_builder_end (&builder); 1158s # } 1158s # 1158s # static void 1158s # org_project_useful_interface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 1158s # { 1158s # } 1158s # 1158s # static void org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface); 1158s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1158s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1158s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceSkeleton) 1158s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 1158s # 1158s # #else 1158s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1158s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 1158s # 1158s # #endif 1158s # static void 1158s # org_project_useful_interface_skeleton_finalize (GObject *object) 1158s # { 1158s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (object); 1158s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 1158s # if (skeleton->priv->changed_properties_idle_source != NULL) 1158s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 1158s # g_main_context_unref (skeleton->priv->context); 1158s # g_mutex_clear (&skeleton->priv->lock); 1158s # G_OBJECT_CLASS (org_project_useful_interface_skeleton_parent_class)->finalize (object); 1158s # } 1158s # 1158s # static void 1158s # org_project_useful_interface_skeleton_init (OrgProjectUsefulInterfaceSkeleton *skeleton) 1158s # { 1158s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1158s # skeleton->priv = org_project_useful_interface_skeleton_get_instance_private (skeleton); 1158s # #else 1158s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, OrgProjectUsefulInterfaceSkeletonPrivate); 1158s # #endif 1158s # 1158s # g_mutex_init (&skeleton->priv->lock); 1158s # skeleton->priv->context = g_main_context_ref_thread_default (); 1158s # } 1158s # 1158s # static void 1158s # org_project_useful_interface_skeleton_class_init (OrgProjectUsefulInterfaceSkeletonClass *klass) 1158s # { 1158s # GObjectClass *gobject_class; 1158s # GDBusInterfaceSkeletonClass *skeleton_class; 1158s # 1158s # gobject_class = G_OBJECT_CLASS (klass); 1158s # gobject_class->finalize = org_project_useful_interface_skeleton_finalize; 1158s # 1158s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 1158s # skeleton_class->get_info = org_project_useful_interface_skeleton_dbus_interface_get_info; 1158s # skeleton_class->get_properties = org_project_useful_interface_skeleton_dbus_interface_get_properties; 1158s # skeleton_class->flush = org_project_useful_interface_skeleton_dbus_interface_flush; 1158s # skeleton_class->get_vtable = org_project_useful_interface_skeleton_dbus_interface_get_vtable; 1158s # 1158s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1158s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceSkeletonPrivate)); 1158s # #endif 1158s # } 1158s # 1158s # static void 1158s # org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 1158s # { 1158s # } 1158s # 1158s # /** 1158s # * org_project_useful_interface_skeleton_new: 1158s # * 1158s # * Creates a skeleton object for the D-Bus interface org.project.UsefulInterface. 1158s # * 1158s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceSkeleton): The skeleton object. 1158s # */ 1158s # OrgProjectUsefulInterface * 1158s # org_project_useful_interface_skeleton_new (void) 1158s # { 1158s # return ORG_PROJECT_USEFUL_INTERFACE (g_object_new (TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, NULL)); 1158s # } 1158s # Error: 1158s # 1158s # /tmp/tmpv_fj8nn0/tmp7ou2g3mb.xml: 1158s # 1158s # 1158s # 1158s # 1158s # 1158s # 1158s # 1158s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpv_fj8nn0/tmp7ou2g3mb.xml', '--output', '-', '--body'] 1158s # Return code: 0 1158s # Output: 1158s # /* 1158s # * This file is generated by gdbus-codegen, do not modify it. 1158s # * 1158s # * The license of this code is the same as for the D-Bus interface description 1158s # * it was derived from. Note that it links to GLib, so must comply with the 1158s # * LGPL linking clauses. 1158s # */ 1158s # 1158s # #ifdef HAVE_CONFIG_H 1158s # # include "config.h" 1158s # #endif 1158s # 1158s # #include 1158s # #ifdef G_OS_UNIX 1158s # # include 1158s # #endif 1158s # 1158s # #ifdef G_ENABLE_DEBUG 1158s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 1158s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 1158s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 1158s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 1158s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 1158s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 1158s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 1158s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 1158s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 1158s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 1158s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 1158s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 1158s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 1158s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 1158s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 1158s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 1158s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 1158s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 1158s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 1158s # #else /* !G_ENABLE_DEBUG */ 1158s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 1158s # * Do not access GValues directly in your code. Instead, use the 1158s # * g_value_get_*() functions 1158s # */ 1158s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 1158s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 1158s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 1158s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 1158s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 1158s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 1158s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 1158s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 1158s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 1158s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 1158s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 1158s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 1158s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 1158s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 1158s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 1158s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 1158s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 1158s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 1158s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 1158s # #endif /* !G_ENABLE_DEBUG */ 1158s # 1158s # typedef struct 1158s # { 1158s # GDBusArgInfo parent_struct; 1158s # gboolean use_gvariant; 1158s # } _ExtendedGDBusArgInfo; 1158s # 1158s # typedef struct 1158s # { 1158s # GDBusMethodInfo parent_struct; 1158s # const gchar *signal_name; 1158s # gboolean pass_fdlist; 1158s # } _ExtendedGDBusMethodInfo; 1158s # 1158s # typedef struct 1158s # { 1158s # GDBusSignalInfo parent_struct; 1158s # const gchar *signal_name; 1158s # } _ExtendedGDBusSignalInfo; 1158s # 1158s # typedef struct 1158s # { 1158s # GDBusPropertyInfo parent_struct; 1158s # const gchar *hyphen_name; 1158s # guint use_gvariant : 1; 1158s # guint emits_changed_signal : 1; 1158s # } _ExtendedGDBusPropertyInfo; 1158s # 1158s # typedef struct 1158s # { 1158s # GDBusInterfaceInfo parent_struct; 1158s # const gchar *hyphen_name; 1158s # } _ExtendedGDBusInterfaceInfo; 1158s # 1158s # typedef struct 1158s # { 1158s # const _ExtendedGDBusPropertyInfo *info; 1158s # guint prop_id; 1158s # GValue orig_value; /* the value before the change */ 1158s # } ChangedProperty; 1158s # 1158s # static void 1158s # _changed_property_free (ChangedProperty *data) 1158s # { 1158s # g_value_unset (&data->orig_value); 1158s # g_free (data); 1158s # } 1158s # 1158s # static gboolean 1158s # _g_strv_equal0 (gchar **a, gchar **b) 1158s # { 1158s # gboolean ret = FALSE; 1158s # guint n; 1158s # if (a == NULL && b == NULL) 1158s # { 1158s # ret = TRUE; 1158s # goto out; 1158s # } 1158s # if (a == NULL || b == NULL) 1158s # goto out; 1158s # if (g_strv_length (a) != g_strv_length (b)) 1158s # goto out; 1158s # for (n = 0; a[n] != NULL; n++) 1158s # if (g_strcmp0 (a[n], b[n]) != 0) 1158s # goto out; 1158s # ret = TRUE; 1158s # out: 1158s # return ret; 1158s # } 1158s # 1158s # static gboolean 1158s # _g_variant_equal0 (GVariant *a, GVariant *b) 1158s # { 1158s # gboolean ret = FALSE; 1158s # if (a == NULL && b == NULL) 1158s # { 1158s # ret = TRUE; 1158s # goto out; 1158s # } 1158s # if (a == NULL || b == NULL) 1158s # goto out; 1158s # ret = g_variant_equal (a, b); 1158s # out: 1158s # return ret; 1158s # } 1158s # 1158s # G_GNUC_UNUSED static gboolean 1158s # _g_value_equal (const GValue *a, const GValue *b) 1158s # { 1158s # gboolean ret = FALSE; 1158s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 1158s # switch (G_VALUE_TYPE (a)) 1158s # { 1158s # case G_TYPE_BOOLEAN: 1158s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 1158s # break; 1158s # case G_TYPE_UCHAR: 1158s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 1158s # break; 1158s # case G_TYPE_INT: 1158s # ret = (g_value_get_int (a) == g_value_get_int (b)); 1158s # break; 1158s # case G_TYPE_UINT: 1158s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 1158s # break; 1158s # case G_TYPE_INT64: 1158s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 1158s # break; 1158s # case G_TYPE_UINT64: 1158s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 1158s # break; 1158s # case G_TYPE_DOUBLE: 1158s # { 1158s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 1158s # gdouble da = g_value_get_double (a); 1158s # gdouble db = g_value_get_double (b); 1158s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 1158s # } 1158s # break; 1158s # case G_TYPE_STRING: 1158s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 1158s # break; 1158s # case G_TYPE_VARIANT: 1158s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 1158s # break; 1158s # default: 1158s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 1158s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 1158s # else 1158s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 1158s # break; 1158s # } 1158s # return ret; 1158s # } 1158s # 1158s # static void 1158s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT_STRING ( 1158s # GClosure *closure, 1158s # GValue *return_value, 1158s # unsigned int n_param_values, 1158s # const GValue *param_values, 1158s # void *invocation_hint G_GNUC_UNUSED, 1158s # void *marshal_data) 1158s # { 1158s # typedef gboolean (*_GDbusCodegenMarshalBoolean_ObjectStringFunc) 1158s # (void *data1, 1158s # GDBusMethodInvocation *arg_method_invocation, 1158s # const gchar *arg_arg_o, 1158s # void *data2); 1158s # _GDbusCodegenMarshalBoolean_ObjectStringFunc callback; 1158s # GCClosure *cc = (GCClosure*) closure; 1158s # void *data1, *data2; 1158s # gboolean v_return; 1158s # 1158s # g_return_if_fail (return_value != NULL); 1158s # g_return_if_fail (n_param_values == 3); 1158s # 1158s # if (G_CCLOSURE_SWAP_DATA (closure)) 1158s # { 1158s # data1 = closure->data; 1158s # data2 = g_value_peek_pointer (param_values + 0); 1158s # } 1158s # else 1158s # { 1158s # data1 = g_value_peek_pointer (param_values + 0); 1158s # data2 = closure->data; 1158s # } 1158s # 1158s # callback = (_GDbusCodegenMarshalBoolean_ObjectStringFunc) 1158s # (marshal_data ? marshal_data : cc->callback); 1158s # 1158s # v_return = 1158s # callback (data1, 1158s # g_marshal_value_peek_object (param_values + 1), 1158s # g_marshal_value_peek_string (param_values + 2), 1158s # data2); 1158s # 1158s # g_value_set_boolean (return_value, v_return); 1158s # } 1158s # 1158s # /* ------------------------------------------------------------------------ 1158s # * Code for interface org.project.UsefulInterface 1158s # * ------------------------------------------------------------------------ 1158s # */ 1158s # 1158s # /** 1158s # * SECTION:OrgProjectUsefulInterface 1158s # * @title: OrgProjectUsefulInterface 1158s # * @short_description: Generated C code for the org.project.UsefulInterface D-Bus interface 1158s # * 1158s # * This section contains code for working with the org.project.UsefulInterface D-Bus interface in C. 1158s # */ 1158s # 1158s # /* ---- Introspection data for org.project.UsefulInterface ---- */ 1158s # 1158s # static const _ExtendedGDBusArgInfo _org_project_useful_interface_method_info_single_arg_method_o_IN_ARG_arg_o = 1158s # { 1158s # { 1158s # -1, 1158s # (gchar *) "arg_o", 1158s # (gchar *) "o", 1158s # NULL 1158s # }, 1158s # FALSE 1158s # }; 1158s # 1158s # static const GDBusArgInfo * const _org_project_useful_interface_method_info_single_arg_method_o_IN_ARG_pointers[] = 1158s # { 1158s # &_org_project_useful_interface_method_info_single_arg_method_o_IN_ARG_arg_o.parent_struct, 1158s # NULL 1158s # }; 1158s # 1158s # static const _ExtendedGDBusMethodInfo _org_project_useful_interface_method_info_single_arg_method_o = 1158s # { 1158s # { 1158s # -1, 1158s # (gchar *) "SingleArgMethodO", 1158s # (GDBusArgInfo **) &_org_project_useful_interface_method_info_single_arg_method_o_IN_ARG_pointers, 1158s # NULL, 1158s # NULL 1158s # }, 1158s # "handle-single-arg-method-o", 1158s # FALSE 1158s # }; 1158s # 1158s # static const GDBusMethodInfo * const _org_project_useful_interface_method_info_pointers[] = 1158s # { 1158s # &_org_project_useful_interface_method_info_single_arg_method_o.parent_struct, 1158s # NULL 1158s # }; 1158s # 1158s # static const _ExtendedGDBusInterfaceInfo _org_project_useful_interface_interface_info = 1158s # { 1158s # { 1158s # -1, 1158s # (gchar *) "org.project.UsefulInterface", 1158s # (GDBusMethodInfo **) &_org_project_useful_interface_method_info_pointers, 1158s # NULL, 1158s # NULL, 1158s # NULL 1158s # }, 1158s # "org-project-useful-interface", 1158s # }; 1158s # 1158s # 1158s # /** 1158s # * org_project_useful_interface_interface_info: 1158s # * 1158s # * Gets a machine-readable description of the org.project.UsefulInterface D-Bus interface. 1158s # * 1158s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 1158s # */ 1158s # GDBusInterfaceInfo * 1158s # org_project_useful_interface_interface_info (void) 1158s # { 1158s # return (GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct; 1158s # } 1158s # 1158s # /** 1158s # * org_project_useful_interface_override_properties: 1158s # * @klass: The class structure for a #GObject derived class. 1158s # * @property_id_begin: The property id to assign to the first overridden property. 1158s # * 1158s # * Overrides all #GObject properties in the #OrgProjectUsefulInterface interface for a concrete class. 1158s # * The properties are overridden in the order they are defined. 1158s # * 1158s # * Returns: The last property id. 1158s # */ 1158s # guint 1158s # org_project_useful_interface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 1158s # { 1158s # return property_id_begin - 1; 1158s # } 1158s # 1158s # 1158s # inline static void 1158s # org_project_useful_interface_method_marshal_single_arg_method_o ( 1158s # GClosure *closure, 1158s # GValue *return_value, 1158s # unsigned int n_param_values, 1158s # const GValue *param_values, 1158s # void *invocation_hint, 1158s # void *marshal_data) 1158s # { 1158s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT_STRING (closure, 1158s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1158s # } 1158s # 1158s # 1158s # /** 1158s # * OrgProjectUsefulInterface: 1158s # * 1158s # * Abstract interface type for the D-Bus interface org.project.UsefulInterface. 1158s # */ 1158s # 1158s # /** 1158s # * OrgProjectUsefulInterfaceIface: 1158s # * @parent_iface: The parent interface. 1158s # * @handle_single_arg_method_o: Handler for the #OrgProjectUsefulInterface::handle-single-arg-method-o signal. 1158s # * 1158s # * Virtual table for the D-Bus interface org.project.UsefulInterface. 1158s # */ 1158s # 1158s # typedef OrgProjectUsefulInterfaceIface OrgProjectUsefulInterfaceInterface; 1158s # G_DEFINE_INTERFACE (OrgProjectUsefulInterface, org_project_useful_interface, G_TYPE_OBJECT) 1158s # 1158s # static void 1158s # org_project_useful_interface_default_init (OrgProjectUsefulInterfaceIface *iface) 1158s # { 1158s # /* GObject signals for incoming D-Bus method calls: */ 1158s # /** 1158s # * OrgProjectUsefulInterface::handle-single-arg-method-o: 1158s # * @object: A #OrgProjectUsefulInterface. 1158s # * @invocation: A #GDBusMethodInvocation. 1158s # * @arg_arg_o: Argument passed by remote caller. 1158s # * 1158s # * Signal emitted when a remote caller is invoking the SingleArgMethodO() D-Bus method. 1158s # * 1158s # * 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. 1158s # * 1158s # * 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. 1158s # */ 1158s # g_signal_new ("handle-single-arg-method-o", 1158s # G_TYPE_FROM_INTERFACE (iface), 1158s # G_SIGNAL_RUN_LAST, 1158s # G_STRUCT_OFFSET (OrgProjectUsefulInterfaceIface, handle_single_arg_method_o), 1158s # g_signal_accumulator_true_handled, 1158s # NULL, 1158s # org_project_useful_interface_method_marshal_single_arg_method_o, 1158s # G_TYPE_BOOLEAN, 1158s # 2, 1158s # G_TYPE_DBUS_METHOD_INVOCATION, G_TYPE_STRING); 1158s # 1158s # } 1158s # 1158s # /** 1158s # * org_project_useful_interface_call_single_arg_method_o: 1158s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1158s # * @arg_arg_o: Argument to pass with the method invocation. 1158s # * @cancellable: (nullable): A #GCancellable or %NULL. 1158s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL. 1158s # * @user_data: User data to pass to @callback. 1158s # * 1158s # * Asynchronously invokes the SingleArgMethodO() D-Bus method on @proxy. 1158s # * 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()). 1158s # * You can then call org_project_useful_interface_call_single_arg_method_o_finish() to get the result of the operation. 1158s # * 1158s # * See org_project_useful_interface_call_single_arg_method_o_sync() for the synchronous, blocking version of this method. 1158s # */ 1158s # void 1158s # org_project_useful_interface_call_single_arg_method_o ( 1158s # OrgProjectUsefulInterface *proxy, 1158s # const gchar *arg_arg_o, 1158s # GCancellable *cancellable, 1158s # GAsyncReadyCallback callback, 1158s # gpointer user_data) 1158s # { 1158s # g_dbus_proxy_call (G_DBUS_PROXY (proxy), 1158s # "SingleArgMethodO", 1158s # g_variant_new ("(o)", 1158s # arg_arg_o), 1158s # G_DBUS_CALL_FLAGS_NONE, 1158s # -1, 1158s # cancellable, 1158s # callback, 1158s # user_data); 1158s # } 1158s # 1158s # /** 1158s # * org_project_useful_interface_call_single_arg_method_o_finish: 1158s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1158s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_call_single_arg_method_o(). 1158s # * @error: Return location for error or %NULL. 1158s # * 1158s # * Finishes an operation started with org_project_useful_interface_call_single_arg_method_o(). 1158s # * 1158s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1158s # */ 1158s # gboolean 1158s # org_project_useful_interface_call_single_arg_method_o_finish ( 1158s # OrgProjectUsefulInterface *proxy, 1158s # GAsyncResult *res, 1158s # GError **error) 1158s # { 1158s # GVariant *_ret; 1158s # _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error); 1158s # if (_ret == NULL) 1158s # goto _out; 1158s # g_variant_get (_ret, 1158s # "()"); 1158s # g_variant_unref (_ret); 1158s # _out: 1158s # return _ret != NULL; 1158s # } 1158s # 1158s # /** 1158s # * org_project_useful_interface_call_single_arg_method_o_sync: 1158s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1158s # * @arg_arg_o: Argument to pass with the method invocation. 1158s # * @cancellable: (nullable): A #GCancellable or %NULL. 1158s # * @error: Return location for error or %NULL. 1158s # * 1158s # * Synchronously invokes the SingleArgMethodO() D-Bus method on @proxy. The calling thread is blocked until a reply is received. 1158s # * 1158s # * See org_project_useful_interface_call_single_arg_method_o() for the asynchronous version of this method. 1158s # * 1158s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1158s # */ 1158s # gboolean 1158s # org_project_useful_interface_call_single_arg_method_o_sync ( 1158s # OrgProjectUsefulInterface *proxy, 1158s # const gchar *arg_arg_o, 1158s # GCancellable *cancellable, 1158s # GError **error) 1158s # { 1158s # GVariant *_ret; 1158s # _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy), 1158s # "SingleArgMethodO", 1158s # g_variant_new ("(o)", 1158s # arg_arg_o), 1158s # G_DBUS_CALL_FLAGS_NONE, 1158s # -1, 1158s # cancellable, 1158s # error); 1158s # if (_ret == NULL) 1158s # goto _out; 1158s # g_variant_get (_ret, 1158s # "()"); 1158s # g_variant_unref (_ret); 1158s # _out: 1158s # return _ret != NULL; 1158s # } 1158s # 1158s # /** 1158s # * org_project_useful_interface_complete_single_arg_method_o: 1158s # * @object: A #OrgProjectUsefulInterface. 1158s # * @invocation: (transfer full): A #GDBusMethodInvocation. 1158s # * 1158s # * 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. 1158s # * 1158s # * This method will free @invocation, you cannot use it afterwards. 1158s # */ 1158s # void 1158s # org_project_useful_interface_complete_single_arg_method_o ( 1158s # OrgProjectUsefulInterface *object G_GNUC_UNUSED, 1158s # GDBusMethodInvocation *invocation) 1158s # { 1158s # g_dbus_method_invocation_return_value (invocation, 1158s # g_variant_new ("()")); 1158s # } 1158s # 1158s # /* ------------------------------------------------------------------------ */ 1158s # 1158s # /** 1158s # * OrgProjectUsefulInterfaceProxy: 1158s # * 1158s # * The #OrgProjectUsefulInterfaceProxy structure contains only private data and should only be accessed using the provided API. 1158s # */ 1158s # 1158s # /** 1158s # * OrgProjectUsefulInterfaceProxyClass: 1158s # * @parent_class: The parent class. 1158s # * 1158s # * Class structure for #OrgProjectUsefulInterfaceProxy. 1158s # */ 1158s # 1158s # struct _OrgProjectUsefulInterfaceProxyPrivate 1158s # { 1158s # GData *qdata; 1158s # }; 1158s # 1158s # static void org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface); 1158s # 1158s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1158s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 1158s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceProxy) 1158s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 1158s # 1158s # #else 1158s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 1158s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 1158s # 1158s # #endif 1158s # static void 1158s # org_project_useful_interface_proxy_finalize (GObject *object) 1158s # { 1158s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (object); 1158s # g_datalist_clear (&proxy->priv->qdata); 1158s # G_OBJECT_CLASS (org_project_useful_interface_proxy_parent_class)->finalize (object); 1158s # } 1158s # 1158s # static void 1158s # org_project_useful_interface_proxy_get_property (GObject *object G_GNUC_UNUSED, 1158s # guint prop_id G_GNUC_UNUSED, 1158s # GValue *value G_GNUC_UNUSED, 1158s # GParamSpec *pspec G_GNUC_UNUSED) 1158s # { 1158s # } 1158s # 1158s # static void 1158s # org_project_useful_interface_proxy_set_property (GObject *object G_GNUC_UNUSED, 1158s # guint prop_id G_GNUC_UNUSED, 1158s # const GValue *value G_GNUC_UNUSED, 1158s # GParamSpec *pspec G_GNUC_UNUSED) 1158s # { 1158s # } 1158s # 1158s # static void 1158s # org_project_useful_interface_proxy_g_signal (GDBusProxy *proxy, 1158s # const gchar *sender_name G_GNUC_UNUSED, 1158s # const gchar *signal_name, 1158s # GVariant *parameters) 1158s # { 1158s # _ExtendedGDBusSignalInfo *info; 1158s # GVariantIter iter; 1158s # GVariant *child; 1158s # GValue *paramv; 1158s # gsize num_params; 1158s # gsize n; 1158s # guint signal_id; 1158s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, signal_name); 1158s # if (info == NULL) 1158s # return; 1158s # num_params = g_variant_n_children (parameters); 1158s # paramv = g_new0 (GValue, num_params + 1); 1158s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1158s # g_value_set_object (¶mv[0], proxy); 1158s # g_variant_iter_init (&iter, parameters); 1158s # n = 1; 1158s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1158s # { 1158s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 1158s # if (arg_info->use_gvariant) 1158s # { 1158s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1158s # g_value_set_variant (¶mv[n], child); 1158s # n++; 1158s # } 1158s # else 1158s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1158s # g_variant_unref (child); 1158s # } 1158s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1158s # g_signal_emitv (paramv, signal_id, 0, NULL); 1158s # for (n = 0; n < num_params + 1; n++) 1158s # g_value_unset (¶mv[n]); 1158s # g_free (paramv); 1158s # } 1158s # 1158s # static void 1158s # org_project_useful_interface_proxy_g_properties_changed (GDBusProxy *_proxy, 1158s # GVariant *changed_properties, 1158s # const gchar *const *invalidated_properties) 1158s # { 1158s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (_proxy); 1158s # guint n; 1158s # const gchar *key; 1158s # GVariantIter *iter; 1158s # _ExtendedGDBusPropertyInfo *info; 1158s # g_variant_get (changed_properties, "a{sv}", &iter); 1158s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 1158s # { 1158s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, key); 1158s # g_datalist_remove_data (&proxy->priv->qdata, key); 1158s # if (info != NULL) 1158s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1158s # } 1158s # g_variant_iter_free (iter); 1158s # for (n = 0; invalidated_properties[n] != NULL; n++) 1158s # { 1158s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, invalidated_properties[n]); 1158s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 1158s # if (info != NULL) 1158s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1158s # } 1158s # } 1158s # 1158s # static void 1158s # org_project_useful_interface_proxy_init (OrgProjectUsefulInterfaceProxy *proxy) 1158s # { 1158s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1158s # proxy->priv = org_project_useful_interface_proxy_get_instance_private (proxy); 1158s # #else 1158s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY, OrgProjectUsefulInterfaceProxyPrivate); 1158s # #endif 1158s # 1158s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_useful_interface_interface_info ()); 1158s # } 1158s # 1158s # static void 1158s # org_project_useful_interface_proxy_class_init (OrgProjectUsefulInterfaceProxyClass *klass) 1158s # { 1158s # GObjectClass *gobject_class; 1158s # GDBusProxyClass *proxy_class; 1158s # 1158s # gobject_class = G_OBJECT_CLASS (klass); 1158s # gobject_class->finalize = org_project_useful_interface_proxy_finalize; 1158s # gobject_class->get_property = org_project_useful_interface_proxy_get_property; 1158s # gobject_class->set_property = org_project_useful_interface_proxy_set_property; 1158s # 1158s # proxy_class = G_DBUS_PROXY_CLASS (klass); 1158s # proxy_class->g_signal = org_project_useful_interface_proxy_g_signal; 1158s # proxy_class->g_properties_changed = org_project_useful_interface_proxy_g_properties_changed; 1158s # 1158s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1158s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceProxyPrivate)); 1158s # #endif 1158s # } 1158s # 1158s # static void 1158s # org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 1158s # { 1158s # } 1158s # 1158s # /** 1158s # * org_project_useful_interface_proxy_new: 1158s # * @connection: A #GDBusConnection. 1158s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1158s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1158s # * @object_path: An object path. 1158s # * @cancellable: (nullable): A #GCancellable or %NULL. 1158s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1158s # * @user_data: User data to pass to @callback. 1158s # * 1158s # * Asynchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new() for more details. 1158s # * 1158s # * 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()). 1158s # * You can then call org_project_useful_interface_proxy_new_finish() to get the result of the operation. 1158s # * 1158s # * See org_project_useful_interface_proxy_new_sync() for the synchronous, blocking version of this constructor. 1158s # */ 1158s # void 1158s # org_project_useful_interface_proxy_new ( 1158s # GDBusConnection *connection, 1158s # GDBusProxyFlags flags, 1158s # const gchar *name, 1158s # const gchar *object_path, 1158s # GCancellable *cancellable, 1158s # GAsyncReadyCallback callback, 1158s # gpointer user_data) 1158s # { 1158s # 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); 1158s # } 1158s # 1158s # /** 1158s # * org_project_useful_interface_proxy_new_finish: 1158s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new(). 1158s # * @error: Return location for error or %NULL 1158s # * 1158s # * Finishes an operation started with org_project_useful_interface_proxy_new(). 1158s # * 1158s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1158s # */ 1158s # OrgProjectUsefulInterface * 1158s # org_project_useful_interface_proxy_new_finish ( 1158s # GAsyncResult *res, 1158s # GError **error) 1158s # { 1158s # GObject *ret; 1158s # GObject *source_object; 1158s # source_object = g_async_result_get_source_object (res); 1158s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1158s # g_object_unref (source_object); 1158s # if (ret != NULL) 1158s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1158s # else 1158s # return NULL; 1158s # } 1158s # 1158s # /** 1158s # * org_project_useful_interface_proxy_new_sync: 1158s # * @connection: A #GDBusConnection. 1158s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1158s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1158s # * @object_path: An object path. 1158s # * @cancellable: (nullable): A #GCancellable or %NULL. 1158s # * @error: Return location for error or %NULL 1158s # * 1158s # * Synchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new_sync() for more details. 1158s # * 1158s # * The calling thread is blocked until a reply is received. 1158s # * 1158s # * See org_project_useful_interface_proxy_new() for the asynchronous version of this constructor. 1158s # * 1158s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1158s # */ 1158s # OrgProjectUsefulInterface * 1158s # org_project_useful_interface_proxy_new_sync ( 1158s # GDBusConnection *connection, 1158s # GDBusProxyFlags flags, 1158s # const gchar *name, 1158s # const gchar *object_path, 1158s # GCancellable *cancellable, 1158s # GError **error) 1158s # { 1158s # GInitable *ret; 1158s # 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); 1158s # if (ret != NULL) 1158s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1158s # else 1158s # return NULL; 1158s # } 1158s # 1158s # 1158s # /** 1158s # * org_project_useful_interface_proxy_new_for_bus: 1158s # * @bus_type: A #GBusType. 1158s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1158s # * @name: A bus name (well-known or unique). 1158s # * @object_path: An object path. 1158s # * @cancellable: (nullable): A #GCancellable or %NULL. 1158s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1158s # * @user_data: User data to pass to @callback. 1158s # * 1158s # * Like org_project_useful_interface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 1158s # * 1158s # * 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()). 1158s # * You can then call org_project_useful_interface_proxy_new_for_bus_finish() to get the result of the operation. 1158s # * 1158s # * See org_project_useful_interface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 1158s # */ 1158s # void 1158s # org_project_useful_interface_proxy_new_for_bus ( 1158s # GBusType bus_type, 1158s # GDBusProxyFlags flags, 1158s # const gchar *name, 1158s # const gchar *object_path, 1158s # GCancellable *cancellable, 1158s # GAsyncReadyCallback callback, 1158s # gpointer user_data) 1158s # { 1158s # 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); 1158s # } 1158s # 1158s # /** 1158s # * org_project_useful_interface_proxy_new_for_bus_finish: 1158s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new_for_bus(). 1158s # * @error: Return location for error or %NULL 1158s # * 1158s # * Finishes an operation started with org_project_useful_interface_proxy_new_for_bus(). 1158s # * 1158s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1158s # */ 1158s # OrgProjectUsefulInterface * 1158s # org_project_useful_interface_proxy_new_for_bus_finish ( 1158s # GAsyncResult *res, 1158s # GError **error) 1158s # { 1158s # GObject *ret; 1158s # GObject *source_object; 1158s # source_object = g_async_result_get_source_object (res); 1158s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1158s # g_object_unref (source_object); 1158s # if (ret != NULL) 1158s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1158s # else 1158s # return NULL; 1158s # } 1158s # 1158s # /** 1158s # * org_project_useful_interface_proxy_new_for_bus_sync: 1158s # * @bus_type: A #GBusType. 1158s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1158s # * @name: A bus name (well-known or unique). 1158s # * @object_path: An object path. 1158s # * @cancellable: (nullable): A #GCancellable or %NULL. 1158s # * @error: Return location for error or %NULL 1158s # * 1158s # * Like org_project_useful_interface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 1158s # * 1158s # * The calling thread is blocked until a reply is received. 1158s # * 1158s # * See org_project_useful_interface_proxy_new_for_bus() for the asynchronous version of this constructor. 1158s # * 1158s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1158s # */ 1158s # OrgProjectUsefulInterface * 1158s # org_project_useful_interface_proxy_new_for_bus_sync ( 1158s # GBusType bus_type, 1158s # GDBusProxyFlags flags, 1158s # const gchar *name, 1158s # const gchar *object_path, 1158s # GCancellable *cancellable, 1158s # GError **error) 1158s # { 1158s # GInitable *ret; 1158s # 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); 1158s # if (ret != NULL) 1158s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1158s # else 1158s # return NULL; 1158s # } 1158s # 1158s # 1158s # /* ------------------------------------------------------------------------ */ 1158s # 1158s # /** 1158s # * OrgProjectUsefulInterfaceSkeleton: 1158s # * 1158s # * The #OrgProjectUsefulInterfaceSkeleton structure contains only private data and should only be accessed using the provided API. 1158s # */ 1158s # 1158s # /** 1158s # * OrgProjectUsefulInterfaceSkeletonClass: 1158s # * @parent_class: The parent class. 1158s # * 1158s # * Class structure for #OrgProjectUsefulInterfaceSkeleton. 1158s # */ 1158s # 1158s # struct _OrgProjectUsefulInterfaceSkeletonPrivate 1158s # { 1158s # GValue *properties; 1158s # GList *changed_properties; 1158s # GSource *changed_properties_idle_source; 1158s # GMainContext *context; 1158s # GMutex lock; 1158s # }; 1158s # 1158s # static void 1158s # _org_project_useful_interface_skeleton_handle_method_call ( 1158s # GDBusConnection *connection G_GNUC_UNUSED, 1158s # const gchar *sender G_GNUC_UNUSED, 1158s # const gchar *object_path G_GNUC_UNUSED, 1158s # const gchar *interface_name, 1158s # const gchar *method_name, 1158s # GVariant *parameters, 1158s # GDBusMethodInvocation *invocation, 1158s # gpointer user_data) 1158s # { 1158s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1158s # _ExtendedGDBusMethodInfo *info; 1158s # GVariantIter iter; 1158s # GVariant *child; 1158s # GValue *paramv; 1158s # gsize num_params; 1158s # guint num_extra; 1158s # gsize n; 1158s # guint signal_id; 1158s # GValue return_value = G_VALUE_INIT; 1158s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 1158s # g_assert (info != NULL); 1158s # num_params = g_variant_n_children (parameters); 1158s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 1158s # n = 0; 1158s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1158s # g_value_set_object (¶mv[n++], skeleton); 1158s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 1158s # g_value_set_object (¶mv[n++], invocation); 1158s # if (info->pass_fdlist) 1158s # { 1158s # #ifdef G_OS_UNIX 1158s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 1158s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 1158s # #else 1158s # g_assert_not_reached (); 1158s # #endif 1158s # } 1158s # g_variant_iter_init (&iter, parameters); 1158s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1158s # { 1158s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 1158s # if (arg_info->use_gvariant) 1158s # { 1158s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1158s # g_value_set_variant (¶mv[n], child); 1158s # n++; 1158s # } 1158s # else 1158s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1158s # g_variant_unref (child); 1158s # } 1158s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1158s # g_value_init (&return_value, G_TYPE_BOOLEAN); 1158s # g_signal_emitv (paramv, signal_id, 0, &return_value); 1158s # if (!g_value_get_boolean (&return_value)) 1158s # 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); 1158s # g_value_unset (&return_value); 1158s # for (n = 0; n < num_params + num_extra; n++) 1158s # g_value_unset (¶mv[n]); 1158s # g_free (paramv); 1158s # } 1158s # 1158s # static GVariant * 1158s # _org_project_useful_interface_skeleton_handle_get_property ( 1158s # GDBusConnection *connection G_GNUC_UNUSED, 1158s # const gchar *sender G_GNUC_UNUSED, 1158s # const gchar *object_path G_GNUC_UNUSED, 1158s # const gchar *interface_name G_GNUC_UNUSED, 1158s # const gchar *property_name, 1158s # GError **error, 1158s # gpointer user_data) 1158s # { 1158s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1158s # GValue value = G_VALUE_INIT; 1158s # GParamSpec *pspec; 1158s # _ExtendedGDBusPropertyInfo *info; 1158s # GVariant *ret; 1158s # ret = NULL; 1158s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 1158s # g_assert (info != NULL); 1158s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1158s # if (pspec == NULL) 1158s # { 1158s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1158s # } 1158s # else 1158s # { 1158s # g_value_init (&value, pspec->value_type); 1158s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1158s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 1158s # g_value_unset (&value); 1158s # } 1158s # return ret; 1158s # } 1158s # 1158s # static gboolean 1158s # _org_project_useful_interface_skeleton_handle_set_property ( 1158s # GDBusConnection *connection G_GNUC_UNUSED, 1158s # const gchar *sender G_GNUC_UNUSED, 1158s # const gchar *object_path G_GNUC_UNUSED, 1158s # const gchar *interface_name G_GNUC_UNUSED, 1158s # const gchar *property_name, 1158s # GVariant *variant, 1158s # GError **error, 1158s # gpointer user_data) 1158s # { 1158s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1158s # GValue value = G_VALUE_INIT; 1158s # GParamSpec *pspec; 1158s # _ExtendedGDBusPropertyInfo *info; 1158s # gboolean ret; 1158s # ret = FALSE; 1158s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 1158s # g_assert (info != NULL); 1158s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1158s # if (pspec == NULL) 1158s # { 1158s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1158s # } 1158s # else 1158s # { 1158s # if (info->use_gvariant) 1158s # g_value_set_variant (&value, variant); 1158s # else 1158s # g_dbus_gvariant_to_gvalue (variant, &value); 1158s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1158s # g_value_unset (&value); 1158s # ret = TRUE; 1158s # } 1158s # return ret; 1158s # } 1158s # 1158s # static const GDBusInterfaceVTable _org_project_useful_interface_skeleton_vtable = 1158s # { 1158s # _org_project_useful_interface_skeleton_handle_method_call, 1158s # _org_project_useful_interface_skeleton_handle_get_property, 1158s # _org_project_useful_interface_skeleton_handle_set_property, 1158s # {NULL} 1158s # }; 1158s # 1158s # static GDBusInterfaceInfo * 1158s # org_project_useful_interface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1158s # { 1158s # return org_project_useful_interface_interface_info (); 1158s # } 1158s # 1158s # static GDBusInterfaceVTable * 1158s # org_project_useful_interface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1158s # { 1158s # return (GDBusInterfaceVTable *) &_org_project_useful_interface_skeleton_vtable; 1158s # } 1158s # 1158s # static GVariant * 1158s # org_project_useful_interface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 1158s # { 1158s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (_skeleton); 1158s # 1158s # GVariantBuilder builder; 1158s # guint n; 1158s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 1158s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 1158s # #else 1158s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 1158s # #endif 1158s # if (_org_project_useful_interface_interface_info.parent_struct.properties == NULL) 1158s # goto out; 1158s # for (n = 0; _org_project_useful_interface_interface_info.parent_struct.properties[n] != NULL; n++) 1158s # { 1158s # GDBusPropertyInfo *info = _org_project_useful_interface_interface_info.parent_struct.properties[n]; 1158s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 1158s # { 1158s # GVariant *value; 1158s # 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); 1158s # if (value != NULL) 1158s # { 1158s # g_variant_take_ref (value); 1158s # g_variant_builder_add (&builder, "{sv}", info->name, value); 1158s # g_variant_unref (value); 1158s # } 1158s # } 1158s # } 1158s # out: 1158s # return g_variant_builder_end (&builder); 1158s # } 1158s # 1158s # static void 1158s # org_project_useful_interface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 1158s # { 1158s # } 1158s # 1158s # static void org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface); 1158s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1158s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1158s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceSkeleton) 1158s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 1158s # 1158s # #else 1158s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1158s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 1158s # 1158s # #endif 1158s # static void 1158s # org_project_useful_interface_skeleton_finalize (GObject *object) 1158s # { 1158s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (object); 1158s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 1158s # if (skeleton->priv->changed_properties_idle_source != NULL) 1158s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 1158s # g_main_context_unref (skeleton->priv->context); 1158s # g_mutex_clear (&skeleton->priv->lock); 1158s # G_OBJECT_CLASS (org_project_useful_interface_skeleton_parent_class)->finalize (object); 1158s # } 1158s # 1158s # static void 1158s # org_project_useful_interface_skeleton_init (OrgProjectUsefulInterfaceSkeleton *skeleton) 1158s # { 1158s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1158s # skeleton->priv = org_project_useful_interface_skeleton_get_instance_private (skeleton); 1158s # #else 1158s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, OrgProjectUsefulInterfaceSkeletonPrivate); 1158s # #endif 1158s # 1158s # g_mutex_init (&skeleton->priv->lock); 1158s # skeleton->priv->context = g_main_context_ref_thread_default (); 1158s # } 1158s # 1158s # static void 1158s # org_project_useful_interface_skeleton_class_init (OrgProjectUsefulInterfaceSkeletonClass *klass) 1158s # { 1158s # GObjectClass *gobject_class; 1158s # GDBusInterfaceSkeletonClass *skeleton_class; 1158s # 1158s # gobject_class = G_OBJECT_CLASS (klass); 1158s # gobject_class->finalize = org_project_useful_interface_skeleton_finalize; 1158s # 1158s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 1158s # skeleton_class->get_info = org_project_useful_interface_skeleton_dbus_interface_get_info; 1158s # skeleton_class->get_properties = org_project_useful_interface_skeleton_dbus_interface_get_properties; 1158s # skeleton_class->flush = org_project_useful_interface_skeleton_dbus_interface_flush; 1158s # skeleton_class->get_vtable = org_project_useful_interface_skeleton_dbus_interface_get_vtable; 1158s # 1158s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1158s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceSkeletonPrivate)); 1158s # #endif 1158s # } 1158s # 1158s # static void 1158s # org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 1158s # { 1158s # } 1158s # 1158s # /** 1158s # * org_project_useful_interface_skeleton_new: 1158s # * 1158s # * Creates a skeleton object for the D-Bus interface org.project.UsefulInterface. 1158s # * 1158s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceSkeleton): The skeleton object. 1158s # */ 1158s # OrgProjectUsefulInterface * 1158s # org_project_useful_interface_skeleton_new (void) 1158s # { 1158s # return ORG_PROJECT_USEFUL_INTERFACE (g_object_new (TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, NULL)); 1158s # } 1158s # Error: 1158s # 1158s # /tmp/tmpv_fj8nn0/tmpx2rqzydg.xml: 1158s # 1158s # 1158s # 1158s # 1158s # 1158s # 1158s # 1158s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpv_fj8nn0/tmpx2rqzydg.xml', '--output', '-', '--body'] 1158s # Return code: 0 1158s # Output: 1158s # /* 1158s # * This file is generated by gdbus-codegen, do not modify it. 1158s # * 1158s # * The license of this code is the same as for the D-Bus interface description 1158s # * it was derived from. Note that it links to GLib, so must comply with the 1158s # * LGPL linking clauses. 1158s # */ 1158s # 1158s # #ifdef HAVE_CONFIG_H 1158s # # include "config.h" 1158s # #endif 1158s # 1158s # #include 1158s # #ifdef G_OS_UNIX 1158s # # include 1158s # #endif 1158s # 1158s # #ifdef G_ENABLE_DEBUG 1158s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 1158s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 1158s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 1158s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 1158s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 1158s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 1158s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 1158s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 1158s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 1158s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 1158s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 1158s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 1158s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 1158s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 1158s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 1158s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 1158s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 1158s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 1158s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 1158s # #else /* !G_ENABLE_DEBUG */ 1158s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 1158s # * Do not access GValues directly in your code. Instead, use the 1158s # * g_value_get_*() functions 1158s # */ 1158s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 1158s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 1158s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 1158s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 1158s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 1158s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 1158s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 1158s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 1158s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 1158s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 1158s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 1158s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 1158s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 1158s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 1158s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 1158s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 1158s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 1158s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 1158s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 1158s # #endif /* !G_ENABLE_DEBUG */ 1158s # 1158s # typedef struct 1158s # { 1158s # GDBusArgInfo parent_struct; 1158s # gboolean use_gvariant; 1158s # } _ExtendedGDBusArgInfo; 1158s # 1158s # typedef struct 1158s # { 1158s # GDBusMethodInfo parent_struct; 1158s # const gchar *signal_name; 1158s # gboolean pass_fdlist; 1158s # } _ExtendedGDBusMethodInfo; 1158s # 1158s # typedef struct 1158s # { 1158s # GDBusSignalInfo parent_struct; 1158s # const gchar *signal_name; 1158s # } _ExtendedGDBusSignalInfo; 1158s # 1158s # typedef struct 1158s # { 1158s # GDBusPropertyInfo parent_struct; 1158s # const gchar *hyphen_name; 1158s # guint use_gvariant : 1; 1158s # guint emits_changed_signal : 1; 1158s # } _ExtendedGDBusPropertyInfo; 1158s # 1158s # typedef struct 1158s # { 1158s # GDBusInterfaceInfo parent_struct; 1158s # const gchar *hyphen_name; 1158s # } _ExtendedGDBusInterfaceInfo; 1158s # 1158s # typedef struct 1158s # { 1158s # const _ExtendedGDBusPropertyInfo *info; 1158s # guint prop_id; 1158s # GValue orig_value; /* the value before the change */ 1158s # } ChangedProperty; 1158s # 1158s # static void 1158s # _changed_property_free (ChangedProperty *data) 1158s # { 1158s # g_value_unset (&data->orig_value); 1158s # g_free (data); 1158s # } 1158s # 1158s # static gboolean 1158s # _g_strv_equal0 (gchar **a, gchar **b) 1158s # { 1158s # gboolean ret = FALSE; 1158s # guint n; 1158s # if (a == NULL && b == NULL) 1158s # { 1158s # ret = TRUE; 1158s # goto out; 1158s # } 1158s # if (a == NULL || b == NULL) 1158s # goto out; 1158s # if (g_strv_length (a) != g_strv_length (b)) 1158s # goto out; 1158s # for (n = 0; a[n] != NULL; n++) 1158s # if (g_strcmp0 (a[n], b[n]) != 0) 1158s # goto out; 1158s # ret = TRUE; 1158s # out: 1158s # return ret; 1158s # } 1158s # 1158s # static gboolean 1158s # _g_variant_equal0 (GVariant *a, GVariant *b) 1158s # { 1158s # gboolean ret = FALSE; 1158s # if (a == NULL && b == NULL) 1158s # { 1158s # ret = TRUE; 1158s # goto out; 1158s # } 1158s # if (a == NULL || b == NULL) 1158s # goto out; 1158s # ret = g_variant_equal (a, b); 1158s # out: 1158s # return ret; 1158s # } 1158s # 1158s # G_GNUC_UNUSED static gboolean 1158s # _g_value_equal (const GValue *a, const GValue *b) 1158s # { 1158s # gboolean ret = FALSE; 1158s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 1158s # switch (G_VALUE_TYPE (a)) 1158s # { 1158s # case G_TYPE_BOOLEAN: 1158s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 1158s # break; 1158s # case G_TYPE_UCHAR: 1158s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 1158s # break; 1158s # case G_TYPE_INT: 1158s # ret = (g_value_get_int (a) == g_value_get_int (b)); 1158s # break; 1158s # case G_TYPE_UINT: 1158s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 1158s # break; 1158s # case G_TYPE_INT64: 1158s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 1158s # break; 1158s # case G_TYPE_UINT64: 1158s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 1158s # break; 1158s # case G_TYPE_DOUBLE: 1158s # { 1158s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 1158s # gdouble da = g_value_get_double (a); 1158s # gdouble db = g_value_get_double (b); 1158s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 1158s # } 1158s # break; 1158s # case G_TYPE_STRING: 1158s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 1158s # break; 1158s # case G_TYPE_VARIANT: 1158s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 1158s # break; 1158s # default: 1158s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 1158s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 1158s # else 1158s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 1158s # break; 1158s # } 1158s # return ret; 1158s # } 1158s # 1158s # static void 1158s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT_STRING ( 1158s # GClosure *closure, 1158s # GValue *return_value, 1158s # unsigned int n_param_values, 1158s # const GValue *param_values, 1158s # void *invocation_hint G_GNUC_UNUSED, 1158s # void *marshal_data) 1158s # { 1158s # typedef gboolean (*_GDbusCodegenMarshalBoolean_ObjectStringFunc) 1158s # (void *data1, 1158s # GDBusMethodInvocation *arg_method_invocation, 1158s # const gchar *arg_arg_g, 1158s # void *data2); 1158s # _GDbusCodegenMarshalBoolean_ObjectStringFunc callback; 1158s # GCClosure *cc = (GCClosure*) closure; 1158s # void *data1, *data2; 1158s # gboolean v_return; 1158s # 1158s # g_return_if_fail (return_value != NULL); 1158s # g_return_if_fail (n_param_values == 3); 1158s # 1158s # if (G_CCLOSURE_SWAP_DATA (closure)) 1158s # { 1158s # data1 = closure->data; 1158s # data2 = g_value_peek_pointer (param_values + 0); 1158s # } 1158s # else 1158s # { 1158s # data1 = g_value_peek_pointer (param_values + 0); 1158s # data2 = closure->data; 1158s # } 1158s # 1158s # callback = (_GDbusCodegenMarshalBoolean_ObjectStringFunc) 1158s # (marshal_data ? marshal_data : cc->callback); 1158s # 1158s # v_return = 1158s # callback (data1, 1158s # g_marshal_value_peek_object (param_values + 1), 1158s # g_marshal_value_peek_string (param_values + 2), 1158s # data2); 1158s # 1158s # g_value_set_boolean (return_value, v_return); 1158s # } 1158s # 1158s # /* ------------------------------------------------------------------------ 1158s # * Code for interface org.project.UsefulInterface 1158s # * ------------------------------------------------------------------------ 1158s # */ 1158s # 1158s # /** 1158s # * SECTION:OrgProjectUsefulInterface 1158s # * @title: OrgProjectUsefulInterface 1158s # * @short_description: Generated C code for the org.project.UsefulInterface D-Bus interface 1158s # * 1158s # * This section contains code for working with the org.project.UsefulInterface D-Bus interface in C. 1158s # */ 1158s # 1158s # /* ---- Introspection data for org.project.UsefulInterface ---- */ 1158s # 1158s # static const _ExtendedGDBusArgInfo _org_project_useful_interface_method_info_single_arg_method_g_IN_ARG_arg_g = 1158s # { 1158s # { 1158s # -1, 1158s # (gchar *) "arg_g", 1158s # (gchar *) "g", 1158s # NULL 1158s # }, 1158s # FALSE 1158s # }; 1158s # 1158s # static const GDBusArgInfo * const _org_project_useful_interface_method_info_single_arg_method_g_IN_ARG_pointers[] = 1158s # { 1158s # &_org_project_useful_interface_method_info_single_arg_method_g_IN_ARG_arg_g.parent_struct, 1158s # NULL 1158s # }; 1158s # 1158s # static const _ExtendedGDBusMethodInfo _org_project_useful_interface_method_info_single_arg_method_g = 1158s # { 1158s # { 1158s # -1, 1158s # (gchar *) "SingleArgMethodG", 1158s # (GDBusArgInfo **) &_org_project_useful_interface_method_info_single_arg_method_g_IN_ARG_pointers, 1158s # NULL, 1158s # NULL 1158s # }, 1158s # "handle-single-arg-method-g", 1158s # FALSE 1158s # }; 1158s # 1158s # static const GDBusMethodInfo * const _org_project_useful_interface_method_info_pointers[] = 1158s # { 1158s # &_org_project_useful_interface_method_info_single_arg_method_g.parent_struct, 1158s # NULL 1158s # }; 1158s # 1158s # static const _ExtendedGDBusInterfaceInfo _org_project_useful_interface_interface_info = 1158s # { 1158s # { 1158s # -1, 1158s # (gchar *) "org.project.UsefulInterface", 1158s # (GDBusMethodInfo **) &_org_project_useful_interface_method_info_pointers, 1158s # NULL, 1158s # NULL, 1158s # NULL 1158s # }, 1158s # "org-project-useful-interface", 1158s # }; 1158s # 1158s # 1158s # /** 1158s # * org_project_useful_interface_interface_info: 1158s # * 1158s # * Gets a machine-readable description of the org.project.UsefulInterface D-Bus interface. 1158s # * 1158s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 1158s # */ 1158s # GDBusInterfaceInfo * 1158s # org_project_useful_interface_interface_info (void) 1158s # { 1158s # return (GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct; 1158s # } 1158s # 1158s # /** 1158s # * org_project_useful_interface_override_properties: 1158s # * @klass: The class structure for a #GObject derived class. 1158s # * @property_id_begin: The property id to assign to the first overridden property. 1158s # * 1158s # * Overrides all #GObject properties in the #OrgProjectUsefulInterface interface for a concrete class. 1158s # * The properties are overridden in the order they are defined. 1158s # * 1158s # * Returns: The last property id. 1158s # */ 1158s # guint 1158s # org_project_useful_interface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 1158s # { 1158s # return property_id_begin - 1; 1158s # } 1158s # 1158s # 1158s # inline static void 1158s # org_project_useful_interface_method_marshal_single_arg_method_g ( 1158s # GClosure *closure, 1158s # GValue *return_value, 1158s # unsigned int n_param_values, 1158s # const GValue *param_values, 1158s # void *invocation_hint, 1158s # void *marshal_data) 1158s # { 1158s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT_STRING (closure, 1158s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1158s # } 1158s # 1158s # 1158s # /** 1158s # * OrgProjectUsefulInterface: 1158s # * 1158s # * Abstract interface type for the D-Bus interface org.project.UsefulInterface. 1158s # */ 1158s # 1158s # /** 1158s # * OrgProjectUsefulInterfaceIface: 1158s # * @parent_iface: The parent interface. 1158s # * @handle_single_arg_method_g: Handler for the #OrgProjectUsefulInterface::handle-single-arg-method-g signal. 1158s # * 1158s # * Virtual table for the D-Bus interface org.project.UsefulInterface. 1158s # */ 1158s # 1158s # typedef OrgProjectUsefulInterfaceIface OrgProjectUsefulInterfaceInterface; 1158s # G_DEFINE_INTERFACE (OrgProjectUsefulInterface, org_project_useful_interface, G_TYPE_OBJECT) 1158s # 1158s # static void 1158s # org_project_useful_interface_default_init (OrgProjectUsefulInterfaceIface *iface) 1158s # { 1158s # /* GObject signals for incoming D-Bus method calls: */ 1158s # /** 1158s # * OrgProjectUsefulInterface::handle-single-arg-method-g: 1158s # * @object: A #OrgProjectUsefulInterface. 1158s # * @invocation: A #GDBusMethodInvocation. 1158s # * @arg_arg_g: Argument passed by remote caller. 1158s # * 1158s # * Signal emitted when a remote caller is invoking the SingleArgMethodG() D-Bus method. 1158s # * 1158s # * 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. 1158s # * 1158s # * 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. 1158s # */ 1158s # g_signal_new ("handle-single-arg-method-g", 1158s # G_TYPE_FROM_INTERFACE (iface), 1158s # G_SIGNAL_RUN_LAST, 1158s # G_STRUCT_OFFSET (OrgProjectUsefulInterfaceIface, handle_single_arg_method_g), 1158s # g_signal_accumulator_true_handled, 1158s # NULL, 1158s # org_project_useful_interface_method_marshal_single_arg_method_g, 1158s # G_TYPE_BOOLEAN, 1158s # 2, 1158s # G_TYPE_DBUS_METHOD_INVOCATION, G_TYPE_STRING); 1158s # 1158s # } 1158s # 1158s # /** 1158s # * org_project_useful_interface_call_single_arg_method_g: 1158s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1158s # * @arg_arg_g: Argument to pass with the method invocation. 1158s # * @cancellable: (nullable): A #GCancellable or %NULL. 1158s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL. 1158s # * @user_data: User data to pass to @callback. 1158s # * 1158s # * Asynchronously invokes the SingleArgMethodG() D-Bus method on @proxy. 1158s # * 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()). 1158s # * You can then call org_project_useful_interface_call_single_arg_method_g_finish() to get the result of the operation. 1158s # * 1158s # * See org_project_useful_interface_call_single_arg_method_g_sync() for the synchronous, blocking version of this method. 1158s # */ 1158s # void 1158s # org_project_useful_interface_call_single_arg_method_g ( 1158s # OrgProjectUsefulInterface *proxy, 1158s # const gchar *arg_arg_g, 1158s # GCancellable *cancellable, 1158s # GAsyncReadyCallback callback, 1158s # gpointer user_data) 1158s # { 1158s # g_dbus_proxy_call (G_DBUS_PROXY (proxy), 1158s # "SingleArgMethodG", 1158s # g_variant_new ("(g)", 1158s # arg_arg_g), 1158s # G_DBUS_CALL_FLAGS_NONE, 1158s # -1, 1158s # cancellable, 1158s # callback, 1158s # user_data); 1158s # } 1158s # 1158s # /** 1158s # * org_project_useful_interface_call_single_arg_method_g_finish: 1158s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1158s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_call_single_arg_method_g(). 1158s # * @error: Return location for error or %NULL. 1158s # * 1158s # * Finishes an operation started with org_project_useful_interface_call_single_arg_method_g(). 1158s # * 1158s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1158s # */ 1158s # gboolean 1158s # org_project_useful_interface_call_single_arg_method_g_finish ( 1158s # OrgProjectUsefulInterface *proxy, 1158s # GAsyncResult *res, 1158s # GError **error) 1158s # { 1158s # GVariant *_ret; 1158s # _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error); 1158s # if (_ret == NULL) 1158s # goto _out; 1158s # g_variant_get (_ret, 1158s # "()"); 1158s # g_variant_unref (_ret); 1158s # _out: 1158s # return _ret != NULL; 1158s # } 1158s # 1158s # /** 1158s # * org_project_useful_interface_call_single_arg_method_g_sync: 1158s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1158s # * @arg_arg_g: Argument to pass with the method invocation. 1158s # * @cancellable: (nullable): A #GCancellable or %NULL. 1158s # * @error: Return location for error or %NULL. 1158s # * 1158s # * Synchronously invokes the SingleArgMethodG() D-Bus method on @proxy. The calling thread is blocked until a reply is received. 1158s # * 1158s # * See org_project_useful_interface_call_single_arg_method_g() for the asynchronous version of this method. 1158s # * 1158s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1158s # */ 1158s # gboolean 1158s # org_project_useful_interface_call_single_arg_method_g_sync ( 1158s # OrgProjectUsefulInterface *proxy, 1158s # const gchar *arg_arg_g, 1158s # GCancellable *cancellable, 1158s # GError **error) 1158s # { 1158s # GVariant *_ret; 1158s # _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy), 1158s # "SingleArgMethodG", 1158s # g_variant_new ("(g)", 1158s # arg_arg_g), 1158s # G_DBUS_CALL_FLAGS_NONE, 1158s # -1, 1158s # cancellable, 1158s # error); 1158s # if (_ret == NULL) 1158s # goto _out; 1158s # g_variant_get (_ret, 1158s # "()"); 1158s # g_variant_unref (_ret); 1158s # _out: 1158s # return _ret != NULL; 1158s # } 1158s # 1158s # /** 1158s # * org_project_useful_interface_complete_single_arg_method_g: 1158s # * @object: A #OrgProjectUsefulInterface. 1158s # * @invocation: (transfer full): A #GDBusMethodInvocation. 1158s # * 1158s # * 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. 1158s # * 1158s # * This method will free @invocation, you cannot use it afterwards. 1158s # */ 1158s # void 1158s # org_project_useful_interface_complete_single_arg_method_g ( 1158s # OrgProjectUsefulInterface *object G_GNUC_UNUSED, 1158s # GDBusMethodInvocation *invocation) 1158s # { 1158s # g_dbus_method_invocation_return_value (invocation, 1158s # g_variant_new ("()")); 1158s # } 1158s # 1158s # /* ------------------------------------------------------------------------ */ 1158s # 1158s # /** 1158s # * OrgProjectUsefulInterfaceProxy: 1158s # * 1158s # * The #OrgProjectUsefulInterfaceProxy structure contains only private data and should only be accessed using the provided API. 1158s # */ 1158s # 1158s # /** 1158s # * OrgProjectUsefulInterfaceProxyClass: 1158s # * @parent_class: The parent class. 1158s # * 1158s # * Class structure for #OrgProjectUsefulInterfaceProxy. 1158s # */ 1158s # 1158s # struct _OrgProjectUsefulInterfaceProxyPrivate 1158s # { 1158s # GData *qdata; 1158s # }; 1158s # 1158s # static void org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface); 1158s # 1158s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1158s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 1158s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceProxy) 1158s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 1158s # 1158s # #else 1158s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 1158s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 1158s # 1158s # #endif 1158s # static void 1158s # org_project_useful_interface_proxy_finalize (GObject *object) 1158s # { 1158s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (object); 1158s # g_datalist_clear (&proxy->priv->qdata); 1158s # G_OBJECT_CLASS (org_project_useful_interface_proxy_parent_class)->finalize (object); 1158s # } 1158s # 1158s # static void 1158s # org_project_useful_interface_proxy_get_property (GObject *object G_GNUC_UNUSED, 1158s # guint prop_id G_GNUC_UNUSED, 1158s # GValue *value G_GNUC_UNUSED, 1158s # GParamSpec *pspec G_GNUC_UNUSED) 1158s # { 1158s # } 1158s # 1158s # static void 1158s # org_project_useful_interface_proxy_set_property (GObject *object G_GNUC_UNUSED, 1158s # guint prop_id G_GNUC_UNUSED, 1158s # const GValue *value G_GNUC_UNUSED, 1158s # GParamSpec *pspec G_GNUC_UNUSED) 1158s # { 1158s # } 1158s # 1158s # static void 1158s # org_project_useful_interface_proxy_g_signal (GDBusProxy *proxy, 1158s # const gchar *sender_name G_GNUC_UNUSED, 1158s # const gchar *signal_name, 1158s # GVariant *parameters) 1158s # { 1158s # _ExtendedGDBusSignalInfo *info; 1158s # GVariantIter iter; 1158s # GVariant *child; 1158s # GValue *paramv; 1158s # gsize num_params; 1158s # gsize n; 1158s # guint signal_id; 1158s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, signal_name); 1158s # if (info == NULL) 1158s # return; 1158s # num_params = g_variant_n_children (parameters); 1158s # paramv = g_new0 (GValue, num_params + 1); 1158s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1158s # g_value_set_object (¶mv[0], proxy); 1158s # g_variant_iter_init (&iter, parameters); 1158s # n = 1; 1158s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1158s # { 1158s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 1158s # if (arg_info->use_gvariant) 1158s # { 1158s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1158s # g_value_set_variant (¶mv[n], child); 1158s # n++; 1158s # } 1158s # else 1158s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1158s # g_variant_unref (child); 1158s # } 1158s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1158s # g_signal_emitv (paramv, signal_id, 0, NULL); 1158s # for (n = 0; n < num_params + 1; n++) 1158s # g_value_unset (¶mv[n]); 1158s # g_free (paramv); 1158s # } 1158s # 1158s # static void 1158s # org_project_useful_interface_proxy_g_properties_changed (GDBusProxy *_proxy, 1158s # GVariant *changed_properties, 1158s # const gchar *const *invalidated_properties) 1158s # { 1158s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (_proxy); 1158s # guint n; 1158s # const gchar *key; 1158s # GVariantIter *iter; 1158s # _ExtendedGDBusPropertyInfo *info; 1158s # g_variant_get (changed_properties, "a{sv}", &iter); 1158s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 1158s # { 1158s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, key); 1158s # g_datalist_remove_data (&proxy->priv->qdata, key); 1158s # if (info != NULL) 1158s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1158s # } 1158s # g_variant_iter_free (iter); 1158s # for (n = 0; invalidated_properties[n] != NULL; n++) 1158s # { 1158s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, invalidated_properties[n]); 1158s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 1158s # if (info != NULL) 1158s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1158s # } 1158s # } 1158s # 1158s # static void 1158s # org_project_useful_interface_proxy_init (OrgProjectUsefulInterfaceProxy *proxy) 1158s # { 1158s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1158s # proxy->priv = org_project_useful_interface_proxy_get_instance_private (proxy); 1158s # #else 1158s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY, OrgProjectUsefulInterfaceProxyPrivate); 1158s # #endif 1158s # 1158s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_useful_interface_interface_info ()); 1158s # } 1158s # 1158s # static void 1158s # org_project_useful_interface_proxy_class_init (OrgProjectUsefulInterfaceProxyClass *klass) 1158s # { 1158s # GObjectClass *gobject_class; 1158s # GDBusProxyClass *proxy_class; 1158s # 1158s # gobject_class = G_OBJECT_CLASS (klass); 1158s # gobject_class->finalize = org_project_useful_interface_proxy_finalize; 1158s # gobject_class->get_property = org_project_useful_interface_proxy_get_property; 1158s # gobject_class->set_property = org_project_useful_interface_proxy_set_property; 1158s # 1158s # proxy_class = G_DBUS_PROXY_CLASS (klass); 1158s # proxy_class->g_signal = org_project_useful_interface_proxy_g_signal; 1158s # proxy_class->g_properties_changed = org_project_useful_interface_proxy_g_properties_changed; 1158s # 1158s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1158s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceProxyPrivate)); 1158s # #endif 1158s # } 1158s # 1158s # static void 1158s # org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 1158s # { 1158s # } 1158s # 1158s # /** 1158s # * org_project_useful_interface_proxy_new: 1158s # * @connection: A #GDBusConnection. 1158s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1158s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1158s # * @object_path: An object path. 1158s # * @cancellable: (nullable): A #GCancellable or %NULL. 1158s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1158s # * @user_data: User data to pass to @callback. 1158s # * 1158s # * Asynchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new() for more details. 1158s # * 1158s # * 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()). 1158s # * You can then call org_project_useful_interface_proxy_new_finish() to get the result of the operation. 1158s # * 1158s # * See org_project_useful_interface_proxy_new_sync() for the synchronous, blocking version of this constructor. 1158s # */ 1158s # void 1158s # org_project_useful_interface_proxy_new ( 1158s # GDBusConnection *connection, 1158s # GDBusProxyFlags flags, 1158s # const gchar *name, 1158s # const gchar *object_path, 1158s # GCancellable *cancellable, 1158s # GAsyncReadyCallback callback, 1158s # gpointer user_data) 1158s # { 1158s # 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); 1158s # } 1158s # 1158s # /** 1158s # * org_project_useful_interface_proxy_new_finish: 1158s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new(). 1158s # * @error: Return location for error or %NULL 1158s # * 1158s # * Finishes an operation started with org_project_useful_interface_proxy_new(). 1158s # * 1158s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1158s # */ 1158s # OrgProjectUsefulInterface * 1158s # org_project_useful_interface_proxy_new_finish ( 1158s # GAsyncResult *res, 1158s # GError **error) 1158s # { 1158s # GObject *ret; 1158s # GObject *source_object; 1158s # source_object = g_async_result_get_source_object (res); 1158s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1158s # g_object_unref (source_object); 1158s # if (ret != NULL) 1158s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1158s # else 1158s # return NULL; 1158s # } 1158s # 1158s # /** 1158s # * org_project_useful_interface_proxy_new_sync: 1158s # * @connection: A #GDBusConnection. 1158s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1158s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1158s # * @object_path: An object path. 1158s # * @cancellable: (nullable): A #GCancellable or %NULL. 1158s # * @error: Return location for error or %NULL 1158s # * 1158s # * Synchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new_sync() for more details. 1158s # * 1158s # * The calling thread is blocked until a reply is received. 1158s # * 1158s # * See org_project_useful_interface_proxy_new() for the asynchronous version of this constructor. 1158s # * 1158s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1158s # */ 1158s # OrgProjectUsefulInterface * 1158s # org_project_useful_interface_proxy_new_sync ( 1158s # GDBusConnection *connection, 1158s # GDBusProxyFlags flags, 1158s # const gchar *name, 1158s # const gchar *object_path, 1158s # GCancellable *cancellable, 1158s # GError **error) 1158s # { 1158s # GInitable *ret; 1158s # 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); 1158s # if (ret != NULL) 1158s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1158s # else 1158s # return NULL; 1158s # } 1158s # 1158s # 1158s # /** 1158s # * org_project_useful_interface_proxy_new_for_bus: 1158s # * @bus_type: A #GBusType. 1158s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1158s # * @name: A bus name (well-known or unique). 1158s # * @object_path: An object path. 1158s # * @cancellable: (nullable): A #GCancellable or %NULL. 1158s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1158s # * @user_data: User data to pass to @callback. 1158s # * 1158s # * Like org_project_useful_interface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 1158s # * 1158s # * 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()). 1158s # * You can then call org_project_useful_interface_proxy_new_for_bus_finish() to get the result of the operation. 1158s # * 1158s # * See org_project_useful_interface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 1158s # */ 1158s # void 1158s # org_project_useful_interface_proxy_new_for_bus ( 1158s # GBusType bus_type, 1158s # GDBusProxyFlags flags, 1158s # const gchar *name, 1158s # const gchar *object_path, 1158s # GCancellable *cancellable, 1158s # GAsyncReadyCallback callback, 1158s # gpointer user_data) 1158s # { 1158s # 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); 1158s # } 1158s # 1158s # /** 1158s # * org_project_useful_interface_proxy_new_for_bus_finish: 1158s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new_for_bus(). 1158s # * @error: Return location for error or %NULL 1158s # * 1158s # * Finishes an operation started with org_project_useful_interface_proxy_new_for_bus(). 1158s # * 1158s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1158s # */ 1158s # OrgProjectUsefulInterface * 1158s # org_project_useful_interface_proxy_new_for_bus_finish ( 1158s # GAsyncResult *res, 1158s # GError **error) 1158s # { 1158s # GObject *ret; 1158s # GObject *source_object; 1158s # source_object = g_async_result_get_source_object (res); 1158s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1158s # g_object_unref (source_object); 1158s # if (ret != NULL) 1158s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1158s # else 1158s # return NULL; 1158s # } 1158s # 1158s # /** 1158s # * org_project_useful_interface_proxy_new_for_bus_sync: 1158s # * @bus_type: A #GBusType. 1158s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1158s # * @name: A bus name (well-known or unique). 1158s # * @object_path: An object path. 1158s # * @cancellable: (nullable): A #GCancellable or %NULL. 1158s # * @error: Return location for error or %NULL 1158s # * 1158s # * Like org_project_useful_interface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 1158s # * 1158s # * The calling thread is blocked until a reply is received. 1158s # * 1158s # * See org_project_useful_interface_proxy_new_for_bus() for the asynchronous version of this constructor. 1158s # * 1158s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1158s # */ 1158s # OrgProjectUsefulInterface * 1158s # org_project_useful_interface_proxy_new_for_bus_sync ( 1158s # GBusType bus_type, 1158s # GDBusProxyFlags flags, 1158s # const gchar *name, 1158s # const gchar *object_path, 1158s # GCancellable *cancellable, 1158s # GError **error) 1158s # { 1158s # GInitable *ret; 1158s # 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); 1158s # if (ret != NULL) 1158s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1158s # else 1158s # return NULL; 1158s # } 1158s # 1158s # 1158s # /* ------------------------------------------------------------------------ */ 1158s # 1158s # /** 1158s # * OrgProjectUsefulInterfaceSkeleton: 1158s # * 1158s # * The #OrgProjectUsefulInterfaceSkeleton structure contains only private data and should only be accessed using the provided API. 1158s # */ 1158s # 1158s # /** 1158s # * OrgProjectUsefulInterfaceSkeletonClass: 1158s # * @parent_class: The parent class. 1158s # * 1158s # * Class structure for #OrgProjectUsefulInterfaceSkeleton. 1158s # */ 1158s # 1158s # struct _OrgProjectUsefulInterfaceSkeletonPrivate 1158s # { 1158s # GValue *properties; 1158s # GList *changed_properties; 1158s # GSource *changed_properties_idle_source; 1158s # GMainContext *context; 1158s # GMutex lock; 1158s # }; 1158s # 1158s # static void 1158s # _org_project_useful_interface_skeleton_handle_method_call ( 1158s # GDBusConnection *connection G_GNUC_UNUSED, 1158s # const gchar *sender G_GNUC_UNUSED, 1158s # const gchar *object_path G_GNUC_UNUSED, 1158s # const gchar *interface_name, 1158s # const gchar *method_name, 1158s # GVariant *parameters, 1158s # GDBusMethodInvocation *invocation, 1158s # gpointer user_data) 1158s # { 1158s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1158s # _ExtendedGDBusMethodInfo *info; 1158s # GVariantIter iter; 1158s # GVariant *child; 1158s # GValue *paramv; 1158s # gsize num_params; 1158s # guint num_extra; 1158s # gsize n; 1158s # guint signal_id; 1158s # GValue return_value = G_VALUE_INIT; 1158s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 1158s # g_assert (info != NULL); 1158s # num_params = g_variant_n_children (parameters); 1158s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 1158s # n = 0; 1158s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1158s # g_value_set_object (¶mv[n++], skeleton); 1158s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 1158s # g_value_set_object (¶mv[n++], invocation); 1158s # if (info->pass_fdlist) 1158s # { 1158s # #ifdef G_OS_UNIX 1158s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 1158s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 1158s # #else 1158s # g_assert_not_reached (); 1158s # #endif 1158s # } 1158s # g_variant_iter_init (&iter, parameters); 1158s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1158s # { 1158s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 1158s # if (arg_info->use_gvariant) 1158s # { 1158s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1158s # g_value_set_variant (¶mv[n], child); 1158s # n++; 1158s # } 1158s # else 1158s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1158s # g_variant_unref (child); 1158s # } 1158s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1158s # g_value_init (&return_value, G_TYPE_BOOLEAN); 1158s # g_signal_emitv (paramv, signal_id, 0, &return_value); 1158s # if (!g_value_get_boolean (&return_value)) 1158s # 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); 1158s # g_value_unset (&return_value); 1158s # for (n = 0; n < num_params + num_extra; n++) 1158s # g_value_unset (¶mv[n]); 1158s # g_free (paramv); 1158s # } 1158s # 1158s # static GVariant * 1158s # _org_project_useful_interface_skeleton_handle_get_property ( 1158s # GDBusConnection *connection G_GNUC_UNUSED, 1158s # const gchar *sender G_GNUC_UNUSED, 1158s # const gchar *object_path G_GNUC_UNUSED, 1158s # const gchar *interface_name G_GNUC_UNUSED, 1158s # const gchar *property_name, 1158s # GError **error, 1158s # gpointer user_data) 1158s # { 1158s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1158s # GValue value = G_VALUE_INIT; 1158s # GParamSpec *pspec; 1158s # _ExtendedGDBusPropertyInfo *info; 1158s # GVariant *ret; 1158s # ret = NULL; 1158s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 1158s # g_assert (info != NULL); 1158s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1158s # if (pspec == NULL) 1158s # { 1158s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1158s # } 1158s # else 1158s # { 1158s # g_value_init (&value, pspec->value_type); 1158s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1158s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 1158s # g_value_unset (&value); 1158s # } 1158s # return ret; 1158s # } 1158s # 1158s # static gboolean 1158s # _org_project_useful_interface_skeleton_handle_set_property ( 1158s # GDBusConnection *connection G_GNUC_UNUSED, 1158s # const gchar *sender G_GNUC_UNUSED, 1158s # const gchar *object_path G_GNUC_UNUSED, 1158s # const gchar *interface_name G_GNUC_UNUSED, 1158s # const gchar *property_name, 1158s # GVariant *variant, 1158s # GError **error, 1158s # gpointer user_data) 1158s # { 1158s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1158s # GValue value = G_VALUE_INIT; 1158s # GParamSpec *pspec; 1158s # _ExtendedGDBusPropertyInfo *info; 1158s # gboolean ret; 1158s # ret = FALSE; 1158s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 1158s # g_assert (info != NULL); 1158s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1158s # if (pspec == NULL) 1158s # { 1158s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1158s # } 1158s # else 1158s # { 1158s # if (info->use_gvariant) 1158s # g_value_set_variant (&value, variant); 1158s # else 1158s # g_dbus_gvariant_to_gvalue (variant, &value); 1158s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1158s # g_value_unset (&value); 1158s # ret = TRUE; 1158s # } 1158s # return ret; 1158s # } 1158s # 1158s # static const GDBusInterfaceVTable _org_project_useful_interface_skeleton_vtable = 1158s # { 1158s # _org_project_useful_interface_skeleton_handle_method_call, 1158s # _org_project_useful_interface_skeleton_handle_get_property, 1158s # _org_project_useful_interface_skeleton_handle_set_property, 1158s # {NULL} 1158s # }; 1158s # 1158s # static GDBusInterfaceInfo * 1158s # org_project_useful_interface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1158s # { 1158s # return org_project_useful_interface_interface_info (); 1158s # } 1158s # 1158s # static GDBusInterfaceVTable * 1158s # org_project_useful_interface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1158s # { 1158s # return (GDBusInterfaceVTable *) &_org_project_useful_interface_skeleton_vtable; 1158s # } 1158s # 1158s # static GVariant * 1158s # org_project_useful_interface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 1158s # { 1158s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (_skeleton); 1158s # 1158s # GVariantBuilder builder; 1158s # guint n; 1158s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 1158s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 1158s # #else 1158s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 1158s # #endif 1158s # if (_org_project_useful_interface_interface_info.parent_struct.properties == NULL) 1158s # goto out; 1158s # for (n = 0; _org_project_useful_interface_interface_info.parent_struct.properties[n] != NULL; n++) 1158s # { 1158s # GDBusPropertyInfo *info = _org_project_useful_interface_interface_info.parent_struct.properties[n]; 1158s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 1158s # { 1158s # GVariant *value; 1158s # 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); 1158s # if (value != NULL) 1158s # { 1158s # g_variant_take_ref (value); 1158s # g_variant_builder_add (&builder, "{sv}", info->name, value); 1158s # g_variant_unref (value); 1158s # } 1158s # } 1158s # } 1158s # out: 1158s # return g_variant_builder_end (&builder); 1158s # } 1158s # 1158s # static void 1158s # org_project_useful_interface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 1158s # { 1158s # } 1158s # 1158s # static void org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface); 1158s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1158s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1158s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceSkeleton) 1158s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 1158s # 1158s # #else 1158s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1158s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 1158s # 1158s # #endif 1158s # static void 1158s # org_project_useful_interface_skeleton_finalize (GObject *object) 1158s # { 1158s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (object); 1158s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 1158s # if (skeleton->priv->changed_properties_idle_source != NULL) 1158s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 1158s # g_main_context_unref (skeleton->priv->context); 1158s # g_mutex_clear (&skeleton->priv->lock); 1158s # G_OBJECT_CLASS (org_project_useful_interface_skeleton_parent_class)->finalize (object); 1158s # } 1158s # 1158s # static void 1158s # org_project_useful_interface_skeleton_init (OrgProjectUsefulInterfaceSkeleton *skeleton) 1158s # { 1158s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1158s # skeleton->priv = org_project_useful_interface_skeleton_get_instance_private (skeleton); 1158s # #else 1158s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, OrgProjectUsefulInterfaceSkeletonPrivate); 1158s # #endif 1158s # 1158s # g_mutex_init (&skeleton->priv->lock); 1158s # skeleton->priv->context = g_main_context_ref_thread_default (); 1158s # } 1158s # 1158s # static void 1158s # org_project_useful_interface_skeleton_class_init (OrgProjectUsefulInterfaceSkeletonClass *klass) 1158s # { 1158s # GObjectClass *gobject_class; 1158s # GDBusInterfaceSkeletonClass *skeleton_class; 1158s # 1158s # gobject_class = G_OBJECT_CLASS (klass); 1158s # gobject_class->finalize = org_project_useful_interface_skeleton_finalize; 1158s # 1158s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 1158s # skeleton_class->get_info = org_project_useful_interface_skeleton_dbus_interface_get_info; 1158s # skeleton_class->get_properties = org_project_useful_interface_skeleton_dbus_interface_get_properties; 1158s # skeleton_class->flush = org_project_useful_interface_skeleton_dbus_interface_flush; 1158s # skeleton_class->get_vtable = org_project_useful_interface_skeleton_dbus_interface_get_vtable; 1158s # 1158s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1158s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceSkeletonPrivate)); 1158s # #endif 1158s # } 1158s # 1158s # static void 1158s # org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 1158s # { 1158s # } 1158s # 1158s # /** 1158s # * org_project_useful_interface_skeleton_new: 1158s # * 1158s # * Creates a skeleton object for the D-Bus interface org.project.UsefulInterface. 1158s # * 1158s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceSkeleton): The skeleton object. 1158s # */ 1158s # OrgProjectUsefulInterface * 1158s # org_project_useful_interface_skeleton_new (void) 1158s # { 1158s # return ORG_PROJECT_USEFUL_INTERFACE (g_object_new (TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, NULL)); 1158s # } 1158s # Error: 1158s # 1158s # /tmp/tmpv_fj8nn0/tmp5mfvo10y.xml: 1158s # 1158s # 1158s # 1158s # 1158s # 1158s # 1158s # 1158s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpv_fj8nn0/tmp5mfvo10y.xml', '--output', '-', '--body'] 1158s # Return code: 0 1158s # Output: 1158s # /* 1158s # * This file is generated by gdbus-codegen, do not modify it. 1158s # * 1158s # * The license of this code is the same as for the D-Bus interface description 1158s # * it was derived from. Note that it links to GLib, so must comply with the 1158s # * LGPL linking clauses. 1158s # */ 1158s # 1158s # #ifdef HAVE_CONFIG_H 1158s # # include "config.h" 1158s # #endif 1158s # 1158s # #include 1158s # #ifdef G_OS_UNIX 1158s # # include 1158s # #endif 1158s # 1158s # #ifdef G_ENABLE_DEBUG 1158s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 1158s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 1158s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 1158s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 1158s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 1158s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 1158s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 1158s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 1158s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 1158s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 1158s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 1158s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 1158s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 1158s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 1158s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 1158s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 1158s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 1158s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 1158s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 1158s # #else /* !G_ENABLE_DEBUG */ 1158s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 1158s # * Do not access GValues directly in your code. Instead, use the 1158s # * g_value_get_*() functions 1158s # */ 1158s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 1158s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 1158s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 1158s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 1158s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 1158s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 1158s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 1158s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 1158s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 1158s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 1158s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 1158s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 1158s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 1158s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 1158s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 1158s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 1158s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 1158s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 1158s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 1158s # #endif /* !G_ENABLE_DEBUG */ 1158s # 1158s # typedef struct 1158s # { 1158s # GDBusArgInfo parent_struct; 1158s # gboolean use_gvariant; 1158s # } _ExtendedGDBusArgInfo; 1158s # 1158s # typedef struct 1158s # { 1158s # GDBusMethodInfo parent_struct; 1158s # const gchar *signal_name; 1158s # gboolean pass_fdlist; 1158s # } _ExtendedGDBusMethodInfo; 1158s # 1158s # typedef struct 1158s # { 1158s # GDBusSignalInfo parent_struct; 1158s # const gchar *signal_name; 1158s # } _ExtendedGDBusSignalInfo; 1158s # 1158s # typedef struct 1158s # { 1158s # GDBusPropertyInfo parent_struct; 1158s # const gchar *hyphen_name; 1158s # guint use_gvariant : 1; 1158s # guint emits_changed_signal : 1; 1158s # } _ExtendedGDBusPropertyInfo; 1158s # 1158s # typedef struct 1158s # { 1158s # GDBusInterfaceInfo parent_struct; 1158s # const gchar *hyphen_name; 1158s # } _ExtendedGDBusInterfaceInfo; 1158s # 1158s # typedef struct 1158s # { 1158s # const _ExtendedGDBusPropertyInfo *info; 1158s # guint prop_id; 1158s # GValue orig_value; /* the value before the change */ 1158s # } ChangedProperty; 1158s # 1158s # static void 1158s # _changed_property_free (ChangedProperty *data) 1158s # { 1158s # g_value_unset (&data->orig_value); 1158s # g_free (data); 1158s # } 1158s # 1158s # static gboolean 1158s # _g_strv_equal0 (gchar **a, gchar **b) 1158s # { 1158s # gboolean ret = FALSE; 1158s # guint n; 1158s # if (a == NULL && b == NULL) 1158s # { 1158s # ret = TRUE; 1158s # goto out; 1158s # } 1158s # if (a == NULL || b == NULL) 1158s # goto out; 1158s # if (g_strv_length (a) != g_strv_length (b)) 1158s # goto out; 1158s # for (n = 0; a[n] != NULL; n++) 1158s # if (g_strcmp0 (a[n], b[n]) != 0) 1158s # goto out; 1158s # ret = TRUE; 1158s # out: 1158s # return ret; 1158s # } 1158s # 1158s # static gboolean 1158s # _g_variant_equal0 (GVariant *a, GVariant *b) 1158s # { 1158s # gboolean ret = FALSE; 1158s # if (a == NULL && b == NULL) 1158s # { 1158s # ret = TRUE; 1158s # goto out; 1158s # } 1158s # if (a == NULL || b == NULL) 1158s # goto out; 1158s # ret = g_variant_equal (a, b); 1158s # out: 1158s # return ret; 1158s # } 1158s # 1158s # G_GNUC_UNUSED static gboolean 1158s # _g_value_equal (const GValue *a, const GValue *b) 1158s # { 1158s # gboolean ret = FALSE; 1158s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 1158s # switch (G_VALUE_TYPE (a)) 1158s # { 1158s # case G_TYPE_BOOLEAN: 1158s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 1158s # break; 1158s # case G_TYPE_UCHAR: 1158s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 1158s # break; 1158s # case G_TYPE_INT: 1158s # ret = (g_value_get_int (a) == g_value_get_int (b)); 1158s # break; 1158s # case G_TYPE_UINT: 1158s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 1158s # break; 1158s # case G_TYPE_INT64: 1158s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 1158s # break; 1158s # case G_TYPE_UINT64: 1158s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 1158s # break; 1158s # case G_TYPE_DOUBLE: 1158s # { 1158s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 1158s # gdouble da = g_value_get_double (a); 1158s # gdouble db = g_value_get_double (b); 1158s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 1158s # } 1158s # break; 1158s # case G_TYPE_STRING: 1158s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 1158s # break; 1158s # case G_TYPE_VARIANT: 1158s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 1158s # break; 1158s # default: 1158s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 1158s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 1158s # else 1158s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 1158s # break; 1158s # } 1158s # return ret; 1158s # } 1158s # 1158s # static void 1158s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT_VARIANT ( 1158s # GClosure *closure, 1158s # GValue *return_value, 1158s # unsigned int n_param_values, 1158s # const GValue *param_values, 1158s # void *invocation_hint G_GNUC_UNUSED, 1158s # void *marshal_data) 1158s # { 1158s # typedef gboolean (*_GDbusCodegenMarshalBoolean_ObjectVariantFunc) 1158s # (void *data1, 1158s # GDBusMethodInvocation *arg_method_invocation, 1158s # GVariant *arg_arg_h, 1158s # void *data2); 1158s # _GDbusCodegenMarshalBoolean_ObjectVariantFunc callback; 1158s # GCClosure *cc = (GCClosure*) closure; 1158s # void *data1, *data2; 1158s # gboolean v_return; 1158s # 1158s # g_return_if_fail (return_value != NULL); 1158s # g_return_if_fail (n_param_values == 3); 1158s # 1158s # if (G_CCLOSURE_SWAP_DATA (closure)) 1158s # { 1158s # data1 = closure->data; 1158s # data2 = g_value_peek_pointer (param_values + 0); 1158s # } 1158s # else 1158s # { 1158s # data1 = g_value_peek_pointer (param_values + 0); 1158s # data2 = closure->data; 1158s # } 1158s # 1158s # callback = (_GDbusCodegenMarshalBoolean_ObjectVariantFunc) 1158s # (marshal_data ? marshal_data : cc->callback); 1158s # 1158s # v_return = 1158s # callback (data1, 1158s # g_marshal_value_peek_object (param_values + 1), 1158s # g_marshal_value_peek_variant (param_values + 2), 1158s # data2); 1158s # 1158s # g_value_set_boolean (return_value, v_return); 1158s # } 1158s # 1158s # /* ------------------------------------------------------------------------ 1158s # * Code for interface org.project.UsefulInterface 1158s # * ------------------------------------------------------------------------ 1158s # */ 1158s # 1158s # /** 1158s # * SECTION:OrgProjectUsefulInterface 1158s # * @title: OrgProjectUsefulInterface 1158s # * @short_description: Generated C code for the org.project.UsefulInterface D-Bus interface 1158s # * 1158s # * This section contains code for working with the org.project.UsefulInterface D-Bus interface in C. 1158s # */ 1158s # 1158s # /* ---- Introspection data for org.project.UsefulInterface ---- */ 1158s # 1158s # static const _ExtendedGDBusArgInfo _org_project_useful_interface_method_info_single_arg_method_h_IN_ARG_arg_h = 1158s # { 1158s # { 1158s # -1, 1158s # (gchar *) "arg_h", 1158s # (gchar *) "h", 1158s # NULL 1158s # }, 1158s # FALSE 1158s # }; 1158s # 1158s # static const GDBusArgInfo * const _org_project_useful_interface_method_info_single_arg_method_h_IN_ARG_pointers[] = 1158s # { 1158s # &_org_project_useful_interface_method_info_single_arg_method_h_IN_ARG_arg_h.parent_struct, 1158s # NULL 1158s # }; 1158s # 1158s # static const _ExtendedGDBusMethodInfo _org_project_useful_interface_method_info_single_arg_method_h = 1158s # { 1158s # { 1158s # -1, 1158s # (gchar *) "SingleArgMethodH", 1158s # (GDBusArgInfo **) &_org_project_useful_interface_method_info_single_arg_method_h_IN_ARG_pointers, 1158s # NULL, 1158s # NULL 1158s # }, 1158s # "handle-single-arg-method-h", 1158s # FALSE 1158s # }; 1158s # 1158s # static const GDBusMethodInfo * const _org_project_useful_interface_method_info_pointers[] = 1158s # { 1158s # &_org_project_useful_interface_method_info_single_arg_method_h.parent_struct, 1158s # NULL 1158s # }; 1158s # 1158s # static const _ExtendedGDBusInterfaceInfo _org_project_useful_interface_interface_info = 1158s # { 1158s # { 1158s # -1, 1158s # (gchar *) "org.project.UsefulInterface", 1158s # (GDBusMethodInfo **) &_org_project_useful_interface_method_info_pointers, 1158s # NULL, 1158s # NULL, 1158s # NULL 1158s # }, 1158s # "org-project-useful-interface", 1158s # }; 1158s # 1158s # 1158s # /** 1158s # * org_project_useful_interface_interface_info: 1158s # * 1158s # * Gets a machine-readable description of the org.project.UsefulInterface D-Bus interface. 1158s # * 1158s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 1158s # */ 1158s # GDBusInterfaceInfo * 1158s # org_project_useful_interface_interface_info (void) 1158s # { 1158s # return (GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct; 1158s # } 1158s # 1158s # /** 1158s # * org_project_useful_interface_override_properties: 1158s # * @klass: The class structure for a #GObject derived class. 1158s # * @property_id_begin: The property id to assign to the first overridden property. 1158s # * 1158s # * Overrides all #GObject properties in the #OrgProjectUsefulInterface interface for a concrete class. 1158s # * The properties are overridden in the order they are defined. 1158s # * 1158s # * Returns: The last property id. 1158s # */ 1158s # guint 1158s # org_project_useful_interface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 1158s # { 1158s # return property_id_begin - 1; 1158s # } 1158s # 1158s # 1158s # inline static void 1158s # org_project_useful_interface_method_marshal_single_arg_method_h ( 1158s # GClosure *closure, 1158s # GValue *return_value, 1158s # unsigned int n_param_values, 1158s # const GValue *param_values, 1158s # void *invocation_hint, 1158s # void *marshal_data) 1158s # { 1158s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT_VARIANT (closure, 1158s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1158s # } 1158s # 1158s # 1158s # /** 1158s # * OrgProjectUsefulInterface: 1158s # * 1158s # * Abstract interface type for the D-Bus interface org.project.UsefulInterface. 1158s # */ 1158s # 1158s # /** 1158s # * OrgProjectUsefulInterfaceIface: 1158s # * @parent_iface: The parent interface. 1158s # * @handle_single_arg_method_h: Handler for the #OrgProjectUsefulInterface::handle-single-arg-method-h signal. 1158s # * 1158s # * Virtual table for the D-Bus interface org.project.UsefulInterface. 1158s # */ 1158s # 1158s # typedef OrgProjectUsefulInterfaceIface OrgProjectUsefulInterfaceInterface; 1158s # G_DEFINE_INTERFACE (OrgProjectUsefulInterface, org_project_useful_interface, G_TYPE_OBJECT) 1158s # 1158s # static void 1158s # org_project_useful_interface_default_init (OrgProjectUsefulInterfaceIface *iface) 1158s # { 1158s # /* GObject signals for incoming D-Bus method calls: */ 1158s # /** 1158s # * OrgProjectUsefulInterface::handle-single-arg-method-h: 1158s # * @object: A #OrgProjectUsefulInterface. 1158s # * @invocation: A #GDBusMethodInvocation. 1158s # * @arg_arg_h: Argument passed by remote caller. 1158s # * 1158s # * Signal emitted when a remote caller is invoking the SingleArgMethodH() D-Bus method. 1158s # * 1158s # * 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. 1158s # * 1158s # * 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. 1158s # */ 1158s # g_signal_new ("handle-single-arg-method-h", 1158s # G_TYPE_FROM_INTERFACE (iface), 1158s # G_SIGNAL_RUN_LAST, 1158s # G_STRUCT_OFFSET (OrgProjectUsefulInterfaceIface, handle_single_arg_method_h), 1158s # g_signal_accumulator_true_handled, 1158s # NULL, 1158s # org_project_useful_interface_method_marshal_single_arg_method_h, 1158s # G_TYPE_BOOLEAN, 1158s # 2, 1158s # G_TYPE_DBUS_METHOD_INVOCATION, G_TYPE_VARIANT); 1158s # 1158s # } 1158s # 1158s # /** 1158s # * org_project_useful_interface_call_single_arg_method_h: 1158s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1158s # * @arg_arg_h: Argument to pass with the method invocation. 1158s # * @cancellable: (nullable): A #GCancellable or %NULL. 1158s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL. 1158s # * @user_data: User data to pass to @callback. 1158s # * 1158s # * Asynchronously invokes the SingleArgMethodH() D-Bus method on @proxy. 1158s # * 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()). 1158s # * You can then call org_project_useful_interface_call_single_arg_method_h_finish() to get the result of the operation. 1158s # * 1158s # * See org_project_useful_interface_call_single_arg_method_h_sync() for the synchronous, blocking version of this method. 1158s # */ 1158s # void 1158s # org_project_useful_interface_call_single_arg_method_h ( 1158s # OrgProjectUsefulInterface *proxy, 1158s # GVariant *arg_arg_h, 1158s # GCancellable *cancellable, 1158s # GAsyncReadyCallback callback, 1158s # gpointer user_data) 1158s # { 1158s # g_dbus_proxy_call (G_DBUS_PROXY (proxy), 1158s # "SingleArgMethodH", 1158s # g_variant_new ("(@h)", 1158s # arg_arg_h), 1158s # G_DBUS_CALL_FLAGS_NONE, 1158s # -1, 1158s # cancellable, 1158s # callback, 1158s # user_data); 1158s # } 1158s # 1158s # /** 1158s # * org_project_useful_interface_call_single_arg_method_h_finish: 1158s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1158s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_call_single_arg_method_h(). 1158s # * @error: Return location for error or %NULL. 1158s # * 1158s # * Finishes an operation started with org_project_useful_interface_call_single_arg_method_h(). 1158s # * 1158s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1158s # */ 1158s # gboolean 1158s # org_project_useful_interface_call_single_arg_method_h_finish ( 1158s # OrgProjectUsefulInterface *proxy, 1158s # GAsyncResult *res, 1158s # GError **error) 1158s # { 1158s # GVariant *_ret; 1158s # _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error); 1158s # if (_ret == NULL) 1158s # goto _out; 1158s # g_variant_get (_ret, 1158s # "()"); 1158s # g_variant_unref (_ret); 1158s # _out: 1158s # return _ret != NULL; 1158s # } 1158s # 1158s # /** 1158s # * org_project_useful_interface_call_single_arg_method_h_sync: 1158s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1158s # * @arg_arg_h: Argument to pass with the method invocation. 1158s # * @cancellable: (nullable): A #GCancellable or %NULL. 1158s # * @error: Return location for error or %NULL. 1158s # * 1158s # * Synchronously invokes the SingleArgMethodH() D-Bus method on @proxy. The calling thread is blocked until a reply is received. 1158s # * 1158s # * See org_project_useful_interface_call_single_arg_method_h() for the asynchronous version of this method. 1158s # * 1158s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1158s # */ 1158s # gboolean 1158s # org_project_useful_interface_call_single_arg_method_h_sync ( 1158s # OrgProjectUsefulInterface *proxy, 1158s # GVariant *arg_arg_h, 1158s # GCancellable *cancellable, 1158s # GError **error) 1158s # { 1158s # GVariant *_ret; 1158s # _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy), 1158s # "SingleArgMethodH", 1158s # g_variant_new ("(@h)", 1158s # arg_arg_h), 1158s # G_DBUS_CALL_FLAGS_NONE, 1158s # -1, 1158s # cancellable, 1158s # error); 1158s # if (_ret == NULL) 1158s # goto _out; 1158s # g_variant_get (_ret, 1158s # "()"); 1158s # g_variant_unref (_ret); 1158s # _out: 1158s # return _ret != NULL; 1158s # } 1158s # 1158s # /** 1158s # * org_project_useful_interface_complete_single_arg_method_h: 1158s # * @object: A #OrgProjectUsefulInterface. 1158s # * @invocation: (transfer full): A #GDBusMethodInvocation. 1158s # * 1158s # * 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. 1158s # * 1158s # * This method will free @invocation, you cannot use it afterwards. 1158s # */ 1158s # void 1158s # org_project_useful_interface_complete_single_arg_method_h ( 1158s # OrgProjectUsefulInterface *object G_GNUC_UNUSED, 1158s # GDBusMethodInvocation *invocation) 1158s # { 1158s # g_dbus_method_invocation_return_value (invocation, 1158s # g_variant_new ("()")); 1158s # } 1158s # 1158s # /* ------------------------------------------------------------------------ */ 1158s # 1158s # /** 1158s # * OrgProjectUsefulInterfaceProxy: 1158s # * 1158s # * The #OrgProjectUsefulInterfaceProxy structure contains only private data and should only be accessed using the provided API. 1158s # */ 1158s # 1158s # /** 1158s # * OrgProjectUsefulInterfaceProxyClass: 1158s # * @parent_class: The parent class. 1158s # * 1158s # * Class structure for #OrgProjectUsefulInterfaceProxy. 1158s # */ 1158s # 1158s # struct _OrgProjectUsefulInterfaceProxyPrivate 1158s # { 1158s # GData *qdata; 1158s # }; 1158s # 1158s # static void org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface); 1158s # 1158s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1158s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 1158s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceProxy) 1158s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 1158s # 1158s # #else 1158s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 1158s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 1158s # 1158s # #endif 1158s # static void 1158s # org_project_useful_interface_proxy_finalize (GObject *object) 1158s # { 1158s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (object); 1158s # g_datalist_clear (&proxy->priv->qdata); 1158s # G_OBJECT_CLASS (org_project_useful_interface_proxy_parent_class)->finalize (object); 1158s # } 1158s # 1158s # static void 1158s # org_project_useful_interface_proxy_get_property (GObject *object G_GNUC_UNUSED, 1158s # guint prop_id G_GNUC_UNUSED, 1158s # GValue *value G_GNUC_UNUSED, 1158s # GParamSpec *pspec G_GNUC_UNUSED) 1158s # { 1158s # } 1158s # 1158s # static void 1158s # org_project_useful_interface_proxy_set_property (GObject *object G_GNUC_UNUSED, 1158s # guint prop_id G_GNUC_UNUSED, 1158s # const GValue *value G_GNUC_UNUSED, 1158s # GParamSpec *pspec G_GNUC_UNUSED) 1158s # { 1158s # } 1158s # 1158s # static void 1158s # org_project_useful_interface_proxy_g_signal (GDBusProxy *proxy, 1158s # const gchar *sender_name G_GNUC_UNUSED, 1158s # const gchar *signal_name, 1158s # GVariant *parameters) 1158s # { 1158s # _ExtendedGDBusSignalInfo *info; 1158s # GVariantIter iter; 1158s # GVariant *child; 1158s # GValue *paramv; 1158s # gsize num_params; 1158s # gsize n; 1158s # guint signal_id; 1158s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, signal_name); 1158s # if (info == NULL) 1158s # return; 1158s # num_params = g_variant_n_children (parameters); 1158s # paramv = g_new0 (GValue, num_params + 1); 1158s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1158s # g_value_set_object (¶mv[0], proxy); 1158s # g_variant_iter_init (&iter, parameters); 1158s # n = 1; 1158s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1158s # { 1158s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 1158s # if (arg_info->use_gvariant) 1158s # { 1158s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1158s # g_value_set_variant (¶mv[n], child); 1158s # n++; 1158s # } 1158s # else 1158s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1158s # g_variant_unref (child); 1158s # } 1158s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1158s # g_signal_emitv (paramv, signal_id, 0, NULL); 1158s # for (n = 0; n < num_params + 1; n++) 1158s # g_value_unset (¶mv[n]); 1158s # g_free (paramv); 1158s # } 1158s # 1158s # static void 1158s # org_project_useful_interface_proxy_g_properties_changed (GDBusProxy *_proxy, 1158s # GVariant *changed_properties, 1158s # const gchar *const *invalidated_properties) 1158s # { 1158s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (_proxy); 1158s # guint n; 1158s # const gchar *key; 1158s # GVariantIter *iter; 1158s # _ExtendedGDBusPropertyInfo *info; 1158s # g_variant_get (changed_properties, "a{sv}", &iter); 1158s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 1158s # { 1158s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, key); 1158s # g_datalist_remove_data (&proxy->priv->qdata, key); 1158s # if (info != NULL) 1158s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1158s # } 1158s # g_variant_iter_free (iter); 1158s # for (n = 0; invalidated_properties[n] != NULL; n++) 1158s # { 1158s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, invalidated_properties[n]); 1158s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 1158s # if (info != NULL) 1158s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1158s # } 1158s # } 1158s # 1158s # static void 1158s # org_project_useful_interface_proxy_init (OrgProjectUsefulInterfaceProxy *proxy) 1158s # { 1158s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1158s # proxy->priv = org_project_useful_interface_proxy_get_instance_private (proxy); 1158s # #else 1158s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY, OrgProjectUsefulInterfaceProxyPrivate); 1158s # #endif 1158s # 1158s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_useful_interface_interface_info ()); 1158s # } 1158s # 1158s # static void 1158s # org_project_useful_interface_proxy_class_init (OrgProjectUsefulInterfaceProxyClass *klass) 1158s # { 1158s # GObjectClass *gobject_class; 1158s # GDBusProxyClass *proxy_class; 1158s # 1158s # gobject_class = G_OBJECT_CLASS (klass); 1158s # gobject_class->finalize = org_project_useful_interface_proxy_finalize; 1158s # gobject_class->get_property = org_project_useful_interface_proxy_get_property; 1158s # gobject_class->set_property = org_project_useful_interface_proxy_set_property; 1158s # 1158s # proxy_class = G_DBUS_PROXY_CLASS (klass); 1158s # proxy_class->g_signal = org_project_useful_interface_proxy_g_signal; 1158s # proxy_class->g_properties_changed = org_project_useful_interface_proxy_g_properties_changed; 1158s # 1158s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1158s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceProxyPrivate)); 1158s # #endif 1158s # } 1158s # 1158s # static void 1158s # org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 1158s # { 1158s # } 1158s # 1158s # /** 1158s # * org_project_useful_interface_proxy_new: 1158s # * @connection: A #GDBusConnection. 1158s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1158s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1158s # * @object_path: An object path. 1158s # * @cancellable: (nullable): A #GCancellable or %NULL. 1158s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1158s # * @user_data: User data to pass to @callback. 1158s # * 1158s # * Asynchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new() for more details. 1158s # * 1158s # * 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()). 1158s # * You can then call org_project_useful_interface_proxy_new_finish() to get the result of the operation. 1158s # * 1158s # * See org_project_useful_interface_proxy_new_sync() for the synchronous, blocking version of this constructor. 1158s # */ 1158s # void 1158s # org_project_useful_interface_proxy_new ( 1158s # GDBusConnection *connection, 1158s # GDBusProxyFlags flags, 1158s # const gchar *name, 1158s # const gchar *object_path, 1158s # GCancellable *cancellable, 1158s # GAsyncReadyCallback callback, 1158s # gpointer user_data) 1158s # { 1158s # 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); 1158s # } 1158s # 1158s # /** 1158s # * org_project_useful_interface_proxy_new_finish: 1158s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new(). 1158s # * @error: Return location for error or %NULL 1158s # * 1158s # * Finishes an operation started with org_project_useful_interface_proxy_new(). 1158s # * 1158s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1158s # */ 1158s # OrgProjectUsefulInterface * 1158s # org_project_useful_interface_proxy_new_finish ( 1158s # GAsyncResult *res, 1158s # GError **error) 1158s # { 1158s # GObject *ret; 1158s # GObject *source_object; 1158s # source_object = g_async_result_get_source_object (res); 1158s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1158s # g_object_unref (source_object); 1158s # if (ret != NULL) 1158s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1158s # else 1158s # return NULL; 1158s # } 1158s # 1158s # /** 1158s # * org_project_useful_interface_proxy_new_sync: 1158s # * @connection: A #GDBusConnection. 1158s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1158s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1158s # * @object_path: An object path. 1158s # * @cancellable: (nullable): A #GCancellable or %NULL. 1158s # * @error: Return location for error or %NULL 1158s # * 1158s # * Synchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new_sync() for more details. 1158s # * 1158s # * The calling thread is blocked until a reply is received. 1158s # * 1158s # * See org_project_useful_interface_proxy_new() for the asynchronous version of this constructor. 1158s # * 1158s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1158s # */ 1158s # OrgProjectUsefulInterface * 1158s # org_project_useful_interface_proxy_new_sync ( 1158s # GDBusConnection *connection, 1158s # GDBusProxyFlags flags, 1158s # const gchar *name, 1158s # const gchar *object_path, 1158s # GCancellable *cancellable, 1158s # GError **error) 1158s # { 1158s # GInitable *ret; 1158s # 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); 1158s # if (ret != NULL) 1158s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1158s # else 1158s # return NULL; 1158s # } 1158s # 1158s # 1158s # /** 1158s # * org_project_useful_interface_proxy_new_for_bus: 1158s # * @bus_type: A #GBusType. 1158s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1158s # * @name: A bus name (well-known or unique). 1158s # * @object_path: An object path. 1158s # * @cancellable: (nullable): A #GCancellable or %NULL. 1158s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1158s # * @user_data: User data to pass to @callback. 1158s # * 1158s # * Like org_project_useful_interface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 1158s # * 1158s # * 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()). 1158s # * You can then call org_project_useful_interface_proxy_new_for_bus_finish() to get the result of the operation. 1158s # * 1158s # * See org_project_useful_interface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 1158s # */ 1158s # void 1158s # org_project_useful_interface_proxy_new_for_bus ( 1158s # GBusType bus_type, 1158s # GDBusProxyFlags flags, 1158s # const gchar *name, 1158s # const gchar *object_path, 1158s # GCancellable *cancellable, 1158s # GAsyncReadyCallback callback, 1158s # gpointer user_data) 1158s # { 1158s # 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); 1158s # } 1158s # 1158s # /** 1158s # * org_project_useful_interface_proxy_new_for_bus_finish: 1158s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new_for_bus(). 1158s # * @error: Return location for error or %NULL 1158s # * 1158s # * Finishes an operation started with org_project_useful_interface_proxy_new_for_bus(). 1158s # * 1158s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1158s # */ 1158s # OrgProjectUsefulInterface * 1158s # org_project_useful_interface_proxy_new_for_bus_finish ( 1158s # GAsyncResult *res, 1158s # GError **error) 1158s # { 1158s # GObject *ret; 1158s # GObject *source_object; 1158s # source_object = g_async_result_get_source_object (res); 1158s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1158s # g_object_unref (source_object); 1158s # if (ret != NULL) 1158s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1158s # else 1158s # return NULL; 1158s # } 1158s # 1158s # /** 1158s # * org_project_useful_interface_proxy_new_for_bus_sync: 1158s # * @bus_type: A #GBusType. 1158s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1158s # * @name: A bus name (well-known or unique). 1158s # * @object_path: An object path. 1158s # * @cancellable: (nullable): A #GCancellable or %NULL. 1158s # * @error: Return location for error or %NULL 1158s # * 1158s # * Like org_project_useful_interface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 1158s # * 1158s # * The calling thread is blocked until a reply is received. 1158s # * 1158s # * See org_project_useful_interface_proxy_new_for_bus() for the asynchronous version of this constructor. 1158s # * 1158s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1158s # */ 1158s # OrgProjectUsefulInterface * 1158s # org_project_useful_interface_proxy_new_for_bus_sync ( 1158s # GBusType bus_type, 1158s # GDBusProxyFlags flags, 1158s # const gchar *name, 1158s # const gchar *object_path, 1158s # GCancellable *cancellable, 1158s # GError **error) 1158s # { 1158s # GInitable *ret; 1158s # 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); 1158s # if (ret != NULL) 1158s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1158s # else 1158s # return NULL; 1158s # } 1158s # 1158s # 1158s # /* ------------------------------------------------------------------------ */ 1158s # 1158s # /** 1158s # * OrgProjectUsefulInterfaceSkeleton: 1158s # * 1158s # * The #OrgProjectUsefulInterfaceSkeleton structure contains only private data and should only be accessed using the provided API. 1158s # */ 1158s # 1158s # /** 1158s # * OrgProjectUsefulInterfaceSkeletonClass: 1158s # * @parent_class: The parent class. 1158s # * 1158s # * Class structure for #OrgProjectUsefulInterfaceSkeleton. 1158s # */ 1158s # 1158s # struct _OrgProjectUsefulInterfaceSkeletonPrivate 1158s # { 1158s # GValue *properties; 1158s # GList *changed_properties; 1158s # GSource *changed_properties_idle_source; 1158s # GMainContext *context; 1158s # GMutex lock; 1158s # }; 1158s # 1158s # static void 1158s # _org_project_useful_interface_skeleton_handle_method_call ( 1158s # GDBusConnection *connection G_GNUC_UNUSED, 1158s # const gchar *sender G_GNUC_UNUSED, 1158s # const gchar *object_path G_GNUC_UNUSED, 1158s # const gchar *interface_name, 1158s # const gchar *method_name, 1158s # GVariant *parameters, 1158s # GDBusMethodInvocation *invocation, 1158s # gpointer user_data) 1158s # { 1158s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1158s # _ExtendedGDBusMethodInfo *info; 1158s # GVariantIter iter; 1158s # GVariant *child; 1158s # GValue *paramv; 1158s # gsize num_params; 1158s # guint num_extra; 1158s # gsize n; 1158s # guint signal_id; 1158s # GValue return_value = G_VALUE_INIT; 1158s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 1158s # g_assert (info != NULL); 1158s # num_params = g_variant_n_children (parameters); 1158s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 1158s # n = 0; 1158s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1158s # g_value_set_object (¶mv[n++], skeleton); 1158s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 1158s # g_value_set_object (¶mv[n++], invocation); 1158s # if (info->pass_fdlist) 1158s # { 1158s # #ifdef G_OS_UNIX 1158s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 1158s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 1158s # #else 1158s # g_assert_not_reached (); 1158s # #endif 1158s # } 1158s # g_variant_iter_init (&iter, parameters); 1158s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1158s # { 1158s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 1158s # if (arg_info->use_gvariant) 1158s # { 1158s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1158s # g_value_set_variant (¶mv[n], child); 1158s # n++; 1158s # } 1158s # else 1158s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1158s # g_variant_unref (child); 1158s # } 1158s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1158s # g_value_init (&return_value, G_TYPE_BOOLEAN); 1158s # g_signal_emitv (paramv, signal_id, 0, &return_value); 1158s # if (!g_value_get_boolean (&return_value)) 1158s # 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); 1158s # g_value_unset (&return_value); 1158s # for (n = 0; n < num_params + num_extra; n++) 1158s # g_value_unset (¶mv[n]); 1158s # g_free (paramv); 1158s # } 1158s # 1158s # static GVariant * 1158s # _org_project_useful_interface_skeleton_handle_get_property ( 1158s # GDBusConnection *connection G_GNUC_UNUSED, 1158s # const gchar *sender G_GNUC_UNUSED, 1158s # const gchar *object_path G_GNUC_UNUSED, 1158s # const gchar *interface_name G_GNUC_UNUSED, 1158s # const gchar *property_name, 1158s # GError **error, 1158s # gpointer user_data) 1158s # { 1158s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1158s # GValue value = G_VALUE_INIT; 1158s # GParamSpec *pspec; 1158s # _ExtendedGDBusPropertyInfo *info; 1158s # GVariant *ret; 1158s # ret = NULL; 1158s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 1158s # g_assert (info != NULL); 1158s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1158s # if (pspec == NULL) 1158s # { 1158s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1158s # } 1158s # else 1158s # { 1158s # g_value_init (&value, pspec->value_type); 1158s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1158s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 1158s # g_value_unset (&value); 1158s # } 1158s # return ret; 1158s # } 1158s # 1158s # static gboolean 1158s # _org_project_useful_interface_skeleton_handle_set_property ( 1158s # GDBusConnection *connection G_GNUC_UNUSED, 1158s # const gchar *sender G_GNUC_UNUSED, 1158s # const gchar *object_path G_GNUC_UNUSED, 1158s # const gchar *interface_name G_GNUC_UNUSED, 1158s # const gchar *property_name, 1158s # GVariant *variant, 1158s # GError **error, 1158s # gpointer user_data) 1158s # { 1158s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1158s # GValue value = G_VALUE_INIT; 1158s # GParamSpec *pspec; 1158s # _ExtendedGDBusPropertyInfo *info; 1158s # gboolean ret; 1158s # ret = FALSE; 1158s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 1158s # g_assert (info != NULL); 1158s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1158s # if (pspec == NULL) 1158s # { 1158s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1158s # } 1158s # else 1158s # { 1158s # if (info->use_gvariant) 1158s # g_value_set_variant (&value, variant); 1158s # else 1158s # g_dbus_gvariant_to_gvalue (variant, &value); 1158s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1158s # g_value_unset (&value); 1158s # ret = TRUE; 1158s # } 1158s # return ret; 1158s # } 1158s # 1158s # static const GDBusInterfaceVTable _org_project_useful_interface_skeleton_vtable = 1158s # { 1158s # _org_project_useful_interface_skeleton_handle_method_call, 1158s # _org_project_useful_interface_skeleton_handle_get_property, 1158s # _org_project_useful_interface_skeleton_handle_set_property, 1158s # {NULL} 1158s # }; 1158s # 1158s # static GDBusInterfaceInfo * 1158s # org_project_useful_interface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1158s # { 1158s # return org_project_useful_interface_interface_info (); 1158s # } 1158s # 1158s # static GDBusInterfaceVTable * 1158s # org_project_useful_interface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1158s # { 1158s # return (GDBusInterfaceVTable *) &_org_project_useful_interface_skeleton_vtable; 1158s # } 1158s # 1158s # static GVariant * 1158s # org_project_useful_interface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 1158s # { 1158s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (_skeleton); 1158s # 1158s # GVariantBuilder builder; 1158s # guint n; 1158s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 1158s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 1158s # #else 1158s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 1158s # #endif 1158s # if (_org_project_useful_interface_interface_info.parent_struct.properties == NULL) 1158s # goto out; 1158s # for (n = 0; _org_project_useful_interface_interface_info.parent_struct.properties[n] != NULL; n++) 1158s # { 1158s # GDBusPropertyInfo *info = _org_project_useful_interface_interface_info.parent_struct.properties[n]; 1158s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 1158s # { 1158s # GVariant *value; 1158s # 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); 1158s # if (value != NULL) 1158s # { 1158s # g_variant_take_ref (value); 1158s # g_variant_builder_add (&builder, "{sv}", info->name, value); 1158s # g_variant_unref (value); 1158s # } 1158s # } 1158s # } 1158s # out: 1158s # return g_variant_builder_end (&builder); 1158s # } 1158s # 1158s # static void 1158s # org_project_useful_interface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 1158s # { 1158s # } 1158s # 1158s # static void org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface); 1158s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1158s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1158s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceSkeleton) 1158s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 1158s # 1158s # #else 1158s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1158s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 1158s # 1158s # #endif 1158s # static void 1158s # org_project_useful_interface_skeleton_finalize (GObject *object) 1158s # { 1158s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (object); 1158s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 1158s # if (skeleton->priv->changed_properties_idle_source != NULL) 1158s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 1158s # g_main_context_unref (skeleton->priv->context); 1158s # g_mutex_clear (&skeleton->priv->lock); 1158s # G_OBJECT_CLASS (org_project_useful_interface_skeleton_parent_class)->finalize (object); 1158s # } 1158s # 1158s # static void 1158s # org_project_useful_interface_skeleton_init (OrgProjectUsefulInterfaceSkeleton *skeleton) 1158s # { 1158s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1158s # skeleton->priv = org_project_useful_interface_skeleton_get_instance_private (skeleton); 1158s # #else 1158s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, OrgProjectUsefulInterfaceSkeletonPrivate); 1158s # #endif 1158s # 1158s # g_mutex_init (&skeleton->priv->lock); 1158s # skeleton->priv->context = g_main_context_ref_thread_default (); 1158s # } 1158s # 1158s # static void 1158s # org_project_useful_interface_skeleton_class_init (OrgProjectUsefulInterfaceSkeletonClass *klass) 1158s # { 1158s # GObjectClass *gobject_class; 1158s # GDBusInterfaceSkeletonClass *skeleton_class; 1158s # 1158s # gobject_class = G_OBJECT_CLASS (klass); 1158s # gobject_class->finalize = org_project_useful_interface_skeleton_finalize; 1158s # 1158s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 1158s # skeleton_class->get_info = org_project_useful_interface_skeleton_dbus_interface_get_info; 1158s # skeleton_class->get_properties = org_project_useful_interface_skeleton_dbus_interface_get_properties; 1158s # skeleton_class->flush = org_project_useful_interface_skeleton_dbus_interface_flush; 1158s # skeleton_class->get_vtable = org_project_useful_interface_skeleton_dbus_interface_get_vtable; 1158s # 1158s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1158s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceSkeletonPrivate)); 1158s # #endif 1158s # } 1158s # 1158s # static void 1158s # org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 1158s # { 1158s # } 1158s # 1158s # /** 1158s # * org_project_useful_interface_skeleton_new: 1158s # * 1158s # * Creates a skeleton object for the D-Bus interface org.project.UsefulInterface. 1158s # * 1158s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceSkeleton): The skeleton object. 1158s # */ 1158s # OrgProjectUsefulInterface * 1158s # org_project_useful_interface_skeleton_new (void) 1158s # { 1158s # return ORG_PROJECT_USEFUL_INTERFACE (g_object_new (TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, NULL)); 1158s # } 1158s # Error: 1158s # 1158s # /tmp/tmpv_fj8nn0/tmpwcep7cvp.xml: 1158s # 1158s # 1158s # 1158s # 1158s # 1158s # 1158s # 1158s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpv_fj8nn0/tmpwcep7cvp.xml', '--output', '-', '--body'] 1158s # Return code: 0 1158s # Output: 1158s # /* 1158s # * This file is generated by gdbus-codegen, do not modify it. 1158s # * 1158s # * The license of this code is the same as for the D-Bus interface description 1158s # * it was derived from. Note that it links to GLib, so must comply with the 1158s # * LGPL linking clauses. 1158s # */ 1158s # 1158s # #ifdef HAVE_CONFIG_H 1158s # # include "config.h" 1158s # #endif 1158s # 1158s # #include 1158s # #ifdef G_OS_UNIX 1158s # # include 1158s # #endif 1158s # 1158s # #ifdef G_ENABLE_DEBUG 1158s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 1158s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 1158s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 1158s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 1158s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 1158s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 1158s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 1158s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 1158s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 1158s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 1158s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 1158s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 1158s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 1158s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 1158s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 1158s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 1158s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 1158s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 1158s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 1158s # #else /* !G_ENABLE_DEBUG */ 1158s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 1158s # * Do not access GValues directly in your code. Instead, use the 1158s # * g_value_get_*() functions 1158s # */ 1158s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 1158s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 1158s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 1158s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 1158s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 1158s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 1158s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 1158s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 1158s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 1158s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 1158s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 1158s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 1158s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 1158s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 1158s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 1158s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 1158s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 1158s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 1158s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 1158s # #endif /* !G_ENABLE_DEBUG */ 1158s # 1158s # typedef struct 1158s # { 1158s # GDBusArgInfo parent_struct; 1158s # gboolean use_gvariant; 1158s # } _ExtendedGDBusArgInfo; 1158s # 1158s # typedef struct 1158s # { 1158s # GDBusMethodInfo parent_struct; 1158s # const gchar *signal_name; 1158s # gboolean pass_fdlist; 1158s # } _ExtendedGDBusMethodInfo; 1158s # 1158s # typedef struct 1158s # { 1158s # GDBusSignalInfo parent_struct; 1158s # const gchar *signal_name; 1158s # } _ExtendedGDBusSignalInfo; 1158s # 1158s # typedef struct 1158s # { 1158s # GDBusPropertyInfo parent_struct; 1158s # const gchar *hyphen_name; 1158s # guint use_gvariant : 1; 1158s # guint emits_changed_signal : 1; 1158s # } _ExtendedGDBusPropertyInfo; 1158s # 1158s # typedef struct 1158s # { 1158s # GDBusInterfaceInfo parent_struct; 1158s # const gchar *hyphen_name; 1158s # } _ExtendedGDBusInterfaceInfo; 1158s # 1158s # typedef struct 1158s # { 1158s # const _ExtendedGDBusPropertyInfo *info; 1158s # guint prop_id; 1158s # GValue orig_value; /* the value before the change */ 1158s # } ChangedProperty; 1158s # 1158s # static void 1158s # _changed_property_free (ChangedProperty *data) 1158s # { 1158s # g_value_unset (&data->orig_value); 1158s # g_free (data); 1158s # } 1158s # 1158s # static gboolean 1158s # _g_strv_equal0 (gchar **a, gchar **b) 1158s # { 1158s # gboolean ret = FALSE; 1158s # guint n; 1158s # if (a == NULL && b == NULL) 1158s # { 1158s # ret = TRUE; 1158s # goto out; 1158s # } 1158s # if (a == NULL || b == NULL) 1158s # goto out; 1158s # if (g_strv_length (a) != g_strv_length (b)) 1158s # goto out; 1158s # for (n = 0; a[n] != NULL; n++) 1158s # if (g_strcmp0 (a[n], b[n]) != 0) 1158s # goto out; 1158s # ret = TRUE; 1158s # out: 1158s # return ret; 1158s # } 1158s # 1158s # static gboolean 1158s # _g_variant_equal0 (GVariant *a, GVariant *b) 1158s # { 1158s # gboolean ret = FALSE; 1158s # if (a == NULL && b == NULL) 1158s # { 1158s # ret = TRUE; 1158s # goto out; 1158s # } 1158s # if (a == NULL || b == NULL) 1158s # goto out; 1158s # ret = g_variant_equal (a, b); 1158s # out: 1158s # return ret; 1158s # } 1158s # 1158s # G_GNUC_UNUSED static gboolean 1158s # _g_value_equal (const GValue *a, const GValue *b) 1158s # { 1158s # gboolean ret = FALSE; 1158s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 1158s # switch (G_VALUE_TYPE (a)) 1158s # { 1158s # case G_TYPE_BOOLEAN: 1158s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 1158s # break; 1158s # case G_TYPE_UCHAR: 1158s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 1158s # break; 1158s # case G_TYPE_INT: 1158s # ret = (g_value_get_int (a) == g_value_get_int (b)); 1158s # break; 1158s # case G_TYPE_UINT: 1158s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 1158s # break; 1158s # case G_TYPE_INT64: 1158s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 1158s # break; 1158s # case G_TYPE_UINT64: 1158s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 1158s # break; 1158s # case G_TYPE_DOUBLE: 1158s # { 1158s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 1158s # gdouble da = g_value_get_double (a); 1158s # gdouble db = g_value_get_double (b); 1158s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 1158s # } 1158s # break; 1158s # case G_TYPE_STRING: 1158s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 1158s # break; 1158s # case G_TYPE_VARIANT: 1158s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 1158s # break; 1158s # default: 1158s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 1158s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 1158s # else 1158s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 1158s # break; 1158s # } 1158s # return ret; 1158s # } 1158s # 1158s # static void 1158s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT_STRING ( 1158s # GClosure *closure, 1158s # GValue *return_value, 1158s # unsigned int n_param_values, 1158s # const GValue *param_values, 1158s # void *invocation_hint G_GNUC_UNUSED, 1158s # void *marshal_data) 1158s # { 1158s # typedef gboolean (*_GDbusCodegenMarshalBoolean_ObjectStringFunc) 1158s # (void *data1, 1158s # GDBusMethodInvocation *arg_method_invocation, 1158s # const gchar *arg_arg_ay, 1158s # void *data2); 1158s # _GDbusCodegenMarshalBoolean_ObjectStringFunc callback; 1158s # GCClosure *cc = (GCClosure*) closure; 1158s # void *data1, *data2; 1158s # gboolean v_return; 1158s # 1158s # g_return_if_fail (return_value != NULL); 1158s # g_return_if_fail (n_param_values == 3); 1158s # 1158s # if (G_CCLOSURE_SWAP_DATA (closure)) 1158s # { 1158s # data1 = closure->data; 1158s # data2 = g_value_peek_pointer (param_values + 0); 1158s # } 1158s # else 1158s # { 1158s # data1 = g_value_peek_pointer (param_values + 0); 1158s # data2 = closure->data; 1158s # } 1158s # 1158s # callback = (_GDbusCodegenMarshalBoolean_ObjectStringFunc) 1158s # (marshal_data ? marshal_data : cc->callback); 1158s # 1158s # v_return = 1158s # callback (data1, 1158s # g_marshal_value_peek_object (param_values + 1), 1158s # g_marshal_value_peek_string (param_values + 2), 1158s # data2); 1158s # 1158s # g_value_set_boolean (return_value, v_return); 1158s # } 1158s # 1158s # /* ------------------------------------------------------------------------ 1158s # * Code for interface org.project.UsefulInterface 1158s # * ------------------------------------------------------------------------ 1158s # */ 1158s # 1158s # /** 1158s # * SECTION:OrgProjectUsefulInterface 1158s # * @title: OrgProjectUsefulInterface 1158s # * @short_description: Generated C code for the org.project.UsefulInterface D-Bus interface 1158s # * 1158s # * This section contains code for working with the org.project.UsefulInterface D-Bus interface in C. 1158s # */ 1158s # 1158s # /* ---- Introspection data for org.project.UsefulInterface ---- */ 1158s # 1158s # static const _ExtendedGDBusArgInfo _org_project_useful_interface_method_info_single_arg_method_ay_IN_ARG_arg_ay = 1158s # { 1158s # { 1158s # -1, 1158s # (gchar *) "arg_ay", 1158s # (gchar *) "ay", 1158s # NULL 1158s # }, 1158s # FALSE 1158s # }; 1158s # 1158s # static const GDBusArgInfo * const _org_project_useful_interface_method_info_single_arg_method_ay_IN_ARG_pointers[] = 1158s # { 1158s # &_org_project_useful_interface_method_info_single_arg_method_ay_IN_ARG_arg_ay.parent_struct, 1158s # NULL 1158s # }; 1158s # 1158s # static const _ExtendedGDBusMethodInfo _org_project_useful_interface_method_info_single_arg_method_ay = 1158s # { 1158s # { 1158s # -1, 1158s # (gchar *) "SingleArgMethodAy", 1158s # (GDBusArgInfo **) &_org_project_useful_interface_method_info_single_arg_method_ay_IN_ARG_pointers, 1158s # NULL, 1158s # NULL 1158s # }, 1158s # "handle-single-arg-method-ay", 1158s # FALSE 1158s # }; 1158s # 1158s # static const GDBusMethodInfo * const _org_project_useful_interface_method_info_pointers[] = 1158s # { 1158s # &_org_project_useful_interface_method_info_single_arg_method_ay.parent_struct, 1158s # NULL 1158s # }; 1158s # 1158s # static const _ExtendedGDBusInterfaceInfo _org_project_useful_interface_interface_info = 1158s # { 1158s # { 1158s # -1, 1158s # (gchar *) "org.project.UsefulInterface", 1158s # (GDBusMethodInfo **) &_org_project_useful_interface_method_info_pointers, 1158s # NULL, 1158s # NULL, 1158s # NULL 1158s # }, 1158s # "org-project-useful-interface", 1158s # }; 1158s # 1158s # 1158s # /** 1158s # * org_project_useful_interface_interface_info: 1158s # * 1158s # * Gets a machine-readable description of the org.project.UsefulInterface D-Bus interface. 1158s # * 1158s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 1158s # */ 1158s # GDBusInterfaceInfo * 1158s # org_project_useful_interface_interface_info (void) 1158s # { 1158s # return (GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct; 1158s # } 1158s # 1158s # /** 1158s # * org_project_useful_interface_override_properties: 1158s # * @klass: The class structure for a #GObject derived class. 1158s # * @property_id_begin: The property id to assign to the first overridden property. 1158s # * 1158s # * Overrides all #GObject properties in the #OrgProjectUsefulInterface interface for a concrete class. 1158s # * The properties are overridden in the order they are defined. 1158s # * 1158s # * Returns: The last property id. 1158s # */ 1158s # guint 1158s # org_project_useful_interface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 1158s # { 1158s # return property_id_begin - 1; 1158s # } 1158s # 1158s # 1158s # inline static void 1158s # org_project_useful_interface_method_marshal_single_arg_method_ay ( 1158s # GClosure *closure, 1158s # GValue *return_value, 1158s # unsigned int n_param_values, 1158s # const GValue *param_values, 1158s # void *invocation_hint, 1158s # void *marshal_data) 1158s # { 1158s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT_STRING (closure, 1158s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1158s # } 1158s # 1158s # 1158s # /** 1158s # * OrgProjectUsefulInterface: 1158s # * 1158s # * Abstract interface type for the D-Bus interface org.project.UsefulInterface. 1158s # */ 1158s # 1158s # /** 1158s # * OrgProjectUsefulInterfaceIface: 1158s # * @parent_iface: The parent interface. 1158s # * @handle_single_arg_method_ay: Handler for the #OrgProjectUsefulInterface::handle-single-arg-method-ay signal. 1158s # * 1158s # * Virtual table for the D-Bus interface org.project.UsefulInterface. 1158s # */ 1158s # 1158s # typedef OrgProjectUsefulInterfaceIface OrgProjectUsefulInterfaceInterface; 1158s # G_DEFINE_INTERFACE (OrgProjectUsefulInterface, org_project_useful_interface, G_TYPE_OBJECT) 1158s # 1158s # static void 1158s # org_project_useful_interface_default_init (OrgProjectUsefulInterfaceIface *iface) 1158s # { 1158s # /* GObject signals for incoming D-Bus method calls: */ 1158s # /** 1158s # * OrgProjectUsefulInterface::handle-single-arg-method-ay: 1158s # * @object: A #OrgProjectUsefulInterface. 1158s # * @invocation: A #GDBusMethodInvocation. 1158s # * @arg_arg_ay: Argument passed by remote caller. 1158s # * 1158s # * Signal emitted when a remote caller is invoking the SingleArgMethodAy() D-Bus method. 1158s # * 1158s # * 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. 1158s # * 1158s # * 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. 1158s # */ 1158s # g_signal_new ("handle-single-arg-method-ay", 1158s # G_TYPE_FROM_INTERFACE (iface), 1158s # G_SIGNAL_RUN_LAST, 1158s # G_STRUCT_OFFSET (OrgProjectUsefulInterfaceIface, handle_single_arg_method_ay), 1158s # g_signal_accumulator_true_handled, 1158s # NULL, 1158s # org_project_useful_interface_method_marshal_single_arg_method_ay, 1158s # G_TYPE_BOOLEAN, 1158s # 2, 1158s # G_TYPE_DBUS_METHOD_INVOCATION, G_TYPE_STRING); 1158s # 1158s # } 1158s # 1158s # /** 1158s # * org_project_useful_interface_call_single_arg_method_ay: 1158s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1158s # * @arg_arg_ay: Argument to pass with the method invocation. 1158s # * @cancellable: (nullable): A #GCancellable or %NULL. 1158s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL. 1158s # * @user_data: User data to pass to @callback. 1158s # * 1158s # * Asynchronously invokes the SingleArgMethodAy() D-Bus method on @proxy. 1158s # * 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()). 1158s # * You can then call org_project_useful_interface_call_single_arg_method_ay_finish() to get the result of the operation. 1158s # * 1158s # * See org_project_useful_interface_call_single_arg_method_ay_sync() for the synchronous, blocking version of this method. 1158s # */ 1158s # void 1158s # org_project_useful_interface_call_single_arg_method_ay ( 1158s # OrgProjectUsefulInterface *proxy, 1158s # const gchar *arg_arg_ay, 1158s # GCancellable *cancellable, 1158s # GAsyncReadyCallback callback, 1158s # gpointer user_data) 1158s # { 1158s # g_dbus_proxy_call (G_DBUS_PROXY (proxy), 1158s # "SingleArgMethodAy", 1158s # g_variant_new ("(^ay)", 1158s # arg_arg_ay), 1158s # G_DBUS_CALL_FLAGS_NONE, 1158s # -1, 1158s # cancellable, 1158s # callback, 1158s # user_data); 1158s # } 1158s # 1158s # /** 1158s # * org_project_useful_interface_call_single_arg_method_ay_finish: 1158s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1158s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_call_single_arg_method_ay(). 1158s # * @error: Return location for error or %NULL. 1158s # * 1158s # * Finishes an operation started with org_project_useful_interface_call_single_arg_method_ay(). 1158s # * 1158s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1158s # */ 1158s # gboolean 1158s # org_project_useful_interface_call_single_arg_method_ay_finish ( 1158s # OrgProjectUsefulInterface *proxy, 1158s # GAsyncResult *res, 1158s # GError **error) 1158s # { 1158s # GVariant *_ret; 1158s # _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error); 1158s # if (_ret == NULL) 1158s # goto _out; 1158s # g_variant_get (_ret, 1158s # "()"); 1158s # g_variant_unref (_ret); 1158s # _out: 1158s # return _ret != NULL; 1158s # } 1158s # 1158s # /** 1158s # * org_project_useful_interface_call_single_arg_method_ay_sync: 1158s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1158s # * @arg_arg_ay: Argument to pass with the method invocation. 1158s # * @cancellable: (nullable): A #GCancellable or %NULL. 1158s # * @error: Return location for error or %NULL. 1158s # * 1158s # * Synchronously invokes the SingleArgMethodAy() D-Bus method on @proxy. The calling thread is blocked until a reply is received. 1158s # * 1158s # * See org_project_useful_interface_call_single_arg_method_ay() for the asynchronous version of this method. 1158s # * 1158s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1158s # */ 1158s # gboolean 1158s # org_project_useful_interface_call_single_arg_method_ay_sync ( 1158s # OrgProjectUsefulInterface *proxy, 1158s # const gchar *arg_arg_ay, 1158s # GCancellable *cancellable, 1158s # GError **error) 1158s # { 1158s # GVariant *_ret; 1158s # _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy), 1158s # "SingleArgMethodAy", 1158s # g_variant_new ("(^ay)", 1158s # arg_arg_ay), 1158s # G_DBUS_CALL_FLAGS_NONE, 1158s # -1, 1158s # cancellable, 1158s # error); 1158s # if (_ret == NULL) 1158s # goto _out; 1158s # g_variant_get (_ret, 1158s # "()"); 1158s # g_variant_unref (_ret); 1158s # _out: 1158s # return _ret != NULL; 1158s # } 1158s # 1158s # /** 1158s # * org_project_useful_interface_complete_single_arg_method_ay: 1158s # * @object: A #OrgProjectUsefulInterface. 1158s # * @invocation: (transfer full): A #GDBusMethodInvocation. 1158s # * 1158s # * 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. 1158s # * 1158s # * This method will free @invocation, you cannot use it afterwards. 1158s # */ 1158s # void 1158s # org_project_useful_interface_complete_single_arg_method_ay ( 1158s # OrgProjectUsefulInterface *object G_GNUC_UNUSED, 1158s # GDBusMethodInvocation *invocation) 1158s # { 1158s # g_dbus_method_invocation_return_value (invocation, 1158s # g_variant_new ("()")); 1158s # } 1158s # 1158s # /* ------------------------------------------------------------------------ */ 1158s # 1158s # /** 1158s # * OrgProjectUsefulInterfaceProxy: 1158s # * 1158s # * The #OrgProjectUsefulInterfaceProxy structure contains only private data and should only be accessed using the provided API. 1158s # */ 1158s # 1158s # /** 1158s # * OrgProjectUsefulInterfaceProxyClass: 1158s # * @parent_class: The parent class. 1158s # * 1158s # * Class structure for #OrgProjectUsefulInterfaceProxy. 1158s # */ 1158s # 1158s # struct _OrgProjectUsefulInterfaceProxyPrivate 1158s # { 1158s # GData *qdata; 1158s # }; 1158s # 1158s # static void org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface); 1158s # 1158s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1158s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 1158s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceProxy) 1158s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 1158s # 1158s # #else 1158s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 1158s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 1158s # 1158s # #endif 1158s # static void 1158s # org_project_useful_interface_proxy_finalize (GObject *object) 1158s # { 1158s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (object); 1158s # g_datalist_clear (&proxy->priv->qdata); 1158s # G_OBJECT_CLASS (org_project_useful_interface_proxy_parent_class)->finalize (object); 1158s # } 1158s # 1158s # static void 1158s # org_project_useful_interface_proxy_get_property (GObject *object G_GNUC_UNUSED, 1158s # guint prop_id G_GNUC_UNUSED, 1158s # GValue *value G_GNUC_UNUSED, 1158s # GParamSpec *pspec G_GNUC_UNUSED) 1158s # { 1158s # } 1158s # 1158s # static void 1158s # org_project_useful_interface_proxy_set_property (GObject *object G_GNUC_UNUSED, 1158s # guint prop_id G_GNUC_UNUSED, 1158s # const GValue *value G_GNUC_UNUSED, 1158s # GParamSpec *pspec G_GNUC_UNUSED) 1158s # { 1158s # } 1158s # 1158s # static void 1158s # org_project_useful_interface_proxy_g_signal (GDBusProxy *proxy, 1158s # const gchar *sender_name G_GNUC_UNUSED, 1158s # const gchar *signal_name, 1158s # GVariant *parameters) 1158s # { 1158s # _ExtendedGDBusSignalInfo *info; 1158s # GVariantIter iter; 1158s # GVariant *child; 1158s # GValue *paramv; 1158s # gsize num_params; 1158s # gsize n; 1158s # guint signal_id; 1158s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, signal_name); 1158s # if (info == NULL) 1158s # return; 1158s # num_params = g_variant_n_children (parameters); 1158s # paramv = g_new0 (GValue, num_params + 1); 1158s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1158s # g_value_set_object (¶mv[0], proxy); 1158s # g_variant_iter_init (&iter, parameters); 1158s # n = 1; 1158s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1158s # { 1158s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 1158s # if (arg_info->use_gvariant) 1158s # { 1158s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1158s # g_value_set_variant (¶mv[n], child); 1158s # n++; 1158s # } 1158s # else 1158s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1158s # g_variant_unref (child); 1158s # } 1158s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1158s # g_signal_emitv (paramv, signal_id, 0, NULL); 1158s # for (n = 0; n < num_params + 1; n++) 1158s # g_value_unset (¶mv[n]); 1158s # g_free (paramv); 1158s # } 1158s # 1158s # static void 1158s # org_project_useful_interface_proxy_g_properties_changed (GDBusProxy *_proxy, 1158s # GVariant *changed_properties, 1158s # const gchar *const *invalidated_properties) 1158s # { 1158s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (_proxy); 1158s # guint n; 1158s # const gchar *key; 1158s # GVariantIter *iter; 1158s # _ExtendedGDBusPropertyInfo *info; 1158s # g_variant_get (changed_properties, "a{sv}", &iter); 1158s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 1158s # { 1158s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, key); 1158s # g_datalist_remove_data (&proxy->priv->qdata, key); 1158s # if (info != NULL) 1158s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1158s # } 1158s # g_variant_iter_free (iter); 1158s # for (n = 0; invalidated_properties[n] != NULL; n++) 1158s # { 1158s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, invalidated_properties[n]); 1158s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 1158s # if (info != NULL) 1158s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1158s # } 1158s # } 1158s # 1158s # static void 1158s # org_project_useful_interface_proxy_init (OrgProjectUsefulInterfaceProxy *proxy) 1158s # { 1158s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1158s # proxy->priv = org_project_useful_interface_proxy_get_instance_private (proxy); 1158s # #else 1158s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY, OrgProjectUsefulInterfaceProxyPrivate); 1158s # #endif 1158s # 1158s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_useful_interface_interface_info ()); 1158s # } 1158s # 1158s # static void 1158s # org_project_useful_interface_proxy_class_init (OrgProjectUsefulInterfaceProxyClass *klass) 1158s # { 1158s # GObjectClass *gobject_class; 1158s # GDBusProxyClass *proxy_class; 1158s # 1158s # gobject_class = G_OBJECT_CLASS (klass); 1158s # gobject_class->finalize = org_project_useful_interface_proxy_finalize; 1158s # gobject_class->get_property = org_project_useful_interface_proxy_get_property; 1158s # gobject_class->set_property = org_project_useful_interface_proxy_set_property; 1158s # 1158s # proxy_class = G_DBUS_PROXY_CLASS (klass); 1158s # proxy_class->g_signal = org_project_useful_interface_proxy_g_signal; 1158s # proxy_class->g_properties_changed = org_project_useful_interface_proxy_g_properties_changed; 1158s # 1158s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1158s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceProxyPrivate)); 1158s # #endif 1158s # } 1158s # 1158s # static void 1158s # org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 1158s # { 1158s # } 1158s # 1158s # /** 1158s # * org_project_useful_interface_proxy_new: 1158s # * @connection: A #GDBusConnection. 1158s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1158s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1158s # * @object_path: An object path. 1158s # * @cancellable: (nullable): A #GCancellable or %NULL. 1158s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1158s # * @user_data: User data to pass to @callback. 1158s # * 1158s # * Asynchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new() for more details. 1158s # * 1158s # * 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()). 1158s # * You can then call org_project_useful_interface_proxy_new_finish() to get the result of the operation. 1158s # * 1158s # * See org_project_useful_interface_proxy_new_sync() for the synchronous, blocking version of this constructor. 1158s # */ 1158s # void 1158s # org_project_useful_interface_proxy_new ( 1158s # GDBusConnection *connection, 1158s # GDBusProxyFlags flags, 1158s # const gchar *name, 1158s # const gchar *object_path, 1158s # GCancellable *cancellable, 1158s # GAsyncReadyCallback callback, 1158s # gpointer user_data) 1158s # { 1158s # 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); 1158s # } 1158s # 1158s # /** 1158s # * org_project_useful_interface_proxy_new_finish: 1158s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new(). 1158s # * @error: Return location for error or %NULL 1158s # * 1158s # * Finishes an operation started with org_project_useful_interface_proxy_new(). 1158s # * 1158s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1158s # */ 1158s # OrgProjectUsefulInterface * 1158s # org_project_useful_interface_proxy_new_finish ( 1158s # GAsyncResult *res, 1158s # GError **error) 1158s # { 1158s # GObject *ret; 1158s # GObject *source_object; 1158s # source_object = g_async_result_get_source_object (res); 1158s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1158s # g_object_unref (source_object); 1158s # if (ret != NULL) 1158s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1158s # else 1158s # return NULL; 1158s # } 1158s # 1158s # /** 1158s # * org_project_useful_interface_proxy_new_sync: 1158s # * @connection: A #GDBusConnection. 1158s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1158s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1158s # * @object_path: An object path. 1158s # * @cancellable: (nullable): A #GCancellable or %NULL. 1158s # * @error: Return location for error or %NULL 1158s # * 1158s # * Synchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new_sync() for more details. 1158s # * 1158s # * The calling thread is blocked until a reply is received. 1158s # * 1158s # * See org_project_useful_interface_proxy_new() for the asynchronous version of this constructor. 1158s # * 1158s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1158s # */ 1158s # OrgProjectUsefulInterface * 1158s # org_project_useful_interface_proxy_new_sync ( 1158s # GDBusConnection *connection, 1158s # GDBusProxyFlags flags, 1158s # const gchar *name, 1158s # const gchar *object_path, 1158s # GCancellable *cancellable, 1158s # GError **error) 1158s # { 1158s # GInitable *ret; 1158s # 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); 1158s # if (ret != NULL) 1158s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1158s # else 1158s # return NULL; 1158s # } 1158s # 1158s # 1158s # /** 1158s # * org_project_useful_interface_proxy_new_for_bus: 1158s # * @bus_type: A #GBusType. 1158s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1158s # * @name: A bus name (well-known or unique). 1158s # * @object_path: An object path. 1158s # * @cancellable: (nullable): A #GCancellable or %NULL. 1158s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1158s # * @user_data: User data to pass to @callback. 1158s # * 1158s # * Like org_project_useful_interface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 1158s # * 1158s # * 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()). 1158s # * You can then call org_project_useful_interface_proxy_new_for_bus_finish() to get the result of the operation. 1158s # * 1158s # * See org_project_useful_interface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 1158s # */ 1158s # void 1158s # org_project_useful_interface_proxy_new_for_bus ( 1158s # GBusType bus_type, 1158s # GDBusProxyFlags flags, 1158s # const gchar *name, 1158s # const gchar *object_path, 1158s # GCancellable *cancellable, 1158s # GAsyncReadyCallback callback, 1158s # gpointer user_data) 1158s # { 1158s # 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); 1158s # } 1158s # 1158s # /** 1158s # * org_project_useful_interface_proxy_new_for_bus_finish: 1158s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new_for_bus(). 1158s # * @error: Return location for error or %NULL 1158s # * 1158s # * Finishes an operation started with org_project_useful_interface_proxy_new_for_bus(). 1158s # * 1158s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1158s # */ 1158s # OrgProjectUsefulInterface * 1158s # org_project_useful_interface_proxy_new_for_bus_finish ( 1158s # GAsyncResult *res, 1158s # GError **error) 1158s # { 1158s # GObject *ret; 1158s # GObject *source_object; 1158s # source_object = g_async_result_get_source_object (res); 1158s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1158s # g_object_unref (source_object); 1158s # if (ret != NULL) 1158s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1158s # else 1158s # return NULL; 1158s # } 1158s # 1158s # /** 1158s # * org_project_useful_interface_proxy_new_for_bus_sync: 1158s # * @bus_type: A #GBusType. 1158s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1158s # * @name: A bus name (well-known or unique). 1158s # * @object_path: An object path. 1158s # * @cancellable: (nullable): A #GCancellable or %NULL. 1158s # * @error: Return location for error or %NULL 1158s # * 1158s # * Like org_project_useful_interface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 1158s # * 1158s # * The calling thread is blocked until a reply is received. 1158s # * 1158s # * See org_project_useful_interface_proxy_new_for_bus() for the asynchronous version of this constructor. 1158s # * 1158s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1158s # */ 1158s # OrgProjectUsefulInterface * 1158s # org_project_useful_interface_proxy_new_for_bus_sync ( 1158s # GBusType bus_type, 1158s # GDBusProxyFlags flags, 1158s # const gchar *name, 1158s # const gchar *object_path, 1158s # GCancellable *cancellable, 1158s # GError **error) 1158s # { 1158s # GInitable *ret; 1158s # 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); 1158s # if (ret != NULL) 1158s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1158s # else 1158s # return NULL; 1158s # } 1158s # 1158s # 1158s # /* ------------------------------------------------------------------------ */ 1158s # 1158s # /** 1158s # * OrgProjectUsefulInterfaceSkeleton: 1158s # * 1158s # * The #OrgProjectUsefulInterfaceSkeleton structure contains only private data and should only be accessed using the provided API. 1158s # */ 1158s # 1158s # /** 1158s # * OrgProjectUsefulInterfaceSkeletonClass: 1158s # * @parent_class: The parent class. 1158s # * 1158s # * Class structure for #OrgProjectUsefulInterfaceSkeleton. 1158s # */ 1158s # 1158s # struct _OrgProjectUsefulInterfaceSkeletonPrivate 1158s # { 1158s # GValue *properties; 1158s # GList *changed_properties; 1158s # GSource *changed_properties_idle_source; 1158s # GMainContext *context; 1158s # GMutex lock; 1158s # }; 1158s # 1158s # static void 1158s # _org_project_useful_interface_skeleton_handle_method_call ( 1158s # GDBusConnection *connection G_GNUC_UNUSED, 1158s # const gchar *sender G_GNUC_UNUSED, 1158s # const gchar *object_path G_GNUC_UNUSED, 1158s # const gchar *interface_name, 1158s # const gchar *method_name, 1158s # GVariant *parameters, 1158s # GDBusMethodInvocation *invocation, 1158s # gpointer user_data) 1158s # { 1158s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1158s # _ExtendedGDBusMethodInfo *info; 1158s # GVariantIter iter; 1158s # GVariant *child; 1158s # GValue *paramv; 1158s # gsize num_params; 1158s # guint num_extra; 1158s # gsize n; 1158s # guint signal_id; 1158s # GValue return_value = G_VALUE_INIT; 1158s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 1158s # g_assert (info != NULL); 1158s # num_params = g_variant_n_children (parameters); 1158s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 1158s # n = 0; 1158s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1158s # g_value_set_object (¶mv[n++], skeleton); 1158s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 1158s # g_value_set_object (¶mv[n++], invocation); 1158s # if (info->pass_fdlist) 1158s # { 1158s # #ifdef G_OS_UNIX 1158s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 1158s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 1158s # #else 1158s # g_assert_not_reached (); 1158s # #endif 1158s # } 1158s # g_variant_iter_init (&iter, parameters); 1158s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1158s # { 1158s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 1158s # if (arg_info->use_gvariant) 1158s # { 1158s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1158s # g_value_set_variant (¶mv[n], child); 1158s # n++; 1158s # } 1158s # else 1158s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1158s # g_variant_unref (child); 1158s # } 1158s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1158s # g_value_init (&return_value, G_TYPE_BOOLEAN); 1158s # g_signal_emitv (paramv, signal_id, 0, &return_value); 1158s # if (!g_value_get_boolean (&return_value)) 1158s # 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); 1158s # g_value_unset (&return_value); 1158s # for (n = 0; n < num_params + num_extra; n++) 1158s # g_value_unset (¶mv[n]); 1158s # g_free (paramv); 1158s # } 1158s # 1158s # static GVariant * 1158s # _org_project_useful_interface_skeleton_handle_get_property ( 1158s # GDBusConnection *connection G_GNUC_UNUSED, 1158s # const gchar *sender G_GNUC_UNUSED, 1158s # const gchar *object_path G_GNUC_UNUSED, 1158s # const gchar *interface_name G_GNUC_UNUSED, 1158s # const gchar *property_name, 1158s # GError **error, 1158s # gpointer user_data) 1158s # { 1158s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1158s # GValue value = G_VALUE_INIT; 1158s # GParamSpec *pspec; 1158s # _ExtendedGDBusPropertyInfo *info; 1158s # GVariant *ret; 1158s # ret = NULL; 1158s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 1158s # g_assert (info != NULL); 1158s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1158s # if (pspec == NULL) 1158s # { 1158s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1158s # } 1158s # else 1158s # { 1158s # g_value_init (&value, pspec->value_type); 1158s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1158s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 1158s # g_value_unset (&value); 1158s # } 1158s # return ret; 1158s # } 1158s # 1158s # static gboolean 1158s # _org_project_useful_interface_skeleton_handle_set_property ( 1158s # GDBusConnection *connection G_GNUC_UNUSED, 1158s # const gchar *sender G_GNUC_UNUSED, 1158s # const gchar *object_path G_GNUC_UNUSED, 1158s # const gchar *interface_name G_GNUC_UNUSED, 1158s # const gchar *property_name, 1158s # GVariant *variant, 1158s # GError **error, 1158s # gpointer user_data) 1158s # { 1158s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1158s # GValue value = G_VALUE_INIT; 1158s # GParamSpec *pspec; 1158s # _ExtendedGDBusPropertyInfo *info; 1158s # gboolean ret; 1158s # ret = FALSE; 1158s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 1158s # g_assert (info != NULL); 1158s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1158s # if (pspec == NULL) 1158s # { 1158s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1158s # } 1158s # else 1158s # { 1158s # if (info->use_gvariant) 1158s # g_value_set_variant (&value, variant); 1158s # else 1158s # g_dbus_gvariant_to_gvalue (variant, &value); 1158s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1158s # g_value_unset (&value); 1158s # ret = TRUE; 1158s # } 1158s # return ret; 1158s # } 1158s # 1158s # static const GDBusInterfaceVTable _org_project_useful_interface_skeleton_vtable = 1158s # { 1158s # _org_project_useful_interface_skeleton_handle_method_call, 1158s # _org_project_useful_interface_skeleton_handle_get_property, 1158s # _org_project_useful_interface_skeleton_handle_set_property, 1158s # {NULL} 1158s # }; 1158s # 1158s # static GDBusInterfaceInfo * 1158s # org_project_useful_interface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1158s # { 1158s # return org_project_useful_interface_interface_info (); 1158s # } 1158s # 1158s # static GDBusInterfaceVTable * 1158s # org_project_useful_interface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1158s # { 1158s # return (GDBusInterfaceVTable *) &_org_project_useful_interface_skeleton_vtable; 1158s # } 1158s # 1158s # static GVariant * 1158s # org_project_useful_interface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 1158s # { 1158s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (_skeleton); 1158s # 1158s # GVariantBuilder builder; 1158s # guint n; 1158s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 1158s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 1158s # #else 1158s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 1158s # #endif 1158s # if (_org_project_useful_interface_interface_info.parent_struct.properties == NULL) 1158s # goto out; 1158s # for (n = 0; _org_project_useful_interface_interface_info.parent_struct.properties[n] != NULL; n++) 1158s # { 1158s # GDBusPropertyInfo *info = _org_project_useful_interface_interface_info.parent_struct.properties[n]; 1158s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 1158s # { 1158s # GVariant *value; 1158s # 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); 1158s # if (value != NULL) 1158s # { 1158s # g_variant_take_ref (value); 1158s # g_variant_builder_add (&builder, "{sv}", info->name, value); 1158s # g_variant_unref (value); 1158s # } 1158s # } 1158s # } 1158s # out: 1158s # return g_variant_builder_end (&builder); 1158s # } 1158s # 1158s # static void 1158s # org_project_useful_interface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 1158s # { 1158s # } 1158s # 1158s # static void org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface); 1158s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1158s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1158s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceSkeleton) 1158s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 1158s # 1158s # #else 1158s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1158s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 1158s # 1158s # #endif 1158s # static void 1158s # org_project_useful_interface_skeleton_finalize (GObject *object) 1158s # { 1158s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (object); 1158s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 1158s # if (skeleton->priv->changed_properties_idle_source != NULL) 1158s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 1158s # g_main_context_unref (skeleton->priv->context); 1158s # g_mutex_clear (&skeleton->priv->lock); 1158s # G_OBJECT_CLASS (org_project_useful_interface_skeleton_parent_class)->finalize (object); 1158s # } 1158s # 1158s # static void 1158s # org_project_useful_interface_skeleton_init (OrgProjectUsefulInterfaceSkeleton *skeleton) 1158s # { 1158s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1158s # skeleton->priv = org_project_useful_interface_skeleton_get_instance_private (skeleton); 1158s # #else 1158s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, OrgProjectUsefulInterfaceSkeletonPrivate); 1158s # #endif 1158s # 1158s # g_mutex_init (&skeleton->priv->lock); 1158s # skeleton->priv->context = g_main_context_ref_thread_default (); 1158s # } 1158s # 1158s # static void 1158s # org_project_useful_interface_skeleton_class_init (OrgProjectUsefulInterfaceSkeletonClass *klass) 1158s # { 1158s # GObjectClass *gobject_class; 1158s # GDBusInterfaceSkeletonClass *skeleton_class; 1158s # 1158s # gobject_class = G_OBJECT_CLASS (klass); 1158s # gobject_class->finalize = org_project_useful_interface_skeleton_finalize; 1158s # 1158s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 1158s # skeleton_class->get_info = org_project_useful_interface_skeleton_dbus_interface_get_info; 1158s # skeleton_class->get_properties = org_project_useful_interface_skeleton_dbus_interface_get_properties; 1158s # skeleton_class->flush = org_project_useful_interface_skeleton_dbus_interface_flush; 1158s # skeleton_class->get_vtable = org_project_useful_interface_skeleton_dbus_interface_get_vtable; 1158s # 1158s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1158s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceSkeletonPrivate)); 1158s # #endif 1158s # } 1158s # 1158s # static void 1158s # org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 1158s # { 1158s # } 1158s # 1158s # /** 1158s # * org_project_useful_interface_skeleton_new: 1158s # * 1158s # * Creates a skeleton object for the D-Bus interface org.project.UsefulInterface. 1158s # * 1158s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceSkeleton): The skeleton object. 1158s # */ 1158s # OrgProjectUsefulInterface * 1158s # org_project_useful_interface_skeleton_new (void) 1158s # { 1158s # return ORG_PROJECT_USEFUL_INTERFACE (g_object_new (TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, NULL)); 1158s # } 1158s # Error: 1158s # 1158s # /tmp/tmpv_fj8nn0/tmpavy2rb1a.xml: 1158s # 1158s # 1158s # 1158s # 1158s # 1158s # 1158s # 1158s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpv_fj8nn0/tmpavy2rb1a.xml', '--output', '-', '--body'] 1158s # Return code: 0 1158s # Output: 1158s # /* 1158s # * This file is generated by gdbus-codegen, do not modify it. 1158s # * 1158s # * The license of this code is the same as for the D-Bus interface description 1158s # * it was derived from. Note that it links to GLib, so must comply with the 1158s # * LGPL linking clauses. 1158s # */ 1158s # 1158s # #ifdef HAVE_CONFIG_H 1158s # # include "config.h" 1158s # #endif 1158s # 1158s # #include 1158s # #ifdef G_OS_UNIX 1158s # # include 1158s # #endif 1158s # 1158s # #ifdef G_ENABLE_DEBUG 1158s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 1158s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 1158s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 1158s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 1158s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 1158s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 1158s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 1158s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 1158s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 1158s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 1158s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 1158s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 1158s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 1158s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 1158s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 1158s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 1158s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 1158s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 1158s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 1158s # #else /* !G_ENABLE_DEBUG */ 1158s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 1158s # * Do not access GValues directly in your code. Instead, use the 1158s # * g_value_get_*() functions 1158s # */ 1158s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 1158s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 1158s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 1158s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 1158s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 1158s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 1158s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 1158s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 1158s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 1158s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 1158s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 1158s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 1158s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 1158s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 1158s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 1158s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 1158s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 1158s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 1158s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 1158s # #endif /* !G_ENABLE_DEBUG */ 1158s # 1158s # typedef struct 1158s # { 1158s # GDBusArgInfo parent_struct; 1158s # gboolean use_gvariant; 1158s # } _ExtendedGDBusArgInfo; 1158s # 1158s # typedef struct 1158s # { 1158s # GDBusMethodInfo parent_struct; 1158s # const gchar *signal_name; 1158s # gboolean pass_fdlist; 1158s # } _ExtendedGDBusMethodInfo; 1158s # 1158s # typedef struct 1158s # { 1158s # GDBusSignalInfo parent_struct; 1158s # const gchar *signal_name; 1158s # } _ExtendedGDBusSignalInfo; 1158s # 1158s # typedef struct 1158s # { 1158s # GDBusPropertyInfo parent_struct; 1158s # const gchar *hyphen_name; 1158s # guint use_gvariant : 1; 1158s # guint emits_changed_signal : 1; 1158s # } _ExtendedGDBusPropertyInfo; 1158s # 1158s # typedef struct 1158s # { 1158s # GDBusInterfaceInfo parent_struct; 1158s # const gchar *hyphen_name; 1158s # } _ExtendedGDBusInterfaceInfo; 1158s # 1158s # typedef struct 1158s # { 1158s # const _ExtendedGDBusPropertyInfo *info; 1158s # guint prop_id; 1158s # GValue orig_value; /* the value before the change */ 1158s # } ChangedProperty; 1158s # 1158s # static void 1158s # _changed_property_free (ChangedProperty *data) 1158s # { 1158s # g_value_unset (&data->orig_value); 1158s # g_free (data); 1158s # } 1158s # 1158s # static gboolean 1158s # _g_strv_equal0 (gchar **a, gchar **b) 1158s # { 1158s # gboolean ret = FALSE; 1158s # guint n; 1158s # if (a == NULL && b == NULL) 1158s # { 1158s # ret = TRUE; 1158s # goto out; 1158s # } 1158s # if (a == NULL || b == NULL) 1158s # goto out; 1158s # if (g_strv_length (a) != g_strv_length (b)) 1158s # goto out; 1158s # for (n = 0; a[n] != NULL; n++) 1158s # if (g_strcmp0 (a[n], b[n]) != 0) 1158s # goto out; 1158s # ret = TRUE; 1158s # out: 1158s # return ret; 1158s # } 1158s # 1158s # static gboolean 1158s # _g_variant_equal0 (GVariant *a, GVariant *b) 1158s # { 1158s # gboolean ret = FALSE; 1158s # if (a == NULL && b == NULL) 1158s # { 1158s # ret = TRUE; 1158s # goto out; 1158s # } 1158s # if (a == NULL || b == NULL) 1158s # goto out; 1158s # ret = g_variant_equal (a, b); 1158s # out: 1158s # return ret; 1158s # } 1158s # 1158s # G_GNUC_UNUSED static gboolean 1158s # _g_value_equal (const GValue *a, const GValue *b) 1158s # { 1158s # gboolean ret = FALSE; 1158s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 1158s # switch (G_VALUE_TYPE (a)) 1158s # { 1158s # case G_TYPE_BOOLEAN: 1158s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 1158s # break; 1158s # case G_TYPE_UCHAR: 1158s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 1158s # break; 1158s # case G_TYPE_INT: 1158s # ret = (g_value_get_int (a) == g_value_get_int (b)); 1158s # break; 1158s # case G_TYPE_UINT: 1158s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 1158s # break; 1158s # case G_TYPE_INT64: 1158s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 1158s # break; 1158s # case G_TYPE_UINT64: 1158s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 1158s # break; 1158s # case G_TYPE_DOUBLE: 1158s # { 1158s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 1158s # gdouble da = g_value_get_double (a); 1158s # gdouble db = g_value_get_double (b); 1158s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 1158s # } 1158s # break; 1158s # case G_TYPE_STRING: 1158s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 1158s # break; 1158s # case G_TYPE_VARIANT: 1158s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 1158s # break; 1158s # default: 1158s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 1158s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 1158s # else 1158s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 1158s # break; 1158s # } 1158s # return ret; 1158s # } 1158s # 1158s # static void 1158s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT_BOXED ( 1158s # GClosure *closure, 1158s # GValue *return_value, 1158s # unsigned int n_param_values, 1158s # const GValue *param_values, 1158s # void *invocation_hint G_GNUC_UNUSED, 1158s # void *marshal_data) 1158s # { 1158s # typedef gboolean (*_GDbusCodegenMarshalBoolean_ObjectBoxedFunc) 1158s # (void *data1, 1158s # GDBusMethodInvocation *arg_method_invocation, 1158s # const gchar *const *arg_arg_as, 1158s # void *data2); 1158s # _GDbusCodegenMarshalBoolean_ObjectBoxedFunc callback; 1158s # GCClosure *cc = (GCClosure*) closure; 1158s # void *data1, *data2; 1158s # gboolean v_return; 1158s # 1158s # g_return_if_fail (return_value != NULL); 1158s # g_return_if_fail (n_param_values == 3); 1158s # 1158s # if (G_CCLOSURE_SWAP_DATA (closure)) 1158s # { 1158s # data1 = closure->data; 1158s # data2 = g_value_peek_pointer (param_values + 0); 1158s # } 1158s # else 1158s # { 1158s # data1 = g_value_peek_pointer (param_values + 0); 1158s # data2 = closure->data; 1158s # } 1158s # 1158s # callback = (_GDbusCodegenMarshalBoolean_ObjectBoxedFunc) 1158s # (marshal_data ? marshal_data : cc->callback); 1158s # 1158s # v_return = 1158s # callback (data1, 1158s # g_marshal_value_peek_object (param_values + 1), 1158s # g_marshal_value_peek_boxed (param_values + 2), 1158s # data2); 1158s # 1158s # g_value_set_boolean (return_value, v_return); 1158s # } 1158s # 1158s # /* ------------------------------------------------------------------------ 1158s # * Code for interface org.project.UsefulInterface 1158s # * ------------------------------------------------------------------------ 1158s # */ 1158s # 1158s # /** 1158s # * SECTION:OrgProjectUsefulInterface 1158s # * @title: OrgProjectUsefulInterface 1158s # * @short_description: Generated C code for the org.project.UsefulInterface D-Bus interface 1158s # * 1158s # * This section contains code for working with the org.project.UsefulInterface D-Bus interface in C. 1158s # */ 1158s # 1158s # /* ---- Introspection data for org.project.UsefulInterface ---- */ 1158s # 1158s # static const _ExtendedGDBusArgInfo _org_project_useful_interface_method_info_single_arg_method_as_IN_ARG_arg_as = 1158s # { 1158s # { 1158s # -1, 1158s # (gchar *) "arg_as", 1158s # (gchar *) "as", 1158s # NULL 1158s # }, 1158s # FALSE 1158s # }; 1158s # 1158s # static const GDBusArgInfo * const _org_project_useful_interface_method_info_single_arg_method_as_IN_ARG_pointers[] = 1158s # { 1158s # &_org_project_useful_interface_method_info_single_arg_method_as_IN_ARG_arg_as.parent_struct, 1158s # NULL 1158s # }; 1158s # 1158s # static const _ExtendedGDBusMethodInfo _org_project_useful_interface_method_info_single_arg_method_as = 1158s # { 1158s # { 1158s # -1, 1158s # (gchar *) "SingleArgMethodAs", 1158s # (GDBusArgInfo **) &_org_project_useful_interface_method_info_single_arg_method_as_IN_ARG_pointers, 1158s # NULL, 1158s # NULL 1158s # }, 1158s # "handle-single-arg-method-as", 1158s # FALSE 1158s # }; 1158s # 1158s # static const GDBusMethodInfo * const _org_project_useful_interface_method_info_pointers[] = 1158s # { 1158s # &_org_project_useful_interface_method_info_single_arg_method_as.parent_struct, 1158s # NULL 1158s # }; 1158s # 1158s # static const _ExtendedGDBusInterfaceInfo _org_project_useful_interface_interface_info = 1158s # { 1158s # { 1158s # -1, 1158s # (gchar *) "org.project.UsefulInterface", 1158s # (GDBusMethodInfo **) &_org_project_useful_interface_method_info_pointers, 1158s # NULL, 1158s # NULL, 1158s # NULL 1158s # }, 1158s # "org-project-useful-interface", 1158s # }; 1158s # 1158s # 1158s # /** 1158s # * org_project_useful_interface_interface_info: 1158s # * 1158s # * Gets a machine-readable description of the org.project.UsefulInterface D-Bus interface. 1158s # * 1158s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 1158s # */ 1158s # GDBusInterfaceInfo * 1158s # org_project_useful_interface_interface_info (void) 1158s # { 1158s # return (GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct; 1158s # } 1158s # 1158s # /** 1158s # * org_project_useful_interface_override_properties: 1158s # * @klass: The class structure for a #GObject derived class. 1158s # * @property_id_begin: The property id to assign to the first overridden property. 1158s # * 1158s # * Overrides all #GObject properties in the #OrgProjectUsefulInterface interface for a concrete class. 1158s # * The properties are overridden in the order they are defined. 1158s # * 1158s # * Returns: The last property id. 1158s # */ 1158s # guint 1158s # org_project_useful_interface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 1158s # { 1158s # return property_id_begin - 1; 1158s # } 1158s # 1158s # 1158s # inline static void 1158s # org_project_useful_interface_method_marshal_single_arg_method_as ( 1158s # GClosure *closure, 1158s # GValue *return_value, 1158s # unsigned int n_param_values, 1158s # const GValue *param_values, 1158s # void *invocation_hint, 1158s # void *marshal_data) 1158s # { 1158s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT_BOXED (closure, 1158s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1158s # } 1158s # 1158s # 1158s # /** 1158s # * OrgProjectUsefulInterface: 1158s # * 1158s # * Abstract interface type for the D-Bus interface org.project.UsefulInterface. 1158s # */ 1158s # 1158s # /** 1158s # * OrgProjectUsefulInterfaceIface: 1158s # * @parent_iface: The parent interface. 1158s # * @handle_single_arg_method_as: Handler for the #OrgProjectUsefulInterface::handle-single-arg-method-as signal. 1158s # * 1158s # * Virtual table for the D-Bus interface org.project.UsefulInterface. 1158s # */ 1158s # 1158s # typedef OrgProjectUsefulInterfaceIface OrgProjectUsefulInterfaceInterface; 1158s # G_DEFINE_INTERFACE (OrgProjectUsefulInterface, org_project_useful_interface, G_TYPE_OBJECT) 1158s # 1158s # static void 1158s # org_project_useful_interface_default_init (OrgProjectUsefulInterfaceIface *iface) 1158s # { 1158s # /* GObject signals for incoming D-Bus method calls: */ 1158s # /** 1158s # * OrgProjectUsefulInterface::handle-single-arg-method-as: 1158s # * @object: A #OrgProjectUsefulInterface. 1158s # * @invocation: A #GDBusMethodInvocation. 1158s # * @arg_arg_as: Argument passed by remote caller. 1158s # * 1158s # * Signal emitted when a remote caller is invoking the SingleArgMethodAs() D-Bus method. 1158s # * 1158s # * 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. 1158s # * 1158s # * 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. 1158s # */ 1158s # g_signal_new ("handle-single-arg-method-as", 1158s # G_TYPE_FROM_INTERFACE (iface), 1158s # G_SIGNAL_RUN_LAST, 1158s # G_STRUCT_OFFSET (OrgProjectUsefulInterfaceIface, handle_single_arg_method_as), 1158s # g_signal_accumulator_true_handled, 1158s # NULL, 1158s # org_project_useful_interface_method_marshal_single_arg_method_as, 1158s # G_TYPE_BOOLEAN, 1158s # 2, 1158s # G_TYPE_DBUS_METHOD_INVOCATION, G_TYPE_STRV); 1158s # 1158s # } 1158s # 1158s # /** 1158s # * org_project_useful_interface_call_single_arg_method_as: 1158s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1158s # * @arg_arg_as: Argument to pass with the method invocation. 1158s # * @cancellable: (nullable): A #GCancellable or %NULL. 1158s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL. 1158s # * @user_data: User data to pass to @callback. 1158s # * 1158s # * Asynchronously invokes the SingleArgMethodAs() D-Bus method on @proxy. 1158s # * 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()). 1158s # * You can then call org_project_useful_interface_call_single_arg_method_as_finish() to get the result of the operation. 1158s # * 1158s # * See org_project_useful_interface_call_single_arg_method_as_sync() for the synchronous, blocking version of this method. 1158s # */ 1158s # void 1158s # org_project_useful_interface_call_single_arg_method_as ( 1158s # OrgProjectUsefulInterface *proxy, 1158s # const gchar *const *arg_arg_as, 1158s # GCancellable *cancellable, 1158s # GAsyncReadyCallback callback, 1158s # gpointer user_data) 1158s # { 1158s # g_dbus_proxy_call (G_DBUS_PROXY (proxy), 1158s # "SingleArgMethodAs", 1158s # g_variant_new ("(^as)", 1158s # arg_arg_as), 1158s # G_DBUS_CALL_FLAGS_NONE, 1158s # -1, 1158s # cancellable, 1158s # callback, 1158s # user_data); 1158s # } 1158s # 1158s # /** 1158s # * org_project_useful_interface_call_single_arg_method_as_finish: 1158s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1158s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_call_single_arg_method_as(). 1158s # * @error: Return location for error or %NULL. 1158s # * 1158s # * Finishes an operation started with org_project_useful_interface_call_single_arg_method_as(). 1158s # * 1158s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1158s # */ 1158s # gboolean 1158s # org_project_useful_interface_call_single_arg_method_as_finish ( 1158s # OrgProjectUsefulInterface *proxy, 1158s # GAsyncResult *res, 1158s # GError **error) 1158s # { 1158s # GVariant *_ret; 1158s # _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error); 1158s # if (_ret == NULL) 1158s # goto _out; 1158s # g_variant_get (_ret, 1158s # "()"); 1158s # g_variant_unref (_ret); 1158s # _out: 1158s # return _ret != NULL; 1158s # } 1158s # 1158s # /** 1158s # * org_project_useful_interface_call_single_arg_method_as_sync: 1158s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1158s # * @arg_arg_as: Argument to pass with the method invocation. 1158s # * @cancellable: (nullable): A #GCancellable or %NULL. 1158s # * @error: Return location for error or %NULL. 1158s # * 1158s # * Synchronously invokes the SingleArgMethodAs() D-Bus method on @proxy. The calling thread is blocked until a reply is received. 1158s # * 1158s # * See org_project_useful_interface_call_single_arg_method_as() for the asynchronous version of this method. 1158s # * 1158s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1158s # */ 1158s # gboolean 1158s # org_project_useful_interface_call_single_arg_method_as_sync ( 1158s # OrgProjectUsefulInterface *proxy, 1158s # const gchar *const *arg_arg_as, 1158s # GCancellable *cancellable, 1158s # GError **error) 1158s # { 1158s # GVariant *_ret; 1158s # _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy), 1158s # "SingleArgMethodAs", 1158s # g_variant_new ("(^as)", 1158s # arg_arg_as), 1158s # G_DBUS_CALL_FLAGS_NONE, 1158s # -1, 1158s # cancellable, 1158s # error); 1158s # if (_ret == NULL) 1158s # goto _out; 1158s # g_variant_get (_ret, 1158s # "()"); 1158s # g_variant_unref (_ret); 1158s # _out: 1158s # return _ret != NULL; 1158s # } 1158s # 1158s # /** 1158s # * org_project_useful_interface_complete_single_arg_method_as: 1158s # * @object: A #OrgProjectUsefulInterface. 1158s # * @invocation: (transfer full): A #GDBusMethodInvocation. 1158s # * 1158s # * 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. 1158s # * 1158s # * This method will free @invocation, you cannot use it afterwards. 1158s # */ 1158s # void 1158s # org_project_useful_interface_complete_single_arg_method_as ( 1158s # OrgProjectUsefulInterface *object G_GNUC_UNUSED, 1158s # GDBusMethodInvocation *invocation) 1158s # { 1158s # g_dbus_method_invocation_return_value (invocation, 1158s # g_variant_new ("()")); 1158s # } 1158s # 1158s # /* ------------------------------------------------------------------------ */ 1158s # 1158s # /** 1158s # * OrgProjectUsefulInterfaceProxy: 1158s # * 1158s # * The #OrgProjectUsefulInterfaceProxy structure contains only private data and should only be accessed using the provided API. 1158s # */ 1158s # 1158s # /** 1158s # * OrgProjectUsefulInterfaceProxyClass: 1158s # * @parent_class: The parent class. 1158s # * 1158s # * Class structure for #OrgProjectUsefulInterfaceProxy. 1158s # */ 1158s # 1158s # struct _OrgProjectUsefulInterfaceProxyPrivate 1158s # { 1158s # GData *qdata; 1158s # }; 1158s # 1158s # static void org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface); 1158s # 1158s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1158s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 1158s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceProxy) 1158s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 1158s # 1158s # #else 1158s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 1158s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 1158s # 1158s # #endif 1158s # static void 1158s # org_project_useful_interface_proxy_finalize (GObject *object) 1158s # { 1158s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (object); 1158s # g_datalist_clear (&proxy->priv->qdata); 1158s # G_OBJECT_CLASS (org_project_useful_interface_proxy_parent_class)->finalize (object); 1158s # } 1158s # 1158s # static void 1158s # org_project_useful_interface_proxy_get_property (GObject *object G_GNUC_UNUSED, 1158s # guint prop_id G_GNUC_UNUSED, 1158s # GValue *value G_GNUC_UNUSED, 1158s # GParamSpec *pspec G_GNUC_UNUSED) 1158s # { 1158s # } 1158s # 1158s # static void 1158s # org_project_useful_interface_proxy_set_property (GObject *object G_GNUC_UNUSED, 1158s # guint prop_id G_GNUC_UNUSED, 1158s # const GValue *value G_GNUC_UNUSED, 1158s # GParamSpec *pspec G_GNUC_UNUSED) 1158s # { 1158s # } 1158s # 1158s # static void 1158s # org_project_useful_interface_proxy_g_signal (GDBusProxy *proxy, 1158s # const gchar *sender_name G_GNUC_UNUSED, 1158s # const gchar *signal_name, 1158s # GVariant *parameters) 1158s # { 1158s # _ExtendedGDBusSignalInfo *info; 1158s # GVariantIter iter; 1158s # GVariant *child; 1158s # GValue *paramv; 1158s # gsize num_params; 1158s # gsize n; 1158s # guint signal_id; 1158s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, signal_name); 1158s # if (info == NULL) 1158s # return; 1158s # num_params = g_variant_n_children (parameters); 1158s # paramv = g_new0 (GValue, num_params + 1); 1158s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1158s # g_value_set_object (¶mv[0], proxy); 1158s # g_variant_iter_init (&iter, parameters); 1158s # n = 1; 1158s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1158s # { 1158s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 1158s # if (arg_info->use_gvariant) 1158s # { 1158s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1158s # g_value_set_variant (¶mv[n], child); 1158s # n++; 1158s # } 1158s # else 1158s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1158s # g_variant_unref (child); 1158s # } 1158s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1158s # g_signal_emitv (paramv, signal_id, 0, NULL); 1158s # for (n = 0; n < num_params + 1; n++) 1158s # g_value_unset (¶mv[n]); 1158s # g_free (paramv); 1158s # } 1158s # 1158s # static void 1158s # org_project_useful_interface_proxy_g_properties_changed (GDBusProxy *_proxy, 1158s # GVariant *changed_properties, 1158s # const gchar *const *invalidated_properties) 1158s # { 1158s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (_proxy); 1158s # guint n; 1158s # const gchar *key; 1158s # GVariantIter *iter; 1158s # _ExtendedGDBusPropertyInfo *info; 1158s # g_variant_get (changed_properties, "a{sv}", &iter); 1158s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 1158s # { 1158s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, key); 1158s # g_datalist_remove_data (&proxy->priv->qdata, key); 1158s # if (info != NULL) 1158s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1158s # } 1158s # g_variant_iter_free (iter); 1158s # for (n = 0; invalidated_properties[n] != NULL; n++) 1158s # { 1158s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, invalidated_properties[n]); 1158s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 1158s # if (info != NULL) 1158s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1158s # } 1158s # } 1158s # 1158s # static void 1158s # org_project_useful_interface_proxy_init (OrgProjectUsefulInterfaceProxy *proxy) 1158s # { 1158s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1158s # proxy->priv = org_project_useful_interface_proxy_get_instance_private (proxy); 1158s # #else 1158s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY, OrgProjectUsefulInterfaceProxyPrivate); 1158s # #endif 1158s # 1158s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_useful_interface_interface_info ()); 1158s # } 1158s # 1158s # static void 1158s # org_project_useful_interface_proxy_class_init (OrgProjectUsefulInterfaceProxyClass *klass) 1158s # { 1158s # GObjectClass *gobject_class; 1158s # GDBusProxyClass *proxy_class; 1158s # 1158s # gobject_class = G_OBJECT_CLASS (klass); 1158s # gobject_class->finalize = org_project_useful_interface_proxy_finalize; 1158s # gobject_class->get_property = org_project_useful_interface_proxy_get_property; 1158s # gobject_class->set_property = org_project_useful_interface_proxy_set_property; 1158s # 1158s # proxy_class = G_DBUS_PROXY_CLASS (klass); 1158s # proxy_class->g_signal = org_project_useful_interface_proxy_g_signal; 1158s # proxy_class->g_properties_changed = org_project_useful_interface_proxy_g_properties_changed; 1158s # 1158s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1158s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceProxyPrivate)); 1158s # #endif 1158s # } 1158s # 1158s # static void 1158s # org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 1158s # { 1158s # } 1158s # 1158s # /** 1158s # * org_project_useful_interface_proxy_new: 1158s # * @connection: A #GDBusConnection. 1158s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1158s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1158s # * @object_path: An object path. 1158s # * @cancellable: (nullable): A #GCancellable or %NULL. 1158s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1158s # * @user_data: User data to pass to @callback. 1158s # * 1158s # * Asynchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new() for more details. 1158s # * 1158s # * 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()). 1158s # * You can then call org_project_useful_interface_proxy_new_finish() to get the result of the operation. 1158s # * 1158s # * See org_project_useful_interface_proxy_new_sync() for the synchronous, blocking version of this constructor. 1158s # */ 1158s # void 1158s # org_project_useful_interface_proxy_new ( 1158s # GDBusConnection *connection, 1158s # GDBusProxyFlags flags, 1158s # const gchar *name, 1158s # const gchar *object_path, 1158s # GCancellable *cancellable, 1158s # GAsyncReadyCallback callback, 1158s # gpointer user_data) 1158s # { 1158s # 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); 1158s # } 1158s # 1158s # /** 1158s # * org_project_useful_interface_proxy_new_finish: 1158s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new(). 1158s # * @error: Return location for error or %NULL 1158s # * 1158s # * Finishes an operation started with org_project_useful_interface_proxy_new(). 1158s # * 1158s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1158s # */ 1158s # OrgProjectUsefulInterface * 1158s # org_project_useful_interface_proxy_new_finish ( 1158s # GAsyncResult *res, 1158s # GError **error) 1158s # { 1158s # GObject *ret; 1158s # GObject *source_object; 1158s # source_object = g_async_result_get_source_object (res); 1158s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1158s # g_object_unref (source_object); 1158s # if (ret != NULL) 1158s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1158s # else 1158s # return NULL; 1158s # } 1158s # 1158s # /** 1158s # * org_project_useful_interface_proxy_new_sync: 1158s # * @connection: A #GDBusConnection. 1158s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1158s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1158s # * @object_path: An object path. 1158s # * @cancellable: (nullable): A #GCancellable or %NULL. 1158s # * @error: Return location for error or %NULL 1158s # * 1158s # * Synchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new_sync() for more details. 1158s # * 1158s # * The calling thread is blocked until a reply is received. 1158s # * 1158s # * See org_project_useful_interface_proxy_new() for the asynchronous version of this constructor. 1158s # * 1158s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1158s # */ 1158s # OrgProjectUsefulInterface * 1158s # org_project_useful_interface_proxy_new_sync ( 1158s # GDBusConnection *connection, 1158s # GDBusProxyFlags flags, 1158s # const gchar *name, 1158s # const gchar *object_path, 1158s # GCancellable *cancellable, 1158s # GError **error) 1158s # { 1158s # GInitable *ret; 1158s # 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); 1158s # if (ret != NULL) 1158s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1158s # else 1158s # return NULL; 1158s # } 1158s # 1158s # 1158s # /** 1158s # * org_project_useful_interface_proxy_new_for_bus: 1158s # * @bus_type: A #GBusType. 1158s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1158s # * @name: A bus name (well-known or unique). 1158s # * @object_path: An object path. 1158s # * @cancellable: (nullable): A #GCancellable or %NULL. 1158s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1158s # * @user_data: User data to pass to @callback. 1158s # * 1158s # * Like org_project_useful_interface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 1158s # * 1158s # * 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()). 1158s # * You can then call org_project_useful_interface_proxy_new_for_bus_finish() to get the result of the operation. 1158s # * 1158s # * See org_project_useful_interface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 1158s # */ 1158s # void 1158s # org_project_useful_interface_proxy_new_for_bus ( 1158s # GBusType bus_type, 1158s # GDBusProxyFlags flags, 1158s # const gchar *name, 1158s # const gchar *object_path, 1158s # GCancellable *cancellable, 1158s # GAsyncReadyCallback callback, 1158s # gpointer user_data) 1158s # { 1158s # 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); 1158s # } 1158s # 1158s # /** 1158s # * org_project_useful_interface_proxy_new_for_bus_finish: 1158s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new_for_bus(). 1158s # * @error: Return location for error or %NULL 1158s # * 1158s # * Finishes an operation started with org_project_useful_interface_proxy_new_for_bus(). 1158s # * 1158s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1158s # */ 1158s # OrgProjectUsefulInterface * 1158s # org_project_useful_interface_proxy_new_for_bus_finish ( 1158s # GAsyncResult *res, 1158s # GError **error) 1158s # { 1158s # GObject *ret; 1158s # GObject *source_object; 1158s # source_object = g_async_result_get_source_object (res); 1158s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1158s # g_object_unref (source_object); 1158s # if (ret != NULL) 1158s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1158s # else 1158s # return NULL; 1158s # } 1158s # 1158s # /** 1158s # * org_project_useful_interface_proxy_new_for_bus_sync: 1158s # * @bus_type: A #GBusType. 1158s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1158s # * @name: A bus name (well-known or unique). 1158s # * @object_path: An object path. 1158s # * @cancellable: (nullable): A #GCancellable or %NULL. 1158s # * @error: Return location for error or %NULL 1158s # * 1158s # * Like org_project_useful_interface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 1158s # * 1158s # * The calling thread is blocked until a reply is received. 1158s # * 1158s # * See org_project_useful_interface_proxy_new_for_bus() for the asynchronous version of this constructor. 1158s # * 1158s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1158s # */ 1158s # OrgProjectUsefulInterface * 1158s # org_project_useful_interface_proxy_new_for_bus_sync ( 1158s # GBusType bus_type, 1158s # GDBusProxyFlags flags, 1158s # const gchar *name, 1158s # const gchar *object_path, 1158s # GCancellable *cancellable, 1158s # GError **error) 1158s # { 1158s # GInitable *ret; 1158s # 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); 1158s # if (ret != NULL) 1158s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1158s # else 1158s # return NULL; 1158s # } 1158s # 1158s # 1158s # /* ------------------------------------------------------------------------ */ 1158s # 1158s # /** 1158s # * OrgProjectUsefulInterfaceSkeleton: 1158s # * 1158s # * The #OrgProjectUsefulInterfaceSkeleton structure contains only private data and should only be accessed using the provided API. 1158s # */ 1158s # 1158s # /** 1158s # * OrgProjectUsefulInterfaceSkeletonClass: 1158s # * @parent_class: The parent class. 1158s # * 1158s # * Class structure for #OrgProjectUsefulInterfaceSkeleton. 1158s # */ 1158s # 1158s # struct _OrgProjectUsefulInterfaceSkeletonPrivate 1158s # { 1158s # GValue *properties; 1158s # GList *changed_properties; 1158s # GSource *changed_properties_idle_source; 1158s # GMainContext *context; 1158s # GMutex lock; 1158s # }; 1158s # 1158s # static void 1158s # _org_project_useful_interface_skeleton_handle_method_call ( 1158s # GDBusConnection *connection G_GNUC_UNUSED, 1158s # const gchar *sender G_GNUC_UNUSED, 1158s # const gchar *object_path G_GNUC_UNUSED, 1158s # const gchar *interface_name, 1158s # const gchar *method_name, 1158s # GVariant *parameters, 1158s # GDBusMethodInvocation *invocation, 1158s # gpointer user_data) 1158s # { 1158s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1158s # _ExtendedGDBusMethodInfo *info; 1158s # GVariantIter iter; 1158s # GVariant *child; 1158s # GValue *paramv; 1158s # gsize num_params; 1158s # guint num_extra; 1158s # gsize n; 1158s # guint signal_id; 1158s # GValue return_value = G_VALUE_INIT; 1158s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 1158s # g_assert (info != NULL); 1158s # num_params = g_variant_n_children (parameters); 1158s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 1158s # n = 0; 1158s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1158s # g_value_set_object (¶mv[n++], skeleton); 1158s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 1158s # g_value_set_object (¶mv[n++], invocation); 1158s # if (info->pass_fdlist) 1158s # { 1158s # #ifdef G_OS_UNIX 1158s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 1158s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 1158s # #else 1158s # g_assert_not_reached (); 1158s # #endif 1158s # } 1158s # g_variant_iter_init (&iter, parameters); 1158s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1158s # { 1158s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 1158s # if (arg_info->use_gvariant) 1158s # { 1158s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1158s # g_value_set_variant (¶mv[n], child); 1158s # n++; 1158s # } 1158s # else 1158s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1158s # g_variant_unref (child); 1158s # } 1158s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1158s # g_value_init (&return_value, G_TYPE_BOOLEAN); 1158s # g_signal_emitv (paramv, signal_id, 0, &return_value); 1158s # if (!g_value_get_boolean (&return_value)) 1158s # 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); 1158s # g_value_unset (&return_value); 1158s # for (n = 0; n < num_params + num_extra; n++) 1158s # g_value_unset (¶mv[n]); 1158s # g_free (paramv); 1158s # } 1158s # 1158s # static GVariant * 1158s # _org_project_useful_interface_skeleton_handle_get_property ( 1158s # GDBusConnection *connection G_GNUC_UNUSED, 1158s # const gchar *sender G_GNUC_UNUSED, 1158s # const gchar *object_path G_GNUC_UNUSED, 1158s # const gchar *interface_name G_GNUC_UNUSED, 1158s # const gchar *property_name, 1158s # GError **error, 1158s # gpointer user_data) 1158s # { 1158s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1158s # GValue value = G_VALUE_INIT; 1158s # GParamSpec *pspec; 1158s # _ExtendedGDBusPropertyInfo *info; 1158s # GVariant *ret; 1158s # ret = NULL; 1158s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 1158s # g_assert (info != NULL); 1158s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1158s # if (pspec == NULL) 1158s # { 1158s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1158s # } 1158s # else 1158s # { 1158s # g_value_init (&value, pspec->value_type); 1158s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1158s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 1158s # g_value_unset (&value); 1158s # } 1158s # return ret; 1158s # } 1158s # 1158s # static gboolean 1158s # _org_project_useful_interface_skeleton_handle_set_property ( 1158s # GDBusConnection *connection G_GNUC_UNUSED, 1158s # const gchar *sender G_GNUC_UNUSED, 1158s # const gchar *object_path G_GNUC_UNUSED, 1158s # const gchar *interface_name G_GNUC_UNUSED, 1158s # const gchar *property_name, 1158s # GVariant *variant, 1158s # GError **error, 1158s # gpointer user_data) 1158s # { 1158s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1158s # GValue value = G_VALUE_INIT; 1158s # GParamSpec *pspec; 1158s # _ExtendedGDBusPropertyInfo *info; 1158s # gboolean ret; 1158s # ret = FALSE; 1158s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 1158s # g_assert (info != NULL); 1158s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1158s # if (pspec == NULL) 1158s # { 1158s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1158s # } 1158s # else 1158s # { 1158s # if (info->use_gvariant) 1158s # g_value_set_variant (&value, variant); 1158s # else 1158s # g_dbus_gvariant_to_gvalue (variant, &value); 1158s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1158s # g_value_unset (&value); 1158s # ret = TRUE; 1158s # } 1158s # return ret; 1158s # } 1158s # 1158s # static const GDBusInterfaceVTable _org_project_useful_interface_skeleton_vtable = 1158s # { 1158s # _org_project_useful_interface_skeleton_handle_method_call, 1158s # _org_project_useful_interface_skeleton_handle_get_property, 1158s # _org_project_useful_interface_skeleton_handle_set_property, 1158s # {NULL} 1158s # }; 1158s # 1158s # static GDBusInterfaceInfo * 1158s # org_project_useful_interface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1158s # { 1158s # return org_project_useful_interface_interface_info (); 1158s # } 1158s # 1158s # static GDBusInterfaceVTable * 1158s # org_project_useful_interface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1158s # { 1158s # return (GDBusInterfaceVTable *) &_org_project_useful_interface_skeleton_vtable; 1158s # } 1158s # 1158s # static GVariant * 1158s # org_project_useful_interface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 1158s # { 1158s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (_skeleton); 1158s # 1158s # GVariantBuilder builder; 1158s # guint n; 1158s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 1158s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 1158s # #else 1158s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 1158s # #endif 1158s # if (_org_project_useful_interface_interface_info.parent_struct.properties == NULL) 1158s # goto out; 1158s # for (n = 0; _org_project_useful_interface_interface_info.parent_struct.properties[n] != NULL; n++) 1158s # { 1158s # GDBusPropertyInfo *info = _org_project_useful_interface_interface_info.parent_struct.properties[n]; 1158s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 1158s # { 1158s # GVariant *value; 1158s # 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); 1158s # if (value != NULL) 1158s # { 1158s # g_variant_take_ref (value); 1158s # g_variant_builder_add (&builder, "{sv}", info->name, value); 1158s # g_variant_unref (value); 1158s # } 1158s # } 1158s # } 1158s # out: 1158s # return g_variant_builder_end (&builder); 1158s # } 1158s # 1158s # static void 1158s # org_project_useful_interface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 1158s # { 1158s # } 1158s # 1158s # static void org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface); 1158s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1158s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1158s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceSkeleton) 1158s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 1158s # 1158s # #else 1158s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1158s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 1158s # 1158s # #endif 1158s # static void 1158s # org_project_useful_interface_skeleton_finalize (GObject *object) 1158s # { 1158s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (object); 1158s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 1158s # if (skeleton->priv->changed_properties_idle_source != NULL) 1158s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 1158s # g_main_context_unref (skeleton->priv->context); 1158s # g_mutex_clear (&skeleton->priv->lock); 1158s # G_OBJECT_CLASS (org_project_useful_interface_skeleton_parent_class)->finalize (object); 1158s # } 1158s # 1158s # static void 1158s # org_project_useful_interface_skeleton_init (OrgProjectUsefulInterfaceSkeleton *skeleton) 1158s # { 1158s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1158s # skeleton->priv = org_project_useful_interface_skeleton_get_instance_private (skeleton); 1158s # #else 1158s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, OrgProjectUsefulInterfaceSkeletonPrivate); 1158s # #endif 1158s # 1158s # g_mutex_init (&skeleton->priv->lock); 1158s # skeleton->priv->context = g_main_context_ref_thread_default (); 1158s # } 1158s # 1158s # static void 1158s # org_project_useful_interface_skeleton_class_init (OrgProjectUsefulInterfaceSkeletonClass *klass) 1158s # { 1158s # GObjectClass *gobject_class; 1158s # GDBusInterfaceSkeletonClass *skeleton_class; 1158s # 1158s # gobject_class = G_OBJECT_CLASS (klass); 1158s # gobject_class->finalize = org_project_useful_interface_skeleton_finalize; 1158s # 1158s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 1158s # skeleton_class->get_info = org_project_useful_interface_skeleton_dbus_interface_get_info; 1158s # skeleton_class->get_properties = org_project_useful_interface_skeleton_dbus_interface_get_properties; 1158s # skeleton_class->flush = org_project_useful_interface_skeleton_dbus_interface_flush; 1158s # skeleton_class->get_vtable = org_project_useful_interface_skeleton_dbus_interface_get_vtable; 1158s # 1158s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1158s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceSkeletonPrivate)); 1158s # #endif 1158s # } 1158s # 1158s # static void 1158s # org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 1158s # { 1158s # } 1158s # 1158s # /** 1158s # * org_project_useful_interface_skeleton_new: 1158s # * 1158s # * Creates a skeleton object for the D-Bus interface org.project.UsefulInterface. 1158s # * 1158s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceSkeleton): The skeleton object. 1158s # */ 1158s # OrgProjectUsefulInterface * 1158s # org_project_useful_interface_skeleton_new (void) 1158s # { 1158s # return ORG_PROJECT_USEFUL_INTERFACE (g_object_new (TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, NULL)); 1158s # } 1158s # Error: 1158s # 1158s # /tmp/tmpv_fj8nn0/tmpe66hu841.xml: 1158s # 1158s # 1158s # 1158s # 1158s # 1158s # 1158s # 1158s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpv_fj8nn0/tmpe66hu841.xml', '--output', '-', '--body'] 1158s # Return code: 0 1158s # Output: 1158s # /* 1158s # * This file is generated by gdbus-codegen, do not modify it. 1158s # * 1158s # * The license of this code is the same as for the D-Bus interface description 1158s # * it was derived from. Note that it links to GLib, so must comply with the 1158s # * LGPL linking clauses. 1158s # */ 1158s # 1158s # #ifdef HAVE_CONFIG_H 1158s # # include "config.h" 1158s # #endif 1158s # 1158s # #include 1158s # #ifdef G_OS_UNIX 1158s # # include 1158s # #endif 1158s # 1158s # #ifdef G_ENABLE_DEBUG 1158s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 1158s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 1158s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 1158s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 1158s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 1158s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 1158s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 1158s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 1158s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 1158s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 1158s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 1158s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 1158s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 1158s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 1158s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 1158s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 1158s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 1158s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 1158s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 1158s # #else /* !G_ENABLE_DEBUG */ 1158s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 1158s # * Do not access GValues directly in your code. Instead, use the 1158s # * g_value_get_*() functions 1158s # */ 1158s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 1158s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 1158s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 1158s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 1158s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 1158s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 1158s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 1158s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 1158s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 1158s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 1158s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 1158s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 1158s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 1158s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 1158s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 1158s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 1158s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 1158s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 1158s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 1158s # #endif /* !G_ENABLE_DEBUG */ 1158s # 1158s # typedef struct 1158s # { 1158s # GDBusArgInfo parent_struct; 1158s # gboolean use_gvariant; 1158s # } _ExtendedGDBusArgInfo; 1158s # 1158s # typedef struct 1158s # { 1158s # GDBusMethodInfo parent_struct; 1158s # const gchar *signal_name; 1158s # gboolean pass_fdlist; 1158s # } _ExtendedGDBusMethodInfo; 1158s # 1158s # typedef struct 1158s # { 1158s # GDBusSignalInfo parent_struct; 1158s # const gchar *signal_name; 1158s # } _ExtendedGDBusSignalInfo; 1158s # 1158s # typedef struct 1158s # { 1158s # GDBusPropertyInfo parent_struct; 1158s # const gchar *hyphen_name; 1158s # guint use_gvariant : 1; 1158s # guint emits_changed_signal : 1; 1158s # } _ExtendedGDBusPropertyInfo; 1158s # 1158s # typedef struct 1158s # { 1158s # GDBusInterfaceInfo parent_struct; 1158s # const gchar *hyphen_name; 1158s # } _ExtendedGDBusInterfaceInfo; 1158s # 1158s # typedef struct 1158s # { 1158s # const _ExtendedGDBusPropertyInfo *info; 1158s # guint prop_id; 1158s # GValue orig_value; /* the value before the change */ 1158s # } ChangedProperty; 1158s # 1158s # static void 1158s # _changed_property_free (ChangedProperty *data) 1158s # { 1158s # g_value_unset (&data->orig_value); 1158s # g_free (data); 1158s # } 1158s # 1158s # static gboolean 1158s # _g_strv_equal0 (gchar **a, gchar **b) 1158s # { 1158s # gboolean ret = FALSE; 1158s # guint n; 1158s # if (a == NULL && b == NULL) 1158s # { 1158s # ret = TRUE; 1158s # goto out; 1158s # } 1158s # if (a == NULL || b == NULL) 1158s # goto out; 1158s # if (g_strv_length (a) != g_strv_length (b)) 1158s # goto out; 1158s # for (n = 0; a[n] != NULL; n++) 1158s # if (g_strcmp0 (a[n], b[n]) != 0) 1158s # goto out; 1158s # ret = TRUE; 1158s # out: 1158s # return ret; 1158s # } 1158s # 1158s # static gboolean 1158s # _g_variant_equal0 (GVariant *a, GVariant *b) 1158s # { 1158s # gboolean ret = FALSE; 1158s # if (a == NULL && b == NULL) 1158s # { 1158s # ret = TRUE; 1158s # goto out; 1158s # } 1158s # if (a == NULL || b == NULL) 1158s # goto out; 1158s # ret = g_variant_equal (a, b); 1158s # out: 1158s # return ret; 1158s # } 1158s # 1158s # G_GNUC_UNUSED static gboolean 1158s # _g_value_equal (const GValue *a, const GValue *b) 1158s # { 1158s # gboolean ret = FALSE; 1158s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 1158s # switch (G_VALUE_TYPE (a)) 1158s # { 1158s # case G_TYPE_BOOLEAN: 1158s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 1158s # break; 1158s # case G_TYPE_UCHAR: 1158s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 1158s # break; 1158s # case G_TYPE_INT: 1158s # ret = (g_value_get_int (a) == g_value_get_int (b)); 1158s # break; 1158s # case G_TYPE_UINT: 1158s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 1158s # break; 1158s # case G_TYPE_INT64: 1158s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 1158s # break; 1158s # case G_TYPE_UINT64: 1158s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 1158s # break; 1158s # case G_TYPE_DOUBLE: 1158s # { 1158s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 1158s # gdouble da = g_value_get_double (a); 1158s # gdouble db = g_value_get_double (b); 1158s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 1158s # } 1158s # break; 1158s # case G_TYPE_STRING: 1158s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 1158s # break; 1158s # case G_TYPE_VARIANT: 1158s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 1158s # break; 1158s # default: 1158s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 1158s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 1158s # else 1158s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 1158s # break; 1158s # } 1158s # return ret; 1158s # } 1158s # 1158s # static void 1158s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT_BOXED ( 1158s # GClosure *closure, 1158s # GValue *return_value, 1158s # unsigned int n_param_values, 1158s # const GValue *param_values, 1158s # void *invocation_hint G_GNUC_UNUSED, 1158s # void *marshal_data) 1158s # { 1158s # typedef gboolean (*_GDbusCodegenMarshalBoolean_ObjectBoxedFunc) 1158s # (void *data1, 1158s # GDBusMethodInvocation *arg_method_invocation, 1158s # const gchar *const *arg_arg_ao, 1158s # void *data2); 1158s # _GDbusCodegenMarshalBoolean_ObjectBoxedFunc callback; 1158s # GCClosure *cc = (GCClosure*) closure; 1158s # void *data1, *data2; 1158s # gboolean v_return; 1158s # 1158s # g_return_if_fail (return_value != NULL); 1158s # g_return_if_fail (n_param_values == 3); 1158s # 1158s # if (G_CCLOSURE_SWAP_DATA (closure)) 1158s # { 1158s # data1 = closure->data; 1158s # data2 = g_value_peek_pointer (param_values + 0); 1158s # } 1158s # else 1158s # { 1158s # data1 = g_value_peek_pointer (param_values + 0); 1158s # data2 = closure->data; 1158s # } 1158s # 1158s # callback = (_GDbusCodegenMarshalBoolean_ObjectBoxedFunc) 1158s # (marshal_data ? marshal_data : cc->callback); 1158s # 1158s # v_return = 1158s # callback (data1, 1158s # g_marshal_value_peek_object (param_values + 1), 1158s # g_marshal_value_peek_boxed (param_values + 2), 1158s # data2); 1158s # 1158s # g_value_set_boolean (return_value, v_return); 1158s # } 1158s # 1158s # /* ------------------------------------------------------------------------ 1158s # * Code for interface org.project.UsefulInterface 1158s # * ------------------------------------------------------------------------ 1158s # */ 1158s # 1158s # /** 1158s # * SECTION:OrgProjectUsefulInterface 1158s # * @title: OrgProjectUsefulInterface 1158s # * @short_description: Generated C code for the org.project.UsefulInterface D-Bus interface 1158s # * 1158s # * This section contains code for working with the org.project.UsefulInterface D-Bus interface in C. 1158s # */ 1158s # 1158s # /* ---- Introspection data for org.project.UsefulInterface ---- */ 1158s # 1158s # static const _ExtendedGDBusArgInfo _org_project_useful_interface_method_info_single_arg_method_ao_IN_ARG_arg_ao = 1158s # { 1158s # { 1158s # -1, 1158s # (gchar *) "arg_ao", 1158s # (gchar *) "ao", 1158s # NULL 1158s # }, 1158s # FALSE 1158s # }; 1158s # 1158s # static const GDBusArgInfo * const _org_project_useful_interface_method_info_single_arg_method_ao_IN_ARG_pointers[] = 1158s # { 1158s # &_org_project_useful_interface_method_info_single_arg_method_ao_IN_ARG_arg_ao.parent_struct, 1158s # NULL 1158s # }; 1158s # 1158s # static const _ExtendedGDBusMethodInfo _org_project_useful_interface_method_info_single_arg_method_ao = 1158s # { 1158s # { 1158s # -1, 1158s # (gchar *) "SingleArgMethodAo", 1158s # (GDBusArgInfo **) &_org_project_useful_interface_method_info_single_arg_method_ao_IN_ARG_pointers, 1158s # NULL, 1158s # NULL 1158s # }, 1158s # "handle-single-arg-method-ao", 1158s # FALSE 1158s # }; 1158s # 1158s # static const GDBusMethodInfo * const _org_project_useful_interface_method_info_pointers[] = 1158s # { 1158s # &_org_project_useful_interface_method_info_single_arg_method_ao.parent_struct, 1158s # NULL 1158s # }; 1158s # 1158s # static const _ExtendedGDBusInterfaceInfo _org_project_useful_interface_interface_info = 1158s # { 1158s # { 1158s # -1, 1158s # (gchar *) "org.project.UsefulInterface", 1158s # (GDBusMethodInfo **) &_org_project_useful_interface_method_info_pointers, 1158s # NULL, 1158s # NULL, 1158s # NULL 1158s # }, 1158s # "org-project-useful-interface", 1158s # }; 1158s # 1158s # 1158s # /** 1158s # * org_project_useful_interface_interface_info: 1158s # * 1158s # * Gets a machine-readable description of the org.project.UsefulInterface D-Bus interface. 1158s # * 1158s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 1158s # */ 1158s # GDBusInterfaceInfo * 1158s # org_project_useful_interface_interface_info (void) 1158s # { 1158s # return (GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct; 1158s # } 1158s # 1158s # /** 1158s # * org_project_useful_interface_override_properties: 1158s # * @klass: The class structure for a #GObject derived class. 1158s # * @property_id_begin: The property id to assign to the first overridden property. 1158s # * 1158s # * Overrides all #GObject properties in the #OrgProjectUsefulInterface interface for a concrete class. 1158s # * The properties are overridden in the order they are defined. 1158s # * 1158s # * Returns: The last property id. 1158s # */ 1158s # guint 1158s # org_project_useful_interface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 1158s # { 1158s # return property_id_begin - 1; 1158s # } 1158s # 1158s # 1158s # inline static void 1158s # org_project_useful_interface_method_marshal_single_arg_method_ao ( 1158s # GClosure *closure, 1158s # GValue *return_value, 1158s # unsigned int n_param_values, 1158s # const GValue *param_values, 1158s # void *invocation_hint, 1158s # void *marshal_data) 1158s # { 1158s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT_BOXED (closure, 1158s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1158s # } 1158s # 1158s # 1158s # /** 1158s # * OrgProjectUsefulInterface: 1158s # * 1158s # * Abstract interface type for the D-Bus interface org.project.UsefulInterface. 1158s # */ 1158s # 1158s # /** 1158s # * OrgProjectUsefulInterfaceIface: 1158s # * @parent_iface: The parent interface. 1158s # * @handle_single_arg_method_ao: Handler for the #OrgProjectUsefulInterface::handle-single-arg-method-ao signal. 1158s # * 1158s # * Virtual table for the D-Bus interface org.project.UsefulInterface. 1158s # */ 1158s # 1158s # typedef OrgProjectUsefulInterfaceIface OrgProjectUsefulInterfaceInterface; 1158s # G_DEFINE_INTERFACE (OrgProjectUsefulInterface, org_project_useful_interface, G_TYPE_OBJECT) 1158s # 1158s # static void 1158s # org_project_useful_interface_default_init (OrgProjectUsefulInterfaceIface *iface) 1158s # { 1158s # /* GObject signals for incoming D-Bus method calls: */ 1158s # /** 1158s # * OrgProjectUsefulInterface::handle-single-arg-method-ao: 1158s # * @object: A #OrgProjectUsefulInterface. 1158s # * @invocation: A #GDBusMethodInvocation. 1158s # * @arg_arg_ao: Argument passed by remote caller. 1158s # * 1158s # * Signal emitted when a remote caller is invoking the SingleArgMethodAo() D-Bus method. 1158s # * 1158s # * 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. 1158s # * 1158s # * 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. 1158s # */ 1158s # g_signal_new ("handle-single-arg-method-ao", 1158s # G_TYPE_FROM_INTERFACE (iface), 1158s # G_SIGNAL_RUN_LAST, 1158s # G_STRUCT_OFFSET (OrgProjectUsefulInterfaceIface, handle_single_arg_method_ao), 1158s # g_signal_accumulator_true_handled, 1158s # NULL, 1158s # org_project_useful_interface_method_marshal_single_arg_method_ao, 1158s # G_TYPE_BOOLEAN, 1158s # 2, 1158s # G_TYPE_DBUS_METHOD_INVOCATION, G_TYPE_STRV); 1158s # 1158s # } 1158s # 1158s # /** 1158s # * org_project_useful_interface_call_single_arg_method_ao: 1158s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1158s # * @arg_arg_ao: Argument to pass with the method invocation. 1158s # * @cancellable: (nullable): A #GCancellable or %NULL. 1158s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL. 1158s # * @user_data: User data to pass to @callback. 1158s # * 1158s # * Asynchronously invokes the SingleArgMethodAo() D-Bus method on @proxy. 1158s # * 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()). 1158s # * You can then call org_project_useful_interface_call_single_arg_method_ao_finish() to get the result of the operation. 1158s # * 1158s # * See org_project_useful_interface_call_single_arg_method_ao_sync() for the synchronous, blocking version of this method. 1158s # */ 1158s # void 1158s # org_project_useful_interface_call_single_arg_method_ao ( 1158s # OrgProjectUsefulInterface *proxy, 1158s # const gchar *const *arg_arg_ao, 1158s # GCancellable *cancellable, 1158s # GAsyncReadyCallback callback, 1158s # gpointer user_data) 1158s # { 1158s # g_dbus_proxy_call (G_DBUS_PROXY (proxy), 1158s # "SingleArgMethodAo", 1158s # g_variant_new ("(^ao)", 1158s # arg_arg_ao), 1158s # G_DBUS_CALL_FLAGS_NONE, 1158s # -1, 1158s # cancellable, 1158s # callback, 1158s # user_data); 1158s # } 1158s # 1158s # /** 1158s # * org_project_useful_interface_call_single_arg_method_ao_finish: 1158s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1158s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_call_single_arg_method_ao(). 1158s # * @error: Return location for error or %NULL. 1158s # * 1158s # * Finishes an operation started with org_project_useful_interface_call_single_arg_method_ao(). 1158s # * 1158s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1158s # */ 1158s # gboolean 1158s # org_project_useful_interface_call_single_arg_method_ao_finish ( 1158s # OrgProjectUsefulInterface *proxy, 1158s # GAsyncResult *res, 1158s # GError **error) 1158s # { 1158s # GVariant *_ret; 1158s # _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error); 1158s # if (_ret == NULL) 1158s # goto _out; 1158s # g_variant_get (_ret, 1158s # "()"); 1158s # g_variant_unref (_ret); 1158s # _out: 1158s # return _ret != NULL; 1158s # } 1158s # 1158s # /** 1158s # * org_project_useful_interface_call_single_arg_method_ao_sync: 1158s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1158s # * @arg_arg_ao: Argument to pass with the method invocation. 1158s # * @cancellable: (nullable): A #GCancellable or %NULL. 1158s # * @error: Return location for error or %NULL. 1158s # * 1158s # * Synchronously invokes the SingleArgMethodAo() D-Bus method on @proxy. The calling thread is blocked until a reply is received. 1158s # * 1158s # * See org_project_useful_interface_call_single_arg_method_ao() for the asynchronous version of this method. 1158s # * 1158s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1158s # */ 1158s # gboolean 1158s # org_project_useful_interface_call_single_arg_method_ao_sync ( 1158s # OrgProjectUsefulInterface *proxy, 1158s # const gchar *const *arg_arg_ao, 1158s # GCancellable *cancellable, 1158s # GError **error) 1158s # { 1158s # GVariant *_ret; 1158s # _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy), 1158s # "SingleArgMethodAo", 1158s # g_variant_new ("(^ao)", 1158s # arg_arg_ao), 1158s # G_DBUS_CALL_FLAGS_NONE, 1158s # -1, 1158s # cancellable, 1158s # error); 1158s # if (_ret == NULL) 1158s # goto _out; 1158s # g_variant_get (_ret, 1158s # "()"); 1158s # g_variant_unref (_ret); 1158s # _out: 1158s # return _ret != NULL; 1158s # } 1158s # 1158s # /** 1158s # * org_project_useful_interface_complete_single_arg_method_ao: 1158s # * @object: A #OrgProjectUsefulInterface. 1158s # * @invocation: (transfer full): A #GDBusMethodInvocation. 1158s # * 1158s # * 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. 1158s # * 1158s # * This method will free @invocation, you cannot use it afterwards. 1158s # */ 1158s # void 1158s # org_project_useful_interface_complete_single_arg_method_ao ( 1158s # OrgProjectUsefulInterface *object G_GNUC_UNUSED, 1158s # GDBusMethodInvocation *invocation) 1158s # { 1158s # g_dbus_method_invocation_return_value (invocation, 1158s # g_variant_new ("()")); 1158s # } 1158s # 1158s # /* ------------------------------------------------------------------------ */ 1158s # 1158s # /** 1158s # * OrgProjectUsefulInterfaceProxy: 1158s # * 1158s # * The #OrgProjectUsefulInterfaceProxy structure contains only private data and should only be accessed using the provided API. 1158s # */ 1158s # 1158s # /** 1158s # * OrgProjectUsefulInterfaceProxyClass: 1158s # * @parent_class: The parent class. 1158s # * 1158s # * Class structure for #OrgProjectUsefulInterfaceProxy. 1158s # */ 1158s # 1158s # struct _OrgProjectUsefulInterfaceProxyPrivate 1158s # { 1158s # GData *qdata; 1158s # }; 1158s # 1158s # static void org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface); 1158s # 1158s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1158s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 1158s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceProxy) 1158s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 1158s # 1158s # #else 1158s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 1158s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 1158s # 1158s # #endif 1158s # static void 1158s # org_project_useful_interface_proxy_finalize (GObject *object) 1158s # { 1158s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (object); 1158s # g_datalist_clear (&proxy->priv->qdata); 1158s # G_OBJECT_CLASS (org_project_useful_interface_proxy_parent_class)->finalize (object); 1158s # } 1158s # 1158s # static void 1158s # org_project_useful_interface_proxy_get_property (GObject *object G_GNUC_UNUSED, 1158s # guint prop_id G_GNUC_UNUSED, 1158s # GValue *value G_GNUC_UNUSED, 1158s # GParamSpec *pspec G_GNUC_UNUSED) 1158s # { 1158s # } 1158s # 1158s # static void 1158s # org_project_useful_interface_proxy_set_property (GObject *object G_GNUC_UNUSED, 1158s # guint prop_id G_GNUC_UNUSED, 1158s # const GValue *value G_GNUC_UNUSED, 1158s # GParamSpec *pspec G_GNUC_UNUSED) 1158s # { 1158s # } 1158s # 1158s # static void 1158s # org_project_useful_interface_proxy_g_signal (GDBusProxy *proxy, 1158s # const gchar *sender_name G_GNUC_UNUSED, 1158s # const gchar *signal_name, 1158s # GVariant *parameters) 1158s # { 1158s # _ExtendedGDBusSignalInfo *info; 1158s # GVariantIter iter; 1158s # GVariant *child; 1158s # GValue *paramv; 1158s # gsize num_params; 1158s # gsize n; 1158s # guint signal_id; 1158s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, signal_name); 1158s # if (info == NULL) 1158s # return; 1158s # num_params = g_variant_n_children (parameters); 1158s # paramv = g_new0 (GValue, num_params + 1); 1158s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1158s # g_value_set_object (¶mv[0], proxy); 1158s # g_variant_iter_init (&iter, parameters); 1158s # n = 1; 1158s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1158s # { 1158s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 1158s # if (arg_info->use_gvariant) 1158s # { 1158s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1158s # g_value_set_variant (¶mv[n], child); 1158s # n++; 1158s # } 1158s # else 1158s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1158s # g_variant_unref (child); 1158s # } 1158s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1158s # g_signal_emitv (paramv, signal_id, 0, NULL); 1158s # for (n = 0; n < num_params + 1; n++) 1158s # g_value_unset (¶mv[n]); 1158s # g_free (paramv); 1158s # } 1158s # 1158s # static void 1158s # org_project_useful_interface_proxy_g_properties_changed (GDBusProxy *_proxy, 1158s # GVariant *changed_properties, 1158s # const gchar *const *invalidated_properties) 1158s # { 1158s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (_proxy); 1158s # guint n; 1158s # const gchar *key; 1158s # GVariantIter *iter; 1158s # _ExtendedGDBusPropertyInfo *info; 1158s # g_variant_get (changed_properties, "a{sv}", &iter); 1158s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 1158s # { 1158s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, key); 1158s # g_datalist_remove_data (&proxy->priv->qdata, key); 1158s # if (info != NULL) 1158s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1158s # } 1158s # g_variant_iter_free (iter); 1158s # for (n = 0; invalidated_properties[n] != NULL; n++) 1158s # { 1158s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, invalidated_properties[n]); 1158s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 1158s # if (info != NULL) 1158s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1158s # } 1158s # } 1158s # 1158s # static void 1158s # org_project_useful_interface_proxy_init (OrgProjectUsefulInterfaceProxy *proxy) 1158s # { 1158s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1158s # proxy->priv = org_project_useful_interface_proxy_get_instance_private (proxy); 1158s # #else 1158s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY, OrgProjectUsefulInterfaceProxyPrivate); 1158s # #endif 1158s # 1158s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_useful_interface_interface_info ()); 1158s # } 1158s # 1158s # static void 1158s # org_project_useful_interface_proxy_class_init (OrgProjectUsefulInterfaceProxyClass *klass) 1158s # { 1158s # GObjectClass *gobject_class; 1158s # GDBusProxyClass *proxy_class; 1158s # 1158s # gobject_class = G_OBJECT_CLASS (klass); 1158s # gobject_class->finalize = org_project_useful_interface_proxy_finalize; 1158s # gobject_class->get_property = org_project_useful_interface_proxy_get_property; 1158s # gobject_class->set_property = org_project_useful_interface_proxy_set_property; 1158s # 1158s # proxy_class = G_DBUS_PROXY_CLASS (klass); 1158s # proxy_class->g_signal = org_project_useful_interface_proxy_g_signal; 1158s # proxy_class->g_properties_changed = org_project_useful_interface_proxy_g_properties_changed; 1158s # 1158s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1158s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceProxyPrivate)); 1158s # #endif 1158s # } 1158s # 1158s # static void 1158s # org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 1158s # { 1158s # } 1158s # 1158s # /** 1158s # * org_project_useful_interface_proxy_new: 1158s # * @connection: A #GDBusConnection. 1158s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1158s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1158s # * @object_path: An object path. 1158s # * @cancellable: (nullable): A #GCancellable or %NULL. 1158s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1158s # * @user_data: User data to pass to @callback. 1158s # * 1158s # * Asynchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new() for more details. 1158s # * 1158s # * 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()). 1158s # * You can then call org_project_useful_interface_proxy_new_finish() to get the result of the operation. 1158s # * 1158s # * See org_project_useful_interface_proxy_new_sync() for the synchronous, blocking version of this constructor. 1158s # */ 1158s # void 1158s # org_project_useful_interface_proxy_new ( 1158s # GDBusConnection *connection, 1158s # GDBusProxyFlags flags, 1158s # const gchar *name, 1158s # const gchar *object_path, 1158s # GCancellable *cancellable, 1158s # GAsyncReadyCallback callback, 1158s # gpointer user_data) 1158s # { 1158s # 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); 1158s # } 1158s # 1158s # /** 1158s # * org_project_useful_interface_proxy_new_finish: 1158s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new(). 1158s # * @error: Return location for error or %NULL 1158s # * 1158s # * Finishes an operation started with org_project_useful_interface_proxy_new(). 1158s # * 1158s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1158s # */ 1158s # OrgProjectUsefulInterface * 1158s # org_project_useful_interface_proxy_new_finish ( 1158s # GAsyncResult *res, 1158s # GError **error) 1158s # { 1158s # GObject *ret; 1158s # GObject *source_object; 1158s # source_object = g_async_result_get_source_object (res); 1158s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1158s # g_object_unref (source_object); 1158s # if (ret != NULL) 1158s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1158s # else 1158s # return NULL; 1158s # } 1158s # 1158s # /** 1158s # * org_project_useful_interface_proxy_new_sync: 1158s # * @connection: A #GDBusConnection. 1158s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1158s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1158s # * @object_path: An object path. 1158s # * @cancellable: (nullable): A #GCancellable or %NULL. 1158s # * @error: Return location for error or %NULL 1158s # * 1158s # * Synchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new_sync() for more details. 1158s # * 1158s # * The calling thread is blocked until a reply is received. 1158s # * 1158s # * See org_project_useful_interface_proxy_new() for the asynchronous version of this constructor. 1158s # * 1158s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1158s # */ 1158s # OrgProjectUsefulInterface * 1158s # org_project_useful_interface_proxy_new_sync ( 1158s # GDBusConnection *connection, 1158s # GDBusProxyFlags flags, 1158s # const gchar *name, 1158s # const gchar *object_path, 1158s # GCancellable *cancellable, 1158s # GError **error) 1158s # { 1158s # GInitable *ret; 1158s # 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); 1158s # if (ret != NULL) 1158s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1158s # else 1158s # return NULL; 1158s # } 1158s # 1158s # 1158s # /** 1158s # * org_project_useful_interface_proxy_new_for_bus: 1158s # * @bus_type: A #GBusType. 1158s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1158s # * @name: A bus name (well-known or unique). 1158s # * @object_path: An object path. 1158s # * @cancellable: (nullable): A #GCancellable or %NULL. 1158s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1158s # * @user_data: User data to pass to @callback. 1158s # * 1158s # * Like org_project_useful_interface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 1158s # * 1158s # * 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()). 1158s # * You can then call org_project_useful_interface_proxy_new_for_bus_finish() to get the result of the operation. 1158s # * 1158s # * See org_project_useful_interface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 1158s # */ 1158s # void 1158s # org_project_useful_interface_proxy_new_for_bus ( 1158s # GBusType bus_type, 1158s # GDBusProxyFlags flags, 1158s # const gchar *name, 1158s # const gchar *object_path, 1158s # GCancellable *cancellable, 1158s # GAsyncReadyCallback callback, 1158s # gpointer user_data) 1158s # { 1158s # 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); 1158s # } 1158s # 1158s # /** 1158s # * org_project_useful_interface_proxy_new_for_bus_finish: 1158s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new_for_bus(). 1158s # * @error: Return location for error or %NULL 1158s # * 1158s # * Finishes an operation started with org_project_useful_interface_proxy_new_for_bus(). 1158s # * 1158s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1158s # */ 1158s # OrgProjectUsefulInterface * 1158s # org_project_useful_interface_proxy_new_for_bus_finish ( 1158s # GAsyncResult *res, 1158s # GError **error) 1158s # { 1158s # GObject *ret; 1158s # GObject *source_object; 1158s # source_object = g_async_result_get_source_object (res); 1158s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1158s # g_object_unref (source_object); 1158s # if (ret != NULL) 1158s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1158s # else 1158s # return NULL; 1158s # } 1158s # 1158s # /** 1158s # * org_project_useful_interface_proxy_new_for_bus_sync: 1158s # * @bus_type: A #GBusType. 1158s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1158s # * @name: A bus name (well-known or unique). 1158s # * @object_path: An object path. 1158s # * @cancellable: (nullable): A #GCancellable or %NULL. 1158s # * @error: Return location for error or %NULL 1158s # * 1158s # * Like org_project_useful_interface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 1158s # * 1158s # * The calling thread is blocked until a reply is received. 1158s # * 1158s # * See org_project_useful_interface_proxy_new_for_bus() for the asynchronous version of this constructor. 1158s # * 1158s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1158s # */ 1158s # OrgProjectUsefulInterface * 1158s # org_project_useful_interface_proxy_new_for_bus_sync ( 1158s # GBusType bus_type, 1158s # GDBusProxyFlags flags, 1158s # const gchar *name, 1158s # const gchar *object_path, 1158s # GCancellable *cancellable, 1158s # GError **error) 1158s # { 1158s # GInitable *ret; 1158s # 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); 1158s # if (ret != NULL) 1158s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1158s # else 1158s # return NULL; 1158s # } 1158s # 1158s # 1158s # /* ------------------------------------------------------------------------ */ 1158s # 1158s # /** 1158s # * OrgProjectUsefulInterfaceSkeleton: 1158s # * 1158s # * The #OrgProjectUsefulInterfaceSkeleton structure contains only private data and should only be accessed using the provided API. 1158s # */ 1158s # 1158s # /** 1158s # * OrgProjectUsefulInterfaceSkeletonClass: 1158s # * @parent_class: The parent class. 1158s # * 1158s # * Class structure for #OrgProjectUsefulInterfaceSkeleton. 1158s # */ 1158s # 1158s # struct _OrgProjectUsefulInterfaceSkeletonPrivate 1158s # { 1158s # GValue *properties; 1158s # GList *changed_properties; 1158s # GSource *changed_properties_idle_source; 1158s # GMainContext *context; 1158s # GMutex lock; 1158s # }; 1158s # 1158s # static void 1158s # _org_project_useful_interface_skeleton_handle_method_call ( 1158s # GDBusConnection *connection G_GNUC_UNUSED, 1158s # const gchar *sender G_GNUC_UNUSED, 1158s # const gchar *object_path G_GNUC_UNUSED, 1158s # const gchar *interface_name, 1158s # const gchar *method_name, 1158s # GVariant *parameters, 1158s # GDBusMethodInvocation *invocation, 1158s # gpointer user_data) 1158s # { 1158s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1158s # _ExtendedGDBusMethodInfo *info; 1158s # GVariantIter iter; 1158s # GVariant *child; 1158s # GValue *paramv; 1158s # gsize num_params; 1158s # guint num_extra; 1158s # gsize n; 1158s # guint signal_id; 1158s # GValue return_value = G_VALUE_INIT; 1158s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 1158s # g_assert (info != NULL); 1158s # num_params = g_variant_n_children (parameters); 1158s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 1158s # n = 0; 1158s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1158s # g_value_set_object (¶mv[n++], skeleton); 1158s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 1158s # g_value_set_object (¶mv[n++], invocation); 1158s # if (info->pass_fdlist) 1158s # { 1158s # #ifdef G_OS_UNIX 1158s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 1158s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 1158s # #else 1158s # g_assert_not_reached (); 1158s # #endif 1158s # } 1158s # g_variant_iter_init (&iter, parameters); 1158s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1158s # { 1158s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 1158s # if (arg_info->use_gvariant) 1158s # { 1158s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1158s # g_value_set_variant (¶mv[n], child); 1158s # n++; 1158s # } 1158s # else 1158s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1158s # g_variant_unref (child); 1158s # } 1158s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1158s # g_value_init (&return_value, G_TYPE_BOOLEAN); 1158s # g_signal_emitv (paramv, signal_id, 0, &return_value); 1158s # if (!g_value_get_boolean (&return_value)) 1158s # 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); 1158s # g_value_unset (&return_value); 1158s # for (n = 0; n < num_params + num_extra; n++) 1158s # g_value_unset (¶mv[n]); 1158s # g_free (paramv); 1158s # } 1158s # 1158s # static GVariant * 1158s # _org_project_useful_interface_skeleton_handle_get_property ( 1158s # GDBusConnection *connection G_GNUC_UNUSED, 1158s # const gchar *sender G_GNUC_UNUSED, 1158s # const gchar *object_path G_GNUC_UNUSED, 1158s # const gchar *interface_name G_GNUC_UNUSED, 1158s # const gchar *property_name, 1158s # GError **error, 1158s # gpointer user_data) 1158s # { 1158s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1158s # GValue value = G_VALUE_INIT; 1158s # GParamSpec *pspec; 1158s # _ExtendedGDBusPropertyInfo *info; 1158s # GVariant *ret; 1158s # ret = NULL; 1158s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 1158s # g_assert (info != NULL); 1158s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1158s # if (pspec == NULL) 1158s # { 1158s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1158s # } 1158s # else 1158s # { 1158s # g_value_init (&value, pspec->value_type); 1158s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1158s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 1158s # g_value_unset (&value); 1158s # } 1158s # return ret; 1158s # } 1158s # 1158s # static gboolean 1158s # _org_project_useful_interface_skeleton_handle_set_property ( 1158s # GDBusConnection *connection G_GNUC_UNUSED, 1158s # const gchar *sender G_GNUC_UNUSED, 1158s # const gchar *object_path G_GNUC_UNUSED, 1158s # const gchar *interface_name G_GNUC_UNUSED, 1158s # const gchar *property_name, 1158s # GVariant *variant, 1158s # GError **error, 1158s # gpointer user_data) 1158s # { 1158s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1158s # GValue value = G_VALUE_INIT; 1158s # GParamSpec *pspec; 1158s # _ExtendedGDBusPropertyInfo *info; 1158s # gboolean ret; 1158s # ret = FALSE; 1158s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 1158s # g_assert (info != NULL); 1158s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1158s # if (pspec == NULL) 1158s # { 1158s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1158s # } 1158s # else 1158s # { 1158s # if (info->use_gvariant) 1158s # g_value_set_variant (&value, variant); 1158s # else 1158s # g_dbus_gvariant_to_gvalue (variant, &value); 1158s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1158s # g_value_unset (&value); 1158s # ret = TRUE; 1158s # } 1158s # return ret; 1158s # } 1158s # 1158s # static const GDBusInterfaceVTable _org_project_useful_interface_skeleton_vtable = 1158s # { 1158s # _org_project_useful_interface_skeleton_handle_method_call, 1158s # _org_project_useful_interface_skeleton_handle_get_property, 1158s # _org_project_useful_interface_skeleton_handle_set_property, 1158s # {NULL} 1158s # }; 1158s # 1158s # static GDBusInterfaceInfo * 1158s # org_project_useful_interface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1158s # { 1158s # return org_project_useful_interface_interface_info (); 1158s # } 1158s # 1158s # static GDBusInterfaceVTable * 1158s # org_project_useful_interface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1158s # { 1158s # return (GDBusInterfaceVTable *) &_org_project_useful_interface_skeleton_vtable; 1158s # } 1158s # 1158s # static GVariant * 1158s # org_project_useful_interface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 1158s # { 1158s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (_skeleton); 1158s # 1158s # GVariantBuilder builder; 1158s # guint n; 1158s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 1158s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 1158s # #else 1158s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 1158s # #endif 1158s # if (_org_project_useful_interface_interface_info.parent_struct.properties == NULL) 1158s # goto out; 1158s # for (n = 0; _org_project_useful_interface_interface_info.parent_struct.properties[n] != NULL; n++) 1158s # { 1158s # GDBusPropertyInfo *info = _org_project_useful_interface_interface_info.parent_struct.properties[n]; 1158s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 1158s # { 1158s # GVariant *value; 1158s # 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); 1158s # if (value != NULL) 1158s # { 1158s # g_variant_take_ref (value); 1158s # g_variant_builder_add (&builder, "{sv}", info->name, value); 1158s # g_variant_unref (value); 1158s # } 1158s # } 1158s # } 1158s # out: 1158s # return g_variant_builder_end (&builder); 1158s # } 1158s # 1158s # static void 1158s # org_project_useful_interface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 1158s # { 1158s # } 1158s # 1158s # static void org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface); 1158s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1158s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1158s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceSkeleton) 1158s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 1158s # 1158s # #else 1158s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1158s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 1158s # 1158s # #endif 1158s # static void 1158s # org_project_useful_interface_skeleton_finalize (GObject *object) 1158s # { 1158s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (object); 1158s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 1158s # if (skeleton->priv->changed_properties_idle_source != NULL) 1158s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 1158s # g_main_context_unref (skeleton->priv->context); 1158s # g_mutex_clear (&skeleton->priv->lock); 1158s # G_OBJECT_CLASS (org_project_useful_interface_skeleton_parent_class)->finalize (object); 1158s # } 1158s # 1158s # static void 1158s # org_project_useful_interface_skeleton_init (OrgProjectUsefulInterfaceSkeleton *skeleton) 1158s # { 1158s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1158s # skeleton->priv = org_project_useful_interface_skeleton_get_instance_private (skeleton); 1158s # #else 1158s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, OrgProjectUsefulInterfaceSkeletonPrivate); 1158s # #endif 1158s # 1158s # g_mutex_init (&skeleton->priv->lock); 1158s # skeleton->priv->context = g_main_context_ref_thread_default (); 1158s # } 1158s # 1158s # static void 1158s # org_project_useful_interface_skeleton_class_init (OrgProjectUsefulInterfaceSkeletonClass *klass) 1158s # { 1158s # GObjectClass *gobject_class; 1158s # GDBusInterfaceSkeletonClass *skeleton_class; 1158s # 1158s # gobject_class = G_OBJECT_CLASS (klass); 1158s # gobject_class->finalize = org_project_useful_interface_skeleton_finalize; 1158s # 1158s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 1158s # skeleton_class->get_info = org_project_useful_interface_skeleton_dbus_interface_get_info; 1158s # skeleton_class->get_properties = org_project_useful_interface_skeleton_dbus_interface_get_properties; 1158s # skeleton_class->flush = org_project_useful_interface_skeleton_dbus_interface_flush; 1158s # skeleton_class->get_vtable = org_project_useful_interface_skeleton_dbus_interface_get_vtable; 1158s # 1158s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1158s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceSkeletonPrivate)); 1158s # #endif 1158s # } 1158s # 1158s # static void 1158s # org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 1158s # { 1158s # } 1158s # 1158s # /** 1158s # * org_project_useful_interface_skeleton_new: 1158s # * 1158s # * Creates a skeleton object for the D-Bus interface org.project.UsefulInterface. 1158s # * 1158s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceSkeleton): The skeleton object. 1158s # */ 1158s # OrgProjectUsefulInterface * 1158s # org_project_useful_interface_skeleton_new (void) 1158s # { 1158s # return ORG_PROJECT_USEFUL_INTERFACE (g_object_new (TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, NULL)); 1158s # } 1158s # Error: 1158s # 1158s # /tmp/tmpv_fj8nn0/tmp4enfwpmd.xml: 1158s # 1158s # 1158s # 1158s # 1158s # 1158s # 1158s # 1158s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpv_fj8nn0/tmp4enfwpmd.xml', '--output', '-', '--body'] 1158s # Return code: 0 1158s # Output: 1158s # /* 1158s # * This file is generated by gdbus-codegen, do not modify it. 1158s # * 1158s # * The license of this code is the same as for the D-Bus interface description 1158s # * it was derived from. Note that it links to GLib, so must comply with the 1158s # * LGPL linking clauses. 1158s # */ 1158s # 1158s # #ifdef HAVE_CONFIG_H 1158s # # include "config.h" 1158s # #endif 1158s # 1158s # #include 1158s # #ifdef G_OS_UNIX 1158s # # include 1158s # #endif 1158s # 1158s # #ifdef G_ENABLE_DEBUG 1158s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 1158s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 1158s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 1158s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 1158s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 1158s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 1158s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 1158s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 1158s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 1158s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 1158s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 1158s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 1158s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 1158s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 1158s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 1158s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 1158s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 1158s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 1158s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 1158s # #else /* !G_ENABLE_DEBUG */ 1158s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 1158s # * Do not access GValues directly in your code. Instead, use the 1158s # * g_value_get_*() functions 1158s # */ 1158s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 1158s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 1158s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 1158s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 1158s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 1158s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 1158s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 1158s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 1158s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 1158s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 1158s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 1158s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 1158s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 1158s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 1158s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 1158s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 1158s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 1158s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 1158s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 1158s # #endif /* !G_ENABLE_DEBUG */ 1158s # 1158s # typedef struct 1158s # { 1158s # GDBusArgInfo parent_struct; 1158s # gboolean use_gvariant; 1158s # } _ExtendedGDBusArgInfo; 1158s # 1158s # typedef struct 1158s # { 1158s # GDBusMethodInfo parent_struct; 1158s # const gchar *signal_name; 1158s # gboolean pass_fdlist; 1158s # } _ExtendedGDBusMethodInfo; 1158s # 1158s # typedef struct 1158s # { 1158s # GDBusSignalInfo parent_struct; 1158s # const gchar *signal_name; 1158s # } _ExtendedGDBusSignalInfo; 1158s # 1158s # typedef struct 1158s # { 1158s # GDBusPropertyInfo parent_struct; 1158s # const gchar *hyphen_name; 1158s # guint use_gvariant : 1; 1158s # guint emits_changed_signal : 1; 1158s # } _ExtendedGDBusPropertyInfo; 1158s # 1158s # typedef struct 1158s # { 1158s # GDBusInterfaceInfo parent_struct; 1158s # const gchar *hyphen_name; 1158s # } _ExtendedGDBusInterfaceInfo; 1158s # 1158s # typedef struct 1158s # { 1158s # const _ExtendedGDBusPropertyInfo *info; 1158s # guint prop_id; 1158s # GValue orig_value; /* the value before the change */ 1158s # } ChangedProperty; 1158s # 1158s # static void 1158s # _changed_property_free (ChangedProperty *data) 1158s # { 1158s # g_value_unset (&data->orig_value); 1158s # g_free (data); 1158s # } 1158s # 1158s # static gboolean 1158s # _g_strv_equal0 (gchar **a, gchar **b) 1158s # { 1158s # gboolean ret = FALSE; 1158s # guint n; 1158s # if (a == NULL && b == NULL) 1158s # { 1158s # ret = TRUE; 1158s # goto out; 1158s # } 1158s # if (a == NULL || b == NULL) 1158s # goto out; 1158s # if (g_strv_length (a) != g_strv_length (b)) 1158s # goto out; 1158s # for (n = 0; a[n] != NULL; n++) 1158s # if (g_strcmp0 (a[n], b[n]) != 0) 1158s # goto out; 1158s # ret = TRUE; 1158s # out: 1158s # return ret; 1158s # } 1158s # 1158s # static gboolean 1158s # _g_variant_equal0 (GVariant *a, GVariant *b) 1158s # { 1158s # gboolean ret = FALSE; 1158s # if (a == NULL && b == NULL) 1158s # { 1158s # ret = TRUE; 1158s # goto out; 1158s # } 1158s # if (a == NULL || b == NULL) 1158s # goto out; 1158s # ret = g_variant_equal (a, b); 1158s # out: 1158s # return ret; 1158s # } 1158s # 1158s # G_GNUC_UNUSED static gboolean 1158s # _g_value_equal (const GValue *a, const GValue *b) 1158s # { 1158s # gboolean ret = FALSE; 1158s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 1158s # switch (G_VALUE_TYPE (a)) 1158s # { 1158s # case G_TYPE_BOOLEAN: 1158s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 1158s # break; 1158s # case G_TYPE_UCHAR: 1158s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 1158s # break; 1158s # case G_TYPE_INT: 1158s # ret = (g_value_get_int (a) == g_value_get_int (b)); 1158s # break; 1158s # case G_TYPE_UINT: 1158s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 1158s # break; 1158s # case G_TYPE_INT64: 1158s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 1158s # break; 1158s # case G_TYPE_UINT64: 1158s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 1158s # break; 1158s # case G_TYPE_DOUBLE: 1158s # { 1158s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 1158s # gdouble da = g_value_get_double (a); 1158s # gdouble db = g_value_get_double (b); 1158s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 1158s # } 1158s # break; 1158s # case G_TYPE_STRING: 1158s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 1158s # break; 1158s # case G_TYPE_VARIANT: 1158s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 1158s # break; 1158s # default: 1158s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 1158s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 1158s # else 1158s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 1158s # break; 1158s # } 1158s # return ret; 1158s # } 1158s # 1158s # static void 1158s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT_BOXED ( 1158s # GClosure *closure, 1158s # GValue *return_value, 1158s # unsigned int n_param_values, 1158s # const GValue *param_values, 1158s # void *invocation_hint G_GNUC_UNUSED, 1158s # void *marshal_data) 1158s # { 1158s # typedef gboolean (*_GDbusCodegenMarshalBoolean_ObjectBoxedFunc) 1158s # (void *data1, 1158s # GDBusMethodInvocation *arg_method_invocation, 1158s # const gchar *const *arg_arg_aay, 1158s # void *data2); 1158s # _GDbusCodegenMarshalBoolean_ObjectBoxedFunc callback; 1158s # GCClosure *cc = (GCClosure*) closure; 1158s # void *data1, *data2; 1158s # gboolean v_return; 1158s # 1158s # g_return_if_fail (return_value != NULL); 1158s # g_return_if_fail (n_param_values == 3); 1158s # 1158s # if (G_CCLOSURE_SWAP_DATA (closure)) 1158s # { 1158s # data1 = closure->data; 1158s # data2 = g_value_peek_pointer (param_values + 0); 1158s # } 1158s # else 1158s # { 1158s # data1 = g_value_peek_pointer (param_values + 0); 1158s # data2 = closure->data; 1158s # } 1158s # 1158s # callback = (_GDbusCodegenMarshalBoolean_ObjectBoxedFunc) 1158s # (marshal_data ? marshal_data : cc->callback); 1158s # 1158s # v_return = 1158s # callback (data1, 1158s # g_marshal_value_peek_object (param_values + 1), 1158s # g_marshal_value_peek_boxed (param_values + 2), 1158s # data2); 1158s # 1158s # g_value_set_boolean (return_value, v_return); 1158s # } 1158s # 1158s # /* ------------------------------------------------------------------------ 1158s # * Code for interface org.project.UsefulInterface 1158s # * ------------------------------------------------------------------------ 1158s # */ 1158s # 1158s # /** 1158s # * SECTION:OrgProjectUsefulInterface 1158s # * @title: OrgProjectUsefulInterface 1158s # * @short_description: Generated C code for the org.project.UsefulInterface D-Bus interface 1158s # * 1158s # * This section contains code for working with the org.project.UsefulInterface D-Bus interface in C. 1158s # */ 1158s # 1158s # /* ---- Introspection data for org.project.UsefulInterface ---- */ 1158s # 1158s # static const _ExtendedGDBusArgInfo _org_project_useful_interface_method_info_single_arg_method_aay_IN_ARG_arg_aay = 1158s # { 1158s # { 1158s # -1, 1158s # (gchar *) "arg_aay", 1158s # (gchar *) "aay", 1158s # NULL 1158s # }, 1158s # FALSE 1158s # }; 1158s # 1158s # static const GDBusArgInfo * const _org_project_useful_interface_method_info_single_arg_method_aay_IN_ARG_pointers[] = 1158s # { 1158s # &_org_project_useful_interface_method_info_single_arg_method_aay_IN_ARG_arg_aay.parent_struct, 1158s # NULL 1158s # }; 1158s # 1158s # static const _ExtendedGDBusMethodInfo _org_project_useful_interface_method_info_single_arg_method_aay = 1158s # { 1158s # { 1158s # -1, 1158s # (gchar *) "SingleArgMethodAay", 1158s # (GDBusArgInfo **) &_org_project_useful_interface_method_info_single_arg_method_aay_IN_ARG_pointers, 1158s # NULL, 1158s # NULL 1158s # }, 1158s # "handle-single-arg-method-aay", 1158s # FALSE 1158s # }; 1158s # 1158s # static const GDBusMethodInfo * const _org_project_useful_interface_method_info_pointers[] = 1158s # { 1158s # &_org_project_useful_interface_method_info_single_arg_method_aay.parent_struct, 1158s # NULL 1158s # }; 1158s # 1158s # static const _ExtendedGDBusInterfaceInfo _org_project_useful_interface_interface_info = 1158s # { 1158s # { 1158s # -1, 1158s # (gchar *) "org.project.UsefulInterface", 1158s # (GDBusMethodInfo **) &_org_project_useful_interface_method_info_pointers, 1158s # NULL, 1158s # NULL, 1158s # NULL 1158s # }, 1158s # "org-project-useful-interface", 1158s # }; 1158s # 1158s # 1158s # /** 1158s # * org_project_useful_interface_interface_info: 1158s # * 1158s # * Gets a machine-readable description of the org.project.UsefulInterface D-Bus interface. 1158s # * 1158s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 1158s # */ 1158s # GDBusInterfaceInfo * 1158s # org_project_useful_interface_interface_info (void) 1158s # { 1158s # return (GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct; 1158s # } 1158s # 1158s # /** 1158s # * org_project_useful_interface_override_properties: 1158s # * @klass: The class structure for a #GObject derived class. 1158s # * @property_id_begin: The property id to assign to the first overridden property. 1158s # * 1158s # * Overrides all #GObject properties in the #OrgProjectUsefulInterface interface for a concrete class. 1158s # * The properties are overridden in the order they are defined. 1158s # * 1158s # * Returns: The last property id. 1158s # */ 1158s # guint 1158s # org_project_useful_interface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 1158s # { 1158s # return property_id_begin - 1; 1158s # } 1158s # 1158s # 1158s # inline static void 1158s # org_project_useful_interface_method_marshal_single_arg_method_aay ( 1158s # GClosure *closure, 1158s # GValue *return_value, 1158s # unsigned int n_param_values, 1158s # const GValue *param_values, 1158s # void *invocation_hint, 1158s # void *marshal_data) 1158s # { 1158s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT_BOXED (closure, 1158s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1158s # } 1158s # 1158s # 1158s # /** 1158s # * OrgProjectUsefulInterface: 1158s # * 1158s # * Abstract interface type for the D-Bus interface org.project.UsefulInterface. 1158s # */ 1158s # 1158s # /** 1158s # * OrgProjectUsefulInterfaceIface: 1158s # * @parent_iface: The parent interface. 1158s # * @handle_single_arg_method_aay: Handler for the #OrgProjectUsefulInterface::handle-single-arg-method-aay signal. 1158s # * 1158s # * Virtual table for the D-Bus interface org.project.UsefulInterface. 1158s # */ 1158s # 1158s # typedef OrgProjectUsefulInterfaceIface OrgProjectUsefulInterfaceInterface; 1158s # G_DEFINE_INTERFACE (OrgProjectUsefulInterface, org_project_useful_interface, G_TYPE_OBJECT) 1158s # 1158s # static void 1158s # org_project_useful_interface_default_init (OrgProjectUsefulInterfaceIface *iface) 1158s # { 1158s # /* GObject signals for incoming D-Bus method calls: */ 1158s # /** 1158s # * OrgProjectUsefulInterface::handle-single-arg-method-aay: 1158s # * @object: A #OrgProjectUsefulInterface. 1158s # * @invocation: A #GDBusMethodInvocation. 1158s # * @arg_arg_aay: Argument passed by remote caller. 1158s # * 1158s # * Signal emitted when a remote caller is invoking the SingleArgMethodAay() D-Bus method. 1158s # * 1158s # * 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. 1158s # * 1158s # * 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. 1158s # */ 1158s # g_signal_new ("handle-single-arg-method-aay", 1158s # G_TYPE_FROM_INTERFACE (iface), 1158s # G_SIGNAL_RUN_LAST, 1158s # G_STRUCT_OFFSET (OrgProjectUsefulInterfaceIface, handle_single_arg_method_aay), 1158s # g_signal_accumulator_true_handled, 1158s # NULL, 1158s # org_project_useful_interface_method_marshal_single_arg_method_aay, 1158s # G_TYPE_BOOLEAN, 1158s # 2, 1158s # G_TYPE_DBUS_METHOD_INVOCATION, G_TYPE_STRV); 1158s # 1158s # } 1158s # 1158s # /** 1158s # * org_project_useful_interface_call_single_arg_method_aay: 1158s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1158s # * @arg_arg_aay: Argument to pass with the method invocation. 1158s # * @cancellable: (nullable): A #GCancellable or %NULL. 1158s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL. 1158s # * @user_data: User data to pass to @callback. 1158s # * 1158s # * Asynchronously invokes the SingleArgMethodAay() D-Bus method on @proxy. 1158s # * 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()). 1158s # * You can then call org_project_useful_interface_call_single_arg_method_aay_finish() to get the result of the operation. 1158s # * 1158s # * See org_project_useful_interface_call_single_arg_method_aay_sync() for the synchronous, blocking version of this method. 1158s # */ 1158s # void 1158s # org_project_useful_interface_call_single_arg_method_aay ( 1158s # OrgProjectUsefulInterface *proxy, 1158s # const gchar *const *arg_arg_aay, 1158s # GCancellable *cancellable, 1158s # GAsyncReadyCallback callback, 1158s # gpointer user_data) 1158s # { 1158s # g_dbus_proxy_call (G_DBUS_PROXY (proxy), 1158s # "SingleArgMethodAay", 1158s # g_variant_new ("(^aay)", 1158s # arg_arg_aay), 1158s # G_DBUS_CALL_FLAGS_NONE, 1158s # -1, 1158s # cancellable, 1158s # callback, 1158s # user_data); 1158s # } 1158s # 1158s # /** 1158s # * org_project_useful_interface_call_single_arg_method_aay_finish: 1158s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1158s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_call_single_arg_method_aay(). 1158s # * @error: Return location for error or %NULL. 1158s # * 1158s # * Finishes an operation started with org_project_useful_interface_call_single_arg_method_aay(). 1158s # * 1158s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1158s # */ 1158s # gboolean 1158s # org_project_useful_interface_call_single_arg_method_aay_finish ( 1158s # OrgProjectUsefulInterface *proxy, 1158s # GAsyncResult *res, 1158s # GError **error) 1158s # { 1158s # GVariant *_ret; 1158s # _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error); 1158s # if (_ret == NULL) 1158s # goto _out; 1158s # g_variant_get (_ret, 1158s # "()"); 1158s # g_variant_unref (_ret); 1158s # _out: 1158s # return _ret != NULL; 1158s # } 1158s # 1158s # /** 1158s # * org_project_useful_interface_call_single_arg_method_aay_sync: 1158s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1158s # * @arg_arg_aay: Argument to pass with the method invocation. 1158s # * @cancellable: (nullable): A #GCancellable or %NULL. 1158s # * @error: Return location for error or %NULL. 1158s # * 1158s # * Synchronously invokes the SingleArgMethodAay() D-Bus method on @proxy. The calling thread is blocked until a reply is received. 1158s # * 1158s # * See org_project_useful_interface_call_single_arg_method_aay() for the asynchronous version of this method. 1158s # * 1158s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1158s # */ 1158s # gboolean 1158s # org_project_useful_interface_call_single_arg_method_aay_sync ( 1158s # OrgProjectUsefulInterface *proxy, 1158s # const gchar *const *arg_arg_aay, 1158s # GCancellable *cancellable, 1158s # GError **error) 1158s # { 1158s # GVariant *_ret; 1158s # _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy), 1158s # "SingleArgMethodAay", 1158s # g_variant_new ("(^aay)", 1158s # arg_arg_aay), 1158s # G_DBUS_CALL_FLAGS_NONE, 1158s # -1, 1158s # cancellable, 1158s # error); 1158s # if (_ret == NULL) 1158s # goto _out; 1158s # g_variant_get (_ret, 1158s # "()"); 1158s # g_variant_unref (_ret); 1158s # _out: 1158s # return _ret != NULL; 1158s # } 1158s # 1158s # /** 1158s # * org_project_useful_interface_complete_single_arg_method_aay: 1158s # * @object: A #OrgProjectUsefulInterface. 1158s # * @invocation: (transfer full): A #GDBusMethodInvocation. 1158s # * 1158s # * 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. 1158s # * 1158s # * This method will free @invocation, you cannot use it afterwards. 1158s # */ 1158s # void 1158s # org_project_useful_interface_complete_single_arg_method_aay ( 1158s # OrgProjectUsefulInterface *object G_GNUC_UNUSED, 1158s # GDBusMethodInvocation *invocation) 1158s # { 1158s # g_dbus_method_invocation_return_value (invocation, 1158s # g_variant_new ("()")); 1158s # } 1158s # 1158s # /* ------------------------------------------------------------------------ */ 1158s # 1158s # /** 1158s # * OrgProjectUsefulInterfaceProxy: 1158s # * 1158s # * The #OrgProjectUsefulInterfaceProxy structure contains only private data and should only be accessed using the provided API. 1158s # */ 1158s # 1158s # /** 1158s # * OrgProjectUsefulInterfaceProxyClass: 1158s # * @parent_class: The parent class. 1158s # * 1158s # * Class structure for #OrgProjectUsefulInterfaceProxy. 1158s # */ 1158s # 1158s # struct _OrgProjectUsefulInterfaceProxyPrivate 1158s # { 1158s # GData *qdata; 1158s # }; 1158s # 1158s # static void org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface); 1158s # 1158s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1158s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 1158s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceProxy) 1158s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 1158s # 1158s # #else 1158s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 1158s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 1158s # 1158s # #endif 1158s # static void 1158s # org_project_useful_interface_proxy_finalize (GObject *object) 1158s # { 1158s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (object); 1158s # g_datalist_clear (&proxy->priv->qdata); 1158s # G_OBJECT_CLASS (org_project_useful_interface_proxy_parent_class)->finalize (object); 1158s # } 1158s # 1158s # static void 1158s # org_project_useful_interface_proxy_get_property (GObject *object G_GNUC_UNUSED, 1158s # guint prop_id G_GNUC_UNUSED, 1158s # GValue *value G_GNUC_UNUSED, 1158s # GParamSpec *pspec G_GNUC_UNUSED) 1158s # { 1158s # } 1158s # 1158s # static void 1158s # org_project_useful_interface_proxy_set_property (GObject *object G_GNUC_UNUSED, 1158s # guint prop_id G_GNUC_UNUSED, 1158s # const GValue *value G_GNUC_UNUSED, 1158s # GParamSpec *pspec G_GNUC_UNUSED) 1158s # { 1158s # } 1158s # 1158s # static void 1158s # org_project_useful_interface_proxy_g_signal (GDBusProxy *proxy, 1158s # const gchar *sender_name G_GNUC_UNUSED, 1158s # const gchar *signal_name, 1158s # GVariant *parameters) 1158s # { 1158s # _ExtendedGDBusSignalInfo *info; 1158s # GVariantIter iter; 1158s # GVariant *child; 1158s # GValue *paramv; 1158s # gsize num_params; 1158s # gsize n; 1158s # guint signal_id; 1158s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, signal_name); 1158s # if (info == NULL) 1158s # return; 1158s # num_params = g_variant_n_children (parameters); 1158s # paramv = g_new0 (GValue, num_params + 1); 1158s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1158s # g_value_set_object (¶mv[0], proxy); 1158s # g_variant_iter_init (&iter, parameters); 1158s # n = 1; 1158s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1158s # { 1158s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 1158s # if (arg_info->use_gvariant) 1158s # { 1158s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1158s # g_value_set_variant (¶mv[n], child); 1158s # n++; 1158s # } 1158s # else 1158s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1158s # g_variant_unref (child); 1158s # } 1158s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1158s # g_signal_emitv (paramv, signal_id, 0, NULL); 1158s # for (n = 0; n < num_params + 1; n++) 1158s # g_value_unset (¶mv[n]); 1158s # g_free (paramv); 1158s # } 1158s # 1158s # static void 1158s # org_project_useful_interface_proxy_g_properties_changed (GDBusProxy *_proxy, 1158s # GVariant *changed_properties, 1158s # const gchar *const *invalidated_properties) 1158s # { 1158s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (_proxy); 1158s # guint n; 1158s # const gchar *key; 1158s # GVariantIter *iter; 1158s # _ExtendedGDBusPropertyInfo *info; 1158s # g_variant_get (changed_properties, "a{sv}", &iter); 1158s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 1158s # { 1158s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, key); 1158s # g_datalist_remove_data (&proxy->priv->qdata, key); 1158s # if (info != NULL) 1158s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1158s # } 1158s # g_variant_iter_free (iter); 1158s # for (n = 0; invalidated_properties[n] != NULL; n++) 1158s # { 1158s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, invalidated_properties[n]); 1158s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 1158s # if (info != NULL) 1158s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1158s # } 1158s # } 1158s # 1158s # static void 1158s # org_project_useful_interface_proxy_init (OrgProjectUsefulInterfaceProxy *proxy) 1158s # { 1158s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1158s # proxy->priv = org_project_useful_interface_proxy_get_instance_private (proxy); 1158s # #else 1158s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY, OrgProjectUsefulInterfaceProxyPrivate); 1158s # #endif 1158s # 1158s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_useful_interface_interface_info ()); 1158s # } 1158s # 1158s # static void 1158s # org_project_useful_interface_proxy_class_init (OrgProjectUsefulInterfaceProxyClass *klass) 1158s # { 1158s # GObjectClass *gobject_class; 1158s # GDBusProxyClass *proxy_class; 1158s # 1158s # gobject_class = G_OBJECT_CLASS (klass); 1158s # gobject_class->finalize = org_project_useful_interface_proxy_finalize; 1158s # gobject_class->get_property = org_project_useful_interface_proxy_get_property; 1158s # gobject_class->set_property = org_project_useful_interface_proxy_set_property; 1158s # 1158s # proxy_class = G_DBUS_PROXY_CLASS (klass); 1158s # proxy_class->g_signal = org_project_useful_interface_proxy_g_signal; 1158s # proxy_class->g_properties_changed = org_project_useful_interface_proxy_g_properties_changed; 1158s # 1158s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1158s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceProxyPrivate)); 1158s # #endif 1158s # } 1158s # 1158s # static void 1158s # org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 1158s # { 1158s # } 1158s # 1158s # /** 1158s # * org_project_useful_interface_proxy_new: 1158s # * @connection: A #GDBusConnection. 1158s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1158s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1158s # * @object_path: An object path. 1158s # * @cancellable: (nullable): A #GCancellable or %NULL. 1158s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1158s # * @user_data: User data to pass to @callback. 1158s # * 1158s # * Asynchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new() for more details. 1158s # * 1158s # * 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()). 1158s # * You can then call org_project_useful_interface_proxy_new_finish() to get the result of the operation. 1158s # * 1158s # * See org_project_useful_interface_proxy_new_sync() for the synchronous, blocking version of this constructor. 1158s # */ 1158s # void 1158s # org_project_useful_interface_proxy_new ( 1158s # GDBusConnection *connection, 1158s # GDBusProxyFlags flags, 1158s # const gchar *name, 1158s # const gchar *object_path, 1158s # GCancellable *cancellable, 1158s # GAsyncReadyCallback callback, 1158s # gpointer user_data) 1158s # { 1158s # 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); 1158s # } 1158s # 1158s # /** 1158s # * org_project_useful_interface_proxy_new_finish: 1158s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new(). 1158s # * @error: Return location for error or %NULL 1158s # * 1158s # * Finishes an operation started with org_project_useful_interface_proxy_new(). 1158s # * 1158s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1158s # */ 1158s # OrgProjectUsefulInterface * 1158s # org_project_useful_interface_proxy_new_finish ( 1158s # GAsyncResult *res, 1158s # GError **error) 1158s # { 1158s # GObject *ret; 1158s # GObject *source_object; 1158s # source_object = g_async_result_get_source_object (res); 1158s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1158s # g_object_unref (source_object); 1158s # if (ret != NULL) 1158s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1158s # else 1158s # return NULL; 1158s # } 1158s # 1158s # /** 1158s # * org_project_useful_interface_proxy_new_sync: 1158s # * @connection: A #GDBusConnection. 1158s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1158s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1158s # * @object_path: An object path. 1158s # * @cancellable: (nullable): A #GCancellable or %NULL. 1158s # * @error: Return location for error or %NULL 1158s # * 1158s # * Synchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new_sync() for more details. 1158s # * 1158s # * The calling thread is blocked until a reply is received. 1158s # * 1158s # * See org_project_useful_interface_proxy_new() for the asynchronous version of this constructor. 1158s # * 1158s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1158s # */ 1158s # OrgProjectUsefulInterface * 1158s # org_project_useful_interface_proxy_new_sync ( 1158s # GDBusConnection *connection, 1158s # GDBusProxyFlags flags, 1158s # const gchar *name, 1158s # const gchar *object_path, 1158s # GCancellable *cancellable, 1158s # GError **error) 1158s # { 1158s # GInitable *ret; 1158s # 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); 1158s # if (ret != NULL) 1158s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1158s # else 1158s # return NULL; 1158s # } 1158s # 1158s # 1158s # /** 1158s # * org_project_useful_interface_proxy_new_for_bus: 1158s # * @bus_type: A #GBusType. 1158s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1158s # * @name: A bus name (well-known or unique). 1158s # * @object_path: An object path. 1158s # * @cancellable: (nullable): A #GCancellable or %NULL. 1158s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1158s # * @user_data: User data to pass to @callback. 1158s # * 1158s # * Like org_project_useful_interface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 1158s # * 1158s # * 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()). 1158s # * You can then call org_project_useful_interface_proxy_new_for_bus_finish() to get the result of the operation. 1158s # * 1158s # * See org_project_useful_interface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 1158s # */ 1158s # void 1158s # org_project_useful_interface_proxy_new_for_bus ( 1158s # GBusType bus_type, 1158s # GDBusProxyFlags flags, 1158s # const gchar *name, 1158s # const gchar *object_path, 1158s # GCancellable *cancellable, 1158s # GAsyncReadyCallback callback, 1158s # gpointer user_data) 1158s # { 1158s # 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); 1158s # } 1158s # 1158s # /** 1158s # * org_project_useful_interface_proxy_new_for_bus_finish: 1158s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new_for_bus(). 1158s # * @error: Return location for error or %NULL 1158s # * 1158s # * Finishes an operation started with org_project_useful_interface_proxy_new_for_bus(). 1158s # * 1158s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1158s # */ 1158s # OrgProjectUsefulInterface * 1158s # org_project_useful_interface_proxy_new_for_bus_finish ( 1158s # GAsyncResult *res, 1158s # GError **error) 1158s # { 1158s # GObject *ret; 1158s # GObject *source_object; 1158s # source_object = g_async_result_get_source_object (res); 1158s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1158s # g_object_unref (source_object); 1158s # if (ret != NULL) 1158s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1158s # else 1158s # return NULL; 1158s # } 1158s # 1158s # /** 1158s # * org_project_useful_interface_proxy_new_for_bus_sync: 1158s # * @bus_type: A #GBusType. 1158s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1158s # * @name: A bus name (well-known or unique). 1158s # * @object_path: An object path. 1158s # * @cancellable: (nullable): A #GCancellable or %NULL. 1158s # * @error: Return location for error or %NULL 1158s # * 1158s # * Like org_project_useful_interface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 1158s # * 1158s # * The calling thread is blocked until a reply is received. 1158s # * 1158s # * See org_project_useful_interface_proxy_new_for_bus() for the asynchronous version of this constructor. 1158s # * 1158s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1158s # */ 1158s # OrgProjectUsefulInterface * 1158s # org_project_useful_interface_proxy_new_for_bus_sync ( 1158s # GBusType bus_type, 1158s # GDBusProxyFlags flags, 1158s # const gchar *name, 1158s # const gchar *object_path, 1158s # GCancellable *cancellable, 1158s # GError **error) 1158s # { 1158s # GInitable *ret; 1158s # 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); 1158s # if (ret != NULL) 1158s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1158s # else 1158s # return NULL; 1158s # } 1158s # 1158s # 1158s # /* ------------------------------------------------------------------------ */ 1158s # 1158s # /** 1158s # * OrgProjectUsefulInterfaceSkeleton: 1158s # * 1158s # * The #OrgProjectUsefulInterfaceSkeleton structure contains only private data and should only be accessed using the provided API. 1158s # */ 1158s # 1158s # /** 1158s # * OrgProjectUsefulInterfaceSkeletonClass: 1158s # * @parent_class: The parent class. 1158s # * 1158s # * Class structure for #OrgProjectUsefulInterfaceSkeleton. 1158s # */ 1158s # 1158s # struct _OrgProjectUsefulInterfaceSkeletonPrivate 1158s # { 1158s # GValue *properties; 1158s # GList *changed_properties; 1158s # GSource *changed_properties_idle_source; 1158s # GMainContext *context; 1158s # GMutex lock; 1158s # }; 1158s # 1158s # static void 1158s # _org_project_useful_interface_skeleton_handle_method_call ( 1158s # GDBusConnection *connection G_GNUC_UNUSED, 1158s # const gchar *sender G_GNUC_UNUSED, 1158s # const gchar *object_path G_GNUC_UNUSED, 1158s # const gchar *interface_name, 1158s # const gchar *method_name, 1158s # GVariant *parameters, 1158s # GDBusMethodInvocation *invocation, 1158s # gpointer user_data) 1158s # { 1158s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1158s # _ExtendedGDBusMethodInfo *info; 1158s # GVariantIter iter; 1158s # GVariant *child; 1158s # GValue *paramv; 1158s # gsize num_params; 1158s # guint num_extra; 1158s # gsize n; 1158s # guint signal_id; 1158s # GValue return_value = G_VALUE_INIT; 1158s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 1158s # g_assert (info != NULL); 1158s # num_params = g_variant_n_children (parameters); 1158s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 1158s # n = 0; 1158s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1158s # g_value_set_object (¶mv[n++], skeleton); 1158s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 1158s # g_value_set_object (¶mv[n++], invocation); 1158s # if (info->pass_fdlist) 1158s # { 1158s # #ifdef G_OS_UNIX 1158s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 1158s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 1158s # #else 1158s # g_assert_not_reached (); 1158s # #endif 1158s # } 1158s # g_variant_iter_init (&iter, parameters); 1158s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1158s # { 1158s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 1158s # if (arg_info->use_gvariant) 1158s # { 1158s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1158s # g_value_set_variant (¶mv[n], child); 1158s # n++; 1158s # } 1158s # else 1158s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1158s # g_variant_unref (child); 1158s # } 1158s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1158s # g_value_init (&return_value, G_TYPE_BOOLEAN); 1158s # g_signal_emitv (paramv, signal_id, 0, &return_value); 1158s # if (!g_value_get_boolean (&return_value)) 1158s # 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); 1158s # g_value_unset (&return_value); 1158s # for (n = 0; n < num_params + num_extra; n++) 1158s # g_value_unset (¶mv[n]); 1158s # g_free (paramv); 1158s # } 1158s # 1158s # static GVariant * 1158s # _org_project_useful_interface_skeleton_handle_get_property ( 1158s # GDBusConnection *connection G_GNUC_UNUSED, 1158s # const gchar *sender G_GNUC_UNUSED, 1158s # const gchar *object_path G_GNUC_UNUSED, 1158s # const gchar *interface_name G_GNUC_UNUSED, 1158s # const gchar *property_name, 1158s # GError **error, 1158s # gpointer user_data) 1158s # { 1158s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1158s # GValue value = G_VALUE_INIT; 1158s # GParamSpec *pspec; 1158s # _ExtendedGDBusPropertyInfo *info; 1158s # GVariant *ret; 1158s # ret = NULL; 1158s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 1158s # g_assert (info != NULL); 1158s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1158s # if (pspec == NULL) 1158s # { 1158s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1158s # } 1158s # else 1158s # { 1158s # g_value_init (&value, pspec->value_type); 1158s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1158s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 1158s # g_value_unset (&value); 1158s # } 1158s # return ret; 1158s # } 1158s # 1158s # static gboolean 1158s # _org_project_useful_interface_skeleton_handle_set_property ( 1158s # GDBusConnection *connection G_GNUC_UNUSED, 1158s # const gchar *sender G_GNUC_UNUSED, 1158s # const gchar *object_path G_GNUC_UNUSED, 1158s # const gchar *interface_name G_GNUC_UNUSED, 1158s # const gchar *property_name, 1158s # GVariant *variant, 1158s # GError **error, 1158s # gpointer user_data) 1158s # { 1158s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1158s # GValue value = G_VALUE_INIT; 1158s # GParamSpec *pspec; 1158s # _ExtendedGDBusPropertyInfo *info; 1158s # gboolean ret; 1158s # ret = FALSE; 1158s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 1158s # g_assert (info != NULL); 1158s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1158s # if (pspec == NULL) 1158s # { 1158s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1158s # } 1158s # else 1158s # { 1158s # if (info->use_gvariant) 1158s # g_value_set_variant (&value, variant); 1158s # else 1158s # g_dbus_gvariant_to_gvalue (variant, &value); 1158s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1158s # g_value_unset (&value); 1158s # ret = TRUE; 1158s # } 1158s # return ret; 1158s # } 1158s # 1158s # static const GDBusInterfaceVTable _org_project_useful_interface_skeleton_vtable = 1158s # { 1158s # _org_project_useful_interface_skeleton_handle_method_call, 1158s # _org_project_useful_interface_skeleton_handle_get_property, 1158s # _org_project_useful_interface_skeleton_handle_set_property, 1158s # {NULL} 1158s # }; 1158s # 1158s # static GDBusInterfaceInfo * 1158s # org_project_useful_interface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1158s # { 1158s # return org_project_useful_interface_interface_info (); 1158s # } 1158s # 1158s # static GDBusInterfaceVTable * 1158s # org_project_useful_interface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1158s # { 1158s # return (GDBusInterfaceVTable *) &_org_project_useful_interface_skeleton_vtable; 1158s # } 1158s # 1158s # static GVariant * 1158s # org_project_useful_interface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 1158s # { 1158s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (_skeleton); 1158s # 1158s # GVariantBuilder builder; 1158s # guint n; 1158s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 1158s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 1158s # #else 1158s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 1158s # #endif 1158s # if (_org_project_useful_interface_interface_info.parent_struct.properties == NULL) 1158s # goto out; 1158s # for (n = 0; _org_project_useful_interface_interface_info.parent_struct.properties[n] != NULL; n++) 1158s # { 1158s # GDBusPropertyInfo *info = _org_project_useful_interface_interface_info.parent_struct.properties[n]; 1158s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 1158s # { 1158s # GVariant *value; 1158s # 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); 1158s # if (value != NULL) 1158s # { 1158s # g_variant_take_ref (value); 1158s # g_variant_builder_add (&builder, "{sv}", info->name, value); 1158s # g_variant_unref (value); 1158s # } 1158s # } 1158s # } 1158s # out: 1158s # return g_variant_builder_end (&builder); 1158s # } 1158s # 1158s # static void 1158s # org_project_useful_interface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 1158s # { 1158s # } 1158s # 1158s # static void org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface); 1158s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1158s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1158s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceSkeleton) 1158s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 1158s # 1158s # #else 1158s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1158s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 1158s # 1158s # #endif 1158s # static void 1158s # org_project_useful_interface_skeleton_finalize (GObject *object) 1158s # { 1158s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (object); 1158s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 1158s # if (skeleton->priv->changed_properties_idle_source != NULL) 1158s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 1158s # g_main_context_unref (skeleton->priv->context); 1158s # g_mutex_clear (&skeleton->priv->lock); 1158s # G_OBJECT_CLASS (org_project_useful_interface_skeleton_parent_class)->finalize (object); 1158s # } 1158s # 1158s # static void 1158s # org_project_useful_interface_skeleton_init (OrgProjectUsefulInterfaceSkeleton *skeleton) 1158s # { 1158s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1158s # skeleton->priv = org_project_useful_interface_skeleton_get_instance_private (skeleton); 1158s # #else 1158s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, OrgProjectUsefulInterfaceSkeletonPrivate); 1158s # #endif 1158s # 1158s # g_mutex_init (&skeleton->priv->lock); 1158s # skeleton->priv->context = g_main_context_ref_thread_default (); 1158s # } 1158s # 1158s # static void 1158s # org_project_useful_interface_skeleton_class_init (OrgProjectUsefulInterfaceSkeletonClass *klass) 1158s # { 1158s # GObjectClass *gobject_class; 1158s # GDBusInterfaceSkeletonClass *skeleton_class; 1158s # 1158s # gobject_class = G_OBJECT_CLASS (klass); 1158s # gobject_class->finalize = org_project_useful_interface_skeleton_finalize; 1158s # 1158s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 1158s # skeleton_class->get_info = org_project_useful_interface_skeleton_dbus_interface_get_info; 1158s # skeleton_class->get_properties = org_project_useful_interface_skeleton_dbus_interface_get_properties; 1158s # skeleton_class->flush = org_project_useful_interface_skeleton_dbus_interface_flush; 1158s # skeleton_class->get_vtable = org_project_useful_interface_skeleton_dbus_interface_get_vtable; 1158s # 1158s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1158s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceSkeletonPrivate)); 1158s # #endif 1158s # } 1158s # 1158s # static void 1158s # org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 1158s # { 1158s # } 1158s # 1158s # /** 1158s # * org_project_useful_interface_skeleton_new: 1158s # * 1158s # * Creates a skeleton object for the D-Bus interface org.project.UsefulInterface. 1158s # * 1158s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceSkeleton): The skeleton object. 1158s # */ 1158s # OrgProjectUsefulInterface * 1158s # org_project_useful_interface_skeleton_new (void) 1158s # { 1158s # return ORG_PROJECT_USEFUL_INTERFACE (g_object_new (TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, NULL)); 1158s # } 1158s # Error: 1158s # 1158s # /tmp/tmpv_fj8nn0/tmpdexyjneg.xml: 1158s # 1158s # 1158s # 1158s # 1158s # 1158s # 1158s # 1158s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpv_fj8nn0/tmpdexyjneg.xml', '--output', '-', '--body'] 1158s # Return code: 0 1158s # Output: 1158s # /* 1158s # * This file is generated by gdbus-codegen, do not modify it. 1158s # * 1158s # * The license of this code is the same as for the D-Bus interface description 1158s # * it was derived from. Note that it links to GLib, so must comply with the 1158s # * LGPL linking clauses. 1158s # */ 1158s # 1158s # #ifdef HAVE_CONFIG_H 1158s # # include "config.h" 1158s # #endif 1158s # 1158s # #include 1158s # #ifdef G_OS_UNIX 1158s # # include 1158s # #endif 1158s # 1158s # #ifdef G_ENABLE_DEBUG 1158s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 1158s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 1158s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 1158s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 1158s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 1158s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 1158s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 1158s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 1158s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 1158s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 1158s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 1158s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 1158s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 1158s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 1158s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 1158s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 1158s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 1158s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 1158s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 1158s # #else /* !G_ENABLE_DEBUG */ 1158s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 1158s # * Do not access GValues directly in your code. Instead, use the 1158s # * g_value_get_*() functions 1158s # */ 1158s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 1158s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 1158s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 1158s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 1158s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 1158s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 1158s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 1158s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 1158s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 1158s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 1158s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 1158s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 1158s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 1158s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 1158s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 1158s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 1158s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 1158s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 1158s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 1158s # #endif /* !G_ENABLE_DEBUG */ 1158s # 1158s # typedef struct 1158s # { 1158s # GDBusArgInfo parent_struct; 1158s # gboolean use_gvariant; 1158s # } _ExtendedGDBusArgInfo; 1158s # 1158s # typedef struct 1158s # { 1158s # GDBusMethodInfo parent_struct; 1158s # const gchar *signal_name; 1158s # gboolean pass_fdlist; 1158s # } _ExtendedGDBusMethodInfo; 1158s # 1158s # typedef struct 1158s # { 1158s # GDBusSignalInfo parent_struct; 1158s # const gchar *signal_name; 1158s # } _ExtendedGDBusSignalInfo; 1158s # 1158s # typedef struct 1158s # { 1158s # GDBusPropertyInfo parent_struct; 1158s # const gchar *hyphen_name; 1158s # guint use_gvariant : 1; 1158s # guint emits_changed_signal : 1; 1158s # } _ExtendedGDBusPropertyInfo; 1158s # 1158s # typedef struct 1158s # { 1158s # GDBusInterfaceInfo parent_struct; 1158s # const gchar *hyphen_name; 1158s # } _ExtendedGDBusInterfaceInfo; 1158s # 1158s # typedef struct 1158s # { 1158s # const _ExtendedGDBusPropertyInfo *info; 1158s # guint prop_id; 1158s # GValue orig_value; /* the value before the change */ 1158s # } ChangedProperty; 1158s # 1158s # static void 1158s # _changed_property_free (ChangedProperty *data) 1158s # { 1158s # g_value_unset (&data->orig_value); 1158s # g_free (data); 1158s # } 1158s # 1158s # static gboolean 1158s # _g_strv_equal0 (gchar **a, gchar **b) 1158s # { 1158s # gboolean ret = FALSE; 1158s # guint n; 1158s # if (a == NULL && b == NULL) 1158s # { 1158s # ret = TRUE; 1158s # goto out; 1158s # } 1158s # if (a == NULL || b == NULL) 1158s # goto out; 1158s # if (g_strv_length (a) != g_strv_length (b)) 1158s # goto out; 1158s # for (n = 0; a[n] != NULL; n++) 1158s # if (g_strcmp0 (a[n], b[n]) != 0) 1158s # goto out; 1158s # ret = TRUE; 1158s # out: 1158s # return ret; 1158s # } 1158s # 1158s # static gboolean 1158s # _g_variant_equal0 (GVariant *a, GVariant *b) 1158s # { 1158s # gboolean ret = FALSE; 1158s # if (a == NULL && b == NULL) 1158s # { 1158s # ret = TRUE; 1158s # goto out; 1158s # } 1158s # if (a == NULL || b == NULL) 1158s # goto out; 1158s # ret = g_variant_equal (a, b); 1158s # out: 1158s # return ret; 1158s # } 1158s # 1158s # G_GNUC_UNUSED static gboolean 1158s # _g_value_equal (const GValue *a, const GValue *b) 1158s # { 1158s # gboolean ret = FALSE; 1158s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 1158s # switch (G_VALUE_TYPE (a)) 1158s # { 1158s # case G_TYPE_BOOLEAN: 1158s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 1158s # break; 1158s # case G_TYPE_UCHAR: 1158s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 1158s # break; 1158s # case G_TYPE_INT: 1158s # ret = (g_value_get_int (a) == g_value_get_int (b)); 1158s # break; 1158s # case G_TYPE_UINT: 1158s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 1158s # break; 1158s # case G_TYPE_INT64: 1158s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 1158s # break; 1158s # case G_TYPE_UINT64: 1158s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 1158s # break; 1158s # case G_TYPE_DOUBLE: 1158s # { 1158s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 1158s # gdouble da = g_value_get_double (a); 1158s # gdouble db = g_value_get_double (b); 1158s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 1158s # } 1158s # break; 1158s # case G_TYPE_STRING: 1158s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 1158s # break; 1158s # case G_TYPE_VARIANT: 1158s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 1158s # break; 1158s # default: 1158s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 1158s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 1158s # else 1158s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 1158s # break; 1158s # } 1158s # return ret; 1158s # } 1158s # 1158s # static void 1158s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT_VARIANT ( 1158s # GClosure *closure, 1158s # GValue *return_value, 1158s # unsigned int n_param_values, 1158s # const GValue *param_values, 1158s # void *invocation_hint G_GNUC_UNUSED, 1158s # void *marshal_data) 1158s # { 1158s # typedef gboolean (*_GDbusCodegenMarshalBoolean_ObjectVariantFunc) 1158s # (void *data1, 1158s # GDBusMethodInvocation *arg_method_invocation, 1158s # GVariant *arg_arg_asv, 1158s # void *data2); 1158s # _GDbusCodegenMarshalBoolean_ObjectVariantFunc callback; 1158s # GCClosure *cc = (GCClosure*) closure; 1158s # void *data1, *data2; 1158s # gboolean v_return; 1158s # 1158s # g_return_if_fail (return_value != NULL); 1158s # g_return_if_fail (n_param_values == 3); 1158s # 1158s # if (G_CCLOSURE_SWAP_DATA (closure)) 1158s # { 1158s # data1 = closure->data; 1158s # data2 = g_value_peek_pointer (param_values + 0); 1158s # } 1158s # else 1158s # { 1158s # data1 = g_value_peek_pointer (param_values + 0); 1158s # data2 = closure->data; 1158s # } 1158s # 1158s # callback = (_GDbusCodegenMarshalBoolean_ObjectVariantFunc) 1158s # (marshal_data ? marshal_data : cc->callback); 1158s # 1158s # v_return = 1158s # callback (data1, 1158s # g_marshal_value_peek_object (param_values + 1), 1158s # g_marshal_value_peek_variant (param_values + 2), 1158s # data2); 1158s # 1158s # g_value_set_boolean (return_value, v_return); 1158s # } 1158s # 1158s # /* ------------------------------------------------------------------------ 1158s # * Code for interface org.project.UsefulInterface 1158s # * ------------------------------------------------------------------------ 1158s # */ 1158s # 1158s # /** 1158s # * SECTION:OrgProjectUsefulInterface 1158s # * @title: OrgProjectUsefulInterface 1158s # * @short_description: Generated C code for the org.project.UsefulInterface D-Bus interface 1158s # * 1158s # * This section contains code for working with the org.project.UsefulInterface D-Bus interface in C. 1158s # */ 1158s # 1158s # /* ---- Introspection data for org.project.UsefulInterface ---- */ 1158s # 1158s # static const _ExtendedGDBusArgInfo _org_project_useful_interface_method_info_single_arg_method_asv_IN_ARG_arg_asv = 1158s # { 1158s # { 1158s # -1, 1158s # (gchar *) "arg_asv", 1158s # (gchar *) "a{sv}", 1158s # NULL 1158s # }, 1158s # FALSE 1158s # }; 1158s # 1158s # static const GDBusArgInfo * const _org_project_useful_interface_method_info_single_arg_method_asv_IN_ARG_pointers[] = 1158s # { 1158s # &_org_project_useful_interface_method_info_single_arg_method_asv_IN_ARG_arg_asv.parent_struct, 1158s # NULL 1158s # }; 1158s # 1158s # static const _ExtendedGDBusMethodInfo _org_project_useful_interface_method_info_single_arg_method_asv = 1158s # { 1158s # { 1158s # -1, 1158s # (gchar *) "SingleArgMethodAsv", 1158s # (GDBusArgInfo **) &_org_project_useful_interface_method_info_single_arg_method_asv_IN_ARG_pointers, 1158s # NULL, 1158s # NULL 1158s # }, 1158s # "handle-single-arg-method-asv", 1158s # FALSE 1158s # }; 1158s # 1158s # static const GDBusMethodInfo * const _org_project_useful_interface_method_info_pointers[] = 1158s # { 1158s # &_org_project_useful_interface_method_info_single_arg_method_asv.parent_struct, 1158s # NULL 1158s # }; 1158s # 1158s # static const _ExtendedGDBusInterfaceInfo _org_project_useful_interface_interface_info = 1158s # { 1158s # { 1158s # -1, 1158s # (gchar *) "org.project.UsefulInterface", 1158s # (GDBusMethodInfo **) &_org_project_useful_interface_method_info_pointers, 1158s # NULL, 1158s # NULL, 1158s # NULL 1158s # }, 1158s # "org-project-useful-interface", 1158s # }; 1158s # 1158s # 1158s # /** 1158s # * org_project_useful_interface_interface_info: 1158s # * 1158s # * Gets a machine-readable description of the org.project.UsefulInterface D-Bus interface. 1158s # * 1158s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 1158s # */ 1158s # GDBusInterfaceInfo * 1158s # org_project_useful_interface_interface_info (void) 1158s # { 1158s # return (GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct; 1158s # } 1158s # 1158s # /** 1158s # * org_project_useful_interface_override_properties: 1158s # * @klass: The class structure for a #GObject derived class. 1158s # * @property_id_begin: The property id to assign to the first overridden property. 1158s # * 1158s # * Overrides all #GObject properties in the #OrgProjectUsefulInterface interface for a concrete class. 1158s # * The properties are overridden in the order they are defined. 1158s # * 1158s # * Returns: The last property id. 1158s # */ 1158s # guint 1158s # org_project_useful_interface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 1158s # { 1158s # return property_id_begin - 1; 1158s # } 1158s # 1158s # 1158s # inline static void 1158s # org_project_useful_interface_method_marshal_single_arg_method_asv ( 1158s # GClosure *closure, 1158s # GValue *return_value, 1158s # unsigned int n_param_values, 1158s # const GValue *param_values, 1158s # void *invocation_hint, 1158s # void *marshal_data) 1158s # { 1158s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT_VARIANT (closure, 1158s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1158s # } 1158s # 1158s # 1158s # /** 1158s # * OrgProjectUsefulInterface: 1158s # * 1158s # * Abstract interface type for the D-Bus interface org.project.UsefulInterface. 1158s # */ 1158s # 1158s # /** 1158s # * OrgProjectUsefulInterfaceIface: 1158s # * @parent_iface: The parent interface. 1158s # * @handle_single_arg_method_asv: Handler for the #OrgProjectUsefulInterface::handle-single-arg-method-asv signal. 1158s # * 1158s # * Virtual table for the D-Bus interface org.project.UsefulInterface. 1158s # */ 1158s # 1158s # typedef OrgProjectUsefulInterfaceIface OrgProjectUsefulInterfaceInterface; 1158s # G_DEFINE_INTERFACE (OrgProjectUsefulInterface, org_project_useful_interface, G_TYPE_OBJECT) 1158s # 1158s # static void 1158s # org_project_useful_interface_default_init (OrgProjectUsefulInterfaceIface *iface) 1158s # { 1158s # /* GObject signals for incoming D-Bus method calls: */ 1158s # /** 1158s # * OrgProjectUsefulInterface::handle-single-arg-method-asv: 1158s # * @object: A #OrgProjectUsefulInterface. 1158s # * @invocation: A #GDBusMethodInvocation. 1158s # * @arg_arg_asv: Argument passed by remote caller. 1158s # * 1158s # * Signal emitted when a remote caller is invoking the SingleArgMethodAsv() D-Bus method. 1158s # * 1158s # * 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. 1158s # * 1158s # * 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. 1158s # */ 1158s # g_signal_new ("handle-single-arg-method-asv", 1158s # G_TYPE_FROM_INTERFACE (iface), 1158s # G_SIGNAL_RUN_LAST, 1158s # G_STRUCT_OFFSET (OrgProjectUsefulInterfaceIface, handle_single_arg_method_asv), 1158s # g_signal_accumulator_true_handled, 1158s # NULL, 1158s # org_project_useful_interface_method_marshal_single_arg_method_asv, 1158s # G_TYPE_BOOLEAN, 1158s # 2, 1158s # G_TYPE_DBUS_METHOD_INVOCATION, G_TYPE_VARIANT); 1158s # 1158s # } 1158s # 1158s # /** 1158s # * org_project_useful_interface_call_single_arg_method_asv: 1158s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1158s # * @arg_arg_asv: Argument to pass with the method invocation. 1158s # * @cancellable: (nullable): A #GCancellable or %NULL. 1158s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL. 1158s # * @user_data: User data to pass to @callback. 1158s # * 1158s # * Asynchronously invokes the SingleArgMethodAsv() D-Bus method on @proxy. 1158s # * 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()). 1158s # * You can then call org_project_useful_interface_call_single_arg_method_asv_finish() to get the result of the operation. 1158s # * 1158s # * See org_project_useful_interface_call_single_arg_method_asv_sync() for the synchronous, blocking version of this method. 1158s # */ 1158s # void 1158s # org_project_useful_interface_call_single_arg_method_asv ( 1158s # OrgProjectUsefulInterface *proxy, 1158s # GVariant *arg_arg_asv, 1158s # GCancellable *cancellable, 1158s # GAsyncReadyCallback callback, 1158s # gpointer user_data) 1158s # { 1158s # g_dbus_proxy_call (G_DBUS_PROXY (proxy), 1158s # "SingleArgMethodAsv", 1158s # g_variant_new ("(@a{sv})", 1158s # arg_arg_asv), 1158s # G_DBUS_CALL_FLAGS_NONE, 1158s # -1, 1158s # cancellable, 1158s # callback, 1158s # user_data); 1158s # } 1158s # 1158s # /** 1158s # * org_project_useful_interface_call_single_arg_method_asv_finish: 1158s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1158s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_call_single_arg_method_asv(). 1158s # * @error: Return location for error or %NULL. 1158s # * 1158s # * Finishes an operation started with org_project_useful_interface_call_single_arg_method_asv(). 1158s # * 1158s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1158s # */ 1158s # gboolean 1158s # org_project_useful_interface_call_single_arg_method_asv_finish ( 1158s # OrgProjectUsefulInterface *proxy, 1158s # GAsyncResult *res, 1158s # GError **error) 1158s # { 1158s # GVariant *_ret; 1158s # _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error); 1158s # if (_ret == NULL) 1158s # goto _out; 1158s # g_variant_get (_ret, 1158s # "()"); 1158s # g_variant_unref (_ret); 1158s # _out: 1158s # return _ret != NULL; 1158s # } 1158s # 1158s # /** 1158s # * org_project_useful_interface_call_single_arg_method_asv_sync: 1158s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1158s # * @arg_arg_asv: Argument to pass with the method invocation. 1158s # * @cancellable: (nullable): A #GCancellable or %NULL. 1158s # * @error: Return location for error or %NULL. 1158s # * 1158s # * Synchronously invokes the SingleArgMethodAsv() D-Bus method on @proxy. The calling thread is blocked until a reply is received. 1158s # * 1158s # * See org_project_useful_interface_call_single_arg_method_asv() for the asynchronous version of this method. 1158s # * 1158s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1158s # */ 1158s # gboolean 1158s # org_project_useful_interface_call_single_arg_method_asv_sync ( 1158s # OrgProjectUsefulInterface *proxy, 1158s # GVariant *arg_arg_asv, 1158s # GCancellable *cancellable, 1158s # GError **error) 1158s # { 1158s # GVariant *_ret; 1158s # _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy), 1158s # "SingleArgMethodAsv", 1158s # g_variant_new ("(@a{sv})", 1158s # arg_arg_asv), 1158s # G_DBUS_CALL_FLAGS_NONE, 1158s # -1, 1158s # cancellable, 1158s # error); 1158s # if (_ret == NULL) 1158s # goto _out; 1158s # g_variant_get (_ret, 1158s # "()"); 1158s # g_variant_unref (_ret); 1158s # _out: 1158s # return _ret != NULL; 1158s # } 1158s # 1158s # /** 1158s # * org_project_useful_interface_complete_single_arg_method_asv: 1158s # * @object: A #OrgProjectUsefulInterface. 1158s # * @invocation: (transfer full): A #GDBusMethodInvocation. 1158s # * 1158s # * 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. 1158s # * 1158s # * This method will free @invocation, you cannot use it afterwards. 1158s # */ 1158s # void 1158s # org_project_useful_interface_complete_single_arg_method_asv ( 1158s # OrgProjectUsefulInterface *object G_GNUC_UNUSED, 1158s # GDBusMethodInvocation *invocation) 1158s # { 1158s # g_dbus_method_invocation_return_value (invocation, 1158s # g_variant_new ("()")); 1158s # } 1158s # 1158s # /* ------------------------------------------------------------------------ */ 1158s # 1158s # /** 1158s # * OrgProjectUsefulInterfaceProxy: 1158s # * 1158s # * The #OrgProjectUsefulInterfaceProxy structure contains only private data and should only be accessed using the provided API. 1158s # */ 1158s # 1158s # /** 1158s # * OrgProjectUsefulInterfaceProxyClass: 1158s # * @parent_class: The parent class. 1158s # * 1158s # * Class structure for #OrgProjectUsefulInterfaceProxy. 1158s # */ 1158s # 1158s # struct _OrgProjectUsefulInterfaceProxyPrivate 1158s # { 1158s # GData *qdata; 1158s # }; 1158s # 1158s # static void org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface); 1158s # 1158s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1158s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 1158s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceProxy) 1158s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 1158s # 1158s # #else 1158s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 1158s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 1158s # 1158s # #endif 1158s # static void 1158s # org_project_useful_interface_proxy_finalize (GObject *object) 1158s # { 1158s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (object); 1158s # g_datalist_clear (&proxy->priv->qdata); 1158s # G_OBJECT_CLASS (org_project_useful_interface_proxy_parent_class)->finalize (object); 1158s # } 1158s # 1158s # static void 1158s # org_project_useful_interface_proxy_get_property (GObject *object G_GNUC_UNUSED, 1158s # guint prop_id G_GNUC_UNUSED, 1158s # GValue *value G_GNUC_UNUSED, 1158s # GParamSpec *pspec G_GNUC_UNUSED) 1158s # { 1158s # } 1158s # 1158s # static void 1158s # org_project_useful_interface_proxy_set_property (GObject *object G_GNUC_UNUSED, 1158s # guint prop_id G_GNUC_UNUSED, 1158s # const GValue *value G_GNUC_UNUSED, 1158s # GParamSpec *pspec G_GNUC_UNUSED) 1158s # { 1158s # } 1158s # 1158s # static void 1158s # org_project_useful_interface_proxy_g_signal (GDBusProxy *proxy, 1158s # const gchar *sender_name G_GNUC_UNUSED, 1158s # const gchar *signal_name, 1158s # GVariant *parameters) 1158s # { 1158s # _ExtendedGDBusSignalInfo *info; 1158s # GVariantIter iter; 1158s # GVariant *child; 1158s # GValue *paramv; 1158s # gsize num_params; 1158s # gsize n; 1158s # guint signal_id; 1158s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, signal_name); 1158s # if (info == NULL) 1158s # return; 1158s # num_params = g_variant_n_children (parameters); 1158s # paramv = g_new0 (GValue, num_params + 1); 1158s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1158s # g_value_set_object (¶mv[0], proxy); 1158s # g_variant_iter_init (&iter, parameters); 1158s # n = 1; 1158s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1158s # { 1158s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 1158s # if (arg_info->use_gvariant) 1158s # { 1158s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1158s # g_value_set_variant (¶mv[n], child); 1158s # n++; 1158s # } 1158s # else 1158s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1158s # g_variant_unref (child); 1158s # } 1158s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1158s # g_signal_emitv (paramv, signal_id, 0, NULL); 1158s # for (n = 0; n < num_params + 1; n++) 1158s # g_value_unset (¶mv[n]); 1158s # g_free (paramv); 1158s # } 1158s # 1158s # static void 1158s # org_project_useful_interface_proxy_g_properties_changed (GDBusProxy *_proxy, 1158s # GVariant *changed_properties, 1158s # const gchar *const *invalidated_properties) 1158s # { 1158s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (_proxy); 1158s # guint n; 1158s # const gchar *key; 1158s # GVariantIter *iter; 1158s # _ExtendedGDBusPropertyInfo *info; 1158s # g_variant_get (changed_properties, "a{sv}", &iter); 1158s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 1158s # { 1158s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, key); 1158s # g_datalist_remove_data (&proxy->priv->qdata, key); 1158s # if (info != NULL) 1158s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1158s # } 1158s # g_variant_iter_free (iter); 1158s # for (n = 0; invalidated_properties[n] != NULL; n++) 1158s # { 1158s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, invalidated_properties[n]); 1158s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 1158s # if (info != NULL) 1158s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1158s # } 1158s # } 1158s # 1158s # static void 1158s # org_project_useful_interface_proxy_init (OrgProjectUsefulInterfaceProxy *proxy) 1158s # { 1158s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1158s # proxy->priv = org_project_useful_interface_proxy_get_instance_private (proxy); 1158s # #else 1158s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY, OrgProjectUsefulInterfaceProxyPrivate); 1158s # #endif 1158s # 1158s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_useful_interface_interface_info ()); 1158s # } 1158s # 1158s # static void 1158s # org_project_useful_interface_proxy_class_init (OrgProjectUsefulInterfaceProxyClass *klass) 1158s # { 1158s # GObjectClass *gobject_class; 1158s # GDBusProxyClass *proxy_class; 1158s # 1158s # gobject_class = G_OBJECT_CLASS (klass); 1158s # gobject_class->finalize = org_project_useful_interface_proxy_finalize; 1158s # gobject_class->get_property = org_project_useful_interface_proxy_get_property; 1158s # gobject_class->set_property = org_project_useful_interface_proxy_set_property; 1158s # 1158s # proxy_class = G_DBUS_PROXY_CLASS (klass); 1158s # proxy_class->g_signal = org_project_useful_interface_proxy_g_signal; 1158s # proxy_class->g_properties_changed = org_project_useful_interface_proxy_g_properties_changed; 1158s # 1158s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1158s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceProxyPrivate)); 1158s # #endif 1158s # } 1158s # 1158s # static void 1158s # org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 1158s # { 1158s # } 1158s # 1158s # /** 1158s # * org_project_useful_interface_proxy_new: 1158s # * @connection: A #GDBusConnection. 1158s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1158s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1158s # * @object_path: An object path. 1158s # * @cancellable: (nullable): A #GCancellable or %NULL. 1158s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1158s # * @user_data: User data to pass to @callback. 1158s # * 1158s # * Asynchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new() for more details. 1158s # * 1158s # * 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()). 1158s # * You can then call org_project_useful_interface_proxy_new_finish() to get the result of the operation. 1158s # * 1158s # * See org_project_useful_interface_proxy_new_sync() for the synchronous, blocking version of this constructor. 1158s # */ 1158s # void 1158s # org_project_useful_interface_proxy_new ( 1158s # GDBusConnection *connection, 1158s # GDBusProxyFlags flags, 1158s # const gchar *name, 1158s # const gchar *object_path, 1158s # GCancellable *cancellable, 1158s # GAsyncReadyCallback callback, 1158s # gpointer user_data) 1158s # { 1158s # 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); 1158s # } 1158s # 1158s # /** 1158s # * org_project_useful_interface_proxy_new_finish: 1158s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new(). 1158s # * @error: Return location for error or %NULL 1158s # * 1158s # * Finishes an operation started with org_project_useful_interface_proxy_new(). 1158s # * 1158s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1158s # */ 1158s # OrgProjectUsefulInterface * 1158s # org_project_useful_interface_proxy_new_finish ( 1158s # GAsyncResult *res, 1158s # GError **error) 1158s # { 1158s # GObject *ret; 1158s # GObject *source_object; 1158s # source_object = g_async_result_get_source_object (res); 1158s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1158s # g_object_unref (source_object); 1158s # if (ret != NULL) 1158s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1158s # else 1158s # return NULL; 1158s # } 1158s # 1158s # /** 1158s # * org_project_useful_interface_proxy_new_sync: 1158s # * @connection: A #GDBusConnection. 1158s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1158s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1158s # * @object_path: An object path. 1158s # * @cancellable: (nullable): A #GCancellable or %NULL. 1158s # * @error: Return location for error or %NULL 1158s # * 1158s # * Synchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new_sync() for more details. 1158s # * 1158s # * The calling thread is blocked until a reply is received. 1158s # * 1158s # * See org_project_useful_interface_proxy_new() for the asynchronous version of this constructor. 1158s # * 1158s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1158s # */ 1158s # OrgProjectUsefulInterface * 1158s # org_project_useful_interface_proxy_new_sync ( 1158s # GDBusConnection *connection, 1158s # GDBusProxyFlags flags, 1158s # const gchar *name, 1158s # const gchar *object_path, 1158s # GCancellable *cancellable, 1158s # GError **error) 1158s # { 1158s # GInitable *ret; 1158s # 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); 1158s # if (ret != NULL) 1158s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1158s # else 1158s # return NULL; 1158s # } 1158s # 1158s # 1158s # /** 1158s # * org_project_useful_interface_proxy_new_for_bus: 1158s # * @bus_type: A #GBusType. 1158s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1158s # * @name: A bus name (well-known or unique). 1158s # * @object_path: An object path. 1158s # * @cancellable: (nullable): A #GCancellable or %NULL. 1158s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1158s # * @user_data: User data to pass to @callback. 1158s # * 1158s # * Like org_project_useful_interface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 1158s # * 1158s # * 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()). 1158s # * You can then call org_project_useful_interface_proxy_new_for_bus_finish() to get the result of the operation. 1158s # * 1158s # * See org_project_useful_interface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 1158s # */ 1158s # void 1158s # org_project_useful_interface_proxy_new_for_bus ( 1158s # GBusType bus_type, 1158s # GDBusProxyFlags flags, 1158s # const gchar *name, 1158s # const gchar *object_path, 1158s # GCancellable *cancellable, 1158s # GAsyncReadyCallback callback, 1158s # gpointer user_data) 1158s # { 1158s # 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); 1158s # } 1158s # 1158s # /** 1158s # * org_project_useful_interface_proxy_new_for_bus_finish: 1158s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new_for_bus(). 1158s # * @error: Return location for error or %NULL 1158s # * 1158s # * Finishes an operation started with org_project_useful_interface_proxy_new_for_bus(). 1158s # * 1158s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1158s # */ 1158s # OrgProjectUsefulInterface * 1158s # org_project_useful_interface_proxy_new_for_bus_finish ( 1158s # GAsyncResult *res, 1158s # GError **error) 1158s # { 1158s # GObject *ret; 1158s # GObject *source_object; 1158s # source_object = g_async_result_get_source_object (res); 1158s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1158s # g_object_unref (source_object); 1158s # if (ret != NULL) 1158s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1158s # else 1158s # return NULL; 1158s # } 1158s # 1158s # /** 1158s # * org_project_useful_interface_proxy_new_for_bus_sync: 1158s # * @bus_type: A #GBusType. 1158s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1158s # * @name: A bus name (well-known or unique). 1158s # * @object_path: An object path. 1158s # * @cancellable: (nullable): A #GCancellable or %NULL. 1158s # * @error: Return location for error or %NULL 1158s # * 1158s # * Like org_project_useful_interface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 1158s # * 1158s # * The calling thread is blocked until a reply is received. 1158s # * 1158s # * See org_project_useful_interface_proxy_new_for_bus() for the asynchronous version of this constructor. 1158s # * 1158s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1158s # */ 1158s # OrgProjectUsefulInterface * 1158s # org_project_useful_interface_proxy_new_for_bus_sync ( 1158s # GBusType bus_type, 1158s # GDBusProxyFlags flags, 1158s # const gchar *name, 1158s # const gchar *object_path, 1158s # GCancellable *cancellable, 1158s # GError **error) 1158s # { 1158s # GInitable *ret; 1158s # 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); 1158s # if (ret != NULL) 1158s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1158s # else 1158s # return NULL; 1158s # } 1158s # 1158s # 1158s # /* ------------------------------------------------------------------------ */ 1158s # 1158s # /** 1158s # * OrgProjectUsefulInterfaceSkeleton: 1158s # * 1158s # * The #OrgProjectUsefulInterfaceSkeleton structure contains only private data and should only be accessed using the provided API. 1158s # */ 1158s # 1158s # /** 1158s # * OrgProjectUsefulInterfaceSkeletonClass: 1158s # * @parent_class: The parent class. 1158s # * 1158s # * Class structure for #OrgProjectUsefulInterfaceSkeleton. 1158s # */ 1158s # 1158s # struct _OrgProjectUsefulInterfaceSkeletonPrivate 1158s # { 1158s # GValue *properties; 1158s # GList *changed_properties; 1158s # GSource *changed_properties_idle_source; 1158s # GMainContext *context; 1158s # GMutex lock; 1158s # }; 1158s # 1158s # static void 1158s # _org_project_useful_interface_skeleton_handle_method_call ( 1158s # GDBusConnection *connection G_GNUC_UNUSED, 1158s # const gchar *sender G_GNUC_UNUSED, 1158s # const gchar *object_path G_GNUC_UNUSED, 1158s # const gchar *interface_name, 1158s # const gchar *method_name, 1158s # GVariant *parameters, 1158s # GDBusMethodInvocation *invocation, 1158s # gpointer user_data) 1158s # { 1158s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1158s # _ExtendedGDBusMethodInfo *info; 1158s # GVariantIter iter; 1158s # GVariant *child; 1158s # GValue *paramv; 1158s # gsize num_params; 1158s # guint num_extra; 1158s # gsize n; 1158s # guint signal_id; 1158s # GValue return_value = G_VALUE_INIT; 1158s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 1158s # g_assert (info != NULL); 1158s # num_params = g_variant_n_children (parameters); 1158s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 1158s # n = 0; 1158s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1158s # g_value_set_object (¶mv[n++], skeleton); 1158s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 1158s # g_value_set_object (¶mv[n++], invocation); 1158s # if (info->pass_fdlist) 1158s # { 1158s # #ifdef G_OS_UNIX 1158s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 1158s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 1158s # #else 1158s # g_assert_not_reached (); 1158s # #endif 1158s # } 1158s # g_variant_iter_init (&iter, parameters); 1158s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1158s # { 1158s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 1158s # if (arg_info->use_gvariant) 1158s # { 1158s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1158s # g_value_set_variant (¶mv[n], child); 1158s # n++; 1158s # } 1158s # else 1158s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1158s # g_variant_unref (child); 1158s # } 1158s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1158s # g_value_init (&return_value, G_TYPE_BOOLEAN); 1158s # g_signal_emitv (paramv, signal_id, 0, &return_value); 1158s # if (!g_value_get_boolean (&return_value)) 1158s # 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); 1158s # g_value_unset (&return_value); 1158s # for (n = 0; n < num_params + num_extra; n++) 1158s # g_value_unset (¶mv[n]); 1158s # g_free (paramv); 1158s # } 1158s # 1158s # static GVariant * 1158s # _org_project_useful_interface_skeleton_handle_get_property ( 1158s # GDBusConnection *connection G_GNUC_UNUSED, 1158s # const gchar *sender G_GNUC_UNUSED, 1158s # const gchar *object_path G_GNUC_UNUSED, 1158s # const gchar *interface_name G_GNUC_UNUSED, 1158s # const gchar *property_name, 1158s # GError **error, 1158s # gpointer user_data) 1158s # { 1158s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1158s # GValue value = G_VALUE_INIT; 1158s # GParamSpec *pspec; 1158s # _ExtendedGDBusPropertyInfo *info; 1158s # GVariant *ret; 1158s # ret = NULL; 1158s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 1158s # g_assert (info != NULL); 1158s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1158s # if (pspec == NULL) 1158s # { 1158s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1158s # } 1158s # else 1158s # { 1158s # g_value_init (&value, pspec->value_type); 1158s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1158s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 1158s # g_value_unset (&value); 1158s # } 1158s # return ret; 1158s # } 1158s # 1158s # static gboolean 1158s # _org_project_useful_interface_skeleton_handle_set_property ( 1158s # GDBusConnection *connection G_GNUC_UNUSED, 1158s # const gchar *sender G_GNUC_UNUSED, 1158s # const gchar *object_path G_GNUC_UNUSED, 1158s # const gchar *interface_name G_GNUC_UNUSED, 1158s # const gchar *property_name, 1158s # GVariant *variant, 1158s # GError **error, 1158s # gpointer user_data) 1158s # { 1158s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1158s # GValue value = G_VALUE_INIT; 1158s # GParamSpec *pspec; 1158s # _ExtendedGDBusPropertyInfo *info; 1158s # gboolean ret; 1158s # ret = FALSE; 1158s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 1158s # g_assert (info != NULL); 1158s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1158s # if (pspec == NULL) 1158s # { 1158s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1158s # } 1158s # else 1158s # { 1158s # if (info->use_gvariant) 1158s # g_value_set_variant (&value, variant); 1158s # else 1158s # g_dbus_gvariant_to_gvalue (variant, &value); 1158s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1158s # g_value_unset (&value); 1158s # ret = TRUE; 1158s # } 1158s # return ret; 1158s # } 1158s # 1158s # static const GDBusInterfaceVTable _org_project_useful_interface_skeleton_vtable = 1158s # { 1158s # _org_project_useful_interface_skeleton_handle_method_call, 1158s # _org_project_useful_interface_skeleton_handle_get_property, 1158s # _org_project_useful_interface_skeleton_handle_set_property, 1158s # {NULL} 1158s # }; 1158s # 1158s # static GDBusInterfaceInfo * 1158s # org_project_useful_interface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1158s # { 1158s # return org_project_useful_interface_interface_info (); 1158s # } 1158s # 1158s # static GDBusInterfaceVTable * 1158s # org_project_useful_interface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1158s # { 1158s # return (GDBusInterfaceVTable *) &_org_project_useful_interface_skeleton_vtable; 1158s # } 1158s # 1158s # static GVariant * 1158s # org_project_useful_interface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 1158s # { 1158s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (_skeleton); 1158s # 1158s # GVariantBuilder builder; 1158s # guint n; 1158s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 1158s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 1158s # #else 1158s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 1158s # #endif 1158s # if (_org_project_useful_interface_interface_info.parent_struct.properties == NULL) 1158s # goto out; 1158s # for (n = 0; _org_project_useful_interface_interface_info.parent_struct.properties[n] != NULL; n++) 1158s # { 1158s # GDBusPropertyInfo *info = _org_project_useful_interface_interface_info.parent_struct.properties[n]; 1158s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 1158s # { 1158s # GVariant *value; 1158s # 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); 1158s # if (value != NULL) 1158s # { 1158s # g_variant_take_ref (value); 1158s # g_variant_builder_add (&builder, "{sv}", info->name, value); 1158s # g_variant_unref (value); 1158s # } 1158s # } 1158s # } 1158s # out: 1158s # return g_variant_builder_end (&builder); 1158s # } 1158s # 1158s # static void 1158s # org_project_useful_interface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 1158s # { 1158s # } 1158s # 1158s # static void org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface); 1158s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1158s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1158s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceSkeleton) 1158s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 1158s # 1158s # #else 1158s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1158s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 1158s # 1158s # #endif 1158s # static void 1158s # org_project_useful_interface_skeleton_finalize (GObject *object) 1158s # { 1158s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (object); 1158s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 1158s # if (skeleton->priv->changed_properties_idle_source != NULL) 1158s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 1158s # g_main_context_unref (skeleton->priv->context); 1158s # g_mutex_clear (&skeleton->priv->lock); 1158s # G_OBJECT_CLASS (org_project_useful_interface_skeleton_parent_class)->finalize (object); 1158s # } 1158s # 1158s # static void 1158s # org_project_useful_interface_skeleton_init (OrgProjectUsefulInterfaceSkeleton *skeleton) 1158s # { 1158s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1158s # skeleton->priv = org_project_useful_interface_skeleton_get_instance_private (skeleton); 1158s # #else 1158s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, OrgProjectUsefulInterfaceSkeletonPrivate); 1158s # #endif 1158s # 1158s # g_mutex_init (&skeleton->priv->lock); 1158s # skeleton->priv->context = g_main_context_ref_thread_default (); 1158s # } 1158s # 1158s # static void 1158s # org_project_useful_interface_skeleton_class_init (OrgProjectUsefulInterfaceSkeletonClass *klass) 1158s # { 1158s # GObjectClass *gobject_class; 1158s # GDBusInterfaceSkeletonClass *skeleton_class; 1158s # 1158s # gobject_class = G_OBJECT_CLASS (klass); 1158s # gobject_class->finalize = org_project_useful_interface_skeleton_finalize; 1158s # 1158s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 1158s # skeleton_class->get_info = org_project_useful_interface_skeleton_dbus_interface_get_info; 1158s # skeleton_class->get_properties = org_project_useful_interface_skeleton_dbus_interface_get_properties; 1158s # skeleton_class->flush = org_project_useful_interface_skeleton_dbus_interface_flush; 1158s # skeleton_class->get_vtable = org_project_useful_interface_skeleton_dbus_interface_get_vtable; 1158s # 1158s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1158s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceSkeletonPrivate)); 1158s # #endif 1158s # } 1158s # 1158s # static void 1158s # org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 1158s # { 1158s # } 1158s # 1158s # /** 1158s # * org_project_useful_interface_skeleton_new: 1158s # * 1158s # * Creates a skeleton object for the D-Bus interface org.project.UsefulInterface. 1158s # * 1158s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceSkeleton): The skeleton object. 1158s # */ 1158s # OrgProjectUsefulInterface * 1158s # org_project_useful_interface_skeleton_new (void) 1158s # { 1158s # return ORG_PROJECT_USEFUL_INTERFACE (g_object_new (TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, NULL)); 1158s # } 1158s # Error: 1159s ok 11 __main__.TestCodegen.test_generate_methods_marshaller_single_typed_out_args 1159s # gdbus-codegen: /usr/bin/gdbus-codegen 1159s # tmpdir: /tmp/tmpatbfkbk2 1159s # /tmp/tmpatbfkbk2/tmp0zyjmjnq.xml: 1159s # 1159s # 1159s # 1159s # 1159s # 1159s # 1159s # 1159s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpatbfkbk2/tmp0zyjmjnq.xml', '--output', '-', '--body'] 1159s # Return code: 0 1159s # Output: 1159s # /* 1159s # * This file is generated by gdbus-codegen, do not modify it. 1159s # * 1159s # * The license of this code is the same as for the D-Bus interface description 1159s # * it was derived from. Note that it links to GLib, so must comply with the 1159s # * LGPL linking clauses. 1159s # */ 1159s # 1159s # #ifdef HAVE_CONFIG_H 1159s # # include "config.h" 1159s # #endif 1159s # 1159s # #include 1159s # #ifdef G_OS_UNIX 1159s # # include 1159s # #endif 1159s # 1159s # #ifdef G_ENABLE_DEBUG 1159s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 1159s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 1159s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 1159s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 1159s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 1159s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 1159s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 1159s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 1159s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 1159s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 1159s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 1159s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 1159s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 1159s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 1159s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 1159s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 1159s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 1159s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 1159s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 1159s # #else /* !G_ENABLE_DEBUG */ 1159s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 1159s # * Do not access GValues directly in your code. Instead, use the 1159s # * g_value_get_*() functions 1159s # */ 1159s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 1159s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 1159s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 1159s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 1159s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 1159s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 1159s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 1159s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 1159s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 1159s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 1159s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 1159s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 1159s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 1159s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 1159s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 1159s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 1159s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 1159s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 1159s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 1159s # #endif /* !G_ENABLE_DEBUG */ 1159s # 1159s # typedef struct 1159s # { 1159s # GDBusArgInfo parent_struct; 1159s # gboolean use_gvariant; 1159s # } _ExtendedGDBusArgInfo; 1159s # 1159s # typedef struct 1159s # { 1159s # GDBusMethodInfo parent_struct; 1159s # const gchar *signal_name; 1159s # gboolean pass_fdlist; 1159s # } _ExtendedGDBusMethodInfo; 1159s # 1159s # typedef struct 1159s # { 1159s # GDBusSignalInfo parent_struct; 1159s # const gchar *signal_name; 1159s # } _ExtendedGDBusSignalInfo; 1159s # 1159s # typedef struct 1159s # { 1159s # GDBusPropertyInfo parent_struct; 1159s # const gchar *hyphen_name; 1159s # guint use_gvariant : 1; 1159s # guint emits_changed_signal : 1; 1159s # } _ExtendedGDBusPropertyInfo; 1159s # 1159s # typedef struct 1159s # { 1159s # GDBusInterfaceInfo parent_struct; 1159s # const gchar *hyphen_name; 1159s # } _ExtendedGDBusInterfaceInfo; 1159s # 1159s # typedef struct 1159s # { 1159s # const _ExtendedGDBusPropertyInfo *info; 1159s # guint prop_id; 1159s # GValue orig_value; /* the value before the change */ 1159s # } ChangedProperty; 1159s # 1159s # static void 1159s # _changed_property_free (ChangedProperty *data) 1159s # { 1159s # g_value_unset (&data->orig_value); 1159s # g_free (data); 1159s # } 1159s # 1159s # static gboolean 1159s # _g_strv_equal0 (gchar **a, gchar **b) 1159s # { 1159s # gboolean ret = FALSE; 1159s # guint n; 1159s # if (a == NULL && b == NULL) 1159s # { 1159s # ret = TRUE; 1159s # goto out; 1159s # } 1159s # if (a == NULL || b == NULL) 1159s # goto out; 1159s # if (g_strv_length (a) != g_strv_length (b)) 1159s # goto out; 1159s # for (n = 0; a[n] != NULL; n++) 1159s # if (g_strcmp0 (a[n], b[n]) != 0) 1159s # goto out; 1159s # ret = TRUE; 1159s # out: 1159s # return ret; 1159s # } 1159s # 1159s # static gboolean 1159s # _g_variant_equal0 (GVariant *a, GVariant *b) 1159s # { 1159s # gboolean ret = FALSE; 1159s # if (a == NULL && b == NULL) 1159s # { 1159s # ret = TRUE; 1159s # goto out; 1159s # } 1159s # if (a == NULL || b == NULL) 1159s # goto out; 1159s # ret = g_variant_equal (a, b); 1159s # out: 1159s # return ret; 1159s # } 1159s # 1159s # G_GNUC_UNUSED static gboolean 1159s # _g_value_equal (const GValue *a, const GValue *b) 1159s # { 1159s # gboolean ret = FALSE; 1159s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 1159s # switch (G_VALUE_TYPE (a)) 1159s # { 1159s # case G_TYPE_BOOLEAN: 1159s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 1159s # break; 1159s # case G_TYPE_UCHAR: 1159s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 1159s # break; 1159s # case G_TYPE_INT: 1159s # ret = (g_value_get_int (a) == g_value_get_int (b)); 1159s # break; 1159s # case G_TYPE_UINT: 1159s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 1159s # break; 1159s # case G_TYPE_INT64: 1159s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 1159s # break; 1159s # case G_TYPE_UINT64: 1159s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 1159s # break; 1159s # case G_TYPE_DOUBLE: 1159s # { 1159s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 1159s # gdouble da = g_value_get_double (a); 1159s # gdouble db = g_value_get_double (b); 1159s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 1159s # } 1159s # break; 1159s # case G_TYPE_STRING: 1159s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 1159s # break; 1159s # case G_TYPE_VARIANT: 1159s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 1159s # break; 1159s # default: 1159s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 1159s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 1159s # else 1159s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 1159s # break; 1159s # } 1159s # return ret; 1159s # } 1159s # 1159s # static void 1159s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT ( 1159s # GClosure *closure, 1159s # GValue *return_value, 1159s # unsigned int n_param_values, 1159s # const GValue *param_values, 1159s # void *invocation_hint G_GNUC_UNUSED, 1159s # void *marshal_data) 1159s # { 1159s # typedef gboolean (*_GDbusCodegenMarshalBoolean_ObjectFunc) 1159s # (void *data1, 1159s # GDBusMethodInvocation *arg_method_invocation, 1159s # void *data2); 1159s # _GDbusCodegenMarshalBoolean_ObjectFunc callback; 1159s # GCClosure *cc = (GCClosure*) closure; 1159s # void *data1, *data2; 1159s # gboolean v_return; 1159s # 1159s # g_return_if_fail (return_value != NULL); 1159s # g_return_if_fail (n_param_values == 2); 1159s # 1159s # if (G_CCLOSURE_SWAP_DATA (closure)) 1159s # { 1159s # data1 = closure->data; 1159s # data2 = g_value_peek_pointer (param_values + 0); 1159s # } 1159s # else 1159s # { 1159s # data1 = g_value_peek_pointer (param_values + 0); 1159s # data2 = closure->data; 1159s # } 1159s # 1159s # callback = (_GDbusCodegenMarshalBoolean_ObjectFunc) 1159s # (marshal_data ? marshal_data : cc->callback); 1159s # 1159s # v_return = 1159s # callback (data1, 1159s # g_marshal_value_peek_object (param_values + 1), 1159s # data2); 1159s # 1159s # g_value_set_boolean (return_value, v_return); 1159s # } 1159s # 1159s # /* ------------------------------------------------------------------------ 1159s # * Code for interface org.project.UsefulInterface 1159s # * ------------------------------------------------------------------------ 1159s # */ 1159s # 1159s # /** 1159s # * SECTION:OrgProjectUsefulInterface 1159s # * @title: OrgProjectUsefulInterface 1159s # * @short_description: Generated C code for the org.project.UsefulInterface D-Bus interface 1159s # * 1159s # * This section contains code for working with the org.project.UsefulInterface D-Bus interface in C. 1159s # */ 1159s # 1159s # /* ---- Introspection data for org.project.UsefulInterface ---- */ 1159s # 1159s # static const _ExtendedGDBusArgInfo _org_project_useful_interface_method_info_single_arg_method_b_OUT_ARG_arg_b = 1159s # { 1159s # { 1159s # -1, 1159s # (gchar *) "arg_b", 1159s # (gchar *) "b", 1159s # NULL 1159s # }, 1159s # FALSE 1159s # }; 1159s # 1159s # static const GDBusArgInfo * const _org_project_useful_interface_method_info_single_arg_method_b_OUT_ARG_pointers[] = 1159s # { 1159s # &_org_project_useful_interface_method_info_single_arg_method_b_OUT_ARG_arg_b.parent_struct, 1159s # NULL 1159s # }; 1159s # 1159s # static const _ExtendedGDBusMethodInfo _org_project_useful_interface_method_info_single_arg_method_b = 1159s # { 1159s # { 1159s # -1, 1159s # (gchar *) "SingleArgMethodB", 1159s # NULL, 1159s # (GDBusArgInfo **) &_org_project_useful_interface_method_info_single_arg_method_b_OUT_ARG_pointers, 1159s # NULL 1159s # }, 1159s # "handle-single-arg-method-b", 1159s # FALSE 1159s # }; 1159s # 1159s # static const GDBusMethodInfo * const _org_project_useful_interface_method_info_pointers[] = 1159s # { 1159s # &_org_project_useful_interface_method_info_single_arg_method_b.parent_struct, 1159s # NULL 1159s # }; 1159s # 1159s # static const _ExtendedGDBusInterfaceInfo _org_project_useful_interface_interface_info = 1159s # { 1159s # { 1159s # -1, 1159s # (gchar *) "org.project.UsefulInterface", 1159s # (GDBusMethodInfo **) &_org_project_useful_interface_method_info_pointers, 1159s # NULL, 1159s # NULL, 1159s # NULL 1159s # }, 1159s # "org-project-useful-interface", 1159s # }; 1159s # 1159s # 1159s # /** 1159s # * org_project_useful_interface_interface_info: 1159s # * 1159s # * Gets a machine-readable description of the org.project.UsefulInterface D-Bus interface. 1159s # * 1159s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 1159s # */ 1159s # GDBusInterfaceInfo * 1159s # org_project_useful_interface_interface_info (void) 1159s # { 1159s # return (GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct; 1159s # } 1159s # 1159s # /** 1159s # * org_project_useful_interface_override_properties: 1159s # * @klass: The class structure for a #GObject derived class. 1159s # * @property_id_begin: The property id to assign to the first overridden property. 1159s # * 1159s # * Overrides all #GObject properties in the #OrgProjectUsefulInterface interface for a concrete class. 1159s # * The properties are overridden in the order they are defined. 1159s # * 1159s # * Returns: The last property id. 1159s # */ 1159s # guint 1159s # org_project_useful_interface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 1159s # { 1159s # return property_id_begin - 1; 1159s # } 1159s # 1159s # 1159s # inline static void 1159s # org_project_useful_interface_method_marshal_single_arg_method_b ( 1159s # GClosure *closure, 1159s # GValue *return_value, 1159s # unsigned int n_param_values, 1159s # const GValue *param_values, 1159s # void *invocation_hint, 1159s # void *marshal_data) 1159s # { 1159s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT (closure, 1159s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1159s # } 1159s # 1159s # 1159s # /** 1159s # * OrgProjectUsefulInterface: 1159s # * 1159s # * Abstract interface type for the D-Bus interface org.project.UsefulInterface. 1159s # */ 1159s # 1159s # /** 1159s # * OrgProjectUsefulInterfaceIface: 1159s # * @parent_iface: The parent interface. 1159s # * @handle_single_arg_method_b: Handler for the #OrgProjectUsefulInterface::handle-single-arg-method-b signal. 1159s # * 1159s # * Virtual table for the D-Bus interface org.project.UsefulInterface. 1159s # */ 1159s # 1159s # typedef OrgProjectUsefulInterfaceIface OrgProjectUsefulInterfaceInterface; 1159s # G_DEFINE_INTERFACE (OrgProjectUsefulInterface, org_project_useful_interface, G_TYPE_OBJECT) 1159s # 1159s # static void 1159s # org_project_useful_interface_default_init (OrgProjectUsefulInterfaceIface *iface) 1159s # { 1159s # /* GObject signals for incoming D-Bus method calls: */ 1159s # /** 1159s # * OrgProjectUsefulInterface::handle-single-arg-method-b: 1159s # * @object: A #OrgProjectUsefulInterface. 1159s # * @invocation: A #GDBusMethodInvocation. 1159s # * 1159s # * Signal emitted when a remote caller is invoking the SingleArgMethodB() D-Bus method. 1159s # * 1159s # * 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. 1159s # * 1159s # * 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. 1159s # */ 1159s # g_signal_new ("handle-single-arg-method-b", 1159s # G_TYPE_FROM_INTERFACE (iface), 1159s # G_SIGNAL_RUN_LAST, 1159s # G_STRUCT_OFFSET (OrgProjectUsefulInterfaceIface, handle_single_arg_method_b), 1159s # g_signal_accumulator_true_handled, 1159s # NULL, 1159s # org_project_useful_interface_method_marshal_single_arg_method_b, 1159s # G_TYPE_BOOLEAN, 1159s # 1, 1159s # G_TYPE_DBUS_METHOD_INVOCATION); 1159s # 1159s # } 1159s # 1159s # /** 1159s # * org_project_useful_interface_call_single_arg_method_b: 1159s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1159s # * @cancellable: (nullable): A #GCancellable or %NULL. 1159s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL. 1159s # * @user_data: User data to pass to @callback. 1159s # * 1159s # * Asynchronously invokes the SingleArgMethodB() D-Bus method on @proxy. 1159s # * 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()). 1159s # * You can then call org_project_useful_interface_call_single_arg_method_b_finish() to get the result of the operation. 1159s # * 1159s # * See org_project_useful_interface_call_single_arg_method_b_sync() for the synchronous, blocking version of this method. 1159s # */ 1159s # void 1159s # org_project_useful_interface_call_single_arg_method_b ( 1159s # OrgProjectUsefulInterface *proxy, 1159s # GCancellable *cancellable, 1159s # GAsyncReadyCallback callback, 1159s # gpointer user_data) 1159s # { 1159s # g_dbus_proxy_call (G_DBUS_PROXY (proxy), 1159s # "SingleArgMethodB", 1159s # g_variant_new ("()"), 1159s # G_DBUS_CALL_FLAGS_NONE, 1159s # -1, 1159s # cancellable, 1159s # callback, 1159s # user_data); 1159s # } 1159s # 1159s # /** 1159s # * org_project_useful_interface_call_single_arg_method_b_finish: 1159s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1159s # * @out_arg_b: (out) (optional): Return location for return parameter or %NULL to ignore. 1159s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_call_single_arg_method_b(). 1159s # * @error: Return location for error or %NULL. 1159s # * 1159s # * Finishes an operation started with org_project_useful_interface_call_single_arg_method_b(). 1159s # * 1159s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1159s # */ 1159s # gboolean 1159s # org_project_useful_interface_call_single_arg_method_b_finish ( 1159s # OrgProjectUsefulInterface *proxy, 1159s # gboolean *out_arg_b, 1159s # GAsyncResult *res, 1159s # GError **error) 1159s # { 1159s # GVariant *_ret; 1159s # _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error); 1159s # if (_ret == NULL) 1159s # goto _out; 1159s # g_variant_get (_ret, 1159s # "(b)", 1159s # out_arg_b); 1159s # g_variant_unref (_ret); 1159s # _out: 1159s # return _ret != NULL; 1159s # } 1159s # 1159s # /** 1159s # * org_project_useful_interface_call_single_arg_method_b_sync: 1159s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1159s # * @out_arg_b: (out) (optional): Return location for return parameter or %NULL to ignore. 1159s # * @cancellable: (nullable): A #GCancellable or %NULL. 1159s # * @error: Return location for error or %NULL. 1159s # * 1159s # * Synchronously invokes the SingleArgMethodB() D-Bus method on @proxy. The calling thread is blocked until a reply is received. 1159s # * 1159s # * See org_project_useful_interface_call_single_arg_method_b() for the asynchronous version of this method. 1159s # * 1159s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1159s # */ 1159s # gboolean 1159s # org_project_useful_interface_call_single_arg_method_b_sync ( 1159s # OrgProjectUsefulInterface *proxy, 1159s # gboolean *out_arg_b, 1159s # GCancellable *cancellable, 1159s # GError **error) 1159s # { 1159s # GVariant *_ret; 1159s # _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy), 1159s # "SingleArgMethodB", 1159s # g_variant_new ("()"), 1159s # G_DBUS_CALL_FLAGS_NONE, 1159s # -1, 1159s # cancellable, 1159s # error); 1159s # if (_ret == NULL) 1159s # goto _out; 1159s # g_variant_get (_ret, 1159s # "(b)", 1159s # out_arg_b); 1159s # g_variant_unref (_ret); 1159s # _out: 1159s # return _ret != NULL; 1159s # } 1159s # 1159s # /** 1159s # * org_project_useful_interface_complete_single_arg_method_b: 1159s # * @object: A #OrgProjectUsefulInterface. 1159s # * @invocation: (transfer full): A #GDBusMethodInvocation. 1159s # * @arg_b: Parameter to return. 1159s # * 1159s # * 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. 1159s # * 1159s # * This method will free @invocation, you cannot use it afterwards. 1159s # */ 1159s # void 1159s # org_project_useful_interface_complete_single_arg_method_b ( 1159s # OrgProjectUsefulInterface *object G_GNUC_UNUSED, 1159s # GDBusMethodInvocation *invocation, 1159s # gboolean arg_b) 1159s # { 1159s # g_dbus_method_invocation_return_value (invocation, 1159s # g_variant_new ("(b)", 1159s # arg_b)); 1159s # } 1159s # 1159s # /* ------------------------------------------------------------------------ */ 1159s # 1159s # /** 1159s # * OrgProjectUsefulInterfaceProxy: 1159s # * 1159s # * The #OrgProjectUsefulInterfaceProxy structure contains only private data and should only be accessed using the provided API. 1159s # */ 1159s # 1159s # /** 1159s # * OrgProjectUsefulInterfaceProxyClass: 1159s # * @parent_class: The parent class. 1159s # * 1159s # * Class structure for #OrgProjectUsefulInterfaceProxy. 1159s # */ 1159s # 1159s # struct _OrgProjectUsefulInterfaceProxyPrivate 1159s # { 1159s # GData *qdata; 1159s # }; 1159s # 1159s # static void org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface); 1159s # 1159s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1159s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 1159s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceProxy) 1159s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 1159s # 1159s # #else 1159s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 1159s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 1159s # 1159s # #endif 1159s # static void 1159s # org_project_useful_interface_proxy_finalize (GObject *object) 1159s # { 1159s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (object); 1159s # g_datalist_clear (&proxy->priv->qdata); 1159s # G_OBJECT_CLASS (org_project_useful_interface_proxy_parent_class)->finalize (object); 1159s # } 1159s # 1159s # static void 1159s # org_project_useful_interface_proxy_get_property (GObject *object G_GNUC_UNUSED, 1159s # guint prop_id G_GNUC_UNUSED, 1159s # GValue *value G_GNUC_UNUSED, 1159s # GParamSpec *pspec G_GNUC_UNUSED) 1159s # { 1159s # } 1159s # 1159s # static void 1159s # org_project_useful_interface_proxy_set_property (GObject *object G_GNUC_UNUSED, 1159s # guint prop_id G_GNUC_UNUSED, 1159s # const GValue *value G_GNUC_UNUSED, 1159s # GParamSpec *pspec G_GNUC_UNUSED) 1159s # { 1159s # } 1159s # 1159s # static void 1159s # org_project_useful_interface_proxy_g_signal (GDBusProxy *proxy, 1159s # const gchar *sender_name G_GNUC_UNUSED, 1159s # const gchar *signal_name, 1159s # GVariant *parameters) 1159s # { 1159s # _ExtendedGDBusSignalInfo *info; 1159s # GVariantIter iter; 1159s # GVariant *child; 1159s # GValue *paramv; 1159s # gsize num_params; 1159s # gsize n; 1159s # guint signal_id; 1159s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, signal_name); 1159s # if (info == NULL) 1159s # return; 1159s # num_params = g_variant_n_children (parameters); 1159s # paramv = g_new0 (GValue, num_params + 1); 1159s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1159s # g_value_set_object (¶mv[0], proxy); 1159s # g_variant_iter_init (&iter, parameters); 1159s # n = 1; 1159s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1159s # { 1159s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 1159s # if (arg_info->use_gvariant) 1159s # { 1159s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1159s # g_value_set_variant (¶mv[n], child); 1159s # n++; 1159s # } 1159s # else 1159s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1159s # g_variant_unref (child); 1159s # } 1159s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1159s # g_signal_emitv (paramv, signal_id, 0, NULL); 1159s # for (n = 0; n < num_params + 1; n++) 1159s # g_value_unset (¶mv[n]); 1159s # g_free (paramv); 1159s # } 1159s # 1159s # static void 1159s # org_project_useful_interface_proxy_g_properties_changed (GDBusProxy *_proxy, 1159s # GVariant *changed_properties, 1159s # const gchar *const *invalidated_properties) 1159s # { 1159s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (_proxy); 1159s # guint n; 1159s # const gchar *key; 1159s # GVariantIter *iter; 1159s # _ExtendedGDBusPropertyInfo *info; 1159s # g_variant_get (changed_properties, "a{sv}", &iter); 1159s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 1159s # { 1159s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, key); 1159s # g_datalist_remove_data (&proxy->priv->qdata, key); 1159s # if (info != NULL) 1159s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1159s # } 1159s # g_variant_iter_free (iter); 1159s # for (n = 0; invalidated_properties[n] != NULL; n++) 1159s # { 1159s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, invalidated_properties[n]); 1159s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 1159s # if (info != NULL) 1159s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1159s # } 1159s # } 1159s # 1159s # static void 1159s # org_project_useful_interface_proxy_init (OrgProjectUsefulInterfaceProxy *proxy) 1159s # { 1159s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1159s # proxy->priv = org_project_useful_interface_proxy_get_instance_private (proxy); 1159s # #else 1159s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY, OrgProjectUsefulInterfaceProxyPrivate); 1159s # #endif 1159s # 1159s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_useful_interface_interface_info ()); 1159s # } 1159s # 1159s # static void 1159s # org_project_useful_interface_proxy_class_init (OrgProjectUsefulInterfaceProxyClass *klass) 1159s # { 1159s # GObjectClass *gobject_class; 1159s # GDBusProxyClass *proxy_class; 1159s # 1159s # gobject_class = G_OBJECT_CLASS (klass); 1159s # gobject_class->finalize = org_project_useful_interface_proxy_finalize; 1159s # gobject_class->get_property = org_project_useful_interface_proxy_get_property; 1159s # gobject_class->set_property = org_project_useful_interface_proxy_set_property; 1159s # 1159s # proxy_class = G_DBUS_PROXY_CLASS (klass); 1159s # proxy_class->g_signal = org_project_useful_interface_proxy_g_signal; 1159s # proxy_class->g_properties_changed = org_project_useful_interface_proxy_g_properties_changed; 1159s # 1159s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1159s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceProxyPrivate)); 1159s # #endif 1159s # } 1159s # 1159s # static void 1159s # org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 1159s # { 1159s # } 1159s # 1159s # /** 1159s # * org_project_useful_interface_proxy_new: 1159s # * @connection: A #GDBusConnection. 1159s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1159s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1159s # * @object_path: An object path. 1159s # * @cancellable: (nullable): A #GCancellable or %NULL. 1159s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1159s # * @user_data: User data to pass to @callback. 1159s # * 1159s # * Asynchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new() for more details. 1159s # * 1159s # * 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()). 1159s # * You can then call org_project_useful_interface_proxy_new_finish() to get the result of the operation. 1159s # * 1159s # * See org_project_useful_interface_proxy_new_sync() for the synchronous, blocking version of this constructor. 1159s # */ 1159s # void 1159s # org_project_useful_interface_proxy_new ( 1159s # GDBusConnection *connection, 1159s # GDBusProxyFlags flags, 1159s # const gchar *name, 1159s # const gchar *object_path, 1159s # GCancellable *cancellable, 1159s # GAsyncReadyCallback callback, 1159s # gpointer user_data) 1159s # { 1159s # 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); 1159s # } 1159s # 1159s # /** 1159s # * org_project_useful_interface_proxy_new_finish: 1159s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new(). 1159s # * @error: Return location for error or %NULL 1159s # * 1159s # * Finishes an operation started with org_project_useful_interface_proxy_new(). 1159s # * 1159s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1159s # */ 1159s # OrgProjectUsefulInterface * 1159s # org_project_useful_interface_proxy_new_finish ( 1159s # GAsyncResult *res, 1159s # GError **error) 1159s # { 1159s # GObject *ret; 1159s # GObject *source_object; 1159s # source_object = g_async_result_get_source_object (res); 1159s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1159s # g_object_unref (source_object); 1159s # if (ret != NULL) 1159s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1159s # else 1159s # return NULL; 1159s # } 1159s # 1159s # /** 1159s # * org_project_useful_interface_proxy_new_sync: 1159s # * @connection: A #GDBusConnection. 1159s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1159s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1159s # * @object_path: An object path. 1159s # * @cancellable: (nullable): A #GCancellable or %NULL. 1159s # * @error: Return location for error or %NULL 1159s # * 1159s # * Synchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new_sync() for more details. 1159s # * 1159s # * The calling thread is blocked until a reply is received. 1159s # * 1159s # * See org_project_useful_interface_proxy_new() for the asynchronous version of this constructor. 1159s # * 1159s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1159s # */ 1159s # OrgProjectUsefulInterface * 1159s # org_project_useful_interface_proxy_new_sync ( 1159s # GDBusConnection *connection, 1159s # GDBusProxyFlags flags, 1159s # const gchar *name, 1159s # const gchar *object_path, 1159s # GCancellable *cancellable, 1159s # GError **error) 1159s # { 1159s # GInitable *ret; 1159s # 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); 1159s # if (ret != NULL) 1159s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1159s # else 1159s # return NULL; 1159s # } 1159s # 1159s # 1159s # /** 1159s # * org_project_useful_interface_proxy_new_for_bus: 1159s # * @bus_type: A #GBusType. 1159s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1159s # * @name: A bus name (well-known or unique). 1159s # * @object_path: An object path. 1159s # * @cancellable: (nullable): A #GCancellable or %NULL. 1159s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1159s # * @user_data: User data to pass to @callback. 1159s # * 1159s # * Like org_project_useful_interface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 1159s # * 1159s # * 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()). 1159s # * You can then call org_project_useful_interface_proxy_new_for_bus_finish() to get the result of the operation. 1159s # * 1159s # * See org_project_useful_interface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 1159s # */ 1159s # void 1159s # org_project_useful_interface_proxy_new_for_bus ( 1159s # GBusType bus_type, 1159s # GDBusProxyFlags flags, 1159s # const gchar *name, 1159s # const gchar *object_path, 1159s # GCancellable *cancellable, 1159s # GAsyncReadyCallback callback, 1159s # gpointer user_data) 1159s # { 1159s # 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); 1159s # } 1159s # 1159s # /** 1159s # * org_project_useful_interface_proxy_new_for_bus_finish: 1159s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new_for_bus(). 1159s # * @error: Return location for error or %NULL 1159s # * 1159s # * Finishes an operation started with org_project_useful_interface_proxy_new_for_bus(). 1159s # * 1159s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1159s # */ 1159s # OrgProjectUsefulInterface * 1159s # org_project_useful_interface_proxy_new_for_bus_finish ( 1159s # GAsyncResult *res, 1159s # GError **error) 1159s # { 1159s # GObject *ret; 1159s # GObject *source_object; 1159s # source_object = g_async_result_get_source_object (res); 1159s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1159s # g_object_unref (source_object); 1159s # if (ret != NULL) 1159s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1159s # else 1159s # return NULL; 1159s # } 1159s # 1159s # /** 1159s # * org_project_useful_interface_proxy_new_for_bus_sync: 1159s # * @bus_type: A #GBusType. 1159s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1159s # * @name: A bus name (well-known or unique). 1159s # * @object_path: An object path. 1159s # * @cancellable: (nullable): A #GCancellable or %NULL. 1159s # * @error: Return location for error or %NULL 1159s # * 1159s # * Like org_project_useful_interface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 1159s # * 1159s # * The calling thread is blocked until a reply is received. 1159s # * 1159s # * See org_project_useful_interface_proxy_new_for_bus() for the asynchronous version of this constructor. 1159s # * 1159s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1159s # */ 1159s # OrgProjectUsefulInterface * 1159s # org_project_useful_interface_proxy_new_for_bus_sync ( 1159s # GBusType bus_type, 1159s # GDBusProxyFlags flags, 1159s # const gchar *name, 1159s # const gchar *object_path, 1159s # GCancellable *cancellable, 1159s # GError **error) 1159s # { 1159s # GInitable *ret; 1159s # 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); 1159s # if (ret != NULL) 1159s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1159s # else 1159s # return NULL; 1159s # } 1159s # 1159s # 1159s # /* ------------------------------------------------------------------------ */ 1159s # 1159s # /** 1159s # * OrgProjectUsefulInterfaceSkeleton: 1159s # * 1159s # * The #OrgProjectUsefulInterfaceSkeleton structure contains only private data and should only be accessed using the provided API. 1159s # */ 1159s # 1159s # /** 1159s # * OrgProjectUsefulInterfaceSkeletonClass: 1159s # * @parent_class: The parent class. 1159s # * 1159s # * Class structure for #OrgProjectUsefulInterfaceSkeleton. 1159s # */ 1159s # 1159s # struct _OrgProjectUsefulInterfaceSkeletonPrivate 1159s # { 1159s # GValue *properties; 1159s # GList *changed_properties; 1159s # GSource *changed_properties_idle_source; 1159s # GMainContext *context; 1159s # GMutex lock; 1159s # }; 1159s # 1159s # static void 1159s # _org_project_useful_interface_skeleton_handle_method_call ( 1159s # GDBusConnection *connection G_GNUC_UNUSED, 1159s # const gchar *sender G_GNUC_UNUSED, 1159s # const gchar *object_path G_GNUC_UNUSED, 1159s # const gchar *interface_name, 1159s # const gchar *method_name, 1159s # GVariant *parameters, 1159s # GDBusMethodInvocation *invocation, 1159s # gpointer user_data) 1159s # { 1159s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1159s # _ExtendedGDBusMethodInfo *info; 1159s # GVariantIter iter; 1159s # GVariant *child; 1159s # GValue *paramv; 1159s # gsize num_params; 1159s # guint num_extra; 1159s # gsize n; 1159s # guint signal_id; 1159s # GValue return_value = G_VALUE_INIT; 1159s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 1159s # g_assert (info != NULL); 1159s # num_params = g_variant_n_children (parameters); 1159s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 1159s # n = 0; 1159s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1159s # g_value_set_object (¶mv[n++], skeleton); 1159s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 1159s # g_value_set_object (¶mv[n++], invocation); 1159s # if (info->pass_fdlist) 1159s # { 1159s # #ifdef G_OS_UNIX 1159s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 1159s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 1159s # #else 1159s # g_assert_not_reached (); 1159s # #endif 1159s # } 1159s # g_variant_iter_init (&iter, parameters); 1159s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1159s # { 1159s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 1159s # if (arg_info->use_gvariant) 1159s # { 1159s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1159s # g_value_set_variant (¶mv[n], child); 1159s # n++; 1159s # } 1159s # else 1159s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1159s # g_variant_unref (child); 1159s # } 1159s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1159s # g_value_init (&return_value, G_TYPE_BOOLEAN); 1159s # g_signal_emitv (paramv, signal_id, 0, &return_value); 1159s # if (!g_value_get_boolean (&return_value)) 1159s # 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); 1159s # g_value_unset (&return_value); 1159s # for (n = 0; n < num_params + num_extra; n++) 1159s # g_value_unset (¶mv[n]); 1159s # g_free (paramv); 1159s # } 1159s # 1159s # static GVariant * 1159s # _org_project_useful_interface_skeleton_handle_get_property ( 1159s # GDBusConnection *connection G_GNUC_UNUSED, 1159s # const gchar *sender G_GNUC_UNUSED, 1159s # const gchar *object_path G_GNUC_UNUSED, 1159s # const gchar *interface_name G_GNUC_UNUSED, 1159s # const gchar *property_name, 1159s # GError **error, 1159s # gpointer user_data) 1159s # { 1159s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1159s # GValue value = G_VALUE_INIT; 1159s # GParamSpec *pspec; 1159s # _ExtendedGDBusPropertyInfo *info; 1159s # GVariant *ret; 1159s # ret = NULL; 1159s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 1159s # g_assert (info != NULL); 1159s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1159s # if (pspec == NULL) 1159s # { 1159s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1159s # } 1159s # else 1159s # { 1159s # g_value_init (&value, pspec->value_type); 1159s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1159s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 1159s # g_value_unset (&value); 1159s # } 1159s # return ret; 1159s # } 1159s # 1159s # static gboolean 1159s # _org_project_useful_interface_skeleton_handle_set_property ( 1159s # GDBusConnection *connection G_GNUC_UNUSED, 1159s # const gchar *sender G_GNUC_UNUSED, 1159s # const gchar *object_path G_GNUC_UNUSED, 1159s # const gchar *interface_name G_GNUC_UNUSED, 1159s # const gchar *property_name, 1159s # GVariant *variant, 1159s # GError **error, 1159s # gpointer user_data) 1159s # { 1159s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1159s # GValue value = G_VALUE_INIT; 1159s # GParamSpec *pspec; 1159s # _ExtendedGDBusPropertyInfo *info; 1159s # gboolean ret; 1159s # ret = FALSE; 1159s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 1159s # g_assert (info != NULL); 1159s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1159s # if (pspec == NULL) 1159s # { 1159s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1159s # } 1159s # else 1159s # { 1159s # if (info->use_gvariant) 1159s # g_value_set_variant (&value, variant); 1159s # else 1159s # g_dbus_gvariant_to_gvalue (variant, &value); 1159s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1159s # g_value_unset (&value); 1159s # ret = TRUE; 1159s # } 1159s # return ret; 1159s # } 1159s # 1159s # static const GDBusInterfaceVTable _org_project_useful_interface_skeleton_vtable = 1159s # { 1159s # _org_project_useful_interface_skeleton_handle_method_call, 1159s # _org_project_useful_interface_skeleton_handle_get_property, 1159s # _org_project_useful_interface_skeleton_handle_set_property, 1159s # {NULL} 1159s # }; 1159s # 1159s # static GDBusInterfaceInfo * 1159s # org_project_useful_interface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1159s # { 1159s # return org_project_useful_interface_interface_info (); 1159s # } 1159s # 1159s # static GDBusInterfaceVTable * 1159s # org_project_useful_interface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1159s # { 1159s # return (GDBusInterfaceVTable *) &_org_project_useful_interface_skeleton_vtable; 1159s # } 1159s # 1159s # static GVariant * 1159s # org_project_useful_interface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 1159s # { 1159s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (_skeleton); 1159s # 1159s # GVariantBuilder builder; 1159s # guint n; 1159s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 1159s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 1159s # #else 1159s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 1159s # #endif 1159s # if (_org_project_useful_interface_interface_info.parent_struct.properties == NULL) 1159s # goto out; 1159s # for (n = 0; _org_project_useful_interface_interface_info.parent_struct.properties[n] != NULL; n++) 1159s # { 1159s # GDBusPropertyInfo *info = _org_project_useful_interface_interface_info.parent_struct.properties[n]; 1159s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 1159s # { 1159s # GVariant *value; 1159s # 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); 1159s # if (value != NULL) 1159s # { 1159s # g_variant_take_ref (value); 1159s # g_variant_builder_add (&builder, "{sv}", info->name, value); 1159s # g_variant_unref (value); 1159s # } 1159s # } 1159s # } 1159s # out: 1159s # return g_variant_builder_end (&builder); 1159s # } 1159s # 1159s # static void 1159s # org_project_useful_interface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 1159s # { 1159s # } 1159s # 1159s # static void org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface); 1159s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1159s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1159s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceSkeleton) 1159s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 1159s # 1159s # #else 1159s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1159s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 1159s # 1159s # #endif 1159s # static void 1159s # org_project_useful_interface_skeleton_finalize (GObject *object) 1159s # { 1159s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (object); 1159s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 1159s # if (skeleton->priv->changed_properties_idle_source != NULL) 1159s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 1159s # g_main_context_unref (skeleton->priv->context); 1159s # g_mutex_clear (&skeleton->priv->lock); 1159s # G_OBJECT_CLASS (org_project_useful_interface_skeleton_parent_class)->finalize (object); 1159s # } 1159s # 1159s # static void 1159s # org_project_useful_interface_skeleton_init (OrgProjectUsefulInterfaceSkeleton *skeleton) 1159s # { 1159s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1159s # skeleton->priv = org_project_useful_interface_skeleton_get_instance_private (skeleton); 1159s # #else 1159s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, OrgProjectUsefulInterfaceSkeletonPrivate); 1159s # #endif 1159s # 1159s # g_mutex_init (&skeleton->priv->lock); 1159s # skeleton->priv->context = g_main_context_ref_thread_default (); 1159s # } 1159s # 1159s # static void 1159s # org_project_useful_interface_skeleton_class_init (OrgProjectUsefulInterfaceSkeletonClass *klass) 1159s # { 1159s # GObjectClass *gobject_class; 1159s # GDBusInterfaceSkeletonClass *skeleton_class; 1159s # 1159s # gobject_class = G_OBJECT_CLASS (klass); 1159s # gobject_class->finalize = org_project_useful_interface_skeleton_finalize; 1159s # 1159s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 1159s # skeleton_class->get_info = org_project_useful_interface_skeleton_dbus_interface_get_info; 1159s # skeleton_class->get_properties = org_project_useful_interface_skeleton_dbus_interface_get_properties; 1159s # skeleton_class->flush = org_project_useful_interface_skeleton_dbus_interface_flush; 1159s # skeleton_class->get_vtable = org_project_useful_interface_skeleton_dbus_interface_get_vtable; 1159s # 1159s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1159s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceSkeletonPrivate)); 1159s # #endif 1159s # } 1159s # 1159s # static void 1159s # org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 1159s # { 1159s # } 1159s # 1159s # /** 1159s # * org_project_useful_interface_skeleton_new: 1159s # * 1159s # * Creates a skeleton object for the D-Bus interface org.project.UsefulInterface. 1159s # * 1159s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceSkeleton): The skeleton object. 1159s # */ 1159s # OrgProjectUsefulInterface * 1159s # org_project_useful_interface_skeleton_new (void) 1159s # { 1159s # return ORG_PROJECT_USEFUL_INTERFACE (g_object_new (TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, NULL)); 1159s # } 1159s # Error: 1159s # 1159s # /tmp/tmpatbfkbk2/tmpx6hsy613.xml: 1159s # 1159s # 1159s # 1159s # 1159s # 1159s # 1159s # 1159s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpatbfkbk2/tmpx6hsy613.xml', '--output', '-', '--body'] 1159s # Return code: 0 1159s # Output: 1159s # /* 1159s # * This file is generated by gdbus-codegen, do not modify it. 1159s # * 1159s # * The license of this code is the same as for the D-Bus interface description 1159s # * it was derived from. Note that it links to GLib, so must comply with the 1159s # * LGPL linking clauses. 1159s # */ 1159s # 1159s # #ifdef HAVE_CONFIG_H 1159s # # include "config.h" 1159s # #endif 1159s # 1159s # #include 1159s # #ifdef G_OS_UNIX 1159s # # include 1159s # #endif 1159s # 1159s # #ifdef G_ENABLE_DEBUG 1159s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 1159s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 1159s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 1159s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 1159s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 1159s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 1159s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 1159s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 1159s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 1159s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 1159s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 1159s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 1159s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 1159s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 1159s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 1159s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 1159s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 1159s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 1159s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 1159s # #else /* !G_ENABLE_DEBUG */ 1159s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 1159s # * Do not access GValues directly in your code. Instead, use the 1159s # * g_value_get_*() functions 1159s # */ 1159s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 1159s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 1159s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 1159s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 1159s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 1159s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 1159s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 1159s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 1159s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 1159s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 1159s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 1159s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 1159s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 1159s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 1159s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 1159s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 1159s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 1159s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 1159s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 1159s # #endif /* !G_ENABLE_DEBUG */ 1159s # 1159s # typedef struct 1159s # { 1159s # GDBusArgInfo parent_struct; 1159s # gboolean use_gvariant; 1159s # } _ExtendedGDBusArgInfo; 1159s # 1159s # typedef struct 1159s # { 1159s # GDBusMethodInfo parent_struct; 1159s # const gchar *signal_name; 1159s # gboolean pass_fdlist; 1159s # } _ExtendedGDBusMethodInfo; 1159s # 1159s # typedef struct 1159s # { 1159s # GDBusSignalInfo parent_struct; 1159s # const gchar *signal_name; 1159s # } _ExtendedGDBusSignalInfo; 1159s # 1159s # typedef struct 1159s # { 1159s # GDBusPropertyInfo parent_struct; 1159s # const gchar *hyphen_name; 1159s # guint use_gvariant : 1; 1159s # guint emits_changed_signal : 1; 1159s # } _ExtendedGDBusPropertyInfo; 1159s # 1159s # typedef struct 1159s # { 1159s # GDBusInterfaceInfo parent_struct; 1159s # const gchar *hyphen_name; 1159s # } _ExtendedGDBusInterfaceInfo; 1159s # 1159s # typedef struct 1159s # { 1159s # const _ExtendedGDBusPropertyInfo *info; 1159s # guint prop_id; 1159s # GValue orig_value; /* the value before the change */ 1159s # } ChangedProperty; 1159s # 1159s # static void 1159s # _changed_property_free (ChangedProperty *data) 1159s # { 1159s # g_value_unset (&data->orig_value); 1159s # g_free (data); 1159s # } 1159s # 1159s # static gboolean 1159s # _g_strv_equal0 (gchar **a, gchar **b) 1159s # { 1159s # gboolean ret = FALSE; 1159s # guint n; 1159s # if (a == NULL && b == NULL) 1159s # { 1159s # ret = TRUE; 1159s # goto out; 1159s # } 1159s # if (a == NULL || b == NULL) 1159s # goto out; 1159s # if (g_strv_length (a) != g_strv_length (b)) 1159s # goto out; 1159s # for (n = 0; a[n] != NULL; n++) 1159s # if (g_strcmp0 (a[n], b[n]) != 0) 1159s # goto out; 1159s # ret = TRUE; 1159s # out: 1159s # return ret; 1159s # } 1159s # 1159s # static gboolean 1159s # _g_variant_equal0 (GVariant *a, GVariant *b) 1159s # { 1159s # gboolean ret = FALSE; 1159s # if (a == NULL && b == NULL) 1159s # { 1159s # ret = TRUE; 1159s # goto out; 1159s # } 1159s # if (a == NULL || b == NULL) 1159s # goto out; 1159s # ret = g_variant_equal (a, b); 1159s # out: 1159s # return ret; 1159s # } 1159s # 1159s # G_GNUC_UNUSED static gboolean 1159s # _g_value_equal (const GValue *a, const GValue *b) 1159s # { 1159s # gboolean ret = FALSE; 1159s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 1159s # switch (G_VALUE_TYPE (a)) 1159s # { 1159s # case G_TYPE_BOOLEAN: 1159s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 1159s # break; 1159s # case G_TYPE_UCHAR: 1159s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 1159s # break; 1159s # case G_TYPE_INT: 1159s # ret = (g_value_get_int (a) == g_value_get_int (b)); 1159s # break; 1159s # case G_TYPE_UINT: 1159s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 1159s # break; 1159s # case G_TYPE_INT64: 1159s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 1159s # break; 1159s # case G_TYPE_UINT64: 1159s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 1159s # break; 1159s # case G_TYPE_DOUBLE: 1159s # { 1159s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 1159s # gdouble da = g_value_get_double (a); 1159s # gdouble db = g_value_get_double (b); 1159s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 1159s # } 1159s # break; 1159s # case G_TYPE_STRING: 1159s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 1159s # break; 1159s # case G_TYPE_VARIANT: 1159s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 1159s # break; 1159s # default: 1159s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 1159s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 1159s # else 1159s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 1159s # break; 1159s # } 1159s # return ret; 1159s # } 1159s # 1159s # static void 1159s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT ( 1159s # GClosure *closure, 1159s # GValue *return_value, 1159s # unsigned int n_param_values, 1159s # const GValue *param_values, 1159s # void *invocation_hint G_GNUC_UNUSED, 1159s # void *marshal_data) 1159s # { 1159s # typedef gboolean (*_GDbusCodegenMarshalBoolean_ObjectFunc) 1159s # (void *data1, 1159s # GDBusMethodInvocation *arg_method_invocation, 1159s # void *data2); 1159s # _GDbusCodegenMarshalBoolean_ObjectFunc callback; 1159s # GCClosure *cc = (GCClosure*) closure; 1159s # void *data1, *data2; 1159s # gboolean v_return; 1159s # 1159s # g_return_if_fail (return_value != NULL); 1159s # g_return_if_fail (n_param_values == 2); 1159s # 1159s # if (G_CCLOSURE_SWAP_DATA (closure)) 1159s # { 1159s # data1 = closure->data; 1159s # data2 = g_value_peek_pointer (param_values + 0); 1159s # } 1159s # else 1159s # { 1159s # data1 = g_value_peek_pointer (param_values + 0); 1159s # data2 = closure->data; 1159s # } 1159s # 1159s # callback = (_GDbusCodegenMarshalBoolean_ObjectFunc) 1159s # (marshal_data ? marshal_data : cc->callback); 1159s # 1159s # v_return = 1159s # callback (data1, 1159s # g_marshal_value_peek_object (param_values + 1), 1159s # data2); 1159s # 1159s # g_value_set_boolean (return_value, v_return); 1159s # } 1159s # 1159s # /* ------------------------------------------------------------------------ 1159s # * Code for interface org.project.UsefulInterface 1159s # * ------------------------------------------------------------------------ 1159s # */ 1159s # 1159s # /** 1159s # * SECTION:OrgProjectUsefulInterface 1159s # * @title: OrgProjectUsefulInterface 1159s # * @short_description: Generated C code for the org.project.UsefulInterface D-Bus interface 1159s # * 1159s # * This section contains code for working with the org.project.UsefulInterface D-Bus interface in C. 1159s # */ 1159s # 1159s # /* ---- Introspection data for org.project.UsefulInterface ---- */ 1159s # 1159s # static const _ExtendedGDBusArgInfo _org_project_useful_interface_method_info_single_arg_method_y_OUT_ARG_arg_y = 1159s # { 1159s # { 1159s # -1, 1159s # (gchar *) "arg_y", 1159s # (gchar *) "y", 1159s # NULL 1159s # }, 1159s # FALSE 1159s # }; 1159s # 1159s # static const GDBusArgInfo * const _org_project_useful_interface_method_info_single_arg_method_y_OUT_ARG_pointers[] = 1159s # { 1159s # &_org_project_useful_interface_method_info_single_arg_method_y_OUT_ARG_arg_y.parent_struct, 1159s # NULL 1159s # }; 1159s # 1159s # static const _ExtendedGDBusMethodInfo _org_project_useful_interface_method_info_single_arg_method_y = 1159s # { 1159s # { 1159s # -1, 1159s # (gchar *) "SingleArgMethodY", 1159s # NULL, 1159s # (GDBusArgInfo **) &_org_project_useful_interface_method_info_single_arg_method_y_OUT_ARG_pointers, 1159s # NULL 1159s # }, 1159s # "handle-single-arg-method-y", 1159s # FALSE 1159s # }; 1159s # 1159s # static const GDBusMethodInfo * const _org_project_useful_interface_method_info_pointers[] = 1159s # { 1159s # &_org_project_useful_interface_method_info_single_arg_method_y.parent_struct, 1159s # NULL 1159s # }; 1159s # 1159s # static const _ExtendedGDBusInterfaceInfo _org_project_useful_interface_interface_info = 1159s # { 1159s # { 1159s # -1, 1159s # (gchar *) "org.project.UsefulInterface", 1159s # (GDBusMethodInfo **) &_org_project_useful_interface_method_info_pointers, 1159s # NULL, 1159s # NULL, 1159s # NULL 1159s # }, 1159s # "org-project-useful-interface", 1159s # }; 1159s # 1159s # 1159s # /** 1159s # * org_project_useful_interface_interface_info: 1159s # * 1159s # * Gets a machine-readable description of the org.project.UsefulInterface D-Bus interface. 1159s # * 1159s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 1159s # */ 1159s # GDBusInterfaceInfo * 1159s # org_project_useful_interface_interface_info (void) 1159s # { 1159s # return (GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct; 1159s # } 1159s # 1159s # /** 1159s # * org_project_useful_interface_override_properties: 1159s # * @klass: The class structure for a #GObject derived class. 1159s # * @property_id_begin: The property id to assign to the first overridden property. 1159s # * 1159s # * Overrides all #GObject properties in the #OrgProjectUsefulInterface interface for a concrete class. 1159s # * The properties are overridden in the order they are defined. 1159s # * 1159s # * Returns: The last property id. 1159s # */ 1159s # guint 1159s # org_project_useful_interface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 1159s # { 1159s # return property_id_begin - 1; 1159s # } 1159s # 1159s # 1159s # inline static void 1159s # org_project_useful_interface_method_marshal_single_arg_method_y ( 1159s # GClosure *closure, 1159s # GValue *return_value, 1159s # unsigned int n_param_values, 1159s # const GValue *param_values, 1159s # void *invocation_hint, 1159s # void *marshal_data) 1159s # { 1159s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT (closure, 1159s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1159s # } 1159s # 1159s # 1159s # /** 1159s # * OrgProjectUsefulInterface: 1159s # * 1159s # * Abstract interface type for the D-Bus interface org.project.UsefulInterface. 1159s # */ 1159s # 1159s # /** 1159s # * OrgProjectUsefulInterfaceIface: 1159s # * @parent_iface: The parent interface. 1159s # * @handle_single_arg_method_y: Handler for the #OrgProjectUsefulInterface::handle-single-arg-method-y signal. 1159s # * 1159s # * Virtual table for the D-Bus interface org.project.UsefulInterface. 1159s # */ 1159s # 1159s # typedef OrgProjectUsefulInterfaceIface OrgProjectUsefulInterfaceInterface; 1159s # G_DEFINE_INTERFACE (OrgProjectUsefulInterface, org_project_useful_interface, G_TYPE_OBJECT) 1159s # 1159s # static void 1159s # org_project_useful_interface_default_init (OrgProjectUsefulInterfaceIface *iface) 1159s # { 1159s # /* GObject signals for incoming D-Bus method calls: */ 1159s # /** 1159s # * OrgProjectUsefulInterface::handle-single-arg-method-y: 1159s # * @object: A #OrgProjectUsefulInterface. 1159s # * @invocation: A #GDBusMethodInvocation. 1159s # * 1159s # * Signal emitted when a remote caller is invoking the SingleArgMethodY() D-Bus method. 1159s # * 1159s # * 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. 1159s # * 1159s # * 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. 1159s # */ 1159s # g_signal_new ("handle-single-arg-method-y", 1159s # G_TYPE_FROM_INTERFACE (iface), 1159s # G_SIGNAL_RUN_LAST, 1159s # G_STRUCT_OFFSET (OrgProjectUsefulInterfaceIface, handle_single_arg_method_y), 1159s # g_signal_accumulator_true_handled, 1159s # NULL, 1159s # org_project_useful_interface_method_marshal_single_arg_method_y, 1159s # G_TYPE_BOOLEAN, 1159s # 1, 1159s # G_TYPE_DBUS_METHOD_INVOCATION); 1159s # 1159s # } 1159s # 1159s # /** 1159s # * org_project_useful_interface_call_single_arg_method_y: 1159s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1159s # * @cancellable: (nullable): A #GCancellable or %NULL. 1159s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL. 1159s # * @user_data: User data to pass to @callback. 1159s # * 1159s # * Asynchronously invokes the SingleArgMethodY() D-Bus method on @proxy. 1159s # * 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()). 1159s # * You can then call org_project_useful_interface_call_single_arg_method_y_finish() to get the result of the operation. 1159s # * 1159s # * See org_project_useful_interface_call_single_arg_method_y_sync() for the synchronous, blocking version of this method. 1159s # */ 1159s # void 1159s # org_project_useful_interface_call_single_arg_method_y ( 1159s # OrgProjectUsefulInterface *proxy, 1159s # GCancellable *cancellable, 1159s # GAsyncReadyCallback callback, 1159s # gpointer user_data) 1159s # { 1159s # g_dbus_proxy_call (G_DBUS_PROXY (proxy), 1159s # "SingleArgMethodY", 1159s # g_variant_new ("()"), 1159s # G_DBUS_CALL_FLAGS_NONE, 1159s # -1, 1159s # cancellable, 1159s # callback, 1159s # user_data); 1159s # } 1159s # 1159s # /** 1159s # * org_project_useful_interface_call_single_arg_method_y_finish: 1159s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1159s # * @out_arg_y: (out) (optional): Return location for return parameter or %NULL to ignore. 1159s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_call_single_arg_method_y(). 1159s # * @error: Return location for error or %NULL. 1159s # * 1159s # * Finishes an operation started with org_project_useful_interface_call_single_arg_method_y(). 1159s # * 1159s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1159s # */ 1159s # gboolean 1159s # org_project_useful_interface_call_single_arg_method_y_finish ( 1159s # OrgProjectUsefulInterface *proxy, 1159s # guchar *out_arg_y, 1159s # GAsyncResult *res, 1159s # GError **error) 1159s # { 1159s # GVariant *_ret; 1159s # _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error); 1159s # if (_ret == NULL) 1159s # goto _out; 1159s # g_variant_get (_ret, 1159s # "(y)", 1159s # out_arg_y); 1159s # g_variant_unref (_ret); 1159s # _out: 1159s # return _ret != NULL; 1159s # } 1159s # 1159s # /** 1159s # * org_project_useful_interface_call_single_arg_method_y_sync: 1159s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1159s # * @out_arg_y: (out) (optional): Return location for return parameter or %NULL to ignore. 1159s # * @cancellable: (nullable): A #GCancellable or %NULL. 1159s # * @error: Return location for error or %NULL. 1159s # * 1159s # * Synchronously invokes the SingleArgMethodY() D-Bus method on @proxy. The calling thread is blocked until a reply is received. 1159s # * 1159s # * See org_project_useful_interface_call_single_arg_method_y() for the asynchronous version of this method. 1159s # * 1159s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1159s # */ 1159s # gboolean 1159s # org_project_useful_interface_call_single_arg_method_y_sync ( 1159s # OrgProjectUsefulInterface *proxy, 1159s # guchar *out_arg_y, 1159s # GCancellable *cancellable, 1159s # GError **error) 1159s # { 1159s # GVariant *_ret; 1159s # _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy), 1159s # "SingleArgMethodY", 1159s # g_variant_new ("()"), 1159s # G_DBUS_CALL_FLAGS_NONE, 1159s # -1, 1159s # cancellable, 1159s # error); 1159s # if (_ret == NULL) 1159s # goto _out; 1159s # g_variant_get (_ret, 1159s # "(y)", 1159s # out_arg_y); 1159s # g_variant_unref (_ret); 1159s # _out: 1159s # return _ret != NULL; 1159s # } 1159s # 1159s # /** 1159s # * org_project_useful_interface_complete_single_arg_method_y: 1159s # * @object: A #OrgProjectUsefulInterface. 1159s # * @invocation: (transfer full): A #GDBusMethodInvocation. 1159s # * @arg_y: Parameter to return. 1159s # * 1159s # * 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. 1159s # * 1159s # * This method will free @invocation, you cannot use it afterwards. 1159s # */ 1159s # void 1159s # org_project_useful_interface_complete_single_arg_method_y ( 1159s # OrgProjectUsefulInterface *object G_GNUC_UNUSED, 1159s # GDBusMethodInvocation *invocation, 1159s # guchar arg_y) 1159s # { 1159s # g_dbus_method_invocation_return_value (invocation, 1159s # g_variant_new ("(y)", 1159s # arg_y)); 1159s # } 1159s # 1159s # /* ------------------------------------------------------------------------ */ 1159s # 1159s # /** 1159s # * OrgProjectUsefulInterfaceProxy: 1159s # * 1159s # * The #OrgProjectUsefulInterfaceProxy structure contains only private data and should only be accessed using the provided API. 1159s # */ 1159s # 1159s # /** 1159s # * OrgProjectUsefulInterfaceProxyClass: 1159s # * @parent_class: The parent class. 1159s # * 1159s # * Class structure for #OrgProjectUsefulInterfaceProxy. 1159s # */ 1159s # 1159s # struct _OrgProjectUsefulInterfaceProxyPrivate 1159s # { 1159s # GData *qdata; 1159s # }; 1159s # 1159s # static void org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface); 1159s # 1159s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1159s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 1159s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceProxy) 1159s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 1159s # 1159s # #else 1159s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 1159s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 1159s # 1159s # #endif 1159s # static void 1159s # org_project_useful_interface_proxy_finalize (GObject *object) 1159s # { 1159s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (object); 1159s # g_datalist_clear (&proxy->priv->qdata); 1159s # G_OBJECT_CLASS (org_project_useful_interface_proxy_parent_class)->finalize (object); 1159s # } 1159s # 1159s # static void 1159s # org_project_useful_interface_proxy_get_property (GObject *object G_GNUC_UNUSED, 1159s # guint prop_id G_GNUC_UNUSED, 1159s # GValue *value G_GNUC_UNUSED, 1159s # GParamSpec *pspec G_GNUC_UNUSED) 1159s # { 1159s # } 1159s # 1159s # static void 1159s # org_project_useful_interface_proxy_set_property (GObject *object G_GNUC_UNUSED, 1159s # guint prop_id G_GNUC_UNUSED, 1159s # const GValue *value G_GNUC_UNUSED, 1159s # GParamSpec *pspec G_GNUC_UNUSED) 1159s # { 1159s # } 1159s # 1159s # static void 1159s # org_project_useful_interface_proxy_g_signal (GDBusProxy *proxy, 1159s # const gchar *sender_name G_GNUC_UNUSED, 1159s # const gchar *signal_name, 1159s # GVariant *parameters) 1159s # { 1159s # _ExtendedGDBusSignalInfo *info; 1159s # GVariantIter iter; 1159s # GVariant *child; 1159s # GValue *paramv; 1159s # gsize num_params; 1159s # gsize n; 1159s # guint signal_id; 1159s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, signal_name); 1159s # if (info == NULL) 1159s # return; 1159s # num_params = g_variant_n_children (parameters); 1159s # paramv = g_new0 (GValue, num_params + 1); 1159s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1159s # g_value_set_object (¶mv[0], proxy); 1159s # g_variant_iter_init (&iter, parameters); 1159s # n = 1; 1159s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1159s # { 1159s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 1159s # if (arg_info->use_gvariant) 1159s # { 1159s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1159s # g_value_set_variant (¶mv[n], child); 1159s # n++; 1159s # } 1159s # else 1159s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1159s # g_variant_unref (child); 1159s # } 1159s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1159s # g_signal_emitv (paramv, signal_id, 0, NULL); 1159s # for (n = 0; n < num_params + 1; n++) 1159s # g_value_unset (¶mv[n]); 1159s # g_free (paramv); 1159s # } 1159s # 1159s # static void 1159s # org_project_useful_interface_proxy_g_properties_changed (GDBusProxy *_proxy, 1159s # GVariant *changed_properties, 1159s # const gchar *const *invalidated_properties) 1159s # { 1159s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (_proxy); 1159s # guint n; 1159s # const gchar *key; 1159s # GVariantIter *iter; 1159s # _ExtendedGDBusPropertyInfo *info; 1159s # g_variant_get (changed_properties, "a{sv}", &iter); 1159s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 1159s # { 1159s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, key); 1159s # g_datalist_remove_data (&proxy->priv->qdata, key); 1159s # if (info != NULL) 1159s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1159s # } 1159s # g_variant_iter_free (iter); 1159s # for (n = 0; invalidated_properties[n] != NULL; n++) 1159s # { 1159s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, invalidated_properties[n]); 1159s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 1159s # if (info != NULL) 1159s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1159s # } 1159s # } 1159s # 1159s # static void 1159s # org_project_useful_interface_proxy_init (OrgProjectUsefulInterfaceProxy *proxy) 1159s # { 1159s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1159s # proxy->priv = org_project_useful_interface_proxy_get_instance_private (proxy); 1159s # #else 1159s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY, OrgProjectUsefulInterfaceProxyPrivate); 1159s # #endif 1159s # 1159s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_useful_interface_interface_info ()); 1159s # } 1159s # 1159s # static void 1159s # org_project_useful_interface_proxy_class_init (OrgProjectUsefulInterfaceProxyClass *klass) 1159s # { 1159s # GObjectClass *gobject_class; 1159s # GDBusProxyClass *proxy_class; 1159s # 1159s # gobject_class = G_OBJECT_CLASS (klass); 1159s # gobject_class->finalize = org_project_useful_interface_proxy_finalize; 1159s # gobject_class->get_property = org_project_useful_interface_proxy_get_property; 1159s # gobject_class->set_property = org_project_useful_interface_proxy_set_property; 1159s # 1159s # proxy_class = G_DBUS_PROXY_CLASS (klass); 1159s # proxy_class->g_signal = org_project_useful_interface_proxy_g_signal; 1159s # proxy_class->g_properties_changed = org_project_useful_interface_proxy_g_properties_changed; 1159s # 1159s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1159s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceProxyPrivate)); 1159s # #endif 1159s # } 1159s # 1159s # static void 1159s # org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 1159s # { 1159s # } 1159s # 1159s # /** 1159s # * org_project_useful_interface_proxy_new: 1159s # * @connection: A #GDBusConnection. 1159s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1159s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1159s # * @object_path: An object path. 1159s # * @cancellable: (nullable): A #GCancellable or %NULL. 1159s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1159s # * @user_data: User data to pass to @callback. 1159s # * 1159s # * Asynchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new() for more details. 1159s # * 1159s # * 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()). 1159s # * You can then call org_project_useful_interface_proxy_new_finish() to get the result of the operation. 1159s # * 1159s # * See org_project_useful_interface_proxy_new_sync() for the synchronous, blocking version of this constructor. 1159s # */ 1159s # void 1159s # org_project_useful_interface_proxy_new ( 1159s # GDBusConnection *connection, 1159s # GDBusProxyFlags flags, 1159s # const gchar *name, 1159s # const gchar *object_path, 1159s # GCancellable *cancellable, 1159s # GAsyncReadyCallback callback, 1159s # gpointer user_data) 1159s # { 1159s # 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); 1159s # } 1159s # 1159s # /** 1159s # * org_project_useful_interface_proxy_new_finish: 1159s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new(). 1159s # * @error: Return location for error or %NULL 1159s # * 1159s # * Finishes an operation started with org_project_useful_interface_proxy_new(). 1159s # * 1159s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1159s # */ 1159s # OrgProjectUsefulInterface * 1159s # org_project_useful_interface_proxy_new_finish ( 1159s # GAsyncResult *res, 1159s # GError **error) 1159s # { 1159s # GObject *ret; 1159s # GObject *source_object; 1159s # source_object = g_async_result_get_source_object (res); 1159s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1159s # g_object_unref (source_object); 1159s # if (ret != NULL) 1159s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1159s # else 1159s # return NULL; 1159s # } 1159s # 1159s # /** 1159s # * org_project_useful_interface_proxy_new_sync: 1159s # * @connection: A #GDBusConnection. 1159s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1159s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1159s # * @object_path: An object path. 1159s # * @cancellable: (nullable): A #GCancellable or %NULL. 1159s # * @error: Return location for error or %NULL 1159s # * 1159s # * Synchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new_sync() for more details. 1159s # * 1159s # * The calling thread is blocked until a reply is received. 1159s # * 1159s # * See org_project_useful_interface_proxy_new() for the asynchronous version of this constructor. 1159s # * 1159s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1159s # */ 1159s # OrgProjectUsefulInterface * 1159s # org_project_useful_interface_proxy_new_sync ( 1159s # GDBusConnection *connection, 1159s # GDBusProxyFlags flags, 1159s # const gchar *name, 1159s # const gchar *object_path, 1159s # GCancellable *cancellable, 1159s # GError **error) 1159s # { 1159s # GInitable *ret; 1159s # 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); 1159s # if (ret != NULL) 1159s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1159s # else 1159s # return NULL; 1159s # } 1159s # 1159s # 1159s # /** 1159s # * org_project_useful_interface_proxy_new_for_bus: 1159s # * @bus_type: A #GBusType. 1159s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1159s # * @name: A bus name (well-known or unique). 1159s # * @object_path: An object path. 1159s # * @cancellable: (nullable): A #GCancellable or %NULL. 1159s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1159s # * @user_data: User data to pass to @callback. 1159s # * 1159s # * Like org_project_useful_interface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 1159s # * 1159s # * 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()). 1159s # * You can then call org_project_useful_interface_proxy_new_for_bus_finish() to get the result of the operation. 1159s # * 1159s # * See org_project_useful_interface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 1159s # */ 1159s # void 1159s # org_project_useful_interface_proxy_new_for_bus ( 1159s # GBusType bus_type, 1159s # GDBusProxyFlags flags, 1159s # const gchar *name, 1159s # const gchar *object_path, 1159s # GCancellable *cancellable, 1159s # GAsyncReadyCallback callback, 1159s # gpointer user_data) 1159s # { 1159s # 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); 1159s # } 1159s # 1159s # /** 1159s # * org_project_useful_interface_proxy_new_for_bus_finish: 1159s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new_for_bus(). 1159s # * @error: Return location for error or %NULL 1159s # * 1159s # * Finishes an operation started with org_project_useful_interface_proxy_new_for_bus(). 1159s # * 1159s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1159s # */ 1159s # OrgProjectUsefulInterface * 1159s # org_project_useful_interface_proxy_new_for_bus_finish ( 1159s # GAsyncResult *res, 1159s # GError **error) 1159s # { 1159s # GObject *ret; 1159s # GObject *source_object; 1159s # source_object = g_async_result_get_source_object (res); 1159s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1159s # g_object_unref (source_object); 1159s # if (ret != NULL) 1159s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1159s # else 1159s # return NULL; 1159s # } 1159s # 1159s # /** 1159s # * org_project_useful_interface_proxy_new_for_bus_sync: 1159s # * @bus_type: A #GBusType. 1159s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1159s # * @name: A bus name (well-known or unique). 1159s # * @object_path: An object path. 1159s # * @cancellable: (nullable): A #GCancellable or %NULL. 1159s # * @error: Return location for error or %NULL 1159s # * 1159s # * Like org_project_useful_interface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 1159s # * 1159s # * The calling thread is blocked until a reply is received. 1159s # * 1159s # * See org_project_useful_interface_proxy_new_for_bus() for the asynchronous version of this constructor. 1159s # * 1159s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1159s # */ 1159s # OrgProjectUsefulInterface * 1159s # org_project_useful_interface_proxy_new_for_bus_sync ( 1159s # GBusType bus_type, 1159s # GDBusProxyFlags flags, 1159s # const gchar *name, 1159s # const gchar *object_path, 1159s # GCancellable *cancellable, 1159s # GError **error) 1159s # { 1159s # GInitable *ret; 1159s # 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); 1159s # if (ret != NULL) 1159s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1159s # else 1159s # return NULL; 1159s # } 1159s # 1159s # 1159s # /* ------------------------------------------------------------------------ */ 1159s # 1159s # /** 1159s # * OrgProjectUsefulInterfaceSkeleton: 1159s # * 1159s # * The #OrgProjectUsefulInterfaceSkeleton structure contains only private data and should only be accessed using the provided API. 1159s # */ 1159s # 1159s # /** 1159s # * OrgProjectUsefulInterfaceSkeletonClass: 1159s # * @parent_class: The parent class. 1159s # * 1159s # * Class structure for #OrgProjectUsefulInterfaceSkeleton. 1159s # */ 1159s # 1159s # struct _OrgProjectUsefulInterfaceSkeletonPrivate 1159s # { 1159s # GValue *properties; 1159s # GList *changed_properties; 1159s # GSource *changed_properties_idle_source; 1159s # GMainContext *context; 1159s # GMutex lock; 1159s # }; 1159s # 1159s # static void 1159s # _org_project_useful_interface_skeleton_handle_method_call ( 1159s # GDBusConnection *connection G_GNUC_UNUSED, 1159s # const gchar *sender G_GNUC_UNUSED, 1159s # const gchar *object_path G_GNUC_UNUSED, 1159s # const gchar *interface_name, 1159s # const gchar *method_name, 1159s # GVariant *parameters, 1159s # GDBusMethodInvocation *invocation, 1159s # gpointer user_data) 1159s # { 1159s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1159s # _ExtendedGDBusMethodInfo *info; 1159s # GVariantIter iter; 1159s # GVariant *child; 1159s # GValue *paramv; 1159s # gsize num_params; 1159s # guint num_extra; 1159s # gsize n; 1159s # guint signal_id; 1159s # GValue return_value = G_VALUE_INIT; 1159s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 1159s # g_assert (info != NULL); 1159s # num_params = g_variant_n_children (parameters); 1159s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 1159s # n = 0; 1159s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1159s # g_value_set_object (¶mv[n++], skeleton); 1159s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 1159s # g_value_set_object (¶mv[n++], invocation); 1159s # if (info->pass_fdlist) 1159s # { 1159s # #ifdef G_OS_UNIX 1159s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 1159s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 1159s # #else 1159s # g_assert_not_reached (); 1159s # #endif 1159s # } 1159s # g_variant_iter_init (&iter, parameters); 1159s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1159s # { 1159s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 1159s # if (arg_info->use_gvariant) 1159s # { 1159s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1159s # g_value_set_variant (¶mv[n], child); 1159s # n++; 1159s # } 1159s # else 1159s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1159s # g_variant_unref (child); 1159s # } 1159s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1159s # g_value_init (&return_value, G_TYPE_BOOLEAN); 1159s # g_signal_emitv (paramv, signal_id, 0, &return_value); 1159s # if (!g_value_get_boolean (&return_value)) 1159s # 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); 1159s # g_value_unset (&return_value); 1159s # for (n = 0; n < num_params + num_extra; n++) 1159s # g_value_unset (¶mv[n]); 1159s # g_free (paramv); 1159s # } 1159s # 1159s # static GVariant * 1159s # _org_project_useful_interface_skeleton_handle_get_property ( 1159s # GDBusConnection *connection G_GNUC_UNUSED, 1159s # const gchar *sender G_GNUC_UNUSED, 1159s # const gchar *object_path G_GNUC_UNUSED, 1159s # const gchar *interface_name G_GNUC_UNUSED, 1159s # const gchar *property_name, 1159s # GError **error, 1159s # gpointer user_data) 1159s # { 1159s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1159s # GValue value = G_VALUE_INIT; 1159s # GParamSpec *pspec; 1159s # _ExtendedGDBusPropertyInfo *info; 1159s # GVariant *ret; 1159s # ret = NULL; 1159s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 1159s # g_assert (info != NULL); 1159s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1159s # if (pspec == NULL) 1159s # { 1159s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1159s # } 1159s # else 1159s # { 1159s # g_value_init (&value, pspec->value_type); 1159s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1159s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 1159s # g_value_unset (&value); 1159s # } 1159s # return ret; 1159s # } 1159s # 1159s # static gboolean 1159s # _org_project_useful_interface_skeleton_handle_set_property ( 1159s # GDBusConnection *connection G_GNUC_UNUSED, 1159s # const gchar *sender G_GNUC_UNUSED, 1159s # const gchar *object_path G_GNUC_UNUSED, 1159s # const gchar *interface_name G_GNUC_UNUSED, 1159s # const gchar *property_name, 1159s # GVariant *variant, 1159s # GError **error, 1159s # gpointer user_data) 1159s # { 1159s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1159s # GValue value = G_VALUE_INIT; 1159s # GParamSpec *pspec; 1159s # _ExtendedGDBusPropertyInfo *info; 1159s # gboolean ret; 1159s # ret = FALSE; 1159s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 1159s # g_assert (info != NULL); 1159s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1159s # if (pspec == NULL) 1159s # { 1159s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1159s # } 1159s # else 1159s # { 1159s # if (info->use_gvariant) 1159s # g_value_set_variant (&value, variant); 1159s # else 1159s # g_dbus_gvariant_to_gvalue (variant, &value); 1159s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1159s # g_value_unset (&value); 1159s # ret = TRUE; 1159s # } 1159s # return ret; 1159s # } 1159s # 1159s # static const GDBusInterfaceVTable _org_project_useful_interface_skeleton_vtable = 1159s # { 1159s # _org_project_useful_interface_skeleton_handle_method_call, 1159s # _org_project_useful_interface_skeleton_handle_get_property, 1159s # _org_project_useful_interface_skeleton_handle_set_property, 1159s # {NULL} 1159s # }; 1159s # 1159s # static GDBusInterfaceInfo * 1159s # org_project_useful_interface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1159s # { 1159s # return org_project_useful_interface_interface_info (); 1159s # } 1159s # 1159s # static GDBusInterfaceVTable * 1159s # org_project_useful_interface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1159s # { 1159s # return (GDBusInterfaceVTable *) &_org_project_useful_interface_skeleton_vtable; 1159s # } 1159s # 1159s # static GVariant * 1159s # org_project_useful_interface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 1159s # { 1159s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (_skeleton); 1159s # 1159s # GVariantBuilder builder; 1159s # guint n; 1159s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 1159s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 1159s # #else 1159s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 1159s # #endif 1159s # if (_org_project_useful_interface_interface_info.parent_struct.properties == NULL) 1159s # goto out; 1159s # for (n = 0; _org_project_useful_interface_interface_info.parent_struct.properties[n] != NULL; n++) 1159s # { 1159s # GDBusPropertyInfo *info = _org_project_useful_interface_interface_info.parent_struct.properties[n]; 1159s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 1159s # { 1159s # GVariant *value; 1159s # 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); 1159s # if (value != NULL) 1159s # { 1159s # g_variant_take_ref (value); 1159s # g_variant_builder_add (&builder, "{sv}", info->name, value); 1159s # g_variant_unref (value); 1159s # } 1159s # } 1159s # } 1159s # out: 1159s # return g_variant_builder_end (&builder); 1159s # } 1159s # 1159s # static void 1159s # org_project_useful_interface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 1159s # { 1159s # } 1159s # 1159s # static void org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface); 1159s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1159s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1159s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceSkeleton) 1159s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 1159s # 1159s # #else 1159s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1159s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 1159s # 1159s # #endif 1159s # static void 1159s # org_project_useful_interface_skeleton_finalize (GObject *object) 1159s # { 1159s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (object); 1159s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 1159s # if (skeleton->priv->changed_properties_idle_source != NULL) 1159s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 1159s # g_main_context_unref (skeleton->priv->context); 1159s # g_mutex_clear (&skeleton->priv->lock); 1159s # G_OBJECT_CLASS (org_project_useful_interface_skeleton_parent_class)->finalize (object); 1159s # } 1159s # 1159s # static void 1159s # org_project_useful_interface_skeleton_init (OrgProjectUsefulInterfaceSkeleton *skeleton) 1159s # { 1159s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1159s # skeleton->priv = org_project_useful_interface_skeleton_get_instance_private (skeleton); 1159s # #else 1159s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, OrgProjectUsefulInterfaceSkeletonPrivate); 1159s # #endif 1159s # 1159s # g_mutex_init (&skeleton->priv->lock); 1159s # skeleton->priv->context = g_main_context_ref_thread_default (); 1159s # } 1159s # 1159s # static void 1159s # org_project_useful_interface_skeleton_class_init (OrgProjectUsefulInterfaceSkeletonClass *klass) 1159s # { 1159s # GObjectClass *gobject_class; 1159s # GDBusInterfaceSkeletonClass *skeleton_class; 1159s # 1159s # gobject_class = G_OBJECT_CLASS (klass); 1159s # gobject_class->finalize = org_project_useful_interface_skeleton_finalize; 1159s # 1159s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 1159s # skeleton_class->get_info = org_project_useful_interface_skeleton_dbus_interface_get_info; 1159s # skeleton_class->get_properties = org_project_useful_interface_skeleton_dbus_interface_get_properties; 1159s # skeleton_class->flush = org_project_useful_interface_skeleton_dbus_interface_flush; 1159s # skeleton_class->get_vtable = org_project_useful_interface_skeleton_dbus_interface_get_vtable; 1159s # 1159s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1159s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceSkeletonPrivate)); 1159s # #endif 1159s # } 1159s # 1159s # static void 1159s # org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 1159s # { 1159s # } 1159s # 1159s # /** 1159s # * org_project_useful_interface_skeleton_new: 1159s # * 1159s # * Creates a skeleton object for the D-Bus interface org.project.UsefulInterface. 1159s # * 1159s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceSkeleton): The skeleton object. 1159s # */ 1159s # OrgProjectUsefulInterface * 1159s # org_project_useful_interface_skeleton_new (void) 1159s # { 1159s # return ORG_PROJECT_USEFUL_INTERFACE (g_object_new (TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, NULL)); 1159s # } 1159s # Error: 1159s # 1159s # /tmp/tmpatbfkbk2/tmp95cz7wtv.xml: 1159s # 1159s # 1159s # 1159s # 1159s # 1159s # 1159s # 1159s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpatbfkbk2/tmp95cz7wtv.xml', '--output', '-', '--body'] 1159s # Return code: 0 1159s # Output: 1159s # /* 1159s # * This file is generated by gdbus-codegen, do not modify it. 1159s # * 1159s # * The license of this code is the same as for the D-Bus interface description 1159s # * it was derived from. Note that it links to GLib, so must comply with the 1159s # * LGPL linking clauses. 1159s # */ 1159s # 1159s # #ifdef HAVE_CONFIG_H 1159s # # include "config.h" 1159s # #endif 1159s # 1159s # #include 1159s # #ifdef G_OS_UNIX 1159s # # include 1159s # #endif 1159s # 1159s # #ifdef G_ENABLE_DEBUG 1159s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 1159s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 1159s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 1159s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 1159s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 1159s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 1159s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 1159s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 1159s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 1159s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 1159s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 1159s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 1159s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 1159s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 1159s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 1159s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 1159s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 1159s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 1159s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 1159s # #else /* !G_ENABLE_DEBUG */ 1159s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 1159s # * Do not access GValues directly in your code. Instead, use the 1159s # * g_value_get_*() functions 1159s # */ 1159s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 1159s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 1159s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 1159s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 1159s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 1159s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 1159s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 1159s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 1159s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 1159s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 1159s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 1159s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 1159s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 1159s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 1159s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 1159s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 1159s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 1159s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 1159s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 1159s # #endif /* !G_ENABLE_DEBUG */ 1159s # 1159s # typedef struct 1159s # { 1159s # GDBusArgInfo parent_struct; 1159s # gboolean use_gvariant; 1159s # } _ExtendedGDBusArgInfo; 1159s # 1159s # typedef struct 1159s # { 1159s # GDBusMethodInfo parent_struct; 1159s # const gchar *signal_name; 1159s # gboolean pass_fdlist; 1159s # } _ExtendedGDBusMethodInfo; 1159s # 1159s # typedef struct 1159s # { 1159s # GDBusSignalInfo parent_struct; 1159s # const gchar *signal_name; 1159s # } _ExtendedGDBusSignalInfo; 1159s # 1159s # typedef struct 1159s # { 1159s # GDBusPropertyInfo parent_struct; 1159s # const gchar *hyphen_name; 1159s # guint use_gvariant : 1; 1159s # guint emits_changed_signal : 1; 1159s # } _ExtendedGDBusPropertyInfo; 1159s # 1159s # typedef struct 1159s # { 1159s # GDBusInterfaceInfo parent_struct; 1159s # const gchar *hyphen_name; 1159s # } _ExtendedGDBusInterfaceInfo; 1159s # 1159s # typedef struct 1159s # { 1159s # const _ExtendedGDBusPropertyInfo *info; 1159s # guint prop_id; 1159s # GValue orig_value; /* the value before the change */ 1159s # } ChangedProperty; 1159s # 1159s # static void 1159s # _changed_property_free (ChangedProperty *data) 1159s # { 1159s # g_value_unset (&data->orig_value); 1159s # g_free (data); 1159s # } 1159s # 1159s # static gboolean 1159s # _g_strv_equal0 (gchar **a, gchar **b) 1159s # { 1159s # gboolean ret = FALSE; 1159s # guint n; 1159s # if (a == NULL && b == NULL) 1159s # { 1159s # ret = TRUE; 1159s # goto out; 1159s # } 1159s # if (a == NULL || b == NULL) 1159s # goto out; 1159s # if (g_strv_length (a) != g_strv_length (b)) 1159s # goto out; 1159s # for (n = 0; a[n] != NULL; n++) 1159s # if (g_strcmp0 (a[n], b[n]) != 0) 1159s # goto out; 1159s # ret = TRUE; 1159s # out: 1159s # return ret; 1159s # } 1159s # 1159s # static gboolean 1159s # _g_variant_equal0 (GVariant *a, GVariant *b) 1159s # { 1159s # gboolean ret = FALSE; 1159s # if (a == NULL && b == NULL) 1159s # { 1159s # ret = TRUE; 1159s # goto out; 1159s # } 1159s # if (a == NULL || b == NULL) 1159s # goto out; 1159s # ret = g_variant_equal (a, b); 1159s # out: 1159s # return ret; 1159s # } 1159s # 1159s # G_GNUC_UNUSED static gboolean 1159s # _g_value_equal (const GValue *a, const GValue *b) 1159s # { 1159s # gboolean ret = FALSE; 1159s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 1159s # switch (G_VALUE_TYPE (a)) 1159s # { 1159s # case G_TYPE_BOOLEAN: 1159s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 1159s # break; 1159s # case G_TYPE_UCHAR: 1159s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 1159s # break; 1159s # case G_TYPE_INT: 1159s # ret = (g_value_get_int (a) == g_value_get_int (b)); 1159s # break; 1159s # case G_TYPE_UINT: 1159s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 1159s # break; 1159s # case G_TYPE_INT64: 1159s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 1159s # break; 1159s # case G_TYPE_UINT64: 1159s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 1159s # break; 1159s # case G_TYPE_DOUBLE: 1159s # { 1159s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 1159s # gdouble da = g_value_get_double (a); 1159s # gdouble db = g_value_get_double (b); 1159s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 1159s # } 1159s # break; 1159s # case G_TYPE_STRING: 1159s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 1159s # break; 1159s # case G_TYPE_VARIANT: 1159s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 1159s # break; 1159s # default: 1159s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 1159s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 1159s # else 1159s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 1159s # break; 1159s # } 1159s # return ret; 1159s # } 1159s # 1159s # static void 1159s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT ( 1159s # GClosure *closure, 1159s # GValue *return_value, 1159s # unsigned int n_param_values, 1159s # const GValue *param_values, 1159s # void *invocation_hint G_GNUC_UNUSED, 1159s # void *marshal_data) 1159s # { 1159s # typedef gboolean (*_GDbusCodegenMarshalBoolean_ObjectFunc) 1159s # (void *data1, 1159s # GDBusMethodInvocation *arg_method_invocation, 1159s # void *data2); 1159s # _GDbusCodegenMarshalBoolean_ObjectFunc callback; 1159s # GCClosure *cc = (GCClosure*) closure; 1159s # void *data1, *data2; 1159s # gboolean v_return; 1159s # 1159s # g_return_if_fail (return_value != NULL); 1159s # g_return_if_fail (n_param_values == 2); 1159s # 1159s # if (G_CCLOSURE_SWAP_DATA (closure)) 1159s # { 1159s # data1 = closure->data; 1159s # data2 = g_value_peek_pointer (param_values + 0); 1159s # } 1159s # else 1159s # { 1159s # data1 = g_value_peek_pointer (param_values + 0); 1159s # data2 = closure->data; 1159s # } 1159s # 1159s # callback = (_GDbusCodegenMarshalBoolean_ObjectFunc) 1159s # (marshal_data ? marshal_data : cc->callback); 1159s # 1159s # v_return = 1159s # callback (data1, 1159s # g_marshal_value_peek_object (param_values + 1), 1159s # data2); 1159s # 1159s # g_value_set_boolean (return_value, v_return); 1159s # } 1159s # 1159s # /* ------------------------------------------------------------------------ 1159s # * Code for interface org.project.UsefulInterface 1159s # * ------------------------------------------------------------------------ 1159s # */ 1159s # 1159s # /** 1159s # * SECTION:OrgProjectUsefulInterface 1159s # * @title: OrgProjectUsefulInterface 1159s # * @short_description: Generated C code for the org.project.UsefulInterface D-Bus interface 1159s # * 1159s # * This section contains code for working with the org.project.UsefulInterface D-Bus interface in C. 1159s # */ 1159s # 1159s # /* ---- Introspection data for org.project.UsefulInterface ---- */ 1159s # 1159s # static const _ExtendedGDBusArgInfo _org_project_useful_interface_method_info_single_arg_method_n_OUT_ARG_arg_n = 1159s # { 1159s # { 1159s # -1, 1159s # (gchar *) "arg_n", 1159s # (gchar *) "n", 1159s # NULL 1159s # }, 1159s # FALSE 1159s # }; 1159s # 1159s # static const GDBusArgInfo * const _org_project_useful_interface_method_info_single_arg_method_n_OUT_ARG_pointers[] = 1159s # { 1159s # &_org_project_useful_interface_method_info_single_arg_method_n_OUT_ARG_arg_n.parent_struct, 1159s # NULL 1159s # }; 1159s # 1159s # static const _ExtendedGDBusMethodInfo _org_project_useful_interface_method_info_single_arg_method_n = 1159s # { 1159s # { 1159s # -1, 1159s # (gchar *) "SingleArgMethodN", 1159s # NULL, 1159s # (GDBusArgInfo **) &_org_project_useful_interface_method_info_single_arg_method_n_OUT_ARG_pointers, 1159s # NULL 1159s # }, 1159s # "handle-single-arg-method-n", 1159s # FALSE 1159s # }; 1159s # 1159s # static const GDBusMethodInfo * const _org_project_useful_interface_method_info_pointers[] = 1159s # { 1159s # &_org_project_useful_interface_method_info_single_arg_method_n.parent_struct, 1159s # NULL 1159s # }; 1159s # 1159s # static const _ExtendedGDBusInterfaceInfo _org_project_useful_interface_interface_info = 1159s # { 1159s # { 1159s # -1, 1159s # (gchar *) "org.project.UsefulInterface", 1159s # (GDBusMethodInfo **) &_org_project_useful_interface_method_info_pointers, 1159s # NULL, 1159s # NULL, 1159s # NULL 1159s # }, 1159s # "org-project-useful-interface", 1159s # }; 1159s # 1159s # 1159s # /** 1159s # * org_project_useful_interface_interface_info: 1159s # * 1159s # * Gets a machine-readable description of the org.project.UsefulInterface D-Bus interface. 1159s # * 1159s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 1159s # */ 1159s # GDBusInterfaceInfo * 1159s # org_project_useful_interface_interface_info (void) 1159s # { 1159s # return (GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct; 1159s # } 1159s # 1159s # /** 1159s # * org_project_useful_interface_override_properties: 1159s # * @klass: The class structure for a #GObject derived class. 1159s # * @property_id_begin: The property id to assign to the first overridden property. 1159s # * 1159s # * Overrides all #GObject properties in the #OrgProjectUsefulInterface interface for a concrete class. 1159s # * The properties are overridden in the order they are defined. 1159s # * 1159s # * Returns: The last property id. 1159s # */ 1159s # guint 1159s # org_project_useful_interface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 1159s # { 1159s # return property_id_begin - 1; 1159s # } 1159s # 1159s # 1159s # inline static void 1159s # org_project_useful_interface_method_marshal_single_arg_method_n ( 1159s # GClosure *closure, 1159s # GValue *return_value, 1159s # unsigned int n_param_values, 1159s # const GValue *param_values, 1159s # void *invocation_hint, 1159s # void *marshal_data) 1159s # { 1159s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT (closure, 1159s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1159s # } 1159s # 1159s # 1159s # /** 1159s # * OrgProjectUsefulInterface: 1159s # * 1159s # * Abstract interface type for the D-Bus interface org.project.UsefulInterface. 1159s # */ 1159s # 1159s # /** 1159s # * OrgProjectUsefulInterfaceIface: 1159s # * @parent_iface: The parent interface. 1159s # * @handle_single_arg_method_n: Handler for the #OrgProjectUsefulInterface::handle-single-arg-method-n signal. 1159s # * 1159s # * Virtual table for the D-Bus interface org.project.UsefulInterface. 1159s # */ 1159s # 1159s # typedef OrgProjectUsefulInterfaceIface OrgProjectUsefulInterfaceInterface; 1159s # G_DEFINE_INTERFACE (OrgProjectUsefulInterface, org_project_useful_interface, G_TYPE_OBJECT) 1159s # 1159s # static void 1159s # org_project_useful_interface_default_init (OrgProjectUsefulInterfaceIface *iface) 1159s # { 1159s # /* GObject signals for incoming D-Bus method calls: */ 1159s # /** 1159s # * OrgProjectUsefulInterface::handle-single-arg-method-n: 1159s # * @object: A #OrgProjectUsefulInterface. 1159s # * @invocation: A #GDBusMethodInvocation. 1159s # * 1159s # * Signal emitted when a remote caller is invoking the SingleArgMethodN() D-Bus method. 1159s # * 1159s # * 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. 1159s # * 1159s # * 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. 1159s # */ 1159s # g_signal_new ("handle-single-arg-method-n", 1159s # G_TYPE_FROM_INTERFACE (iface), 1159s # G_SIGNAL_RUN_LAST, 1159s # G_STRUCT_OFFSET (OrgProjectUsefulInterfaceIface, handle_single_arg_method_n), 1159s # g_signal_accumulator_true_handled, 1159s # NULL, 1159s # org_project_useful_interface_method_marshal_single_arg_method_n, 1159s # G_TYPE_BOOLEAN, 1159s # 1, 1159s # G_TYPE_DBUS_METHOD_INVOCATION); 1159s # 1159s # } 1159s # 1159s # /** 1159s # * org_project_useful_interface_call_single_arg_method_n: 1159s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1159s # * @cancellable: (nullable): A #GCancellable or %NULL. 1159s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL. 1159s # * @user_data: User data to pass to @callback. 1159s # * 1159s # * Asynchronously invokes the SingleArgMethodN() D-Bus method on @proxy. 1159s # * 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()). 1159s # * You can then call org_project_useful_interface_call_single_arg_method_n_finish() to get the result of the operation. 1159s # * 1159s # * See org_project_useful_interface_call_single_arg_method_n_sync() for the synchronous, blocking version of this method. 1159s # */ 1159s # void 1159s # org_project_useful_interface_call_single_arg_method_n ( 1159s # OrgProjectUsefulInterface *proxy, 1159s # GCancellable *cancellable, 1159s # GAsyncReadyCallback callback, 1159s # gpointer user_data) 1159s # { 1159s # g_dbus_proxy_call (G_DBUS_PROXY (proxy), 1159s # "SingleArgMethodN", 1159s # g_variant_new ("()"), 1159s # G_DBUS_CALL_FLAGS_NONE, 1159s # -1, 1159s # cancellable, 1159s # callback, 1159s # user_data); 1159s # } 1159s # 1159s # /** 1159s # * org_project_useful_interface_call_single_arg_method_n_finish: 1159s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1159s # * @out_arg_n: (out) (optional): Return location for return parameter or %NULL to ignore. 1159s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_call_single_arg_method_n(). 1159s # * @error: Return location for error or %NULL. 1159s # * 1159s # * Finishes an operation started with org_project_useful_interface_call_single_arg_method_n(). 1159s # * 1159s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1159s # */ 1159s # gboolean 1159s # org_project_useful_interface_call_single_arg_method_n_finish ( 1159s # OrgProjectUsefulInterface *proxy, 1159s # gint16 *out_arg_n, 1159s # GAsyncResult *res, 1159s # GError **error) 1159s # { 1159s # GVariant *_ret; 1159s # _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error); 1159s # if (_ret == NULL) 1159s # goto _out; 1159s # g_variant_get (_ret, 1159s # "(n)", 1159s # out_arg_n); 1159s # g_variant_unref (_ret); 1159s # _out: 1159s # return _ret != NULL; 1159s # } 1159s # 1159s # /** 1159s # * org_project_useful_interface_call_single_arg_method_n_sync: 1159s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1159s # * @out_arg_n: (out) (optional): Return location for return parameter or %NULL to ignore. 1159s # * @cancellable: (nullable): A #GCancellable or %NULL. 1159s # * @error: Return location for error or %NULL. 1159s # * 1159s # * Synchronously invokes the SingleArgMethodN() D-Bus method on @proxy. The calling thread is blocked until a reply is received. 1159s # * 1159s # * See org_project_useful_interface_call_single_arg_method_n() for the asynchronous version of this method. 1159s # * 1159s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1159s # */ 1159s # gboolean 1159s # org_project_useful_interface_call_single_arg_method_n_sync ( 1159s # OrgProjectUsefulInterface *proxy, 1159s # gint16 *out_arg_n, 1159s # GCancellable *cancellable, 1159s # GError **error) 1159s # { 1159s # GVariant *_ret; 1159s # _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy), 1159s # "SingleArgMethodN", 1159s # g_variant_new ("()"), 1159s # G_DBUS_CALL_FLAGS_NONE, 1159s # -1, 1159s # cancellable, 1159s # error); 1159s # if (_ret == NULL) 1159s # goto _out; 1159s # g_variant_get (_ret, 1159s # "(n)", 1159s # out_arg_n); 1159s # g_variant_unref (_ret); 1159s # _out: 1159s # return _ret != NULL; 1159s # } 1159s # 1159s # /** 1159s # * org_project_useful_interface_complete_single_arg_method_n: 1159s # * @object: A #OrgProjectUsefulInterface. 1159s # * @invocation: (transfer full): A #GDBusMethodInvocation. 1159s # * @arg_n: Parameter to return. 1159s # * 1159s # * 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. 1159s # * 1159s # * This method will free @invocation, you cannot use it afterwards. 1159s # */ 1159s # void 1159s # org_project_useful_interface_complete_single_arg_method_n ( 1159s # OrgProjectUsefulInterface *object G_GNUC_UNUSED, 1159s # GDBusMethodInvocation *invocation, 1159s # gint16 arg_n) 1159s # { 1159s # g_dbus_method_invocation_return_value (invocation, 1159s # g_variant_new ("(n)", 1159s # arg_n)); 1159s # } 1159s # 1159s # /* ------------------------------------------------------------------------ */ 1159s # 1159s # /** 1159s # * OrgProjectUsefulInterfaceProxy: 1159s # * 1159s # * The #OrgProjectUsefulInterfaceProxy structure contains only private data and should only be accessed using the provided API. 1159s # */ 1159s # 1159s # /** 1159s # * OrgProjectUsefulInterfaceProxyClass: 1159s # * @parent_class: The parent class. 1159s # * 1159s # * Class structure for #OrgProjectUsefulInterfaceProxy. 1159s # */ 1159s # 1159s # struct _OrgProjectUsefulInterfaceProxyPrivate 1159s # { 1159s # GData *qdata; 1159s # }; 1159s # 1159s # static void org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface); 1159s # 1159s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1159s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 1159s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceProxy) 1159s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 1159s # 1159s # #else 1159s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 1159s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 1159s # 1159s # #endif 1159s # static void 1159s # org_project_useful_interface_proxy_finalize (GObject *object) 1159s # { 1159s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (object); 1159s # g_datalist_clear (&proxy->priv->qdata); 1159s # G_OBJECT_CLASS (org_project_useful_interface_proxy_parent_class)->finalize (object); 1159s # } 1159s # 1159s # static void 1159s # org_project_useful_interface_proxy_get_property (GObject *object G_GNUC_UNUSED, 1159s # guint prop_id G_GNUC_UNUSED, 1159s # GValue *value G_GNUC_UNUSED, 1159s # GParamSpec *pspec G_GNUC_UNUSED) 1159s # { 1159s # } 1159s # 1159s # static void 1159s # org_project_useful_interface_proxy_set_property (GObject *object G_GNUC_UNUSED, 1159s # guint prop_id G_GNUC_UNUSED, 1159s # const GValue *value G_GNUC_UNUSED, 1159s # GParamSpec *pspec G_GNUC_UNUSED) 1159s # { 1159s # } 1159s # 1159s # static void 1159s # org_project_useful_interface_proxy_g_signal (GDBusProxy *proxy, 1159s # const gchar *sender_name G_GNUC_UNUSED, 1159s # const gchar *signal_name, 1159s # GVariant *parameters) 1159s # { 1159s # _ExtendedGDBusSignalInfo *info; 1159s # GVariantIter iter; 1159s # GVariant *child; 1159s # GValue *paramv; 1159s # gsize num_params; 1159s # gsize n; 1159s # guint signal_id; 1159s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, signal_name); 1159s # if (info == NULL) 1159s # return; 1159s # num_params = g_variant_n_children (parameters); 1159s # paramv = g_new0 (GValue, num_params + 1); 1159s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1159s # g_value_set_object (¶mv[0], proxy); 1159s # g_variant_iter_init (&iter, parameters); 1159s # n = 1; 1159s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1159s # { 1159s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 1159s # if (arg_info->use_gvariant) 1159s # { 1159s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1159s # g_value_set_variant (¶mv[n], child); 1159s # n++; 1159s # } 1159s # else 1159s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1159s # g_variant_unref (child); 1159s # } 1159s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1159s # g_signal_emitv (paramv, signal_id, 0, NULL); 1159s # for (n = 0; n < num_params + 1; n++) 1159s # g_value_unset (¶mv[n]); 1159s # g_free (paramv); 1159s # } 1159s # 1159s # static void 1159s # org_project_useful_interface_proxy_g_properties_changed (GDBusProxy *_proxy, 1159s # GVariant *changed_properties, 1159s # const gchar *const *invalidated_properties) 1159s # { 1159s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (_proxy); 1159s # guint n; 1159s # const gchar *key; 1159s # GVariantIter *iter; 1159s # _ExtendedGDBusPropertyInfo *info; 1159s # g_variant_get (changed_properties, "a{sv}", &iter); 1159s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 1159s # { 1159s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, key); 1159s # g_datalist_remove_data (&proxy->priv->qdata, key); 1159s # if (info != NULL) 1159s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1159s # } 1159s # g_variant_iter_free (iter); 1159s # for (n = 0; invalidated_properties[n] != NULL; n++) 1159s # { 1159s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, invalidated_properties[n]); 1159s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 1159s # if (info != NULL) 1159s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1159s # } 1159s # } 1159s # 1159s # static void 1159s # org_project_useful_interface_proxy_init (OrgProjectUsefulInterfaceProxy *proxy) 1159s # { 1159s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1159s # proxy->priv = org_project_useful_interface_proxy_get_instance_private (proxy); 1159s # #else 1159s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY, OrgProjectUsefulInterfaceProxyPrivate); 1159s # #endif 1159s # 1159s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_useful_interface_interface_info ()); 1159s # } 1159s # 1159s # static void 1159s # org_project_useful_interface_proxy_class_init (OrgProjectUsefulInterfaceProxyClass *klass) 1159s # { 1159s # GObjectClass *gobject_class; 1159s # GDBusProxyClass *proxy_class; 1159s # 1159s # gobject_class = G_OBJECT_CLASS (klass); 1159s # gobject_class->finalize = org_project_useful_interface_proxy_finalize; 1159s # gobject_class->get_property = org_project_useful_interface_proxy_get_property; 1159s # gobject_class->set_property = org_project_useful_interface_proxy_set_property; 1159s # 1159s # proxy_class = G_DBUS_PROXY_CLASS (klass); 1159s # proxy_class->g_signal = org_project_useful_interface_proxy_g_signal; 1159s # proxy_class->g_properties_changed = org_project_useful_interface_proxy_g_properties_changed; 1159s # 1159s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1159s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceProxyPrivate)); 1159s # #endif 1159s # } 1159s # 1159s # static void 1159s # org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 1159s # { 1159s # } 1159s # 1159s # /** 1159s # * org_project_useful_interface_proxy_new: 1159s # * @connection: A #GDBusConnection. 1159s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1159s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1159s # * @object_path: An object path. 1159s # * @cancellable: (nullable): A #GCancellable or %NULL. 1159s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1159s # * @user_data: User data to pass to @callback. 1159s # * 1159s # * Asynchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new() for more details. 1159s # * 1159s # * 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()). 1159s # * You can then call org_project_useful_interface_proxy_new_finish() to get the result of the operation. 1159s # * 1159s # * See org_project_useful_interface_proxy_new_sync() for the synchronous, blocking version of this constructor. 1159s # */ 1159s # void 1159s # org_project_useful_interface_proxy_new ( 1159s # GDBusConnection *connection, 1159s # GDBusProxyFlags flags, 1159s # const gchar *name, 1159s # const gchar *object_path, 1159s # GCancellable *cancellable, 1159s # GAsyncReadyCallback callback, 1159s # gpointer user_data) 1159s # { 1159s # 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); 1159s # } 1159s # 1159s # /** 1159s # * org_project_useful_interface_proxy_new_finish: 1159s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new(). 1159s # * @error: Return location for error or %NULL 1159s # * 1159s # * Finishes an operation started with org_project_useful_interface_proxy_new(). 1159s # * 1159s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1159s # */ 1159s # OrgProjectUsefulInterface * 1159s # org_project_useful_interface_proxy_new_finish ( 1159s # GAsyncResult *res, 1159s # GError **error) 1159s # { 1159s # GObject *ret; 1159s # GObject *source_object; 1159s # source_object = g_async_result_get_source_object (res); 1159s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1159s # g_object_unref (source_object); 1159s # if (ret != NULL) 1159s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1159s # else 1159s # return NULL; 1159s # } 1159s # 1159s # /** 1159s # * org_project_useful_interface_proxy_new_sync: 1159s # * @connection: A #GDBusConnection. 1159s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1159s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1159s # * @object_path: An object path. 1159s # * @cancellable: (nullable): A #GCancellable or %NULL. 1159s # * @error: Return location for error or %NULL 1159s # * 1159s # * Synchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new_sync() for more details. 1159s # * 1159s # * The calling thread is blocked until a reply is received. 1159s # * 1159s # * See org_project_useful_interface_proxy_new() for the asynchronous version of this constructor. 1159s # * 1159s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1159s # */ 1159s # OrgProjectUsefulInterface * 1159s # org_project_useful_interface_proxy_new_sync ( 1159s # GDBusConnection *connection, 1159s # GDBusProxyFlags flags, 1159s # const gchar *name, 1159s # const gchar *object_path, 1159s # GCancellable *cancellable, 1159s # GError **error) 1159s # { 1159s # GInitable *ret; 1159s # 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); 1159s # if (ret != NULL) 1159s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1159s # else 1159s # return NULL; 1159s # } 1159s # 1159s # 1159s # /** 1159s # * org_project_useful_interface_proxy_new_for_bus: 1159s # * @bus_type: A #GBusType. 1159s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1159s # * @name: A bus name (well-known or unique). 1159s # * @object_path: An object path. 1159s # * @cancellable: (nullable): A #GCancellable or %NULL. 1159s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1159s # * @user_data: User data to pass to @callback. 1159s # * 1159s # * Like org_project_useful_interface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 1159s # * 1159s # * 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()). 1159s # * You can then call org_project_useful_interface_proxy_new_for_bus_finish() to get the result of the operation. 1159s # * 1159s # * See org_project_useful_interface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 1159s # */ 1159s # void 1159s # org_project_useful_interface_proxy_new_for_bus ( 1159s # GBusType bus_type, 1159s # GDBusProxyFlags flags, 1159s # const gchar *name, 1159s # const gchar *object_path, 1159s # GCancellable *cancellable, 1159s # GAsyncReadyCallback callback, 1159s # gpointer user_data) 1159s # { 1159s # 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); 1159s # } 1159s # 1159s # /** 1159s # * org_project_useful_interface_proxy_new_for_bus_finish: 1159s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new_for_bus(). 1159s # * @error: Return location for error or %NULL 1159s # * 1159s # * Finishes an operation started with org_project_useful_interface_proxy_new_for_bus(). 1159s # * 1159s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1159s # */ 1159s # OrgProjectUsefulInterface * 1159s # org_project_useful_interface_proxy_new_for_bus_finish ( 1159s # GAsyncResult *res, 1159s # GError **error) 1159s # { 1159s # GObject *ret; 1159s # GObject *source_object; 1159s # source_object = g_async_result_get_source_object (res); 1159s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1159s # g_object_unref (source_object); 1159s # if (ret != NULL) 1159s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1159s # else 1159s # return NULL; 1159s # } 1159s # 1159s # /** 1159s # * org_project_useful_interface_proxy_new_for_bus_sync: 1159s # * @bus_type: A #GBusType. 1159s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1159s # * @name: A bus name (well-known or unique). 1159s # * @object_path: An object path. 1159s # * @cancellable: (nullable): A #GCancellable or %NULL. 1159s # * @error: Return location for error or %NULL 1159s # * 1159s # * Like org_project_useful_interface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 1159s # * 1159s # * The calling thread is blocked until a reply is received. 1159s # * 1159s # * See org_project_useful_interface_proxy_new_for_bus() for the asynchronous version of this constructor. 1159s # * 1159s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1159s # */ 1159s # OrgProjectUsefulInterface * 1159s # org_project_useful_interface_proxy_new_for_bus_sync ( 1159s # GBusType bus_type, 1159s # GDBusProxyFlags flags, 1159s # const gchar *name, 1159s # const gchar *object_path, 1159s # GCancellable *cancellable, 1159s # GError **error) 1159s # { 1159s # GInitable *ret; 1159s # 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); 1159s # if (ret != NULL) 1159s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1159s # else 1159s # return NULL; 1159s # } 1159s # 1159s # 1159s # /* ------------------------------------------------------------------------ */ 1159s # 1159s # /** 1159s # * OrgProjectUsefulInterfaceSkeleton: 1159s # * 1159s # * The #OrgProjectUsefulInterfaceSkeleton structure contains only private data and should only be accessed using the provided API. 1159s # */ 1159s # 1159s # /** 1159s # * OrgProjectUsefulInterfaceSkeletonClass: 1159s # * @parent_class: The parent class. 1159s # * 1159s # * Class structure for #OrgProjectUsefulInterfaceSkeleton. 1159s # */ 1159s # 1159s # struct _OrgProjectUsefulInterfaceSkeletonPrivate 1159s # { 1159s # GValue *properties; 1159s # GList *changed_properties; 1159s # GSource *changed_properties_idle_source; 1159s # GMainContext *context; 1159s # GMutex lock; 1159s # }; 1159s # 1159s # static void 1159s # _org_project_useful_interface_skeleton_handle_method_call ( 1159s # GDBusConnection *connection G_GNUC_UNUSED, 1159s # const gchar *sender G_GNUC_UNUSED, 1159s # const gchar *object_path G_GNUC_UNUSED, 1159s # const gchar *interface_name, 1159s # const gchar *method_name, 1159s # GVariant *parameters, 1159s # GDBusMethodInvocation *invocation, 1159s # gpointer user_data) 1159s # { 1159s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1159s # _ExtendedGDBusMethodInfo *info; 1159s # GVariantIter iter; 1159s # GVariant *child; 1159s # GValue *paramv; 1159s # gsize num_params; 1159s # guint num_extra; 1159s # gsize n; 1159s # guint signal_id; 1159s # GValue return_value = G_VALUE_INIT; 1159s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 1159s # g_assert (info != NULL); 1159s # num_params = g_variant_n_children (parameters); 1159s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 1159s # n = 0; 1159s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1159s # g_value_set_object (¶mv[n++], skeleton); 1159s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 1159s # g_value_set_object (¶mv[n++], invocation); 1159s # if (info->pass_fdlist) 1159s # { 1159s # #ifdef G_OS_UNIX 1159s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 1159s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 1159s # #else 1159s # g_assert_not_reached (); 1159s # #endif 1159s # } 1159s # g_variant_iter_init (&iter, parameters); 1159s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1159s # { 1159s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 1159s # if (arg_info->use_gvariant) 1159s # { 1159s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1159s # g_value_set_variant (¶mv[n], child); 1159s # n++; 1159s # } 1159s # else 1159s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1159s # g_variant_unref (child); 1159s # } 1159s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1159s # g_value_init (&return_value, G_TYPE_BOOLEAN); 1159s # g_signal_emitv (paramv, signal_id, 0, &return_value); 1159s # if (!g_value_get_boolean (&return_value)) 1159s # 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); 1159s # g_value_unset (&return_value); 1159s # for (n = 0; n < num_params + num_extra; n++) 1159s # g_value_unset (¶mv[n]); 1159s # g_free (paramv); 1159s # } 1159s # 1159s # static GVariant * 1159s # _org_project_useful_interface_skeleton_handle_get_property ( 1159s # GDBusConnection *connection G_GNUC_UNUSED, 1159s # const gchar *sender G_GNUC_UNUSED, 1159s # const gchar *object_path G_GNUC_UNUSED, 1159s # const gchar *interface_name G_GNUC_UNUSED, 1159s # const gchar *property_name, 1159s # GError **error, 1159s # gpointer user_data) 1159s # { 1159s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1159s # GValue value = G_VALUE_INIT; 1159s # GParamSpec *pspec; 1159s # _ExtendedGDBusPropertyInfo *info; 1159s # GVariant *ret; 1159s # ret = NULL; 1159s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 1159s # g_assert (info != NULL); 1159s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1159s # if (pspec == NULL) 1159s # { 1159s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1159s # } 1159s # else 1159s # { 1159s # g_value_init (&value, pspec->value_type); 1159s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1159s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 1159s # g_value_unset (&value); 1159s # } 1159s # return ret; 1159s # } 1159s # 1159s # static gboolean 1159s # _org_project_useful_interface_skeleton_handle_set_property ( 1159s # GDBusConnection *connection G_GNUC_UNUSED, 1159s # const gchar *sender G_GNUC_UNUSED, 1159s # const gchar *object_path G_GNUC_UNUSED, 1159s # const gchar *interface_name G_GNUC_UNUSED, 1159s # const gchar *property_name, 1159s # GVariant *variant, 1159s # GError **error, 1159s # gpointer user_data) 1159s # { 1159s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1159s # GValue value = G_VALUE_INIT; 1159s # GParamSpec *pspec; 1159s # _ExtendedGDBusPropertyInfo *info; 1159s # gboolean ret; 1159s # ret = FALSE; 1159s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 1159s # g_assert (info != NULL); 1159s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1159s # if (pspec == NULL) 1159s # { 1159s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1159s # } 1159s # else 1159s # { 1159s # if (info->use_gvariant) 1159s # g_value_set_variant (&value, variant); 1159s # else 1159s # g_dbus_gvariant_to_gvalue (variant, &value); 1159s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1159s # g_value_unset (&value); 1159s # ret = TRUE; 1159s # } 1159s # return ret; 1159s # } 1159s # 1159s # static const GDBusInterfaceVTable _org_project_useful_interface_skeleton_vtable = 1159s # { 1159s # _org_project_useful_interface_skeleton_handle_method_call, 1159s # _org_project_useful_interface_skeleton_handle_get_property, 1159s # _org_project_useful_interface_skeleton_handle_set_property, 1159s # {NULL} 1159s # }; 1159s # 1159s # static GDBusInterfaceInfo * 1159s # org_project_useful_interface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1159s # { 1159s # return org_project_useful_interface_interface_info (); 1159s # } 1159s # 1159s # static GDBusInterfaceVTable * 1159s # org_project_useful_interface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1159s # { 1159s # return (GDBusInterfaceVTable *) &_org_project_useful_interface_skeleton_vtable; 1159s # } 1159s # 1159s # static GVariant * 1159s # org_project_useful_interface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 1159s # { 1159s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (_skeleton); 1159s # 1159s # GVariantBuilder builder; 1159s # guint n; 1159s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 1159s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 1159s # #else 1159s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 1159s # #endif 1159s # if (_org_project_useful_interface_interface_info.parent_struct.properties == NULL) 1159s # goto out; 1159s # for (n = 0; _org_project_useful_interface_interface_info.parent_struct.properties[n] != NULL; n++) 1159s # { 1159s # GDBusPropertyInfo *info = _org_project_useful_interface_interface_info.parent_struct.properties[n]; 1159s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 1159s # { 1159s # GVariant *value; 1159s # 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); 1159s # if (value != NULL) 1159s # { 1159s # g_variant_take_ref (value); 1159s # g_variant_builder_add (&builder, "{sv}", info->name, value); 1159s # g_variant_unref (value); 1159s # } 1159s # } 1159s # } 1159s # out: 1159s # return g_variant_builder_end (&builder); 1159s # } 1159s # 1159s # static void 1159s # org_project_useful_interface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 1159s # { 1159s # } 1159s # 1159s # static void org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface); 1159s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1159s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1159s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceSkeleton) 1159s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 1159s # 1159s # #else 1159s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1159s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 1159s # 1159s # #endif 1159s # static void 1159s # org_project_useful_interface_skeleton_finalize (GObject *object) 1159s # { 1159s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (object); 1159s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 1159s # if (skeleton->priv->changed_properties_idle_source != NULL) 1159s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 1159s # g_main_context_unref (skeleton->priv->context); 1159s # g_mutex_clear (&skeleton->priv->lock); 1159s # G_OBJECT_CLASS (org_project_useful_interface_skeleton_parent_class)->finalize (object); 1159s # } 1159s # 1159s # static void 1159s # org_project_useful_interface_skeleton_init (OrgProjectUsefulInterfaceSkeleton *skeleton) 1159s # { 1159s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1159s # skeleton->priv = org_project_useful_interface_skeleton_get_instance_private (skeleton); 1159s # #else 1159s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, OrgProjectUsefulInterfaceSkeletonPrivate); 1159s # #endif 1159s # 1159s # g_mutex_init (&skeleton->priv->lock); 1159s # skeleton->priv->context = g_main_context_ref_thread_default (); 1159s # } 1159s # 1159s # static void 1159s # org_project_useful_interface_skeleton_class_init (OrgProjectUsefulInterfaceSkeletonClass *klass) 1159s # { 1159s # GObjectClass *gobject_class; 1159s # GDBusInterfaceSkeletonClass *skeleton_class; 1159s # 1159s # gobject_class = G_OBJECT_CLASS (klass); 1159s # gobject_class->finalize = org_project_useful_interface_skeleton_finalize; 1159s # 1159s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 1159s # skeleton_class->get_info = org_project_useful_interface_skeleton_dbus_interface_get_info; 1159s # skeleton_class->get_properties = org_project_useful_interface_skeleton_dbus_interface_get_properties; 1159s # skeleton_class->flush = org_project_useful_interface_skeleton_dbus_interface_flush; 1159s # skeleton_class->get_vtable = org_project_useful_interface_skeleton_dbus_interface_get_vtable; 1159s # 1159s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1159s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceSkeletonPrivate)); 1159s # #endif 1159s # } 1159s # 1159s # static void 1159s # org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 1159s # { 1159s # } 1159s # 1159s # /** 1159s # * org_project_useful_interface_skeleton_new: 1159s # * 1159s # * Creates a skeleton object for the D-Bus interface org.project.UsefulInterface. 1159s # * 1159s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceSkeleton): The skeleton object. 1159s # */ 1159s # OrgProjectUsefulInterface * 1159s # org_project_useful_interface_skeleton_new (void) 1159s # { 1159s # return ORG_PROJECT_USEFUL_INTERFACE (g_object_new (TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, NULL)); 1159s # } 1159s # Error: 1159s # 1159s # /tmp/tmpatbfkbk2/tmpzgxvlb7g.xml: 1159s # 1159s # 1159s # 1159s # 1159s # 1159s # 1159s # 1159s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpatbfkbk2/tmpzgxvlb7g.xml', '--output', '-', '--body'] 1159s # Return code: 0 1159s # Output: 1159s # /* 1159s # * This file is generated by gdbus-codegen, do not modify it. 1159s # * 1159s # * The license of this code is the same as for the D-Bus interface description 1159s # * it was derived from. Note that it links to GLib, so must comply with the 1159s # * LGPL linking clauses. 1159s # */ 1159s # 1159s # #ifdef HAVE_CONFIG_H 1159s # # include "config.h" 1159s # #endif 1159s # 1159s # #include 1159s # #ifdef G_OS_UNIX 1159s # # include 1159s # #endif 1159s # 1159s # #ifdef G_ENABLE_DEBUG 1159s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 1159s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 1159s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 1159s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 1159s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 1159s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 1159s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 1159s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 1159s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 1159s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 1159s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 1159s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 1159s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 1159s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 1159s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 1159s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 1159s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 1159s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 1159s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 1159s # #else /* !G_ENABLE_DEBUG */ 1159s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 1159s # * Do not access GValues directly in your code. Instead, use the 1159s # * g_value_get_*() functions 1159s # */ 1159s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 1159s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 1159s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 1159s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 1159s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 1159s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 1159s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 1159s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 1159s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 1159s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 1159s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 1159s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 1159s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 1159s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 1159s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 1159s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 1159s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 1159s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 1159s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 1159s # #endif /* !G_ENABLE_DEBUG */ 1159s # 1159s # typedef struct 1159s # { 1159s # GDBusArgInfo parent_struct; 1159s # gboolean use_gvariant; 1159s # } _ExtendedGDBusArgInfo; 1159s # 1159s # typedef struct 1159s # { 1159s # GDBusMethodInfo parent_struct; 1159s # const gchar *signal_name; 1159s # gboolean pass_fdlist; 1159s # } _ExtendedGDBusMethodInfo; 1159s # 1159s # typedef struct 1159s # { 1159s # GDBusSignalInfo parent_struct; 1159s # const gchar *signal_name; 1159s # } _ExtendedGDBusSignalInfo; 1159s # 1159s # typedef struct 1159s # { 1159s # GDBusPropertyInfo parent_struct; 1159s # const gchar *hyphen_name; 1159s # guint use_gvariant : 1; 1159s # guint emits_changed_signal : 1; 1159s # } _ExtendedGDBusPropertyInfo; 1159s # 1159s # typedef struct 1159s # { 1159s # GDBusInterfaceInfo parent_struct; 1159s # const gchar *hyphen_name; 1159s # } _ExtendedGDBusInterfaceInfo; 1159s # 1159s # typedef struct 1159s # { 1159s # const _ExtendedGDBusPropertyInfo *info; 1159s # guint prop_id; 1159s # GValue orig_value; /* the value before the change */ 1159s # } ChangedProperty; 1159s # 1159s # static void 1159s # _changed_property_free (ChangedProperty *data) 1159s # { 1159s # g_value_unset (&data->orig_value); 1159s # g_free (data); 1159s # } 1159s # 1159s # static gboolean 1159s # _g_strv_equal0 (gchar **a, gchar **b) 1159s # { 1159s # gboolean ret = FALSE; 1159s # guint n; 1159s # if (a == NULL && b == NULL) 1159s # { 1159s # ret = TRUE; 1159s # goto out; 1159s # } 1159s # if (a == NULL || b == NULL) 1159s # goto out; 1159s # if (g_strv_length (a) != g_strv_length (b)) 1159s # goto out; 1159s # for (n = 0; a[n] != NULL; n++) 1159s # if (g_strcmp0 (a[n], b[n]) != 0) 1159s # goto out; 1159s # ret = TRUE; 1159s # out: 1159s # return ret; 1159s # } 1159s # 1159s # static gboolean 1159s # _g_variant_equal0 (GVariant *a, GVariant *b) 1159s # { 1159s # gboolean ret = FALSE; 1159s # if (a == NULL && b == NULL) 1159s # { 1159s # ret = TRUE; 1159s # goto out; 1159s # } 1159s # if (a == NULL || b == NULL) 1159s # goto out; 1159s # ret = g_variant_equal (a, b); 1159s # out: 1159s # return ret; 1159s # } 1159s # 1159s # G_GNUC_UNUSED static gboolean 1159s # _g_value_equal (const GValue *a, const GValue *b) 1159s # { 1159s # gboolean ret = FALSE; 1159s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 1159s # switch (G_VALUE_TYPE (a)) 1159s # { 1159s # case G_TYPE_BOOLEAN: 1159s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 1159s # break; 1159s # case G_TYPE_UCHAR: 1159s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 1159s # break; 1159s # case G_TYPE_INT: 1159s # ret = (g_value_get_int (a) == g_value_get_int (b)); 1159s # break; 1159s # case G_TYPE_UINT: 1159s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 1159s # break; 1159s # case G_TYPE_INT64: 1159s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 1159s # break; 1159s # case G_TYPE_UINT64: 1159s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 1159s # break; 1159s # case G_TYPE_DOUBLE: 1159s # { 1159s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 1159s # gdouble da = g_value_get_double (a); 1159s # gdouble db = g_value_get_double (b); 1159s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 1159s # } 1159s # break; 1159s # case G_TYPE_STRING: 1159s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 1159s # break; 1159s # case G_TYPE_VARIANT: 1159s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 1159s # break; 1159s # default: 1159s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 1159s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 1159s # else 1159s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 1159s # break; 1159s # } 1159s # return ret; 1159s # } 1159s # 1159s # static void 1159s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT ( 1159s # GClosure *closure, 1159s # GValue *return_value, 1159s # unsigned int n_param_values, 1159s # const GValue *param_values, 1159s # void *invocation_hint G_GNUC_UNUSED, 1159s # void *marshal_data) 1159s # { 1159s # typedef gboolean (*_GDbusCodegenMarshalBoolean_ObjectFunc) 1159s # (void *data1, 1159s # GDBusMethodInvocation *arg_method_invocation, 1159s # void *data2); 1159s # _GDbusCodegenMarshalBoolean_ObjectFunc callback; 1159s # GCClosure *cc = (GCClosure*) closure; 1159s # void *data1, *data2; 1159s # gboolean v_return; 1159s # 1159s # g_return_if_fail (return_value != NULL); 1159s # g_return_if_fail (n_param_values == 2); 1159s # 1159s # if (G_CCLOSURE_SWAP_DATA (closure)) 1159s # { 1159s # data1 = closure->data; 1159s # data2 = g_value_peek_pointer (param_values + 0); 1159s # } 1159s # else 1159s # { 1159s # data1 = g_value_peek_pointer (param_values + 0); 1159s # data2 = closure->data; 1159s # } 1159s # 1159s # callback = (_GDbusCodegenMarshalBoolean_ObjectFunc) 1159s # (marshal_data ? marshal_data : cc->callback); 1159s # 1159s # v_return = 1159s # callback (data1, 1159s # g_marshal_value_peek_object (param_values + 1), 1159s # data2); 1159s # 1159s # g_value_set_boolean (return_value, v_return); 1159s # } 1159s # 1159s # /* ------------------------------------------------------------------------ 1159s # * Code for interface org.project.UsefulInterface 1159s # * ------------------------------------------------------------------------ 1159s # */ 1159s # 1159s # /** 1159s # * SECTION:OrgProjectUsefulInterface 1159s # * @title: OrgProjectUsefulInterface 1159s # * @short_description: Generated C code for the org.project.UsefulInterface D-Bus interface 1159s # * 1159s # * This section contains code for working with the org.project.UsefulInterface D-Bus interface in C. 1159s # */ 1159s # 1159s # /* ---- Introspection data for org.project.UsefulInterface ---- */ 1159s # 1159s # static const _ExtendedGDBusArgInfo _org_project_useful_interface_method_info_single_arg_method_q_OUT_ARG_arg_q = 1159s # { 1159s # { 1159s # -1, 1159s # (gchar *) "arg_q", 1159s # (gchar *) "q", 1159s # NULL 1159s # }, 1159s # FALSE 1159s # }; 1159s # 1159s # static const GDBusArgInfo * const _org_project_useful_interface_method_info_single_arg_method_q_OUT_ARG_pointers[] = 1159s # { 1159s # &_org_project_useful_interface_method_info_single_arg_method_q_OUT_ARG_arg_q.parent_struct, 1159s # NULL 1159s # }; 1159s # 1159s # static const _ExtendedGDBusMethodInfo _org_project_useful_interface_method_info_single_arg_method_q = 1159s # { 1159s # { 1159s # -1, 1159s # (gchar *) "SingleArgMethodQ", 1159s # NULL, 1159s # (GDBusArgInfo **) &_org_project_useful_interface_method_info_single_arg_method_q_OUT_ARG_pointers, 1159s # NULL 1159s # }, 1159s # "handle-single-arg-method-q", 1159s # FALSE 1159s # }; 1159s # 1159s # static const GDBusMethodInfo * const _org_project_useful_interface_method_info_pointers[] = 1159s # { 1159s # &_org_project_useful_interface_method_info_single_arg_method_q.parent_struct, 1159s # NULL 1159s # }; 1159s # 1159s # static const _ExtendedGDBusInterfaceInfo _org_project_useful_interface_interface_info = 1159s # { 1159s # { 1159s # -1, 1159s # (gchar *) "org.project.UsefulInterface", 1159s # (GDBusMethodInfo **) &_org_project_useful_interface_method_info_pointers, 1159s # NULL, 1159s # NULL, 1159s # NULL 1159s # }, 1159s # "org-project-useful-interface", 1159s # }; 1159s # 1159s # 1159s # /** 1159s # * org_project_useful_interface_interface_info: 1159s # * 1159s # * Gets a machine-readable description of the org.project.UsefulInterface D-Bus interface. 1159s # * 1159s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 1159s # */ 1159s # GDBusInterfaceInfo * 1159s # org_project_useful_interface_interface_info (void) 1159s # { 1159s # return (GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct; 1159s # } 1159s # 1159s # /** 1159s # * org_project_useful_interface_override_properties: 1159s # * @klass: The class structure for a #GObject derived class. 1159s # * @property_id_begin: The property id to assign to the first overridden property. 1159s # * 1159s # * Overrides all #GObject properties in the #OrgProjectUsefulInterface interface for a concrete class. 1159s # * The properties are overridden in the order they are defined. 1159s # * 1159s # * Returns: The last property id. 1159s # */ 1159s # guint 1159s # org_project_useful_interface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 1159s # { 1159s # return property_id_begin - 1; 1159s # } 1159s # 1159s # 1159s # inline static void 1159s # org_project_useful_interface_method_marshal_single_arg_method_q ( 1159s # GClosure *closure, 1159s # GValue *return_value, 1159s # unsigned int n_param_values, 1159s # const GValue *param_values, 1159s # void *invocation_hint, 1159s # void *marshal_data) 1159s # { 1159s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT (closure, 1159s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1159s # } 1159s # 1159s # 1159s # /** 1159s # * OrgProjectUsefulInterface: 1159s # * 1159s # * Abstract interface type for the D-Bus interface org.project.UsefulInterface. 1159s # */ 1159s # 1159s # /** 1159s # * OrgProjectUsefulInterfaceIface: 1159s # * @parent_iface: The parent interface. 1159s # * @handle_single_arg_method_q: Handler for the #OrgProjectUsefulInterface::handle-single-arg-method-q signal. 1159s # * 1159s # * Virtual table for the D-Bus interface org.project.UsefulInterface. 1159s # */ 1159s # 1159s # typedef OrgProjectUsefulInterfaceIface OrgProjectUsefulInterfaceInterface; 1159s # G_DEFINE_INTERFACE (OrgProjectUsefulInterface, org_project_useful_interface, G_TYPE_OBJECT) 1159s # 1159s # static void 1159s # org_project_useful_interface_default_init (OrgProjectUsefulInterfaceIface *iface) 1159s # { 1159s # /* GObject signals for incoming D-Bus method calls: */ 1159s # /** 1159s # * OrgProjectUsefulInterface::handle-single-arg-method-q: 1159s # * @object: A #OrgProjectUsefulInterface. 1159s # * @invocation: A #GDBusMethodInvocation. 1159s # * 1159s # * Signal emitted when a remote caller is invoking the SingleArgMethodQ() D-Bus method. 1159s # * 1159s # * 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. 1159s # * 1159s # * 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. 1159s # */ 1159s # g_signal_new ("handle-single-arg-method-q", 1159s # G_TYPE_FROM_INTERFACE (iface), 1159s # G_SIGNAL_RUN_LAST, 1159s # G_STRUCT_OFFSET (OrgProjectUsefulInterfaceIface, handle_single_arg_method_q), 1159s # g_signal_accumulator_true_handled, 1159s # NULL, 1159s # org_project_useful_interface_method_marshal_single_arg_method_q, 1159s # G_TYPE_BOOLEAN, 1159s # 1, 1159s # G_TYPE_DBUS_METHOD_INVOCATION); 1159s # 1159s # } 1159s # 1159s # /** 1159s # * org_project_useful_interface_call_single_arg_method_q: 1159s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1159s # * @cancellable: (nullable): A #GCancellable or %NULL. 1159s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL. 1159s # * @user_data: User data to pass to @callback. 1159s # * 1159s # * Asynchronously invokes the SingleArgMethodQ() D-Bus method on @proxy. 1159s # * 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()). 1159s # * You can then call org_project_useful_interface_call_single_arg_method_q_finish() to get the result of the operation. 1159s # * 1159s # * See org_project_useful_interface_call_single_arg_method_q_sync() for the synchronous, blocking version of this method. 1159s # */ 1159s # void 1159s # org_project_useful_interface_call_single_arg_method_q ( 1159s # OrgProjectUsefulInterface *proxy, 1159s # GCancellable *cancellable, 1159s # GAsyncReadyCallback callback, 1159s # gpointer user_data) 1159s # { 1159s # g_dbus_proxy_call (G_DBUS_PROXY (proxy), 1159s # "SingleArgMethodQ", 1159s # g_variant_new ("()"), 1159s # G_DBUS_CALL_FLAGS_NONE, 1159s # -1, 1159s # cancellable, 1159s # callback, 1159s # user_data); 1159s # } 1159s # 1159s # /** 1159s # * org_project_useful_interface_call_single_arg_method_q_finish: 1159s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1159s # * @out_arg_q: (out) (optional): Return location for return parameter or %NULL to ignore. 1159s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_call_single_arg_method_q(). 1159s # * @error: Return location for error or %NULL. 1159s # * 1159s # * Finishes an operation started with org_project_useful_interface_call_single_arg_method_q(). 1159s # * 1159s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1159s # */ 1159s # gboolean 1159s # org_project_useful_interface_call_single_arg_method_q_finish ( 1159s # OrgProjectUsefulInterface *proxy, 1159s # guint16 *out_arg_q, 1159s # GAsyncResult *res, 1159s # GError **error) 1159s # { 1159s # GVariant *_ret; 1159s # _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error); 1159s # if (_ret == NULL) 1159s # goto _out; 1159s # g_variant_get (_ret, 1159s # "(q)", 1159s # out_arg_q); 1159s # g_variant_unref (_ret); 1159s # _out: 1159s # return _ret != NULL; 1159s # } 1159s # 1159s # /** 1159s # * org_project_useful_interface_call_single_arg_method_q_sync: 1159s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1159s # * @out_arg_q: (out) (optional): Return location for return parameter or %NULL to ignore. 1159s # * @cancellable: (nullable): A #GCancellable or %NULL. 1159s # * @error: Return location for error or %NULL. 1159s # * 1159s # * Synchronously invokes the SingleArgMethodQ() D-Bus method on @proxy. The calling thread is blocked until a reply is received. 1159s # * 1159s # * See org_project_useful_interface_call_single_arg_method_q() for the asynchronous version of this method. 1159s # * 1159s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1159s # */ 1159s # gboolean 1159s # org_project_useful_interface_call_single_arg_method_q_sync ( 1159s # OrgProjectUsefulInterface *proxy, 1159s # guint16 *out_arg_q, 1159s # GCancellable *cancellable, 1159s # GError **error) 1159s # { 1159s # GVariant *_ret; 1159s # _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy), 1159s # "SingleArgMethodQ", 1159s # g_variant_new ("()"), 1159s # G_DBUS_CALL_FLAGS_NONE, 1159s # -1, 1159s # cancellable, 1159s # error); 1159s # if (_ret == NULL) 1159s # goto _out; 1159s # g_variant_get (_ret, 1159s # "(q)", 1159s # out_arg_q); 1159s # g_variant_unref (_ret); 1159s # _out: 1159s # return _ret != NULL; 1159s # } 1159s # 1159s # /** 1159s # * org_project_useful_interface_complete_single_arg_method_q: 1159s # * @object: A #OrgProjectUsefulInterface. 1159s # * @invocation: (transfer full): A #GDBusMethodInvocation. 1159s # * @arg_q: Parameter to return. 1159s # * 1159s # * 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. 1159s # * 1159s # * This method will free @invocation, you cannot use it afterwards. 1159s # */ 1159s # void 1159s # org_project_useful_interface_complete_single_arg_method_q ( 1159s # OrgProjectUsefulInterface *object G_GNUC_UNUSED, 1159s # GDBusMethodInvocation *invocation, 1159s # guint16 arg_q) 1159s # { 1159s # g_dbus_method_invocation_return_value (invocation, 1159s # g_variant_new ("(q)", 1159s # arg_q)); 1159s # } 1159s # 1159s # /* ------------------------------------------------------------------------ */ 1159s # 1159s # /** 1159s # * OrgProjectUsefulInterfaceProxy: 1159s # * 1159s # * The #OrgProjectUsefulInterfaceProxy structure contains only private data and should only be accessed using the provided API. 1159s # */ 1159s # 1159s # /** 1159s # * OrgProjectUsefulInterfaceProxyClass: 1159s # * @parent_class: The parent class. 1159s # * 1159s # * Class structure for #OrgProjectUsefulInterfaceProxy. 1159s # */ 1159s # 1159s # struct _OrgProjectUsefulInterfaceProxyPrivate 1159s # { 1159s # GData *qdata; 1159s # }; 1159s # 1159s # static void org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface); 1159s # 1159s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1159s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 1159s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceProxy) 1159s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 1159s # 1159s # #else 1159s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 1159s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 1159s # 1159s # #endif 1159s # static void 1159s # org_project_useful_interface_proxy_finalize (GObject *object) 1159s # { 1159s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (object); 1159s # g_datalist_clear (&proxy->priv->qdata); 1159s # G_OBJECT_CLASS (org_project_useful_interface_proxy_parent_class)->finalize (object); 1159s # } 1159s # 1159s # static void 1159s # org_project_useful_interface_proxy_get_property (GObject *object G_GNUC_UNUSED, 1159s # guint prop_id G_GNUC_UNUSED, 1159s # GValue *value G_GNUC_UNUSED, 1159s # GParamSpec *pspec G_GNUC_UNUSED) 1159s # { 1159s # } 1159s # 1159s # static void 1159s # org_project_useful_interface_proxy_set_property (GObject *object G_GNUC_UNUSED, 1159s # guint prop_id G_GNUC_UNUSED, 1159s # const GValue *value G_GNUC_UNUSED, 1159s # GParamSpec *pspec G_GNUC_UNUSED) 1159s # { 1159s # } 1159s # 1159s # static void 1159s # org_project_useful_interface_proxy_g_signal (GDBusProxy *proxy, 1159s # const gchar *sender_name G_GNUC_UNUSED, 1159s # const gchar *signal_name, 1159s # GVariant *parameters) 1159s # { 1159s # _ExtendedGDBusSignalInfo *info; 1159s # GVariantIter iter; 1159s # GVariant *child; 1159s # GValue *paramv; 1159s # gsize num_params; 1159s # gsize n; 1159s # guint signal_id; 1159s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, signal_name); 1159s # if (info == NULL) 1159s # return; 1159s # num_params = g_variant_n_children (parameters); 1159s # paramv = g_new0 (GValue, num_params + 1); 1159s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1159s # g_value_set_object (¶mv[0], proxy); 1159s # g_variant_iter_init (&iter, parameters); 1159s # n = 1; 1159s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1159s # { 1159s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 1159s # if (arg_info->use_gvariant) 1159s # { 1159s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1159s # g_value_set_variant (¶mv[n], child); 1159s # n++; 1159s # } 1159s # else 1159s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1159s # g_variant_unref (child); 1159s # } 1159s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1159s # g_signal_emitv (paramv, signal_id, 0, NULL); 1159s # for (n = 0; n < num_params + 1; n++) 1159s # g_value_unset (¶mv[n]); 1159s # g_free (paramv); 1159s # } 1159s # 1159s # static void 1159s # org_project_useful_interface_proxy_g_properties_changed (GDBusProxy *_proxy, 1159s # GVariant *changed_properties, 1159s # const gchar *const *invalidated_properties) 1159s # { 1159s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (_proxy); 1159s # guint n; 1159s # const gchar *key; 1159s # GVariantIter *iter; 1159s # _ExtendedGDBusPropertyInfo *info; 1159s # g_variant_get (changed_properties, "a{sv}", &iter); 1159s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 1159s # { 1159s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, key); 1159s # g_datalist_remove_data (&proxy->priv->qdata, key); 1159s # if (info != NULL) 1159s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1159s # } 1159s # g_variant_iter_free (iter); 1159s # for (n = 0; invalidated_properties[n] != NULL; n++) 1159s # { 1159s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, invalidated_properties[n]); 1159s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 1159s # if (info != NULL) 1159s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1159s # } 1159s # } 1159s # 1159s # static void 1159s # org_project_useful_interface_proxy_init (OrgProjectUsefulInterfaceProxy *proxy) 1159s # { 1159s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1159s # proxy->priv = org_project_useful_interface_proxy_get_instance_private (proxy); 1159s # #else 1159s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY, OrgProjectUsefulInterfaceProxyPrivate); 1159s # #endif 1159s # 1159s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_useful_interface_interface_info ()); 1159s # } 1159s # 1159s # static void 1159s # org_project_useful_interface_proxy_class_init (OrgProjectUsefulInterfaceProxyClass *klass) 1159s # { 1159s # GObjectClass *gobject_class; 1159s # GDBusProxyClass *proxy_class; 1159s # 1159s # gobject_class = G_OBJECT_CLASS (klass); 1159s # gobject_class->finalize = org_project_useful_interface_proxy_finalize; 1159s # gobject_class->get_property = org_project_useful_interface_proxy_get_property; 1159s # gobject_class->set_property = org_project_useful_interface_proxy_set_property; 1159s # 1159s # proxy_class = G_DBUS_PROXY_CLASS (klass); 1159s # proxy_class->g_signal = org_project_useful_interface_proxy_g_signal; 1159s # proxy_class->g_properties_changed = org_project_useful_interface_proxy_g_properties_changed; 1159s # 1159s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1159s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceProxyPrivate)); 1159s # #endif 1159s # } 1159s # 1159s # static void 1159s # org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 1159s # { 1159s # } 1159s # 1159s # /** 1159s # * org_project_useful_interface_proxy_new: 1159s # * @connection: A #GDBusConnection. 1159s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1159s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1159s # * @object_path: An object path. 1159s # * @cancellable: (nullable): A #GCancellable or %NULL. 1159s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1159s # * @user_data: User data to pass to @callback. 1159s # * 1159s # * Asynchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new() for more details. 1159s # * 1159s # * 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()). 1159s # * You can then call org_project_useful_interface_proxy_new_finish() to get the result of the operation. 1159s # * 1159s # * See org_project_useful_interface_proxy_new_sync() for the synchronous, blocking version of this constructor. 1159s # */ 1159s # void 1159s # org_project_useful_interface_proxy_new ( 1159s # GDBusConnection *connection, 1159s # GDBusProxyFlags flags, 1159s # const gchar *name, 1159s # const gchar *object_path, 1159s # GCancellable *cancellable, 1159s # GAsyncReadyCallback callback, 1159s # gpointer user_data) 1159s # { 1159s # 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); 1159s # } 1159s # 1159s # /** 1159s # * org_project_useful_interface_proxy_new_finish: 1159s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new(). 1159s # * @error: Return location for error or %NULL 1159s # * 1159s # * Finishes an operation started with org_project_useful_interface_proxy_new(). 1159s # * 1159s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1159s # */ 1159s # OrgProjectUsefulInterface * 1159s # org_project_useful_interface_proxy_new_finish ( 1159s # GAsyncResult *res, 1159s # GError **error) 1159s # { 1159s # GObject *ret; 1159s # GObject *source_object; 1159s # source_object = g_async_result_get_source_object (res); 1159s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1159s # g_object_unref (source_object); 1159s # if (ret != NULL) 1159s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1159s # else 1159s # return NULL; 1159s # } 1159s # 1159s # /** 1159s # * org_project_useful_interface_proxy_new_sync: 1159s # * @connection: A #GDBusConnection. 1159s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1159s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1159s # * @object_path: An object path. 1159s # * @cancellable: (nullable): A #GCancellable or %NULL. 1159s # * @error: Return location for error or %NULL 1159s # * 1159s # * Synchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new_sync() for more details. 1159s # * 1159s # * The calling thread is blocked until a reply is received. 1159s # * 1159s # * See org_project_useful_interface_proxy_new() for the asynchronous version of this constructor. 1159s # * 1159s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1159s # */ 1159s # OrgProjectUsefulInterface * 1159s # org_project_useful_interface_proxy_new_sync ( 1159s # GDBusConnection *connection, 1159s # GDBusProxyFlags flags, 1159s # const gchar *name, 1159s # const gchar *object_path, 1159s # GCancellable *cancellable, 1159s # GError **error) 1159s # { 1159s # GInitable *ret; 1159s # 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); 1159s # if (ret != NULL) 1159s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1159s # else 1159s # return NULL; 1159s # } 1159s # 1159s # 1159s # /** 1159s # * org_project_useful_interface_proxy_new_for_bus: 1159s # * @bus_type: A #GBusType. 1159s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1159s # * @name: A bus name (well-known or unique). 1159s # * @object_path: An object path. 1159s # * @cancellable: (nullable): A #GCancellable or %NULL. 1159s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1159s # * @user_data: User data to pass to @callback. 1159s # * 1159s # * Like org_project_useful_interface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 1159s # * 1159s # * 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()). 1159s # * You can then call org_project_useful_interface_proxy_new_for_bus_finish() to get the result of the operation. 1159s # * 1159s # * See org_project_useful_interface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 1159s # */ 1159s # void 1159s # org_project_useful_interface_proxy_new_for_bus ( 1159s # GBusType bus_type, 1159s # GDBusProxyFlags flags, 1159s # const gchar *name, 1159s # const gchar *object_path, 1159s # GCancellable *cancellable, 1159s # GAsyncReadyCallback callback, 1159s # gpointer user_data) 1159s # { 1159s # 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); 1159s # } 1159s # 1159s # /** 1159s # * org_project_useful_interface_proxy_new_for_bus_finish: 1159s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new_for_bus(). 1159s # * @error: Return location for error or %NULL 1159s # * 1159s # * Finishes an operation started with org_project_useful_interface_proxy_new_for_bus(). 1159s # * 1159s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1159s # */ 1159s # OrgProjectUsefulInterface * 1159s # org_project_useful_interface_proxy_new_for_bus_finish ( 1159s # GAsyncResult *res, 1159s # GError **error) 1159s # { 1159s # GObject *ret; 1159s # GObject *source_object; 1159s # source_object = g_async_result_get_source_object (res); 1159s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1159s # g_object_unref (source_object); 1159s # if (ret != NULL) 1159s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1159s # else 1159s # return NULL; 1159s # } 1159s # 1159s # /** 1159s # * org_project_useful_interface_proxy_new_for_bus_sync: 1159s # * @bus_type: A #GBusType. 1159s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1159s # * @name: A bus name (well-known or unique). 1159s # * @object_path: An object path. 1159s # * @cancellable: (nullable): A #GCancellable or %NULL. 1159s # * @error: Return location for error or %NULL 1159s # * 1159s # * Like org_project_useful_interface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 1159s # * 1159s # * The calling thread is blocked until a reply is received. 1159s # * 1159s # * See org_project_useful_interface_proxy_new_for_bus() for the asynchronous version of this constructor. 1159s # * 1159s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1159s # */ 1159s # OrgProjectUsefulInterface * 1159s # org_project_useful_interface_proxy_new_for_bus_sync ( 1159s # GBusType bus_type, 1159s # GDBusProxyFlags flags, 1159s # const gchar *name, 1159s # const gchar *object_path, 1159s # GCancellable *cancellable, 1159s # GError **error) 1159s # { 1159s # GInitable *ret; 1159s # 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); 1159s # if (ret != NULL) 1159s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1159s # else 1159s # return NULL; 1159s # } 1159s # 1159s # 1159s # /* ------------------------------------------------------------------------ */ 1159s # 1159s # /** 1159s # * OrgProjectUsefulInterfaceSkeleton: 1159s # * 1159s # * The #OrgProjectUsefulInterfaceSkeleton structure contains only private data and should only be accessed using the provided API. 1159s # */ 1159s # 1159s # /** 1159s # * OrgProjectUsefulInterfaceSkeletonClass: 1159s # * @parent_class: The parent class. 1159s # * 1159s # * Class structure for #OrgProjectUsefulInterfaceSkeleton. 1159s # */ 1159s # 1159s # struct _OrgProjectUsefulInterfaceSkeletonPrivate 1159s # { 1159s # GValue *properties; 1159s # GList *changed_properties; 1159s # GSource *changed_properties_idle_source; 1159s # GMainContext *context; 1159s # GMutex lock; 1159s # }; 1159s # 1159s # static void 1159s # _org_project_useful_interface_skeleton_handle_method_call ( 1159s # GDBusConnection *connection G_GNUC_UNUSED, 1159s # const gchar *sender G_GNUC_UNUSED, 1159s # const gchar *object_path G_GNUC_UNUSED, 1159s # const gchar *interface_name, 1159s # const gchar *method_name, 1159s # GVariant *parameters, 1159s # GDBusMethodInvocation *invocation, 1159s # gpointer user_data) 1159s # { 1159s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1159s # _ExtendedGDBusMethodInfo *info; 1159s # GVariantIter iter; 1159s # GVariant *child; 1159s # GValue *paramv; 1159s # gsize num_params; 1159s # guint num_extra; 1159s # gsize n; 1159s # guint signal_id; 1159s # GValue return_value = G_VALUE_INIT; 1159s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 1159s # g_assert (info != NULL); 1159s # num_params = g_variant_n_children (parameters); 1159s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 1159s # n = 0; 1159s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1159s # g_value_set_object (¶mv[n++], skeleton); 1159s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 1159s # g_value_set_object (¶mv[n++], invocation); 1159s # if (info->pass_fdlist) 1159s # { 1159s # #ifdef G_OS_UNIX 1159s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 1159s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 1159s # #else 1159s # g_assert_not_reached (); 1159s # #endif 1159s # } 1159s # g_variant_iter_init (&iter, parameters); 1159s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1159s # { 1159s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 1159s # if (arg_info->use_gvariant) 1159s # { 1159s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1159s # g_value_set_variant (¶mv[n], child); 1159s # n++; 1159s # } 1159s # else 1159s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1159s # g_variant_unref (child); 1159s # } 1159s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1159s # g_value_init (&return_value, G_TYPE_BOOLEAN); 1159s # g_signal_emitv (paramv, signal_id, 0, &return_value); 1159s # if (!g_value_get_boolean (&return_value)) 1159s # 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); 1159s # g_value_unset (&return_value); 1159s # for (n = 0; n < num_params + num_extra; n++) 1159s # g_value_unset (¶mv[n]); 1159s # g_free (paramv); 1159s # } 1159s # 1159s # static GVariant * 1159s # _org_project_useful_interface_skeleton_handle_get_property ( 1159s # GDBusConnection *connection G_GNUC_UNUSED, 1159s # const gchar *sender G_GNUC_UNUSED, 1159s # const gchar *object_path G_GNUC_UNUSED, 1159s # const gchar *interface_name G_GNUC_UNUSED, 1159s # const gchar *property_name, 1159s # GError **error, 1159s # gpointer user_data) 1159s # { 1159s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1159s # GValue value = G_VALUE_INIT; 1159s # GParamSpec *pspec; 1159s # _ExtendedGDBusPropertyInfo *info; 1159s # GVariant *ret; 1159s # ret = NULL; 1159s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 1159s # g_assert (info != NULL); 1159s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1159s # if (pspec == NULL) 1159s # { 1159s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1159s # } 1159s # else 1159s # { 1159s # g_value_init (&value, pspec->value_type); 1159s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1159s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 1159s # g_value_unset (&value); 1159s # } 1159s # return ret; 1159s # } 1159s # 1159s # static gboolean 1159s # _org_project_useful_interface_skeleton_handle_set_property ( 1159s # GDBusConnection *connection G_GNUC_UNUSED, 1159s # const gchar *sender G_GNUC_UNUSED, 1159s # const gchar *object_path G_GNUC_UNUSED, 1159s # const gchar *interface_name G_GNUC_UNUSED, 1159s # const gchar *property_name, 1159s # GVariant *variant, 1159s # GError **error, 1159s # gpointer user_data) 1159s # { 1159s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1159s # GValue value = G_VALUE_INIT; 1159s # GParamSpec *pspec; 1159s # _ExtendedGDBusPropertyInfo *info; 1159s # gboolean ret; 1159s # ret = FALSE; 1159s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 1159s # g_assert (info != NULL); 1159s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1159s # if (pspec == NULL) 1159s # { 1159s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1159s # } 1159s # else 1159s # { 1159s # if (info->use_gvariant) 1159s # g_value_set_variant (&value, variant); 1159s # else 1159s # g_dbus_gvariant_to_gvalue (variant, &value); 1159s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1159s # g_value_unset (&value); 1159s # ret = TRUE; 1159s # } 1159s # return ret; 1159s # } 1159s # 1159s # static const GDBusInterfaceVTable _org_project_useful_interface_skeleton_vtable = 1159s # { 1159s # _org_project_useful_interface_skeleton_handle_method_call, 1159s # _org_project_useful_interface_skeleton_handle_get_property, 1159s # _org_project_useful_interface_skeleton_handle_set_property, 1159s # {NULL} 1159s # }; 1159s # 1159s # static GDBusInterfaceInfo * 1159s # org_project_useful_interface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1159s # { 1159s # return org_project_useful_interface_interface_info (); 1159s # } 1159s # 1159s # static GDBusInterfaceVTable * 1159s # org_project_useful_interface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1159s # { 1159s # return (GDBusInterfaceVTable *) &_org_project_useful_interface_skeleton_vtable; 1159s # } 1159s # 1159s # static GVariant * 1159s # org_project_useful_interface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 1159s # { 1159s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (_skeleton); 1159s # 1159s # GVariantBuilder builder; 1159s # guint n; 1159s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 1159s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 1159s # #else 1159s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 1159s # #endif 1159s # if (_org_project_useful_interface_interface_info.parent_struct.properties == NULL) 1159s # goto out; 1159s # for (n = 0; _org_project_useful_interface_interface_info.parent_struct.properties[n] != NULL; n++) 1159s # { 1159s # GDBusPropertyInfo *info = _org_project_useful_interface_interface_info.parent_struct.properties[n]; 1159s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 1159s # { 1159s # GVariant *value; 1159s # 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); 1159s # if (value != NULL) 1159s # { 1159s # g_variant_take_ref (value); 1159s # g_variant_builder_add (&builder, "{sv}", info->name, value); 1159s # g_variant_unref (value); 1159s # } 1159s # } 1159s # } 1159s # out: 1159s # return g_variant_builder_end (&builder); 1159s # } 1159s # 1159s # static void 1159s # org_project_useful_interface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 1159s # { 1159s # } 1159s # 1159s # static void org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface); 1159s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1159s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1159s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceSkeleton) 1159s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 1159s # 1159s # #else 1159s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1159s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 1159s # 1159s # #endif 1159s # static void 1159s # org_project_useful_interface_skeleton_finalize (GObject *object) 1159s # { 1159s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (object); 1159s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 1159s # if (skeleton->priv->changed_properties_idle_source != NULL) 1159s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 1159s # g_main_context_unref (skeleton->priv->context); 1159s # g_mutex_clear (&skeleton->priv->lock); 1159s # G_OBJECT_CLASS (org_project_useful_interface_skeleton_parent_class)->finalize (object); 1159s # } 1159s # 1159s # static void 1159s # org_project_useful_interface_skeleton_init (OrgProjectUsefulInterfaceSkeleton *skeleton) 1159s # { 1159s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1159s # skeleton->priv = org_project_useful_interface_skeleton_get_instance_private (skeleton); 1159s # #else 1159s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, OrgProjectUsefulInterfaceSkeletonPrivate); 1159s # #endif 1159s # 1159s # g_mutex_init (&skeleton->priv->lock); 1159s # skeleton->priv->context = g_main_context_ref_thread_default (); 1159s # } 1159s # 1159s # static void 1159s # org_project_useful_interface_skeleton_class_init (OrgProjectUsefulInterfaceSkeletonClass *klass) 1159s # { 1159s # GObjectClass *gobject_class; 1159s # GDBusInterfaceSkeletonClass *skeleton_class; 1159s # 1159s # gobject_class = G_OBJECT_CLASS (klass); 1159s # gobject_class->finalize = org_project_useful_interface_skeleton_finalize; 1159s # 1159s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 1159s # skeleton_class->get_info = org_project_useful_interface_skeleton_dbus_interface_get_info; 1159s # skeleton_class->get_properties = org_project_useful_interface_skeleton_dbus_interface_get_properties; 1159s # skeleton_class->flush = org_project_useful_interface_skeleton_dbus_interface_flush; 1159s # skeleton_class->get_vtable = org_project_useful_interface_skeleton_dbus_interface_get_vtable; 1159s # 1159s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1159s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceSkeletonPrivate)); 1159s # #endif 1159s # } 1159s # 1159s # static void 1159s # org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 1159s # { 1159s # } 1159s # 1159s # /** 1159s # * org_project_useful_interface_skeleton_new: 1159s # * 1159s # * Creates a skeleton object for the D-Bus interface org.project.UsefulInterface. 1159s # * 1159s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceSkeleton): The skeleton object. 1159s # */ 1159s # OrgProjectUsefulInterface * 1159s # org_project_useful_interface_skeleton_new (void) 1159s # { 1159s # return ORG_PROJECT_USEFUL_INTERFACE (g_object_new (TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, NULL)); 1159s # } 1159s # Error: 1159s # 1159s # /tmp/tmpatbfkbk2/tmptg47zcaf.xml: 1159s # 1159s # 1159s # 1159s # 1159s # 1159s # 1159s # 1159s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpatbfkbk2/tmptg47zcaf.xml', '--output', '-', '--body'] 1159s # Return code: 0 1159s # Output: 1159s # /* 1159s # * This file is generated by gdbus-codegen, do not modify it. 1159s # * 1159s # * The license of this code is the same as for the D-Bus interface description 1159s # * it was derived from. Note that it links to GLib, so must comply with the 1159s # * LGPL linking clauses. 1159s # */ 1159s # 1159s # #ifdef HAVE_CONFIG_H 1159s # # include "config.h" 1159s # #endif 1159s # 1159s # #include 1159s # #ifdef G_OS_UNIX 1159s # # include 1159s # #endif 1159s # 1159s # #ifdef G_ENABLE_DEBUG 1159s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 1159s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 1159s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 1159s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 1159s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 1159s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 1159s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 1159s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 1159s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 1159s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 1159s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 1159s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 1159s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 1159s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 1159s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 1159s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 1159s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 1159s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 1159s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 1159s # #else /* !G_ENABLE_DEBUG */ 1159s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 1159s # * Do not access GValues directly in your code. Instead, use the 1159s # * g_value_get_*() functions 1159s # */ 1159s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 1159s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 1159s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 1159s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 1159s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 1159s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 1159s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 1159s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 1159s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 1159s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 1159s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 1159s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 1159s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 1159s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 1159s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 1159s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 1159s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 1159s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 1159s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 1159s # #endif /* !G_ENABLE_DEBUG */ 1159s # 1159s # typedef struct 1159s # { 1159s # GDBusArgInfo parent_struct; 1159s # gboolean use_gvariant; 1159s # } _ExtendedGDBusArgInfo; 1159s # 1159s # typedef struct 1159s # { 1159s # GDBusMethodInfo parent_struct; 1159s # const gchar *signal_name; 1159s # gboolean pass_fdlist; 1159s # } _ExtendedGDBusMethodInfo; 1159s # 1159s # typedef struct 1159s # { 1159s # GDBusSignalInfo parent_struct; 1159s # const gchar *signal_name; 1159s # } _ExtendedGDBusSignalInfo; 1159s # 1159s # typedef struct 1159s # { 1159s # GDBusPropertyInfo parent_struct; 1159s # const gchar *hyphen_name; 1159s # guint use_gvariant : 1; 1159s # guint emits_changed_signal : 1; 1159s # } _ExtendedGDBusPropertyInfo; 1159s # 1159s # typedef struct 1159s # { 1159s # GDBusInterfaceInfo parent_struct; 1159s # const gchar *hyphen_name; 1159s # } _ExtendedGDBusInterfaceInfo; 1159s # 1159s # typedef struct 1159s # { 1159s # const _ExtendedGDBusPropertyInfo *info; 1159s # guint prop_id; 1159s # GValue orig_value; /* the value before the change */ 1159s # } ChangedProperty; 1159s # 1159s # static void 1159s # _changed_property_free (ChangedProperty *data) 1159s # { 1159s # g_value_unset (&data->orig_value); 1159s # g_free (data); 1159s # } 1159s # 1159s # static gboolean 1159s # _g_strv_equal0 (gchar **a, gchar **b) 1159s # { 1159s # gboolean ret = FALSE; 1159s # guint n; 1159s # if (a == NULL && b == NULL) 1159s # { 1159s # ret = TRUE; 1159s # goto out; 1159s # } 1159s # if (a == NULL || b == NULL) 1159s # goto out; 1159s # if (g_strv_length (a) != g_strv_length (b)) 1159s # goto out; 1159s # for (n = 0; a[n] != NULL; n++) 1159s # if (g_strcmp0 (a[n], b[n]) != 0) 1159s # goto out; 1159s # ret = TRUE; 1159s # out: 1159s # return ret; 1159s # } 1159s # 1159s # static gboolean 1159s # _g_variant_equal0 (GVariant *a, GVariant *b) 1159s # { 1159s # gboolean ret = FALSE; 1159s # if (a == NULL && b == NULL) 1159s # { 1159s # ret = TRUE; 1159s # goto out; 1159s # } 1159s # if (a == NULL || b == NULL) 1159s # goto out; 1159s # ret = g_variant_equal (a, b); 1159s # out: 1159s # return ret; 1159s # } 1159s # 1159s # G_GNUC_UNUSED static gboolean 1159s # _g_value_equal (const GValue *a, const GValue *b) 1159s # { 1159s # gboolean ret = FALSE; 1159s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 1159s # switch (G_VALUE_TYPE (a)) 1159s # { 1159s # case G_TYPE_BOOLEAN: 1159s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 1159s # break; 1159s # case G_TYPE_UCHAR: 1159s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 1159s # break; 1159s # case G_TYPE_INT: 1159s # ret = (g_value_get_int (a) == g_value_get_int (b)); 1159s # break; 1159s # case G_TYPE_UINT: 1159s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 1159s # break; 1159s # case G_TYPE_INT64: 1159s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 1159s # break; 1159s # case G_TYPE_UINT64: 1159s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 1159s # break; 1159s # case G_TYPE_DOUBLE: 1159s # { 1159s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 1159s # gdouble da = g_value_get_double (a); 1159s # gdouble db = g_value_get_double (b); 1159s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 1159s # } 1159s # break; 1159s # case G_TYPE_STRING: 1159s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 1159s # break; 1159s # case G_TYPE_VARIANT: 1159s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 1159s # break; 1159s # default: 1159s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 1159s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 1159s # else 1159s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 1159s # break; 1159s # } 1159s # return ret; 1159s # } 1159s # 1159s # static void 1159s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT ( 1159s # GClosure *closure, 1159s # GValue *return_value, 1159s # unsigned int n_param_values, 1159s # const GValue *param_values, 1159s # void *invocation_hint G_GNUC_UNUSED, 1159s # void *marshal_data) 1159s # { 1159s # typedef gboolean (*_GDbusCodegenMarshalBoolean_ObjectFunc) 1159s # (void *data1, 1159s # GDBusMethodInvocation *arg_method_invocation, 1159s # void *data2); 1159s # _GDbusCodegenMarshalBoolean_ObjectFunc callback; 1159s # GCClosure *cc = (GCClosure*) closure; 1159s # void *data1, *data2; 1159s # gboolean v_return; 1159s # 1159s # g_return_if_fail (return_value != NULL); 1159s # g_return_if_fail (n_param_values == 2); 1159s # 1159s # if (G_CCLOSURE_SWAP_DATA (closure)) 1159s # { 1159s # data1 = closure->data; 1159s # data2 = g_value_peek_pointer (param_values + 0); 1159s # } 1159s # else 1159s # { 1159s # data1 = g_value_peek_pointer (param_values + 0); 1159s # data2 = closure->data; 1159s # } 1159s # 1159s # callback = (_GDbusCodegenMarshalBoolean_ObjectFunc) 1159s # (marshal_data ? marshal_data : cc->callback); 1159s # 1159s # v_return = 1159s # callback (data1, 1159s # g_marshal_value_peek_object (param_values + 1), 1159s # data2); 1159s # 1159s # g_value_set_boolean (return_value, v_return); 1159s # } 1159s # 1159s # /* ------------------------------------------------------------------------ 1159s # * Code for interface org.project.UsefulInterface 1159s # * ------------------------------------------------------------------------ 1159s # */ 1159s # 1159s # /** 1159s # * SECTION:OrgProjectUsefulInterface 1159s # * @title: OrgProjectUsefulInterface 1159s # * @short_description: Generated C code for the org.project.UsefulInterface D-Bus interface 1159s # * 1159s # * This section contains code for working with the org.project.UsefulInterface D-Bus interface in C. 1159s # */ 1159s # 1159s # /* ---- Introspection data for org.project.UsefulInterface ---- */ 1159s # 1159s # static const _ExtendedGDBusArgInfo _org_project_useful_interface_method_info_single_arg_method_i_OUT_ARG_arg_i = 1159s # { 1159s # { 1159s # -1, 1159s # (gchar *) "arg_i", 1159s # (gchar *) "i", 1159s # NULL 1159s # }, 1159s # FALSE 1159s # }; 1159s # 1159s # static const GDBusArgInfo * const _org_project_useful_interface_method_info_single_arg_method_i_OUT_ARG_pointers[] = 1159s # { 1159s # &_org_project_useful_interface_method_info_single_arg_method_i_OUT_ARG_arg_i.parent_struct, 1159s # NULL 1159s # }; 1159s # 1159s # static const _ExtendedGDBusMethodInfo _org_project_useful_interface_method_info_single_arg_method_i = 1159s # { 1159s # { 1159s # -1, 1159s # (gchar *) "SingleArgMethodI", 1159s # NULL, 1159s # (GDBusArgInfo **) &_org_project_useful_interface_method_info_single_arg_method_i_OUT_ARG_pointers, 1159s # NULL 1159s # }, 1159s # "handle-single-arg-method-i", 1159s # FALSE 1159s # }; 1159s # 1159s # static const GDBusMethodInfo * const _org_project_useful_interface_method_info_pointers[] = 1159s # { 1159s # &_org_project_useful_interface_method_info_single_arg_method_i.parent_struct, 1159s # NULL 1159s # }; 1159s # 1159s # static const _ExtendedGDBusInterfaceInfo _org_project_useful_interface_interface_info = 1159s # { 1159s # { 1159s # -1, 1159s # (gchar *) "org.project.UsefulInterface", 1159s # (GDBusMethodInfo **) &_org_project_useful_interface_method_info_pointers, 1159s # NULL, 1159s # NULL, 1159s # NULL 1159s # }, 1159s # "org-project-useful-interface", 1159s # }; 1159s # 1159s # 1159s # /** 1159s # * org_project_useful_interface_interface_info: 1159s # * 1159s # * Gets a machine-readable description of the org.project.UsefulInterface D-Bus interface. 1159s # * 1159s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 1159s # */ 1159s # GDBusInterfaceInfo * 1159s # org_project_useful_interface_interface_info (void) 1159s # { 1159s # return (GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct; 1159s # } 1159s # 1159s # /** 1159s # * org_project_useful_interface_override_properties: 1159s # * @klass: The class structure for a #GObject derived class. 1159s # * @property_id_begin: The property id to assign to the first overridden property. 1159s # * 1159s # * Overrides all #GObject properties in the #OrgProjectUsefulInterface interface for a concrete class. 1159s # * The properties are overridden in the order they are defined. 1159s # * 1159s # * Returns: The last property id. 1159s # */ 1159s # guint 1159s # org_project_useful_interface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 1159s # { 1159s # return property_id_begin - 1; 1159s # } 1159s # 1159s # 1159s # inline static void 1159s # org_project_useful_interface_method_marshal_single_arg_method_i ( 1159s # GClosure *closure, 1159s # GValue *return_value, 1159s # unsigned int n_param_values, 1159s # const GValue *param_values, 1159s # void *invocation_hint, 1159s # void *marshal_data) 1159s # { 1159s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT (closure, 1159s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1159s # } 1159s # 1159s # 1159s # /** 1159s # * OrgProjectUsefulInterface: 1159s # * 1159s # * Abstract interface type for the D-Bus interface org.project.UsefulInterface. 1159s # */ 1159s # 1159s # /** 1159s # * OrgProjectUsefulInterfaceIface: 1159s # * @parent_iface: The parent interface. 1159s # * @handle_single_arg_method_i: Handler for the #OrgProjectUsefulInterface::handle-single-arg-method-i signal. 1159s # * 1159s # * Virtual table for the D-Bus interface org.project.UsefulInterface. 1159s # */ 1159s # 1159s # typedef OrgProjectUsefulInterfaceIface OrgProjectUsefulInterfaceInterface; 1159s # G_DEFINE_INTERFACE (OrgProjectUsefulInterface, org_project_useful_interface, G_TYPE_OBJECT) 1159s # 1159s # static void 1159s # org_project_useful_interface_default_init (OrgProjectUsefulInterfaceIface *iface) 1159s # { 1159s # /* GObject signals for incoming D-Bus method calls: */ 1159s # /** 1159s # * OrgProjectUsefulInterface::handle-single-arg-method-i: 1159s # * @object: A #OrgProjectUsefulInterface. 1159s # * @invocation: A #GDBusMethodInvocation. 1159s # * 1159s # * Signal emitted when a remote caller is invoking the SingleArgMethodI() D-Bus method. 1159s # * 1159s # * 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. 1159s # * 1159s # * 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. 1159s # */ 1159s # g_signal_new ("handle-single-arg-method-i", 1159s # G_TYPE_FROM_INTERFACE (iface), 1159s # G_SIGNAL_RUN_LAST, 1159s # G_STRUCT_OFFSET (OrgProjectUsefulInterfaceIface, handle_single_arg_method_i), 1159s # g_signal_accumulator_true_handled, 1159s # NULL, 1159s # org_project_useful_interface_method_marshal_single_arg_method_i, 1159s # G_TYPE_BOOLEAN, 1159s # 1, 1159s # G_TYPE_DBUS_METHOD_INVOCATION); 1159s # 1159s # } 1159s # 1159s # /** 1159s # * org_project_useful_interface_call_single_arg_method_i: 1159s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1159s # * @cancellable: (nullable): A #GCancellable or %NULL. 1159s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL. 1159s # * @user_data: User data to pass to @callback. 1159s # * 1159s # * Asynchronously invokes the SingleArgMethodI() D-Bus method on @proxy. 1159s # * 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()). 1159s # * You can then call org_project_useful_interface_call_single_arg_method_i_finish() to get the result of the operation. 1159s # * 1159s # * See org_project_useful_interface_call_single_arg_method_i_sync() for the synchronous, blocking version of this method. 1159s # */ 1159s # void 1159s # org_project_useful_interface_call_single_arg_method_i ( 1159s # OrgProjectUsefulInterface *proxy, 1159s # GCancellable *cancellable, 1159s # GAsyncReadyCallback callback, 1159s # gpointer user_data) 1159s # { 1159s # g_dbus_proxy_call (G_DBUS_PROXY (proxy), 1159s # "SingleArgMethodI", 1159s # g_variant_new ("()"), 1159s # G_DBUS_CALL_FLAGS_NONE, 1159s # -1, 1159s # cancellable, 1159s # callback, 1159s # user_data); 1159s # } 1159s # 1159s # /** 1159s # * org_project_useful_interface_call_single_arg_method_i_finish: 1159s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1159s # * @out_arg_i: (out) (optional): Return location for return parameter or %NULL to ignore. 1159s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_call_single_arg_method_i(). 1159s # * @error: Return location for error or %NULL. 1159s # * 1159s # * Finishes an operation started with org_project_useful_interface_call_single_arg_method_i(). 1159s # * 1159s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1159s # */ 1159s # gboolean 1159s # org_project_useful_interface_call_single_arg_method_i_finish ( 1159s # OrgProjectUsefulInterface *proxy, 1159s # gint *out_arg_i, 1159s # GAsyncResult *res, 1159s # GError **error) 1159s # { 1159s # GVariant *_ret; 1159s # _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error); 1159s # if (_ret == NULL) 1159s # goto _out; 1159s # g_variant_get (_ret, 1159s # "(i)", 1159s # out_arg_i); 1159s # g_variant_unref (_ret); 1159s # _out: 1159s # return _ret != NULL; 1159s # } 1159s # 1159s # /** 1159s # * org_project_useful_interface_call_single_arg_method_i_sync: 1159s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1159s # * @out_arg_i: (out) (optional): Return location for return parameter or %NULL to ignore. 1159s # * @cancellable: (nullable): A #GCancellable or %NULL. 1159s # * @error: Return location for error or %NULL. 1159s # * 1159s # * Synchronously invokes the SingleArgMethodI() D-Bus method on @proxy. The calling thread is blocked until a reply is received. 1159s # * 1159s # * See org_project_useful_interface_call_single_arg_method_i() for the asynchronous version of this method. 1159s # * 1159s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1159s # */ 1159s # gboolean 1159s # org_project_useful_interface_call_single_arg_method_i_sync ( 1159s # OrgProjectUsefulInterface *proxy, 1159s # gint *out_arg_i, 1159s # GCancellable *cancellable, 1159s # GError **error) 1159s # { 1159s # GVariant *_ret; 1159s # _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy), 1159s # "SingleArgMethodI", 1159s # g_variant_new ("()"), 1159s # G_DBUS_CALL_FLAGS_NONE, 1159s # -1, 1159s # cancellable, 1159s # error); 1159s # if (_ret == NULL) 1159s # goto _out; 1159s # g_variant_get (_ret, 1159s # "(i)", 1159s # out_arg_i); 1159s # g_variant_unref (_ret); 1159s # _out: 1159s # return _ret != NULL; 1159s # } 1159s # 1159s # /** 1159s # * org_project_useful_interface_complete_single_arg_method_i: 1159s # * @object: A #OrgProjectUsefulInterface. 1159s # * @invocation: (transfer full): A #GDBusMethodInvocation. 1159s # * @arg_i: Parameter to return. 1159s # * 1159s # * 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. 1159s # * 1159s # * This method will free @invocation, you cannot use it afterwards. 1159s # */ 1159s # void 1159s # org_project_useful_interface_complete_single_arg_method_i ( 1159s # OrgProjectUsefulInterface *object G_GNUC_UNUSED, 1159s # GDBusMethodInvocation *invocation, 1159s # gint arg_i) 1159s # { 1159s # g_dbus_method_invocation_return_value (invocation, 1159s # g_variant_new ("(i)", 1159s # arg_i)); 1159s # } 1159s # 1159s # /* ------------------------------------------------------------------------ */ 1159s # 1159s # /** 1159s # * OrgProjectUsefulInterfaceProxy: 1159s # * 1159s # * The #OrgProjectUsefulInterfaceProxy structure contains only private data and should only be accessed using the provided API. 1159s # */ 1159s # 1159s # /** 1159s # * OrgProjectUsefulInterfaceProxyClass: 1159s # * @parent_class: The parent class. 1159s # * 1159s # * Class structure for #OrgProjectUsefulInterfaceProxy. 1159s # */ 1159s # 1159s # struct _OrgProjectUsefulInterfaceProxyPrivate 1159s # { 1159s # GData *qdata; 1159s # }; 1159s # 1159s # static void org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface); 1159s # 1159s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1159s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 1159s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceProxy) 1159s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 1159s # 1159s # #else 1159s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 1159s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 1159s # 1159s # #endif 1159s # static void 1159s # org_project_useful_interface_proxy_finalize (GObject *object) 1159s # { 1159s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (object); 1159s # g_datalist_clear (&proxy->priv->qdata); 1159s # G_OBJECT_CLASS (org_project_useful_interface_proxy_parent_class)->finalize (object); 1159s # } 1159s # 1159s # static void 1159s # org_project_useful_interface_proxy_get_property (GObject *object G_GNUC_UNUSED, 1159s # guint prop_id G_GNUC_UNUSED, 1159s # GValue *value G_GNUC_UNUSED, 1159s # GParamSpec *pspec G_GNUC_UNUSED) 1159s # { 1159s # } 1159s # 1159s # static void 1159s # org_project_useful_interface_proxy_set_property (GObject *object G_GNUC_UNUSED, 1159s # guint prop_id G_GNUC_UNUSED, 1159s # const GValue *value G_GNUC_UNUSED, 1159s # GParamSpec *pspec G_GNUC_UNUSED) 1159s # { 1159s # } 1159s # 1159s # static void 1159s # org_project_useful_interface_proxy_g_signal (GDBusProxy *proxy, 1159s # const gchar *sender_name G_GNUC_UNUSED, 1159s # const gchar *signal_name, 1159s # GVariant *parameters) 1159s # { 1159s # _ExtendedGDBusSignalInfo *info; 1159s # GVariantIter iter; 1159s # GVariant *child; 1159s # GValue *paramv; 1159s # gsize num_params; 1159s # gsize n; 1159s # guint signal_id; 1159s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, signal_name); 1159s # if (info == NULL) 1159s # return; 1159s # num_params = g_variant_n_children (parameters); 1159s # paramv = g_new0 (GValue, num_params + 1); 1159s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1159s # g_value_set_object (¶mv[0], proxy); 1159s # g_variant_iter_init (&iter, parameters); 1159s # n = 1; 1159s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1159s # { 1159s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 1159s # if (arg_info->use_gvariant) 1159s # { 1159s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1159s # g_value_set_variant (¶mv[n], child); 1159s # n++; 1159s # } 1159s # else 1159s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1159s # g_variant_unref (child); 1159s # } 1159s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1159s # g_signal_emitv (paramv, signal_id, 0, NULL); 1159s # for (n = 0; n < num_params + 1; n++) 1159s # g_value_unset (¶mv[n]); 1159s # g_free (paramv); 1159s # } 1159s # 1159s # static void 1159s # org_project_useful_interface_proxy_g_properties_changed (GDBusProxy *_proxy, 1159s # GVariant *changed_properties, 1159s # const gchar *const *invalidated_properties) 1159s # { 1159s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (_proxy); 1159s # guint n; 1159s # const gchar *key; 1159s # GVariantIter *iter; 1159s # _ExtendedGDBusPropertyInfo *info; 1159s # g_variant_get (changed_properties, "a{sv}", &iter); 1159s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 1159s # { 1159s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, key); 1159s # g_datalist_remove_data (&proxy->priv->qdata, key); 1159s # if (info != NULL) 1159s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1159s # } 1159s # g_variant_iter_free (iter); 1159s # for (n = 0; invalidated_properties[n] != NULL; n++) 1159s # { 1159s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, invalidated_properties[n]); 1159s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 1159s # if (info != NULL) 1159s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1159s # } 1159s # } 1159s # 1159s # static void 1159s # org_project_useful_interface_proxy_init (OrgProjectUsefulInterfaceProxy *proxy) 1159s # { 1159s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1159s # proxy->priv = org_project_useful_interface_proxy_get_instance_private (proxy); 1159s # #else 1159s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY, OrgProjectUsefulInterfaceProxyPrivate); 1159s # #endif 1159s # 1159s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_useful_interface_interface_info ()); 1159s # } 1159s # 1159s # static void 1159s # org_project_useful_interface_proxy_class_init (OrgProjectUsefulInterfaceProxyClass *klass) 1159s # { 1159s # GObjectClass *gobject_class; 1159s # GDBusProxyClass *proxy_class; 1159s # 1159s # gobject_class = G_OBJECT_CLASS (klass); 1159s # gobject_class->finalize = org_project_useful_interface_proxy_finalize; 1159s # gobject_class->get_property = org_project_useful_interface_proxy_get_property; 1159s # gobject_class->set_property = org_project_useful_interface_proxy_set_property; 1159s # 1159s # proxy_class = G_DBUS_PROXY_CLASS (klass); 1159s # proxy_class->g_signal = org_project_useful_interface_proxy_g_signal; 1159s # proxy_class->g_properties_changed = org_project_useful_interface_proxy_g_properties_changed; 1159s # 1159s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1159s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceProxyPrivate)); 1159s # #endif 1159s # } 1159s # 1159s # static void 1159s # org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 1159s # { 1159s # } 1159s # 1159s # /** 1159s # * org_project_useful_interface_proxy_new: 1159s # * @connection: A #GDBusConnection. 1159s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1159s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1159s # * @object_path: An object path. 1159s # * @cancellable: (nullable): A #GCancellable or %NULL. 1159s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1159s # * @user_data: User data to pass to @callback. 1159s # * 1159s # * Asynchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new() for more details. 1159s # * 1159s # * 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()). 1159s # * You can then call org_project_useful_interface_proxy_new_finish() to get the result of the operation. 1159s # * 1159s # * See org_project_useful_interface_proxy_new_sync() for the synchronous, blocking version of this constructor. 1159s # */ 1159s # void 1159s # org_project_useful_interface_proxy_new ( 1159s # GDBusConnection *connection, 1159s # GDBusProxyFlags flags, 1159s # const gchar *name, 1159s # const gchar *object_path, 1159s # GCancellable *cancellable, 1159s # GAsyncReadyCallback callback, 1159s # gpointer user_data) 1159s # { 1159s # 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); 1159s # } 1159s # 1159s # /** 1159s # * org_project_useful_interface_proxy_new_finish: 1159s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new(). 1159s # * @error: Return location for error or %NULL 1159s # * 1159s # * Finishes an operation started with org_project_useful_interface_proxy_new(). 1159s # * 1159s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1159s # */ 1159s # OrgProjectUsefulInterface * 1159s # org_project_useful_interface_proxy_new_finish ( 1159s # GAsyncResult *res, 1159s # GError **error) 1159s # { 1159s # GObject *ret; 1159s # GObject *source_object; 1159s # source_object = g_async_result_get_source_object (res); 1159s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1159s # g_object_unref (source_object); 1159s # if (ret != NULL) 1159s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1159s # else 1159s # return NULL; 1159s # } 1159s # 1159s # /** 1159s # * org_project_useful_interface_proxy_new_sync: 1159s # * @connection: A #GDBusConnection. 1159s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1159s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1159s # * @object_path: An object path. 1159s # * @cancellable: (nullable): A #GCancellable or %NULL. 1159s # * @error: Return location for error or %NULL 1159s # * 1159s # * Synchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new_sync() for more details. 1159s # * 1159s # * The calling thread is blocked until a reply is received. 1159s # * 1159s # * See org_project_useful_interface_proxy_new() for the asynchronous version of this constructor. 1159s # * 1159s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1159s # */ 1159s # OrgProjectUsefulInterface * 1159s # org_project_useful_interface_proxy_new_sync ( 1159s # GDBusConnection *connection, 1159s # GDBusProxyFlags flags, 1159s # const gchar *name, 1159s # const gchar *object_path, 1159s # GCancellable *cancellable, 1159s # GError **error) 1159s # { 1159s # GInitable *ret; 1159s # 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); 1159s # if (ret != NULL) 1159s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1159s # else 1159s # return NULL; 1159s # } 1159s # 1159s # 1159s # /** 1159s # * org_project_useful_interface_proxy_new_for_bus: 1159s # * @bus_type: A #GBusType. 1159s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1159s # * @name: A bus name (well-known or unique). 1159s # * @object_path: An object path. 1159s # * @cancellable: (nullable): A #GCancellable or %NULL. 1159s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1159s # * @user_data: User data to pass to @callback. 1159s # * 1159s # * Like org_project_useful_interface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 1159s # * 1159s # * 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()). 1159s # * You can then call org_project_useful_interface_proxy_new_for_bus_finish() to get the result of the operation. 1159s # * 1159s # * See org_project_useful_interface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 1159s # */ 1159s # void 1159s # org_project_useful_interface_proxy_new_for_bus ( 1159s # GBusType bus_type, 1159s # GDBusProxyFlags flags, 1159s # const gchar *name, 1159s # const gchar *object_path, 1159s # GCancellable *cancellable, 1159s # GAsyncReadyCallback callback, 1159s # gpointer user_data) 1159s # { 1159s # 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); 1159s # } 1159s # 1159s # /** 1159s # * org_project_useful_interface_proxy_new_for_bus_finish: 1159s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new_for_bus(). 1159s # * @error: Return location for error or %NULL 1159s # * 1159s # * Finishes an operation started with org_project_useful_interface_proxy_new_for_bus(). 1159s # * 1159s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1159s # */ 1159s # OrgProjectUsefulInterface * 1159s # org_project_useful_interface_proxy_new_for_bus_finish ( 1159s # GAsyncResult *res, 1159s # GError **error) 1159s # { 1159s # GObject *ret; 1159s # GObject *source_object; 1159s # source_object = g_async_result_get_source_object (res); 1159s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1159s # g_object_unref (source_object); 1159s # if (ret != NULL) 1159s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1159s # else 1159s # return NULL; 1159s # } 1159s # 1159s # /** 1159s # * org_project_useful_interface_proxy_new_for_bus_sync: 1159s # * @bus_type: A #GBusType. 1159s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1159s # * @name: A bus name (well-known or unique). 1159s # * @object_path: An object path. 1159s # * @cancellable: (nullable): A #GCancellable or %NULL. 1159s # * @error: Return location for error or %NULL 1159s # * 1159s # * Like org_project_useful_interface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 1159s # * 1159s # * The calling thread is blocked until a reply is received. 1159s # * 1159s # * See org_project_useful_interface_proxy_new_for_bus() for the asynchronous version of this constructor. 1159s # * 1159s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1159s # */ 1159s # OrgProjectUsefulInterface * 1159s # org_project_useful_interface_proxy_new_for_bus_sync ( 1159s # GBusType bus_type, 1159s # GDBusProxyFlags flags, 1159s # const gchar *name, 1159s # const gchar *object_path, 1159s # GCancellable *cancellable, 1159s # GError **error) 1159s # { 1159s # GInitable *ret; 1159s # 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); 1159s # if (ret != NULL) 1159s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1159s # else 1159s # return NULL; 1159s # } 1159s # 1159s # 1159s # /* ------------------------------------------------------------------------ */ 1159s # 1159s # /** 1159s # * OrgProjectUsefulInterfaceSkeleton: 1159s # * 1159s # * The #OrgProjectUsefulInterfaceSkeleton structure contains only private data and should only be accessed using the provided API. 1159s # */ 1159s # 1159s # /** 1159s # * OrgProjectUsefulInterfaceSkeletonClass: 1159s # * @parent_class: The parent class. 1159s # * 1159s # * Class structure for #OrgProjectUsefulInterfaceSkeleton. 1159s # */ 1159s # 1159s # struct _OrgProjectUsefulInterfaceSkeletonPrivate 1159s # { 1159s # GValue *properties; 1159s # GList *changed_properties; 1159s # GSource *changed_properties_idle_source; 1159s # GMainContext *context; 1159s # GMutex lock; 1159s # }; 1159s # 1159s # static void 1159s # _org_project_useful_interface_skeleton_handle_method_call ( 1159s # GDBusConnection *connection G_GNUC_UNUSED, 1159s # const gchar *sender G_GNUC_UNUSED, 1159s # const gchar *object_path G_GNUC_UNUSED, 1159s # const gchar *interface_name, 1159s # const gchar *method_name, 1159s # GVariant *parameters, 1159s # GDBusMethodInvocation *invocation, 1159s # gpointer user_data) 1159s # { 1159s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1159s # _ExtendedGDBusMethodInfo *info; 1159s # GVariantIter iter; 1159s # GVariant *child; 1159s # GValue *paramv; 1159s # gsize num_params; 1159s # guint num_extra; 1159s # gsize n; 1159s # guint signal_id; 1159s # GValue return_value = G_VALUE_INIT; 1159s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 1159s # g_assert (info != NULL); 1159s # num_params = g_variant_n_children (parameters); 1159s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 1159s # n = 0; 1159s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1159s # g_value_set_object (¶mv[n++], skeleton); 1159s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 1159s # g_value_set_object (¶mv[n++], invocation); 1159s # if (info->pass_fdlist) 1159s # { 1159s # #ifdef G_OS_UNIX 1159s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 1159s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 1159s # #else 1159s # g_assert_not_reached (); 1159s # #endif 1159s # } 1159s # g_variant_iter_init (&iter, parameters); 1159s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1159s # { 1159s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 1159s # if (arg_info->use_gvariant) 1159s # { 1159s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1159s # g_value_set_variant (¶mv[n], child); 1159s # n++; 1159s # } 1159s # else 1159s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1159s # g_variant_unref (child); 1159s # } 1159s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1159s # g_value_init (&return_value, G_TYPE_BOOLEAN); 1159s # g_signal_emitv (paramv, signal_id, 0, &return_value); 1159s # if (!g_value_get_boolean (&return_value)) 1159s # 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); 1159s # g_value_unset (&return_value); 1159s # for (n = 0; n < num_params + num_extra; n++) 1159s # g_value_unset (¶mv[n]); 1159s # g_free (paramv); 1159s # } 1159s # 1159s # static GVariant * 1159s # _org_project_useful_interface_skeleton_handle_get_property ( 1159s # GDBusConnection *connection G_GNUC_UNUSED, 1159s # const gchar *sender G_GNUC_UNUSED, 1159s # const gchar *object_path G_GNUC_UNUSED, 1159s # const gchar *interface_name G_GNUC_UNUSED, 1159s # const gchar *property_name, 1159s # GError **error, 1159s # gpointer user_data) 1159s # { 1159s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1159s # GValue value = G_VALUE_INIT; 1159s # GParamSpec *pspec; 1159s # _ExtendedGDBusPropertyInfo *info; 1159s # GVariant *ret; 1159s # ret = NULL; 1159s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 1159s # g_assert (info != NULL); 1159s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1159s # if (pspec == NULL) 1159s # { 1159s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1159s # } 1159s # else 1159s # { 1159s # g_value_init (&value, pspec->value_type); 1159s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1159s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 1159s # g_value_unset (&value); 1159s # } 1159s # return ret; 1159s # } 1159s # 1159s # static gboolean 1159s # _org_project_useful_interface_skeleton_handle_set_property ( 1159s # GDBusConnection *connection G_GNUC_UNUSED, 1159s # const gchar *sender G_GNUC_UNUSED, 1159s # const gchar *object_path G_GNUC_UNUSED, 1159s # const gchar *interface_name G_GNUC_UNUSED, 1159s # const gchar *property_name, 1159s # GVariant *variant, 1159s # GError **error, 1159s # gpointer user_data) 1159s # { 1159s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1159s # GValue value = G_VALUE_INIT; 1159s # GParamSpec *pspec; 1159s # _ExtendedGDBusPropertyInfo *info; 1159s # gboolean ret; 1159s # ret = FALSE; 1159s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 1159s # g_assert (info != NULL); 1159s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1159s # if (pspec == NULL) 1159s # { 1159s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1159s # } 1159s # else 1159s # { 1159s # if (info->use_gvariant) 1159s # g_value_set_variant (&value, variant); 1159s # else 1159s # g_dbus_gvariant_to_gvalue (variant, &value); 1159s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1159s # g_value_unset (&value); 1159s # ret = TRUE; 1159s # } 1159s # return ret; 1159s # } 1159s # 1159s # static const GDBusInterfaceVTable _org_project_useful_interface_skeleton_vtable = 1159s # { 1159s # _org_project_useful_interface_skeleton_handle_method_call, 1159s # _org_project_useful_interface_skeleton_handle_get_property, 1159s # _org_project_useful_interface_skeleton_handle_set_property, 1159s # {NULL} 1159s # }; 1159s # 1159s # static GDBusInterfaceInfo * 1159s # org_project_useful_interface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1159s # { 1159s # return org_project_useful_interface_interface_info (); 1159s # } 1159s # 1159s # static GDBusInterfaceVTable * 1159s # org_project_useful_interface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1159s # { 1159s # return (GDBusInterfaceVTable *) &_org_project_useful_interface_skeleton_vtable; 1159s # } 1159s # 1159s # static GVariant * 1159s # org_project_useful_interface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 1159s # { 1159s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (_skeleton); 1159s # 1159s # GVariantBuilder builder; 1159s # guint n; 1159s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 1159s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 1159s # #else 1159s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 1159s # #endif 1159s # if (_org_project_useful_interface_interface_info.parent_struct.properties == NULL) 1159s # goto out; 1159s # for (n = 0; _org_project_useful_interface_interface_info.parent_struct.properties[n] != NULL; n++) 1159s # { 1159s # GDBusPropertyInfo *info = _org_project_useful_interface_interface_info.parent_struct.properties[n]; 1159s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 1159s # { 1159s # GVariant *value; 1159s # 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); 1159s # if (value != NULL) 1159s # { 1159s # g_variant_take_ref (value); 1159s # g_variant_builder_add (&builder, "{sv}", info->name, value); 1159s # g_variant_unref (value); 1159s # } 1159s # } 1159s # } 1159s # out: 1159s # return g_variant_builder_end (&builder); 1159s # } 1159s # 1159s # static void 1159s # org_project_useful_interface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 1159s # { 1159s # } 1159s # 1159s # static void org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface); 1159s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1159s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1159s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceSkeleton) 1159s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 1159s # 1159s # #else 1159s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1159s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 1159s # 1159s # #endif 1159s # static void 1159s # org_project_useful_interface_skeleton_finalize (GObject *object) 1159s # { 1159s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (object); 1159s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 1159s # if (skeleton->priv->changed_properties_idle_source != NULL) 1159s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 1159s # g_main_context_unref (skeleton->priv->context); 1159s # g_mutex_clear (&skeleton->priv->lock); 1159s # G_OBJECT_CLASS (org_project_useful_interface_skeleton_parent_class)->finalize (object); 1159s # } 1159s # 1159s # static void 1159s # org_project_useful_interface_skeleton_init (OrgProjectUsefulInterfaceSkeleton *skeleton) 1159s # { 1159s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1159s # skeleton->priv = org_project_useful_interface_skeleton_get_instance_private (skeleton); 1159s # #else 1159s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, OrgProjectUsefulInterfaceSkeletonPrivate); 1159s # #endif 1159s # 1159s # g_mutex_init (&skeleton->priv->lock); 1159s # skeleton->priv->context = g_main_context_ref_thread_default (); 1159s # } 1159s # 1159s # static void 1159s # org_project_useful_interface_skeleton_class_init (OrgProjectUsefulInterfaceSkeletonClass *klass) 1159s # { 1159s # GObjectClass *gobject_class; 1159s # GDBusInterfaceSkeletonClass *skeleton_class; 1159s # 1159s # gobject_class = G_OBJECT_CLASS (klass); 1159s # gobject_class->finalize = org_project_useful_interface_skeleton_finalize; 1159s # 1159s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 1159s # skeleton_class->get_info = org_project_useful_interface_skeleton_dbus_interface_get_info; 1159s # skeleton_class->get_properties = org_project_useful_interface_skeleton_dbus_interface_get_properties; 1159s # skeleton_class->flush = org_project_useful_interface_skeleton_dbus_interface_flush; 1159s # skeleton_class->get_vtable = org_project_useful_interface_skeleton_dbus_interface_get_vtable; 1159s # 1159s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1159s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceSkeletonPrivate)); 1159s # #endif 1159s # } 1159s # 1159s # static void 1159s # org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 1159s # { 1159s # } 1159s # 1159s # /** 1159s # * org_project_useful_interface_skeleton_new: 1159s # * 1159s # * Creates a skeleton object for the D-Bus interface org.project.UsefulInterface. 1159s # * 1159s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceSkeleton): The skeleton object. 1159s # */ 1159s # OrgProjectUsefulInterface * 1159s # org_project_useful_interface_skeleton_new (void) 1159s # { 1159s # return ORG_PROJECT_USEFUL_INTERFACE (g_object_new (TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, NULL)); 1159s # } 1159s # Error: 1159s # 1159s # /tmp/tmpatbfkbk2/tmpndxwrdwh.xml: 1159s # 1159s # 1159s # 1159s # 1159s # 1159s # 1159s # 1159s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpatbfkbk2/tmpndxwrdwh.xml', '--output', '-', '--body'] 1159s # Return code: 0 1159s # Output: 1159s # /* 1159s # * This file is generated by gdbus-codegen, do not modify it. 1159s # * 1159s # * The license of this code is the same as for the D-Bus interface description 1159s # * it was derived from. Note that it links to GLib, so must comply with the 1159s # * LGPL linking clauses. 1159s # */ 1159s # 1159s # #ifdef HAVE_CONFIG_H 1159s # # include "config.h" 1159s # #endif 1159s # 1159s # #include 1159s # #ifdef G_OS_UNIX 1159s # # include 1159s # #endif 1159s # 1159s # #ifdef G_ENABLE_DEBUG 1159s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 1159s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 1159s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 1159s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 1159s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 1159s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 1159s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 1159s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 1159s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 1159s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 1159s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 1159s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 1159s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 1159s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 1159s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 1159s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 1159s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 1159s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 1159s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 1159s # #else /* !G_ENABLE_DEBUG */ 1159s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 1159s # * Do not access GValues directly in your code. Instead, use the 1159s # * g_value_get_*() functions 1159s # */ 1159s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 1159s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 1159s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 1159s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 1159s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 1159s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 1159s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 1159s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 1159s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 1159s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 1159s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 1159s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 1159s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 1159s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 1159s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 1159s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 1159s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 1159s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 1159s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 1159s # #endif /* !G_ENABLE_DEBUG */ 1159s # 1159s # typedef struct 1159s # { 1159s # GDBusArgInfo parent_struct; 1159s # gboolean use_gvariant; 1159s # } _ExtendedGDBusArgInfo; 1159s # 1159s # typedef struct 1159s # { 1159s # GDBusMethodInfo parent_struct; 1159s # const gchar *signal_name; 1159s # gboolean pass_fdlist; 1159s # } _ExtendedGDBusMethodInfo; 1159s # 1159s # typedef struct 1159s # { 1159s # GDBusSignalInfo parent_struct; 1159s # const gchar *signal_name; 1159s # } _ExtendedGDBusSignalInfo; 1159s # 1159s # typedef struct 1159s # { 1159s # GDBusPropertyInfo parent_struct; 1159s # const gchar *hyphen_name; 1159s # guint use_gvariant : 1; 1159s # guint emits_changed_signal : 1; 1159s # } _ExtendedGDBusPropertyInfo; 1159s # 1159s # typedef struct 1159s # { 1159s # GDBusInterfaceInfo parent_struct; 1159s # const gchar *hyphen_name; 1159s # } _ExtendedGDBusInterfaceInfo; 1159s # 1159s # typedef struct 1159s # { 1159s # const _ExtendedGDBusPropertyInfo *info; 1159s # guint prop_id; 1159s # GValue orig_value; /* the value before the change */ 1159s # } ChangedProperty; 1159s # 1159s # static void 1159s # _changed_property_free (ChangedProperty *data) 1159s # { 1159s # g_value_unset (&data->orig_value); 1159s # g_free (data); 1159s # } 1159s # 1159s # static gboolean 1159s # _g_strv_equal0 (gchar **a, gchar **b) 1159s # { 1159s # gboolean ret = FALSE; 1159s # guint n; 1159s # if (a == NULL && b == NULL) 1159s # { 1159s # ret = TRUE; 1159s # goto out; 1159s # } 1159s # if (a == NULL || b == NULL) 1159s # goto out; 1159s # if (g_strv_length (a) != g_strv_length (b)) 1159s # goto out; 1159s # for (n = 0; a[n] != NULL; n++) 1159s # if (g_strcmp0 (a[n], b[n]) != 0) 1159s # goto out; 1159s # ret = TRUE; 1159s # out: 1159s # return ret; 1159s # } 1159s # 1159s # static gboolean 1159s # _g_variant_equal0 (GVariant *a, GVariant *b) 1159s # { 1159s # gboolean ret = FALSE; 1159s # if (a == NULL && b == NULL) 1159s # { 1159s # ret = TRUE; 1159s # goto out; 1159s # } 1159s # if (a == NULL || b == NULL) 1159s # goto out; 1159s # ret = g_variant_equal (a, b); 1159s # out: 1159s # return ret; 1159s # } 1159s # 1159s # G_GNUC_UNUSED static gboolean 1159s # _g_value_equal (const GValue *a, const GValue *b) 1159s # { 1159s # gboolean ret = FALSE; 1159s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 1159s # switch (G_VALUE_TYPE (a)) 1159s # { 1159s # case G_TYPE_BOOLEAN: 1159s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 1159s # break; 1159s # case G_TYPE_UCHAR: 1159s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 1159s # break; 1159s # case G_TYPE_INT: 1159s # ret = (g_value_get_int (a) == g_value_get_int (b)); 1159s # break; 1159s # case G_TYPE_UINT: 1159s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 1159s # break; 1159s # case G_TYPE_INT64: 1159s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 1159s # break; 1159s # case G_TYPE_UINT64: 1159s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 1159s # break; 1159s # case G_TYPE_DOUBLE: 1159s # { 1159s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 1159s # gdouble da = g_value_get_double (a); 1159s # gdouble db = g_value_get_double (b); 1159s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 1159s # } 1159s # break; 1159s # case G_TYPE_STRING: 1159s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 1159s # break; 1159s # case G_TYPE_VARIANT: 1159s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 1159s # break; 1159s # default: 1159s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 1159s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 1159s # else 1159s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 1159s # break; 1159s # } 1159s # return ret; 1159s # } 1159s # 1159s # static void 1159s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT ( 1159s # GClosure *closure, 1159s # GValue *return_value, 1159s # unsigned int n_param_values, 1159s # const GValue *param_values, 1159s # void *invocation_hint G_GNUC_UNUSED, 1159s # void *marshal_data) 1159s # { 1159s # typedef gboolean (*_GDbusCodegenMarshalBoolean_ObjectFunc) 1159s # (void *data1, 1159s # GDBusMethodInvocation *arg_method_invocation, 1159s # void *data2); 1159s # _GDbusCodegenMarshalBoolean_ObjectFunc callback; 1159s # GCClosure *cc = (GCClosure*) closure; 1159s # void *data1, *data2; 1159s # gboolean v_return; 1159s # 1159s # g_return_if_fail (return_value != NULL); 1159s # g_return_if_fail (n_param_values == 2); 1159s # 1159s # if (G_CCLOSURE_SWAP_DATA (closure)) 1159s # { 1159s # data1 = closure->data; 1159s # data2 = g_value_peek_pointer (param_values + 0); 1159s # } 1159s # else 1159s # { 1159s # data1 = g_value_peek_pointer (param_values + 0); 1159s # data2 = closure->data; 1159s # } 1159s # 1159s # callback = (_GDbusCodegenMarshalBoolean_ObjectFunc) 1159s # (marshal_data ? marshal_data : cc->callback); 1159s # 1159s # v_return = 1159s # callback (data1, 1159s # g_marshal_value_peek_object (param_values + 1), 1159s # data2); 1159s # 1159s # g_value_set_boolean (return_value, v_return); 1159s # } 1159s # 1159s # /* ------------------------------------------------------------------------ 1159s # * Code for interface org.project.UsefulInterface 1159s # * ------------------------------------------------------------------------ 1159s # */ 1159s # 1159s # /** 1159s # * SECTION:OrgProjectUsefulInterface 1159s # * @title: OrgProjectUsefulInterface 1159s # * @short_description: Generated C code for the org.project.UsefulInterface D-Bus interface 1159s # * 1159s # * This section contains code for working with the org.project.UsefulInterface D-Bus interface in C. 1159s # */ 1159s # 1159s # /* ---- Introspection data for org.project.UsefulInterface ---- */ 1159s # 1159s # static const _ExtendedGDBusArgInfo _org_project_useful_interface_method_info_single_arg_method_u_OUT_ARG_arg_u = 1159s # { 1159s # { 1159s # -1, 1159s # (gchar *) "arg_u", 1159s # (gchar *) "u", 1159s # NULL 1159s # }, 1159s # FALSE 1159s # }; 1159s # 1159s # static const GDBusArgInfo * const _org_project_useful_interface_method_info_single_arg_method_u_OUT_ARG_pointers[] = 1159s # { 1159s # &_org_project_useful_interface_method_info_single_arg_method_u_OUT_ARG_arg_u.parent_struct, 1159s # NULL 1159s # }; 1159s # 1159s # static const _ExtendedGDBusMethodInfo _org_project_useful_interface_method_info_single_arg_method_u = 1159s # { 1159s # { 1159s # -1, 1159s # (gchar *) "SingleArgMethodU", 1159s # NULL, 1159s # (GDBusArgInfo **) &_org_project_useful_interface_method_info_single_arg_method_u_OUT_ARG_pointers, 1159s # NULL 1159s # }, 1159s # "handle-single-arg-method-u", 1159s # FALSE 1159s # }; 1159s # 1159s # static const GDBusMethodInfo * const _org_project_useful_interface_method_info_pointers[] = 1159s # { 1159s # &_org_project_useful_interface_method_info_single_arg_method_u.parent_struct, 1159s # NULL 1159s # }; 1159s # 1159s # static const _ExtendedGDBusInterfaceInfo _org_project_useful_interface_interface_info = 1159s # { 1159s # { 1159s # -1, 1159s # (gchar *) "org.project.UsefulInterface", 1159s # (GDBusMethodInfo **) &_org_project_useful_interface_method_info_pointers, 1159s # NULL, 1159s # NULL, 1159s # NULL 1159s # }, 1159s # "org-project-useful-interface", 1159s # }; 1159s # 1159s # 1159s # /** 1159s # * org_project_useful_interface_interface_info: 1159s # * 1159s # * Gets a machine-readable description of the org.project.UsefulInterface D-Bus interface. 1159s # * 1159s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 1159s # */ 1159s # GDBusInterfaceInfo * 1159s # org_project_useful_interface_interface_info (void) 1159s # { 1159s # return (GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct; 1159s # } 1159s # 1159s # /** 1159s # * org_project_useful_interface_override_properties: 1159s # * @klass: The class structure for a #GObject derived class. 1159s # * @property_id_begin: The property id to assign to the first overridden property. 1159s # * 1159s # * Overrides all #GObject properties in the #OrgProjectUsefulInterface interface for a concrete class. 1159s # * The properties are overridden in the order they are defined. 1159s # * 1159s # * Returns: The last property id. 1159s # */ 1159s # guint 1159s # org_project_useful_interface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 1159s # { 1159s # return property_id_begin - 1; 1159s # } 1159s # 1159s # 1159s # inline static void 1159s # org_project_useful_interface_method_marshal_single_arg_method_u ( 1159s # GClosure *closure, 1159s # GValue *return_value, 1159s # unsigned int n_param_values, 1159s # const GValue *param_values, 1159s # void *invocation_hint, 1159s # void *marshal_data) 1159s # { 1159s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT (closure, 1159s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1159s # } 1159s # 1159s # 1159s # /** 1159s # * OrgProjectUsefulInterface: 1159s # * 1159s # * Abstract interface type for the D-Bus interface org.project.UsefulInterface. 1159s # */ 1159s # 1159s # /** 1159s # * OrgProjectUsefulInterfaceIface: 1159s # * @parent_iface: The parent interface. 1159s # * @handle_single_arg_method_u: Handler for the #OrgProjectUsefulInterface::handle-single-arg-method-u signal. 1159s # * 1159s # * Virtual table for the D-Bus interface org.project.UsefulInterface. 1159s # */ 1159s # 1159s # typedef OrgProjectUsefulInterfaceIface OrgProjectUsefulInterfaceInterface; 1159s # G_DEFINE_INTERFACE (OrgProjectUsefulInterface, org_project_useful_interface, G_TYPE_OBJECT) 1159s # 1159s # static void 1159s # org_project_useful_interface_default_init (OrgProjectUsefulInterfaceIface *iface) 1159s # { 1159s # /* GObject signals for incoming D-Bus method calls: */ 1159s # /** 1159s # * OrgProjectUsefulInterface::handle-single-arg-method-u: 1159s # * @object: A #OrgProjectUsefulInterface. 1159s # * @invocation: A #GDBusMethodInvocation. 1159s # * 1159s # * Signal emitted when a remote caller is invoking the SingleArgMethodU() D-Bus method. 1159s # * 1159s # * 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. 1159s # * 1159s # * 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. 1159s # */ 1159s # g_signal_new ("handle-single-arg-method-u", 1159s # G_TYPE_FROM_INTERFACE (iface), 1159s # G_SIGNAL_RUN_LAST, 1159s # G_STRUCT_OFFSET (OrgProjectUsefulInterfaceIface, handle_single_arg_method_u), 1159s # g_signal_accumulator_true_handled, 1159s # NULL, 1159s # org_project_useful_interface_method_marshal_single_arg_method_u, 1159s # G_TYPE_BOOLEAN, 1159s # 1, 1159s # G_TYPE_DBUS_METHOD_INVOCATION); 1159s # 1159s # } 1159s # 1159s # /** 1159s # * org_project_useful_interface_call_single_arg_method_u: 1159s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1159s # * @cancellable: (nullable): A #GCancellable or %NULL. 1159s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL. 1159s # * @user_data: User data to pass to @callback. 1159s # * 1159s # * Asynchronously invokes the SingleArgMethodU() D-Bus method on @proxy. 1159s # * 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()). 1159s # * You can then call org_project_useful_interface_call_single_arg_method_u_finish() to get the result of the operation. 1159s # * 1159s # * See org_project_useful_interface_call_single_arg_method_u_sync() for the synchronous, blocking version of this method. 1159s # */ 1159s # void 1159s # org_project_useful_interface_call_single_arg_method_u ( 1159s # OrgProjectUsefulInterface *proxy, 1159s # GCancellable *cancellable, 1159s # GAsyncReadyCallback callback, 1159s # gpointer user_data) 1159s # { 1159s # g_dbus_proxy_call (G_DBUS_PROXY (proxy), 1159s # "SingleArgMethodU", 1159s # g_variant_new ("()"), 1159s # G_DBUS_CALL_FLAGS_NONE, 1159s # -1, 1159s # cancellable, 1159s # callback, 1159s # user_data); 1159s # } 1159s # 1159s # /** 1159s # * org_project_useful_interface_call_single_arg_method_u_finish: 1159s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1159s # * @out_arg_u: (out) (optional): Return location for return parameter or %NULL to ignore. 1159s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_call_single_arg_method_u(). 1159s # * @error: Return location for error or %NULL. 1159s # * 1159s # * Finishes an operation started with org_project_useful_interface_call_single_arg_method_u(). 1159s # * 1159s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1159s # */ 1159s # gboolean 1159s # org_project_useful_interface_call_single_arg_method_u_finish ( 1159s # OrgProjectUsefulInterface *proxy, 1159s # guint *out_arg_u, 1159s # GAsyncResult *res, 1159s # GError **error) 1159s # { 1159s # GVariant *_ret; 1159s # _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error); 1159s # if (_ret == NULL) 1159s # goto _out; 1159s # g_variant_get (_ret, 1159s # "(u)", 1159s # out_arg_u); 1159s # g_variant_unref (_ret); 1159s # _out: 1159s # return _ret != NULL; 1159s # } 1159s # 1159s # /** 1159s # * org_project_useful_interface_call_single_arg_method_u_sync: 1159s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1159s # * @out_arg_u: (out) (optional): Return location for return parameter or %NULL to ignore. 1159s # * @cancellable: (nullable): A #GCancellable or %NULL. 1159s # * @error: Return location for error or %NULL. 1159s # * 1159s # * Synchronously invokes the SingleArgMethodU() D-Bus method on @proxy. The calling thread is blocked until a reply is received. 1159s # * 1159s # * See org_project_useful_interface_call_single_arg_method_u() for the asynchronous version of this method. 1159s # * 1159s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1159s # */ 1159s # gboolean 1159s # org_project_useful_interface_call_single_arg_method_u_sync ( 1159s # OrgProjectUsefulInterface *proxy, 1159s # guint *out_arg_u, 1159s # GCancellable *cancellable, 1159s # GError **error) 1159s # { 1159s # GVariant *_ret; 1159s # _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy), 1159s # "SingleArgMethodU", 1159s # g_variant_new ("()"), 1159s # G_DBUS_CALL_FLAGS_NONE, 1159s # -1, 1159s # cancellable, 1159s # error); 1159s # if (_ret == NULL) 1159s # goto _out; 1159s # g_variant_get (_ret, 1159s # "(u)", 1159s # out_arg_u); 1159s # g_variant_unref (_ret); 1159s # _out: 1159s # return _ret != NULL; 1159s # } 1159s # 1159s # /** 1159s # * org_project_useful_interface_complete_single_arg_method_u: 1159s # * @object: A #OrgProjectUsefulInterface. 1159s # * @invocation: (transfer full): A #GDBusMethodInvocation. 1159s # * @arg_u: Parameter to return. 1159s # * 1159s # * 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. 1159s # * 1159s # * This method will free @invocation, you cannot use it afterwards. 1159s # */ 1159s # void 1159s # org_project_useful_interface_complete_single_arg_method_u ( 1159s # OrgProjectUsefulInterface *object G_GNUC_UNUSED, 1159s # GDBusMethodInvocation *invocation, 1159s # guint arg_u) 1159s # { 1159s # g_dbus_method_invocation_return_value (invocation, 1159s # g_variant_new ("(u)", 1159s # arg_u)); 1159s # } 1159s # 1159s # /* ------------------------------------------------------------------------ */ 1159s # 1159s # /** 1159s # * OrgProjectUsefulInterfaceProxy: 1159s # * 1159s # * The #OrgProjectUsefulInterfaceProxy structure contains only private data and should only be accessed using the provided API. 1159s # */ 1159s # 1159s # /** 1159s # * OrgProjectUsefulInterfaceProxyClass: 1159s # * @parent_class: The parent class. 1159s # * 1159s # * Class structure for #OrgProjectUsefulInterfaceProxy. 1159s # */ 1159s # 1159s # struct _OrgProjectUsefulInterfaceProxyPrivate 1159s # { 1159s # GData *qdata; 1159s # }; 1159s # 1159s # static void org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface); 1159s # 1159s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1159s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 1159s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceProxy) 1159s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 1159s # 1159s # #else 1159s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 1159s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 1159s # 1159s # #endif 1159s # static void 1159s # org_project_useful_interface_proxy_finalize (GObject *object) 1159s # { 1159s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (object); 1159s # g_datalist_clear (&proxy->priv->qdata); 1159s # G_OBJECT_CLASS (org_project_useful_interface_proxy_parent_class)->finalize (object); 1159s # } 1159s # 1159s # static void 1159s # org_project_useful_interface_proxy_get_property (GObject *object G_GNUC_UNUSED, 1159s # guint prop_id G_GNUC_UNUSED, 1159s # GValue *value G_GNUC_UNUSED, 1159s # GParamSpec *pspec G_GNUC_UNUSED) 1159s # { 1159s # } 1159s # 1159s # static void 1159s # org_project_useful_interface_proxy_set_property (GObject *object G_GNUC_UNUSED, 1159s # guint prop_id G_GNUC_UNUSED, 1159s # const GValue *value G_GNUC_UNUSED, 1159s # GParamSpec *pspec G_GNUC_UNUSED) 1159s # { 1159s # } 1159s # 1159s # static void 1159s # org_project_useful_interface_proxy_g_signal (GDBusProxy *proxy, 1159s # const gchar *sender_name G_GNUC_UNUSED, 1159s # const gchar *signal_name, 1159s # GVariant *parameters) 1159s # { 1159s # _ExtendedGDBusSignalInfo *info; 1159s # GVariantIter iter; 1159s # GVariant *child; 1159s # GValue *paramv; 1159s # gsize num_params; 1159s # gsize n; 1159s # guint signal_id; 1159s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, signal_name); 1159s # if (info == NULL) 1159s # return; 1159s # num_params = g_variant_n_children (parameters); 1159s # paramv = g_new0 (GValue, num_params + 1); 1159s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1159s # g_value_set_object (¶mv[0], proxy); 1159s # g_variant_iter_init (&iter, parameters); 1159s # n = 1; 1159s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1159s # { 1159s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 1159s # if (arg_info->use_gvariant) 1159s # { 1159s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1159s # g_value_set_variant (¶mv[n], child); 1159s # n++; 1159s # } 1159s # else 1159s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1159s # g_variant_unref (child); 1159s # } 1159s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1159s # g_signal_emitv (paramv, signal_id, 0, NULL); 1159s # for (n = 0; n < num_params + 1; n++) 1159s # g_value_unset (¶mv[n]); 1159s # g_free (paramv); 1159s # } 1159s # 1159s # static void 1159s # org_project_useful_interface_proxy_g_properties_changed (GDBusProxy *_proxy, 1159s # GVariant *changed_properties, 1159s # const gchar *const *invalidated_properties) 1159s # { 1159s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (_proxy); 1159s # guint n; 1159s # const gchar *key; 1159s # GVariantIter *iter; 1159s # _ExtendedGDBusPropertyInfo *info; 1159s # g_variant_get (changed_properties, "a{sv}", &iter); 1159s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 1159s # { 1159s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, key); 1159s # g_datalist_remove_data (&proxy->priv->qdata, key); 1159s # if (info != NULL) 1159s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1159s # } 1159s # g_variant_iter_free (iter); 1159s # for (n = 0; invalidated_properties[n] != NULL; n++) 1159s # { 1159s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, invalidated_properties[n]); 1159s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 1159s # if (info != NULL) 1159s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1159s # } 1159s # } 1159s # 1159s # static void 1159s # org_project_useful_interface_proxy_init (OrgProjectUsefulInterfaceProxy *proxy) 1159s # { 1159s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1159s # proxy->priv = org_project_useful_interface_proxy_get_instance_private (proxy); 1159s # #else 1159s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY, OrgProjectUsefulInterfaceProxyPrivate); 1159s # #endif 1159s # 1159s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_useful_interface_interface_info ()); 1159s # } 1159s # 1159s # static void 1159s # org_project_useful_interface_proxy_class_init (OrgProjectUsefulInterfaceProxyClass *klass) 1159s # { 1159s # GObjectClass *gobject_class; 1159s # GDBusProxyClass *proxy_class; 1159s # 1159s # gobject_class = G_OBJECT_CLASS (klass); 1159s # gobject_class->finalize = org_project_useful_interface_proxy_finalize; 1159s # gobject_class->get_property = org_project_useful_interface_proxy_get_property; 1159s # gobject_class->set_property = org_project_useful_interface_proxy_set_property; 1159s # 1159s # proxy_class = G_DBUS_PROXY_CLASS (klass); 1159s # proxy_class->g_signal = org_project_useful_interface_proxy_g_signal; 1159s # proxy_class->g_properties_changed = org_project_useful_interface_proxy_g_properties_changed; 1159s # 1159s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1159s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceProxyPrivate)); 1159s # #endif 1159s # } 1159s # 1159s # static void 1159s # org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 1159s # { 1159s # } 1159s # 1159s # /** 1159s # * org_project_useful_interface_proxy_new: 1159s # * @connection: A #GDBusConnection. 1159s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1159s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1159s # * @object_path: An object path. 1159s # * @cancellable: (nullable): A #GCancellable or %NULL. 1159s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1159s # * @user_data: User data to pass to @callback. 1159s # * 1159s # * Asynchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new() for more details. 1159s # * 1159s # * 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()). 1159s # * You can then call org_project_useful_interface_proxy_new_finish() to get the result of the operation. 1159s # * 1159s # * See org_project_useful_interface_proxy_new_sync() for the synchronous, blocking version of this constructor. 1159s # */ 1159s # void 1159s # org_project_useful_interface_proxy_new ( 1159s # GDBusConnection *connection, 1159s # GDBusProxyFlags flags, 1159s # const gchar *name, 1159s # const gchar *object_path, 1159s # GCancellable *cancellable, 1159s # GAsyncReadyCallback callback, 1159s # gpointer user_data) 1159s # { 1159s # 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); 1159s # } 1159s # 1159s # /** 1159s # * org_project_useful_interface_proxy_new_finish: 1159s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new(). 1159s # * @error: Return location for error or %NULL 1159s # * 1159s # * Finishes an operation started with org_project_useful_interface_proxy_new(). 1159s # * 1159s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1159s # */ 1159s # OrgProjectUsefulInterface * 1159s # org_project_useful_interface_proxy_new_finish ( 1159s # GAsyncResult *res, 1159s # GError **error) 1159s # { 1159s # GObject *ret; 1159s # GObject *source_object; 1159s # source_object = g_async_result_get_source_object (res); 1159s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1159s # g_object_unref (source_object); 1159s # if (ret != NULL) 1159s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1159s # else 1159s # return NULL; 1159s # } 1159s # 1159s # /** 1159s # * org_project_useful_interface_proxy_new_sync: 1159s # * @connection: A #GDBusConnection. 1159s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1159s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1159s # * @object_path: An object path. 1159s # * @cancellable: (nullable): A #GCancellable or %NULL. 1159s # * @error: Return location for error or %NULL 1159s # * 1159s # * Synchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new_sync() for more details. 1159s # * 1159s # * The calling thread is blocked until a reply is received. 1159s # * 1159s # * See org_project_useful_interface_proxy_new() for the asynchronous version of this constructor. 1159s # * 1159s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1159s # */ 1159s # OrgProjectUsefulInterface * 1159s # org_project_useful_interface_proxy_new_sync ( 1159s # GDBusConnection *connection, 1159s # GDBusProxyFlags flags, 1159s # const gchar *name, 1159s # const gchar *object_path, 1159s # GCancellable *cancellable, 1159s # GError **error) 1159s # { 1159s # GInitable *ret; 1159s # 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); 1159s # if (ret != NULL) 1159s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1159s # else 1159s # return NULL; 1159s # } 1159s # 1159s # 1159s # /** 1159s # * org_project_useful_interface_proxy_new_for_bus: 1159s # * @bus_type: A #GBusType. 1159s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1159s # * @name: A bus name (well-known or unique). 1159s # * @object_path: An object path. 1159s # * @cancellable: (nullable): A #GCancellable or %NULL. 1159s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1159s # * @user_data: User data to pass to @callback. 1159s # * 1159s # * Like org_project_useful_interface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 1159s # * 1159s # * 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()). 1159s # * You can then call org_project_useful_interface_proxy_new_for_bus_finish() to get the result of the operation. 1159s # * 1159s # * See org_project_useful_interface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 1159s # */ 1159s # void 1159s # org_project_useful_interface_proxy_new_for_bus ( 1159s # GBusType bus_type, 1159s # GDBusProxyFlags flags, 1159s # const gchar *name, 1159s # const gchar *object_path, 1159s # GCancellable *cancellable, 1159s # GAsyncReadyCallback callback, 1159s # gpointer user_data) 1159s # { 1159s # 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); 1159s # } 1159s # 1159s # /** 1159s # * org_project_useful_interface_proxy_new_for_bus_finish: 1159s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new_for_bus(). 1159s # * @error: Return location for error or %NULL 1159s # * 1159s # * Finishes an operation started with org_project_useful_interface_proxy_new_for_bus(). 1159s # * 1159s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1159s # */ 1159s # OrgProjectUsefulInterface * 1159s # org_project_useful_interface_proxy_new_for_bus_finish ( 1159s # GAsyncResult *res, 1159s # GError **error) 1159s # { 1159s # GObject *ret; 1159s # GObject *source_object; 1159s # source_object = g_async_result_get_source_object (res); 1159s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1159s # g_object_unref (source_object); 1159s # if (ret != NULL) 1159s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1159s # else 1159s # return NULL; 1159s # } 1159s # 1159s # /** 1159s # * org_project_useful_interface_proxy_new_for_bus_sync: 1159s # * @bus_type: A #GBusType. 1159s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1159s # * @name: A bus name (well-known or unique). 1159s # * @object_path: An object path. 1159s # * @cancellable: (nullable): A #GCancellable or %NULL. 1159s # * @error: Return location for error or %NULL 1159s # * 1159s # * Like org_project_useful_interface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 1159s # * 1159s # * The calling thread is blocked until a reply is received. 1159s # * 1159s # * See org_project_useful_interface_proxy_new_for_bus() for the asynchronous version of this constructor. 1159s # * 1159s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1159s # */ 1159s # OrgProjectUsefulInterface * 1159s # org_project_useful_interface_proxy_new_for_bus_sync ( 1159s # GBusType bus_type, 1159s # GDBusProxyFlags flags, 1159s # const gchar *name, 1159s # const gchar *object_path, 1159s # GCancellable *cancellable, 1159s # GError **error) 1159s # { 1159s # GInitable *ret; 1159s # 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); 1159s # if (ret != NULL) 1159s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1159s # else 1159s # return NULL; 1159s # } 1159s # 1159s # 1159s # /* ------------------------------------------------------------------------ */ 1159s # 1159s # /** 1159s # * OrgProjectUsefulInterfaceSkeleton: 1159s # * 1159s # * The #OrgProjectUsefulInterfaceSkeleton structure contains only private data and should only be accessed using the provided API. 1159s # */ 1159s # 1159s # /** 1159s # * OrgProjectUsefulInterfaceSkeletonClass: 1159s # * @parent_class: The parent class. 1159s # * 1159s # * Class structure for #OrgProjectUsefulInterfaceSkeleton. 1159s # */ 1159s # 1159s # struct _OrgProjectUsefulInterfaceSkeletonPrivate 1159s # { 1159s # GValue *properties; 1159s # GList *changed_properties; 1159s # GSource *changed_properties_idle_source; 1159s # GMainContext *context; 1159s # GMutex lock; 1159s # }; 1159s # 1159s # static void 1159s # _org_project_useful_interface_skeleton_handle_method_call ( 1159s # GDBusConnection *connection G_GNUC_UNUSED, 1159s # const gchar *sender G_GNUC_UNUSED, 1159s # const gchar *object_path G_GNUC_UNUSED, 1159s # const gchar *interface_name, 1159s # const gchar *method_name, 1159s # GVariant *parameters, 1159s # GDBusMethodInvocation *invocation, 1159s # gpointer user_data) 1159s # { 1159s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1159s # _ExtendedGDBusMethodInfo *info; 1159s # GVariantIter iter; 1159s # GVariant *child; 1159s # GValue *paramv; 1159s # gsize num_params; 1159s # guint num_extra; 1159s # gsize n; 1159s # guint signal_id; 1159s # GValue return_value = G_VALUE_INIT; 1159s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 1159s # g_assert (info != NULL); 1159s # num_params = g_variant_n_children (parameters); 1159s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 1159s # n = 0; 1159s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1159s # g_value_set_object (¶mv[n++], skeleton); 1159s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 1159s # g_value_set_object (¶mv[n++], invocation); 1159s # if (info->pass_fdlist) 1159s # { 1159s # #ifdef G_OS_UNIX 1159s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 1159s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 1159s # #else 1159s # g_assert_not_reached (); 1159s # #endif 1159s # } 1159s # g_variant_iter_init (&iter, parameters); 1159s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1159s # { 1159s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 1159s # if (arg_info->use_gvariant) 1159s # { 1159s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1159s # g_value_set_variant (¶mv[n], child); 1159s # n++; 1159s # } 1159s # else 1159s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1159s # g_variant_unref (child); 1159s # } 1159s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1159s # g_value_init (&return_value, G_TYPE_BOOLEAN); 1159s # g_signal_emitv (paramv, signal_id, 0, &return_value); 1159s # if (!g_value_get_boolean (&return_value)) 1159s # 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); 1159s # g_value_unset (&return_value); 1159s # for (n = 0; n < num_params + num_extra; n++) 1159s # g_value_unset (¶mv[n]); 1159s # g_free (paramv); 1159s # } 1159s # 1159s # static GVariant * 1159s # _org_project_useful_interface_skeleton_handle_get_property ( 1159s # GDBusConnection *connection G_GNUC_UNUSED, 1159s # const gchar *sender G_GNUC_UNUSED, 1159s # const gchar *object_path G_GNUC_UNUSED, 1159s # const gchar *interface_name G_GNUC_UNUSED, 1159s # const gchar *property_name, 1159s # GError **error, 1159s # gpointer user_data) 1159s # { 1159s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1159s # GValue value = G_VALUE_INIT; 1159s # GParamSpec *pspec; 1159s # _ExtendedGDBusPropertyInfo *info; 1159s # GVariant *ret; 1159s # ret = NULL; 1159s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 1159s # g_assert (info != NULL); 1159s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1159s # if (pspec == NULL) 1159s # { 1159s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1159s # } 1159s # else 1159s # { 1159s # g_value_init (&value, pspec->value_type); 1159s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1159s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 1159s # g_value_unset (&value); 1159s # } 1159s # return ret; 1159s # } 1159s # 1159s # static gboolean 1159s # _org_project_useful_interface_skeleton_handle_set_property ( 1159s # GDBusConnection *connection G_GNUC_UNUSED, 1159s # const gchar *sender G_GNUC_UNUSED, 1159s # const gchar *object_path G_GNUC_UNUSED, 1159s # const gchar *interface_name G_GNUC_UNUSED, 1159s # const gchar *property_name, 1159s # GVariant *variant, 1159s # GError **error, 1159s # gpointer user_data) 1159s # { 1159s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1159s # GValue value = G_VALUE_INIT; 1159s # GParamSpec *pspec; 1159s # _ExtendedGDBusPropertyInfo *info; 1159s # gboolean ret; 1159s # ret = FALSE; 1159s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 1159s # g_assert (info != NULL); 1159s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1159s # if (pspec == NULL) 1159s # { 1159s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1159s # } 1159s # else 1159s # { 1159s # if (info->use_gvariant) 1159s # g_value_set_variant (&value, variant); 1159s # else 1159s # g_dbus_gvariant_to_gvalue (variant, &value); 1159s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1159s # g_value_unset (&value); 1159s # ret = TRUE; 1159s # } 1159s # return ret; 1159s # } 1159s # 1159s # static const GDBusInterfaceVTable _org_project_useful_interface_skeleton_vtable = 1159s # { 1159s # _org_project_useful_interface_skeleton_handle_method_call, 1159s # _org_project_useful_interface_skeleton_handle_get_property, 1159s # _org_project_useful_interface_skeleton_handle_set_property, 1159s # {NULL} 1159s # }; 1159s # 1159s # static GDBusInterfaceInfo * 1159s # org_project_useful_interface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1159s # { 1159s # return org_project_useful_interface_interface_info (); 1159s # } 1159s # 1159s # static GDBusInterfaceVTable * 1159s # org_project_useful_interface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1159s # { 1159s # return (GDBusInterfaceVTable *) &_org_project_useful_interface_skeleton_vtable; 1159s # } 1159s # 1159s # static GVariant * 1159s # org_project_useful_interface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 1159s # { 1159s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (_skeleton); 1159s # 1159s # GVariantBuilder builder; 1159s # guint n; 1159s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 1159s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 1159s # #else 1159s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 1159s # #endif 1159s # if (_org_project_useful_interface_interface_info.parent_struct.properties == NULL) 1159s # goto out; 1159s # for (n = 0; _org_project_useful_interface_interface_info.parent_struct.properties[n] != NULL; n++) 1159s # { 1159s # GDBusPropertyInfo *info = _org_project_useful_interface_interface_info.parent_struct.properties[n]; 1159s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 1159s # { 1159s # GVariant *value; 1159s # 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); 1159s # if (value != NULL) 1159s # { 1159s # g_variant_take_ref (value); 1159s # g_variant_builder_add (&builder, "{sv}", info->name, value); 1159s # g_variant_unref (value); 1159s # } 1159s # } 1159s # } 1159s # out: 1159s # return g_variant_builder_end (&builder); 1159s # } 1159s # 1159s # static void 1159s # org_project_useful_interface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 1159s # { 1159s # } 1159s # 1159s # static void org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface); 1159s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1159s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1159s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceSkeleton) 1159s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 1159s # 1159s # #else 1159s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1159s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 1159s # 1159s # #endif 1159s # static void 1159s # org_project_useful_interface_skeleton_finalize (GObject *object) 1159s # { 1159s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (object); 1159s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 1159s # if (skeleton->priv->changed_properties_idle_source != NULL) 1159s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 1159s # g_main_context_unref (skeleton->priv->context); 1159s # g_mutex_clear (&skeleton->priv->lock); 1159s # G_OBJECT_CLASS (org_project_useful_interface_skeleton_parent_class)->finalize (object); 1159s # } 1159s # 1159s # static void 1159s # org_project_useful_interface_skeleton_init (OrgProjectUsefulInterfaceSkeleton *skeleton) 1159s # { 1159s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1159s # skeleton->priv = org_project_useful_interface_skeleton_get_instance_private (skeleton); 1159s # #else 1159s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, OrgProjectUsefulInterfaceSkeletonPrivate); 1159s # #endif 1159s # 1159s # g_mutex_init (&skeleton->priv->lock); 1159s # skeleton->priv->context = g_main_context_ref_thread_default (); 1159s # } 1159s # 1159s # static void 1159s # org_project_useful_interface_skeleton_class_init (OrgProjectUsefulInterfaceSkeletonClass *klass) 1159s # { 1159s # GObjectClass *gobject_class; 1159s # GDBusInterfaceSkeletonClass *skeleton_class; 1159s # 1159s # gobject_class = G_OBJECT_CLASS (klass); 1159s # gobject_class->finalize = org_project_useful_interface_skeleton_finalize; 1159s # 1159s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 1159s # skeleton_class->get_info = org_project_useful_interface_skeleton_dbus_interface_get_info; 1159s # skeleton_class->get_properties = org_project_useful_interface_skeleton_dbus_interface_get_properties; 1159s # skeleton_class->flush = org_project_useful_interface_skeleton_dbus_interface_flush; 1159s # skeleton_class->get_vtable = org_project_useful_interface_skeleton_dbus_interface_get_vtable; 1159s # 1159s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1159s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceSkeletonPrivate)); 1159s # #endif 1159s # } 1159s # 1159s # static void 1159s # org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 1159s # { 1159s # } 1159s # 1159s # /** 1159s # * org_project_useful_interface_skeleton_new: 1159s # * 1159s # * Creates a skeleton object for the D-Bus interface org.project.UsefulInterface. 1159s # * 1159s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceSkeleton): The skeleton object. 1159s # */ 1159s # OrgProjectUsefulInterface * 1159s # org_project_useful_interface_skeleton_new (void) 1159s # { 1159s # return ORG_PROJECT_USEFUL_INTERFACE (g_object_new (TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, NULL)); 1159s # } 1159s # Error: 1159s # 1159s # /tmp/tmpatbfkbk2/tmppapaq5ad.xml: 1159s # 1159s # 1159s # 1159s # 1159s # 1159s # 1159s # 1159s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpatbfkbk2/tmppapaq5ad.xml', '--output', '-', '--body'] 1159s # Return code: 0 1159s # Output: 1159s # /* 1159s # * This file is generated by gdbus-codegen, do not modify it. 1159s # * 1159s # * The license of this code is the same as for the D-Bus interface description 1159s # * it was derived from. Note that it links to GLib, so must comply with the 1159s # * LGPL linking clauses. 1159s # */ 1159s # 1159s # #ifdef HAVE_CONFIG_H 1159s # # include "config.h" 1159s # #endif 1159s # 1159s # #include 1159s # #ifdef G_OS_UNIX 1159s # # include 1159s # #endif 1159s # 1159s # #ifdef G_ENABLE_DEBUG 1159s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 1159s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 1159s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 1159s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 1159s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 1159s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 1159s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 1159s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 1159s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 1159s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 1159s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 1159s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 1159s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 1159s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 1159s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 1159s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 1159s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 1159s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 1159s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 1159s # #else /* !G_ENABLE_DEBUG */ 1159s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 1159s # * Do not access GValues directly in your code. Instead, use the 1159s # * g_value_get_*() functions 1159s # */ 1159s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 1159s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 1159s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 1159s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 1159s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 1159s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 1159s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 1159s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 1159s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 1159s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 1159s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 1159s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 1159s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 1159s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 1159s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 1159s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 1159s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 1159s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 1159s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 1159s # #endif /* !G_ENABLE_DEBUG */ 1159s # 1159s # typedef struct 1159s # { 1159s # GDBusArgInfo parent_struct; 1159s # gboolean use_gvariant; 1159s # } _ExtendedGDBusArgInfo; 1159s # 1159s # typedef struct 1159s # { 1159s # GDBusMethodInfo parent_struct; 1159s # const gchar *signal_name; 1159s # gboolean pass_fdlist; 1159s # } _ExtendedGDBusMethodInfo; 1159s # 1159s # typedef struct 1159s # { 1159s # GDBusSignalInfo parent_struct; 1159s # const gchar *signal_name; 1159s # } _ExtendedGDBusSignalInfo; 1159s # 1159s # typedef struct 1159s # { 1159s # GDBusPropertyInfo parent_struct; 1159s # const gchar *hyphen_name; 1159s # guint use_gvariant : 1; 1159s # guint emits_changed_signal : 1; 1159s # } _ExtendedGDBusPropertyInfo; 1159s # 1159s # typedef struct 1159s # { 1159s # GDBusInterfaceInfo parent_struct; 1159s # const gchar *hyphen_name; 1159s # } _ExtendedGDBusInterfaceInfo; 1159s # 1159s # typedef struct 1159s # { 1159s # const _ExtendedGDBusPropertyInfo *info; 1159s # guint prop_id; 1159s # GValue orig_value; /* the value before the change */ 1159s # } ChangedProperty; 1159s # 1159s # static void 1159s # _changed_property_free (ChangedProperty *data) 1159s # { 1159s # g_value_unset (&data->orig_value); 1159s # g_free (data); 1159s # } 1159s # 1159s # static gboolean 1159s # _g_strv_equal0 (gchar **a, gchar **b) 1159s # { 1159s # gboolean ret = FALSE; 1159s # guint n; 1159s # if (a == NULL && b == NULL) 1159s # { 1159s # ret = TRUE; 1159s # goto out; 1159s # } 1159s # if (a == NULL || b == NULL) 1159s # goto out; 1159s # if (g_strv_length (a) != g_strv_length (b)) 1159s # goto out; 1159s # for (n = 0; a[n] != NULL; n++) 1159s # if (g_strcmp0 (a[n], b[n]) != 0) 1159s # goto out; 1159s # ret = TRUE; 1159s # out: 1159s # return ret; 1159s # } 1159s # 1159s # static gboolean 1159s # _g_variant_equal0 (GVariant *a, GVariant *b) 1159s # { 1159s # gboolean ret = FALSE; 1159s # if (a == NULL && b == NULL) 1159s # { 1159s # ret = TRUE; 1159s # goto out; 1159s # } 1159s # if (a == NULL || b == NULL) 1159s # goto out; 1159s # ret = g_variant_equal (a, b); 1159s # out: 1159s # return ret; 1159s # } 1159s # 1159s # G_GNUC_UNUSED static gboolean 1159s # _g_value_equal (const GValue *a, const GValue *b) 1159s # { 1159s # gboolean ret = FALSE; 1159s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 1159s # switch (G_VALUE_TYPE (a)) 1159s # { 1159s # case G_TYPE_BOOLEAN: 1159s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 1159s # break; 1159s # case G_TYPE_UCHAR: 1159s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 1159s # break; 1159s # case G_TYPE_INT: 1159s # ret = (g_value_get_int (a) == g_value_get_int (b)); 1159s # break; 1159s # case G_TYPE_UINT: 1159s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 1159s # break; 1159s # case G_TYPE_INT64: 1159s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 1159s # break; 1159s # case G_TYPE_UINT64: 1159s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 1159s # break; 1159s # case G_TYPE_DOUBLE: 1159s # { 1159s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 1159s # gdouble da = g_value_get_double (a); 1159s # gdouble db = g_value_get_double (b); 1159s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 1159s # } 1159s # break; 1159s # case G_TYPE_STRING: 1159s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 1159s # break; 1159s # case G_TYPE_VARIANT: 1159s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 1159s # break; 1159s # default: 1159s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 1159s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 1159s # else 1159s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 1159s # break; 1159s # } 1159s # return ret; 1159s # } 1159s # 1159s # static void 1159s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT ( 1159s # GClosure *closure, 1159s # GValue *return_value, 1159s # unsigned int n_param_values, 1159s # const GValue *param_values, 1159s # void *invocation_hint G_GNUC_UNUSED, 1159s # void *marshal_data) 1159s # { 1159s # typedef gboolean (*_GDbusCodegenMarshalBoolean_ObjectFunc) 1159s # (void *data1, 1159s # GDBusMethodInvocation *arg_method_invocation, 1159s # void *data2); 1159s # _GDbusCodegenMarshalBoolean_ObjectFunc callback; 1159s # GCClosure *cc = (GCClosure*) closure; 1159s # void *data1, *data2; 1159s # gboolean v_return; 1159s # 1159s # g_return_if_fail (return_value != NULL); 1159s # g_return_if_fail (n_param_values == 2); 1159s # 1159s # if (G_CCLOSURE_SWAP_DATA (closure)) 1159s # { 1159s # data1 = closure->data; 1159s # data2 = g_value_peek_pointer (param_values + 0); 1159s # } 1159s # else 1159s # { 1159s # data1 = g_value_peek_pointer (param_values + 0); 1159s # data2 = closure->data; 1159s # } 1159s # 1159s # callback = (_GDbusCodegenMarshalBoolean_ObjectFunc) 1159s # (marshal_data ? marshal_data : cc->callback); 1159s # 1159s # v_return = 1159s # callback (data1, 1159s # g_marshal_value_peek_object (param_values + 1), 1159s # data2); 1159s # 1159s # g_value_set_boolean (return_value, v_return); 1159s # } 1159s # 1159s # /* ------------------------------------------------------------------------ 1159s # * Code for interface org.project.UsefulInterface 1159s # * ------------------------------------------------------------------------ 1159s # */ 1159s # 1159s # /** 1159s # * SECTION:OrgProjectUsefulInterface 1159s # * @title: OrgProjectUsefulInterface 1159s # * @short_description: Generated C code for the org.project.UsefulInterface D-Bus interface 1159s # * 1159s # * This section contains code for working with the org.project.UsefulInterface D-Bus interface in C. 1159s # */ 1159s # 1159s # /* ---- Introspection data for org.project.UsefulInterface ---- */ 1159s # 1159s # static const _ExtendedGDBusArgInfo _org_project_useful_interface_method_info_single_arg_method_x_OUT_ARG_arg_x = 1159s # { 1159s # { 1159s # -1, 1159s # (gchar *) "arg_x", 1159s # (gchar *) "x", 1159s # NULL 1159s # }, 1159s # FALSE 1159s # }; 1159s # 1159s # static const GDBusArgInfo * const _org_project_useful_interface_method_info_single_arg_method_x_OUT_ARG_pointers[] = 1159s # { 1159s # &_org_project_useful_interface_method_info_single_arg_method_x_OUT_ARG_arg_x.parent_struct, 1159s # NULL 1159s # }; 1159s # 1159s # static const _ExtendedGDBusMethodInfo _org_project_useful_interface_method_info_single_arg_method_x = 1159s # { 1159s # { 1159s # -1, 1159s # (gchar *) "SingleArgMethodX", 1159s # NULL, 1159s # (GDBusArgInfo **) &_org_project_useful_interface_method_info_single_arg_method_x_OUT_ARG_pointers, 1159s # NULL 1159s # }, 1159s # "handle-single-arg-method-x", 1159s # FALSE 1159s # }; 1159s # 1159s # static const GDBusMethodInfo * const _org_project_useful_interface_method_info_pointers[] = 1159s # { 1159s # &_org_project_useful_interface_method_info_single_arg_method_x.parent_struct, 1159s # NULL 1159s # }; 1159s # 1159s # static const _ExtendedGDBusInterfaceInfo _org_project_useful_interface_interface_info = 1159s # { 1159s # { 1159s # -1, 1159s # (gchar *) "org.project.UsefulInterface", 1159s # (GDBusMethodInfo **) &_org_project_useful_interface_method_info_pointers, 1159s # NULL, 1159s # NULL, 1159s # NULL 1159s # }, 1159s # "org-project-useful-interface", 1159s # }; 1159s # 1159s # 1159s # /** 1159s # * org_project_useful_interface_interface_info: 1159s # * 1159s # * Gets a machine-readable description of the org.project.UsefulInterface D-Bus interface. 1159s # * 1159s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 1159s # */ 1159s # GDBusInterfaceInfo * 1159s # org_project_useful_interface_interface_info (void) 1159s # { 1159s # return (GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct; 1159s # } 1159s # 1159s # /** 1159s # * org_project_useful_interface_override_properties: 1159s # * @klass: The class structure for a #GObject derived class. 1159s # * @property_id_begin: The property id to assign to the first overridden property. 1159s # * 1159s # * Overrides all #GObject properties in the #OrgProjectUsefulInterface interface for a concrete class. 1159s # * The properties are overridden in the order they are defined. 1159s # * 1159s # * Returns: The last property id. 1159s # */ 1159s # guint 1159s # org_project_useful_interface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 1159s # { 1159s # return property_id_begin - 1; 1159s # } 1159s # 1159s # 1159s # inline static void 1159s # org_project_useful_interface_method_marshal_single_arg_method_x ( 1159s # GClosure *closure, 1159s # GValue *return_value, 1159s # unsigned int n_param_values, 1159s # const GValue *param_values, 1159s # void *invocation_hint, 1159s # void *marshal_data) 1159s # { 1159s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT (closure, 1159s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1159s # } 1159s # 1159s # 1159s # /** 1159s # * OrgProjectUsefulInterface: 1159s # * 1159s # * Abstract interface type for the D-Bus interface org.project.UsefulInterface. 1159s # */ 1159s # 1159s # /** 1159s # * OrgProjectUsefulInterfaceIface: 1159s # * @parent_iface: The parent interface. 1159s # * @handle_single_arg_method_x: Handler for the #OrgProjectUsefulInterface::handle-single-arg-method-x signal. 1159s # * 1159s # * Virtual table for the D-Bus interface org.project.UsefulInterface. 1159s # */ 1159s # 1159s # typedef OrgProjectUsefulInterfaceIface OrgProjectUsefulInterfaceInterface; 1159s # G_DEFINE_INTERFACE (OrgProjectUsefulInterface, org_project_useful_interface, G_TYPE_OBJECT) 1159s # 1159s # static void 1159s # org_project_useful_interface_default_init (OrgProjectUsefulInterfaceIface *iface) 1159s # { 1159s # /* GObject signals for incoming D-Bus method calls: */ 1159s # /** 1159s # * OrgProjectUsefulInterface::handle-single-arg-method-x: 1159s # * @object: A #OrgProjectUsefulInterface. 1159s # * @invocation: A #GDBusMethodInvocation. 1159s # * 1159s # * Signal emitted when a remote caller is invoking the SingleArgMethodX() D-Bus method. 1159s # * 1159s # * 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. 1159s # * 1159s # * 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. 1159s # */ 1159s # g_signal_new ("handle-single-arg-method-x", 1159s # G_TYPE_FROM_INTERFACE (iface), 1159s # G_SIGNAL_RUN_LAST, 1159s # G_STRUCT_OFFSET (OrgProjectUsefulInterfaceIface, handle_single_arg_method_x), 1159s # g_signal_accumulator_true_handled, 1159s # NULL, 1159s # org_project_useful_interface_method_marshal_single_arg_method_x, 1159s # G_TYPE_BOOLEAN, 1159s # 1, 1159s # G_TYPE_DBUS_METHOD_INVOCATION); 1159s # 1159s # } 1159s # 1159s # /** 1159s # * org_project_useful_interface_call_single_arg_method_x: 1159s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1159s # * @cancellable: (nullable): A #GCancellable or %NULL. 1159s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL. 1159s # * @user_data: User data to pass to @callback. 1159s # * 1159s # * Asynchronously invokes the SingleArgMethodX() D-Bus method on @proxy. 1159s # * 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()). 1159s # * You can then call org_project_useful_interface_call_single_arg_method_x_finish() to get the result of the operation. 1159s # * 1159s # * See org_project_useful_interface_call_single_arg_method_x_sync() for the synchronous, blocking version of this method. 1159s # */ 1159s # void 1159s # org_project_useful_interface_call_single_arg_method_x ( 1159s # OrgProjectUsefulInterface *proxy, 1159s # GCancellable *cancellable, 1159s # GAsyncReadyCallback callback, 1159s # gpointer user_data) 1159s # { 1159s # g_dbus_proxy_call (G_DBUS_PROXY (proxy), 1159s # "SingleArgMethodX", 1159s # g_variant_new ("()"), 1159s # G_DBUS_CALL_FLAGS_NONE, 1159s # -1, 1159s # cancellable, 1159s # callback, 1159s # user_data); 1159s # } 1159s # 1159s # /** 1159s # * org_project_useful_interface_call_single_arg_method_x_finish: 1159s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1159s # * @out_arg_x: (out) (optional): Return location for return parameter or %NULL to ignore. 1159s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_call_single_arg_method_x(). 1159s # * @error: Return location for error or %NULL. 1159s # * 1159s # * Finishes an operation started with org_project_useful_interface_call_single_arg_method_x(). 1159s # * 1159s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1159s # */ 1159s # gboolean 1159s # org_project_useful_interface_call_single_arg_method_x_finish ( 1159s # OrgProjectUsefulInterface *proxy, 1159s # gint64 *out_arg_x, 1159s # GAsyncResult *res, 1159s # GError **error) 1159s # { 1159s # GVariant *_ret; 1159s # _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error); 1159s # if (_ret == NULL) 1159s # goto _out; 1159s # g_variant_get (_ret, 1159s # "(x)", 1159s # out_arg_x); 1159s # g_variant_unref (_ret); 1159s # _out: 1159s # return _ret != NULL; 1159s # } 1159s # 1159s # /** 1159s # * org_project_useful_interface_call_single_arg_method_x_sync: 1159s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1159s # * @out_arg_x: (out) (optional): Return location for return parameter or %NULL to ignore. 1159s # * @cancellable: (nullable): A #GCancellable or %NULL. 1159s # * @error: Return location for error or %NULL. 1159s # * 1159s # * Synchronously invokes the SingleArgMethodX() D-Bus method on @proxy. The calling thread is blocked until a reply is received. 1159s # * 1159s # * See org_project_useful_interface_call_single_arg_method_x() for the asynchronous version of this method. 1159s # * 1159s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1159s # */ 1159s # gboolean 1159s # org_project_useful_interface_call_single_arg_method_x_sync ( 1159s # OrgProjectUsefulInterface *proxy, 1159s # gint64 *out_arg_x, 1159s # GCancellable *cancellable, 1159s # GError **error) 1159s # { 1159s # GVariant *_ret; 1159s # _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy), 1159s # "SingleArgMethodX", 1159s # g_variant_new ("()"), 1159s # G_DBUS_CALL_FLAGS_NONE, 1159s # -1, 1159s # cancellable, 1159s # error); 1159s # if (_ret == NULL) 1159s # goto _out; 1159s # g_variant_get (_ret, 1159s # "(x)", 1159s # out_arg_x); 1159s # g_variant_unref (_ret); 1159s # _out: 1159s # return _ret != NULL; 1159s # } 1159s # 1159s # /** 1159s # * org_project_useful_interface_complete_single_arg_method_x: 1159s # * @object: A #OrgProjectUsefulInterface. 1159s # * @invocation: (transfer full): A #GDBusMethodInvocation. 1159s # * @arg_x: Parameter to return. 1159s # * 1159s # * 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. 1159s # * 1159s # * This method will free @invocation, you cannot use it afterwards. 1159s # */ 1159s # void 1159s # org_project_useful_interface_complete_single_arg_method_x ( 1159s # OrgProjectUsefulInterface *object G_GNUC_UNUSED, 1159s # GDBusMethodInvocation *invocation, 1159s # gint64 arg_x) 1159s # { 1159s # g_dbus_method_invocation_return_value (invocation, 1159s # g_variant_new ("(x)", 1159s # arg_x)); 1159s # } 1159s # 1159s # /* ------------------------------------------------------------------------ */ 1159s # 1159s # /** 1159s # * OrgProjectUsefulInterfaceProxy: 1159s # * 1159s # * The #OrgProjectUsefulInterfaceProxy structure contains only private data and should only be accessed using the provided API. 1159s # */ 1159s # 1159s # /** 1159s # * OrgProjectUsefulInterfaceProxyClass: 1159s # * @parent_class: The parent class. 1159s # * 1159s # * Class structure for #OrgProjectUsefulInterfaceProxy. 1159s # */ 1159s # 1159s # struct _OrgProjectUsefulInterfaceProxyPrivate 1159s # { 1159s # GData *qdata; 1159s # }; 1159s # 1159s # static void org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface); 1159s # 1159s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1159s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 1159s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceProxy) 1159s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 1159s # 1159s # #else 1159s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 1159s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 1159s # 1159s # #endif 1159s # static void 1159s # org_project_useful_interface_proxy_finalize (GObject *object) 1159s # { 1159s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (object); 1159s # g_datalist_clear (&proxy->priv->qdata); 1159s # G_OBJECT_CLASS (org_project_useful_interface_proxy_parent_class)->finalize (object); 1159s # } 1159s # 1159s # static void 1159s # org_project_useful_interface_proxy_get_property (GObject *object G_GNUC_UNUSED, 1159s # guint prop_id G_GNUC_UNUSED, 1159s # GValue *value G_GNUC_UNUSED, 1159s # GParamSpec *pspec G_GNUC_UNUSED) 1159s # { 1159s # } 1159s # 1159s # static void 1159s # org_project_useful_interface_proxy_set_property (GObject *object G_GNUC_UNUSED, 1159s # guint prop_id G_GNUC_UNUSED, 1159s # const GValue *value G_GNUC_UNUSED, 1159s # GParamSpec *pspec G_GNUC_UNUSED) 1159s # { 1159s # } 1159s # 1159s # static void 1159s # org_project_useful_interface_proxy_g_signal (GDBusProxy *proxy, 1159s # const gchar *sender_name G_GNUC_UNUSED, 1159s # const gchar *signal_name, 1159s # GVariant *parameters) 1159s # { 1159s # _ExtendedGDBusSignalInfo *info; 1159s # GVariantIter iter; 1159s # GVariant *child; 1159s # GValue *paramv; 1159s # gsize num_params; 1159s # gsize n; 1159s # guint signal_id; 1159s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, signal_name); 1159s # if (info == NULL) 1159s # return; 1159s # num_params = g_variant_n_children (parameters); 1159s # paramv = g_new0 (GValue, num_params + 1); 1159s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1159s # g_value_set_object (¶mv[0], proxy); 1159s # g_variant_iter_init (&iter, parameters); 1159s # n = 1; 1159s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1159s # { 1159s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 1159s # if (arg_info->use_gvariant) 1159s # { 1159s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1159s # g_value_set_variant (¶mv[n], child); 1159s # n++; 1159s # } 1159s # else 1159s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1159s # g_variant_unref (child); 1159s # } 1159s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1159s # g_signal_emitv (paramv, signal_id, 0, NULL); 1159s # for (n = 0; n < num_params + 1; n++) 1159s # g_value_unset (¶mv[n]); 1159s # g_free (paramv); 1159s # } 1159s # 1159s # static void 1159s # org_project_useful_interface_proxy_g_properties_changed (GDBusProxy *_proxy, 1159s # GVariant *changed_properties, 1159s # const gchar *const *invalidated_properties) 1159s # { 1159s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (_proxy); 1159s # guint n; 1159s # const gchar *key; 1159s # GVariantIter *iter; 1159s # _ExtendedGDBusPropertyInfo *info; 1159s # g_variant_get (changed_properties, "a{sv}", &iter); 1159s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 1159s # { 1159s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, key); 1159s # g_datalist_remove_data (&proxy->priv->qdata, key); 1159s # if (info != NULL) 1159s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1159s # } 1159s # g_variant_iter_free (iter); 1159s # for (n = 0; invalidated_properties[n] != NULL; n++) 1159s # { 1159s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, invalidated_properties[n]); 1159s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 1159s # if (info != NULL) 1159s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1159s # } 1159s # } 1159s # 1159s # static void 1159s # org_project_useful_interface_proxy_init (OrgProjectUsefulInterfaceProxy *proxy) 1159s # { 1159s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1159s # proxy->priv = org_project_useful_interface_proxy_get_instance_private (proxy); 1159s # #else 1159s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY, OrgProjectUsefulInterfaceProxyPrivate); 1159s # #endif 1159s # 1159s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_useful_interface_interface_info ()); 1159s # } 1159s # 1159s # static void 1159s # org_project_useful_interface_proxy_class_init (OrgProjectUsefulInterfaceProxyClass *klass) 1159s # { 1159s # GObjectClass *gobject_class; 1159s # GDBusProxyClass *proxy_class; 1159s # 1159s # gobject_class = G_OBJECT_CLASS (klass); 1159s # gobject_class->finalize = org_project_useful_interface_proxy_finalize; 1159s # gobject_class->get_property = org_project_useful_interface_proxy_get_property; 1159s # gobject_class->set_property = org_project_useful_interface_proxy_set_property; 1159s # 1159s # proxy_class = G_DBUS_PROXY_CLASS (klass); 1159s # proxy_class->g_signal = org_project_useful_interface_proxy_g_signal; 1159s # proxy_class->g_properties_changed = org_project_useful_interface_proxy_g_properties_changed; 1159s # 1159s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1159s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceProxyPrivate)); 1159s # #endif 1159s # } 1159s # 1159s # static void 1159s # org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 1159s # { 1159s # } 1159s # 1159s # /** 1159s # * org_project_useful_interface_proxy_new: 1159s # * @connection: A #GDBusConnection. 1159s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1159s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1159s # * @object_path: An object path. 1159s # * @cancellable: (nullable): A #GCancellable or %NULL. 1159s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1159s # * @user_data: User data to pass to @callback. 1159s # * 1159s # * Asynchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new() for more details. 1159s # * 1159s # * 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()). 1159s # * You can then call org_project_useful_interface_proxy_new_finish() to get the result of the operation. 1159s # * 1159s # * See org_project_useful_interface_proxy_new_sync() for the synchronous, blocking version of this constructor. 1159s # */ 1159s # void 1159s # org_project_useful_interface_proxy_new ( 1159s # GDBusConnection *connection, 1159s # GDBusProxyFlags flags, 1159s # const gchar *name, 1159s # const gchar *object_path, 1159s # GCancellable *cancellable, 1159s # GAsyncReadyCallback callback, 1159s # gpointer user_data) 1159s # { 1159s # 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); 1159s # } 1159s # 1159s # /** 1159s # * org_project_useful_interface_proxy_new_finish: 1159s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new(). 1159s # * @error: Return location for error or %NULL 1159s # * 1159s # * Finishes an operation started with org_project_useful_interface_proxy_new(). 1159s # * 1159s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1159s # */ 1159s # OrgProjectUsefulInterface * 1159s # org_project_useful_interface_proxy_new_finish ( 1159s # GAsyncResult *res, 1159s # GError **error) 1159s # { 1159s # GObject *ret; 1159s # GObject *source_object; 1159s # source_object = g_async_result_get_source_object (res); 1159s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1159s # g_object_unref (source_object); 1159s # if (ret != NULL) 1159s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1159s # else 1159s # return NULL; 1159s # } 1159s # 1159s # /** 1159s # * org_project_useful_interface_proxy_new_sync: 1159s # * @connection: A #GDBusConnection. 1159s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1159s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1159s # * @object_path: An object path. 1159s # * @cancellable: (nullable): A #GCancellable or %NULL. 1159s # * @error: Return location for error or %NULL 1159s # * 1159s # * Synchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new_sync() for more details. 1159s # * 1159s # * The calling thread is blocked until a reply is received. 1159s # * 1159s # * See org_project_useful_interface_proxy_new() for the asynchronous version of this constructor. 1159s # * 1159s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1159s # */ 1159s # OrgProjectUsefulInterface * 1159s # org_project_useful_interface_proxy_new_sync ( 1159s # GDBusConnection *connection, 1159s # GDBusProxyFlags flags, 1159s # const gchar *name, 1159s # const gchar *object_path, 1159s # GCancellable *cancellable, 1159s # GError **error) 1159s # { 1159s # GInitable *ret; 1159s # 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); 1159s # if (ret != NULL) 1159s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1159s # else 1159s # return NULL; 1159s # } 1159s # 1159s # 1159s # /** 1159s # * org_project_useful_interface_proxy_new_for_bus: 1159s # * @bus_type: A #GBusType. 1159s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1159s # * @name: A bus name (well-known or unique). 1159s # * @object_path: An object path. 1159s # * @cancellable: (nullable): A #GCancellable or %NULL. 1159s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1159s # * @user_data: User data to pass to @callback. 1159s # * 1159s # * Like org_project_useful_interface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 1159s # * 1159s # * 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()). 1159s # * You can then call org_project_useful_interface_proxy_new_for_bus_finish() to get the result of the operation. 1159s # * 1159s # * See org_project_useful_interface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 1159s # */ 1159s # void 1159s # org_project_useful_interface_proxy_new_for_bus ( 1159s # GBusType bus_type, 1159s # GDBusProxyFlags flags, 1159s # const gchar *name, 1159s # const gchar *object_path, 1159s # GCancellable *cancellable, 1159s # GAsyncReadyCallback callback, 1159s # gpointer user_data) 1159s # { 1159s # 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); 1159s # } 1159s # 1159s # /** 1159s # * org_project_useful_interface_proxy_new_for_bus_finish: 1159s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new_for_bus(). 1159s # * @error: Return location for error or %NULL 1159s # * 1159s # * Finishes an operation started with org_project_useful_interface_proxy_new_for_bus(). 1159s # * 1159s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1159s # */ 1159s # OrgProjectUsefulInterface * 1159s # org_project_useful_interface_proxy_new_for_bus_finish ( 1159s # GAsyncResult *res, 1159s # GError **error) 1159s # { 1159s # GObject *ret; 1159s # GObject *source_object; 1159s # source_object = g_async_result_get_source_object (res); 1159s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1159s # g_object_unref (source_object); 1159s # if (ret != NULL) 1159s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1159s # else 1159s # return NULL; 1159s # } 1159s # 1159s # /** 1159s # * org_project_useful_interface_proxy_new_for_bus_sync: 1159s # * @bus_type: A #GBusType. 1159s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1159s # * @name: A bus name (well-known or unique). 1159s # * @object_path: An object path. 1159s # * @cancellable: (nullable): A #GCancellable or %NULL. 1159s # * @error: Return location for error or %NULL 1159s # * 1159s # * Like org_project_useful_interface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 1159s # * 1159s # * The calling thread is blocked until a reply is received. 1159s # * 1159s # * See org_project_useful_interface_proxy_new_for_bus() for the asynchronous version of this constructor. 1159s # * 1159s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1159s # */ 1159s # OrgProjectUsefulInterface * 1159s # org_project_useful_interface_proxy_new_for_bus_sync ( 1159s # GBusType bus_type, 1159s # GDBusProxyFlags flags, 1159s # const gchar *name, 1159s # const gchar *object_path, 1159s # GCancellable *cancellable, 1159s # GError **error) 1159s # { 1159s # GInitable *ret; 1159s # 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); 1159s # if (ret != NULL) 1159s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1159s # else 1159s # return NULL; 1159s # } 1159s # 1159s # 1159s # /* ------------------------------------------------------------------------ */ 1159s # 1159s # /** 1159s # * OrgProjectUsefulInterfaceSkeleton: 1159s # * 1159s # * The #OrgProjectUsefulInterfaceSkeleton structure contains only private data and should only be accessed using the provided API. 1159s # */ 1159s # 1159s # /** 1159s # * OrgProjectUsefulInterfaceSkeletonClass: 1159s # * @parent_class: The parent class. 1159s # * 1159s # * Class structure for #OrgProjectUsefulInterfaceSkeleton. 1159s # */ 1159s # 1159s # struct _OrgProjectUsefulInterfaceSkeletonPrivate 1159s # { 1159s # GValue *properties; 1159s # GList *changed_properties; 1159s # GSource *changed_properties_idle_source; 1159s # GMainContext *context; 1159s # GMutex lock; 1159s # }; 1159s # 1159s # static void 1159s # _org_project_useful_interface_skeleton_handle_method_call ( 1159s # GDBusConnection *connection G_GNUC_UNUSED, 1159s # const gchar *sender G_GNUC_UNUSED, 1159s # const gchar *object_path G_GNUC_UNUSED, 1159s # const gchar *interface_name, 1159s # const gchar *method_name, 1159s # GVariant *parameters, 1159s # GDBusMethodInvocation *invocation, 1159s # gpointer user_data) 1159s # { 1159s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1159s # _ExtendedGDBusMethodInfo *info; 1159s # GVariantIter iter; 1159s # GVariant *child; 1159s # GValue *paramv; 1159s # gsize num_params; 1159s # guint num_extra; 1159s # gsize n; 1159s # guint signal_id; 1159s # GValue return_value = G_VALUE_INIT; 1159s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 1159s # g_assert (info != NULL); 1159s # num_params = g_variant_n_children (parameters); 1159s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 1159s # n = 0; 1159s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1159s # g_value_set_object (¶mv[n++], skeleton); 1159s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 1159s # g_value_set_object (¶mv[n++], invocation); 1159s # if (info->pass_fdlist) 1159s # { 1159s # #ifdef G_OS_UNIX 1159s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 1159s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 1159s # #else 1159s # g_assert_not_reached (); 1159s # #endif 1159s # } 1159s # g_variant_iter_init (&iter, parameters); 1159s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1159s # { 1159s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 1159s # if (arg_info->use_gvariant) 1159s # { 1159s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1159s # g_value_set_variant (¶mv[n], child); 1159s # n++; 1159s # } 1159s # else 1159s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1159s # g_variant_unref (child); 1159s # } 1159s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1159s # g_value_init (&return_value, G_TYPE_BOOLEAN); 1159s # g_signal_emitv (paramv, signal_id, 0, &return_value); 1159s # if (!g_value_get_boolean (&return_value)) 1159s # 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); 1159s # g_value_unset (&return_value); 1159s # for (n = 0; n < num_params + num_extra; n++) 1159s # g_value_unset (¶mv[n]); 1159s # g_free (paramv); 1159s # } 1159s # 1159s # static GVariant * 1159s # _org_project_useful_interface_skeleton_handle_get_property ( 1159s # GDBusConnection *connection G_GNUC_UNUSED, 1159s # const gchar *sender G_GNUC_UNUSED, 1159s # const gchar *object_path G_GNUC_UNUSED, 1159s # const gchar *interface_name G_GNUC_UNUSED, 1159s # const gchar *property_name, 1159s # GError **error, 1159s # gpointer user_data) 1159s # { 1159s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1159s # GValue value = G_VALUE_INIT; 1159s # GParamSpec *pspec; 1159s # _ExtendedGDBusPropertyInfo *info; 1159s # GVariant *ret; 1159s # ret = NULL; 1159s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 1159s # g_assert (info != NULL); 1159s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1159s # if (pspec == NULL) 1159s # { 1159s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1159s # } 1159s # else 1159s # { 1159s # g_value_init (&value, pspec->value_type); 1159s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1159s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 1159s # g_value_unset (&value); 1159s # } 1159s # return ret; 1159s # } 1159s # 1159s # static gboolean 1159s # _org_project_useful_interface_skeleton_handle_set_property ( 1159s # GDBusConnection *connection G_GNUC_UNUSED, 1159s # const gchar *sender G_GNUC_UNUSED, 1159s # const gchar *object_path G_GNUC_UNUSED, 1159s # const gchar *interface_name G_GNUC_UNUSED, 1159s # const gchar *property_name, 1159s # GVariant *variant, 1159s # GError **error, 1159s # gpointer user_data) 1159s # { 1159s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1159s # GValue value = G_VALUE_INIT; 1159s # GParamSpec *pspec; 1159s # _ExtendedGDBusPropertyInfo *info; 1159s # gboolean ret; 1159s # ret = FALSE; 1159s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 1159s # g_assert (info != NULL); 1159s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1159s # if (pspec == NULL) 1159s # { 1159s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1159s # } 1159s # else 1159s # { 1159s # if (info->use_gvariant) 1159s # g_value_set_variant (&value, variant); 1159s # else 1159s # g_dbus_gvariant_to_gvalue (variant, &value); 1159s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1159s # g_value_unset (&value); 1159s # ret = TRUE; 1159s # } 1159s # return ret; 1159s # } 1159s # 1159s # static const GDBusInterfaceVTable _org_project_useful_interface_skeleton_vtable = 1159s # { 1159s # _org_project_useful_interface_skeleton_handle_method_call, 1159s # _org_project_useful_interface_skeleton_handle_get_property, 1159s # _org_project_useful_interface_skeleton_handle_set_property, 1159s # {NULL} 1159s # }; 1159s # 1159s # static GDBusInterfaceInfo * 1159s # org_project_useful_interface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1159s # { 1159s # return org_project_useful_interface_interface_info (); 1159s # } 1159s # 1159s # static GDBusInterfaceVTable * 1159s # org_project_useful_interface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1159s # { 1159s # return (GDBusInterfaceVTable *) &_org_project_useful_interface_skeleton_vtable; 1159s # } 1159s # 1159s # static GVariant * 1159s # org_project_useful_interface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 1159s # { 1159s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (_skeleton); 1159s # 1159s # GVariantBuilder builder; 1159s # guint n; 1159s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 1159s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 1159s # #else 1159s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 1159s # #endif 1159s # if (_org_project_useful_interface_interface_info.parent_struct.properties == NULL) 1159s # goto out; 1159s # for (n = 0; _org_project_useful_interface_interface_info.parent_struct.properties[n] != NULL; n++) 1159s # { 1159s # GDBusPropertyInfo *info = _org_project_useful_interface_interface_info.parent_struct.properties[n]; 1159s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 1159s # { 1159s # GVariant *value; 1159s # 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); 1159s # if (value != NULL) 1159s # { 1159s # g_variant_take_ref (value); 1159s # g_variant_builder_add (&builder, "{sv}", info->name, value); 1159s # g_variant_unref (value); 1159s # } 1159s # } 1159s # } 1159s # out: 1159s # return g_variant_builder_end (&builder); 1159s # } 1159s # 1159s # static void 1159s # org_project_useful_interface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 1159s # { 1159s # } 1159s # 1159s # static void org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface); 1159s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1159s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1159s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceSkeleton) 1159s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 1159s # 1159s # #else 1159s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1159s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 1159s # 1159s # #endif 1159s # static void 1159s # org_project_useful_interface_skeleton_finalize (GObject *object) 1159s # { 1159s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (object); 1159s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 1159s # if (skeleton->priv->changed_properties_idle_source != NULL) 1159s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 1159s # g_main_context_unref (skeleton->priv->context); 1159s # g_mutex_clear (&skeleton->priv->lock); 1159s # G_OBJECT_CLASS (org_project_useful_interface_skeleton_parent_class)->finalize (object); 1159s # } 1159s # 1159s # static void 1159s # org_project_useful_interface_skeleton_init (OrgProjectUsefulInterfaceSkeleton *skeleton) 1159s # { 1159s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1159s # skeleton->priv = org_project_useful_interface_skeleton_get_instance_private (skeleton); 1159s # #else 1159s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, OrgProjectUsefulInterfaceSkeletonPrivate); 1159s # #endif 1159s # 1159s # g_mutex_init (&skeleton->priv->lock); 1159s # skeleton->priv->context = g_main_context_ref_thread_default (); 1159s # } 1159s # 1159s # static void 1159s # org_project_useful_interface_skeleton_class_init (OrgProjectUsefulInterfaceSkeletonClass *klass) 1159s # { 1159s # GObjectClass *gobject_class; 1159s # GDBusInterfaceSkeletonClass *skeleton_class; 1159s # 1159s # gobject_class = G_OBJECT_CLASS (klass); 1159s # gobject_class->finalize = org_project_useful_interface_skeleton_finalize; 1159s # 1159s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 1159s # skeleton_class->get_info = org_project_useful_interface_skeleton_dbus_interface_get_info; 1159s # skeleton_class->get_properties = org_project_useful_interface_skeleton_dbus_interface_get_properties; 1159s # skeleton_class->flush = org_project_useful_interface_skeleton_dbus_interface_flush; 1159s # skeleton_class->get_vtable = org_project_useful_interface_skeleton_dbus_interface_get_vtable; 1159s # 1159s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1159s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceSkeletonPrivate)); 1159s # #endif 1159s # } 1159s # 1159s # static void 1159s # org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 1159s # { 1159s # } 1159s # 1159s # /** 1159s # * org_project_useful_interface_skeleton_new: 1159s # * 1159s # * Creates a skeleton object for the D-Bus interface org.project.UsefulInterface. 1159s # * 1159s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceSkeleton): The skeleton object. 1159s # */ 1159s # OrgProjectUsefulInterface * 1159s # org_project_useful_interface_skeleton_new (void) 1159s # { 1159s # return ORG_PROJECT_USEFUL_INTERFACE (g_object_new (TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, NULL)); 1159s # } 1159s # Error: 1159s # 1159s # /tmp/tmpatbfkbk2/tmpwf5co6gf.xml: 1159s # 1159s # 1159s # 1159s # 1159s # 1159s # 1159s # 1159s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpatbfkbk2/tmpwf5co6gf.xml', '--output', '-', '--body'] 1159s # Return code: 0 1159s # Output: 1159s # /* 1159s # * This file is generated by gdbus-codegen, do not modify it. 1159s # * 1159s # * The license of this code is the same as for the D-Bus interface description 1159s # * it was derived from. Note that it links to GLib, so must comply with the 1159s # * LGPL linking clauses. 1159s # */ 1159s # 1159s # #ifdef HAVE_CONFIG_H 1159s # # include "config.h" 1159s # #endif 1159s # 1159s # #include 1159s # #ifdef G_OS_UNIX 1159s # # include 1159s # #endif 1159s # 1159s # #ifdef G_ENABLE_DEBUG 1159s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 1159s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 1159s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 1159s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 1159s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 1159s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 1159s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 1159s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 1159s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 1159s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 1159s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 1159s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 1159s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 1159s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 1159s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 1159s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 1159s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 1159s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 1159s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 1159s # #else /* !G_ENABLE_DEBUG */ 1159s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 1159s # * Do not access GValues directly in your code. Instead, use the 1159s # * g_value_get_*() functions 1159s # */ 1159s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 1159s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 1159s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 1159s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 1159s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 1159s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 1159s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 1159s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 1159s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 1159s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 1159s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 1159s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 1159s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 1159s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 1159s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 1159s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 1159s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 1159s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 1159s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 1159s # #endif /* !G_ENABLE_DEBUG */ 1159s # 1159s # typedef struct 1159s # { 1159s # GDBusArgInfo parent_struct; 1159s # gboolean use_gvariant; 1159s # } _ExtendedGDBusArgInfo; 1159s # 1159s # typedef struct 1159s # { 1159s # GDBusMethodInfo parent_struct; 1159s # const gchar *signal_name; 1159s # gboolean pass_fdlist; 1159s # } _ExtendedGDBusMethodInfo; 1159s # 1159s # typedef struct 1159s # { 1159s # GDBusSignalInfo parent_struct; 1159s # const gchar *signal_name; 1159s # } _ExtendedGDBusSignalInfo; 1159s # 1159s # typedef struct 1159s # { 1159s # GDBusPropertyInfo parent_struct; 1159s # const gchar *hyphen_name; 1159s # guint use_gvariant : 1; 1159s # guint emits_changed_signal : 1; 1159s # } _ExtendedGDBusPropertyInfo; 1159s # 1159s # typedef struct 1159s # { 1159s # GDBusInterfaceInfo parent_struct; 1159s # const gchar *hyphen_name; 1159s # } _ExtendedGDBusInterfaceInfo; 1159s # 1159s # typedef struct 1159s # { 1159s # const _ExtendedGDBusPropertyInfo *info; 1159s # guint prop_id; 1159s # GValue orig_value; /* the value before the change */ 1159s # } ChangedProperty; 1159s # 1159s # static void 1159s # _changed_property_free (ChangedProperty *data) 1159s # { 1159s # g_value_unset (&data->orig_value); 1159s # g_free (data); 1159s # } 1159s # 1159s # static gboolean 1159s # _g_strv_equal0 (gchar **a, gchar **b) 1159s # { 1159s # gboolean ret = FALSE; 1159s # guint n; 1159s # if (a == NULL && b == NULL) 1159s # { 1159s # ret = TRUE; 1159s # goto out; 1159s # } 1159s # if (a == NULL || b == NULL) 1159s # goto out; 1159s # if (g_strv_length (a) != g_strv_length (b)) 1159s # goto out; 1159s # for (n = 0; a[n] != NULL; n++) 1159s # if (g_strcmp0 (a[n], b[n]) != 0) 1159s # goto out; 1159s # ret = TRUE; 1159s # out: 1159s # return ret; 1159s # } 1159s # 1159s # static gboolean 1159s # _g_variant_equal0 (GVariant *a, GVariant *b) 1159s # { 1159s # gboolean ret = FALSE; 1159s # if (a == NULL && b == NULL) 1159s # { 1159s # ret = TRUE; 1159s # goto out; 1159s # } 1159s # if (a == NULL || b == NULL) 1159s # goto out; 1159s # ret = g_variant_equal (a, b); 1159s # out: 1159s # return ret; 1159s # } 1159s # 1159s # G_GNUC_UNUSED static gboolean 1159s # _g_value_equal (const GValue *a, const GValue *b) 1159s # { 1159s # gboolean ret = FALSE; 1159s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 1159s # switch (G_VALUE_TYPE (a)) 1159s # { 1159s # case G_TYPE_BOOLEAN: 1159s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 1159s # break; 1159s # case G_TYPE_UCHAR: 1159s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 1159s # break; 1159s # case G_TYPE_INT: 1159s # ret = (g_value_get_int (a) == g_value_get_int (b)); 1159s # break; 1159s # case G_TYPE_UINT: 1159s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 1159s # break; 1159s # case G_TYPE_INT64: 1159s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 1159s # break; 1159s # case G_TYPE_UINT64: 1159s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 1159s # break; 1159s # case G_TYPE_DOUBLE: 1159s # { 1159s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 1159s # gdouble da = g_value_get_double (a); 1159s # gdouble db = g_value_get_double (b); 1159s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 1159s # } 1159s # break; 1159s # case G_TYPE_STRING: 1159s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 1159s # break; 1159s # case G_TYPE_VARIANT: 1159s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 1159s # break; 1159s # default: 1159s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 1159s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 1159s # else 1159s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 1159s # break; 1159s # } 1159s # return ret; 1159s # } 1159s # 1159s # static void 1159s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT ( 1159s # GClosure *closure, 1159s # GValue *return_value, 1159s # unsigned int n_param_values, 1159s # const GValue *param_values, 1159s # void *invocation_hint G_GNUC_UNUSED, 1159s # void *marshal_data) 1159s # { 1159s # typedef gboolean (*_GDbusCodegenMarshalBoolean_ObjectFunc) 1159s # (void *data1, 1159s # GDBusMethodInvocation *arg_method_invocation, 1159s # void *data2); 1159s # _GDbusCodegenMarshalBoolean_ObjectFunc callback; 1159s # GCClosure *cc = (GCClosure*) closure; 1159s # void *data1, *data2; 1159s # gboolean v_return; 1159s # 1159s # g_return_if_fail (return_value != NULL); 1159s # g_return_if_fail (n_param_values == 2); 1159s # 1159s # if (G_CCLOSURE_SWAP_DATA (closure)) 1159s # { 1159s # data1 = closure->data; 1159s # data2 = g_value_peek_pointer (param_values + 0); 1159s # } 1159s # else 1159s # { 1159s # data1 = g_value_peek_pointer (param_values + 0); 1159s # data2 = closure->data; 1159s # } 1159s # 1159s # callback = (_GDbusCodegenMarshalBoolean_ObjectFunc) 1159s # (marshal_data ? marshal_data : cc->callback); 1159s # 1159s # v_return = 1159s # callback (data1, 1159s # g_marshal_value_peek_object (param_values + 1), 1159s # data2); 1159s # 1159s # g_value_set_boolean (return_value, v_return); 1159s # } 1159s # 1159s # /* ------------------------------------------------------------------------ 1159s # * Code for interface org.project.UsefulInterface 1159s # * ------------------------------------------------------------------------ 1159s # */ 1159s # 1159s # /** 1159s # * SECTION:OrgProjectUsefulInterface 1159s # * @title: OrgProjectUsefulInterface 1159s # * @short_description: Generated C code for the org.project.UsefulInterface D-Bus interface 1159s # * 1159s # * This section contains code for working with the org.project.UsefulInterface D-Bus interface in C. 1159s # */ 1159s # 1159s # /* ---- Introspection data for org.project.UsefulInterface ---- */ 1159s # 1159s # static const _ExtendedGDBusArgInfo _org_project_useful_interface_method_info_single_arg_method_t_OUT_ARG_arg_t = 1159s # { 1159s # { 1159s # -1, 1159s # (gchar *) "arg_t", 1159s # (gchar *) "t", 1159s # NULL 1159s # }, 1159s # FALSE 1159s # }; 1159s # 1159s # static const GDBusArgInfo * const _org_project_useful_interface_method_info_single_arg_method_t_OUT_ARG_pointers[] = 1159s # { 1159s # &_org_project_useful_interface_method_info_single_arg_method_t_OUT_ARG_arg_t.parent_struct, 1159s # NULL 1159s # }; 1159s # 1159s # static const _ExtendedGDBusMethodInfo _org_project_useful_interface_method_info_single_arg_method_t = 1159s # { 1159s # { 1159s # -1, 1159s # (gchar *) "SingleArgMethodT", 1159s # NULL, 1159s # (GDBusArgInfo **) &_org_project_useful_interface_method_info_single_arg_method_t_OUT_ARG_pointers, 1159s # NULL 1159s # }, 1159s # "handle-single-arg-method-t", 1159s # FALSE 1159s # }; 1159s # 1159s # static const GDBusMethodInfo * const _org_project_useful_interface_method_info_pointers[] = 1159s # { 1159s # &_org_project_useful_interface_method_info_single_arg_method_t.parent_struct, 1159s # NULL 1159s # }; 1159s # 1159s # static const _ExtendedGDBusInterfaceInfo _org_project_useful_interface_interface_info = 1159s # { 1159s # { 1159s # -1, 1159s # (gchar *) "org.project.UsefulInterface", 1159s # (GDBusMethodInfo **) &_org_project_useful_interface_method_info_pointers, 1159s # NULL, 1159s # NULL, 1159s # NULL 1159s # }, 1159s # "org-project-useful-interface", 1159s # }; 1159s # 1159s # 1159s # /** 1159s # * org_project_useful_interface_interface_info: 1159s # * 1159s # * Gets a machine-readable description of the org.project.UsefulInterface D-Bus interface. 1159s # * 1159s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 1159s # */ 1159s # GDBusInterfaceInfo * 1159s # org_project_useful_interface_interface_info (void) 1159s # { 1159s # return (GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct; 1159s # } 1159s # 1159s # /** 1159s # * org_project_useful_interface_override_properties: 1159s # * @klass: The class structure for a #GObject derived class. 1159s # * @property_id_begin: The property id to assign to the first overridden property. 1159s # * 1159s # * Overrides all #GObject properties in the #OrgProjectUsefulInterface interface for a concrete class. 1159s # * The properties are overridden in the order they are defined. 1159s # * 1159s # * Returns: The last property id. 1159s # */ 1159s # guint 1159s # org_project_useful_interface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 1159s # { 1159s # return property_id_begin - 1; 1159s # } 1159s # 1159s # 1159s # inline static void 1159s # org_project_useful_interface_method_marshal_single_arg_method_t ( 1159s # GClosure *closure, 1159s # GValue *return_value, 1159s # unsigned int n_param_values, 1159s # const GValue *param_values, 1159s # void *invocation_hint, 1159s # void *marshal_data) 1159s # { 1159s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT (closure, 1159s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1159s # } 1159s # 1159s # 1159s # /** 1159s # * OrgProjectUsefulInterface: 1159s # * 1159s # * Abstract interface type for the D-Bus interface org.project.UsefulInterface. 1159s # */ 1159s # 1159s # /** 1159s # * OrgProjectUsefulInterfaceIface: 1159s # * @parent_iface: The parent interface. 1159s # * @handle_single_arg_method_t: Handler for the #OrgProjectUsefulInterface::handle-single-arg-method-t signal. 1159s # * 1159s # * Virtual table for the D-Bus interface org.project.UsefulInterface. 1159s # */ 1159s # 1159s # typedef OrgProjectUsefulInterfaceIface OrgProjectUsefulInterfaceInterface; 1159s # G_DEFINE_INTERFACE (OrgProjectUsefulInterface, org_project_useful_interface, G_TYPE_OBJECT) 1159s # 1159s # static void 1159s # org_project_useful_interface_default_init (OrgProjectUsefulInterfaceIface *iface) 1159s # { 1159s # /* GObject signals for incoming D-Bus method calls: */ 1159s # /** 1159s # * OrgProjectUsefulInterface::handle-single-arg-method-t: 1159s # * @object: A #OrgProjectUsefulInterface. 1159s # * @invocation: A #GDBusMethodInvocation. 1159s # * 1159s # * Signal emitted when a remote caller is invoking the SingleArgMethodT() D-Bus method. 1159s # * 1159s # * 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. 1159s # * 1159s # * 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. 1159s # */ 1159s # g_signal_new ("handle-single-arg-method-t", 1159s # G_TYPE_FROM_INTERFACE (iface), 1159s # G_SIGNAL_RUN_LAST, 1159s # G_STRUCT_OFFSET (OrgProjectUsefulInterfaceIface, handle_single_arg_method_t), 1159s # g_signal_accumulator_true_handled, 1159s # NULL, 1159s # org_project_useful_interface_method_marshal_single_arg_method_t, 1159s # G_TYPE_BOOLEAN, 1159s # 1, 1159s # G_TYPE_DBUS_METHOD_INVOCATION); 1159s # 1159s # } 1159s # 1159s # /** 1159s # * org_project_useful_interface_call_single_arg_method_t: 1159s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1159s # * @cancellable: (nullable): A #GCancellable or %NULL. 1159s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL. 1159s # * @user_data: User data to pass to @callback. 1159s # * 1159s # * Asynchronously invokes the SingleArgMethodT() D-Bus method on @proxy. 1159s # * 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()). 1159s # * You can then call org_project_useful_interface_call_single_arg_method_t_finish() to get the result of the operation. 1159s # * 1159s # * See org_project_useful_interface_call_single_arg_method_t_sync() for the synchronous, blocking version of this method. 1159s # */ 1159s # void 1159s # org_project_useful_interface_call_single_arg_method_t ( 1159s # OrgProjectUsefulInterface *proxy, 1159s # GCancellable *cancellable, 1159s # GAsyncReadyCallback callback, 1159s # gpointer user_data) 1159s # { 1159s # g_dbus_proxy_call (G_DBUS_PROXY (proxy), 1159s # "SingleArgMethodT", 1159s # g_variant_new ("()"), 1159s # G_DBUS_CALL_FLAGS_NONE, 1159s # -1, 1159s # cancellable, 1159s # callback, 1159s # user_data); 1159s # } 1159s # 1159s # /** 1159s # * org_project_useful_interface_call_single_arg_method_t_finish: 1159s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1159s # * @out_arg_t: (out) (optional): Return location for return parameter or %NULL to ignore. 1159s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_call_single_arg_method_t(). 1159s # * @error: Return location for error or %NULL. 1159s # * 1159s # * Finishes an operation started with org_project_useful_interface_call_single_arg_method_t(). 1159s # * 1159s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1159s # */ 1159s # gboolean 1159s # org_project_useful_interface_call_single_arg_method_t_finish ( 1159s # OrgProjectUsefulInterface *proxy, 1159s # guint64 *out_arg_t, 1159s # GAsyncResult *res, 1159s # GError **error) 1159s # { 1159s # GVariant *_ret; 1159s # _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error); 1159s # if (_ret == NULL) 1159s # goto _out; 1159s # g_variant_get (_ret, 1159s # "(t)", 1159s # out_arg_t); 1159s # g_variant_unref (_ret); 1159s # _out: 1159s # return _ret != NULL; 1159s # } 1159s # 1159s # /** 1159s # * org_project_useful_interface_call_single_arg_method_t_sync: 1159s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1159s # * @out_arg_t: (out) (optional): Return location for return parameter or %NULL to ignore. 1159s # * @cancellable: (nullable): A #GCancellable or %NULL. 1159s # * @error: Return location for error or %NULL. 1159s # * 1159s # * Synchronously invokes the SingleArgMethodT() D-Bus method on @proxy. The calling thread is blocked until a reply is received. 1159s # * 1159s # * See org_project_useful_interface_call_single_arg_method_t() for the asynchronous version of this method. 1159s # * 1159s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1159s # */ 1159s # gboolean 1159s # org_project_useful_interface_call_single_arg_method_t_sync ( 1159s # OrgProjectUsefulInterface *proxy, 1159s # guint64 *out_arg_t, 1159s # GCancellable *cancellable, 1159s # GError **error) 1159s # { 1159s # GVariant *_ret; 1159s # _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy), 1159s # "SingleArgMethodT", 1159s # g_variant_new ("()"), 1159s # G_DBUS_CALL_FLAGS_NONE, 1159s # -1, 1159s # cancellable, 1159s # error); 1159s # if (_ret == NULL) 1159s # goto _out; 1159s # g_variant_get (_ret, 1159s # "(t)", 1159s # out_arg_t); 1159s # g_variant_unref (_ret); 1159s # _out: 1159s # return _ret != NULL; 1159s # } 1159s # 1159s # /** 1159s # * org_project_useful_interface_complete_single_arg_method_t: 1159s # * @object: A #OrgProjectUsefulInterface. 1159s # * @invocation: (transfer full): A #GDBusMethodInvocation. 1159s # * @arg_t: Parameter to return. 1159s # * 1159s # * 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. 1159s # * 1159s # * This method will free @invocation, you cannot use it afterwards. 1159s # */ 1159s # void 1159s # org_project_useful_interface_complete_single_arg_method_t ( 1159s # OrgProjectUsefulInterface *object G_GNUC_UNUSED, 1159s # GDBusMethodInvocation *invocation, 1159s # guint64 arg_t) 1159s # { 1159s # g_dbus_method_invocation_return_value (invocation, 1159s # g_variant_new ("(t)", 1159s # arg_t)); 1159s # } 1159s # 1159s # /* ------------------------------------------------------------------------ */ 1159s # 1159s # /** 1159s # * OrgProjectUsefulInterfaceProxy: 1159s # * 1159s # * The #OrgProjectUsefulInterfaceProxy structure contains only private data and should only be accessed using the provided API. 1159s # */ 1159s # 1159s # /** 1159s # * OrgProjectUsefulInterfaceProxyClass: 1159s # * @parent_class: The parent class. 1159s # * 1159s # * Class structure for #OrgProjectUsefulInterfaceProxy. 1159s # */ 1159s # 1159s # struct _OrgProjectUsefulInterfaceProxyPrivate 1159s # { 1159s # GData *qdata; 1159s # }; 1159s # 1159s # static void org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface); 1159s # 1159s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1159s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 1159s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceProxy) 1159s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 1159s # 1159s # #else 1159s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 1159s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 1159s # 1159s # #endif 1159s # static void 1159s # org_project_useful_interface_proxy_finalize (GObject *object) 1159s # { 1159s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (object); 1159s # g_datalist_clear (&proxy->priv->qdata); 1159s # G_OBJECT_CLASS (org_project_useful_interface_proxy_parent_class)->finalize (object); 1159s # } 1159s # 1159s # static void 1159s # org_project_useful_interface_proxy_get_property (GObject *object G_GNUC_UNUSED, 1159s # guint prop_id G_GNUC_UNUSED, 1159s # GValue *value G_GNUC_UNUSED, 1159s # GParamSpec *pspec G_GNUC_UNUSED) 1159s # { 1159s # } 1159s # 1159s # static void 1159s # org_project_useful_interface_proxy_set_property (GObject *object G_GNUC_UNUSED, 1159s # guint prop_id G_GNUC_UNUSED, 1159s # const GValue *value G_GNUC_UNUSED, 1159s # GParamSpec *pspec G_GNUC_UNUSED) 1159s # { 1159s # } 1159s # 1159s # static void 1159s # org_project_useful_interface_proxy_g_signal (GDBusProxy *proxy, 1159s # const gchar *sender_name G_GNUC_UNUSED, 1159s # const gchar *signal_name, 1159s # GVariant *parameters) 1159s # { 1159s # _ExtendedGDBusSignalInfo *info; 1159s # GVariantIter iter; 1159s # GVariant *child; 1159s # GValue *paramv; 1159s # gsize num_params; 1159s # gsize n; 1159s # guint signal_id; 1159s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, signal_name); 1159s # if (info == NULL) 1159s # return; 1159s # num_params = g_variant_n_children (parameters); 1159s # paramv = g_new0 (GValue, num_params + 1); 1159s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1159s # g_value_set_object (¶mv[0], proxy); 1159s # g_variant_iter_init (&iter, parameters); 1159s # n = 1; 1159s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1159s # { 1159s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 1159s # if (arg_info->use_gvariant) 1159s # { 1159s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1159s # g_value_set_variant (¶mv[n], child); 1159s # n++; 1159s # } 1159s # else 1159s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1159s # g_variant_unref (child); 1159s # } 1159s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1159s # g_signal_emitv (paramv, signal_id, 0, NULL); 1159s # for (n = 0; n < num_params + 1; n++) 1159s # g_value_unset (¶mv[n]); 1159s # g_free (paramv); 1159s # } 1159s # 1159s # static void 1159s # org_project_useful_interface_proxy_g_properties_changed (GDBusProxy *_proxy, 1159s # GVariant *changed_properties, 1159s # const gchar *const *invalidated_properties) 1159s # { 1159s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (_proxy); 1159s # guint n; 1159s # const gchar *key; 1159s # GVariantIter *iter; 1159s # _ExtendedGDBusPropertyInfo *info; 1159s # g_variant_get (changed_properties, "a{sv}", &iter); 1159s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 1159s # { 1159s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, key); 1159s # g_datalist_remove_data (&proxy->priv->qdata, key); 1159s # if (info != NULL) 1159s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1159s # } 1159s # g_variant_iter_free (iter); 1159s # for (n = 0; invalidated_properties[n] != NULL; n++) 1159s # { 1159s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, invalidated_properties[n]); 1159s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 1159s # if (info != NULL) 1159s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1159s # } 1159s # } 1159s # 1159s # static void 1159s # org_project_useful_interface_proxy_init (OrgProjectUsefulInterfaceProxy *proxy) 1159s # { 1159s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1159s # proxy->priv = org_project_useful_interface_proxy_get_instance_private (proxy); 1159s # #else 1159s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY, OrgProjectUsefulInterfaceProxyPrivate); 1159s # #endif 1159s # 1159s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_useful_interface_interface_info ()); 1159s # } 1159s # 1159s # static void 1159s # org_project_useful_interface_proxy_class_init (OrgProjectUsefulInterfaceProxyClass *klass) 1159s # { 1159s # GObjectClass *gobject_class; 1159s # GDBusProxyClass *proxy_class; 1159s # 1159s # gobject_class = G_OBJECT_CLASS (klass); 1159s # gobject_class->finalize = org_project_useful_interface_proxy_finalize; 1159s # gobject_class->get_property = org_project_useful_interface_proxy_get_property; 1159s # gobject_class->set_property = org_project_useful_interface_proxy_set_property; 1159s # 1159s # proxy_class = G_DBUS_PROXY_CLASS (klass); 1159s # proxy_class->g_signal = org_project_useful_interface_proxy_g_signal; 1159s # proxy_class->g_properties_changed = org_project_useful_interface_proxy_g_properties_changed; 1159s # 1159s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1159s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceProxyPrivate)); 1159s # #endif 1159s # } 1159s # 1159s # static void 1159s # org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 1159s # { 1159s # } 1159s # 1159s # /** 1159s # * org_project_useful_interface_proxy_new: 1159s # * @connection: A #GDBusConnection. 1159s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1159s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1159s # * @object_path: An object path. 1159s # * @cancellable: (nullable): A #GCancellable or %NULL. 1159s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1159s # * @user_data: User data to pass to @callback. 1159s # * 1159s # * Asynchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new() for more details. 1159s # * 1159s # * 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()). 1159s # * You can then call org_project_useful_interface_proxy_new_finish() to get the result of the operation. 1159s # * 1159s # * See org_project_useful_interface_proxy_new_sync() for the synchronous, blocking version of this constructor. 1159s # */ 1159s # void 1159s # org_project_useful_interface_proxy_new ( 1159s # GDBusConnection *connection, 1159s # GDBusProxyFlags flags, 1159s # const gchar *name, 1159s # const gchar *object_path, 1159s # GCancellable *cancellable, 1159s # GAsyncReadyCallback callback, 1159s # gpointer user_data) 1159s # { 1159s # 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); 1159s # } 1159s # 1159s # /** 1159s # * org_project_useful_interface_proxy_new_finish: 1159s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new(). 1159s # * @error: Return location for error or %NULL 1159s # * 1159s # * Finishes an operation started with org_project_useful_interface_proxy_new(). 1159s # * 1159s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1159s # */ 1159s # OrgProjectUsefulInterface * 1159s # org_project_useful_interface_proxy_new_finish ( 1159s # GAsyncResult *res, 1159s # GError **error) 1159s # { 1159s # GObject *ret; 1159s # GObject *source_object; 1159s # source_object = g_async_result_get_source_object (res); 1159s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1159s # g_object_unref (source_object); 1159s # if (ret != NULL) 1159s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1159s # else 1159s # return NULL; 1159s # } 1159s # 1159s # /** 1159s # * org_project_useful_interface_proxy_new_sync: 1159s # * @connection: A #GDBusConnection. 1159s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1159s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1159s # * @object_path: An object path. 1159s # * @cancellable: (nullable): A #GCancellable or %NULL. 1159s # * @error: Return location for error or %NULL 1159s # * 1159s # * Synchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new_sync() for more details. 1159s # * 1159s # * The calling thread is blocked until a reply is received. 1159s # * 1159s # * See org_project_useful_interface_proxy_new() for the asynchronous version of this constructor. 1159s # * 1159s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1159s # */ 1159s # OrgProjectUsefulInterface * 1159s # org_project_useful_interface_proxy_new_sync ( 1159s # GDBusConnection *connection, 1159s # GDBusProxyFlags flags, 1159s # const gchar *name, 1159s # const gchar *object_path, 1159s # GCancellable *cancellable, 1159s # GError **error) 1159s # { 1159s # GInitable *ret; 1159s # 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); 1159s # if (ret != NULL) 1159s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1159s # else 1159s # return NULL; 1159s # } 1159s # 1159s # 1159s # /** 1159s # * org_project_useful_interface_proxy_new_for_bus: 1159s # * @bus_type: A #GBusType. 1159s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1159s # * @name: A bus name (well-known or unique). 1159s # * @object_path: An object path. 1159s # * @cancellable: (nullable): A #GCancellable or %NULL. 1159s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1159s # * @user_data: User data to pass to @callback. 1159s # * 1159s # * Like org_project_useful_interface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 1159s # * 1159s # * 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()). 1159s # * You can then call org_project_useful_interface_proxy_new_for_bus_finish() to get the result of the operation. 1159s # * 1159s # * See org_project_useful_interface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 1159s # */ 1159s # void 1159s # org_project_useful_interface_proxy_new_for_bus ( 1159s # GBusType bus_type, 1159s # GDBusProxyFlags flags, 1159s # const gchar *name, 1159s # const gchar *object_path, 1159s # GCancellable *cancellable, 1159s # GAsyncReadyCallback callback, 1159s # gpointer user_data) 1159s # { 1159s # 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); 1159s # } 1159s # 1159s # /** 1159s # * org_project_useful_interface_proxy_new_for_bus_finish: 1159s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new_for_bus(). 1159s # * @error: Return location for error or %NULL 1159s # * 1159s # * Finishes an operation started with org_project_useful_interface_proxy_new_for_bus(). 1159s # * 1159s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1159s # */ 1159s # OrgProjectUsefulInterface * 1159s # org_project_useful_interface_proxy_new_for_bus_finish ( 1159s # GAsyncResult *res, 1159s # GError **error) 1159s # { 1159s # GObject *ret; 1159s # GObject *source_object; 1159s # source_object = g_async_result_get_source_object (res); 1159s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1159s # g_object_unref (source_object); 1159s # if (ret != NULL) 1159s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1159s # else 1159s # return NULL; 1159s # } 1159s # 1159s # /** 1159s # * org_project_useful_interface_proxy_new_for_bus_sync: 1159s # * @bus_type: A #GBusType. 1159s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1159s # * @name: A bus name (well-known or unique). 1159s # * @object_path: An object path. 1159s # * @cancellable: (nullable): A #GCancellable or %NULL. 1159s # * @error: Return location for error or %NULL 1159s # * 1159s # * Like org_project_useful_interface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 1159s # * 1159s # * The calling thread is blocked until a reply is received. 1159s # * 1159s # * See org_project_useful_interface_proxy_new_for_bus() for the asynchronous version of this constructor. 1159s # * 1159s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1159s # */ 1159s # OrgProjectUsefulInterface * 1159s # org_project_useful_interface_proxy_new_for_bus_sync ( 1159s # GBusType bus_type, 1159s # GDBusProxyFlags flags, 1159s # const gchar *name, 1159s # const gchar *object_path, 1159s # GCancellable *cancellable, 1159s # GError **error) 1159s # { 1159s # GInitable *ret; 1159s # 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); 1159s # if (ret != NULL) 1159s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1159s # else 1159s # return NULL; 1159s # } 1159s # 1159s # 1159s # /* ------------------------------------------------------------------------ */ 1159s # 1159s # /** 1159s # * OrgProjectUsefulInterfaceSkeleton: 1159s # * 1159s # * The #OrgProjectUsefulInterfaceSkeleton structure contains only private data and should only be accessed using the provided API. 1159s # */ 1159s # 1159s # /** 1159s # * OrgProjectUsefulInterfaceSkeletonClass: 1159s # * @parent_class: The parent class. 1159s # * 1159s # * Class structure for #OrgProjectUsefulInterfaceSkeleton. 1159s # */ 1159s # 1159s # struct _OrgProjectUsefulInterfaceSkeletonPrivate 1159s # { 1159s # GValue *properties; 1159s # GList *changed_properties; 1159s # GSource *changed_properties_idle_source; 1159s # GMainContext *context; 1159s # GMutex lock; 1159s # }; 1159s # 1159s # static void 1159s # _org_project_useful_interface_skeleton_handle_method_call ( 1159s # GDBusConnection *connection G_GNUC_UNUSED, 1159s # const gchar *sender G_GNUC_UNUSED, 1159s # const gchar *object_path G_GNUC_UNUSED, 1159s # const gchar *interface_name, 1159s # const gchar *method_name, 1159s # GVariant *parameters, 1159s # GDBusMethodInvocation *invocation, 1159s # gpointer user_data) 1159s # { 1159s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1159s # _ExtendedGDBusMethodInfo *info; 1159s # GVariantIter iter; 1159s # GVariant *child; 1159s # GValue *paramv; 1159s # gsize num_params; 1159s # guint num_extra; 1159s # gsize n; 1159s # guint signal_id; 1159s # GValue return_value = G_VALUE_INIT; 1159s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 1159s # g_assert (info != NULL); 1159s # num_params = g_variant_n_children (parameters); 1159s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 1159s # n = 0; 1159s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1159s # g_value_set_object (¶mv[n++], skeleton); 1159s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 1159s # g_value_set_object (¶mv[n++], invocation); 1159s # if (info->pass_fdlist) 1159s # { 1159s # #ifdef G_OS_UNIX 1159s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 1159s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 1159s # #else 1159s # g_assert_not_reached (); 1159s # #endif 1159s # } 1159s # g_variant_iter_init (&iter, parameters); 1159s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1159s # { 1159s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 1159s # if (arg_info->use_gvariant) 1159s # { 1159s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1159s # g_value_set_variant (¶mv[n], child); 1159s # n++; 1159s # } 1159s # else 1159s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1159s # g_variant_unref (child); 1159s # } 1159s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1159s # g_value_init (&return_value, G_TYPE_BOOLEAN); 1159s # g_signal_emitv (paramv, signal_id, 0, &return_value); 1159s # if (!g_value_get_boolean (&return_value)) 1159s # 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); 1159s # g_value_unset (&return_value); 1159s # for (n = 0; n < num_params + num_extra; n++) 1159s # g_value_unset (¶mv[n]); 1159s # g_free (paramv); 1159s # } 1159s # 1159s # static GVariant * 1159s # _org_project_useful_interface_skeleton_handle_get_property ( 1159s # GDBusConnection *connection G_GNUC_UNUSED, 1159s # const gchar *sender G_GNUC_UNUSED, 1159s # const gchar *object_path G_GNUC_UNUSED, 1159s # const gchar *interface_name G_GNUC_UNUSED, 1159s # const gchar *property_name, 1159s # GError **error, 1159s # gpointer user_data) 1159s # { 1159s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1159s # GValue value = G_VALUE_INIT; 1159s # GParamSpec *pspec; 1159s # _ExtendedGDBusPropertyInfo *info; 1159s # GVariant *ret; 1159s # ret = NULL; 1159s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 1159s # g_assert (info != NULL); 1159s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1159s # if (pspec == NULL) 1159s # { 1159s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1159s # } 1159s # else 1159s # { 1159s # g_value_init (&value, pspec->value_type); 1159s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1159s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 1159s # g_value_unset (&value); 1159s # } 1159s # return ret; 1159s # } 1159s # 1159s # static gboolean 1159s # _org_project_useful_interface_skeleton_handle_set_property ( 1159s # GDBusConnection *connection G_GNUC_UNUSED, 1159s # const gchar *sender G_GNUC_UNUSED, 1159s # const gchar *object_path G_GNUC_UNUSED, 1159s # const gchar *interface_name G_GNUC_UNUSED, 1159s # const gchar *property_name, 1159s # GVariant *variant, 1159s # GError **error, 1159s # gpointer user_data) 1159s # { 1159s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1159s # GValue value = G_VALUE_INIT; 1159s # GParamSpec *pspec; 1159s # _ExtendedGDBusPropertyInfo *info; 1159s # gboolean ret; 1159s # ret = FALSE; 1159s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 1159s # g_assert (info != NULL); 1159s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1159s # if (pspec == NULL) 1159s # { 1159s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1159s # } 1159s # else 1159s # { 1159s # if (info->use_gvariant) 1159s # g_value_set_variant (&value, variant); 1159s # else 1159s # g_dbus_gvariant_to_gvalue (variant, &value); 1159s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1159s # g_value_unset (&value); 1159s # ret = TRUE; 1159s # } 1159s # return ret; 1159s # } 1159s # 1159s # static const GDBusInterfaceVTable _org_project_useful_interface_skeleton_vtable = 1159s # { 1159s # _org_project_useful_interface_skeleton_handle_method_call, 1159s # _org_project_useful_interface_skeleton_handle_get_property, 1159s # _org_project_useful_interface_skeleton_handle_set_property, 1159s # {NULL} 1159s # }; 1159s # 1159s # static GDBusInterfaceInfo * 1159s # org_project_useful_interface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1159s # { 1159s # return org_project_useful_interface_interface_info (); 1159s # } 1159s # 1159s # static GDBusInterfaceVTable * 1159s # org_project_useful_interface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1159s # { 1159s # return (GDBusInterfaceVTable *) &_org_project_useful_interface_skeleton_vtable; 1159s # } 1159s # 1159s # static GVariant * 1159s # org_project_useful_interface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 1159s # { 1159s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (_skeleton); 1159s # 1159s # GVariantBuilder builder; 1159s # guint n; 1159s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 1159s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 1159s # #else 1159s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 1159s # #endif 1159s # if (_org_project_useful_interface_interface_info.parent_struct.properties == NULL) 1159s # goto out; 1159s # for (n = 0; _org_project_useful_interface_interface_info.parent_struct.properties[n] != NULL; n++) 1159s # { 1159s # GDBusPropertyInfo *info = _org_project_useful_interface_interface_info.parent_struct.properties[n]; 1159s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 1159s # { 1159s # GVariant *value; 1159s # 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); 1159s # if (value != NULL) 1159s # { 1159s # g_variant_take_ref (value); 1159s # g_variant_builder_add (&builder, "{sv}", info->name, value); 1159s # g_variant_unref (value); 1159s # } 1159s # } 1159s # } 1159s # out: 1159s # return g_variant_builder_end (&builder); 1159s # } 1159s # 1159s # static void 1159s # org_project_useful_interface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 1159s # { 1159s # } 1159s # 1159s # static void org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface); 1159s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1159s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1159s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceSkeleton) 1159s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 1159s # 1159s # #else 1159s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1159s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 1159s # 1159s # #endif 1159s # static void 1159s # org_project_useful_interface_skeleton_finalize (GObject *object) 1159s # { 1159s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (object); 1159s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 1159s # if (skeleton->priv->changed_properties_idle_source != NULL) 1159s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 1159s # g_main_context_unref (skeleton->priv->context); 1159s # g_mutex_clear (&skeleton->priv->lock); 1159s # G_OBJECT_CLASS (org_project_useful_interface_skeleton_parent_class)->finalize (object); 1159s # } 1159s # 1159s # static void 1159s # org_project_useful_interface_skeleton_init (OrgProjectUsefulInterfaceSkeleton *skeleton) 1159s # { 1159s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1159s # skeleton->priv = org_project_useful_interface_skeleton_get_instance_private (skeleton); 1159s # #else 1159s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, OrgProjectUsefulInterfaceSkeletonPrivate); 1159s # #endif 1159s # 1159s # g_mutex_init (&skeleton->priv->lock); 1159s # skeleton->priv->context = g_main_context_ref_thread_default (); 1159s # } 1159s # 1159s # static void 1159s # org_project_useful_interface_skeleton_class_init (OrgProjectUsefulInterfaceSkeletonClass *klass) 1159s # { 1159s # GObjectClass *gobject_class; 1159s # GDBusInterfaceSkeletonClass *skeleton_class; 1159s # 1159s # gobject_class = G_OBJECT_CLASS (klass); 1159s # gobject_class->finalize = org_project_useful_interface_skeleton_finalize; 1159s # 1159s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 1159s # skeleton_class->get_info = org_project_useful_interface_skeleton_dbus_interface_get_info; 1159s # skeleton_class->get_properties = org_project_useful_interface_skeleton_dbus_interface_get_properties; 1159s # skeleton_class->flush = org_project_useful_interface_skeleton_dbus_interface_flush; 1159s # skeleton_class->get_vtable = org_project_useful_interface_skeleton_dbus_interface_get_vtable; 1159s # 1159s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1159s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceSkeletonPrivate)); 1159s # #endif 1159s # } 1159s # 1159s # static void 1159s # org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 1159s # { 1159s # } 1159s # 1159s # /** 1159s # * org_project_useful_interface_skeleton_new: 1159s # * 1159s # * Creates a skeleton object for the D-Bus interface org.project.UsefulInterface. 1159s # * 1159s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceSkeleton): The skeleton object. 1159s # */ 1159s # OrgProjectUsefulInterface * 1159s # org_project_useful_interface_skeleton_new (void) 1159s # { 1159s # return ORG_PROJECT_USEFUL_INTERFACE (g_object_new (TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, NULL)); 1159s # } 1159s # Error: 1159s # 1159s # /tmp/tmpatbfkbk2/tmpme5978z0.xml: 1159s # 1159s # 1159s # 1159s # 1159s # 1159s # 1159s # 1159s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpatbfkbk2/tmpme5978z0.xml', '--output', '-', '--body'] 1159s # Return code: 0 1159s # Output: 1159s # /* 1159s # * This file is generated by gdbus-codegen, do not modify it. 1159s # * 1159s # * The license of this code is the same as for the D-Bus interface description 1159s # * it was derived from. Note that it links to GLib, so must comply with the 1159s # * LGPL linking clauses. 1159s # */ 1159s # 1159s # #ifdef HAVE_CONFIG_H 1159s # # include "config.h" 1159s # #endif 1159s # 1159s # #include 1159s # #ifdef G_OS_UNIX 1159s # # include 1159s # #endif 1159s # 1159s # #ifdef G_ENABLE_DEBUG 1159s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 1159s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 1159s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 1159s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 1159s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 1159s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 1159s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 1159s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 1159s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 1159s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 1159s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 1159s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 1159s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 1159s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 1159s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 1159s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 1159s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 1159s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 1159s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 1159s # #else /* !G_ENABLE_DEBUG */ 1159s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 1159s # * Do not access GValues directly in your code. Instead, use the 1159s # * g_value_get_*() functions 1159s # */ 1159s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 1159s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 1159s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 1159s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 1159s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 1159s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 1159s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 1159s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 1159s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 1159s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 1159s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 1159s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 1159s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 1159s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 1159s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 1159s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 1159s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 1159s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 1159s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 1159s # #endif /* !G_ENABLE_DEBUG */ 1159s # 1159s # typedef struct 1159s # { 1159s # GDBusArgInfo parent_struct; 1159s # gboolean use_gvariant; 1159s # } _ExtendedGDBusArgInfo; 1159s # 1159s # typedef struct 1159s # { 1159s # GDBusMethodInfo parent_struct; 1159s # const gchar *signal_name; 1159s # gboolean pass_fdlist; 1159s # } _ExtendedGDBusMethodInfo; 1159s # 1159s # typedef struct 1159s # { 1159s # GDBusSignalInfo parent_struct; 1159s # const gchar *signal_name; 1159s # } _ExtendedGDBusSignalInfo; 1159s # 1159s # typedef struct 1159s # { 1159s # GDBusPropertyInfo parent_struct; 1159s # const gchar *hyphen_name; 1159s # guint use_gvariant : 1; 1159s # guint emits_changed_signal : 1; 1159s # } _ExtendedGDBusPropertyInfo; 1159s # 1159s # typedef struct 1159s # { 1159s # GDBusInterfaceInfo parent_struct; 1159s # const gchar *hyphen_name; 1159s # } _ExtendedGDBusInterfaceInfo; 1159s # 1159s # typedef struct 1159s # { 1159s # const _ExtendedGDBusPropertyInfo *info; 1159s # guint prop_id; 1159s # GValue orig_value; /* the value before the change */ 1159s # } ChangedProperty; 1159s # 1159s # static void 1159s # _changed_property_free (ChangedProperty *data) 1159s # { 1159s # g_value_unset (&data->orig_value); 1159s # g_free (data); 1159s # } 1159s # 1159s # static gboolean 1159s # _g_strv_equal0 (gchar **a, gchar **b) 1159s # { 1159s # gboolean ret = FALSE; 1159s # guint n; 1159s # if (a == NULL && b == NULL) 1159s # { 1159s # ret = TRUE; 1159s # goto out; 1159s # } 1159s # if (a == NULL || b == NULL) 1159s # goto out; 1159s # if (g_strv_length (a) != g_strv_length (b)) 1159s # goto out; 1159s # for (n = 0; a[n] != NULL; n++) 1159s # if (g_strcmp0 (a[n], b[n]) != 0) 1159s # goto out; 1159s # ret = TRUE; 1159s # out: 1159s # return ret; 1159s # } 1159s # 1159s # static gboolean 1159s # _g_variant_equal0 (GVariant *a, GVariant *b) 1159s # { 1159s # gboolean ret = FALSE; 1159s # if (a == NULL && b == NULL) 1159s # { 1159s # ret = TRUE; 1159s # goto out; 1159s # } 1159s # if (a == NULL || b == NULL) 1159s # goto out; 1159s # ret = g_variant_equal (a, b); 1159s # out: 1159s # return ret; 1159s # } 1159s # 1159s # G_GNUC_UNUSED static gboolean 1159s # _g_value_equal (const GValue *a, const GValue *b) 1159s # { 1159s # gboolean ret = FALSE; 1159s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 1159s # switch (G_VALUE_TYPE (a)) 1159s # { 1159s # case G_TYPE_BOOLEAN: 1159s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 1159s # break; 1159s # case G_TYPE_UCHAR: 1159s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 1159s # break; 1159s # case G_TYPE_INT: 1159s # ret = (g_value_get_int (a) == g_value_get_int (b)); 1159s # break; 1159s # case G_TYPE_UINT: 1159s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 1159s # break; 1159s # case G_TYPE_INT64: 1159s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 1159s # break; 1159s # case G_TYPE_UINT64: 1159s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 1159s # break; 1159s # case G_TYPE_DOUBLE: 1159s # { 1159s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 1159s # gdouble da = g_value_get_double (a); 1159s # gdouble db = g_value_get_double (b); 1159s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 1159s # } 1159s # break; 1159s # case G_TYPE_STRING: 1159s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 1159s # break; 1159s # case G_TYPE_VARIANT: 1159s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 1159s # break; 1159s # default: 1159s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 1159s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 1159s # else 1159s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 1159s # break; 1159s # } 1159s # return ret; 1159s # } 1159s # 1159s # static void 1159s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT ( 1159s # GClosure *closure, 1159s # GValue *return_value, 1159s # unsigned int n_param_values, 1159s # const GValue *param_values, 1159s # void *invocation_hint G_GNUC_UNUSED, 1159s # void *marshal_data) 1159s # { 1159s # typedef gboolean (*_GDbusCodegenMarshalBoolean_ObjectFunc) 1159s # (void *data1, 1159s # GDBusMethodInvocation *arg_method_invocation, 1159s # void *data2); 1159s # _GDbusCodegenMarshalBoolean_ObjectFunc callback; 1159s # GCClosure *cc = (GCClosure*) closure; 1159s # void *data1, *data2; 1159s # gboolean v_return; 1159s # 1159s # g_return_if_fail (return_value != NULL); 1159s # g_return_if_fail (n_param_values == 2); 1159s # 1159s # if (G_CCLOSURE_SWAP_DATA (closure)) 1159s # { 1159s # data1 = closure->data; 1159s # data2 = g_value_peek_pointer (param_values + 0); 1159s # } 1159s # else 1159s # { 1159s # data1 = g_value_peek_pointer (param_values + 0); 1159s # data2 = closure->data; 1159s # } 1159s # 1159s # callback = (_GDbusCodegenMarshalBoolean_ObjectFunc) 1159s # (marshal_data ? marshal_data : cc->callback); 1159s # 1159s # v_return = 1159s # callback (data1, 1159s # g_marshal_value_peek_object (param_values + 1), 1159s # data2); 1159s # 1159s # g_value_set_boolean (return_value, v_return); 1159s # } 1159s # 1159s # /* ------------------------------------------------------------------------ 1159s # * Code for interface org.project.UsefulInterface 1159s # * ------------------------------------------------------------------------ 1159s # */ 1159s # 1159s # /** 1159s # * SECTION:OrgProjectUsefulInterface 1159s # * @title: OrgProjectUsefulInterface 1159s # * @short_description: Generated C code for the org.project.UsefulInterface D-Bus interface 1159s # * 1159s # * This section contains code for working with the org.project.UsefulInterface D-Bus interface in C. 1159s # */ 1159s # 1159s # /* ---- Introspection data for org.project.UsefulInterface ---- */ 1159s # 1159s # static const _ExtendedGDBusArgInfo _org_project_useful_interface_method_info_single_arg_method_d_OUT_ARG_arg_d = 1159s # { 1159s # { 1159s # -1, 1159s # (gchar *) "arg_d", 1159s # (gchar *) "d", 1159s # NULL 1159s # }, 1159s # FALSE 1159s # }; 1159s # 1159s # static const GDBusArgInfo * const _org_project_useful_interface_method_info_single_arg_method_d_OUT_ARG_pointers[] = 1159s # { 1159s # &_org_project_useful_interface_method_info_single_arg_method_d_OUT_ARG_arg_d.parent_struct, 1159s # NULL 1159s # }; 1159s # 1159s # static const _ExtendedGDBusMethodInfo _org_project_useful_interface_method_info_single_arg_method_d = 1159s # { 1159s # { 1159s # -1, 1159s # (gchar *) "SingleArgMethodD", 1159s # NULL, 1159s # (GDBusArgInfo **) &_org_project_useful_interface_method_info_single_arg_method_d_OUT_ARG_pointers, 1159s # NULL 1159s # }, 1159s # "handle-single-arg-method-d", 1159s # FALSE 1159s # }; 1159s # 1159s # static const GDBusMethodInfo * const _org_project_useful_interface_method_info_pointers[] = 1159s # { 1159s # &_org_project_useful_interface_method_info_single_arg_method_d.parent_struct, 1159s # NULL 1159s # }; 1159s # 1159s # static const _ExtendedGDBusInterfaceInfo _org_project_useful_interface_interface_info = 1159s # { 1159s # { 1159s # -1, 1159s # (gchar *) "org.project.UsefulInterface", 1159s # (GDBusMethodInfo **) &_org_project_useful_interface_method_info_pointers, 1159s # NULL, 1159s # NULL, 1159s # NULL 1159s # }, 1159s # "org-project-useful-interface", 1159s # }; 1159s # 1159s # 1159s # /** 1159s # * org_project_useful_interface_interface_info: 1159s # * 1159s # * Gets a machine-readable description of the org.project.UsefulInterface D-Bus interface. 1159s # * 1159s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 1159s # */ 1159s # GDBusInterfaceInfo * 1159s # org_project_useful_interface_interface_info (void) 1159s # { 1159s # return (GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct; 1159s # } 1159s # 1159s # /** 1159s # * org_project_useful_interface_override_properties: 1159s # * @klass: The class structure for a #GObject derived class. 1159s # * @property_id_begin: The property id to assign to the first overridden property. 1159s # * 1159s # * Overrides all #GObject properties in the #OrgProjectUsefulInterface interface for a concrete class. 1159s # * The properties are overridden in the order they are defined. 1159s # * 1159s # * Returns: The last property id. 1159s # */ 1159s # guint 1159s # org_project_useful_interface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 1159s # { 1159s # return property_id_begin - 1; 1159s # } 1159s # 1159s # 1159s # inline static void 1159s # org_project_useful_interface_method_marshal_single_arg_method_d ( 1159s # GClosure *closure, 1159s # GValue *return_value, 1159s # unsigned int n_param_values, 1159s # const GValue *param_values, 1159s # void *invocation_hint, 1159s # void *marshal_data) 1159s # { 1159s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT (closure, 1159s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1159s # } 1159s # 1159s # 1159s # /** 1159s # * OrgProjectUsefulInterface: 1159s # * 1159s # * Abstract interface type for the D-Bus interface org.project.UsefulInterface. 1159s # */ 1159s # 1159s # /** 1159s # * OrgProjectUsefulInterfaceIface: 1159s # * @parent_iface: The parent interface. 1159s # * @handle_single_arg_method_d: Handler for the #OrgProjectUsefulInterface::handle-single-arg-method-d signal. 1159s # * 1159s # * Virtual table for the D-Bus interface org.project.UsefulInterface. 1159s # */ 1159s # 1159s # typedef OrgProjectUsefulInterfaceIface OrgProjectUsefulInterfaceInterface; 1159s # G_DEFINE_INTERFACE (OrgProjectUsefulInterface, org_project_useful_interface, G_TYPE_OBJECT) 1159s # 1159s # static void 1159s # org_project_useful_interface_default_init (OrgProjectUsefulInterfaceIface *iface) 1159s # { 1159s # /* GObject signals for incoming D-Bus method calls: */ 1159s # /** 1159s # * OrgProjectUsefulInterface::handle-single-arg-method-d: 1159s # * @object: A #OrgProjectUsefulInterface. 1159s # * @invocation: A #GDBusMethodInvocation. 1159s # * 1159s # * Signal emitted when a remote caller is invoking the SingleArgMethodD() D-Bus method. 1159s # * 1159s # * 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. 1159s # * 1159s # * 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. 1159s # */ 1159s # g_signal_new ("handle-single-arg-method-d", 1159s # G_TYPE_FROM_INTERFACE (iface), 1159s # G_SIGNAL_RUN_LAST, 1159s # G_STRUCT_OFFSET (OrgProjectUsefulInterfaceIface, handle_single_arg_method_d), 1159s # g_signal_accumulator_true_handled, 1159s # NULL, 1159s # org_project_useful_interface_method_marshal_single_arg_method_d, 1159s # G_TYPE_BOOLEAN, 1159s # 1, 1159s # G_TYPE_DBUS_METHOD_INVOCATION); 1159s # 1159s # } 1159s # 1159s # /** 1159s # * org_project_useful_interface_call_single_arg_method_d: 1159s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1159s # * @cancellable: (nullable): A #GCancellable or %NULL. 1159s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL. 1159s # * @user_data: User data to pass to @callback. 1159s # * 1159s # * Asynchronously invokes the SingleArgMethodD() D-Bus method on @proxy. 1159s # * 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()). 1159s # * You can then call org_project_useful_interface_call_single_arg_method_d_finish() to get the result of the operation. 1159s # * 1159s # * See org_project_useful_interface_call_single_arg_method_d_sync() for the synchronous, blocking version of this method. 1159s # */ 1159s # void 1159s # org_project_useful_interface_call_single_arg_method_d ( 1159s # OrgProjectUsefulInterface *proxy, 1159s # GCancellable *cancellable, 1159s # GAsyncReadyCallback callback, 1159s # gpointer user_data) 1159s # { 1159s # g_dbus_proxy_call (G_DBUS_PROXY (proxy), 1159s # "SingleArgMethodD", 1159s # g_variant_new ("()"), 1159s # G_DBUS_CALL_FLAGS_NONE, 1159s # -1, 1159s # cancellable, 1159s # callback, 1159s # user_data); 1159s # } 1159s # 1159s # /** 1159s # * org_project_useful_interface_call_single_arg_method_d_finish: 1159s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1159s # * @out_arg_d: (out) (optional): Return location for return parameter or %NULL to ignore. 1159s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_call_single_arg_method_d(). 1159s # * @error: Return location for error or %NULL. 1159s # * 1159s # * Finishes an operation started with org_project_useful_interface_call_single_arg_method_d(). 1159s # * 1159s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1159s # */ 1159s # gboolean 1159s # org_project_useful_interface_call_single_arg_method_d_finish ( 1159s # OrgProjectUsefulInterface *proxy, 1159s # gdouble *out_arg_d, 1159s # GAsyncResult *res, 1159s # GError **error) 1159s # { 1159s # GVariant *_ret; 1159s # _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error); 1159s # if (_ret == NULL) 1159s # goto _out; 1159s # g_variant_get (_ret, 1159s # "(d)", 1159s # out_arg_d); 1159s # g_variant_unref (_ret); 1159s # _out: 1159s # return _ret != NULL; 1159s # } 1159s # 1159s # /** 1159s # * org_project_useful_interface_call_single_arg_method_d_sync: 1159s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1159s # * @out_arg_d: (out) (optional): Return location for return parameter or %NULL to ignore. 1159s # * @cancellable: (nullable): A #GCancellable or %NULL. 1159s # * @error: Return location for error or %NULL. 1159s # * 1159s # * Synchronously invokes the SingleArgMethodD() D-Bus method on @proxy. The calling thread is blocked until a reply is received. 1159s # * 1159s # * See org_project_useful_interface_call_single_arg_method_d() for the asynchronous version of this method. 1159s # * 1159s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1159s # */ 1159s # gboolean 1159s # org_project_useful_interface_call_single_arg_method_d_sync ( 1159s # OrgProjectUsefulInterface *proxy, 1159s # gdouble *out_arg_d, 1159s # GCancellable *cancellable, 1159s # GError **error) 1159s # { 1159s # GVariant *_ret; 1159s # _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy), 1159s # "SingleArgMethodD", 1159s # g_variant_new ("()"), 1159s # G_DBUS_CALL_FLAGS_NONE, 1159s # -1, 1159s # cancellable, 1159s # error); 1159s # if (_ret == NULL) 1159s # goto _out; 1159s # g_variant_get (_ret, 1159s # "(d)", 1159s # out_arg_d); 1159s # g_variant_unref (_ret); 1159s # _out: 1159s # return _ret != NULL; 1159s # } 1159s # 1159s # /** 1159s # * org_project_useful_interface_complete_single_arg_method_d: 1159s # * @object: A #OrgProjectUsefulInterface. 1159s # * @invocation: (transfer full): A #GDBusMethodInvocation. 1159s # * @arg_d: Parameter to return. 1159s # * 1159s # * 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. 1159s # * 1159s # * This method will free @invocation, you cannot use it afterwards. 1159s # */ 1159s # void 1159s # org_project_useful_interface_complete_single_arg_method_d ( 1159s # OrgProjectUsefulInterface *object G_GNUC_UNUSED, 1159s # GDBusMethodInvocation *invocation, 1159s # gdouble arg_d) 1159s # { 1159s # g_dbus_method_invocation_return_value (invocation, 1159s # g_variant_new ("(d)", 1159s # arg_d)); 1159s # } 1159s # 1159s # /* ------------------------------------------------------------------------ */ 1159s # 1159s # /** 1159s # * OrgProjectUsefulInterfaceProxy: 1159s # * 1159s # * The #OrgProjectUsefulInterfaceProxy structure contains only private data and should only be accessed using the provided API. 1159s # */ 1159s # 1159s # /** 1159s # * OrgProjectUsefulInterfaceProxyClass: 1159s # * @parent_class: The parent class. 1159s # * 1159s # * Class structure for #OrgProjectUsefulInterfaceProxy. 1159s # */ 1159s # 1159s # struct _OrgProjectUsefulInterfaceProxyPrivate 1159s # { 1159s # GData *qdata; 1159s # }; 1159s # 1159s # static void org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface); 1159s # 1159s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1159s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 1159s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceProxy) 1159s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 1159s # 1159s # #else 1159s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 1159s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 1159s # 1159s # #endif 1159s # static void 1159s # org_project_useful_interface_proxy_finalize (GObject *object) 1159s # { 1159s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (object); 1159s # g_datalist_clear (&proxy->priv->qdata); 1159s # G_OBJECT_CLASS (org_project_useful_interface_proxy_parent_class)->finalize (object); 1159s # } 1159s # 1159s # static void 1159s # org_project_useful_interface_proxy_get_property (GObject *object G_GNUC_UNUSED, 1159s # guint prop_id G_GNUC_UNUSED, 1159s # GValue *value G_GNUC_UNUSED, 1159s # GParamSpec *pspec G_GNUC_UNUSED) 1159s # { 1159s # } 1159s # 1159s # static void 1159s # org_project_useful_interface_proxy_set_property (GObject *object G_GNUC_UNUSED, 1159s # guint prop_id G_GNUC_UNUSED, 1159s # const GValue *value G_GNUC_UNUSED, 1159s # GParamSpec *pspec G_GNUC_UNUSED) 1159s # { 1159s # } 1159s # 1159s # static void 1159s # org_project_useful_interface_proxy_g_signal (GDBusProxy *proxy, 1159s # const gchar *sender_name G_GNUC_UNUSED, 1159s # const gchar *signal_name, 1159s # GVariant *parameters) 1159s # { 1159s # _ExtendedGDBusSignalInfo *info; 1159s # GVariantIter iter; 1159s # GVariant *child; 1159s # GValue *paramv; 1159s # gsize num_params; 1159s # gsize n; 1159s # guint signal_id; 1159s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, signal_name); 1159s # if (info == NULL) 1159s # return; 1159s # num_params = g_variant_n_children (parameters); 1159s # paramv = g_new0 (GValue, num_params + 1); 1159s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1159s # g_value_set_object (¶mv[0], proxy); 1159s # g_variant_iter_init (&iter, parameters); 1159s # n = 1; 1159s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1159s # { 1159s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 1159s # if (arg_info->use_gvariant) 1159s # { 1159s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1159s # g_value_set_variant (¶mv[n], child); 1159s # n++; 1159s # } 1159s # else 1159s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1159s # g_variant_unref (child); 1159s # } 1159s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1159s # g_signal_emitv (paramv, signal_id, 0, NULL); 1159s # for (n = 0; n < num_params + 1; n++) 1159s # g_value_unset (¶mv[n]); 1159s # g_free (paramv); 1159s # } 1159s # 1159s # static void 1159s # org_project_useful_interface_proxy_g_properties_changed (GDBusProxy *_proxy, 1159s # GVariant *changed_properties, 1159s # const gchar *const *invalidated_properties) 1159s # { 1159s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (_proxy); 1159s # guint n; 1159s # const gchar *key; 1159s # GVariantIter *iter; 1159s # _ExtendedGDBusPropertyInfo *info; 1159s # g_variant_get (changed_properties, "a{sv}", &iter); 1159s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 1159s # { 1159s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, key); 1159s # g_datalist_remove_data (&proxy->priv->qdata, key); 1159s # if (info != NULL) 1159s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1159s # } 1159s # g_variant_iter_free (iter); 1159s # for (n = 0; invalidated_properties[n] != NULL; n++) 1159s # { 1159s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, invalidated_properties[n]); 1159s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 1159s # if (info != NULL) 1159s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1159s # } 1159s # } 1159s # 1159s # static void 1159s # org_project_useful_interface_proxy_init (OrgProjectUsefulInterfaceProxy *proxy) 1159s # { 1159s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1159s # proxy->priv = org_project_useful_interface_proxy_get_instance_private (proxy); 1159s # #else 1159s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY, OrgProjectUsefulInterfaceProxyPrivate); 1159s # #endif 1159s # 1159s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_useful_interface_interface_info ()); 1159s # } 1159s # 1159s # static void 1159s # org_project_useful_interface_proxy_class_init (OrgProjectUsefulInterfaceProxyClass *klass) 1159s # { 1159s # GObjectClass *gobject_class; 1159s # GDBusProxyClass *proxy_class; 1159s # 1159s # gobject_class = G_OBJECT_CLASS (klass); 1159s # gobject_class->finalize = org_project_useful_interface_proxy_finalize; 1159s # gobject_class->get_property = org_project_useful_interface_proxy_get_property; 1159s # gobject_class->set_property = org_project_useful_interface_proxy_set_property; 1159s # 1159s # proxy_class = G_DBUS_PROXY_CLASS (klass); 1159s # proxy_class->g_signal = org_project_useful_interface_proxy_g_signal; 1159s # proxy_class->g_properties_changed = org_project_useful_interface_proxy_g_properties_changed; 1159s # 1159s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1159s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceProxyPrivate)); 1159s # #endif 1159s # } 1159s # 1159s # static void 1159s # org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 1159s # { 1159s # } 1159s # 1159s # /** 1159s # * org_project_useful_interface_proxy_new: 1159s # * @connection: A #GDBusConnection. 1159s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1159s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1159s # * @object_path: An object path. 1159s # * @cancellable: (nullable): A #GCancellable or %NULL. 1159s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1159s # * @user_data: User data to pass to @callback. 1159s # * 1159s # * Asynchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new() for more details. 1159s # * 1159s # * 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()). 1159s # * You can then call org_project_useful_interface_proxy_new_finish() to get the result of the operation. 1159s # * 1159s # * See org_project_useful_interface_proxy_new_sync() for the synchronous, blocking version of this constructor. 1159s # */ 1159s # void 1159s # org_project_useful_interface_proxy_new ( 1159s # GDBusConnection *connection, 1159s # GDBusProxyFlags flags, 1159s # const gchar *name, 1159s # const gchar *object_path, 1159s # GCancellable *cancellable, 1159s # GAsyncReadyCallback callback, 1159s # gpointer user_data) 1159s # { 1159s # 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); 1159s # } 1159s # 1159s # /** 1159s # * org_project_useful_interface_proxy_new_finish: 1159s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new(). 1159s # * @error: Return location for error or %NULL 1159s # * 1159s # * Finishes an operation started with org_project_useful_interface_proxy_new(). 1159s # * 1159s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1159s # */ 1159s # OrgProjectUsefulInterface * 1159s # org_project_useful_interface_proxy_new_finish ( 1159s # GAsyncResult *res, 1159s # GError **error) 1159s # { 1159s # GObject *ret; 1159s # GObject *source_object; 1159s # source_object = g_async_result_get_source_object (res); 1159s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1159s # g_object_unref (source_object); 1159s # if (ret != NULL) 1159s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1159s # else 1159s # return NULL; 1159s # } 1159s # 1159s # /** 1159s # * org_project_useful_interface_proxy_new_sync: 1159s # * @connection: A #GDBusConnection. 1159s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1159s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1159s # * @object_path: An object path. 1159s # * @cancellable: (nullable): A #GCancellable or %NULL. 1159s # * @error: Return location for error or %NULL 1159s # * 1159s # * Synchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new_sync() for more details. 1159s # * 1159s # * The calling thread is blocked until a reply is received. 1159s # * 1159s # * See org_project_useful_interface_proxy_new() for the asynchronous version of this constructor. 1159s # * 1159s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1159s # */ 1159s # OrgProjectUsefulInterface * 1159s # org_project_useful_interface_proxy_new_sync ( 1159s # GDBusConnection *connection, 1159s # GDBusProxyFlags flags, 1159s # const gchar *name, 1159s # const gchar *object_path, 1159s # GCancellable *cancellable, 1159s # GError **error) 1159s # { 1159s # GInitable *ret; 1159s # 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); 1159s # if (ret != NULL) 1159s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1159s # else 1159s # return NULL; 1159s # } 1159s # 1159s # 1159s # /** 1159s # * org_project_useful_interface_proxy_new_for_bus: 1159s # * @bus_type: A #GBusType. 1159s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1159s # * @name: A bus name (well-known or unique). 1159s # * @object_path: An object path. 1159s # * @cancellable: (nullable): A #GCancellable or %NULL. 1159s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1159s # * @user_data: User data to pass to @callback. 1159s # * 1159s # * Like org_project_useful_interface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 1159s # * 1159s # * 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()). 1159s # * You can then call org_project_useful_interface_proxy_new_for_bus_finish() to get the result of the operation. 1159s # * 1159s # * See org_project_useful_interface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 1159s # */ 1159s # void 1159s # org_project_useful_interface_proxy_new_for_bus ( 1159s # GBusType bus_type, 1159s # GDBusProxyFlags flags, 1159s # const gchar *name, 1159s # const gchar *object_path, 1159s # GCancellable *cancellable, 1159s # GAsyncReadyCallback callback, 1159s # gpointer user_data) 1159s # { 1159s # 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); 1159s # } 1159s # 1159s # /** 1159s # * org_project_useful_interface_proxy_new_for_bus_finish: 1159s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new_for_bus(). 1159s # * @error: Return location for error or %NULL 1159s # * 1159s # * Finishes an operation started with org_project_useful_interface_proxy_new_for_bus(). 1159s # * 1159s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1159s # */ 1159s # OrgProjectUsefulInterface * 1159s # org_project_useful_interface_proxy_new_for_bus_finish ( 1159s # GAsyncResult *res, 1159s # GError **error) 1159s # { 1159s # GObject *ret; 1159s # GObject *source_object; 1159s # source_object = g_async_result_get_source_object (res); 1159s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1159s # g_object_unref (source_object); 1159s # if (ret != NULL) 1159s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1159s # else 1159s # return NULL; 1159s # } 1159s # 1159s # /** 1159s # * org_project_useful_interface_proxy_new_for_bus_sync: 1159s # * @bus_type: A #GBusType. 1159s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1159s # * @name: A bus name (well-known or unique). 1159s # * @object_path: An object path. 1159s # * @cancellable: (nullable): A #GCancellable or %NULL. 1159s # * @error: Return location for error or %NULL 1159s # * 1159s # * Like org_project_useful_interface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 1159s # * 1159s # * The calling thread is blocked until a reply is received. 1159s # * 1159s # * See org_project_useful_interface_proxy_new_for_bus() for the asynchronous version of this constructor. 1159s # * 1159s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1159s # */ 1159s # OrgProjectUsefulInterface * 1159s # org_project_useful_interface_proxy_new_for_bus_sync ( 1159s # GBusType bus_type, 1159s # GDBusProxyFlags flags, 1159s # const gchar *name, 1159s # const gchar *object_path, 1159s # GCancellable *cancellable, 1159s # GError **error) 1159s # { 1159s # GInitable *ret; 1159s # 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); 1159s # if (ret != NULL) 1159s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1159s # else 1159s # return NULL; 1159s # } 1159s # 1159s # 1159s # /* ------------------------------------------------------------------------ */ 1159s # 1159s # /** 1159s # * OrgProjectUsefulInterfaceSkeleton: 1159s # * 1159s # * The #OrgProjectUsefulInterfaceSkeleton structure contains only private data and should only be accessed using the provided API. 1159s # */ 1159s # 1159s # /** 1159s # * OrgProjectUsefulInterfaceSkeletonClass: 1159s # * @parent_class: The parent class. 1159s # * 1159s # * Class structure for #OrgProjectUsefulInterfaceSkeleton. 1159s # */ 1159s # 1159s # struct _OrgProjectUsefulInterfaceSkeletonPrivate 1159s # { 1159s # GValue *properties; 1159s # GList *changed_properties; 1159s # GSource *changed_properties_idle_source; 1159s # GMainContext *context; 1159s # GMutex lock; 1159s # }; 1159s # 1159s # static void 1159s # _org_project_useful_interface_skeleton_handle_method_call ( 1159s # GDBusConnection *connection G_GNUC_UNUSED, 1159s # const gchar *sender G_GNUC_UNUSED, 1159s # const gchar *object_path G_GNUC_UNUSED, 1159s # const gchar *interface_name, 1159s # const gchar *method_name, 1159s # GVariant *parameters, 1159s # GDBusMethodInvocation *invocation, 1159s # gpointer user_data) 1159s # { 1159s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1159s # _ExtendedGDBusMethodInfo *info; 1159s # GVariantIter iter; 1159s # GVariant *child; 1159s # GValue *paramv; 1159s # gsize num_params; 1159s # guint num_extra; 1159s # gsize n; 1159s # guint signal_id; 1159s # GValue return_value = G_VALUE_INIT; 1159s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 1159s # g_assert (info != NULL); 1159s # num_params = g_variant_n_children (parameters); 1159s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 1159s # n = 0; 1159s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1159s # g_value_set_object (¶mv[n++], skeleton); 1159s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 1159s # g_value_set_object (¶mv[n++], invocation); 1159s # if (info->pass_fdlist) 1159s # { 1159s # #ifdef G_OS_UNIX 1159s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 1159s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 1159s # #else 1159s # g_assert_not_reached (); 1159s # #endif 1159s # } 1159s # g_variant_iter_init (&iter, parameters); 1159s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1159s # { 1159s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 1159s # if (arg_info->use_gvariant) 1159s # { 1159s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1159s # g_value_set_variant (¶mv[n], child); 1159s # n++; 1159s # } 1159s # else 1159s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1159s # g_variant_unref (child); 1159s # } 1159s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1159s # g_value_init (&return_value, G_TYPE_BOOLEAN); 1159s # g_signal_emitv (paramv, signal_id, 0, &return_value); 1159s # if (!g_value_get_boolean (&return_value)) 1159s # 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); 1159s # g_value_unset (&return_value); 1159s # for (n = 0; n < num_params + num_extra; n++) 1159s # g_value_unset (¶mv[n]); 1159s # g_free (paramv); 1159s # } 1159s # 1159s # static GVariant * 1159s # _org_project_useful_interface_skeleton_handle_get_property ( 1159s # GDBusConnection *connection G_GNUC_UNUSED, 1159s # const gchar *sender G_GNUC_UNUSED, 1159s # const gchar *object_path G_GNUC_UNUSED, 1159s # const gchar *interface_name G_GNUC_UNUSED, 1159s # const gchar *property_name, 1159s # GError **error, 1159s # gpointer user_data) 1159s # { 1159s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1159s # GValue value = G_VALUE_INIT; 1159s # GParamSpec *pspec; 1159s # _ExtendedGDBusPropertyInfo *info; 1159s # GVariant *ret; 1159s # ret = NULL; 1159s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 1159s # g_assert (info != NULL); 1159s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1159s # if (pspec == NULL) 1159s # { 1159s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1159s # } 1159s # else 1159s # { 1159s # g_value_init (&value, pspec->value_type); 1159s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1159s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 1159s # g_value_unset (&value); 1159s # } 1159s # return ret; 1159s # } 1159s # 1159s # static gboolean 1159s # _org_project_useful_interface_skeleton_handle_set_property ( 1159s # GDBusConnection *connection G_GNUC_UNUSED, 1159s # const gchar *sender G_GNUC_UNUSED, 1159s # const gchar *object_path G_GNUC_UNUSED, 1159s # const gchar *interface_name G_GNUC_UNUSED, 1159s # const gchar *property_name, 1159s # GVariant *variant, 1159s # GError **error, 1159s # gpointer user_data) 1159s # { 1159s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1159s # GValue value = G_VALUE_INIT; 1159s # GParamSpec *pspec; 1159s # _ExtendedGDBusPropertyInfo *info; 1159s # gboolean ret; 1159s # ret = FALSE; 1159s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 1159s # g_assert (info != NULL); 1159s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1159s # if (pspec == NULL) 1159s # { 1159s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1159s # } 1159s # else 1159s # { 1159s # if (info->use_gvariant) 1159s # g_value_set_variant (&value, variant); 1159s # else 1159s # g_dbus_gvariant_to_gvalue (variant, &value); 1159s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1159s # g_value_unset (&value); 1159s # ret = TRUE; 1159s # } 1159s # return ret; 1159s # } 1159s # 1159s # static const GDBusInterfaceVTable _org_project_useful_interface_skeleton_vtable = 1159s # { 1159s # _org_project_useful_interface_skeleton_handle_method_call, 1159s # _org_project_useful_interface_skeleton_handle_get_property, 1159s # _org_project_useful_interface_skeleton_handle_set_property, 1159s # {NULL} 1159s # }; 1159s # 1159s # static GDBusInterfaceInfo * 1159s # org_project_useful_interface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1159s # { 1159s # return org_project_useful_interface_interface_info (); 1159s # } 1159s # 1159s # static GDBusInterfaceVTable * 1159s # org_project_useful_interface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1159s # { 1159s # return (GDBusInterfaceVTable *) &_org_project_useful_interface_skeleton_vtable; 1159s # } 1159s # 1159s # static GVariant * 1159s # org_project_useful_interface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 1159s # { 1159s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (_skeleton); 1159s # 1159s # GVariantBuilder builder; 1159s # guint n; 1159s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 1159s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 1159s # #else 1159s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 1159s # #endif 1159s # if (_org_project_useful_interface_interface_info.parent_struct.properties == NULL) 1159s # goto out; 1159s # for (n = 0; _org_project_useful_interface_interface_info.parent_struct.properties[n] != NULL; n++) 1159s # { 1159s # GDBusPropertyInfo *info = _org_project_useful_interface_interface_info.parent_struct.properties[n]; 1159s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 1159s # { 1159s # GVariant *value; 1159s # 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); 1159s # if (value != NULL) 1159s # { 1159s # g_variant_take_ref (value); 1159s # g_variant_builder_add (&builder, "{sv}", info->name, value); 1159s # g_variant_unref (value); 1159s # } 1159s # } 1159s # } 1159s # out: 1159s # return g_variant_builder_end (&builder); 1159s # } 1159s # 1159s # static void 1159s # org_project_useful_interface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 1159s # { 1159s # } 1159s # 1159s # static void org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface); 1159s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1159s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1159s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceSkeleton) 1159s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 1159s # 1159s # #else 1159s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1159s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 1159s # 1159s # #endif 1159s # static void 1159s # org_project_useful_interface_skeleton_finalize (GObject *object) 1159s # { 1159s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (object); 1159s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 1159s # if (skeleton->priv->changed_properties_idle_source != NULL) 1159s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 1159s # g_main_context_unref (skeleton->priv->context); 1159s # g_mutex_clear (&skeleton->priv->lock); 1159s # G_OBJECT_CLASS (org_project_useful_interface_skeleton_parent_class)->finalize (object); 1159s # } 1159s # 1159s # static void 1159s # org_project_useful_interface_skeleton_init (OrgProjectUsefulInterfaceSkeleton *skeleton) 1159s # { 1159s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1159s # skeleton->priv = org_project_useful_interface_skeleton_get_instance_private (skeleton); 1159s # #else 1159s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, OrgProjectUsefulInterfaceSkeletonPrivate); 1159s # #endif 1159s # 1159s # g_mutex_init (&skeleton->priv->lock); 1159s # skeleton->priv->context = g_main_context_ref_thread_default (); 1159s # } 1159s # 1159s # static void 1159s # org_project_useful_interface_skeleton_class_init (OrgProjectUsefulInterfaceSkeletonClass *klass) 1159s # { 1159s # GObjectClass *gobject_class; 1159s # GDBusInterfaceSkeletonClass *skeleton_class; 1159s # 1159s # gobject_class = G_OBJECT_CLASS (klass); 1159s # gobject_class->finalize = org_project_useful_interface_skeleton_finalize; 1159s # 1159s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 1159s # skeleton_class->get_info = org_project_useful_interface_skeleton_dbus_interface_get_info; 1159s # skeleton_class->get_properties = org_project_useful_interface_skeleton_dbus_interface_get_properties; 1159s # skeleton_class->flush = org_project_useful_interface_skeleton_dbus_interface_flush; 1159s # skeleton_class->get_vtable = org_project_useful_interface_skeleton_dbus_interface_get_vtable; 1159s # 1159s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1159s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceSkeletonPrivate)); 1159s # #endif 1159s # } 1159s # 1159s # static void 1159s # org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 1159s # { 1159s # } 1159s # 1159s # /** 1159s # * org_project_useful_interface_skeleton_new: 1159s # * 1159s # * Creates a skeleton object for the D-Bus interface org.project.UsefulInterface. 1159s # * 1159s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceSkeleton): The skeleton object. 1159s # */ 1159s # OrgProjectUsefulInterface * 1159s # org_project_useful_interface_skeleton_new (void) 1159s # { 1159s # return ORG_PROJECT_USEFUL_INTERFACE (g_object_new (TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, NULL)); 1159s # } 1159s # Error: 1159s # 1159s # /tmp/tmpatbfkbk2/tmpnfwws6n2.xml: 1159s # 1159s # 1159s # 1159s # 1159s # 1159s # 1159s # 1159s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpatbfkbk2/tmpnfwws6n2.xml', '--output', '-', '--body'] 1159s # Return code: 0 1159s # Output: 1159s # /* 1159s # * This file is generated by gdbus-codegen, do not modify it. 1159s # * 1159s # * The license of this code is the same as for the D-Bus interface description 1159s # * it was derived from. Note that it links to GLib, so must comply with the 1159s # * LGPL linking clauses. 1159s # */ 1159s # 1159s # #ifdef HAVE_CONFIG_H 1159s # # include "config.h" 1159s # #endif 1159s # 1159s # #include 1159s # #ifdef G_OS_UNIX 1159s # # include 1159s # #endif 1159s # 1159s # #ifdef G_ENABLE_DEBUG 1159s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 1159s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 1159s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 1159s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 1159s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 1159s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 1159s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 1159s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 1159s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 1159s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 1159s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 1159s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 1159s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 1159s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 1159s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 1159s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 1159s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 1159s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 1159s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 1159s # #else /* !G_ENABLE_DEBUG */ 1159s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 1159s # * Do not access GValues directly in your code. Instead, use the 1159s # * g_value_get_*() functions 1159s # */ 1159s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 1159s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 1159s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 1159s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 1159s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 1159s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 1159s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 1159s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 1159s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 1159s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 1159s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 1159s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 1159s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 1159s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 1159s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 1159s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 1159s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 1159s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 1159s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 1159s # #endif /* !G_ENABLE_DEBUG */ 1159s # 1159s # typedef struct 1159s # { 1159s # GDBusArgInfo parent_struct; 1159s # gboolean use_gvariant; 1159s # } _ExtendedGDBusArgInfo; 1159s # 1159s # typedef struct 1159s # { 1159s # GDBusMethodInfo parent_struct; 1159s # const gchar *signal_name; 1159s # gboolean pass_fdlist; 1159s # } _ExtendedGDBusMethodInfo; 1159s # 1159s # typedef struct 1159s # { 1159s # GDBusSignalInfo parent_struct; 1159s # const gchar *signal_name; 1159s # } _ExtendedGDBusSignalInfo; 1159s # 1159s # typedef struct 1159s # { 1159s # GDBusPropertyInfo parent_struct; 1159s # const gchar *hyphen_name; 1159s # guint use_gvariant : 1; 1159s # guint emits_changed_signal : 1; 1159s # } _ExtendedGDBusPropertyInfo; 1159s # 1159s # typedef struct 1159s # { 1159s # GDBusInterfaceInfo parent_struct; 1159s # const gchar *hyphen_name; 1159s # } _ExtendedGDBusInterfaceInfo; 1159s # 1159s # typedef struct 1159s # { 1159s # const _ExtendedGDBusPropertyInfo *info; 1159s # guint prop_id; 1159s # GValue orig_value; /* the value before the change */ 1159s # } ChangedProperty; 1159s # 1159s # static void 1159s # _changed_property_free (ChangedProperty *data) 1159s # { 1159s # g_value_unset (&data->orig_value); 1159s # g_free (data); 1159s # } 1159s # 1159s # static gboolean 1159s # _g_strv_equal0 (gchar **a, gchar **b) 1159s # { 1159s # gboolean ret = FALSE; 1159s # guint n; 1159s # if (a == NULL && b == NULL) 1159s # { 1159s # ret = TRUE; 1159s # goto out; 1159s # } 1159s # if (a == NULL || b == NULL) 1159s # goto out; 1159s # if (g_strv_length (a) != g_strv_length (b)) 1159s # goto out; 1159s # for (n = 0; a[n] != NULL; n++) 1159s # if (g_strcmp0 (a[n], b[n]) != 0) 1159s # goto out; 1159s # ret = TRUE; 1159s # out: 1159s # return ret; 1159s # } 1159s # 1159s # static gboolean 1159s # _g_variant_equal0 (GVariant *a, GVariant *b) 1159s # { 1159s # gboolean ret = FALSE; 1159s # if (a == NULL && b == NULL) 1159s # { 1159s # ret = TRUE; 1159s # goto out; 1159s # } 1159s # if (a == NULL || b == NULL) 1159s # goto out; 1159s # ret = g_variant_equal (a, b); 1159s # out: 1159s # return ret; 1159s # } 1159s # 1159s # G_GNUC_UNUSED static gboolean 1159s # _g_value_equal (const GValue *a, const GValue *b) 1159s # { 1159s # gboolean ret = FALSE; 1159s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 1159s # switch (G_VALUE_TYPE (a)) 1159s # { 1159s # case G_TYPE_BOOLEAN: 1159s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 1159s # break; 1159s # case G_TYPE_UCHAR: 1159s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 1159s # break; 1159s # case G_TYPE_INT: 1159s # ret = (g_value_get_int (a) == g_value_get_int (b)); 1159s # break; 1159s # case G_TYPE_UINT: 1159s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 1159s # break; 1159s # case G_TYPE_INT64: 1159s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 1159s # break; 1159s # case G_TYPE_UINT64: 1159s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 1159s # break; 1159s # case G_TYPE_DOUBLE: 1159s # { 1159s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 1159s # gdouble da = g_value_get_double (a); 1159s # gdouble db = g_value_get_double (b); 1159s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 1159s # } 1159s # break; 1159s # case G_TYPE_STRING: 1159s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 1159s # break; 1159s # case G_TYPE_VARIANT: 1159s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 1159s # break; 1159s # default: 1159s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 1159s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 1159s # else 1159s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 1159s # break; 1159s # } 1159s # return ret; 1159s # } 1159s # 1159s # static void 1159s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT ( 1159s # GClosure *closure, 1159s # GValue *return_value, 1159s # unsigned int n_param_values, 1159s # const GValue *param_values, 1159s # void *invocation_hint G_GNUC_UNUSED, 1159s # void *marshal_data) 1159s # { 1159s # typedef gboolean (*_GDbusCodegenMarshalBoolean_ObjectFunc) 1159s # (void *data1, 1159s # GDBusMethodInvocation *arg_method_invocation, 1159s # void *data2); 1159s # _GDbusCodegenMarshalBoolean_ObjectFunc callback; 1159s # GCClosure *cc = (GCClosure*) closure; 1159s # void *data1, *data2; 1159s # gboolean v_return; 1159s # 1159s # g_return_if_fail (return_value != NULL); 1159s # g_return_if_fail (n_param_values == 2); 1159s # 1159s # if (G_CCLOSURE_SWAP_DATA (closure)) 1159s # { 1159s # data1 = closure->data; 1159s # data2 = g_value_peek_pointer (param_values + 0); 1159s # } 1159s # else 1159s # { 1159s # data1 = g_value_peek_pointer (param_values + 0); 1159s # data2 = closure->data; 1159s # } 1159s # 1159s # callback = (_GDbusCodegenMarshalBoolean_ObjectFunc) 1159s # (marshal_data ? marshal_data : cc->callback); 1159s # 1159s # v_return = 1159s # callback (data1, 1159s # g_marshal_value_peek_object (param_values + 1), 1159s # data2); 1159s # 1159s # g_value_set_boolean (return_value, v_return); 1159s # } 1159s # 1159s # /* ------------------------------------------------------------------------ 1159s # * Code for interface org.project.UsefulInterface 1159s # * ------------------------------------------------------------------------ 1159s # */ 1159s # 1159s # /** 1159s # * SECTION:OrgProjectUsefulInterface 1159s # * @title: OrgProjectUsefulInterface 1159s # * @short_description: Generated C code for the org.project.UsefulInterface D-Bus interface 1159s # * 1159s # * This section contains code for working with the org.project.UsefulInterface D-Bus interface in C. 1159s # */ 1159s # 1159s # /* ---- Introspection data for org.project.UsefulInterface ---- */ 1159s # 1159s # static const _ExtendedGDBusArgInfo _org_project_useful_interface_method_info_single_arg_method_s_OUT_ARG_arg_s = 1159s # { 1159s # { 1159s # -1, 1159s # (gchar *) "arg_s", 1159s # (gchar *) "s", 1159s # NULL 1159s # }, 1159s # FALSE 1159s # }; 1159s # 1159s # static const GDBusArgInfo * const _org_project_useful_interface_method_info_single_arg_method_s_OUT_ARG_pointers[] = 1159s # { 1159s # &_org_project_useful_interface_method_info_single_arg_method_s_OUT_ARG_arg_s.parent_struct, 1159s # NULL 1159s # }; 1159s # 1159s # static const _ExtendedGDBusMethodInfo _org_project_useful_interface_method_info_single_arg_method_s = 1159s # { 1159s # { 1159s # -1, 1159s # (gchar *) "SingleArgMethodS", 1159s # NULL, 1159s # (GDBusArgInfo **) &_org_project_useful_interface_method_info_single_arg_method_s_OUT_ARG_pointers, 1159s # NULL 1159s # }, 1159s # "handle-single-arg-method-s", 1159s # FALSE 1159s # }; 1159s # 1159s # static const GDBusMethodInfo * const _org_project_useful_interface_method_info_pointers[] = 1159s # { 1159s # &_org_project_useful_interface_method_info_single_arg_method_s.parent_struct, 1159s # NULL 1159s # }; 1159s # 1159s # static const _ExtendedGDBusInterfaceInfo _org_project_useful_interface_interface_info = 1159s # { 1159s # { 1159s # -1, 1159s # (gchar *) "org.project.UsefulInterface", 1159s # (GDBusMethodInfo **) &_org_project_useful_interface_method_info_pointers, 1159s # NULL, 1159s # NULL, 1159s # NULL 1159s # }, 1159s # "org-project-useful-interface", 1159s # }; 1159s # 1159s # 1159s # /** 1159s # * org_project_useful_interface_interface_info: 1159s # * 1159s # * Gets a machine-readable description of the org.project.UsefulInterface D-Bus interface. 1159s # * 1159s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 1159s # */ 1159s # GDBusInterfaceInfo * 1159s # org_project_useful_interface_interface_info (void) 1159s # { 1159s # return (GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct; 1159s # } 1159s # 1159s # /** 1159s # * org_project_useful_interface_override_properties: 1159s # * @klass: The class structure for a #GObject derived class. 1159s # * @property_id_begin: The property id to assign to the first overridden property. 1159s # * 1159s # * Overrides all #GObject properties in the #OrgProjectUsefulInterface interface for a concrete class. 1159s # * The properties are overridden in the order they are defined. 1159s # * 1159s # * Returns: The last property id. 1159s # */ 1159s # guint 1159s # org_project_useful_interface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 1159s # { 1159s # return property_id_begin - 1; 1159s # } 1159s # 1159s # 1159s # inline static void 1159s # org_project_useful_interface_method_marshal_single_arg_method_s ( 1159s # GClosure *closure, 1159s # GValue *return_value, 1159s # unsigned int n_param_values, 1159s # const GValue *param_values, 1159s # void *invocation_hint, 1159s # void *marshal_data) 1159s # { 1159s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT (closure, 1159s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1159s # } 1159s # 1159s # 1159s # /** 1159s # * OrgProjectUsefulInterface: 1159s # * 1159s # * Abstract interface type for the D-Bus interface org.project.UsefulInterface. 1159s # */ 1159s # 1159s # /** 1159s # * OrgProjectUsefulInterfaceIface: 1159s # * @parent_iface: The parent interface. 1159s # * @handle_single_arg_method_s: Handler for the #OrgProjectUsefulInterface::handle-single-arg-method-s signal. 1159s # * 1159s # * Virtual table for the D-Bus interface org.project.UsefulInterface. 1159s # */ 1159s # 1159s # typedef OrgProjectUsefulInterfaceIface OrgProjectUsefulInterfaceInterface; 1159s # G_DEFINE_INTERFACE (OrgProjectUsefulInterface, org_project_useful_interface, G_TYPE_OBJECT) 1159s # 1159s # static void 1159s # org_project_useful_interface_default_init (OrgProjectUsefulInterfaceIface *iface) 1159s # { 1159s # /* GObject signals for incoming D-Bus method calls: */ 1159s # /** 1159s # * OrgProjectUsefulInterface::handle-single-arg-method-s: 1159s # * @object: A #OrgProjectUsefulInterface. 1159s # * @invocation: A #GDBusMethodInvocation. 1159s # * 1159s # * Signal emitted when a remote caller is invoking the SingleArgMethodS() D-Bus method. 1159s # * 1159s # * 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. 1159s # * 1159s # * 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. 1159s # */ 1159s # g_signal_new ("handle-single-arg-method-s", 1159s # G_TYPE_FROM_INTERFACE (iface), 1159s # G_SIGNAL_RUN_LAST, 1159s # G_STRUCT_OFFSET (OrgProjectUsefulInterfaceIface, handle_single_arg_method_s), 1159s # g_signal_accumulator_true_handled, 1159s # NULL, 1159s # org_project_useful_interface_method_marshal_single_arg_method_s, 1159s # G_TYPE_BOOLEAN, 1159s # 1, 1159s # G_TYPE_DBUS_METHOD_INVOCATION); 1159s # 1159s # } 1159s # 1159s # /** 1159s # * org_project_useful_interface_call_single_arg_method_s: 1159s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1159s # * @cancellable: (nullable): A #GCancellable or %NULL. 1159s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL. 1159s # * @user_data: User data to pass to @callback. 1159s # * 1159s # * Asynchronously invokes the SingleArgMethodS() D-Bus method on @proxy. 1159s # * 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()). 1159s # * You can then call org_project_useful_interface_call_single_arg_method_s_finish() to get the result of the operation. 1159s # * 1159s # * See org_project_useful_interface_call_single_arg_method_s_sync() for the synchronous, blocking version of this method. 1159s # */ 1159s # void 1159s # org_project_useful_interface_call_single_arg_method_s ( 1159s # OrgProjectUsefulInterface *proxy, 1159s # GCancellable *cancellable, 1159s # GAsyncReadyCallback callback, 1159s # gpointer user_data) 1159s # { 1159s # g_dbus_proxy_call (G_DBUS_PROXY (proxy), 1159s # "SingleArgMethodS", 1159s # g_variant_new ("()"), 1159s # G_DBUS_CALL_FLAGS_NONE, 1159s # -1, 1159s # cancellable, 1159s # callback, 1159s # user_data); 1159s # } 1159s # 1159s # /** 1159s # * org_project_useful_interface_call_single_arg_method_s_finish: 1159s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1159s # * @out_arg_s: (out) (optional): Return location for return parameter or %NULL to ignore. 1159s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_call_single_arg_method_s(). 1159s # * @error: Return location for error or %NULL. 1159s # * 1159s # * Finishes an operation started with org_project_useful_interface_call_single_arg_method_s(). 1159s # * 1159s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1159s # */ 1159s # gboolean 1159s # org_project_useful_interface_call_single_arg_method_s_finish ( 1159s # OrgProjectUsefulInterface *proxy, 1159s # gchar **out_arg_s, 1159s # GAsyncResult *res, 1159s # GError **error) 1159s # { 1159s # GVariant *_ret; 1159s # _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error); 1159s # if (_ret == NULL) 1159s # goto _out; 1159s # g_variant_get (_ret, 1159s # "(s)", 1159s # out_arg_s); 1159s # g_variant_unref (_ret); 1159s # _out: 1159s # return _ret != NULL; 1159s # } 1159s # 1159s # /** 1159s # * org_project_useful_interface_call_single_arg_method_s_sync: 1159s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1159s # * @out_arg_s: (out) (optional): Return location for return parameter or %NULL to ignore. 1159s # * @cancellable: (nullable): A #GCancellable or %NULL. 1159s # * @error: Return location for error or %NULL. 1159s # * 1159s # * Synchronously invokes the SingleArgMethodS() D-Bus method on @proxy. The calling thread is blocked until a reply is received. 1159s # * 1159s # * See org_project_useful_interface_call_single_arg_method_s() for the asynchronous version of this method. 1159s # * 1159s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1159s # */ 1159s # gboolean 1159s # org_project_useful_interface_call_single_arg_method_s_sync ( 1159s # OrgProjectUsefulInterface *proxy, 1159s # gchar **out_arg_s, 1159s # GCancellable *cancellable, 1159s # GError **error) 1159s # { 1159s # GVariant *_ret; 1159s # _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy), 1159s # "SingleArgMethodS", 1159s # g_variant_new ("()"), 1159s # G_DBUS_CALL_FLAGS_NONE, 1159s # -1, 1159s # cancellable, 1159s # error); 1159s # if (_ret == NULL) 1159s # goto _out; 1159s # g_variant_get (_ret, 1159s # "(s)", 1159s # out_arg_s); 1159s # g_variant_unref (_ret); 1159s # _out: 1159s # return _ret != NULL; 1159s # } 1159s # 1159s # /** 1159s # * org_project_useful_interface_complete_single_arg_method_s: 1159s # * @object: A #OrgProjectUsefulInterface. 1159s # * @invocation: (transfer full): A #GDBusMethodInvocation. 1159s # * @arg_s: Parameter to return. 1159s # * 1159s # * 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. 1159s # * 1159s # * This method will free @invocation, you cannot use it afterwards. 1159s # */ 1159s # void 1159s # org_project_useful_interface_complete_single_arg_method_s ( 1159s # OrgProjectUsefulInterface *object G_GNUC_UNUSED, 1159s # GDBusMethodInvocation *invocation, 1159s # const gchar *arg_s) 1159s # { 1159s # g_dbus_method_invocation_return_value (invocation, 1159s # g_variant_new ("(s)", 1159s # arg_s)); 1159s # } 1159s # 1159s # /* ------------------------------------------------------------------------ */ 1159s # 1159s # /** 1159s # * OrgProjectUsefulInterfaceProxy: 1159s # * 1159s # * The #OrgProjectUsefulInterfaceProxy structure contains only private data and should only be accessed using the provided API. 1159s # */ 1159s # 1159s # /** 1159s # * OrgProjectUsefulInterfaceProxyClass: 1159s # * @parent_class: The parent class. 1159s # * 1159s # * Class structure for #OrgProjectUsefulInterfaceProxy. 1159s # */ 1159s # 1159s # struct _OrgProjectUsefulInterfaceProxyPrivate 1159s # { 1159s # GData *qdata; 1159s # }; 1159s # 1159s # static void org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface); 1159s # 1159s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1159s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 1159s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceProxy) 1159s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 1159s # 1159s # #else 1159s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 1159s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 1159s # 1159s # #endif 1159s # static void 1159s # org_project_useful_interface_proxy_finalize (GObject *object) 1159s # { 1159s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (object); 1159s # g_datalist_clear (&proxy->priv->qdata); 1159s # G_OBJECT_CLASS (org_project_useful_interface_proxy_parent_class)->finalize (object); 1159s # } 1159s # 1159s # static void 1159s # org_project_useful_interface_proxy_get_property (GObject *object G_GNUC_UNUSED, 1159s # guint prop_id G_GNUC_UNUSED, 1159s # GValue *value G_GNUC_UNUSED, 1159s # GParamSpec *pspec G_GNUC_UNUSED) 1159s # { 1159s # } 1159s # 1159s # static void 1159s # org_project_useful_interface_proxy_set_property (GObject *object G_GNUC_UNUSED, 1159s # guint prop_id G_GNUC_UNUSED, 1159s # const GValue *value G_GNUC_UNUSED, 1159s # GParamSpec *pspec G_GNUC_UNUSED) 1159s # { 1159s # } 1159s # 1159s # static void 1159s # org_project_useful_interface_proxy_g_signal (GDBusProxy *proxy, 1159s # const gchar *sender_name G_GNUC_UNUSED, 1159s # const gchar *signal_name, 1159s # GVariant *parameters) 1159s # { 1159s # _ExtendedGDBusSignalInfo *info; 1159s # GVariantIter iter; 1159s # GVariant *child; 1159s # GValue *paramv; 1159s # gsize num_params; 1159s # gsize n; 1159s # guint signal_id; 1159s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, signal_name); 1159s # if (info == NULL) 1159s # return; 1159s # num_params = g_variant_n_children (parameters); 1159s # paramv = g_new0 (GValue, num_params + 1); 1159s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1159s # g_value_set_object (¶mv[0], proxy); 1159s # g_variant_iter_init (&iter, parameters); 1159s # n = 1; 1159s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1159s # { 1159s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 1159s # if (arg_info->use_gvariant) 1159s # { 1159s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1159s # g_value_set_variant (¶mv[n], child); 1159s # n++; 1159s # } 1159s # else 1159s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1159s # g_variant_unref (child); 1159s # } 1159s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1159s # g_signal_emitv (paramv, signal_id, 0, NULL); 1159s # for (n = 0; n < num_params + 1; n++) 1159s # g_value_unset (¶mv[n]); 1159s # g_free (paramv); 1159s # } 1159s # 1159s # static void 1159s # org_project_useful_interface_proxy_g_properties_changed (GDBusProxy *_proxy, 1159s # GVariant *changed_properties, 1159s # const gchar *const *invalidated_properties) 1159s # { 1159s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (_proxy); 1159s # guint n; 1159s # const gchar *key; 1159s # GVariantIter *iter; 1159s # _ExtendedGDBusPropertyInfo *info; 1159s # g_variant_get (changed_properties, "a{sv}", &iter); 1159s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 1159s # { 1159s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, key); 1159s # g_datalist_remove_data (&proxy->priv->qdata, key); 1159s # if (info != NULL) 1159s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1159s # } 1159s # g_variant_iter_free (iter); 1159s # for (n = 0; invalidated_properties[n] != NULL; n++) 1159s # { 1159s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, invalidated_properties[n]); 1159s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 1159s # if (info != NULL) 1159s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1159s # } 1159s # } 1159s # 1159s # static void 1159s # org_project_useful_interface_proxy_init (OrgProjectUsefulInterfaceProxy *proxy) 1159s # { 1159s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1159s # proxy->priv = org_project_useful_interface_proxy_get_instance_private (proxy); 1159s # #else 1159s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY, OrgProjectUsefulInterfaceProxyPrivate); 1159s # #endif 1159s # 1159s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_useful_interface_interface_info ()); 1159s # } 1159s # 1159s # static void 1159s # org_project_useful_interface_proxy_class_init (OrgProjectUsefulInterfaceProxyClass *klass) 1159s # { 1159s # GObjectClass *gobject_class; 1159s # GDBusProxyClass *proxy_class; 1159s # 1159s # gobject_class = G_OBJECT_CLASS (klass); 1159s # gobject_class->finalize = org_project_useful_interface_proxy_finalize; 1159s # gobject_class->get_property = org_project_useful_interface_proxy_get_property; 1159s # gobject_class->set_property = org_project_useful_interface_proxy_set_property; 1159s # 1159s # proxy_class = G_DBUS_PROXY_CLASS (klass); 1159s # proxy_class->g_signal = org_project_useful_interface_proxy_g_signal; 1159s # proxy_class->g_properties_changed = org_project_useful_interface_proxy_g_properties_changed; 1159s # 1159s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1159s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceProxyPrivate)); 1159s # #endif 1159s # } 1159s # 1159s # static void 1159s # org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 1159s # { 1159s # } 1159s # 1159s # /** 1159s # * org_project_useful_interface_proxy_new: 1159s # * @connection: A #GDBusConnection. 1159s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1159s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1159s # * @object_path: An object path. 1159s # * @cancellable: (nullable): A #GCancellable or %NULL. 1159s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1159s # * @user_data: User data to pass to @callback. 1159s # * 1159s # * Asynchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new() for more details. 1159s # * 1159s # * 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()). 1159s # * You can then call org_project_useful_interface_proxy_new_finish() to get the result of the operation. 1159s # * 1159s # * See org_project_useful_interface_proxy_new_sync() for the synchronous, blocking version of this constructor. 1159s # */ 1159s # void 1159s # org_project_useful_interface_proxy_new ( 1159s # GDBusConnection *connection, 1159s # GDBusProxyFlags flags, 1159s # const gchar *name, 1159s # const gchar *object_path, 1159s # GCancellable *cancellable, 1159s # GAsyncReadyCallback callback, 1159s # gpointer user_data) 1159s # { 1159s # 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); 1159s # } 1159s # 1159s # /** 1159s # * org_project_useful_interface_proxy_new_finish: 1159s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new(). 1159s # * @error: Return location for error or %NULL 1159s # * 1159s # * Finishes an operation started with org_project_useful_interface_proxy_new(). 1159s # * 1159s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1159s # */ 1159s # OrgProjectUsefulInterface * 1159s # org_project_useful_interface_proxy_new_finish ( 1159s # GAsyncResult *res, 1159s # GError **error) 1159s # { 1159s # GObject *ret; 1159s # GObject *source_object; 1159s # source_object = g_async_result_get_source_object (res); 1159s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1159s # g_object_unref (source_object); 1159s # if (ret != NULL) 1159s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1159s # else 1159s # return NULL; 1159s # } 1159s # 1159s # /** 1159s # * org_project_useful_interface_proxy_new_sync: 1159s # * @connection: A #GDBusConnection. 1159s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1159s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1159s # * @object_path: An object path. 1159s # * @cancellable: (nullable): A #GCancellable or %NULL. 1159s # * @error: Return location for error or %NULL 1159s # * 1159s # * Synchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new_sync() for more details. 1159s # * 1159s # * The calling thread is blocked until a reply is received. 1159s # * 1159s # * See org_project_useful_interface_proxy_new() for the asynchronous version of this constructor. 1159s # * 1159s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1159s # */ 1159s # OrgProjectUsefulInterface * 1159s # org_project_useful_interface_proxy_new_sync ( 1159s # GDBusConnection *connection, 1159s # GDBusProxyFlags flags, 1159s # const gchar *name, 1159s # const gchar *object_path, 1159s # GCancellable *cancellable, 1159s # GError **error) 1159s # { 1159s # GInitable *ret; 1159s # 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); 1159s # if (ret != NULL) 1159s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1159s # else 1159s # return NULL; 1159s # } 1159s # 1159s # 1159s # /** 1159s # * org_project_useful_interface_proxy_new_for_bus: 1159s # * @bus_type: A #GBusType. 1159s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1159s # * @name: A bus name (well-known or unique). 1159s # * @object_path: An object path. 1159s # * @cancellable: (nullable): A #GCancellable or %NULL. 1159s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1159s # * @user_data: User data to pass to @callback. 1159s # * 1159s # * Like org_project_useful_interface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 1159s # * 1159s # * 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()). 1159s # * You can then call org_project_useful_interface_proxy_new_for_bus_finish() to get the result of the operation. 1159s # * 1159s # * See org_project_useful_interface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 1159s # */ 1159s # void 1159s # org_project_useful_interface_proxy_new_for_bus ( 1159s # GBusType bus_type, 1159s # GDBusProxyFlags flags, 1159s # const gchar *name, 1159s # const gchar *object_path, 1159s # GCancellable *cancellable, 1159s # GAsyncReadyCallback callback, 1159s # gpointer user_data) 1159s # { 1159s # 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); 1159s # } 1159s # 1159s # /** 1159s # * org_project_useful_interface_proxy_new_for_bus_finish: 1159s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new_for_bus(). 1159s # * @error: Return location for error or %NULL 1159s # * 1159s # * Finishes an operation started with org_project_useful_interface_proxy_new_for_bus(). 1159s # * 1159s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1159s # */ 1159s # OrgProjectUsefulInterface * 1159s # org_project_useful_interface_proxy_new_for_bus_finish ( 1159s # GAsyncResult *res, 1159s # GError **error) 1159s # { 1159s # GObject *ret; 1159s # GObject *source_object; 1159s # source_object = g_async_result_get_source_object (res); 1159s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1159s # g_object_unref (source_object); 1159s # if (ret != NULL) 1159s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1159s # else 1159s # return NULL; 1159s # } 1159s # 1159s # /** 1159s # * org_project_useful_interface_proxy_new_for_bus_sync: 1159s # * @bus_type: A #GBusType. 1159s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1159s # * @name: A bus name (well-known or unique). 1159s # * @object_path: An object path. 1159s # * @cancellable: (nullable): A #GCancellable or %NULL. 1159s # * @error: Return location for error or %NULL 1159s # * 1159s # * Like org_project_useful_interface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 1159s # * 1159s # * The calling thread is blocked until a reply is received. 1159s # * 1159s # * See org_project_useful_interface_proxy_new_for_bus() for the asynchronous version of this constructor. 1159s # * 1159s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1159s # */ 1159s # OrgProjectUsefulInterface * 1159s # org_project_useful_interface_proxy_new_for_bus_sync ( 1159s # GBusType bus_type, 1159s # GDBusProxyFlags flags, 1159s # const gchar *name, 1159s # const gchar *object_path, 1159s # GCancellable *cancellable, 1159s # GError **error) 1159s # { 1159s # GInitable *ret; 1159s # 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); 1159s # if (ret != NULL) 1159s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1159s # else 1159s # return NULL; 1159s # } 1159s # 1159s # 1159s # /* ------------------------------------------------------------------------ */ 1159s # 1159s # /** 1159s # * OrgProjectUsefulInterfaceSkeleton: 1159s # * 1159s # * The #OrgProjectUsefulInterfaceSkeleton structure contains only private data and should only be accessed using the provided API. 1159s # */ 1159s # 1159s # /** 1159s # * OrgProjectUsefulInterfaceSkeletonClass: 1159s # * @parent_class: The parent class. 1159s # * 1159s # * Class structure for #OrgProjectUsefulInterfaceSkeleton. 1159s # */ 1159s # 1159s # struct _OrgProjectUsefulInterfaceSkeletonPrivate 1159s # { 1159s # GValue *properties; 1159s # GList *changed_properties; 1159s # GSource *changed_properties_idle_source; 1159s # GMainContext *context; 1159s # GMutex lock; 1159s # }; 1159s # 1159s # static void 1159s # _org_project_useful_interface_skeleton_handle_method_call ( 1159s # GDBusConnection *connection G_GNUC_UNUSED, 1159s # const gchar *sender G_GNUC_UNUSED, 1159s # const gchar *object_path G_GNUC_UNUSED, 1159s # const gchar *interface_name, 1159s # const gchar *method_name, 1159s # GVariant *parameters, 1159s # GDBusMethodInvocation *invocation, 1159s # gpointer user_data) 1159s # { 1159s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1159s # _ExtendedGDBusMethodInfo *info; 1159s # GVariantIter iter; 1159s # GVariant *child; 1159s # GValue *paramv; 1159s # gsize num_params; 1159s # guint num_extra; 1159s # gsize n; 1159s # guint signal_id; 1159s # GValue return_value = G_VALUE_INIT; 1159s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 1159s # g_assert (info != NULL); 1159s # num_params = g_variant_n_children (parameters); 1159s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 1159s # n = 0; 1159s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1159s # g_value_set_object (¶mv[n++], skeleton); 1159s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 1159s # g_value_set_object (¶mv[n++], invocation); 1159s # if (info->pass_fdlist) 1159s # { 1159s # #ifdef G_OS_UNIX 1159s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 1159s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 1159s # #else 1159s # g_assert_not_reached (); 1159s # #endif 1159s # } 1159s # g_variant_iter_init (&iter, parameters); 1159s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1159s # { 1159s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 1159s # if (arg_info->use_gvariant) 1159s # { 1159s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1159s # g_value_set_variant (¶mv[n], child); 1159s # n++; 1159s # } 1159s # else 1159s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1159s # g_variant_unref (child); 1159s # } 1159s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1159s # g_value_init (&return_value, G_TYPE_BOOLEAN); 1159s # g_signal_emitv (paramv, signal_id, 0, &return_value); 1159s # if (!g_value_get_boolean (&return_value)) 1159s # 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); 1159s # g_value_unset (&return_value); 1159s # for (n = 0; n < num_params + num_extra; n++) 1159s # g_value_unset (¶mv[n]); 1159s # g_free (paramv); 1159s # } 1159s # 1159s # static GVariant * 1159s # _org_project_useful_interface_skeleton_handle_get_property ( 1159s # GDBusConnection *connection G_GNUC_UNUSED, 1159s # const gchar *sender G_GNUC_UNUSED, 1159s # const gchar *object_path G_GNUC_UNUSED, 1159s # const gchar *interface_name G_GNUC_UNUSED, 1159s # const gchar *property_name, 1159s # GError **error, 1159s # gpointer user_data) 1159s # { 1159s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1159s # GValue value = G_VALUE_INIT; 1159s # GParamSpec *pspec; 1159s # _ExtendedGDBusPropertyInfo *info; 1159s # GVariant *ret; 1159s # ret = NULL; 1159s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 1159s # g_assert (info != NULL); 1159s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1159s # if (pspec == NULL) 1159s # { 1159s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1159s # } 1159s # else 1159s # { 1159s # g_value_init (&value, pspec->value_type); 1159s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1159s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 1159s # g_value_unset (&value); 1159s # } 1159s # return ret; 1159s # } 1159s # 1159s # static gboolean 1159s # _org_project_useful_interface_skeleton_handle_set_property ( 1159s # GDBusConnection *connection G_GNUC_UNUSED, 1159s # const gchar *sender G_GNUC_UNUSED, 1159s # const gchar *object_path G_GNUC_UNUSED, 1159s # const gchar *interface_name G_GNUC_UNUSED, 1159s # const gchar *property_name, 1159s # GVariant *variant, 1159s # GError **error, 1159s # gpointer user_data) 1159s # { 1159s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1159s # GValue value = G_VALUE_INIT; 1159s # GParamSpec *pspec; 1159s # _ExtendedGDBusPropertyInfo *info; 1159s # gboolean ret; 1159s # ret = FALSE; 1159s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 1159s # g_assert (info != NULL); 1159s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1159s # if (pspec == NULL) 1159s # { 1159s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1159s # } 1159s # else 1159s # { 1159s # if (info->use_gvariant) 1159s # g_value_set_variant (&value, variant); 1159s # else 1159s # g_dbus_gvariant_to_gvalue (variant, &value); 1159s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1159s # g_value_unset (&value); 1159s # ret = TRUE; 1159s # } 1159s # return ret; 1159s # } 1159s # 1159s # static const GDBusInterfaceVTable _org_project_useful_interface_skeleton_vtable = 1159s # { 1159s # _org_project_useful_interface_skeleton_handle_method_call, 1159s # _org_project_useful_interface_skeleton_handle_get_property, 1159s # _org_project_useful_interface_skeleton_handle_set_property, 1159s # {NULL} 1159s # }; 1159s # 1159s # static GDBusInterfaceInfo * 1159s # org_project_useful_interface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1159s # { 1159s # return org_project_useful_interface_interface_info (); 1159s # } 1159s # 1159s # static GDBusInterfaceVTable * 1159s # org_project_useful_interface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1159s # { 1159s # return (GDBusInterfaceVTable *) &_org_project_useful_interface_skeleton_vtable; 1159s # } 1159s # 1159s # static GVariant * 1159s # org_project_useful_interface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 1159s # { 1159s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (_skeleton); 1159s # 1159s # GVariantBuilder builder; 1159s # guint n; 1159s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 1159s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 1159s # #else 1159s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 1159s # #endif 1159s # if (_org_project_useful_interface_interface_info.parent_struct.properties == NULL) 1159s # goto out; 1159s # for (n = 0; _org_project_useful_interface_interface_info.parent_struct.properties[n] != NULL; n++) 1159s # { 1159s # GDBusPropertyInfo *info = _org_project_useful_interface_interface_info.parent_struct.properties[n]; 1159s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 1159s # { 1159s # GVariant *value; 1159s # 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); 1159s # if (value != NULL) 1159s # { 1159s # g_variant_take_ref (value); 1159s # g_variant_builder_add (&builder, "{sv}", info->name, value); 1159s # g_variant_unref (value); 1159s # } 1159s # } 1159s # } 1159s # out: 1159s # return g_variant_builder_end (&builder); 1159s # } 1159s # 1159s # static void 1159s # org_project_useful_interface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 1159s # { 1159s # } 1159s # 1159s # static void org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface); 1159s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1159s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1159s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceSkeleton) 1159s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 1159s # 1159s # #else 1159s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1159s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 1159s # 1159s # #endif 1159s # static void 1159s # org_project_useful_interface_skeleton_finalize (GObject *object) 1159s # { 1159s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (object); 1159s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 1159s # if (skeleton->priv->changed_properties_idle_source != NULL) 1159s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 1159s # g_main_context_unref (skeleton->priv->context); 1159s # g_mutex_clear (&skeleton->priv->lock); 1159s # G_OBJECT_CLASS (org_project_useful_interface_skeleton_parent_class)->finalize (object); 1159s # } 1159s # 1159s # static void 1159s # org_project_useful_interface_skeleton_init (OrgProjectUsefulInterfaceSkeleton *skeleton) 1159s # { 1159s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1159s # skeleton->priv = org_project_useful_interface_skeleton_get_instance_private (skeleton); 1159s # #else 1159s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, OrgProjectUsefulInterfaceSkeletonPrivate); 1159s # #endif 1159s # 1159s # g_mutex_init (&skeleton->priv->lock); 1159s # skeleton->priv->context = g_main_context_ref_thread_default (); 1159s # } 1159s # 1159s # static void 1159s # org_project_useful_interface_skeleton_class_init (OrgProjectUsefulInterfaceSkeletonClass *klass) 1159s # { 1159s # GObjectClass *gobject_class; 1159s # GDBusInterfaceSkeletonClass *skeleton_class; 1159s # 1159s # gobject_class = G_OBJECT_CLASS (klass); 1159s # gobject_class->finalize = org_project_useful_interface_skeleton_finalize; 1159s # 1159s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 1159s # skeleton_class->get_info = org_project_useful_interface_skeleton_dbus_interface_get_info; 1159s # skeleton_class->get_properties = org_project_useful_interface_skeleton_dbus_interface_get_properties; 1159s # skeleton_class->flush = org_project_useful_interface_skeleton_dbus_interface_flush; 1159s # skeleton_class->get_vtable = org_project_useful_interface_skeleton_dbus_interface_get_vtable; 1159s # 1159s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1159s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceSkeletonPrivate)); 1159s # #endif 1159s # } 1159s # 1159s # static void 1159s # org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 1159s # { 1159s # } 1159s # 1159s # /** 1159s # * org_project_useful_interface_skeleton_new: 1159s # * 1159s # * Creates a skeleton object for the D-Bus interface org.project.UsefulInterface. 1159s # * 1159s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceSkeleton): The skeleton object. 1159s # */ 1159s # OrgProjectUsefulInterface * 1159s # org_project_useful_interface_skeleton_new (void) 1159s # { 1159s # return ORG_PROJECT_USEFUL_INTERFACE (g_object_new (TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, NULL)); 1159s # } 1159s # Error: 1159s # 1159s # /tmp/tmpatbfkbk2/tmp2w0yd41g.xml: 1159s # 1159s # 1159s # 1159s # 1159s # 1159s # 1159s # 1159s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpatbfkbk2/tmp2w0yd41g.xml', '--output', '-', '--body'] 1159s # Return code: 0 1159s # Output: 1159s # /* 1159s # * This file is generated by gdbus-codegen, do not modify it. 1159s # * 1159s # * The license of this code is the same as for the D-Bus interface description 1159s # * it was derived from. Note that it links to GLib, so must comply with the 1159s # * LGPL linking clauses. 1159s # */ 1159s # 1159s # #ifdef HAVE_CONFIG_H 1159s # # include "config.h" 1159s # #endif 1159s # 1159s # #include 1159s # #ifdef G_OS_UNIX 1159s # # include 1159s # #endif 1159s # 1159s # #ifdef G_ENABLE_DEBUG 1159s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 1159s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 1159s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 1159s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 1159s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 1159s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 1159s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 1159s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 1159s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 1159s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 1159s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 1159s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 1159s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 1159s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 1159s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 1159s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 1159s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 1159s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 1159s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 1159s # #else /* !G_ENABLE_DEBUG */ 1159s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 1159s # * Do not access GValues directly in your code. Instead, use the 1159s # * g_value_get_*() functions 1159s # */ 1159s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 1159s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 1159s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 1159s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 1159s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 1159s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 1159s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 1159s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 1159s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 1159s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 1159s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 1159s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 1159s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 1159s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 1159s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 1159s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 1159s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 1159s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 1159s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 1159s # #endif /* !G_ENABLE_DEBUG */ 1159s # 1159s # typedef struct 1159s # { 1159s # GDBusArgInfo parent_struct; 1159s # gboolean use_gvariant; 1159s # } _ExtendedGDBusArgInfo; 1159s # 1159s # typedef struct 1159s # { 1159s # GDBusMethodInfo parent_struct; 1159s # const gchar *signal_name; 1159s # gboolean pass_fdlist; 1159s # } _ExtendedGDBusMethodInfo; 1159s # 1159s # typedef struct 1159s # { 1159s # GDBusSignalInfo parent_struct; 1159s # const gchar *signal_name; 1159s # } _ExtendedGDBusSignalInfo; 1159s # 1159s # typedef struct 1159s # { 1159s # GDBusPropertyInfo parent_struct; 1159s # const gchar *hyphen_name; 1159s # guint use_gvariant : 1; 1159s # guint emits_changed_signal : 1; 1159s # } _ExtendedGDBusPropertyInfo; 1159s # 1159s # typedef struct 1159s # { 1159s # GDBusInterfaceInfo parent_struct; 1159s # const gchar *hyphen_name; 1159s # } _ExtendedGDBusInterfaceInfo; 1159s # 1159s # typedef struct 1159s # { 1159s # const _ExtendedGDBusPropertyInfo *info; 1159s # guint prop_id; 1159s # GValue orig_value; /* the value before the change */ 1159s # } ChangedProperty; 1159s # 1159s # static void 1159s # _changed_property_free (ChangedProperty *data) 1159s # { 1159s # g_value_unset (&data->orig_value); 1159s # g_free (data); 1159s # } 1159s # 1159s # static gboolean 1159s # _g_strv_equal0 (gchar **a, gchar **b) 1159s # { 1159s # gboolean ret = FALSE; 1159s # guint n; 1159s # if (a == NULL && b == NULL) 1159s # { 1159s # ret = TRUE; 1159s # goto out; 1159s # } 1159s # if (a == NULL || b == NULL) 1159s # goto out; 1159s # if (g_strv_length (a) != g_strv_length (b)) 1159s # goto out; 1159s # for (n = 0; a[n] != NULL; n++) 1159s # if (g_strcmp0 (a[n], b[n]) != 0) 1159s # goto out; 1159s # ret = TRUE; 1159s # out: 1159s # return ret; 1159s # } 1159s # 1159s # static gboolean 1159s # _g_variant_equal0 (GVariant *a, GVariant *b) 1159s # { 1159s # gboolean ret = FALSE; 1159s # if (a == NULL && b == NULL) 1159s # { 1159s # ret = TRUE; 1159s # goto out; 1159s # } 1159s # if (a == NULL || b == NULL) 1159s # goto out; 1159s # ret = g_variant_equal (a, b); 1159s # out: 1159s # return ret; 1159s # } 1159s # 1159s # G_GNUC_UNUSED static gboolean 1159s # _g_value_equal (const GValue *a, const GValue *b) 1159s # { 1159s # gboolean ret = FALSE; 1159s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 1159s # switch (G_VALUE_TYPE (a)) 1159s # { 1159s # case G_TYPE_BOOLEAN: 1159s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 1159s # break; 1159s # case G_TYPE_UCHAR: 1159s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 1159s # break; 1159s # case G_TYPE_INT: 1159s # ret = (g_value_get_int (a) == g_value_get_int (b)); 1159s # break; 1159s # case G_TYPE_UINT: 1159s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 1159s # break; 1159s # case G_TYPE_INT64: 1159s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 1159s # break; 1159s # case G_TYPE_UINT64: 1159s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 1159s # break; 1159s # case G_TYPE_DOUBLE: 1159s # { 1159s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 1159s # gdouble da = g_value_get_double (a); 1159s # gdouble db = g_value_get_double (b); 1159s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 1159s # } 1159s # break; 1159s # case G_TYPE_STRING: 1159s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 1159s # break; 1159s # case G_TYPE_VARIANT: 1159s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 1159s # break; 1159s # default: 1159s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 1159s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 1159s # else 1159s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 1159s # break; 1159s # } 1159s # return ret; 1159s # } 1159s # 1159s # static void 1159s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT ( 1159s # GClosure *closure, 1159s # GValue *return_value, 1159s # unsigned int n_param_values, 1159s # const GValue *param_values, 1159s # void *invocation_hint G_GNUC_UNUSED, 1159s # void *marshal_data) 1159s # { 1159s # typedef gboolean (*_GDbusCodegenMarshalBoolean_ObjectFunc) 1159s # (void *data1, 1159s # GDBusMethodInvocation *arg_method_invocation, 1159s # void *data2); 1159s # _GDbusCodegenMarshalBoolean_ObjectFunc callback; 1159s # GCClosure *cc = (GCClosure*) closure; 1159s # void *data1, *data2; 1159s # gboolean v_return; 1159s # 1159s # g_return_if_fail (return_value != NULL); 1159s # g_return_if_fail (n_param_values == 2); 1159s # 1159s # if (G_CCLOSURE_SWAP_DATA (closure)) 1159s # { 1159s # data1 = closure->data; 1159s # data2 = g_value_peek_pointer (param_values + 0); 1159s # } 1159s # else 1159s # { 1159s # data1 = g_value_peek_pointer (param_values + 0); 1159s # data2 = closure->data; 1159s # } 1159s # 1159s # callback = (_GDbusCodegenMarshalBoolean_ObjectFunc) 1159s # (marshal_data ? marshal_data : cc->callback); 1159s # 1159s # v_return = 1159s # callback (data1, 1159s # g_marshal_value_peek_object (param_values + 1), 1159s # data2); 1159s # 1159s # g_value_set_boolean (return_value, v_return); 1159s # } 1159s # 1159s # /* ------------------------------------------------------------------------ 1159s # * Code for interface org.project.UsefulInterface 1159s # * ------------------------------------------------------------------------ 1159s # */ 1159s # 1159s # /** 1159s # * SECTION:OrgProjectUsefulInterface 1159s # * @title: OrgProjectUsefulInterface 1159s # * @short_description: Generated C code for the org.project.UsefulInterface D-Bus interface 1159s # * 1159s # * This section contains code for working with the org.project.UsefulInterface D-Bus interface in C. 1159s # */ 1159s # 1159s # /* ---- Introspection data for org.project.UsefulInterface ---- */ 1159s # 1159s # static const _ExtendedGDBusArgInfo _org_project_useful_interface_method_info_single_arg_method_o_OUT_ARG_arg_o = 1159s # { 1159s # { 1159s # -1, 1159s # (gchar *) "arg_o", 1159s # (gchar *) "o", 1159s # NULL 1159s # }, 1159s # FALSE 1159s # }; 1159s # 1159s # static const GDBusArgInfo * const _org_project_useful_interface_method_info_single_arg_method_o_OUT_ARG_pointers[] = 1159s # { 1159s # &_org_project_useful_interface_method_info_single_arg_method_o_OUT_ARG_arg_o.parent_struct, 1159s # NULL 1159s # }; 1159s # 1159s # static const _ExtendedGDBusMethodInfo _org_project_useful_interface_method_info_single_arg_method_o = 1159s # { 1159s # { 1159s # -1, 1159s # (gchar *) "SingleArgMethodO", 1159s # NULL, 1159s # (GDBusArgInfo **) &_org_project_useful_interface_method_info_single_arg_method_o_OUT_ARG_pointers, 1159s # NULL 1159s # }, 1159s # "handle-single-arg-method-o", 1159s # FALSE 1159s # }; 1159s # 1159s # static const GDBusMethodInfo * const _org_project_useful_interface_method_info_pointers[] = 1159s # { 1159s # &_org_project_useful_interface_method_info_single_arg_method_o.parent_struct, 1159s # NULL 1159s # }; 1159s # 1159s # static const _ExtendedGDBusInterfaceInfo _org_project_useful_interface_interface_info = 1159s # { 1159s # { 1159s # -1, 1159s # (gchar *) "org.project.UsefulInterface", 1159s # (GDBusMethodInfo **) &_org_project_useful_interface_method_info_pointers, 1159s # NULL, 1159s # NULL, 1159s # NULL 1159s # }, 1159s # "org-project-useful-interface", 1159s # }; 1159s # 1159s # 1159s # /** 1159s # * org_project_useful_interface_interface_info: 1159s # * 1159s # * Gets a machine-readable description of the org.project.UsefulInterface D-Bus interface. 1159s # * 1159s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 1159s # */ 1159s # GDBusInterfaceInfo * 1159s # org_project_useful_interface_interface_info (void) 1159s # { 1159s # return (GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct; 1159s # } 1159s # 1159s # /** 1159s # * org_project_useful_interface_override_properties: 1159s # * @klass: The class structure for a #GObject derived class. 1159s # * @property_id_begin: The property id to assign to the first overridden property. 1159s # * 1159s # * Overrides all #GObject properties in the #OrgProjectUsefulInterface interface for a concrete class. 1159s # * The properties are overridden in the order they are defined. 1159s # * 1159s # * Returns: The last property id. 1159s # */ 1159s # guint 1159s # org_project_useful_interface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 1159s # { 1159s # return property_id_begin - 1; 1159s # } 1159s # 1159s # 1159s # inline static void 1159s # org_project_useful_interface_method_marshal_single_arg_method_o ( 1159s # GClosure *closure, 1159s # GValue *return_value, 1159s # unsigned int n_param_values, 1159s # const GValue *param_values, 1159s # void *invocation_hint, 1159s # void *marshal_data) 1159s # { 1159s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT (closure, 1159s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1159s # } 1159s # 1159s # 1159s # /** 1159s # * OrgProjectUsefulInterface: 1159s # * 1159s # * Abstract interface type for the D-Bus interface org.project.UsefulInterface. 1159s # */ 1159s # 1159s # /** 1159s # * OrgProjectUsefulInterfaceIface: 1159s # * @parent_iface: The parent interface. 1159s # * @handle_single_arg_method_o: Handler for the #OrgProjectUsefulInterface::handle-single-arg-method-o signal. 1159s # * 1159s # * Virtual table for the D-Bus interface org.project.UsefulInterface. 1159s # */ 1159s # 1159s # typedef OrgProjectUsefulInterfaceIface OrgProjectUsefulInterfaceInterface; 1159s # G_DEFINE_INTERFACE (OrgProjectUsefulInterface, org_project_useful_interface, G_TYPE_OBJECT) 1159s # 1159s # static void 1159s # org_project_useful_interface_default_init (OrgProjectUsefulInterfaceIface *iface) 1159s # { 1159s # /* GObject signals for incoming D-Bus method calls: */ 1159s # /** 1159s # * OrgProjectUsefulInterface::handle-single-arg-method-o: 1159s # * @object: A #OrgProjectUsefulInterface. 1159s # * @invocation: A #GDBusMethodInvocation. 1159s # * 1159s # * Signal emitted when a remote caller is invoking the SingleArgMethodO() D-Bus method. 1159s # * 1159s # * 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. 1159s # * 1159s # * 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. 1159s # */ 1159s # g_signal_new ("handle-single-arg-method-o", 1159s # G_TYPE_FROM_INTERFACE (iface), 1159s # G_SIGNAL_RUN_LAST, 1159s # G_STRUCT_OFFSET (OrgProjectUsefulInterfaceIface, handle_single_arg_method_o), 1159s # g_signal_accumulator_true_handled, 1159s # NULL, 1159s # org_project_useful_interface_method_marshal_single_arg_method_o, 1159s # G_TYPE_BOOLEAN, 1159s # 1, 1159s # G_TYPE_DBUS_METHOD_INVOCATION); 1159s # 1159s # } 1159s # 1159s # /** 1159s # * org_project_useful_interface_call_single_arg_method_o: 1159s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1159s # * @cancellable: (nullable): A #GCancellable or %NULL. 1159s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL. 1159s # * @user_data: User data to pass to @callback. 1159s # * 1159s # * Asynchronously invokes the SingleArgMethodO() D-Bus method on @proxy. 1159s # * 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()). 1159s # * You can then call org_project_useful_interface_call_single_arg_method_o_finish() to get the result of the operation. 1159s # * 1159s # * See org_project_useful_interface_call_single_arg_method_o_sync() for the synchronous, blocking version of this method. 1159s # */ 1159s # void 1159s # org_project_useful_interface_call_single_arg_method_o ( 1159s # OrgProjectUsefulInterface *proxy, 1159s # GCancellable *cancellable, 1159s # GAsyncReadyCallback callback, 1159s # gpointer user_data) 1159s # { 1159s # g_dbus_proxy_call (G_DBUS_PROXY (proxy), 1159s # "SingleArgMethodO", 1159s # g_variant_new ("()"), 1159s # G_DBUS_CALL_FLAGS_NONE, 1159s # -1, 1159s # cancellable, 1159s # callback, 1159s # user_data); 1159s # } 1159s # 1159s # /** 1159s # * org_project_useful_interface_call_single_arg_method_o_finish: 1159s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1159s # * @out_arg_o: (out) (optional): Return location for return parameter or %NULL to ignore. 1159s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_call_single_arg_method_o(). 1159s # * @error: Return location for error or %NULL. 1159s # * 1159s # * Finishes an operation started with org_project_useful_interface_call_single_arg_method_o(). 1159s # * 1159s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1159s # */ 1159s # gboolean 1159s # org_project_useful_interface_call_single_arg_method_o_finish ( 1159s # OrgProjectUsefulInterface *proxy, 1159s # gchar **out_arg_o, 1159s # GAsyncResult *res, 1159s # GError **error) 1159s # { 1159s # GVariant *_ret; 1159s # _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error); 1159s # if (_ret == NULL) 1159s # goto _out; 1159s # g_variant_get (_ret, 1159s # "(o)", 1159s # out_arg_o); 1159s # g_variant_unref (_ret); 1159s # _out: 1159s # return _ret != NULL; 1159s # } 1159s # 1159s # /** 1159s # * org_project_useful_interface_call_single_arg_method_o_sync: 1159s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1159s # * @out_arg_o: (out) (optional): Return location for return parameter or %NULL to ignore. 1159s # * @cancellable: (nullable): A #GCancellable or %NULL. 1159s # * @error: Return location for error or %NULL. 1159s # * 1159s # * Synchronously invokes the SingleArgMethodO() D-Bus method on @proxy. The calling thread is blocked until a reply is received. 1159s # * 1159s # * See org_project_useful_interface_call_single_arg_method_o() for the asynchronous version of this method. 1159s # * 1159s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1159s # */ 1159s # gboolean 1159s # org_project_useful_interface_call_single_arg_method_o_sync ( 1159s # OrgProjectUsefulInterface *proxy, 1159s # gchar **out_arg_o, 1159s # GCancellable *cancellable, 1159s # GError **error) 1159s # { 1159s # GVariant *_ret; 1159s # _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy), 1159s # "SingleArgMethodO", 1159s # g_variant_new ("()"), 1159s # G_DBUS_CALL_FLAGS_NONE, 1159s # -1, 1159s # cancellable, 1159s # error); 1159s # if (_ret == NULL) 1159s # goto _out; 1159s # g_variant_get (_ret, 1159s # "(o)", 1159s # out_arg_o); 1159s # g_variant_unref (_ret); 1159s # _out: 1159s # return _ret != NULL; 1159s # } 1159s # 1159s # /** 1159s # * org_project_useful_interface_complete_single_arg_method_o: 1159s # * @object: A #OrgProjectUsefulInterface. 1159s # * @invocation: (transfer full): A #GDBusMethodInvocation. 1159s # * @arg_o: Parameter to return. 1159s # * 1159s # * 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. 1159s # * 1159s # * This method will free @invocation, you cannot use it afterwards. 1159s # */ 1159s # void 1159s # org_project_useful_interface_complete_single_arg_method_o ( 1159s # OrgProjectUsefulInterface *object G_GNUC_UNUSED, 1159s # GDBusMethodInvocation *invocation, 1159s # const gchar *arg_o) 1159s # { 1159s # g_dbus_method_invocation_return_value (invocation, 1159s # g_variant_new ("(o)", 1159s # arg_o)); 1159s # } 1159s # 1159s # /* ------------------------------------------------------------------------ */ 1159s # 1159s # /** 1159s # * OrgProjectUsefulInterfaceProxy: 1159s # * 1159s # * The #OrgProjectUsefulInterfaceProxy structure contains only private data and should only be accessed using the provided API. 1159s # */ 1159s # 1159s # /** 1159s # * OrgProjectUsefulInterfaceProxyClass: 1159s # * @parent_class: The parent class. 1159s # * 1159s # * Class structure for #OrgProjectUsefulInterfaceProxy. 1159s # */ 1159s # 1159s # struct _OrgProjectUsefulInterfaceProxyPrivate 1159s # { 1159s # GData *qdata; 1159s # }; 1159s # 1159s # static void org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface); 1159s # 1159s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1159s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 1159s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceProxy) 1159s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 1159s # 1159s # #else 1159s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 1159s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 1159s # 1159s # #endif 1159s # static void 1159s # org_project_useful_interface_proxy_finalize (GObject *object) 1159s # { 1159s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (object); 1159s # g_datalist_clear (&proxy->priv->qdata); 1159s # G_OBJECT_CLASS (org_project_useful_interface_proxy_parent_class)->finalize (object); 1159s # } 1159s # 1159s # static void 1159s # org_project_useful_interface_proxy_get_property (GObject *object G_GNUC_UNUSED, 1159s # guint prop_id G_GNUC_UNUSED, 1159s # GValue *value G_GNUC_UNUSED, 1159s # GParamSpec *pspec G_GNUC_UNUSED) 1159s # { 1159s # } 1159s # 1159s # static void 1159s # org_project_useful_interface_proxy_set_property (GObject *object G_GNUC_UNUSED, 1159s # guint prop_id G_GNUC_UNUSED, 1159s # const GValue *value G_GNUC_UNUSED, 1159s # GParamSpec *pspec G_GNUC_UNUSED) 1159s # { 1159s # } 1159s # 1159s # static void 1159s # org_project_useful_interface_proxy_g_signal (GDBusProxy *proxy, 1159s # const gchar *sender_name G_GNUC_UNUSED, 1159s # const gchar *signal_name, 1159s # GVariant *parameters) 1159s # { 1159s # _ExtendedGDBusSignalInfo *info; 1159s # GVariantIter iter; 1159s # GVariant *child; 1159s # GValue *paramv; 1159s # gsize num_params; 1159s # gsize n; 1159s # guint signal_id; 1159s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, signal_name); 1159s # if (info == NULL) 1159s # return; 1159s # num_params = g_variant_n_children (parameters); 1159s # paramv = g_new0 (GValue, num_params + 1); 1159s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1159s # g_value_set_object (¶mv[0], proxy); 1159s # g_variant_iter_init (&iter, parameters); 1159s # n = 1; 1159s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1159s # { 1159s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 1159s # if (arg_info->use_gvariant) 1159s # { 1159s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1159s # g_value_set_variant (¶mv[n], child); 1159s # n++; 1159s # } 1159s # else 1159s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1159s # g_variant_unref (child); 1159s # } 1159s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1159s # g_signal_emitv (paramv, signal_id, 0, NULL); 1159s # for (n = 0; n < num_params + 1; n++) 1159s # g_value_unset (¶mv[n]); 1159s # g_free (paramv); 1159s # } 1159s # 1159s # static void 1159s # org_project_useful_interface_proxy_g_properties_changed (GDBusProxy *_proxy, 1159s # GVariant *changed_properties, 1159s # const gchar *const *invalidated_properties) 1159s # { 1159s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (_proxy); 1159s # guint n; 1159s # const gchar *key; 1159s # GVariantIter *iter; 1159s # _ExtendedGDBusPropertyInfo *info; 1159s # g_variant_get (changed_properties, "a{sv}", &iter); 1159s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 1159s # { 1159s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, key); 1159s # g_datalist_remove_data (&proxy->priv->qdata, key); 1159s # if (info != NULL) 1159s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1159s # } 1159s # g_variant_iter_free (iter); 1159s # for (n = 0; invalidated_properties[n] != NULL; n++) 1159s # { 1159s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, invalidated_properties[n]); 1159s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 1159s # if (info != NULL) 1159s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1159s # } 1159s # } 1159s # 1159s # static void 1159s # org_project_useful_interface_proxy_init (OrgProjectUsefulInterfaceProxy *proxy) 1159s # { 1159s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1159s # proxy->priv = org_project_useful_interface_proxy_get_instance_private (proxy); 1159s # #else 1159s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY, OrgProjectUsefulInterfaceProxyPrivate); 1159s # #endif 1159s # 1159s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_useful_interface_interface_info ()); 1159s # } 1159s # 1159s # static void 1159s # org_project_useful_interface_proxy_class_init (OrgProjectUsefulInterfaceProxyClass *klass) 1159s # { 1159s # GObjectClass *gobject_class; 1159s # GDBusProxyClass *proxy_class; 1159s # 1159s # gobject_class = G_OBJECT_CLASS (klass); 1159s # gobject_class->finalize = org_project_useful_interface_proxy_finalize; 1159s # gobject_class->get_property = org_project_useful_interface_proxy_get_property; 1159s # gobject_class->set_property = org_project_useful_interface_proxy_set_property; 1159s # 1159s # proxy_class = G_DBUS_PROXY_CLASS (klass); 1159s # proxy_class->g_signal = org_project_useful_interface_proxy_g_signal; 1159s # proxy_class->g_properties_changed = org_project_useful_interface_proxy_g_properties_changed; 1159s # 1159s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1159s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceProxyPrivate)); 1159s # #endif 1159s # } 1159s # 1159s # static void 1159s # org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 1159s # { 1159s # } 1159s # 1159s # /** 1159s # * org_project_useful_interface_proxy_new: 1159s # * @connection: A #GDBusConnection. 1159s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1159s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1159s # * @object_path: An object path. 1159s # * @cancellable: (nullable): A #GCancellable or %NULL. 1159s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1159s # * @user_data: User data to pass to @callback. 1159s # * 1159s # * Asynchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new() for more details. 1159s # * 1159s # * 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()). 1159s # * You can then call org_project_useful_interface_proxy_new_finish() to get the result of the operation. 1159s # * 1159s # * See org_project_useful_interface_proxy_new_sync() for the synchronous, blocking version of this constructor. 1159s # */ 1159s # void 1159s # org_project_useful_interface_proxy_new ( 1159s # GDBusConnection *connection, 1159s # GDBusProxyFlags flags, 1159s # const gchar *name, 1159s # const gchar *object_path, 1159s # GCancellable *cancellable, 1159s # GAsyncReadyCallback callback, 1159s # gpointer user_data) 1159s # { 1159s # 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); 1159s # } 1159s # 1159s # /** 1159s # * org_project_useful_interface_proxy_new_finish: 1159s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new(). 1159s # * @error: Return location for error or %NULL 1159s # * 1159s # * Finishes an operation started with org_project_useful_interface_proxy_new(). 1159s # * 1159s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1159s # */ 1159s # OrgProjectUsefulInterface * 1159s # org_project_useful_interface_proxy_new_finish ( 1159s # GAsyncResult *res, 1159s # GError **error) 1159s # { 1159s # GObject *ret; 1159s # GObject *source_object; 1159s # source_object = g_async_result_get_source_object (res); 1159s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1159s # g_object_unref (source_object); 1159s # if (ret != NULL) 1159s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1159s # else 1159s # return NULL; 1159s # } 1159s # 1159s # /** 1159s # * org_project_useful_interface_proxy_new_sync: 1159s # * @connection: A #GDBusConnection. 1159s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1159s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1159s # * @object_path: An object path. 1159s # * @cancellable: (nullable): A #GCancellable or %NULL. 1159s # * @error: Return location for error or %NULL 1159s # * 1159s # * Synchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new_sync() for more details. 1159s # * 1159s # * The calling thread is blocked until a reply is received. 1159s # * 1159s # * See org_project_useful_interface_proxy_new() for the asynchronous version of this constructor. 1159s # * 1159s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1159s # */ 1159s # OrgProjectUsefulInterface * 1159s # org_project_useful_interface_proxy_new_sync ( 1159s # GDBusConnection *connection, 1159s # GDBusProxyFlags flags, 1159s # const gchar *name, 1159s # const gchar *object_path, 1159s # GCancellable *cancellable, 1159s # GError **error) 1159s # { 1159s # GInitable *ret; 1159s # 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); 1159s # if (ret != NULL) 1159s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1159s # else 1159s # return NULL; 1159s # } 1159s # 1159s # 1159s # /** 1159s # * org_project_useful_interface_proxy_new_for_bus: 1159s # * @bus_type: A #GBusType. 1159s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1159s # * @name: A bus name (well-known or unique). 1159s # * @object_path: An object path. 1159s # * @cancellable: (nullable): A #GCancellable or %NULL. 1159s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1159s # * @user_data: User data to pass to @callback. 1159s # * 1159s # * Like org_project_useful_interface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 1159s # * 1159s # * 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()). 1159s # * You can then call org_project_useful_interface_proxy_new_for_bus_finish() to get the result of the operation. 1159s # * 1159s # * See org_project_useful_interface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 1159s # */ 1159s # void 1159s # org_project_useful_interface_proxy_new_for_bus ( 1159s # GBusType bus_type, 1159s # GDBusProxyFlags flags, 1159s # const gchar *name, 1159s # const gchar *object_path, 1159s # GCancellable *cancellable, 1159s # GAsyncReadyCallback callback, 1159s # gpointer user_data) 1159s # { 1159s # 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); 1159s # } 1159s # 1159s # /** 1159s # * org_project_useful_interface_proxy_new_for_bus_finish: 1159s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new_for_bus(). 1159s # * @error: Return location for error or %NULL 1159s # * 1159s # * Finishes an operation started with org_project_useful_interface_proxy_new_for_bus(). 1159s # * 1159s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1159s # */ 1159s # OrgProjectUsefulInterface * 1159s # org_project_useful_interface_proxy_new_for_bus_finish ( 1159s # GAsyncResult *res, 1159s # GError **error) 1159s # { 1159s # GObject *ret; 1159s # GObject *source_object; 1159s # source_object = g_async_result_get_source_object (res); 1159s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1159s # g_object_unref (source_object); 1159s # if (ret != NULL) 1159s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1159s # else 1159s # return NULL; 1159s # } 1159s # 1159s # /** 1159s # * org_project_useful_interface_proxy_new_for_bus_sync: 1159s # * @bus_type: A #GBusType. 1159s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1159s # * @name: A bus name (well-known or unique). 1159s # * @object_path: An object path. 1159s # * @cancellable: (nullable): A #GCancellable or %NULL. 1159s # * @error: Return location for error or %NULL 1159s # * 1159s # * Like org_project_useful_interface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 1159s # * 1159s # * The calling thread is blocked until a reply is received. 1159s # * 1159s # * See org_project_useful_interface_proxy_new_for_bus() for the asynchronous version of this constructor. 1159s # * 1159s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1159s # */ 1159s # OrgProjectUsefulInterface * 1159s # org_project_useful_interface_proxy_new_for_bus_sync ( 1159s # GBusType bus_type, 1159s # GDBusProxyFlags flags, 1159s # const gchar *name, 1159s # const gchar *object_path, 1159s # GCancellable *cancellable, 1159s # GError **error) 1159s # { 1159s # GInitable *ret; 1159s # 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); 1159s # if (ret != NULL) 1159s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1159s # else 1159s # return NULL; 1159s # } 1159s # 1159s # 1159s # /* ------------------------------------------------------------------------ */ 1159s # 1159s # /** 1159s # * OrgProjectUsefulInterfaceSkeleton: 1159s # * 1159s # * The #OrgProjectUsefulInterfaceSkeleton structure contains only private data and should only be accessed using the provided API. 1159s # */ 1159s # 1159s # /** 1159s # * OrgProjectUsefulInterfaceSkeletonClass: 1159s # * @parent_class: The parent class. 1159s # * 1159s # * Class structure for #OrgProjectUsefulInterfaceSkeleton. 1159s # */ 1159s # 1159s # struct _OrgProjectUsefulInterfaceSkeletonPrivate 1159s # { 1159s # GValue *properties; 1159s # GList *changed_properties; 1159s # GSource *changed_properties_idle_source; 1159s # GMainContext *context; 1159s # GMutex lock; 1159s # }; 1159s # 1159s # static void 1159s # _org_project_useful_interface_skeleton_handle_method_call ( 1159s # GDBusConnection *connection G_GNUC_UNUSED, 1159s # const gchar *sender G_GNUC_UNUSED, 1159s # const gchar *object_path G_GNUC_UNUSED, 1159s # const gchar *interface_name, 1159s # const gchar *method_name, 1159s # GVariant *parameters, 1159s # GDBusMethodInvocation *invocation, 1159s # gpointer user_data) 1159s # { 1159s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1159s # _ExtendedGDBusMethodInfo *info; 1159s # GVariantIter iter; 1159s # GVariant *child; 1159s # GValue *paramv; 1159s # gsize num_params; 1159s # guint num_extra; 1159s # gsize n; 1159s # guint signal_id; 1159s # GValue return_value = G_VALUE_INIT; 1159s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 1159s # g_assert (info != NULL); 1159s # num_params = g_variant_n_children (parameters); 1159s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 1159s # n = 0; 1159s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1159s # g_value_set_object (¶mv[n++], skeleton); 1159s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 1159s # g_value_set_object (¶mv[n++], invocation); 1159s # if (info->pass_fdlist) 1159s # { 1159s # #ifdef G_OS_UNIX 1159s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 1159s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 1159s # #else 1159s # g_assert_not_reached (); 1159s # #endif 1159s # } 1159s # g_variant_iter_init (&iter, parameters); 1159s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1159s # { 1159s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 1159s # if (arg_info->use_gvariant) 1159s # { 1159s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1159s # g_value_set_variant (¶mv[n], child); 1159s # n++; 1159s # } 1159s # else 1159s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1159s # g_variant_unref (child); 1159s # } 1159s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1159s # g_value_init (&return_value, G_TYPE_BOOLEAN); 1159s # g_signal_emitv (paramv, signal_id, 0, &return_value); 1159s # if (!g_value_get_boolean (&return_value)) 1159s # 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); 1159s # g_value_unset (&return_value); 1159s # for (n = 0; n < num_params + num_extra; n++) 1159s # g_value_unset (¶mv[n]); 1159s # g_free (paramv); 1159s # } 1159s # 1159s # static GVariant * 1159s # _org_project_useful_interface_skeleton_handle_get_property ( 1159s # GDBusConnection *connection G_GNUC_UNUSED, 1159s # const gchar *sender G_GNUC_UNUSED, 1159s # const gchar *object_path G_GNUC_UNUSED, 1159s # const gchar *interface_name G_GNUC_UNUSED, 1159s # const gchar *property_name, 1159s # GError **error, 1159s # gpointer user_data) 1159s # { 1159s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1159s # GValue value = G_VALUE_INIT; 1159s # GParamSpec *pspec; 1159s # _ExtendedGDBusPropertyInfo *info; 1159s # GVariant *ret; 1159s # ret = NULL; 1159s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 1159s # g_assert (info != NULL); 1159s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1159s # if (pspec == NULL) 1159s # { 1159s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1159s # } 1159s # else 1159s # { 1159s # g_value_init (&value, pspec->value_type); 1159s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1159s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 1159s # g_value_unset (&value); 1159s # } 1159s # return ret; 1159s # } 1159s # 1159s # static gboolean 1159s # _org_project_useful_interface_skeleton_handle_set_property ( 1159s # GDBusConnection *connection G_GNUC_UNUSED, 1159s # const gchar *sender G_GNUC_UNUSED, 1159s # const gchar *object_path G_GNUC_UNUSED, 1159s # const gchar *interface_name G_GNUC_UNUSED, 1159s # const gchar *property_name, 1159s # GVariant *variant, 1159s # GError **error, 1159s # gpointer user_data) 1159s # { 1159s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1159s # GValue value = G_VALUE_INIT; 1159s # GParamSpec *pspec; 1159s # _ExtendedGDBusPropertyInfo *info; 1159s # gboolean ret; 1159s # ret = FALSE; 1159s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 1159s # g_assert (info != NULL); 1159s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1159s # if (pspec == NULL) 1159s # { 1159s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1159s # } 1159s # else 1159s # { 1159s # if (info->use_gvariant) 1159s # g_value_set_variant (&value, variant); 1159s # else 1159s # g_dbus_gvariant_to_gvalue (variant, &value); 1159s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1159s # g_value_unset (&value); 1159s # ret = TRUE; 1159s # } 1159s # return ret; 1159s # } 1159s # 1159s # static const GDBusInterfaceVTable _org_project_useful_interface_skeleton_vtable = 1159s # { 1159s # _org_project_useful_interface_skeleton_handle_method_call, 1159s # _org_project_useful_interface_skeleton_handle_get_property, 1159s # _org_project_useful_interface_skeleton_handle_set_property, 1159s # {NULL} 1159s # }; 1159s # 1159s # static GDBusInterfaceInfo * 1159s # org_project_useful_interface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1159s # { 1159s # return org_project_useful_interface_interface_info (); 1159s # } 1159s # 1159s # static GDBusInterfaceVTable * 1159s # org_project_useful_interface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1159s # { 1159s # return (GDBusInterfaceVTable *) &_org_project_useful_interface_skeleton_vtable; 1159s # } 1159s # 1159s # static GVariant * 1159s # org_project_useful_interface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 1159s # { 1159s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (_skeleton); 1159s # 1159s # GVariantBuilder builder; 1159s # guint n; 1159s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 1159s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 1159s # #else 1159s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 1159s # #endif 1159s # if (_org_project_useful_interface_interface_info.parent_struct.properties == NULL) 1159s # goto out; 1159s # for (n = 0; _org_project_useful_interface_interface_info.parent_struct.properties[n] != NULL; n++) 1159s # { 1159s # GDBusPropertyInfo *info = _org_project_useful_interface_interface_info.parent_struct.properties[n]; 1159s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 1159s # { 1159s # GVariant *value; 1159s # 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); 1159s # if (value != NULL) 1159s # { 1159s # g_variant_take_ref (value); 1159s # g_variant_builder_add (&builder, "{sv}", info->name, value); 1159s # g_variant_unref (value); 1159s # } 1159s # } 1159s # } 1159s # out: 1159s # return g_variant_builder_end (&builder); 1159s # } 1159s # 1159s # static void 1159s # org_project_useful_interface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 1159s # { 1159s # } 1159s # 1159s # static void org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface); 1159s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1159s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1159s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceSkeleton) 1159s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 1159s # 1159s # #else 1159s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1159s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 1159s # 1159s # #endif 1159s # static void 1159s # org_project_useful_interface_skeleton_finalize (GObject *object) 1159s # { 1159s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (object); 1159s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 1159s # if (skeleton->priv->changed_properties_idle_source != NULL) 1159s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 1159s # g_main_context_unref (skeleton->priv->context); 1159s # g_mutex_clear (&skeleton->priv->lock); 1159s # G_OBJECT_CLASS (org_project_useful_interface_skeleton_parent_class)->finalize (object); 1159s # } 1159s # 1159s # static void 1159s # org_project_useful_interface_skeleton_init (OrgProjectUsefulInterfaceSkeleton *skeleton) 1159s # { 1159s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1159s # skeleton->priv = org_project_useful_interface_skeleton_get_instance_private (skeleton); 1159s # #else 1159s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, OrgProjectUsefulInterfaceSkeletonPrivate); 1159s # #endif 1159s # 1159s # g_mutex_init (&skeleton->priv->lock); 1159s # skeleton->priv->context = g_main_context_ref_thread_default (); 1159s # } 1159s # 1159s # static void 1159s # org_project_useful_interface_skeleton_class_init (OrgProjectUsefulInterfaceSkeletonClass *klass) 1159s # { 1159s # GObjectClass *gobject_class; 1159s # GDBusInterfaceSkeletonClass *skeleton_class; 1159s # 1159s # gobject_class = G_OBJECT_CLASS (klass); 1159s # gobject_class->finalize = org_project_useful_interface_skeleton_finalize; 1159s # 1159s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 1159s # skeleton_class->get_info = org_project_useful_interface_skeleton_dbus_interface_get_info; 1159s # skeleton_class->get_properties = org_project_useful_interface_skeleton_dbus_interface_get_properties; 1159s # skeleton_class->flush = org_project_useful_interface_skeleton_dbus_interface_flush; 1159s # skeleton_class->get_vtable = org_project_useful_interface_skeleton_dbus_interface_get_vtable; 1159s # 1159s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1159s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceSkeletonPrivate)); 1159s # #endif 1159s # } 1159s # 1159s # static void 1159s # org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 1159s # { 1159s # } 1159s # 1159s # /** 1159s # * org_project_useful_interface_skeleton_new: 1159s # * 1159s # * Creates a skeleton object for the D-Bus interface org.project.UsefulInterface. 1159s # * 1159s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceSkeleton): The skeleton object. 1159s # */ 1159s # OrgProjectUsefulInterface * 1159s # org_project_useful_interface_skeleton_new (void) 1159s # { 1159s # return ORG_PROJECT_USEFUL_INTERFACE (g_object_new (TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, NULL)); 1159s # } 1159s # Error: 1159s # 1159s # /tmp/tmpatbfkbk2/tmp6xa684n8.xml: 1159s # 1159s # 1159s # 1159s # 1159s # 1159s # 1159s # 1159s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpatbfkbk2/tmp6xa684n8.xml', '--output', '-', '--body'] 1159s # Return code: 0 1159s # Output: 1159s # /* 1159s # * This file is generated by gdbus-codegen, do not modify it. 1159s # * 1159s # * The license of this code is the same as for the D-Bus interface description 1159s # * it was derived from. Note that it links to GLib, so must comply with the 1159s # * LGPL linking clauses. 1159s # */ 1159s # 1159s # #ifdef HAVE_CONFIG_H 1159s # # include "config.h" 1159s # #endif 1159s # 1159s # #include 1159s # #ifdef G_OS_UNIX 1159s # # include 1159s # #endif 1159s # 1159s # #ifdef G_ENABLE_DEBUG 1159s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 1159s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 1159s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 1159s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 1159s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 1159s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 1159s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 1159s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 1159s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 1159s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 1159s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 1159s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 1159s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 1159s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 1159s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 1159s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 1159s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 1159s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 1159s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 1159s # #else /* !G_ENABLE_DEBUG */ 1159s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 1159s # * Do not access GValues directly in your code. Instead, use the 1159s # * g_value_get_*() functions 1159s # */ 1159s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 1159s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 1159s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 1159s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 1159s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 1159s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 1159s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 1159s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 1159s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 1159s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 1159s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 1159s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 1159s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 1159s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 1159s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 1159s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 1159s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 1159s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 1159s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 1159s # #endif /* !G_ENABLE_DEBUG */ 1159s # 1159s # typedef struct 1159s # { 1159s # GDBusArgInfo parent_struct; 1159s # gboolean use_gvariant; 1159s # } _ExtendedGDBusArgInfo; 1159s # 1159s # typedef struct 1159s # { 1159s # GDBusMethodInfo parent_struct; 1159s # const gchar *signal_name; 1159s # gboolean pass_fdlist; 1159s # } _ExtendedGDBusMethodInfo; 1159s # 1159s # typedef struct 1159s # { 1159s # GDBusSignalInfo parent_struct; 1159s # const gchar *signal_name; 1159s # } _ExtendedGDBusSignalInfo; 1159s # 1159s # typedef struct 1159s # { 1159s # GDBusPropertyInfo parent_struct; 1159s # const gchar *hyphen_name; 1159s # guint use_gvariant : 1; 1159s # guint emits_changed_signal : 1; 1159s # } _ExtendedGDBusPropertyInfo; 1159s # 1159s # typedef struct 1159s # { 1159s # GDBusInterfaceInfo parent_struct; 1159s # const gchar *hyphen_name; 1159s # } _ExtendedGDBusInterfaceInfo; 1159s # 1159s # typedef struct 1159s # { 1159s # const _ExtendedGDBusPropertyInfo *info; 1159s # guint prop_id; 1159s # GValue orig_value; /* the value before the change */ 1159s # } ChangedProperty; 1159s # 1159s # static void 1159s # _changed_property_free (ChangedProperty *data) 1159s # { 1159s # g_value_unset (&data->orig_value); 1159s # g_free (data); 1159s # } 1159s # 1159s # static gboolean 1159s # _g_strv_equal0 (gchar **a, gchar **b) 1159s # { 1159s # gboolean ret = FALSE; 1159s # guint n; 1159s # if (a == NULL && b == NULL) 1159s # { 1159s # ret = TRUE; 1159s # goto out; 1159s # } 1159s # if (a == NULL || b == NULL) 1159s # goto out; 1159s # if (g_strv_length (a) != g_strv_length (b)) 1159s # goto out; 1159s # for (n = 0; a[n] != NULL; n++) 1159s # if (g_strcmp0 (a[n], b[n]) != 0) 1159s # goto out; 1159s # ret = TRUE; 1159s # out: 1159s # return ret; 1159s # } 1159s # 1159s # static gboolean 1159s # _g_variant_equal0 (GVariant *a, GVariant *b) 1159s # { 1159s # gboolean ret = FALSE; 1159s # if (a == NULL && b == NULL) 1159s # { 1159s # ret = TRUE; 1159s # goto out; 1159s # } 1159s # if (a == NULL || b == NULL) 1159s # goto out; 1159s # ret = g_variant_equal (a, b); 1159s # out: 1159s # return ret; 1159s # } 1159s # 1159s # G_GNUC_UNUSED static gboolean 1159s # _g_value_equal (const GValue *a, const GValue *b) 1159s # { 1159s # gboolean ret = FALSE; 1159s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 1159s # switch (G_VALUE_TYPE (a)) 1159s # { 1159s # case G_TYPE_BOOLEAN: 1159s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 1159s # break; 1159s # case G_TYPE_UCHAR: 1159s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 1159s # break; 1159s # case G_TYPE_INT: 1159s # ret = (g_value_get_int (a) == g_value_get_int (b)); 1159s # break; 1159s # case G_TYPE_UINT: 1159s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 1159s # break; 1159s # case G_TYPE_INT64: 1159s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 1159s # break; 1159s # case G_TYPE_UINT64: 1159s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 1159s # break; 1159s # case G_TYPE_DOUBLE: 1159s # { 1159s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 1159s # gdouble da = g_value_get_double (a); 1159s # gdouble db = g_value_get_double (b); 1159s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 1159s # } 1159s # break; 1159s # case G_TYPE_STRING: 1159s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 1159s # break; 1159s # case G_TYPE_VARIANT: 1159s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 1159s # break; 1159s # default: 1159s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 1159s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 1159s # else 1159s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 1159s # break; 1159s # } 1159s # return ret; 1159s # } 1159s # 1159s # static void 1159s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT ( 1159s # GClosure *closure, 1159s # GValue *return_value, 1159s # unsigned int n_param_values, 1159s # const GValue *param_values, 1159s # void *invocation_hint G_GNUC_UNUSED, 1159s # void *marshal_data) 1159s # { 1159s # typedef gboolean (*_GDbusCodegenMarshalBoolean_ObjectFunc) 1159s # (void *data1, 1159s # GDBusMethodInvocation *arg_method_invocation, 1159s # void *data2); 1159s # _GDbusCodegenMarshalBoolean_ObjectFunc callback; 1159s # GCClosure *cc = (GCClosure*) closure; 1159s # void *data1, *data2; 1159s # gboolean v_return; 1159s # 1159s # g_return_if_fail (return_value != NULL); 1159s # g_return_if_fail (n_param_values == 2); 1159s # 1159s # if (G_CCLOSURE_SWAP_DATA (closure)) 1159s # { 1159s # data1 = closure->data; 1159s # data2 = g_value_peek_pointer (param_values + 0); 1159s # } 1159s # else 1159s # { 1159s # data1 = g_value_peek_pointer (param_values + 0); 1159s # data2 = closure->data; 1159s # } 1159s # 1159s # callback = (_GDbusCodegenMarshalBoolean_ObjectFunc) 1159s # (marshal_data ? marshal_data : cc->callback); 1159s # 1159s # v_return = 1159s # callback (data1, 1159s # g_marshal_value_peek_object (param_values + 1), 1159s # data2); 1159s # 1159s # g_value_set_boolean (return_value, v_return); 1159s # } 1159s # 1159s # /* ------------------------------------------------------------------------ 1159s # * Code for interface org.project.UsefulInterface 1159s # * ------------------------------------------------------------------------ 1159s # */ 1159s # 1159s # /** 1159s # * SECTION:OrgProjectUsefulInterface 1159s # * @title: OrgProjectUsefulInterface 1159s # * @short_description: Generated C code for the org.project.UsefulInterface D-Bus interface 1159s # * 1159s # * This section contains code for working with the org.project.UsefulInterface D-Bus interface in C. 1159s # */ 1159s # 1159s # /* ---- Introspection data for org.project.UsefulInterface ---- */ 1159s # 1159s # static const _ExtendedGDBusArgInfo _org_project_useful_interface_method_info_single_arg_method_g_OUT_ARG_arg_g = 1159s # { 1159s # { 1159s # -1, 1159s # (gchar *) "arg_g", 1159s # (gchar *) "g", 1159s # NULL 1159s # }, 1159s # FALSE 1159s # }; 1159s # 1159s # static const GDBusArgInfo * const _org_project_useful_interface_method_info_single_arg_method_g_OUT_ARG_pointers[] = 1159s # { 1159s # &_org_project_useful_interface_method_info_single_arg_method_g_OUT_ARG_arg_g.parent_struct, 1159s # NULL 1159s # }; 1159s # 1159s # static const _ExtendedGDBusMethodInfo _org_project_useful_interface_method_info_single_arg_method_g = 1159s # { 1159s # { 1159s # -1, 1159s # (gchar *) "SingleArgMethodG", 1159s # NULL, 1159s # (GDBusArgInfo **) &_org_project_useful_interface_method_info_single_arg_method_g_OUT_ARG_pointers, 1159s # NULL 1159s # }, 1159s # "handle-single-arg-method-g", 1159s # FALSE 1159s # }; 1159s # 1159s # static const GDBusMethodInfo * const _org_project_useful_interface_method_info_pointers[] = 1159s # { 1159s # &_org_project_useful_interface_method_info_single_arg_method_g.parent_struct, 1159s # NULL 1159s # }; 1159s # 1159s # static const _ExtendedGDBusInterfaceInfo _org_project_useful_interface_interface_info = 1159s # { 1159s # { 1159s # -1, 1159s # (gchar *) "org.project.UsefulInterface", 1159s # (GDBusMethodInfo **) &_org_project_useful_interface_method_info_pointers, 1159s # NULL, 1159s # NULL, 1159s # NULL 1159s # }, 1159s # "org-project-useful-interface", 1159s # }; 1159s # 1159s # 1159s # /** 1159s # * org_project_useful_interface_interface_info: 1159s # * 1159s # * Gets a machine-readable description of the org.project.UsefulInterface D-Bus interface. 1159s # * 1159s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 1159s # */ 1159s # GDBusInterfaceInfo * 1159s # org_project_useful_interface_interface_info (void) 1159s # { 1159s # return (GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct; 1159s # } 1159s # 1159s # /** 1159s # * org_project_useful_interface_override_properties: 1159s # * @klass: The class structure for a #GObject derived class. 1159s # * @property_id_begin: The property id to assign to the first overridden property. 1159s # * 1159s # * Overrides all #GObject properties in the #OrgProjectUsefulInterface interface for a concrete class. 1159s # * The properties are overridden in the order they are defined. 1159s # * 1159s # * Returns: The last property id. 1159s # */ 1159s # guint 1159s # org_project_useful_interface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 1159s # { 1159s # return property_id_begin - 1; 1159s # } 1159s # 1159s # 1159s # inline static void 1159s # org_project_useful_interface_method_marshal_single_arg_method_g ( 1159s # GClosure *closure, 1159s # GValue *return_value, 1159s # unsigned int n_param_values, 1159s # const GValue *param_values, 1159s # void *invocation_hint, 1159s # void *marshal_data) 1159s # { 1159s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT (closure, 1159s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1159s # } 1159s # 1159s # 1159s # /** 1159s # * OrgProjectUsefulInterface: 1159s # * 1159s # * Abstract interface type for the D-Bus interface org.project.UsefulInterface. 1159s # */ 1159s # 1159s # /** 1159s # * OrgProjectUsefulInterfaceIface: 1159s # * @parent_iface: The parent interface. 1159s # * @handle_single_arg_method_g: Handler for the #OrgProjectUsefulInterface::handle-single-arg-method-g signal. 1159s # * 1159s # * Virtual table for the D-Bus interface org.project.UsefulInterface. 1159s # */ 1159s # 1159s # typedef OrgProjectUsefulInterfaceIface OrgProjectUsefulInterfaceInterface; 1159s # G_DEFINE_INTERFACE (OrgProjectUsefulInterface, org_project_useful_interface, G_TYPE_OBJECT) 1159s # 1159s # static void 1159s # org_project_useful_interface_default_init (OrgProjectUsefulInterfaceIface *iface) 1159s # { 1159s # /* GObject signals for incoming D-Bus method calls: */ 1159s # /** 1159s # * OrgProjectUsefulInterface::handle-single-arg-method-g: 1159s # * @object: A #OrgProjectUsefulInterface. 1159s # * @invocation: A #GDBusMethodInvocation. 1159s # * 1159s # * Signal emitted when a remote caller is invoking the SingleArgMethodG() D-Bus method. 1159s # * 1159s # * 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. 1159s # * 1159s # * 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. 1159s # */ 1159s # g_signal_new ("handle-single-arg-method-g", 1159s # G_TYPE_FROM_INTERFACE (iface), 1159s # G_SIGNAL_RUN_LAST, 1159s # G_STRUCT_OFFSET (OrgProjectUsefulInterfaceIface, handle_single_arg_method_g), 1159s # g_signal_accumulator_true_handled, 1159s # NULL, 1159s # org_project_useful_interface_method_marshal_single_arg_method_g, 1159s # G_TYPE_BOOLEAN, 1159s # 1, 1159s # G_TYPE_DBUS_METHOD_INVOCATION); 1159s # 1159s # } 1159s # 1159s # /** 1159s # * org_project_useful_interface_call_single_arg_method_g: 1159s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1159s # * @cancellable: (nullable): A #GCancellable or %NULL. 1159s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL. 1159s # * @user_data: User data to pass to @callback. 1159s # * 1159s # * Asynchronously invokes the SingleArgMethodG() D-Bus method on @proxy. 1159s # * 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()). 1159s # * You can then call org_project_useful_interface_call_single_arg_method_g_finish() to get the result of the operation. 1159s # * 1159s # * See org_project_useful_interface_call_single_arg_method_g_sync() for the synchronous, blocking version of this method. 1159s # */ 1159s # void 1159s # org_project_useful_interface_call_single_arg_method_g ( 1159s # OrgProjectUsefulInterface *proxy, 1159s # GCancellable *cancellable, 1159s # GAsyncReadyCallback callback, 1159s # gpointer user_data) 1159s # { 1159s # g_dbus_proxy_call (G_DBUS_PROXY (proxy), 1159s # "SingleArgMethodG", 1159s # g_variant_new ("()"), 1159s # G_DBUS_CALL_FLAGS_NONE, 1159s # -1, 1159s # cancellable, 1159s # callback, 1159s # user_data); 1159s # } 1159s # 1159s # /** 1159s # * org_project_useful_interface_call_single_arg_method_g_finish: 1159s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1159s # * @out_arg_g: (out) (optional): Return location for return parameter or %NULL to ignore. 1159s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_call_single_arg_method_g(). 1159s # * @error: Return location for error or %NULL. 1159s # * 1159s # * Finishes an operation started with org_project_useful_interface_call_single_arg_method_g(). 1159s # * 1159s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1159s # */ 1159s # gboolean 1159s # org_project_useful_interface_call_single_arg_method_g_finish ( 1159s # OrgProjectUsefulInterface *proxy, 1159s # gchar **out_arg_g, 1159s # GAsyncResult *res, 1159s # GError **error) 1159s # { 1159s # GVariant *_ret; 1159s # _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error); 1159s # if (_ret == NULL) 1159s # goto _out; 1159s # g_variant_get (_ret, 1159s # "(g)", 1159s # out_arg_g); 1159s # g_variant_unref (_ret); 1159s # _out: 1159s # return _ret != NULL; 1159s # } 1159s # 1159s # /** 1159s # * org_project_useful_interface_call_single_arg_method_g_sync: 1159s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1159s # * @out_arg_g: (out) (optional): Return location for return parameter or %NULL to ignore. 1159s # * @cancellable: (nullable): A #GCancellable or %NULL. 1159s # * @error: Return location for error or %NULL. 1159s # * 1159s # * Synchronously invokes the SingleArgMethodG() D-Bus method on @proxy. The calling thread is blocked until a reply is received. 1159s # * 1159s # * See org_project_useful_interface_call_single_arg_method_g() for the asynchronous version of this method. 1159s # * 1159s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1159s # */ 1159s # gboolean 1159s # org_project_useful_interface_call_single_arg_method_g_sync ( 1159s # OrgProjectUsefulInterface *proxy, 1159s # gchar **out_arg_g, 1159s # GCancellable *cancellable, 1159s # GError **error) 1159s # { 1159s # GVariant *_ret; 1159s # _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy), 1159s # "SingleArgMethodG", 1159s # g_variant_new ("()"), 1159s # G_DBUS_CALL_FLAGS_NONE, 1159s # -1, 1159s # cancellable, 1159s # error); 1159s # if (_ret == NULL) 1159s # goto _out; 1159s # g_variant_get (_ret, 1159s # "(g)", 1159s # out_arg_g); 1159s # g_variant_unref (_ret); 1159s # _out: 1159s # return _ret != NULL; 1159s # } 1159s # 1159s # /** 1159s # * org_project_useful_interface_complete_single_arg_method_g: 1159s # * @object: A #OrgProjectUsefulInterface. 1159s # * @invocation: (transfer full): A #GDBusMethodInvocation. 1159s # * @arg_g: Parameter to return. 1159s # * 1159s # * 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. 1159s # * 1159s # * This method will free @invocation, you cannot use it afterwards. 1159s # */ 1159s # void 1159s # org_project_useful_interface_complete_single_arg_method_g ( 1159s # OrgProjectUsefulInterface *object G_GNUC_UNUSED, 1159s # GDBusMethodInvocation *invocation, 1159s # const gchar *arg_g) 1159s # { 1159s # g_dbus_method_invocation_return_value (invocation, 1159s # g_variant_new ("(g)", 1159s # arg_g)); 1159s # } 1159s # 1159s # /* ------------------------------------------------------------------------ */ 1159s # 1159s # /** 1159s # * OrgProjectUsefulInterfaceProxy: 1159s # * 1159s # * The #OrgProjectUsefulInterfaceProxy structure contains only private data and should only be accessed using the provided API. 1159s # */ 1159s # 1159s # /** 1159s # * OrgProjectUsefulInterfaceProxyClass: 1159s # * @parent_class: The parent class. 1159s # * 1159s # * Class structure for #OrgProjectUsefulInterfaceProxy. 1159s # */ 1159s # 1159s # struct _OrgProjectUsefulInterfaceProxyPrivate 1159s # { 1159s # GData *qdata; 1159s # }; 1159s # 1159s # static void org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface); 1159s # 1159s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1159s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 1159s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceProxy) 1159s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 1159s # 1159s # #else 1159s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 1159s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 1159s # 1159s # #endif 1159s # static void 1159s # org_project_useful_interface_proxy_finalize (GObject *object) 1159s # { 1159s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (object); 1159s # g_datalist_clear (&proxy->priv->qdata); 1159s # G_OBJECT_CLASS (org_project_useful_interface_proxy_parent_class)->finalize (object); 1159s # } 1159s # 1159s # static void 1159s # org_project_useful_interface_proxy_get_property (GObject *object G_GNUC_UNUSED, 1159s # guint prop_id G_GNUC_UNUSED, 1159s # GValue *value G_GNUC_UNUSED, 1159s # GParamSpec *pspec G_GNUC_UNUSED) 1159s # { 1159s # } 1159s # 1159s # static void 1159s # org_project_useful_interface_proxy_set_property (GObject *object G_GNUC_UNUSED, 1159s # guint prop_id G_GNUC_UNUSED, 1159s # const GValue *value G_GNUC_UNUSED, 1159s # GParamSpec *pspec G_GNUC_UNUSED) 1159s # { 1159s # } 1159s # 1159s # static void 1159s # org_project_useful_interface_proxy_g_signal (GDBusProxy *proxy, 1159s # const gchar *sender_name G_GNUC_UNUSED, 1159s # const gchar *signal_name, 1159s # GVariant *parameters) 1159s # { 1159s # _ExtendedGDBusSignalInfo *info; 1159s # GVariantIter iter; 1159s # GVariant *child; 1159s # GValue *paramv; 1159s # gsize num_params; 1159s # gsize n; 1159s # guint signal_id; 1159s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, signal_name); 1159s # if (info == NULL) 1159s # return; 1159s # num_params = g_variant_n_children (parameters); 1159s # paramv = g_new0 (GValue, num_params + 1); 1159s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1159s # g_value_set_object (¶mv[0], proxy); 1159s # g_variant_iter_init (&iter, parameters); 1159s # n = 1; 1159s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1159s # { 1159s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 1159s # if (arg_info->use_gvariant) 1159s # { 1159s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1159s # g_value_set_variant (¶mv[n], child); 1159s # n++; 1159s # } 1159s # else 1159s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1159s # g_variant_unref (child); 1159s # } 1159s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1159s # g_signal_emitv (paramv, signal_id, 0, NULL); 1159s # for (n = 0; n < num_params + 1; n++) 1159s # g_value_unset (¶mv[n]); 1159s # g_free (paramv); 1159s # } 1159s # 1159s # static void 1159s # org_project_useful_interface_proxy_g_properties_changed (GDBusProxy *_proxy, 1159s # GVariant *changed_properties, 1159s # const gchar *const *invalidated_properties) 1159s # { 1159s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (_proxy); 1159s # guint n; 1159s # const gchar *key; 1159s # GVariantIter *iter; 1159s # _ExtendedGDBusPropertyInfo *info; 1159s # g_variant_get (changed_properties, "a{sv}", &iter); 1159s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 1159s # { 1159s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, key); 1159s # g_datalist_remove_data (&proxy->priv->qdata, key); 1159s # if (info != NULL) 1159s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1159s # } 1159s # g_variant_iter_free (iter); 1159s # for (n = 0; invalidated_properties[n] != NULL; n++) 1159s # { 1159s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, invalidated_properties[n]); 1159s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 1159s # if (info != NULL) 1159s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1159s # } 1159s # } 1159s # 1159s # static void 1159s # org_project_useful_interface_proxy_init (OrgProjectUsefulInterfaceProxy *proxy) 1159s # { 1159s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1159s # proxy->priv = org_project_useful_interface_proxy_get_instance_private (proxy); 1159s # #else 1159s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY, OrgProjectUsefulInterfaceProxyPrivate); 1159s # #endif 1159s # 1159s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_useful_interface_interface_info ()); 1159s # } 1159s # 1159s # static void 1159s # org_project_useful_interface_proxy_class_init (OrgProjectUsefulInterfaceProxyClass *klass) 1159s # { 1159s # GObjectClass *gobject_class; 1159s # GDBusProxyClass *proxy_class; 1159s # 1159s # gobject_class = G_OBJECT_CLASS (klass); 1159s # gobject_class->finalize = org_project_useful_interface_proxy_finalize; 1159s # gobject_class->get_property = org_project_useful_interface_proxy_get_property; 1159s # gobject_class->set_property = org_project_useful_interface_proxy_set_property; 1159s # 1159s # proxy_class = G_DBUS_PROXY_CLASS (klass); 1159s # proxy_class->g_signal = org_project_useful_interface_proxy_g_signal; 1159s # proxy_class->g_properties_changed = org_project_useful_interface_proxy_g_properties_changed; 1159s # 1159s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1159s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceProxyPrivate)); 1159s # #endif 1159s # } 1159s # 1159s # static void 1159s # org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 1159s # { 1159s # } 1159s # 1159s # /** 1159s # * org_project_useful_interface_proxy_new: 1159s # * @connection: A #GDBusConnection. 1159s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1159s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1159s # * @object_path: An object path. 1159s # * @cancellable: (nullable): A #GCancellable or %NULL. 1159s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1159s # * @user_data: User data to pass to @callback. 1159s # * 1159s # * Asynchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new() for more details. 1159s # * 1159s # * 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()). 1159s # * You can then call org_project_useful_interface_proxy_new_finish() to get the result of the operation. 1159s # * 1159s # * See org_project_useful_interface_proxy_new_sync() for the synchronous, blocking version of this constructor. 1159s # */ 1159s # void 1159s # org_project_useful_interface_proxy_new ( 1159s # GDBusConnection *connection, 1159s # GDBusProxyFlags flags, 1159s # const gchar *name, 1159s # const gchar *object_path, 1159s # GCancellable *cancellable, 1159s # GAsyncReadyCallback callback, 1159s # gpointer user_data) 1159s # { 1159s # 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); 1159s # } 1159s # 1159s # /** 1159s # * org_project_useful_interface_proxy_new_finish: 1159s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new(). 1159s # * @error: Return location for error or %NULL 1159s # * 1159s # * Finishes an operation started with org_project_useful_interface_proxy_new(). 1159s # * 1159s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1159s # */ 1159s # OrgProjectUsefulInterface * 1159s # org_project_useful_interface_proxy_new_finish ( 1159s # GAsyncResult *res, 1159s # GError **error) 1159s # { 1159s # GObject *ret; 1159s # GObject *source_object; 1159s # source_object = g_async_result_get_source_object (res); 1159s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1159s # g_object_unref (source_object); 1159s # if (ret != NULL) 1159s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1159s # else 1159s # return NULL; 1159s # } 1159s # 1159s # /** 1159s # * org_project_useful_interface_proxy_new_sync: 1159s # * @connection: A #GDBusConnection. 1159s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1159s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1159s # * @object_path: An object path. 1159s # * @cancellable: (nullable): A #GCancellable or %NULL. 1159s # * @error: Return location for error or %NULL 1159s # * 1159s # * Synchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new_sync() for more details. 1159s # * 1159s # * The calling thread is blocked until a reply is received. 1159s # * 1159s # * See org_project_useful_interface_proxy_new() for the asynchronous version of this constructor. 1159s # * 1159s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1159s # */ 1159s # OrgProjectUsefulInterface * 1159s # org_project_useful_interface_proxy_new_sync ( 1159s # GDBusConnection *connection, 1159s # GDBusProxyFlags flags, 1159s # const gchar *name, 1159s # const gchar *object_path, 1159s # GCancellable *cancellable, 1159s # GError **error) 1159s # { 1159s # GInitable *ret; 1159s # 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); 1159s # if (ret != NULL) 1159s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1159s # else 1159s # return NULL; 1159s # } 1159s # 1159s # 1159s # /** 1159s # * org_project_useful_interface_proxy_new_for_bus: 1159s # * @bus_type: A #GBusType. 1159s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1159s # * @name: A bus name (well-known or unique). 1159s # * @object_path: An object path. 1159s # * @cancellable: (nullable): A #GCancellable or %NULL. 1159s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1159s # * @user_data: User data to pass to @callback. 1159s # * 1159s # * Like org_project_useful_interface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 1159s # * 1159s # * 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()). 1159s # * You can then call org_project_useful_interface_proxy_new_for_bus_finish() to get the result of the operation. 1159s # * 1159s # * See org_project_useful_interface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 1159s # */ 1159s # void 1159s # org_project_useful_interface_proxy_new_for_bus ( 1159s # GBusType bus_type, 1159s # GDBusProxyFlags flags, 1159s # const gchar *name, 1159s # const gchar *object_path, 1159s # GCancellable *cancellable, 1159s # GAsyncReadyCallback callback, 1159s # gpointer user_data) 1159s # { 1159s # 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); 1159s # } 1159s # 1159s # /** 1159s # * org_project_useful_interface_proxy_new_for_bus_finish: 1159s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new_for_bus(). 1159s # * @error: Return location for error or %NULL 1159s # * 1159s # * Finishes an operation started with org_project_useful_interface_proxy_new_for_bus(). 1159s # * 1159s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1159s # */ 1159s # OrgProjectUsefulInterface * 1159s # org_project_useful_interface_proxy_new_for_bus_finish ( 1159s # GAsyncResult *res, 1159s # GError **error) 1159s # { 1159s # GObject *ret; 1159s # GObject *source_object; 1159s # source_object = g_async_result_get_source_object (res); 1159s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1159s # g_object_unref (source_object); 1159s # if (ret != NULL) 1159s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1159s # else 1159s # return NULL; 1159s # } 1159s # 1159s # /** 1159s # * org_project_useful_interface_proxy_new_for_bus_sync: 1159s # * @bus_type: A #GBusType. 1159s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1159s # * @name: A bus name (well-known or unique). 1159s # * @object_path: An object path. 1159s # * @cancellable: (nullable): A #GCancellable or %NULL. 1159s # * @error: Return location for error or %NULL 1159s # * 1159s # * Like org_project_useful_interface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 1159s # * 1159s # * The calling thread is blocked until a reply is received. 1159s # * 1159s # * See org_project_useful_interface_proxy_new_for_bus() for the asynchronous version of this constructor. 1159s # * 1159s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1159s # */ 1159s # OrgProjectUsefulInterface * 1159s # org_project_useful_interface_proxy_new_for_bus_sync ( 1159s # GBusType bus_type, 1159s # GDBusProxyFlags flags, 1159s # const gchar *name, 1159s # const gchar *object_path, 1159s # GCancellable *cancellable, 1159s # GError **error) 1159s # { 1159s # GInitable *ret; 1159s # 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); 1159s # if (ret != NULL) 1159s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1159s # else 1159s # return NULL; 1159s # } 1159s # 1159s # 1159s # /* ------------------------------------------------------------------------ */ 1159s # 1159s # /** 1159s # * OrgProjectUsefulInterfaceSkeleton: 1159s # * 1159s # * The #OrgProjectUsefulInterfaceSkeleton structure contains only private data and should only be accessed using the provided API. 1159s # */ 1159s # 1159s # /** 1159s # * OrgProjectUsefulInterfaceSkeletonClass: 1159s # * @parent_class: The parent class. 1159s # * 1159s # * Class structure for #OrgProjectUsefulInterfaceSkeleton. 1159s # */ 1159s # 1159s # struct _OrgProjectUsefulInterfaceSkeletonPrivate 1159s # { 1159s # GValue *properties; 1159s # GList *changed_properties; 1159s # GSource *changed_properties_idle_source; 1159s # GMainContext *context; 1159s # GMutex lock; 1159s # }; 1159s # 1159s # static void 1159s # _org_project_useful_interface_skeleton_handle_method_call ( 1159s # GDBusConnection *connection G_GNUC_UNUSED, 1159s # const gchar *sender G_GNUC_UNUSED, 1159s # const gchar *object_path G_GNUC_UNUSED, 1159s # const gchar *interface_name, 1159s # const gchar *method_name, 1159s # GVariant *parameters, 1159s # GDBusMethodInvocation *invocation, 1159s # gpointer user_data) 1159s # { 1159s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1159s # _ExtendedGDBusMethodInfo *info; 1159s # GVariantIter iter; 1159s # GVariant *child; 1159s # GValue *paramv; 1159s # gsize num_params; 1159s # guint num_extra; 1159s # gsize n; 1159s # guint signal_id; 1159s # GValue return_value = G_VALUE_INIT; 1159s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 1159s # g_assert (info != NULL); 1159s # num_params = g_variant_n_children (parameters); 1159s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 1159s # n = 0; 1159s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1159s # g_value_set_object (¶mv[n++], skeleton); 1159s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 1159s # g_value_set_object (¶mv[n++], invocation); 1159s # if (info->pass_fdlist) 1159s # { 1159s # #ifdef G_OS_UNIX 1159s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 1159s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 1159s # #else 1159s # g_assert_not_reached (); 1159s # #endif 1159s # } 1159s # g_variant_iter_init (&iter, parameters); 1159s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1159s # { 1159s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 1159s # if (arg_info->use_gvariant) 1159s # { 1159s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1159s # g_value_set_variant (¶mv[n], child); 1159s # n++; 1159s # } 1159s # else 1159s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1159s # g_variant_unref (child); 1159s # } 1159s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1159s # g_value_init (&return_value, G_TYPE_BOOLEAN); 1159s # g_signal_emitv (paramv, signal_id, 0, &return_value); 1159s # if (!g_value_get_boolean (&return_value)) 1159s # 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); 1159s # g_value_unset (&return_value); 1159s # for (n = 0; n < num_params + num_extra; n++) 1159s # g_value_unset (¶mv[n]); 1159s # g_free (paramv); 1159s # } 1159s # 1159s # static GVariant * 1159s # _org_project_useful_interface_skeleton_handle_get_property ( 1159s # GDBusConnection *connection G_GNUC_UNUSED, 1159s # const gchar *sender G_GNUC_UNUSED, 1159s # const gchar *object_path G_GNUC_UNUSED, 1159s # const gchar *interface_name G_GNUC_UNUSED, 1159s # const gchar *property_name, 1159s # GError **error, 1159s # gpointer user_data) 1159s # { 1159s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1159s # GValue value = G_VALUE_INIT; 1159s # GParamSpec *pspec; 1159s # _ExtendedGDBusPropertyInfo *info; 1159s # GVariant *ret; 1159s # ret = NULL; 1159s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 1159s # g_assert (info != NULL); 1159s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1159s # if (pspec == NULL) 1159s # { 1159s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1159s # } 1159s # else 1159s # { 1159s # g_value_init (&value, pspec->value_type); 1159s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1159s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 1159s # g_value_unset (&value); 1159s # } 1159s # return ret; 1159s # } 1159s # 1159s # static gboolean 1159s # _org_project_useful_interface_skeleton_handle_set_property ( 1159s # GDBusConnection *connection G_GNUC_UNUSED, 1159s # const gchar *sender G_GNUC_UNUSED, 1159s # const gchar *object_path G_GNUC_UNUSED, 1159s # const gchar *interface_name G_GNUC_UNUSED, 1159s # const gchar *property_name, 1159s # GVariant *variant, 1159s # GError **error, 1159s # gpointer user_data) 1159s # { 1159s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1159s # GValue value = G_VALUE_INIT; 1159s # GParamSpec *pspec; 1159s # _ExtendedGDBusPropertyInfo *info; 1159s # gboolean ret; 1159s # ret = FALSE; 1159s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 1159s # g_assert (info != NULL); 1159s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1159s # if (pspec == NULL) 1159s # { 1159s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1159s # } 1159s # else 1159s # { 1159s # if (info->use_gvariant) 1159s # g_value_set_variant (&value, variant); 1159s # else 1159s # g_dbus_gvariant_to_gvalue (variant, &value); 1159s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1159s # g_value_unset (&value); 1159s # ret = TRUE; 1159s # } 1159s # return ret; 1159s # } 1159s # 1159s # static const GDBusInterfaceVTable _org_project_useful_interface_skeleton_vtable = 1159s # { 1159s # _org_project_useful_interface_skeleton_handle_method_call, 1159s # _org_project_useful_interface_skeleton_handle_get_property, 1159s # _org_project_useful_interface_skeleton_handle_set_property, 1159s # {NULL} 1159s # }; 1159s # 1159s # static GDBusInterfaceInfo * 1159s # org_project_useful_interface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1159s # { 1159s # return org_project_useful_interface_interface_info (); 1159s # } 1159s # 1159s # static GDBusInterfaceVTable * 1159s # org_project_useful_interface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1159s # { 1159s # return (GDBusInterfaceVTable *) &_org_project_useful_interface_skeleton_vtable; 1159s # } 1159s # 1159s # static GVariant * 1159s # org_project_useful_interface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 1159s # { 1159s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (_skeleton); 1159s # 1159s # GVariantBuilder builder; 1159s # guint n; 1159s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 1159s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 1159s # #else 1159s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 1159s # #endif 1159s # if (_org_project_useful_interface_interface_info.parent_struct.properties == NULL) 1159s # goto out; 1159s # for (n = 0; _org_project_useful_interface_interface_info.parent_struct.properties[n] != NULL; n++) 1159s # { 1159s # GDBusPropertyInfo *info = _org_project_useful_interface_interface_info.parent_struct.properties[n]; 1159s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 1159s # { 1159s # GVariant *value; 1159s # 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); 1159s # if (value != NULL) 1159s # { 1159s # g_variant_take_ref (value); 1159s # g_variant_builder_add (&builder, "{sv}", info->name, value); 1159s # g_variant_unref (value); 1159s # } 1159s # } 1159s # } 1159s # out: 1159s # return g_variant_builder_end (&builder); 1159s # } 1159s # 1159s # static void 1159s # org_project_useful_interface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 1159s # { 1159s # } 1159s # 1159s # static void org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface); 1159s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1159s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1159s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceSkeleton) 1159s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 1159s # 1159s # #else 1159s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1159s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 1159s # 1159s # #endif 1159s # static void 1159s # org_project_useful_interface_skeleton_finalize (GObject *object) 1159s # { 1159s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (object); 1159s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 1159s # if (skeleton->priv->changed_properties_idle_source != NULL) 1159s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 1159s # g_main_context_unref (skeleton->priv->context); 1159s # g_mutex_clear (&skeleton->priv->lock); 1159s # G_OBJECT_CLASS (org_project_useful_interface_skeleton_parent_class)->finalize (object); 1159s # } 1159s # 1159s # static void 1159s # org_project_useful_interface_skeleton_init (OrgProjectUsefulInterfaceSkeleton *skeleton) 1159s # { 1159s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1159s # skeleton->priv = org_project_useful_interface_skeleton_get_instance_private (skeleton); 1159s # #else 1159s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, OrgProjectUsefulInterfaceSkeletonPrivate); 1159s # #endif 1159s # 1159s # g_mutex_init (&skeleton->priv->lock); 1159s # skeleton->priv->context = g_main_context_ref_thread_default (); 1159s # } 1159s # 1159s # static void 1159s # org_project_useful_interface_skeleton_class_init (OrgProjectUsefulInterfaceSkeletonClass *klass) 1159s # { 1159s # GObjectClass *gobject_class; 1159s # GDBusInterfaceSkeletonClass *skeleton_class; 1159s # 1159s # gobject_class = G_OBJECT_CLASS (klass); 1159s # gobject_class->finalize = org_project_useful_interface_skeleton_finalize; 1159s # 1159s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 1159s # skeleton_class->get_info = org_project_useful_interface_skeleton_dbus_interface_get_info; 1159s # skeleton_class->get_properties = org_project_useful_interface_skeleton_dbus_interface_get_properties; 1159s # skeleton_class->flush = org_project_useful_interface_skeleton_dbus_interface_flush; 1159s # skeleton_class->get_vtable = org_project_useful_interface_skeleton_dbus_interface_get_vtable; 1159s # 1159s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1159s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceSkeletonPrivate)); 1159s # #endif 1159s # } 1159s # 1159s # static void 1159s # org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 1159s # { 1159s # } 1159s # 1159s # /** 1159s # * org_project_useful_interface_skeleton_new: 1159s # * 1159s # * Creates a skeleton object for the D-Bus interface org.project.UsefulInterface. 1159s # * 1159s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceSkeleton): The skeleton object. 1159s # */ 1159s # OrgProjectUsefulInterface * 1159s # org_project_useful_interface_skeleton_new (void) 1159s # { 1159s # return ORG_PROJECT_USEFUL_INTERFACE (g_object_new (TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, NULL)); 1159s # } 1159s # Error: 1159s # 1159s # /tmp/tmpatbfkbk2/tmph1lqkch4.xml: 1159s # 1159s # 1159s # 1159s # 1159s # 1159s # 1159s # 1159s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpatbfkbk2/tmph1lqkch4.xml', '--output', '-', '--body'] 1159s # Return code: 0 1159s # Output: 1159s # /* 1159s # * This file is generated by gdbus-codegen, do not modify it. 1159s # * 1159s # * The license of this code is the same as for the D-Bus interface description 1159s # * it was derived from. Note that it links to GLib, so must comply with the 1159s # * LGPL linking clauses. 1159s # */ 1159s # 1159s # #ifdef HAVE_CONFIG_H 1159s # # include "config.h" 1159s # #endif 1159s # 1159s # #include 1159s # #ifdef G_OS_UNIX 1159s # # include 1159s # #endif 1159s # 1159s # #ifdef G_ENABLE_DEBUG 1159s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 1159s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 1159s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 1159s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 1159s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 1159s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 1159s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 1159s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 1159s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 1159s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 1159s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 1159s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 1159s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 1159s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 1159s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 1159s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 1159s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 1159s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 1159s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 1159s # #else /* !G_ENABLE_DEBUG */ 1159s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 1159s # * Do not access GValues directly in your code. Instead, use the 1159s # * g_value_get_*() functions 1159s # */ 1159s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 1159s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 1159s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 1159s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 1159s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 1159s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 1159s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 1159s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 1159s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 1159s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 1159s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 1159s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 1159s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 1159s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 1159s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 1159s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 1159s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 1159s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 1159s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 1159s # #endif /* !G_ENABLE_DEBUG */ 1159s # 1159s # typedef struct 1159s # { 1159s # GDBusArgInfo parent_struct; 1159s # gboolean use_gvariant; 1159s # } _ExtendedGDBusArgInfo; 1159s # 1159s # typedef struct 1159s # { 1159s # GDBusMethodInfo parent_struct; 1159s # const gchar *signal_name; 1159s # gboolean pass_fdlist; 1159s # } _ExtendedGDBusMethodInfo; 1159s # 1159s # typedef struct 1159s # { 1159s # GDBusSignalInfo parent_struct; 1159s # const gchar *signal_name; 1159s # } _ExtendedGDBusSignalInfo; 1159s # 1159s # typedef struct 1159s # { 1159s # GDBusPropertyInfo parent_struct; 1159s # const gchar *hyphen_name; 1159s # guint use_gvariant : 1; 1159s # guint emits_changed_signal : 1; 1159s # } _ExtendedGDBusPropertyInfo; 1159s # 1159s # typedef struct 1159s # { 1159s # GDBusInterfaceInfo parent_struct; 1159s # const gchar *hyphen_name; 1159s # } _ExtendedGDBusInterfaceInfo; 1159s # 1159s # typedef struct 1159s # { 1159s # const _ExtendedGDBusPropertyInfo *info; 1159s # guint prop_id; 1159s # GValue orig_value; /* the value before the change */ 1159s # } ChangedProperty; 1159s # 1159s # static void 1159s # _changed_property_free (ChangedProperty *data) 1159s # { 1159s # g_value_unset (&data->orig_value); 1159s # g_free (data); 1159s # } 1159s # 1159s # static gboolean 1159s # _g_strv_equal0 (gchar **a, gchar **b) 1159s # { 1159s # gboolean ret = FALSE; 1159s # guint n; 1159s # if (a == NULL && b == NULL) 1159s # { 1159s # ret = TRUE; 1159s # goto out; 1159s # } 1159s # if (a == NULL || b == NULL) 1159s # goto out; 1159s # if (g_strv_length (a) != g_strv_length (b)) 1159s # goto out; 1159s # for (n = 0; a[n] != NULL; n++) 1159s # if (g_strcmp0 (a[n], b[n]) != 0) 1159s # goto out; 1159s # ret = TRUE; 1159s # out: 1159s # return ret; 1159s # } 1159s # 1159s # static gboolean 1159s # _g_variant_equal0 (GVariant *a, GVariant *b) 1159s # { 1159s # gboolean ret = FALSE; 1159s # if (a == NULL && b == NULL) 1159s # { 1159s # ret = TRUE; 1159s # goto out; 1159s # } 1159s # if (a == NULL || b == NULL) 1159s # goto out; 1159s # ret = g_variant_equal (a, b); 1159s # out: 1159s # return ret; 1159s # } 1159s # 1159s # G_GNUC_UNUSED static gboolean 1159s # _g_value_equal (const GValue *a, const GValue *b) 1159s # { 1159s # gboolean ret = FALSE; 1159s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 1159s # switch (G_VALUE_TYPE (a)) 1159s # { 1159s # case G_TYPE_BOOLEAN: 1159s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 1159s # break; 1159s # case G_TYPE_UCHAR: 1159s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 1159s # break; 1159s # case G_TYPE_INT: 1159s # ret = (g_value_get_int (a) == g_value_get_int (b)); 1159s # break; 1159s # case G_TYPE_UINT: 1159s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 1159s # break; 1159s # case G_TYPE_INT64: 1159s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 1159s # break; 1159s # case G_TYPE_UINT64: 1159s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 1159s # break; 1159s # case G_TYPE_DOUBLE: 1159s # { 1159s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 1159s # gdouble da = g_value_get_double (a); 1159s # gdouble db = g_value_get_double (b); 1159s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 1159s # } 1159s # break; 1159s # case G_TYPE_STRING: 1159s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 1159s # break; 1159s # case G_TYPE_VARIANT: 1159s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 1159s # break; 1159s # default: 1159s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 1159s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 1159s # else 1159s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 1159s # break; 1159s # } 1159s # return ret; 1159s # } 1159s # 1159s # static void 1159s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT ( 1159s # GClosure *closure, 1159s # GValue *return_value, 1159s # unsigned int n_param_values, 1159s # const GValue *param_values, 1159s # void *invocation_hint G_GNUC_UNUSED, 1159s # void *marshal_data) 1159s # { 1159s # typedef gboolean (*_GDbusCodegenMarshalBoolean_ObjectFunc) 1159s # (void *data1, 1159s # GDBusMethodInvocation *arg_method_invocation, 1159s # void *data2); 1159s # _GDbusCodegenMarshalBoolean_ObjectFunc callback; 1159s # GCClosure *cc = (GCClosure*) closure; 1159s # void *data1, *data2; 1159s # gboolean v_return; 1159s # 1159s # g_return_if_fail (return_value != NULL); 1159s # g_return_if_fail (n_param_values == 2); 1159s # 1159s # if (G_CCLOSURE_SWAP_DATA (closure)) 1159s # { 1159s # data1 = closure->data; 1159s # data2 = g_value_peek_pointer (param_values + 0); 1159s # } 1159s # else 1159s # { 1159s # data1 = g_value_peek_pointer (param_values + 0); 1159s # data2 = closure->data; 1159s # } 1159s # 1159s # callback = (_GDbusCodegenMarshalBoolean_ObjectFunc) 1159s # (marshal_data ? marshal_data : cc->callback); 1159s # 1159s # v_return = 1159s # callback (data1, 1159s # g_marshal_value_peek_object (param_values + 1), 1159s # data2); 1159s # 1159s # g_value_set_boolean (return_value, v_return); 1159s # } 1159s # 1159s # /* ------------------------------------------------------------------------ 1159s # * Code for interface org.project.UsefulInterface 1159s # * ------------------------------------------------------------------------ 1159s # */ 1159s # 1159s # /** 1159s # * SECTION:OrgProjectUsefulInterface 1159s # * @title: OrgProjectUsefulInterface 1159s # * @short_description: Generated C code for the org.project.UsefulInterface D-Bus interface 1159s # * 1159s # * This section contains code for working with the org.project.UsefulInterface D-Bus interface in C. 1159s # */ 1159s # 1159s # /* ---- Introspection data for org.project.UsefulInterface ---- */ 1159s # 1159s # static const _ExtendedGDBusArgInfo _org_project_useful_interface_method_info_single_arg_method_h_OUT_ARG_arg_h = 1159s # { 1159s # { 1159s # -1, 1159s # (gchar *) "arg_h", 1159s # (gchar *) "h", 1159s # NULL 1159s # }, 1159s # FALSE 1159s # }; 1159s # 1159s # static const GDBusArgInfo * const _org_project_useful_interface_method_info_single_arg_method_h_OUT_ARG_pointers[] = 1159s # { 1159s # &_org_project_useful_interface_method_info_single_arg_method_h_OUT_ARG_arg_h.parent_struct, 1159s # NULL 1159s # }; 1159s # 1159s # static const _ExtendedGDBusMethodInfo _org_project_useful_interface_method_info_single_arg_method_h = 1159s # { 1159s # { 1159s # -1, 1159s # (gchar *) "SingleArgMethodH", 1159s # NULL, 1159s # (GDBusArgInfo **) &_org_project_useful_interface_method_info_single_arg_method_h_OUT_ARG_pointers, 1159s # NULL 1159s # }, 1159s # "handle-single-arg-method-h", 1159s # FALSE 1159s # }; 1159s # 1159s # static const GDBusMethodInfo * const _org_project_useful_interface_method_info_pointers[] = 1159s # { 1159s # &_org_project_useful_interface_method_info_single_arg_method_h.parent_struct, 1159s # NULL 1159s # }; 1159s # 1159s # static const _ExtendedGDBusInterfaceInfo _org_project_useful_interface_interface_info = 1159s # { 1159s # { 1159s # -1, 1159s # (gchar *) "org.project.UsefulInterface", 1159s # (GDBusMethodInfo **) &_org_project_useful_interface_method_info_pointers, 1159s # NULL, 1159s # NULL, 1159s # NULL 1159s # }, 1159s # "org-project-useful-interface", 1159s # }; 1159s # 1159s # 1159s # /** 1159s # * org_project_useful_interface_interface_info: 1159s # * 1159s # * Gets a machine-readable description of the org.project.UsefulInterface D-Bus interface. 1159s # * 1159s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 1159s # */ 1159s # GDBusInterfaceInfo * 1159s # org_project_useful_interface_interface_info (void) 1159s # { 1159s # return (GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct; 1159s # } 1159s # 1159s # /** 1159s # * org_project_useful_interface_override_properties: 1159s # * @klass: The class structure for a #GObject derived class. 1159s # * @property_id_begin: The property id to assign to the first overridden property. 1159s # * 1159s # * Overrides all #GObject properties in the #OrgProjectUsefulInterface interface for a concrete class. 1159s # * The properties are overridden in the order they are defined. 1159s # * 1159s # * Returns: The last property id. 1159s # */ 1159s # guint 1159s # org_project_useful_interface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 1159s # { 1159s # return property_id_begin - 1; 1159s # } 1159s # 1159s # 1159s # inline static void 1159s # org_project_useful_interface_method_marshal_single_arg_method_h ( 1159s # GClosure *closure, 1159s # GValue *return_value, 1159s # unsigned int n_param_values, 1159s # const GValue *param_values, 1159s # void *invocation_hint, 1159s # void *marshal_data) 1159s # { 1159s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT (closure, 1159s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1159s # } 1159s # 1159s # 1159s # /** 1159s # * OrgProjectUsefulInterface: 1159s # * 1159s # * Abstract interface type for the D-Bus interface org.project.UsefulInterface. 1159s # */ 1159s # 1159s # /** 1159s # * OrgProjectUsefulInterfaceIface: 1159s # * @parent_iface: The parent interface. 1159s # * @handle_single_arg_method_h: Handler for the #OrgProjectUsefulInterface::handle-single-arg-method-h signal. 1159s # * 1159s # * Virtual table for the D-Bus interface org.project.UsefulInterface. 1159s # */ 1159s # 1159s # typedef OrgProjectUsefulInterfaceIface OrgProjectUsefulInterfaceInterface; 1159s # G_DEFINE_INTERFACE (OrgProjectUsefulInterface, org_project_useful_interface, G_TYPE_OBJECT) 1159s # 1159s # static void 1159s # org_project_useful_interface_default_init (OrgProjectUsefulInterfaceIface *iface) 1159s # { 1159s # /* GObject signals for incoming D-Bus method calls: */ 1159s # /** 1159s # * OrgProjectUsefulInterface::handle-single-arg-method-h: 1159s # * @object: A #OrgProjectUsefulInterface. 1159s # * @invocation: A #GDBusMethodInvocation. 1159s # * 1159s # * Signal emitted when a remote caller is invoking the SingleArgMethodH() D-Bus method. 1159s # * 1159s # * 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. 1159s # * 1159s # * 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. 1159s # */ 1159s # g_signal_new ("handle-single-arg-method-h", 1159s # G_TYPE_FROM_INTERFACE (iface), 1159s # G_SIGNAL_RUN_LAST, 1159s # G_STRUCT_OFFSET (OrgProjectUsefulInterfaceIface, handle_single_arg_method_h), 1159s # g_signal_accumulator_true_handled, 1159s # NULL, 1159s # org_project_useful_interface_method_marshal_single_arg_method_h, 1159s # G_TYPE_BOOLEAN, 1159s # 1, 1159s # G_TYPE_DBUS_METHOD_INVOCATION); 1159s # 1159s # } 1159s # 1159s # /** 1159s # * org_project_useful_interface_call_single_arg_method_h: 1159s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1159s # * @cancellable: (nullable): A #GCancellable or %NULL. 1159s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL. 1159s # * @user_data: User data to pass to @callback. 1159s # * 1159s # * Asynchronously invokes the SingleArgMethodH() D-Bus method on @proxy. 1159s # * 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()). 1159s # * You can then call org_project_useful_interface_call_single_arg_method_h_finish() to get the result of the operation. 1159s # * 1159s # * See org_project_useful_interface_call_single_arg_method_h_sync() for the synchronous, blocking version of this method. 1159s # */ 1159s # void 1159s # org_project_useful_interface_call_single_arg_method_h ( 1159s # OrgProjectUsefulInterface *proxy, 1159s # GCancellable *cancellable, 1159s # GAsyncReadyCallback callback, 1159s # gpointer user_data) 1159s # { 1159s # g_dbus_proxy_call (G_DBUS_PROXY (proxy), 1159s # "SingleArgMethodH", 1159s # g_variant_new ("()"), 1159s # G_DBUS_CALL_FLAGS_NONE, 1159s # -1, 1159s # cancellable, 1159s # callback, 1159s # user_data); 1159s # } 1159s # 1159s # /** 1159s # * org_project_useful_interface_call_single_arg_method_h_finish: 1159s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1159s # * @out_arg_h: (out) (optional): Return location for return parameter or %NULL to ignore. 1159s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_call_single_arg_method_h(). 1159s # * @error: Return location for error or %NULL. 1159s # * 1159s # * Finishes an operation started with org_project_useful_interface_call_single_arg_method_h(). 1159s # * 1159s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1159s # */ 1159s # gboolean 1159s # org_project_useful_interface_call_single_arg_method_h_finish ( 1159s # OrgProjectUsefulInterface *proxy, 1159s # GVariant **out_arg_h, 1159s # GAsyncResult *res, 1159s # GError **error) 1159s # { 1159s # GVariant *_ret; 1159s # _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error); 1159s # if (_ret == NULL) 1159s # goto _out; 1159s # g_variant_get (_ret, 1159s # "(@h)", 1159s # out_arg_h); 1159s # g_variant_unref (_ret); 1159s # _out: 1159s # return _ret != NULL; 1159s # } 1159s # 1159s # /** 1159s # * org_project_useful_interface_call_single_arg_method_h_sync: 1159s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1159s # * @out_arg_h: (out) (optional): Return location for return parameter or %NULL to ignore. 1159s # * @cancellable: (nullable): A #GCancellable or %NULL. 1159s # * @error: Return location for error or %NULL. 1159s # * 1159s # * Synchronously invokes the SingleArgMethodH() D-Bus method on @proxy. The calling thread is blocked until a reply is received. 1159s # * 1159s # * See org_project_useful_interface_call_single_arg_method_h() for the asynchronous version of this method. 1159s # * 1159s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1159s # */ 1159s # gboolean 1159s # org_project_useful_interface_call_single_arg_method_h_sync ( 1159s # OrgProjectUsefulInterface *proxy, 1159s # GVariant **out_arg_h, 1159s # GCancellable *cancellable, 1159s # GError **error) 1159s # { 1159s # GVariant *_ret; 1159s # _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy), 1159s # "SingleArgMethodH", 1159s # g_variant_new ("()"), 1159s # G_DBUS_CALL_FLAGS_NONE, 1159s # -1, 1159s # cancellable, 1159s # error); 1159s # if (_ret == NULL) 1159s # goto _out; 1159s # g_variant_get (_ret, 1159s # "(@h)", 1159s # out_arg_h); 1159s # g_variant_unref (_ret); 1159s # _out: 1159s # return _ret != NULL; 1159s # } 1159s # 1159s # /** 1159s # * org_project_useful_interface_complete_single_arg_method_h: 1159s # * @object: A #OrgProjectUsefulInterface. 1159s # * @invocation: (transfer full): A #GDBusMethodInvocation. 1159s # * @arg_h: Parameter to return. 1159s # * 1159s # * 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. 1159s # * 1159s # * This method will free @invocation, you cannot use it afterwards. 1159s # */ 1159s # void 1159s # org_project_useful_interface_complete_single_arg_method_h ( 1159s # OrgProjectUsefulInterface *object G_GNUC_UNUSED, 1159s # GDBusMethodInvocation *invocation, 1159s # GVariant *arg_h) 1159s # { 1159s # g_dbus_method_invocation_return_value (invocation, 1159s # g_variant_new ("(@h)", 1159s # arg_h)); 1159s # } 1159s # 1159s # /* ------------------------------------------------------------------------ */ 1159s # 1159s # /** 1159s # * OrgProjectUsefulInterfaceProxy: 1159s # * 1159s # * The #OrgProjectUsefulInterfaceProxy structure contains only private data and should only be accessed using the provided API. 1159s # */ 1159s # 1159s # /** 1159s # * OrgProjectUsefulInterfaceProxyClass: 1159s # * @parent_class: The parent class. 1159s # * 1159s # * Class structure for #OrgProjectUsefulInterfaceProxy. 1159s # */ 1159s # 1159s # struct _OrgProjectUsefulInterfaceProxyPrivate 1159s # { 1159s # GData *qdata; 1159s # }; 1159s # 1159s # static void org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface); 1159s # 1159s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1159s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 1159s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceProxy) 1159s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 1159s # 1159s # #else 1159s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 1159s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 1159s # 1159s # #endif 1159s # static void 1159s # org_project_useful_interface_proxy_finalize (GObject *object) 1159s # { 1159s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (object); 1159s # g_datalist_clear (&proxy->priv->qdata); 1159s # G_OBJECT_CLASS (org_project_useful_interface_proxy_parent_class)->finalize (object); 1159s # } 1159s # 1159s # static void 1159s # org_project_useful_interface_proxy_get_property (GObject *object G_GNUC_UNUSED, 1159s # guint prop_id G_GNUC_UNUSED, 1159s # GValue *value G_GNUC_UNUSED, 1159s # GParamSpec *pspec G_GNUC_UNUSED) 1159s # { 1159s # } 1159s # 1159s # static void 1159s # org_project_useful_interface_proxy_set_property (GObject *object G_GNUC_UNUSED, 1159s # guint prop_id G_GNUC_UNUSED, 1159s # const GValue *value G_GNUC_UNUSED, 1159s # GParamSpec *pspec G_GNUC_UNUSED) 1159s # { 1159s # } 1159s # 1159s # static void 1159s # org_project_useful_interface_proxy_g_signal (GDBusProxy *proxy, 1159s # const gchar *sender_name G_GNUC_UNUSED, 1159s # const gchar *signal_name, 1159s # GVariant *parameters) 1159s # { 1159s # _ExtendedGDBusSignalInfo *info; 1159s # GVariantIter iter; 1159s # GVariant *child; 1159s # GValue *paramv; 1159s # gsize num_params; 1159s # gsize n; 1159s # guint signal_id; 1159s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, signal_name); 1159s # if (info == NULL) 1159s # return; 1159s # num_params = g_variant_n_children (parameters); 1159s # paramv = g_new0 (GValue, num_params + 1); 1159s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1159s # g_value_set_object (¶mv[0], proxy); 1159s # g_variant_iter_init (&iter, parameters); 1159s # n = 1; 1159s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1159s # { 1159s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 1159s # if (arg_info->use_gvariant) 1159s # { 1159s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1159s # g_value_set_variant (¶mv[n], child); 1159s # n++; 1159s # } 1159s # else 1159s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1159s # g_variant_unref (child); 1159s # } 1159s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1159s # g_signal_emitv (paramv, signal_id, 0, NULL); 1159s # for (n = 0; n < num_params + 1; n++) 1159s # g_value_unset (¶mv[n]); 1159s # g_free (paramv); 1159s # } 1159s # 1159s # static void 1159s # org_project_useful_interface_proxy_g_properties_changed (GDBusProxy *_proxy, 1159s # GVariant *changed_properties, 1159s # const gchar *const *invalidated_properties) 1159s # { 1159s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (_proxy); 1159s # guint n; 1159s # const gchar *key; 1159s # GVariantIter *iter; 1159s # _ExtendedGDBusPropertyInfo *info; 1159s # g_variant_get (changed_properties, "a{sv}", &iter); 1159s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 1159s # { 1159s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, key); 1159s # g_datalist_remove_data (&proxy->priv->qdata, key); 1159s # if (info != NULL) 1159s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1159s # } 1159s # g_variant_iter_free (iter); 1159s # for (n = 0; invalidated_properties[n] != NULL; n++) 1159s # { 1159s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, invalidated_properties[n]); 1159s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 1159s # if (info != NULL) 1159s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1159s # } 1159s # } 1159s # 1159s # static void 1159s # org_project_useful_interface_proxy_init (OrgProjectUsefulInterfaceProxy *proxy) 1159s # { 1159s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1159s # proxy->priv = org_project_useful_interface_proxy_get_instance_private (proxy); 1159s # #else 1159s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY, OrgProjectUsefulInterfaceProxyPrivate); 1159s # #endif 1159s # 1159s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_useful_interface_interface_info ()); 1159s # } 1159s # 1159s # static void 1159s # org_project_useful_interface_proxy_class_init (OrgProjectUsefulInterfaceProxyClass *klass) 1159s # { 1159s # GObjectClass *gobject_class; 1159s # GDBusProxyClass *proxy_class; 1159s # 1159s # gobject_class = G_OBJECT_CLASS (klass); 1159s # gobject_class->finalize = org_project_useful_interface_proxy_finalize; 1159s # gobject_class->get_property = org_project_useful_interface_proxy_get_property; 1159s # gobject_class->set_property = org_project_useful_interface_proxy_set_property; 1159s # 1159s # proxy_class = G_DBUS_PROXY_CLASS (klass); 1159s # proxy_class->g_signal = org_project_useful_interface_proxy_g_signal; 1159s # proxy_class->g_properties_changed = org_project_useful_interface_proxy_g_properties_changed; 1159s # 1159s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1159s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceProxyPrivate)); 1159s # #endif 1159s # } 1159s # 1159s # static void 1159s # org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 1159s # { 1159s # } 1159s # 1159s # /** 1159s # * org_project_useful_interface_proxy_new: 1159s # * @connection: A #GDBusConnection. 1159s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1159s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1159s # * @object_path: An object path. 1159s # * @cancellable: (nullable): A #GCancellable or %NULL. 1159s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1159s # * @user_data: User data to pass to @callback. 1159s # * 1159s # * Asynchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new() for more details. 1159s # * 1159s # * 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()). 1159s # * You can then call org_project_useful_interface_proxy_new_finish() to get the result of the operation. 1159s # * 1159s # * See org_project_useful_interface_proxy_new_sync() for the synchronous, blocking version of this constructor. 1159s # */ 1159s # void 1159s # org_project_useful_interface_proxy_new ( 1159s # GDBusConnection *connection, 1159s # GDBusProxyFlags flags, 1159s # const gchar *name, 1159s # const gchar *object_path, 1159s # GCancellable *cancellable, 1159s # GAsyncReadyCallback callback, 1159s # gpointer user_data) 1159s # { 1159s # 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); 1159s # } 1159s # 1159s # /** 1159s # * org_project_useful_interface_proxy_new_finish: 1159s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new(). 1159s # * @error: Return location for error or %NULL 1159s # * 1159s # * Finishes an operation started with org_project_useful_interface_proxy_new(). 1159s # * 1159s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1159s # */ 1159s # OrgProjectUsefulInterface * 1159s # org_project_useful_interface_proxy_new_finish ( 1159s # GAsyncResult *res, 1159s # GError **error) 1159s # { 1159s # GObject *ret; 1159s # GObject *source_object; 1159s # source_object = g_async_result_get_source_object (res); 1159s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1159s # g_object_unref (source_object); 1159s # if (ret != NULL) 1159s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1159s # else 1159s # return NULL; 1159s # } 1159s # 1159s # /** 1159s # * org_project_useful_interface_proxy_new_sync: 1159s # * @connection: A #GDBusConnection. 1159s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1159s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1159s # * @object_path: An object path. 1159s # * @cancellable: (nullable): A #GCancellable or %NULL. 1159s # * @error: Return location for error or %NULL 1159s # * 1159s # * Synchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new_sync() for more details. 1159s # * 1159s # * The calling thread is blocked until a reply is received. 1159s # * 1159s # * See org_project_useful_interface_proxy_new() for the asynchronous version of this constructor. 1159s # * 1159s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1159s # */ 1159s # OrgProjectUsefulInterface * 1159s # org_project_useful_interface_proxy_new_sync ( 1159s # GDBusConnection *connection, 1159s # GDBusProxyFlags flags, 1159s # const gchar *name, 1159s # const gchar *object_path, 1159s # GCancellable *cancellable, 1159s # GError **error) 1159s # { 1159s # GInitable *ret; 1159s # 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); 1159s # if (ret != NULL) 1159s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1159s # else 1159s # return NULL; 1159s # } 1159s # 1159s # 1159s # /** 1159s # * org_project_useful_interface_proxy_new_for_bus: 1159s # * @bus_type: A #GBusType. 1159s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1159s # * @name: A bus name (well-known or unique). 1159s # * @object_path: An object path. 1159s # * @cancellable: (nullable): A #GCancellable or %NULL. 1159s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1159s # * @user_data: User data to pass to @callback. 1159s # * 1159s # * Like org_project_useful_interface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 1159s # * 1159s # * 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()). 1159s # * You can then call org_project_useful_interface_proxy_new_for_bus_finish() to get the result of the operation. 1159s # * 1159s # * See org_project_useful_interface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 1159s # */ 1159s # void 1159s # org_project_useful_interface_proxy_new_for_bus ( 1159s # GBusType bus_type, 1159s # GDBusProxyFlags flags, 1159s # const gchar *name, 1159s # const gchar *object_path, 1159s # GCancellable *cancellable, 1159s # GAsyncReadyCallback callback, 1159s # gpointer user_data) 1159s # { 1159s # 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); 1159s # } 1159s # 1159s # /** 1159s # * org_project_useful_interface_proxy_new_for_bus_finish: 1159s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new_for_bus(). 1159s # * @error: Return location for error or %NULL 1159s # * 1159s # * Finishes an operation started with org_project_useful_interface_proxy_new_for_bus(). 1159s # * 1159s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1159s # */ 1159s # OrgProjectUsefulInterface * 1159s # org_project_useful_interface_proxy_new_for_bus_finish ( 1159s # GAsyncResult *res, 1159s # GError **error) 1159s # { 1159s # GObject *ret; 1159s # GObject *source_object; 1159s # source_object = g_async_result_get_source_object (res); 1159s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1159s # g_object_unref (source_object); 1159s # if (ret != NULL) 1159s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1159s # else 1159s # return NULL; 1159s # } 1159s # 1159s # /** 1159s # * org_project_useful_interface_proxy_new_for_bus_sync: 1159s # * @bus_type: A #GBusType. 1159s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1159s # * @name: A bus name (well-known or unique). 1159s # * @object_path: An object path. 1159s # * @cancellable: (nullable): A #GCancellable or %NULL. 1159s # * @error: Return location for error or %NULL 1159s # * 1159s # * Like org_project_useful_interface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 1159s # * 1159s # * The calling thread is blocked until a reply is received. 1159s # * 1159s # * See org_project_useful_interface_proxy_new_for_bus() for the asynchronous version of this constructor. 1159s # * 1159s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1159s # */ 1159s # OrgProjectUsefulInterface * 1159s # org_project_useful_interface_proxy_new_for_bus_sync ( 1159s # GBusType bus_type, 1159s # GDBusProxyFlags flags, 1159s # const gchar *name, 1159s # const gchar *object_path, 1159s # GCancellable *cancellable, 1159s # GError **error) 1159s # { 1159s # GInitable *ret; 1159s # 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); 1159s # if (ret != NULL) 1159s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1159s # else 1159s # return NULL; 1159s # } 1159s # 1159s # 1159s # /* ------------------------------------------------------------------------ */ 1159s # 1159s # /** 1159s # * OrgProjectUsefulInterfaceSkeleton: 1159s # * 1159s # * The #OrgProjectUsefulInterfaceSkeleton structure contains only private data and should only be accessed using the provided API. 1159s # */ 1159s # 1159s # /** 1159s # * OrgProjectUsefulInterfaceSkeletonClass: 1159s # * @parent_class: The parent class. 1159s # * 1159s # * Class structure for #OrgProjectUsefulInterfaceSkeleton. 1159s # */ 1159s # 1159s # struct _OrgProjectUsefulInterfaceSkeletonPrivate 1159s # { 1159s # GValue *properties; 1159s # GList *changed_properties; 1159s # GSource *changed_properties_idle_source; 1159s # GMainContext *context; 1159s # GMutex lock; 1159s # }; 1159s # 1159s # static void 1159s # _org_project_useful_interface_skeleton_handle_method_call ( 1159s # GDBusConnection *connection G_GNUC_UNUSED, 1159s # const gchar *sender G_GNUC_UNUSED, 1159s # const gchar *object_path G_GNUC_UNUSED, 1159s # const gchar *interface_name, 1159s # const gchar *method_name, 1159s # GVariant *parameters, 1159s # GDBusMethodInvocation *invocation, 1159s # gpointer user_data) 1159s # { 1159s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1159s # _ExtendedGDBusMethodInfo *info; 1159s # GVariantIter iter; 1159s # GVariant *child; 1159s # GValue *paramv; 1159s # gsize num_params; 1159s # guint num_extra; 1159s # gsize n; 1159s # guint signal_id; 1159s # GValue return_value = G_VALUE_INIT; 1159s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 1159s # g_assert (info != NULL); 1159s # num_params = g_variant_n_children (parameters); 1159s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 1159s # n = 0; 1159s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1159s # g_value_set_object (¶mv[n++], skeleton); 1159s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 1159s # g_value_set_object (¶mv[n++], invocation); 1159s # if (info->pass_fdlist) 1159s # { 1159s # #ifdef G_OS_UNIX 1159s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 1159s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 1159s # #else 1159s # g_assert_not_reached (); 1159s # #endif 1159s # } 1159s # g_variant_iter_init (&iter, parameters); 1159s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1159s # { 1159s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 1159s # if (arg_info->use_gvariant) 1159s # { 1159s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1159s # g_value_set_variant (¶mv[n], child); 1159s # n++; 1159s # } 1159s # else 1159s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1159s # g_variant_unref (child); 1159s # } 1159s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1159s # g_value_init (&return_value, G_TYPE_BOOLEAN); 1159s # g_signal_emitv (paramv, signal_id, 0, &return_value); 1159s # if (!g_value_get_boolean (&return_value)) 1159s # 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); 1159s # g_value_unset (&return_value); 1159s # for (n = 0; n < num_params + num_extra; n++) 1159s # g_value_unset (¶mv[n]); 1159s # g_free (paramv); 1159s # } 1159s # 1159s # static GVariant * 1159s # _org_project_useful_interface_skeleton_handle_get_property ( 1159s # GDBusConnection *connection G_GNUC_UNUSED, 1159s # const gchar *sender G_GNUC_UNUSED, 1159s # const gchar *object_path G_GNUC_UNUSED, 1159s # const gchar *interface_name G_GNUC_UNUSED, 1159s # const gchar *property_name, 1159s # GError **error, 1159s # gpointer user_data) 1159s # { 1159s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1159s # GValue value = G_VALUE_INIT; 1159s # GParamSpec *pspec; 1159s # _ExtendedGDBusPropertyInfo *info; 1159s # GVariant *ret; 1159s # ret = NULL; 1159s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 1159s # g_assert (info != NULL); 1159s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1159s # if (pspec == NULL) 1159s # { 1159s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1159s # } 1159s # else 1159s # { 1159s # g_value_init (&value, pspec->value_type); 1159s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1159s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 1159s # g_value_unset (&value); 1159s # } 1159s # return ret; 1159s # } 1159s # 1159s # static gboolean 1159s # _org_project_useful_interface_skeleton_handle_set_property ( 1159s # GDBusConnection *connection G_GNUC_UNUSED, 1159s # const gchar *sender G_GNUC_UNUSED, 1159s # const gchar *object_path G_GNUC_UNUSED, 1159s # const gchar *interface_name G_GNUC_UNUSED, 1159s # const gchar *property_name, 1159s # GVariant *variant, 1159s # GError **error, 1159s # gpointer user_data) 1159s # { 1159s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1159s # GValue value = G_VALUE_INIT; 1159s # GParamSpec *pspec; 1159s # _ExtendedGDBusPropertyInfo *info; 1159s # gboolean ret; 1159s # ret = FALSE; 1159s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 1159s # g_assert (info != NULL); 1159s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1159s # if (pspec == NULL) 1159s # { 1159s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1159s # } 1159s # else 1159s # { 1159s # if (info->use_gvariant) 1159s # g_value_set_variant (&value, variant); 1159s # else 1159s # g_dbus_gvariant_to_gvalue (variant, &value); 1159s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1159s # g_value_unset (&value); 1159s # ret = TRUE; 1159s # } 1159s # return ret; 1159s # } 1159s # 1159s # static const GDBusInterfaceVTable _org_project_useful_interface_skeleton_vtable = 1159s # { 1159s # _org_project_useful_interface_skeleton_handle_method_call, 1159s # _org_project_useful_interface_skeleton_handle_get_property, 1159s # _org_project_useful_interface_skeleton_handle_set_property, 1159s # {NULL} 1159s # }; 1159s # 1159s # static GDBusInterfaceInfo * 1159s # org_project_useful_interface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1159s # { 1159s # return org_project_useful_interface_interface_info (); 1159s # } 1159s # 1159s # static GDBusInterfaceVTable * 1159s # org_project_useful_interface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1159s # { 1159s # return (GDBusInterfaceVTable *) &_org_project_useful_interface_skeleton_vtable; 1159s # } 1159s # 1159s # static GVariant * 1159s # org_project_useful_interface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 1159s # { 1159s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (_skeleton); 1159s # 1159s # GVariantBuilder builder; 1159s # guint n; 1159s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 1159s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 1159s # #else 1159s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 1159s # #endif 1159s # if (_org_project_useful_interface_interface_info.parent_struct.properties == NULL) 1159s # goto out; 1159s # for (n = 0; _org_project_useful_interface_interface_info.parent_struct.properties[n] != NULL; n++) 1159s # { 1159s # GDBusPropertyInfo *info = _org_project_useful_interface_interface_info.parent_struct.properties[n]; 1159s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 1159s # { 1159s # GVariant *value; 1159s # 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); 1159s # if (value != NULL) 1159s # { 1159s # g_variant_take_ref (value); 1159s # g_variant_builder_add (&builder, "{sv}", info->name, value); 1159s # g_variant_unref (value); 1159s # } 1159s # } 1159s # } 1159s # out: 1159s # return g_variant_builder_end (&builder); 1159s # } 1159s # 1159s # static void 1159s # org_project_useful_interface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 1159s # { 1159s # } 1159s # 1159s # static void org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface); 1159s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1159s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1159s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceSkeleton) 1159s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 1159s # 1159s # #else 1159s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1159s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 1159s # 1159s # #endif 1159s # static void 1159s # org_project_useful_interface_skeleton_finalize (GObject *object) 1159s # { 1159s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (object); 1159s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 1159s # if (skeleton->priv->changed_properties_idle_source != NULL) 1159s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 1159s # g_main_context_unref (skeleton->priv->context); 1159s # g_mutex_clear (&skeleton->priv->lock); 1159s # G_OBJECT_CLASS (org_project_useful_interface_skeleton_parent_class)->finalize (object); 1159s # } 1159s # 1159s # static void 1159s # org_project_useful_interface_skeleton_init (OrgProjectUsefulInterfaceSkeleton *skeleton) 1159s # { 1159s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1159s # skeleton->priv = org_project_useful_interface_skeleton_get_instance_private (skeleton); 1159s # #else 1159s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, OrgProjectUsefulInterfaceSkeletonPrivate); 1159s # #endif 1159s # 1159s # g_mutex_init (&skeleton->priv->lock); 1159s # skeleton->priv->context = g_main_context_ref_thread_default (); 1159s # } 1159s # 1159s # static void 1159s # org_project_useful_interface_skeleton_class_init (OrgProjectUsefulInterfaceSkeletonClass *klass) 1159s # { 1159s # GObjectClass *gobject_class; 1159s # GDBusInterfaceSkeletonClass *skeleton_class; 1159s # 1159s # gobject_class = G_OBJECT_CLASS (klass); 1159s # gobject_class->finalize = org_project_useful_interface_skeleton_finalize; 1159s # 1159s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 1159s # skeleton_class->get_info = org_project_useful_interface_skeleton_dbus_interface_get_info; 1159s # skeleton_class->get_properties = org_project_useful_interface_skeleton_dbus_interface_get_properties; 1159s # skeleton_class->flush = org_project_useful_interface_skeleton_dbus_interface_flush; 1159s # skeleton_class->get_vtable = org_project_useful_interface_skeleton_dbus_interface_get_vtable; 1159s # 1159s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1159s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceSkeletonPrivate)); 1159s # #endif 1159s # } 1159s # 1159s # static void 1159s # org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 1159s # { 1159s # } 1159s # 1159s # /** 1159s # * org_project_useful_interface_skeleton_new: 1159s # * 1159s # * Creates a skeleton object for the D-Bus interface org.project.UsefulInterface. 1159s # * 1159s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceSkeleton): The skeleton object. 1159s # */ 1159s # OrgProjectUsefulInterface * 1159s # org_project_useful_interface_skeleton_new (void) 1159s # { 1159s # return ORG_PROJECT_USEFUL_INTERFACE (g_object_new (TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, NULL)); 1159s # } 1159s # Error: 1159s # 1159s # /tmp/tmpatbfkbk2/tmpk58_yqlm.xml: 1159s # 1159s # 1159s # 1159s # 1159s # 1159s # 1159s # 1159s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpatbfkbk2/tmpk58_yqlm.xml', '--output', '-', '--body'] 1159s # Return code: 0 1159s # Output: 1159s # /* 1159s # * This file is generated by gdbus-codegen, do not modify it. 1159s # * 1159s # * The license of this code is the same as for the D-Bus interface description 1159s # * it was derived from. Note that it links to GLib, so must comply with the 1159s # * LGPL linking clauses. 1159s # */ 1159s # 1159s # #ifdef HAVE_CONFIG_H 1159s # # include "config.h" 1159s # #endif 1159s # 1159s # #include 1159s # #ifdef G_OS_UNIX 1159s # # include 1159s # #endif 1159s # 1159s # #ifdef G_ENABLE_DEBUG 1159s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 1159s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 1159s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 1159s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 1159s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 1159s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 1159s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 1159s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 1159s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 1159s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 1159s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 1159s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 1159s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 1159s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 1159s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 1159s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 1159s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 1159s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 1159s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 1159s # #else /* !G_ENABLE_DEBUG */ 1159s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 1159s # * Do not access GValues directly in your code. Instead, use the 1159s # * g_value_get_*() functions 1159s # */ 1159s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 1159s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 1159s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 1159s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 1159s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 1159s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 1159s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 1159s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 1159s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 1159s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 1159s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 1159s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 1159s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 1159s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 1159s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 1159s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 1159s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 1159s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 1159s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 1159s # #endif /* !G_ENABLE_DEBUG */ 1159s # 1159s # typedef struct 1159s # { 1159s # GDBusArgInfo parent_struct; 1159s # gboolean use_gvariant; 1159s # } _ExtendedGDBusArgInfo; 1159s # 1159s # typedef struct 1159s # { 1159s # GDBusMethodInfo parent_struct; 1159s # const gchar *signal_name; 1159s # gboolean pass_fdlist; 1159s # } _ExtendedGDBusMethodInfo; 1159s # 1159s # typedef struct 1159s # { 1159s # GDBusSignalInfo parent_struct; 1159s # const gchar *signal_name; 1159s # } _ExtendedGDBusSignalInfo; 1159s # 1159s # typedef struct 1159s # { 1159s # GDBusPropertyInfo parent_struct; 1159s # const gchar *hyphen_name; 1159s # guint use_gvariant : 1; 1159s # guint emits_changed_signal : 1; 1159s # } _ExtendedGDBusPropertyInfo; 1159s # 1159s # typedef struct 1159s # { 1159s # GDBusInterfaceInfo parent_struct; 1159s # const gchar *hyphen_name; 1159s # } _ExtendedGDBusInterfaceInfo; 1159s # 1159s # typedef struct 1159s # { 1159s # const _ExtendedGDBusPropertyInfo *info; 1159s # guint prop_id; 1159s # GValue orig_value; /* the value before the change */ 1159s # } ChangedProperty; 1159s # 1159s # static void 1159s # _changed_property_free (ChangedProperty *data) 1159s # { 1159s # g_value_unset (&data->orig_value); 1159s # g_free (data); 1159s # } 1159s # 1159s # static gboolean 1159s # _g_strv_equal0 (gchar **a, gchar **b) 1159s # { 1159s # gboolean ret = FALSE; 1159s # guint n; 1159s # if (a == NULL && b == NULL) 1159s # { 1159s # ret = TRUE; 1159s # goto out; 1159s # } 1159s # if (a == NULL || b == NULL) 1159s # goto out; 1159s # if (g_strv_length (a) != g_strv_length (b)) 1159s # goto out; 1159s # for (n = 0; a[n] != NULL; n++) 1159s # if (g_strcmp0 (a[n], b[n]) != 0) 1159s # goto out; 1159s # ret = TRUE; 1159s # out: 1159s # return ret; 1159s # } 1159s # 1159s # static gboolean 1159s # _g_variant_equal0 (GVariant *a, GVariant *b) 1159s # { 1159s # gboolean ret = FALSE; 1159s # if (a == NULL && b == NULL) 1159s # { 1159s # ret = TRUE; 1159s # goto out; 1159s # } 1159s # if (a == NULL || b == NULL) 1159s # goto out; 1159s # ret = g_variant_equal (a, b); 1159s # out: 1159s # return ret; 1159s # } 1159s # 1159s # G_GNUC_UNUSED static gboolean 1159s # _g_value_equal (const GValue *a, const GValue *b) 1159s # { 1159s # gboolean ret = FALSE; 1159s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 1159s # switch (G_VALUE_TYPE (a)) 1159s # { 1159s # case G_TYPE_BOOLEAN: 1159s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 1159s # break; 1159s # case G_TYPE_UCHAR: 1159s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 1159s # break; 1159s # case G_TYPE_INT: 1159s # ret = (g_value_get_int (a) == g_value_get_int (b)); 1159s # break; 1159s # case G_TYPE_UINT: 1159s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 1159s # break; 1159s # case G_TYPE_INT64: 1159s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 1159s # break; 1159s # case G_TYPE_UINT64: 1159s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 1159s # break; 1159s # case G_TYPE_DOUBLE: 1159s # { 1159s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 1159s # gdouble da = g_value_get_double (a); 1159s # gdouble db = g_value_get_double (b); 1159s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 1159s # } 1159s # break; 1159s # case G_TYPE_STRING: 1159s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 1159s # break; 1159s # case G_TYPE_VARIANT: 1159s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 1159s # break; 1159s # default: 1159s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 1159s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 1159s # else 1159s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 1159s # break; 1159s # } 1159s # return ret; 1159s # } 1159s # 1159s # static void 1159s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT ( 1159s # GClosure *closure, 1159s # GValue *return_value, 1159s # unsigned int n_param_values, 1159s # const GValue *param_values, 1159s # void *invocation_hint G_GNUC_UNUSED, 1159s # void *marshal_data) 1159s # { 1159s # typedef gboolean (*_GDbusCodegenMarshalBoolean_ObjectFunc) 1159s # (void *data1, 1159s # GDBusMethodInvocation *arg_method_invocation, 1159s # void *data2); 1159s # _GDbusCodegenMarshalBoolean_ObjectFunc callback; 1159s # GCClosure *cc = (GCClosure*) closure; 1159s # void *data1, *data2; 1159s # gboolean v_return; 1159s # 1159s # g_return_if_fail (return_value != NULL); 1159s # g_return_if_fail (n_param_values == 2); 1159s # 1159s # if (G_CCLOSURE_SWAP_DATA (closure)) 1159s # { 1159s # data1 = closure->data; 1159s # data2 = g_value_peek_pointer (param_values + 0); 1159s # } 1159s # else 1159s # { 1159s # data1 = g_value_peek_pointer (param_values + 0); 1159s # data2 = closure->data; 1159s # } 1159s # 1159s # callback = (_GDbusCodegenMarshalBoolean_ObjectFunc) 1159s # (marshal_data ? marshal_data : cc->callback); 1159s # 1159s # v_return = 1159s # callback (data1, 1159s # g_marshal_value_peek_object (param_values + 1), 1159s # data2); 1159s # 1159s # g_value_set_boolean (return_value, v_return); 1159s # } 1159s # 1159s # /* ------------------------------------------------------------------------ 1159s # * Code for interface org.project.UsefulInterface 1159s # * ------------------------------------------------------------------------ 1159s # */ 1159s # 1159s # /** 1159s # * SECTION:OrgProjectUsefulInterface 1159s # * @title: OrgProjectUsefulInterface 1159s # * @short_description: Generated C code for the org.project.UsefulInterface D-Bus interface 1159s # * 1159s # * This section contains code for working with the org.project.UsefulInterface D-Bus interface in C. 1159s # */ 1159s # 1159s # /* ---- Introspection data for org.project.UsefulInterface ---- */ 1159s # 1159s # static const _ExtendedGDBusArgInfo _org_project_useful_interface_method_info_single_arg_method_ay_OUT_ARG_arg_ay = 1159s # { 1159s # { 1159s # -1, 1159s # (gchar *) "arg_ay", 1159s # (gchar *) "ay", 1159s # NULL 1159s # }, 1159s # FALSE 1159s # }; 1159s # 1159s # static const GDBusArgInfo * const _org_project_useful_interface_method_info_single_arg_method_ay_OUT_ARG_pointers[] = 1159s # { 1159s # &_org_project_useful_interface_method_info_single_arg_method_ay_OUT_ARG_arg_ay.parent_struct, 1159s # NULL 1159s # }; 1159s # 1159s # static const _ExtendedGDBusMethodInfo _org_project_useful_interface_method_info_single_arg_method_ay = 1159s # { 1159s # { 1159s # -1, 1159s # (gchar *) "SingleArgMethodAy", 1159s # NULL, 1159s # (GDBusArgInfo **) &_org_project_useful_interface_method_info_single_arg_method_ay_OUT_ARG_pointers, 1159s # NULL 1159s # }, 1159s # "handle-single-arg-method-ay", 1159s # FALSE 1159s # }; 1159s # 1159s # static const GDBusMethodInfo * const _org_project_useful_interface_method_info_pointers[] = 1159s # { 1159s # &_org_project_useful_interface_method_info_single_arg_method_ay.parent_struct, 1159s # NULL 1159s # }; 1159s # 1159s # static const _ExtendedGDBusInterfaceInfo _org_project_useful_interface_interface_info = 1159s # { 1159s # { 1159s # -1, 1159s # (gchar *) "org.project.UsefulInterface", 1159s # (GDBusMethodInfo **) &_org_project_useful_interface_method_info_pointers, 1159s # NULL, 1159s # NULL, 1159s # NULL 1159s # }, 1159s # "org-project-useful-interface", 1159s # }; 1159s # 1159s # 1159s # /** 1159s # * org_project_useful_interface_interface_info: 1159s # * 1159s # * Gets a machine-readable description of the org.project.UsefulInterface D-Bus interface. 1159s # * 1159s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 1159s # */ 1159s # GDBusInterfaceInfo * 1159s # org_project_useful_interface_interface_info (void) 1159s # { 1159s # return (GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct; 1159s # } 1159s # 1159s # /** 1159s # * org_project_useful_interface_override_properties: 1159s # * @klass: The class structure for a #GObject derived class. 1159s # * @property_id_begin: The property id to assign to the first overridden property. 1159s # * 1159s # * Overrides all #GObject properties in the #OrgProjectUsefulInterface interface for a concrete class. 1159s # * The properties are overridden in the order they are defined. 1159s # * 1159s # * Returns: The last property id. 1159s # */ 1159s # guint 1159s # org_project_useful_interface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 1159s # { 1159s # return property_id_begin - 1; 1159s # } 1159s # 1159s # 1159s # inline static void 1159s # org_project_useful_interface_method_marshal_single_arg_method_ay ( 1159s # GClosure *closure, 1159s # GValue *return_value, 1159s # unsigned int n_param_values, 1159s # const GValue *param_values, 1159s # void *invocation_hint, 1159s # void *marshal_data) 1159s # { 1159s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT (closure, 1159s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1159s # } 1159s # 1159s # 1159s # /** 1159s # * OrgProjectUsefulInterface: 1159s # * 1159s # * Abstract interface type for the D-Bus interface org.project.UsefulInterface. 1159s # */ 1159s # 1159s # /** 1159s # * OrgProjectUsefulInterfaceIface: 1159s # * @parent_iface: The parent interface. 1159s # * @handle_single_arg_method_ay: Handler for the #OrgProjectUsefulInterface::handle-single-arg-method-ay signal. 1159s # * 1159s # * Virtual table for the D-Bus interface org.project.UsefulInterface. 1159s # */ 1159s # 1159s # typedef OrgProjectUsefulInterfaceIface OrgProjectUsefulInterfaceInterface; 1159s # G_DEFINE_INTERFACE (OrgProjectUsefulInterface, org_project_useful_interface, G_TYPE_OBJECT) 1159s # 1159s # static void 1159s # org_project_useful_interface_default_init (OrgProjectUsefulInterfaceIface *iface) 1159s # { 1159s # /* GObject signals for incoming D-Bus method calls: */ 1159s # /** 1159s # * OrgProjectUsefulInterface::handle-single-arg-method-ay: 1159s # * @object: A #OrgProjectUsefulInterface. 1159s # * @invocation: A #GDBusMethodInvocation. 1159s # * 1159s # * Signal emitted when a remote caller is invoking the SingleArgMethodAy() D-Bus method. 1159s # * 1159s # * 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. 1159s # * 1159s # * 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. 1159s # */ 1159s # g_signal_new ("handle-single-arg-method-ay", 1159s # G_TYPE_FROM_INTERFACE (iface), 1159s # G_SIGNAL_RUN_LAST, 1159s # G_STRUCT_OFFSET (OrgProjectUsefulInterfaceIface, handle_single_arg_method_ay), 1159s # g_signal_accumulator_true_handled, 1159s # NULL, 1159s # org_project_useful_interface_method_marshal_single_arg_method_ay, 1159s # G_TYPE_BOOLEAN, 1159s # 1, 1159s # G_TYPE_DBUS_METHOD_INVOCATION); 1159s # 1159s # } 1159s # 1159s # /** 1159s # * org_project_useful_interface_call_single_arg_method_ay: 1159s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1159s # * @cancellable: (nullable): A #GCancellable or %NULL. 1159s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL. 1159s # * @user_data: User data to pass to @callback. 1159s # * 1159s # * Asynchronously invokes the SingleArgMethodAy() D-Bus method on @proxy. 1159s # * 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()). 1159s # * You can then call org_project_useful_interface_call_single_arg_method_ay_finish() to get the result of the operation. 1159s # * 1159s # * See org_project_useful_interface_call_single_arg_method_ay_sync() for the synchronous, blocking version of this method. 1159s # */ 1159s # void 1159s # org_project_useful_interface_call_single_arg_method_ay ( 1159s # OrgProjectUsefulInterface *proxy, 1159s # GCancellable *cancellable, 1159s # GAsyncReadyCallback callback, 1159s # gpointer user_data) 1159s # { 1159s # g_dbus_proxy_call (G_DBUS_PROXY (proxy), 1159s # "SingleArgMethodAy", 1159s # g_variant_new ("()"), 1159s # G_DBUS_CALL_FLAGS_NONE, 1159s # -1, 1159s # cancellable, 1159s # callback, 1159s # user_data); 1159s # } 1159s # 1159s # /** 1159s # * org_project_useful_interface_call_single_arg_method_ay_finish: 1159s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1159s # * @out_arg_ay: (out) (optional): Return location for return parameter or %NULL to ignore. 1159s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_call_single_arg_method_ay(). 1159s # * @error: Return location for error or %NULL. 1159s # * 1159s # * Finishes an operation started with org_project_useful_interface_call_single_arg_method_ay(). 1159s # * 1159s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1159s # */ 1159s # gboolean 1159s # org_project_useful_interface_call_single_arg_method_ay_finish ( 1159s # OrgProjectUsefulInterface *proxy, 1159s # gchar **out_arg_ay, 1159s # GAsyncResult *res, 1159s # GError **error) 1159s # { 1159s # GVariant *_ret; 1159s # _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error); 1159s # if (_ret == NULL) 1159s # goto _out; 1159s # g_variant_get (_ret, 1159s # "(^ay)", 1159s # out_arg_ay); 1159s # g_variant_unref (_ret); 1159s # _out: 1159s # return _ret != NULL; 1159s # } 1159s # 1159s # /** 1159s # * org_project_useful_interface_call_single_arg_method_ay_sync: 1159s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1159s # * @out_arg_ay: (out) (optional): Return location for return parameter or %NULL to ignore. 1159s # * @cancellable: (nullable): A #GCancellable or %NULL. 1159s # * @error: Return location for error or %NULL. 1159s # * 1159s # * Synchronously invokes the SingleArgMethodAy() D-Bus method on @proxy. The calling thread is blocked until a reply is received. 1159s # * 1159s # * See org_project_useful_interface_call_single_arg_method_ay() for the asynchronous version of this method. 1159s # * 1159s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1159s # */ 1159s # gboolean 1159s # org_project_useful_interface_call_single_arg_method_ay_sync ( 1159s # OrgProjectUsefulInterface *proxy, 1159s # gchar **out_arg_ay, 1159s # GCancellable *cancellable, 1159s # GError **error) 1159s # { 1159s # GVariant *_ret; 1159s # _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy), 1159s # "SingleArgMethodAy", 1159s # g_variant_new ("()"), 1159s # G_DBUS_CALL_FLAGS_NONE, 1159s # -1, 1159s # cancellable, 1159s # error); 1159s # if (_ret == NULL) 1159s # goto _out; 1159s # g_variant_get (_ret, 1159s # "(^ay)", 1159s # out_arg_ay); 1159s # g_variant_unref (_ret); 1159s # _out: 1159s # return _ret != NULL; 1159s # } 1159s # 1159s # /** 1159s # * org_project_useful_interface_complete_single_arg_method_ay: 1159s # * @object: A #OrgProjectUsefulInterface. 1159s # * @invocation: (transfer full): A #GDBusMethodInvocation. 1159s # * @arg_ay: Parameter to return. 1159s # * 1159s # * 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. 1159s # * 1159s # * This method will free @invocation, you cannot use it afterwards. 1159s # */ 1159s # void 1159s # org_project_useful_interface_complete_single_arg_method_ay ( 1159s # OrgProjectUsefulInterface *object G_GNUC_UNUSED, 1159s # GDBusMethodInvocation *invocation, 1159s # const gchar *arg_ay) 1159s # { 1159s # g_dbus_method_invocation_return_value (invocation, 1159s # g_variant_new ("(^ay)", 1159s # arg_ay)); 1159s # } 1159s # 1159s # /* ------------------------------------------------------------------------ */ 1159s # 1159s # /** 1159s # * OrgProjectUsefulInterfaceProxy: 1159s # * 1159s # * The #OrgProjectUsefulInterfaceProxy structure contains only private data and should only be accessed using the provided API. 1159s # */ 1159s # 1159s # /** 1159s # * OrgProjectUsefulInterfaceProxyClass: 1159s # * @parent_class: The parent class. 1159s # * 1159s # * Class structure for #OrgProjectUsefulInterfaceProxy. 1159s # */ 1159s # 1159s # struct _OrgProjectUsefulInterfaceProxyPrivate 1159s # { 1159s # GData *qdata; 1159s # }; 1159s # 1159s # static void org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface); 1159s # 1159s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1159s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 1159s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceProxy) 1159s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 1159s # 1159s # #else 1159s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 1159s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 1159s # 1159s # #endif 1159s # static void 1159s # org_project_useful_interface_proxy_finalize (GObject *object) 1159s # { 1159s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (object); 1159s # g_datalist_clear (&proxy->priv->qdata); 1159s # G_OBJECT_CLASS (org_project_useful_interface_proxy_parent_class)->finalize (object); 1159s # } 1159s # 1159s # static void 1159s # org_project_useful_interface_proxy_get_property (GObject *object G_GNUC_UNUSED, 1159s # guint prop_id G_GNUC_UNUSED, 1159s # GValue *value G_GNUC_UNUSED, 1159s # GParamSpec *pspec G_GNUC_UNUSED) 1159s # { 1159s # } 1159s # 1159s # static void 1159s # org_project_useful_interface_proxy_set_property (GObject *object G_GNUC_UNUSED, 1159s # guint prop_id G_GNUC_UNUSED, 1159s # const GValue *value G_GNUC_UNUSED, 1159s # GParamSpec *pspec G_GNUC_UNUSED) 1159s # { 1159s # } 1159s # 1159s # static void 1159s # org_project_useful_interface_proxy_g_signal (GDBusProxy *proxy, 1159s # const gchar *sender_name G_GNUC_UNUSED, 1159s # const gchar *signal_name, 1159s # GVariant *parameters) 1159s # { 1159s # _ExtendedGDBusSignalInfo *info; 1159s # GVariantIter iter; 1159s # GVariant *child; 1159s # GValue *paramv; 1159s # gsize num_params; 1159s # gsize n; 1159s # guint signal_id; 1159s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, signal_name); 1159s # if (info == NULL) 1159s # return; 1159s # num_params = g_variant_n_children (parameters); 1159s # paramv = g_new0 (GValue, num_params + 1); 1159s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1159s # g_value_set_object (¶mv[0], proxy); 1159s # g_variant_iter_init (&iter, parameters); 1159s # n = 1; 1159s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1159s # { 1159s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 1159s # if (arg_info->use_gvariant) 1159s # { 1159s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1159s # g_value_set_variant (¶mv[n], child); 1159s # n++; 1159s # } 1159s # else 1159s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1159s # g_variant_unref (child); 1159s # } 1159s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1159s # g_signal_emitv (paramv, signal_id, 0, NULL); 1159s # for (n = 0; n < num_params + 1; n++) 1159s # g_value_unset (¶mv[n]); 1159s # g_free (paramv); 1159s # } 1159s # 1159s # static void 1159s # org_project_useful_interface_proxy_g_properties_changed (GDBusProxy *_proxy, 1159s # GVariant *changed_properties, 1159s # const gchar *const *invalidated_properties) 1159s # { 1159s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (_proxy); 1159s # guint n; 1159s # const gchar *key; 1159s # GVariantIter *iter; 1159s # _ExtendedGDBusPropertyInfo *info; 1159s # g_variant_get (changed_properties, "a{sv}", &iter); 1159s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 1159s # { 1159s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, key); 1159s # g_datalist_remove_data (&proxy->priv->qdata, key); 1159s # if (info != NULL) 1159s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1159s # } 1159s # g_variant_iter_free (iter); 1159s # for (n = 0; invalidated_properties[n] != NULL; n++) 1159s # { 1159s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, invalidated_properties[n]); 1159s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 1159s # if (info != NULL) 1159s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1159s # } 1159s # } 1159s # 1159s # static void 1159s # org_project_useful_interface_proxy_init (OrgProjectUsefulInterfaceProxy *proxy) 1159s # { 1159s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1159s # proxy->priv = org_project_useful_interface_proxy_get_instance_private (proxy); 1159s # #else 1159s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY, OrgProjectUsefulInterfaceProxyPrivate); 1159s # #endif 1159s # 1159s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_useful_interface_interface_info ()); 1159s # } 1159s # 1159s # static void 1159s # org_project_useful_interface_proxy_class_init (OrgProjectUsefulInterfaceProxyClass *klass) 1159s # { 1159s # GObjectClass *gobject_class; 1159s # GDBusProxyClass *proxy_class; 1159s # 1159s # gobject_class = G_OBJECT_CLASS (klass); 1159s # gobject_class->finalize = org_project_useful_interface_proxy_finalize; 1159s # gobject_class->get_property = org_project_useful_interface_proxy_get_property; 1159s # gobject_class->set_property = org_project_useful_interface_proxy_set_property; 1159s # 1159s # proxy_class = G_DBUS_PROXY_CLASS (klass); 1159s # proxy_class->g_signal = org_project_useful_interface_proxy_g_signal; 1159s # proxy_class->g_properties_changed = org_project_useful_interface_proxy_g_properties_changed; 1159s # 1159s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1159s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceProxyPrivate)); 1159s # #endif 1159s # } 1159s # 1159s # static void 1159s # org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 1159s # { 1159s # } 1159s # 1159s # /** 1159s # * org_project_useful_interface_proxy_new: 1159s # * @connection: A #GDBusConnection. 1159s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1159s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1159s # * @object_path: An object path. 1159s # * @cancellable: (nullable): A #GCancellable or %NULL. 1159s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1159s # * @user_data: User data to pass to @callback. 1159s # * 1159s # * Asynchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new() for more details. 1159s # * 1159s # * 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()). 1159s # * You can then call org_project_useful_interface_proxy_new_finish() to get the result of the operation. 1159s # * 1159s # * See org_project_useful_interface_proxy_new_sync() for the synchronous, blocking version of this constructor. 1159s # */ 1159s # void 1159s # org_project_useful_interface_proxy_new ( 1159s # GDBusConnection *connection, 1159s # GDBusProxyFlags flags, 1159s # const gchar *name, 1159s # const gchar *object_path, 1159s # GCancellable *cancellable, 1159s # GAsyncReadyCallback callback, 1159s # gpointer user_data) 1159s # { 1159s # 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); 1159s # } 1159s # 1159s # /** 1159s # * org_project_useful_interface_proxy_new_finish: 1159s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new(). 1159s # * @error: Return location for error or %NULL 1159s # * 1159s # * Finishes an operation started with org_project_useful_interface_proxy_new(). 1159s # * 1159s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1159s # */ 1159s # OrgProjectUsefulInterface * 1159s # org_project_useful_interface_proxy_new_finish ( 1159s # GAsyncResult *res, 1159s # GError **error) 1159s # { 1159s # GObject *ret; 1159s # GObject *source_object; 1159s # source_object = g_async_result_get_source_object (res); 1159s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1159s # g_object_unref (source_object); 1159s # if (ret != NULL) 1159s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1159s # else 1159s # return NULL; 1159s # } 1159s # 1159s # /** 1159s # * org_project_useful_interface_proxy_new_sync: 1159s # * @connection: A #GDBusConnection. 1159s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1159s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1159s # * @object_path: An object path. 1159s # * @cancellable: (nullable): A #GCancellable or %NULL. 1159s # * @error: Return location for error or %NULL 1159s # * 1159s # * Synchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new_sync() for more details. 1159s # * 1159s # * The calling thread is blocked until a reply is received. 1159s # * 1159s # * See org_project_useful_interface_proxy_new() for the asynchronous version of this constructor. 1159s # * 1159s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1159s # */ 1159s # OrgProjectUsefulInterface * 1159s # org_project_useful_interface_proxy_new_sync ( 1159s # GDBusConnection *connection, 1159s # GDBusProxyFlags flags, 1159s # const gchar *name, 1159s # const gchar *object_path, 1159s # GCancellable *cancellable, 1159s # GError **error) 1159s # { 1159s # GInitable *ret; 1159s # 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); 1159s # if (ret != NULL) 1159s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1159s # else 1159s # return NULL; 1159s # } 1159s # 1159s # 1159s # /** 1159s # * org_project_useful_interface_proxy_new_for_bus: 1159s # * @bus_type: A #GBusType. 1159s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1159s # * @name: A bus name (well-known or unique). 1159s # * @object_path: An object path. 1159s # * @cancellable: (nullable): A #GCancellable or %NULL. 1159s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1159s # * @user_data: User data to pass to @callback. 1159s # * 1159s # * Like org_project_useful_interface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 1159s # * 1159s # * 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()). 1159s # * You can then call org_project_useful_interface_proxy_new_for_bus_finish() to get the result of the operation. 1159s # * 1159s # * See org_project_useful_interface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 1159s # */ 1159s # void 1159s # org_project_useful_interface_proxy_new_for_bus ( 1159s # GBusType bus_type, 1159s # GDBusProxyFlags flags, 1159s # const gchar *name, 1159s # const gchar *object_path, 1159s # GCancellable *cancellable, 1159s # GAsyncReadyCallback callback, 1159s # gpointer user_data) 1159s # { 1159s # 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); 1159s # } 1159s # 1159s # /** 1159s # * org_project_useful_interface_proxy_new_for_bus_finish: 1159s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new_for_bus(). 1159s # * @error: Return location for error or %NULL 1159s # * 1159s # * Finishes an operation started with org_project_useful_interface_proxy_new_for_bus(). 1159s # * 1159s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1159s # */ 1159s # OrgProjectUsefulInterface * 1159s # org_project_useful_interface_proxy_new_for_bus_finish ( 1159s # GAsyncResult *res, 1159s # GError **error) 1159s # { 1159s # GObject *ret; 1159s # GObject *source_object; 1159s # source_object = g_async_result_get_source_object (res); 1159s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1159s # g_object_unref (source_object); 1159s # if (ret != NULL) 1159s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1159s # else 1159s # return NULL; 1159s # } 1159s # 1159s # /** 1159s # * org_project_useful_interface_proxy_new_for_bus_sync: 1159s # * @bus_type: A #GBusType. 1159s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1159s # * @name: A bus name (well-known or unique). 1159s # * @object_path: An object path. 1159s # * @cancellable: (nullable): A #GCancellable or %NULL. 1159s # * @error: Return location for error or %NULL 1159s # * 1159s # * Like org_project_useful_interface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 1159s # * 1159s # * The calling thread is blocked until a reply is received. 1159s # * 1159s # * See org_project_useful_interface_proxy_new_for_bus() for the asynchronous version of this constructor. 1159s # * 1159s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1159s # */ 1159s # OrgProjectUsefulInterface * 1159s # org_project_useful_interface_proxy_new_for_bus_sync ( 1159s # GBusType bus_type, 1159s # GDBusProxyFlags flags, 1159s # const gchar *name, 1159s # const gchar *object_path, 1159s # GCancellable *cancellable, 1159s # GError **error) 1159s # { 1159s # GInitable *ret; 1159s # 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); 1159s # if (ret != NULL) 1159s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1159s # else 1159s # return NULL; 1159s # } 1159s # 1159s # 1159s # /* ------------------------------------------------------------------------ */ 1159s # 1159s # /** 1159s # * OrgProjectUsefulInterfaceSkeleton: 1159s # * 1159s # * The #OrgProjectUsefulInterfaceSkeleton structure contains only private data and should only be accessed using the provided API. 1159s # */ 1159s # 1159s # /** 1159s # * OrgProjectUsefulInterfaceSkeletonClass: 1159s # * @parent_class: The parent class. 1159s # * 1159s # * Class structure for #OrgProjectUsefulInterfaceSkeleton. 1159s # */ 1159s # 1159s # struct _OrgProjectUsefulInterfaceSkeletonPrivate 1159s # { 1159s # GValue *properties; 1159s # GList *changed_properties; 1159s # GSource *changed_properties_idle_source; 1159s # GMainContext *context; 1159s # GMutex lock; 1159s # }; 1159s # 1159s # static void 1159s # _org_project_useful_interface_skeleton_handle_method_call ( 1159s # GDBusConnection *connection G_GNUC_UNUSED, 1159s # const gchar *sender G_GNUC_UNUSED, 1159s # const gchar *object_path G_GNUC_UNUSED, 1159s # const gchar *interface_name, 1159s # const gchar *method_name, 1159s # GVariant *parameters, 1159s # GDBusMethodInvocation *invocation, 1159s # gpointer user_data) 1159s # { 1159s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1159s # _ExtendedGDBusMethodInfo *info; 1159s # GVariantIter iter; 1159s # GVariant *child; 1159s # GValue *paramv; 1159s # gsize num_params; 1159s # guint num_extra; 1159s # gsize n; 1159s # guint signal_id; 1159s # GValue return_value = G_VALUE_INIT; 1159s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 1159s # g_assert (info != NULL); 1159s # num_params = g_variant_n_children (parameters); 1159s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 1159s # n = 0; 1159s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1159s # g_value_set_object (¶mv[n++], skeleton); 1159s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 1159s # g_value_set_object (¶mv[n++], invocation); 1159s # if (info->pass_fdlist) 1159s # { 1159s # #ifdef G_OS_UNIX 1159s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 1159s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 1159s # #else 1159s # g_assert_not_reached (); 1159s # #endif 1159s # } 1159s # g_variant_iter_init (&iter, parameters); 1159s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1159s # { 1159s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 1159s # if (arg_info->use_gvariant) 1159s # { 1159s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1159s # g_value_set_variant (¶mv[n], child); 1159s # n++; 1159s # } 1159s # else 1159s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1159s # g_variant_unref (child); 1159s # } 1159s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1159s # g_value_init (&return_value, G_TYPE_BOOLEAN); 1159s # g_signal_emitv (paramv, signal_id, 0, &return_value); 1159s # if (!g_value_get_boolean (&return_value)) 1159s # 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); 1159s # g_value_unset (&return_value); 1159s # for (n = 0; n < num_params + num_extra; n++) 1159s # g_value_unset (¶mv[n]); 1159s # g_free (paramv); 1159s # } 1159s # 1159s # static GVariant * 1159s # _org_project_useful_interface_skeleton_handle_get_property ( 1159s # GDBusConnection *connection G_GNUC_UNUSED, 1159s # const gchar *sender G_GNUC_UNUSED, 1159s # const gchar *object_path G_GNUC_UNUSED, 1159s # const gchar *interface_name G_GNUC_UNUSED, 1159s # const gchar *property_name, 1159s # GError **error, 1159s # gpointer user_data) 1159s # { 1159s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1159s # GValue value = G_VALUE_INIT; 1159s # GParamSpec *pspec; 1159s # _ExtendedGDBusPropertyInfo *info; 1159s # GVariant *ret; 1159s # ret = NULL; 1159s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 1159s # g_assert (info != NULL); 1159s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1159s # if (pspec == NULL) 1159s # { 1159s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1159s # } 1159s # else 1159s # { 1159s # g_value_init (&value, pspec->value_type); 1159s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1159s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 1159s # g_value_unset (&value); 1159s # } 1159s # return ret; 1159s # } 1159s # 1159s # static gboolean 1159s # _org_project_useful_interface_skeleton_handle_set_property ( 1159s # GDBusConnection *connection G_GNUC_UNUSED, 1159s # const gchar *sender G_GNUC_UNUSED, 1159s # const gchar *object_path G_GNUC_UNUSED, 1159s # const gchar *interface_name G_GNUC_UNUSED, 1159s # const gchar *property_name, 1159s # GVariant *variant, 1159s # GError **error, 1159s # gpointer user_data) 1159s # { 1159s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1159s # GValue value = G_VALUE_INIT; 1159s # GParamSpec *pspec; 1159s # _ExtendedGDBusPropertyInfo *info; 1159s # gboolean ret; 1159s # ret = FALSE; 1159s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 1159s # g_assert (info != NULL); 1159s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1159s # if (pspec == NULL) 1159s # { 1159s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1159s # } 1159s # else 1159s # { 1159s # if (info->use_gvariant) 1159s # g_value_set_variant (&value, variant); 1159s # else 1159s # g_dbus_gvariant_to_gvalue (variant, &value); 1159s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1159s # g_value_unset (&value); 1159s # ret = TRUE; 1159s # } 1159s # return ret; 1159s # } 1159s # 1159s # static const GDBusInterfaceVTable _org_project_useful_interface_skeleton_vtable = 1159s # { 1159s # _org_project_useful_interface_skeleton_handle_method_call, 1159s # _org_project_useful_interface_skeleton_handle_get_property, 1159s # _org_project_useful_interface_skeleton_handle_set_property, 1159s # {NULL} 1159s # }; 1159s # 1159s # static GDBusInterfaceInfo * 1159s # org_project_useful_interface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1159s # { 1159s # return org_project_useful_interface_interface_info (); 1159s # } 1159s # 1159s # static GDBusInterfaceVTable * 1159s # org_project_useful_interface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1159s # { 1159s # return (GDBusInterfaceVTable *) &_org_project_useful_interface_skeleton_vtable; 1159s # } 1159s # 1159s # static GVariant * 1159s # org_project_useful_interface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 1159s # { 1159s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (_skeleton); 1159s # 1159s # GVariantBuilder builder; 1159s # guint n; 1159s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 1159s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 1159s # #else 1159s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 1159s # #endif 1159s # if (_org_project_useful_interface_interface_info.parent_struct.properties == NULL) 1159s # goto out; 1159s # for (n = 0; _org_project_useful_interface_interface_info.parent_struct.properties[n] != NULL; n++) 1159s # { 1159s # GDBusPropertyInfo *info = _org_project_useful_interface_interface_info.parent_struct.properties[n]; 1159s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 1159s # { 1159s # GVariant *value; 1159s # 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); 1159s # if (value != NULL) 1159s # { 1159s # g_variant_take_ref (value); 1159s # g_variant_builder_add (&builder, "{sv}", info->name, value); 1159s # g_variant_unref (value); 1159s # } 1159s # } 1159s # } 1159s # out: 1159s # return g_variant_builder_end (&builder); 1159s # } 1159s # 1159s # static void 1159s # org_project_useful_interface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 1159s # { 1159s # } 1159s # 1159s # static void org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface); 1159s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1159s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1159s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceSkeleton) 1159s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 1159s # 1159s # #else 1159s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1159s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 1159s # 1159s # #endif 1159s # static void 1159s # org_project_useful_interface_skeleton_finalize (GObject *object) 1159s # { 1159s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (object); 1159s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 1159s # if (skeleton->priv->changed_properties_idle_source != NULL) 1159s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 1159s # g_main_context_unref (skeleton->priv->context); 1159s # g_mutex_clear (&skeleton->priv->lock); 1159s # G_OBJECT_CLASS (org_project_useful_interface_skeleton_parent_class)->finalize (object); 1159s # } 1159s # 1159s # static void 1159s # org_project_useful_interface_skeleton_init (OrgProjectUsefulInterfaceSkeleton *skeleton) 1159s # { 1159s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1159s # skeleton->priv = org_project_useful_interface_skeleton_get_instance_private (skeleton); 1159s # #else 1159s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, OrgProjectUsefulInterfaceSkeletonPrivate); 1159s # #endif 1159s # 1159s # g_mutex_init (&skeleton->priv->lock); 1159s # skeleton->priv->context = g_main_context_ref_thread_default (); 1159s # } 1159s # 1159s # static void 1159s # org_project_useful_interface_skeleton_class_init (OrgProjectUsefulInterfaceSkeletonClass *klass) 1159s # { 1159s # GObjectClass *gobject_class; 1159s # GDBusInterfaceSkeletonClass *skeleton_class; 1159s # 1159s # gobject_class = G_OBJECT_CLASS (klass); 1159s # gobject_class->finalize = org_project_useful_interface_skeleton_finalize; 1159s # 1159s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 1159s # skeleton_class->get_info = org_project_useful_interface_skeleton_dbus_interface_get_info; 1159s # skeleton_class->get_properties = org_project_useful_interface_skeleton_dbus_interface_get_properties; 1159s # skeleton_class->flush = org_project_useful_interface_skeleton_dbus_interface_flush; 1159s # skeleton_class->get_vtable = org_project_useful_interface_skeleton_dbus_interface_get_vtable; 1159s # 1159s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1159s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceSkeletonPrivate)); 1159s # #endif 1159s # } 1159s # 1159s # static void 1159s # org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 1159s # { 1159s # } 1159s # 1159s # /** 1159s # * org_project_useful_interface_skeleton_new: 1159s # * 1159s # * Creates a skeleton object for the D-Bus interface org.project.UsefulInterface. 1159s # * 1159s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceSkeleton): The skeleton object. 1159s # */ 1159s # OrgProjectUsefulInterface * 1159s # org_project_useful_interface_skeleton_new (void) 1159s # { 1159s # return ORG_PROJECT_USEFUL_INTERFACE (g_object_new (TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, NULL)); 1159s # } 1159s # Error: 1159s # 1159s # /tmp/tmpatbfkbk2/tmp_f7shfi8.xml: 1159s # 1159s # 1159s # 1159s # 1159s # 1159s # 1159s # 1159s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpatbfkbk2/tmp_f7shfi8.xml', '--output', '-', '--body'] 1159s # Return code: 0 1159s # Output: 1159s # /* 1159s # * This file is generated by gdbus-codegen, do not modify it. 1159s # * 1159s # * The license of this code is the same as for the D-Bus interface description 1159s # * it was derived from. Note that it links to GLib, so must comply with the 1159s # * LGPL linking clauses. 1159s # */ 1159s # 1159s # #ifdef HAVE_CONFIG_H 1159s # # include "config.h" 1159s # #endif 1159s # 1159s # #include 1159s # #ifdef G_OS_UNIX 1159s # # include 1159s # #endif 1159s # 1159s # #ifdef G_ENABLE_DEBUG 1159s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 1159s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 1159s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 1159s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 1159s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 1159s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 1159s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 1159s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 1159s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 1159s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 1159s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 1159s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 1159s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 1159s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 1159s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 1159s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 1159s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 1159s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 1159s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 1159s # #else /* !G_ENABLE_DEBUG */ 1159s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 1159s # * Do not access GValues directly in your code. Instead, use the 1159s # * g_value_get_*() functions 1159s # */ 1159s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 1159s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 1159s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 1159s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 1159s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 1159s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 1159s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 1159s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 1159s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 1159s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 1159s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 1159s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 1159s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 1159s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 1159s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 1159s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 1159s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 1159s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 1159s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 1159s # #endif /* !G_ENABLE_DEBUG */ 1159s # 1159s # typedef struct 1159s # { 1159s # GDBusArgInfo parent_struct; 1159s # gboolean use_gvariant; 1159s # } _ExtendedGDBusArgInfo; 1159s # 1159s # typedef struct 1159s # { 1159s # GDBusMethodInfo parent_struct; 1159s # const gchar *signal_name; 1159s # gboolean pass_fdlist; 1159s # } _ExtendedGDBusMethodInfo; 1159s # 1159s # typedef struct 1159s # { 1159s # GDBusSignalInfo parent_struct; 1159s # const gchar *signal_name; 1159s # } _ExtendedGDBusSignalInfo; 1159s # 1159s # typedef struct 1159s # { 1159s # GDBusPropertyInfo parent_struct; 1159s # const gchar *hyphen_name; 1159s # guint use_gvariant : 1; 1159s # guint emits_changed_signal : 1; 1159s # } _ExtendedGDBusPropertyInfo; 1159s # 1159s # typedef struct 1159s # { 1159s # GDBusInterfaceInfo parent_struct; 1159s # const gchar *hyphen_name; 1159s # } _ExtendedGDBusInterfaceInfo; 1159s # 1159s # typedef struct 1159s # { 1159s # const _ExtendedGDBusPropertyInfo *info; 1159s # guint prop_id; 1159s # GValue orig_value; /* the value before the change */ 1159s # } ChangedProperty; 1159s # 1159s # static void 1159s # _changed_property_free (ChangedProperty *data) 1159s # { 1159s # g_value_unset (&data->orig_value); 1159s # g_free (data); 1159s # } 1159s # 1159s # static gboolean 1159s # _g_strv_equal0 (gchar **a, gchar **b) 1159s # { 1159s # gboolean ret = FALSE; 1159s # guint n; 1159s # if (a == NULL && b == NULL) 1159s # { 1159s # ret = TRUE; 1159s # goto out; 1159s # } 1159s # if (a == NULL || b == NULL) 1159s # goto out; 1159s # if (g_strv_length (a) != g_strv_length (b)) 1159s # goto out; 1159s # for (n = 0; a[n] != NULL; n++) 1159s # if (g_strcmp0 (a[n], b[n]) != 0) 1159s # goto out; 1159s # ret = TRUE; 1159s # out: 1159s # return ret; 1159s # } 1159s # 1159s # static gboolean 1159s # _g_variant_equal0 (GVariant *a, GVariant *b) 1159s # { 1159s # gboolean ret = FALSE; 1159s # if (a == NULL && b == NULL) 1159s # { 1159s # ret = TRUE; 1159s # goto out; 1159s # } 1159s # if (a == NULL || b == NULL) 1159s # goto out; 1159s # ret = g_variant_equal (a, b); 1159s # out: 1159s # return ret; 1159s # } 1159s # 1159s # G_GNUC_UNUSED static gboolean 1159s # _g_value_equal (const GValue *a, const GValue *b) 1159s # { 1159s # gboolean ret = FALSE; 1159s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 1159s # switch (G_VALUE_TYPE (a)) 1159s # { 1159s # case G_TYPE_BOOLEAN: 1159s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 1159s # break; 1159s # case G_TYPE_UCHAR: 1159s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 1159s # break; 1159s # case G_TYPE_INT: 1159s # ret = (g_value_get_int (a) == g_value_get_int (b)); 1159s # break; 1159s # case G_TYPE_UINT: 1159s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 1159s # break; 1159s # case G_TYPE_INT64: 1159s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 1159s # break; 1159s # case G_TYPE_UINT64: 1159s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 1159s # break; 1159s # case G_TYPE_DOUBLE: 1159s # { 1159s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 1159s # gdouble da = g_value_get_double (a); 1159s # gdouble db = g_value_get_double (b); 1159s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 1159s # } 1159s # break; 1159s # case G_TYPE_STRING: 1159s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 1159s # break; 1159s # case G_TYPE_VARIANT: 1159s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 1159s # break; 1159s # default: 1159s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 1159s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 1159s # else 1159s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 1159s # break; 1159s # } 1159s # return ret; 1159s # } 1159s # 1159s # static void 1159s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT ( 1159s # GClosure *closure, 1159s # GValue *return_value, 1159s # unsigned int n_param_values, 1159s # const GValue *param_values, 1159s # void *invocation_hint G_GNUC_UNUSED, 1159s # void *marshal_data) 1159s # { 1159s # typedef gboolean (*_GDbusCodegenMarshalBoolean_ObjectFunc) 1159s # (void *data1, 1159s # GDBusMethodInvocation *arg_method_invocation, 1159s # void *data2); 1159s # _GDbusCodegenMarshalBoolean_ObjectFunc callback; 1159s # GCClosure *cc = (GCClosure*) closure; 1159s # void *data1, *data2; 1159s # gboolean v_return; 1159s # 1159s # g_return_if_fail (return_value != NULL); 1159s # g_return_if_fail (n_param_values == 2); 1159s # 1159s # if (G_CCLOSURE_SWAP_DATA (closure)) 1159s # { 1159s # data1 = closure->data; 1159s # data2 = g_value_peek_pointer (param_values + 0); 1159s # } 1159s # else 1159s # { 1159s # data1 = g_value_peek_pointer (param_values + 0); 1159s # data2 = closure->data; 1159s # } 1159s # 1159s # callback = (_GDbusCodegenMarshalBoolean_ObjectFunc) 1159s # (marshal_data ? marshal_data : cc->callback); 1159s # 1159s # v_return = 1159s # callback (data1, 1159s # g_marshal_value_peek_object (param_values + 1), 1159s # data2); 1159s # 1159s # g_value_set_boolean (return_value, v_return); 1159s # } 1159s # 1159s # /* ------------------------------------------------------------------------ 1159s # * Code for interface org.project.UsefulInterface 1159s # * ------------------------------------------------------------------------ 1159s # */ 1159s # 1159s # /** 1159s # * SECTION:OrgProjectUsefulInterface 1159s # * @title: OrgProjectUsefulInterface 1159s # * @short_description: Generated C code for the org.project.UsefulInterface D-Bus interface 1159s # * 1159s # * This section contains code for working with the org.project.UsefulInterface D-Bus interface in C. 1159s # */ 1159s # 1159s # /* ---- Introspection data for org.project.UsefulInterface ---- */ 1159s # 1159s # static const _ExtendedGDBusArgInfo _org_project_useful_interface_method_info_single_arg_method_as_OUT_ARG_arg_as = 1159s # { 1159s # { 1159s # -1, 1159s # (gchar *) "arg_as", 1159s # (gchar *) "as", 1159s # NULL 1159s # }, 1159s # FALSE 1159s # }; 1159s # 1159s # static const GDBusArgInfo * const _org_project_useful_interface_method_info_single_arg_method_as_OUT_ARG_pointers[] = 1159s # { 1159s # &_org_project_useful_interface_method_info_single_arg_method_as_OUT_ARG_arg_as.parent_struct, 1159s # NULL 1159s # }; 1159s # 1159s # static const _ExtendedGDBusMethodInfo _org_project_useful_interface_method_info_single_arg_method_as = 1159s # { 1159s # { 1159s # -1, 1159s # (gchar *) "SingleArgMethodAs", 1159s # NULL, 1159s # (GDBusArgInfo **) &_org_project_useful_interface_method_info_single_arg_method_as_OUT_ARG_pointers, 1159s # NULL 1159s # }, 1159s # "handle-single-arg-method-as", 1159s # FALSE 1159s # }; 1159s # 1159s # static const GDBusMethodInfo * const _org_project_useful_interface_method_info_pointers[] = 1159s # { 1159s # &_org_project_useful_interface_method_info_single_arg_method_as.parent_struct, 1159s # NULL 1159s # }; 1159s # 1159s # static const _ExtendedGDBusInterfaceInfo _org_project_useful_interface_interface_info = 1159s # { 1159s # { 1159s # -1, 1159s # (gchar *) "org.project.UsefulInterface", 1159s # (GDBusMethodInfo **) &_org_project_useful_interface_method_info_pointers, 1159s # NULL, 1159s # NULL, 1159s # NULL 1159s # }, 1159s # "org-project-useful-interface", 1159s # }; 1159s # 1159s # 1159s # /** 1159s # * org_project_useful_interface_interface_info: 1159s # * 1159s # * Gets a machine-readable description of the org.project.UsefulInterface D-Bus interface. 1159s # * 1159s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 1159s # */ 1159s # GDBusInterfaceInfo * 1159s # org_project_useful_interface_interface_info (void) 1159s # { 1159s # return (GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct; 1159s # } 1159s # 1159s # /** 1159s # * org_project_useful_interface_override_properties: 1159s # * @klass: The class structure for a #GObject derived class. 1159s # * @property_id_begin: The property id to assign to the first overridden property. 1159s # * 1159s # * Overrides all #GObject properties in the #OrgProjectUsefulInterface interface for a concrete class. 1159s # * The properties are overridden in the order they are defined. 1159s # * 1159s # * Returns: The last property id. 1159s # */ 1159s # guint 1159s # org_project_useful_interface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 1159s # { 1159s # return property_id_begin - 1; 1159s # } 1159s # 1159s # 1159s # inline static void 1159s # org_project_useful_interface_method_marshal_single_arg_method_as ( 1159s # GClosure *closure, 1159s # GValue *return_value, 1159s # unsigned int n_param_values, 1159s # const GValue *param_values, 1159s # void *invocation_hint, 1159s # void *marshal_data) 1159s # { 1159s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT (closure, 1159s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1159s # } 1159s # 1159s # 1159s # /** 1159s # * OrgProjectUsefulInterface: 1159s # * 1159s # * Abstract interface type for the D-Bus interface org.project.UsefulInterface. 1159s # */ 1159s # 1159s # /** 1159s # * OrgProjectUsefulInterfaceIface: 1159s # * @parent_iface: The parent interface. 1159s # * @handle_single_arg_method_as: Handler for the #OrgProjectUsefulInterface::handle-single-arg-method-as signal. 1159s # * 1159s # * Virtual table for the D-Bus interface org.project.UsefulInterface. 1159s # */ 1159s # 1159s # typedef OrgProjectUsefulInterfaceIface OrgProjectUsefulInterfaceInterface; 1159s # G_DEFINE_INTERFACE (OrgProjectUsefulInterface, org_project_useful_interface, G_TYPE_OBJECT) 1159s # 1159s # static void 1159s # org_project_useful_interface_default_init (OrgProjectUsefulInterfaceIface *iface) 1159s # { 1159s # /* GObject signals for incoming D-Bus method calls: */ 1159s # /** 1159s # * OrgProjectUsefulInterface::handle-single-arg-method-as: 1159s # * @object: A #OrgProjectUsefulInterface. 1159s # * @invocation: A #GDBusMethodInvocation. 1159s # * 1159s # * Signal emitted when a remote caller is invoking the SingleArgMethodAs() D-Bus method. 1159s # * 1159s # * 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. 1159s # * 1159s # * 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. 1159s # */ 1159s # g_signal_new ("handle-single-arg-method-as", 1159s # G_TYPE_FROM_INTERFACE (iface), 1159s # G_SIGNAL_RUN_LAST, 1159s # G_STRUCT_OFFSET (OrgProjectUsefulInterfaceIface, handle_single_arg_method_as), 1159s # g_signal_accumulator_true_handled, 1159s # NULL, 1159s # org_project_useful_interface_method_marshal_single_arg_method_as, 1159s # G_TYPE_BOOLEAN, 1159s # 1, 1159s # G_TYPE_DBUS_METHOD_INVOCATION); 1159s # 1159s # } 1159s # 1159s # /** 1159s # * org_project_useful_interface_call_single_arg_method_as: 1159s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1159s # * @cancellable: (nullable): A #GCancellable or %NULL. 1159s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL. 1159s # * @user_data: User data to pass to @callback. 1159s # * 1159s # * Asynchronously invokes the SingleArgMethodAs() D-Bus method on @proxy. 1159s # * 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()). 1159s # * You can then call org_project_useful_interface_call_single_arg_method_as_finish() to get the result of the operation. 1159s # * 1159s # * See org_project_useful_interface_call_single_arg_method_as_sync() for the synchronous, blocking version of this method. 1159s # */ 1159s # void 1159s # org_project_useful_interface_call_single_arg_method_as ( 1159s # OrgProjectUsefulInterface *proxy, 1159s # GCancellable *cancellable, 1159s # GAsyncReadyCallback callback, 1159s # gpointer user_data) 1159s # { 1159s # g_dbus_proxy_call (G_DBUS_PROXY (proxy), 1159s # "SingleArgMethodAs", 1159s # g_variant_new ("()"), 1159s # G_DBUS_CALL_FLAGS_NONE, 1159s # -1, 1159s # cancellable, 1159s # callback, 1159s # user_data); 1159s # } 1159s # 1159s # /** 1159s # * org_project_useful_interface_call_single_arg_method_as_finish: 1159s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1159s # * @out_arg_as: (out) (optional) (array zero-terminated=1): Return location for return parameter or %NULL to ignore. 1159s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_call_single_arg_method_as(). 1159s # * @error: Return location for error or %NULL. 1159s # * 1159s # * Finishes an operation started with org_project_useful_interface_call_single_arg_method_as(). 1159s # * 1159s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1159s # */ 1159s # gboolean 1159s # org_project_useful_interface_call_single_arg_method_as_finish ( 1159s # OrgProjectUsefulInterface *proxy, 1159s # gchar ***out_arg_as, 1159s # GAsyncResult *res, 1159s # GError **error) 1159s # { 1159s # GVariant *_ret; 1159s # _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error); 1159s # if (_ret == NULL) 1159s # goto _out; 1159s # g_variant_get (_ret, 1159s # "(^as)", 1159s # out_arg_as); 1159s # g_variant_unref (_ret); 1159s # _out: 1159s # return _ret != NULL; 1159s # } 1159s # 1159s # /** 1159s # * org_project_useful_interface_call_single_arg_method_as_sync: 1159s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1159s # * @out_arg_as: (out) (optional) (array zero-terminated=1): Return location for return parameter or %NULL to ignore. 1159s # * @cancellable: (nullable): A #GCancellable or %NULL. 1159s # * @error: Return location for error or %NULL. 1159s # * 1159s # * Synchronously invokes the SingleArgMethodAs() D-Bus method on @proxy. The calling thread is blocked until a reply is received. 1159s # * 1159s # * See org_project_useful_interface_call_single_arg_method_as() for the asynchronous version of this method. 1159s # * 1159s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1159s # */ 1159s # gboolean 1159s # org_project_useful_interface_call_single_arg_method_as_sync ( 1159s # OrgProjectUsefulInterface *proxy, 1159s # gchar ***out_arg_as, 1159s # GCancellable *cancellable, 1159s # GError **error) 1159s # { 1159s # GVariant *_ret; 1159s # _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy), 1159s # "SingleArgMethodAs", 1159s # g_variant_new ("()"), 1159s # G_DBUS_CALL_FLAGS_NONE, 1159s # -1, 1159s # cancellable, 1159s # error); 1159s # if (_ret == NULL) 1159s # goto _out; 1159s # g_variant_get (_ret, 1159s # "(^as)", 1159s # out_arg_as); 1159s # g_variant_unref (_ret); 1159s # _out: 1159s # return _ret != NULL; 1159s # } 1159s # 1159s # /** 1159s # * org_project_useful_interface_complete_single_arg_method_as: 1159s # * @object: A #OrgProjectUsefulInterface. 1159s # * @invocation: (transfer full): A #GDBusMethodInvocation. 1159s # * @arg_as: Parameter to return. 1159s # * 1159s # * 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. 1159s # * 1159s # * This method will free @invocation, you cannot use it afterwards. 1159s # */ 1159s # void 1159s # org_project_useful_interface_complete_single_arg_method_as ( 1159s # OrgProjectUsefulInterface *object G_GNUC_UNUSED, 1159s # GDBusMethodInvocation *invocation, 1159s # const gchar *const *arg_as) 1159s # { 1159s # g_dbus_method_invocation_return_value (invocation, 1159s # g_variant_new ("(^as)", 1159s # arg_as)); 1159s # } 1159s # 1159s # /* ------------------------------------------------------------------------ */ 1159s # 1159s # /** 1159s # * OrgProjectUsefulInterfaceProxy: 1159s # * 1159s # * The #OrgProjectUsefulInterfaceProxy structure contains only private data and should only be accessed using the provided API. 1159s # */ 1159s # 1159s # /** 1159s # * OrgProjectUsefulInterfaceProxyClass: 1159s # * @parent_class: The parent class. 1159s # * 1159s # * Class structure for #OrgProjectUsefulInterfaceProxy. 1159s # */ 1159s # 1159s # struct _OrgProjectUsefulInterfaceProxyPrivate 1159s # { 1159s # GData *qdata; 1159s # }; 1159s # 1159s # static void org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface); 1159s # 1159s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1159s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 1159s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceProxy) 1159s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 1159s # 1159s # #else 1159s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 1159s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 1159s # 1159s # #endif 1159s # static void 1159s # org_project_useful_interface_proxy_finalize (GObject *object) 1159s # { 1159s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (object); 1159s # g_datalist_clear (&proxy->priv->qdata); 1159s # G_OBJECT_CLASS (org_project_useful_interface_proxy_parent_class)->finalize (object); 1159s # } 1159s # 1159s # static void 1159s # org_project_useful_interface_proxy_get_property (GObject *object G_GNUC_UNUSED, 1159s # guint prop_id G_GNUC_UNUSED, 1159s # GValue *value G_GNUC_UNUSED, 1159s # GParamSpec *pspec G_GNUC_UNUSED) 1159s # { 1159s # } 1159s # 1159s # static void 1159s # org_project_useful_interface_proxy_set_property (GObject *object G_GNUC_UNUSED, 1159s # guint prop_id G_GNUC_UNUSED, 1159s # const GValue *value G_GNUC_UNUSED, 1159s # GParamSpec *pspec G_GNUC_UNUSED) 1159s # { 1159s # } 1159s # 1159s # static void 1159s # org_project_useful_interface_proxy_g_signal (GDBusProxy *proxy, 1159s # const gchar *sender_name G_GNUC_UNUSED, 1159s # const gchar *signal_name, 1159s # GVariant *parameters) 1159s # { 1159s # _ExtendedGDBusSignalInfo *info; 1159s # GVariantIter iter; 1159s # GVariant *child; 1159s # GValue *paramv; 1159s # gsize num_params; 1159s # gsize n; 1159s # guint signal_id; 1159s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, signal_name); 1159s # if (info == NULL) 1159s # return; 1159s # num_params = g_variant_n_children (parameters); 1159s # paramv = g_new0 (GValue, num_params + 1); 1159s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1159s # g_value_set_object (¶mv[0], proxy); 1159s # g_variant_iter_init (&iter, parameters); 1159s # n = 1; 1159s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1159s # { 1159s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 1159s # if (arg_info->use_gvariant) 1159s # { 1159s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1159s # g_value_set_variant (¶mv[n], child); 1159s # n++; 1159s # } 1159s # else 1159s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1159s # g_variant_unref (child); 1159s # } 1159s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1159s # g_signal_emitv (paramv, signal_id, 0, NULL); 1159s # for (n = 0; n < num_params + 1; n++) 1159s # g_value_unset (¶mv[n]); 1159s # g_free (paramv); 1159s # } 1159s # 1159s # static void 1159s # org_project_useful_interface_proxy_g_properties_changed (GDBusProxy *_proxy, 1159s # GVariant *changed_properties, 1159s # const gchar *const *invalidated_properties) 1159s # { 1159s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (_proxy); 1159s # guint n; 1159s # const gchar *key; 1159s # GVariantIter *iter; 1159s # _ExtendedGDBusPropertyInfo *info; 1159s # g_variant_get (changed_properties, "a{sv}", &iter); 1159s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 1159s # { 1159s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, key); 1159s # g_datalist_remove_data (&proxy->priv->qdata, key); 1159s # if (info != NULL) 1159s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1159s # } 1159s # g_variant_iter_free (iter); 1159s # for (n = 0; invalidated_properties[n] != NULL; n++) 1159s # { 1159s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, invalidated_properties[n]); 1159s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 1159s # if (info != NULL) 1159s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1159s # } 1159s # } 1159s # 1159s # static void 1159s # org_project_useful_interface_proxy_init (OrgProjectUsefulInterfaceProxy *proxy) 1159s # { 1159s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1159s # proxy->priv = org_project_useful_interface_proxy_get_instance_private (proxy); 1159s # #else 1159s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY, OrgProjectUsefulInterfaceProxyPrivate); 1159s # #endif 1159s # 1159s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_useful_interface_interface_info ()); 1159s # } 1159s # 1159s # static void 1159s # org_project_useful_interface_proxy_class_init (OrgProjectUsefulInterfaceProxyClass *klass) 1159s # { 1159s # GObjectClass *gobject_class; 1159s # GDBusProxyClass *proxy_class; 1159s # 1159s # gobject_class = G_OBJECT_CLASS (klass); 1159s # gobject_class->finalize = org_project_useful_interface_proxy_finalize; 1159s # gobject_class->get_property = org_project_useful_interface_proxy_get_property; 1159s # gobject_class->set_property = org_project_useful_interface_proxy_set_property; 1159s # 1159s # proxy_class = G_DBUS_PROXY_CLASS (klass); 1159s # proxy_class->g_signal = org_project_useful_interface_proxy_g_signal; 1159s # proxy_class->g_properties_changed = org_project_useful_interface_proxy_g_properties_changed; 1159s # 1159s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1159s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceProxyPrivate)); 1159s # #endif 1159s # } 1159s # 1159s # static void 1159s # org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 1159s # { 1159s # } 1159s # 1159s # /** 1159s # * org_project_useful_interface_proxy_new: 1159s # * @connection: A #GDBusConnection. 1159s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1159s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1159s # * @object_path: An object path. 1159s # * @cancellable: (nullable): A #GCancellable or %NULL. 1159s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1159s # * @user_data: User data to pass to @callback. 1159s # * 1159s # * Asynchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new() for more details. 1159s # * 1159s # * 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()). 1159s # * You can then call org_project_useful_interface_proxy_new_finish() to get the result of the operation. 1159s # * 1159s # * See org_project_useful_interface_proxy_new_sync() for the synchronous, blocking version of this constructor. 1159s # */ 1159s # void 1159s # org_project_useful_interface_proxy_new ( 1159s # GDBusConnection *connection, 1159s # GDBusProxyFlags flags, 1159s # const gchar *name, 1159s # const gchar *object_path, 1159s # GCancellable *cancellable, 1159s # GAsyncReadyCallback callback, 1159s # gpointer user_data) 1159s # { 1159s # 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); 1159s # } 1159s # 1159s # /** 1159s # * org_project_useful_interface_proxy_new_finish: 1159s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new(). 1159s # * @error: Return location for error or %NULL 1159s # * 1159s # * Finishes an operation started with org_project_useful_interface_proxy_new(). 1159s # * 1159s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1159s # */ 1159s # OrgProjectUsefulInterface * 1159s # org_project_useful_interface_proxy_new_finish ( 1159s # GAsyncResult *res, 1159s # GError **error) 1159s # { 1159s # GObject *ret; 1159s # GObject *source_object; 1159s # source_object = g_async_result_get_source_object (res); 1159s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1159s # g_object_unref (source_object); 1159s # if (ret != NULL) 1159s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1159s # else 1159s # return NULL; 1159s # } 1159s # 1159s # /** 1159s # * org_project_useful_interface_proxy_new_sync: 1159s # * @connection: A #GDBusConnection. 1159s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1159s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1159s # * @object_path: An object path. 1159s # * @cancellable: (nullable): A #GCancellable or %NULL. 1159s # * @error: Return location for error or %NULL 1159s # * 1159s # * Synchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new_sync() for more details. 1159s # * 1159s # * The calling thread is blocked until a reply is received. 1159s # * 1159s # * See org_project_useful_interface_proxy_new() for the asynchronous version of this constructor. 1159s # * 1159s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1159s # */ 1159s # OrgProjectUsefulInterface * 1159s # org_project_useful_interface_proxy_new_sync ( 1159s # GDBusConnection *connection, 1159s # GDBusProxyFlags flags, 1159s # const gchar *name, 1159s # const gchar *object_path, 1159s # GCancellable *cancellable, 1159s # GError **error) 1159s # { 1159s # GInitable *ret; 1159s # 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); 1159s # if (ret != NULL) 1159s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1159s # else 1159s # return NULL; 1159s # } 1159s # 1159s # 1159s # /** 1159s # * org_project_useful_interface_proxy_new_for_bus: 1159s # * @bus_type: A #GBusType. 1159s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1159s # * @name: A bus name (well-known or unique). 1159s # * @object_path: An object path. 1159s # * @cancellable: (nullable): A #GCancellable or %NULL. 1159s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1159s # * @user_data: User data to pass to @callback. 1159s # * 1159s # * Like org_project_useful_interface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 1159s # * 1159s # * 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()). 1159s # * You can then call org_project_useful_interface_proxy_new_for_bus_finish() to get the result of the operation. 1159s # * 1159s # * See org_project_useful_interface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 1159s # */ 1159s # void 1159s # org_project_useful_interface_proxy_new_for_bus ( 1159s # GBusType bus_type, 1159s # GDBusProxyFlags flags, 1159s # const gchar *name, 1159s # const gchar *object_path, 1159s # GCancellable *cancellable, 1159s # GAsyncReadyCallback callback, 1159s # gpointer user_data) 1159s # { 1159s # 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); 1159s # } 1159s # 1159s # /** 1159s # * org_project_useful_interface_proxy_new_for_bus_finish: 1159s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new_for_bus(). 1159s # * @error: Return location for error or %NULL 1159s # * 1159s # * Finishes an operation started with org_project_useful_interface_proxy_new_for_bus(). 1159s # * 1159s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1159s # */ 1159s # OrgProjectUsefulInterface * 1159s # org_project_useful_interface_proxy_new_for_bus_finish ( 1159s # GAsyncResult *res, 1159s # GError **error) 1159s # { 1159s # GObject *ret; 1159s # GObject *source_object; 1159s # source_object = g_async_result_get_source_object (res); 1159s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1159s # g_object_unref (source_object); 1159s # if (ret != NULL) 1159s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1159s # else 1159s # return NULL; 1159s # } 1159s # 1159s # /** 1159s # * org_project_useful_interface_proxy_new_for_bus_sync: 1159s # * @bus_type: A #GBusType. 1159s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1159s # * @name: A bus name (well-known or unique). 1159s # * @object_path: An object path. 1159s # * @cancellable: (nullable): A #GCancellable or %NULL. 1159s # * @error: Return location for error or %NULL 1159s # * 1159s # * Like org_project_useful_interface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 1159s # * 1159s # * The calling thread is blocked until a reply is received. 1159s # * 1159s # * See org_project_useful_interface_proxy_new_for_bus() for the asynchronous version of this constructor. 1159s # * 1159s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1159s # */ 1159s # OrgProjectUsefulInterface * 1159s # org_project_useful_interface_proxy_new_for_bus_sync ( 1159s # GBusType bus_type, 1159s # GDBusProxyFlags flags, 1159s # const gchar *name, 1159s # const gchar *object_path, 1159s # GCancellable *cancellable, 1159s # GError **error) 1159s # { 1159s # GInitable *ret; 1159s # 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); 1159s # if (ret != NULL) 1159s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1159s # else 1159s # return NULL; 1159s # } 1159s # 1159s # 1159s # /* ------------------------------------------------------------------------ */ 1159s # 1159s # /** 1159s # * OrgProjectUsefulInterfaceSkeleton: 1159s # * 1159s # * The #OrgProjectUsefulInterfaceSkeleton structure contains only private data and should only be accessed using the provided API. 1159s # */ 1159s # 1159s # /** 1159s # * OrgProjectUsefulInterfaceSkeletonClass: 1159s # * @parent_class: The parent class. 1159s # * 1159s # * Class structure for #OrgProjectUsefulInterfaceSkeleton. 1159s # */ 1159s # 1159s # struct _OrgProjectUsefulInterfaceSkeletonPrivate 1159s # { 1159s # GValue *properties; 1159s # GList *changed_properties; 1159s # GSource *changed_properties_idle_source; 1159s # GMainContext *context; 1159s # GMutex lock; 1159s # }; 1159s # 1159s # static void 1159s # _org_project_useful_interface_skeleton_handle_method_call ( 1159s # GDBusConnection *connection G_GNUC_UNUSED, 1159s # const gchar *sender G_GNUC_UNUSED, 1159s # const gchar *object_path G_GNUC_UNUSED, 1159s # const gchar *interface_name, 1159s # const gchar *method_name, 1159s # GVariant *parameters, 1159s # GDBusMethodInvocation *invocation, 1159s # gpointer user_data) 1159s # { 1159s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1159s # _ExtendedGDBusMethodInfo *info; 1159s # GVariantIter iter; 1159s # GVariant *child; 1159s # GValue *paramv; 1159s # gsize num_params; 1159s # guint num_extra; 1159s # gsize n; 1159s # guint signal_id; 1159s # GValue return_value = G_VALUE_INIT; 1159s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 1159s # g_assert (info != NULL); 1159s # num_params = g_variant_n_children (parameters); 1159s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 1159s # n = 0; 1159s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1159s # g_value_set_object (¶mv[n++], skeleton); 1159s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 1159s # g_value_set_object (¶mv[n++], invocation); 1159s # if (info->pass_fdlist) 1159s # { 1159s # #ifdef G_OS_UNIX 1159s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 1159s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 1159s # #else 1159s # g_assert_not_reached (); 1159s # #endif 1159s # } 1159s # g_variant_iter_init (&iter, parameters); 1159s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1159s # { 1159s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 1159s # if (arg_info->use_gvariant) 1159s # { 1159s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1159s # g_value_set_variant (¶mv[n], child); 1159s # n++; 1159s # } 1159s # else 1159s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1159s # g_variant_unref (child); 1159s # } 1159s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1159s # g_value_init (&return_value, G_TYPE_BOOLEAN); 1159s # g_signal_emitv (paramv, signal_id, 0, &return_value); 1159s # if (!g_value_get_boolean (&return_value)) 1159s # 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); 1159s # g_value_unset (&return_value); 1159s # for (n = 0; n < num_params + num_extra; n++) 1159s # g_value_unset (¶mv[n]); 1159s # g_free (paramv); 1159s # } 1159s # 1159s # static GVariant * 1159s # _org_project_useful_interface_skeleton_handle_get_property ( 1159s # GDBusConnection *connection G_GNUC_UNUSED, 1159s # const gchar *sender G_GNUC_UNUSED, 1159s # const gchar *object_path G_GNUC_UNUSED, 1159s # const gchar *interface_name G_GNUC_UNUSED, 1159s # const gchar *property_name, 1159s # GError **error, 1159s # gpointer user_data) 1159s # { 1159s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1159s # GValue value = G_VALUE_INIT; 1159s # GParamSpec *pspec; 1159s # _ExtendedGDBusPropertyInfo *info; 1159s # GVariant *ret; 1159s # ret = NULL; 1159s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 1159s # g_assert (info != NULL); 1159s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1159s # if (pspec == NULL) 1159s # { 1159s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1159s # } 1159s # else 1159s # { 1159s # g_value_init (&value, pspec->value_type); 1159s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1159s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 1159s # g_value_unset (&value); 1159s # } 1159s # return ret; 1159s # } 1159s # 1159s # static gboolean 1159s # _org_project_useful_interface_skeleton_handle_set_property ( 1159s # GDBusConnection *connection G_GNUC_UNUSED, 1159s # const gchar *sender G_GNUC_UNUSED, 1159s # const gchar *object_path G_GNUC_UNUSED, 1159s # const gchar *interface_name G_GNUC_UNUSED, 1159s # const gchar *property_name, 1159s # GVariant *variant, 1159s # GError **error, 1159s # gpointer user_data) 1159s # { 1159s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1159s # GValue value = G_VALUE_INIT; 1159s # GParamSpec *pspec; 1159s # _ExtendedGDBusPropertyInfo *info; 1159s # gboolean ret; 1159s # ret = FALSE; 1159s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 1159s # g_assert (info != NULL); 1159s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1159s # if (pspec == NULL) 1159s # { 1159s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1159s # } 1159s # else 1159s # { 1159s # if (info->use_gvariant) 1159s # g_value_set_variant (&value, variant); 1159s # else 1159s # g_dbus_gvariant_to_gvalue (variant, &value); 1159s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1159s # g_value_unset (&value); 1159s # ret = TRUE; 1159s # } 1159s # return ret; 1159s # } 1159s # 1159s # static const GDBusInterfaceVTable _org_project_useful_interface_skeleton_vtable = 1159s # { 1159s # _org_project_useful_interface_skeleton_handle_method_call, 1159s # _org_project_useful_interface_skeleton_handle_get_property, 1159s # _org_project_useful_interface_skeleton_handle_set_property, 1159s # {NULL} 1159s # }; 1159s # 1159s # static GDBusInterfaceInfo * 1159s # org_project_useful_interface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1159s # { 1159s # return org_project_useful_interface_interface_info (); 1159s # } 1159s # 1159s # static GDBusInterfaceVTable * 1159s # org_project_useful_interface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1159s # { 1159s # return (GDBusInterfaceVTable *) &_org_project_useful_interface_skeleton_vtable; 1159s # } 1159s # 1159s # static GVariant * 1159s # org_project_useful_interface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 1159s # { 1159s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (_skeleton); 1159s # 1159s # GVariantBuilder builder; 1159s # guint n; 1159s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 1159s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 1159s # #else 1159s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 1159s # #endif 1159s # if (_org_project_useful_interface_interface_info.parent_struct.properties == NULL) 1159s # goto out; 1159s # for (n = 0; _org_project_useful_interface_interface_info.parent_struct.properties[n] != NULL; n++) 1159s # { 1159s # GDBusPropertyInfo *info = _org_project_useful_interface_interface_info.parent_struct.properties[n]; 1159s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 1159s # { 1159s # GVariant *value; 1159s # 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); 1159s # if (value != NULL) 1159s # { 1159s # g_variant_take_ref (value); 1159s # g_variant_builder_add (&builder, "{sv}", info->name, value); 1159s # g_variant_unref (value); 1159s # } 1159s # } 1159s # } 1159s # out: 1159s # return g_variant_builder_end (&builder); 1159s # } 1159s # 1159s # static void 1159s # org_project_useful_interface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 1159s # { 1159s # } 1159s # 1159s # static void org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface); 1159s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1159s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1159s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceSkeleton) 1159s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 1159s # 1159s # #else 1159s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1159s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 1159s # 1159s # #endif 1159s # static void 1159s # org_project_useful_interface_skeleton_finalize (GObject *object) 1159s # { 1159s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (object); 1159s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 1159s # if (skeleton->priv->changed_properties_idle_source != NULL) 1159s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 1159s # g_main_context_unref (skeleton->priv->context); 1159s # g_mutex_clear (&skeleton->priv->lock); 1159s # G_OBJECT_CLASS (org_project_useful_interface_skeleton_parent_class)->finalize (object); 1159s # } 1159s # 1159s # static void 1159s # org_project_useful_interface_skeleton_init (OrgProjectUsefulInterfaceSkeleton *skeleton) 1159s # { 1159s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1159s # skeleton->priv = org_project_useful_interface_skeleton_get_instance_private (skeleton); 1159s # #else 1159s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, OrgProjectUsefulInterfaceSkeletonPrivate); 1159s # #endif 1159s # 1159s # g_mutex_init (&skeleton->priv->lock); 1159s # skeleton->priv->context = g_main_context_ref_thread_default (); 1159s # } 1159s # 1159s # static void 1159s # org_project_useful_interface_skeleton_class_init (OrgProjectUsefulInterfaceSkeletonClass *klass) 1159s # { 1159s # GObjectClass *gobject_class; 1159s # GDBusInterfaceSkeletonClass *skeleton_class; 1159s # 1159s # gobject_class = G_OBJECT_CLASS (klass); 1159s # gobject_class->finalize = org_project_useful_interface_skeleton_finalize; 1159s # 1159s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 1159s # skeleton_class->get_info = org_project_useful_interface_skeleton_dbus_interface_get_info; 1159s # skeleton_class->get_properties = org_project_useful_interface_skeleton_dbus_interface_get_properties; 1159s # skeleton_class->flush = org_project_useful_interface_skeleton_dbus_interface_flush; 1159s # skeleton_class->get_vtable = org_project_useful_interface_skeleton_dbus_interface_get_vtable; 1159s # 1159s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1159s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceSkeletonPrivate)); 1159s # #endif 1159s # } 1159s # 1159s # static void 1159s # org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 1159s # { 1159s # } 1159s # 1159s # /** 1159s # * org_project_useful_interface_skeleton_new: 1159s # * 1159s # * Creates a skeleton object for the D-Bus interface org.project.UsefulInterface. 1159s # * 1159s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceSkeleton): The skeleton object. 1159s # */ 1159s # OrgProjectUsefulInterface * 1159s # org_project_useful_interface_skeleton_new (void) 1159s # { 1159s # return ORG_PROJECT_USEFUL_INTERFACE (g_object_new (TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, NULL)); 1159s # } 1159s # Error: 1159s # 1159s # /tmp/tmpatbfkbk2/tmp1akm93j7.xml: 1159s # 1159s # 1159s # 1159s # 1159s # 1159s # 1159s # 1159s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpatbfkbk2/tmp1akm93j7.xml', '--output', '-', '--body'] 1159s # Return code: 0 1159s # Output: 1159s # /* 1159s # * This file is generated by gdbus-codegen, do not modify it. 1159s # * 1159s # * The license of this code is the same as for the D-Bus interface description 1159s # * it was derived from. Note that it links to GLib, so must comply with the 1159s # * LGPL linking clauses. 1159s # */ 1159s # 1159s # #ifdef HAVE_CONFIG_H 1159s # # include "config.h" 1159s # #endif 1159s # 1159s # #include 1159s # #ifdef G_OS_UNIX 1159s # # include 1159s # #endif 1159s # 1159s # #ifdef G_ENABLE_DEBUG 1159s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 1159s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 1159s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 1159s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 1159s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 1159s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 1159s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 1159s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 1159s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 1159s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 1159s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 1159s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 1159s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 1159s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 1159s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 1159s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 1159s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 1159s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 1159s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 1159s # #else /* !G_ENABLE_DEBUG */ 1159s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 1159s # * Do not access GValues directly in your code. Instead, use the 1159s # * g_value_get_*() functions 1159s # */ 1159s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 1159s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 1159s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 1159s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 1159s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 1159s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 1159s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 1159s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 1159s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 1159s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 1159s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 1159s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 1159s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 1159s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 1159s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 1159s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 1159s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 1159s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 1159s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 1159s # #endif /* !G_ENABLE_DEBUG */ 1159s # 1159s # typedef struct 1159s # { 1159s # GDBusArgInfo parent_struct; 1159s # gboolean use_gvariant; 1159s # } _ExtendedGDBusArgInfo; 1159s # 1159s # typedef struct 1159s # { 1159s # GDBusMethodInfo parent_struct; 1159s # const gchar *signal_name; 1159s # gboolean pass_fdlist; 1159s # } _ExtendedGDBusMethodInfo; 1159s # 1159s # typedef struct 1159s # { 1159s # GDBusSignalInfo parent_struct; 1159s # const gchar *signal_name; 1159s # } _ExtendedGDBusSignalInfo; 1159s # 1159s # typedef struct 1159s # { 1159s # GDBusPropertyInfo parent_struct; 1159s # const gchar *hyphen_name; 1159s # guint use_gvariant : 1; 1159s # guint emits_changed_signal : 1; 1159s # } _ExtendedGDBusPropertyInfo; 1159s # 1159s # typedef struct 1159s # { 1159s # GDBusInterfaceInfo parent_struct; 1159s # const gchar *hyphen_name; 1159s # } _ExtendedGDBusInterfaceInfo; 1159s # 1159s # typedef struct 1159s # { 1159s # const _ExtendedGDBusPropertyInfo *info; 1159s # guint prop_id; 1159s # GValue orig_value; /* the value before the change */ 1159s # } ChangedProperty; 1159s # 1159s # static void 1159s # _changed_property_free (ChangedProperty *data) 1159s # { 1159s # g_value_unset (&data->orig_value); 1159s # g_free (data); 1159s # } 1159s # 1159s # static gboolean 1159s # _g_strv_equal0 (gchar **a, gchar **b) 1159s # { 1159s # gboolean ret = FALSE; 1159s # guint n; 1159s # if (a == NULL && b == NULL) 1159s # { 1159s # ret = TRUE; 1159s # goto out; 1159s # } 1159s # if (a == NULL || b == NULL) 1159s # goto out; 1159s # if (g_strv_length (a) != g_strv_length (b)) 1159s # goto out; 1159s # for (n = 0; a[n] != NULL; n++) 1159s # if (g_strcmp0 (a[n], b[n]) != 0) 1159s # goto out; 1159s # ret = TRUE; 1159s # out: 1159s # return ret; 1159s # } 1159s # 1159s # static gboolean 1159s # _g_variant_equal0 (GVariant *a, GVariant *b) 1159s # { 1159s # gboolean ret = FALSE; 1159s # if (a == NULL && b == NULL) 1159s # { 1159s # ret = TRUE; 1159s # goto out; 1159s # } 1159s # if (a == NULL || b == NULL) 1159s # goto out; 1159s # ret = g_variant_equal (a, b); 1159s # out: 1159s # return ret; 1159s # } 1159s # 1159s # G_GNUC_UNUSED static gboolean 1159s # _g_value_equal (const GValue *a, const GValue *b) 1159s # { 1159s # gboolean ret = FALSE; 1159s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 1159s # switch (G_VALUE_TYPE (a)) 1159s # { 1159s # case G_TYPE_BOOLEAN: 1159s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 1159s # break; 1159s # case G_TYPE_UCHAR: 1159s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 1159s # break; 1159s # case G_TYPE_INT: 1159s # ret = (g_value_get_int (a) == g_value_get_int (b)); 1159s # break; 1159s # case G_TYPE_UINT: 1159s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 1159s # break; 1159s # case G_TYPE_INT64: 1159s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 1159s # break; 1159s # case G_TYPE_UINT64: 1159s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 1159s # break; 1159s # case G_TYPE_DOUBLE: 1159s # { 1159s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 1159s # gdouble da = g_value_get_double (a); 1159s # gdouble db = g_value_get_double (b); 1159s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 1159s # } 1159s # break; 1159s # case G_TYPE_STRING: 1159s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 1159s # break; 1159s # case G_TYPE_VARIANT: 1159s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 1159s # break; 1159s # default: 1159s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 1159s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 1159s # else 1159s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 1159s # break; 1159s # } 1159s # return ret; 1159s # } 1159s # 1159s # static void 1159s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT ( 1159s # GClosure *closure, 1159s # GValue *return_value, 1159s # unsigned int n_param_values, 1159s # const GValue *param_values, 1159s # void *invocation_hint G_GNUC_UNUSED, 1159s # void *marshal_data) 1159s # { 1159s # typedef gboolean (*_GDbusCodegenMarshalBoolean_ObjectFunc) 1159s # (void *data1, 1159s # GDBusMethodInvocation *arg_method_invocation, 1159s # void *data2); 1159s # _GDbusCodegenMarshalBoolean_ObjectFunc callback; 1159s # GCClosure *cc = (GCClosure*) closure; 1159s # void *data1, *data2; 1159s # gboolean v_return; 1159s # 1159s # g_return_if_fail (return_value != NULL); 1159s # g_return_if_fail (n_param_values == 2); 1159s # 1159s # if (G_CCLOSURE_SWAP_DATA (closure)) 1159s # { 1159s # data1 = closure->data; 1159s # data2 = g_value_peek_pointer (param_values + 0); 1159s # } 1159s # else 1159s # { 1159s # data1 = g_value_peek_pointer (param_values + 0); 1159s # data2 = closure->data; 1159s # } 1159s # 1159s # callback = (_GDbusCodegenMarshalBoolean_ObjectFunc) 1159s # (marshal_data ? marshal_data : cc->callback); 1159s # 1159s # v_return = 1159s # callback (data1, 1159s # g_marshal_value_peek_object (param_values + 1), 1159s # data2); 1159s # 1159s # g_value_set_boolean (return_value, v_return); 1159s # } 1159s # 1159s # /* ------------------------------------------------------------------------ 1159s # * Code for interface org.project.UsefulInterface 1159s # * ------------------------------------------------------------------------ 1159s # */ 1159s # 1159s # /** 1159s # * SECTION:OrgProjectUsefulInterface 1159s # * @title: OrgProjectUsefulInterface 1159s # * @short_description: Generated C code for the org.project.UsefulInterface D-Bus interface 1159s # * 1159s # * This section contains code for working with the org.project.UsefulInterface D-Bus interface in C. 1159s # */ 1159s # 1159s # /* ---- Introspection data for org.project.UsefulInterface ---- */ 1159s # 1159s # static const _ExtendedGDBusArgInfo _org_project_useful_interface_method_info_single_arg_method_ao_OUT_ARG_arg_ao = 1159s # { 1159s # { 1159s # -1, 1159s # (gchar *) "arg_ao", 1159s # (gchar *) "ao", 1159s # NULL 1159s # }, 1159s # FALSE 1159s # }; 1159s # 1159s # static const GDBusArgInfo * const _org_project_useful_interface_method_info_single_arg_method_ao_OUT_ARG_pointers[] = 1159s # { 1159s # &_org_project_useful_interface_method_info_single_arg_method_ao_OUT_ARG_arg_ao.parent_struct, 1159s # NULL 1159s # }; 1159s # 1159s # static const _ExtendedGDBusMethodInfo _org_project_useful_interface_method_info_single_arg_method_ao = 1159s # { 1159s # { 1159s # -1, 1159s # (gchar *) "SingleArgMethodAo", 1159s # NULL, 1159s # (GDBusArgInfo **) &_org_project_useful_interface_method_info_single_arg_method_ao_OUT_ARG_pointers, 1159s # NULL 1159s # }, 1159s # "handle-single-arg-method-ao", 1159s # FALSE 1159s # }; 1159s # 1159s # static const GDBusMethodInfo * const _org_project_useful_interface_method_info_pointers[] = 1159s # { 1159s # &_org_project_useful_interface_method_info_single_arg_method_ao.parent_struct, 1159s # NULL 1159s # }; 1159s # 1159s # static const _ExtendedGDBusInterfaceInfo _org_project_useful_interface_interface_info = 1159s # { 1159s # { 1159s # -1, 1159s # (gchar *) "org.project.UsefulInterface", 1159s # (GDBusMethodInfo **) &_org_project_useful_interface_method_info_pointers, 1159s # NULL, 1159s # NULL, 1159s # NULL 1159s # }, 1159s # "org-project-useful-interface", 1159s # }; 1159s # 1159s # 1159s # /** 1159s # * org_project_useful_interface_interface_info: 1159s # * 1159s # * Gets a machine-readable description of the org.project.UsefulInterface D-Bus interface. 1159s # * 1159s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 1159s # */ 1159s # GDBusInterfaceInfo * 1159s # org_project_useful_interface_interface_info (void) 1159s # { 1159s # return (GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct; 1159s # } 1159s # 1159s # /** 1159s # * org_project_useful_interface_override_properties: 1159s # * @klass: The class structure for a #GObject derived class. 1159s # * @property_id_begin: The property id to assign to the first overridden property. 1159s # * 1159s # * Overrides all #GObject properties in the #OrgProjectUsefulInterface interface for a concrete class. 1159s # * The properties are overridden in the order they are defined. 1159s # * 1159s # * Returns: The last property id. 1159s # */ 1159s # guint 1159s # org_project_useful_interface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 1159s # { 1159s # return property_id_begin - 1; 1159s # } 1159s # 1159s # 1159s # inline static void 1159s # org_project_useful_interface_method_marshal_single_arg_method_ao ( 1159s # GClosure *closure, 1159s # GValue *return_value, 1159s # unsigned int n_param_values, 1159s # const GValue *param_values, 1159s # void *invocation_hint, 1159s # void *marshal_data) 1159s # { 1159s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT (closure, 1159s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1159s # } 1159s # 1159s # 1159s # /** 1159s # * OrgProjectUsefulInterface: 1159s # * 1159s # * Abstract interface type for the D-Bus interface org.project.UsefulInterface. 1159s # */ 1159s # 1159s # /** 1159s # * OrgProjectUsefulInterfaceIface: 1159s # * @parent_iface: The parent interface. 1159s # * @handle_single_arg_method_ao: Handler for the #OrgProjectUsefulInterface::handle-single-arg-method-ao signal. 1159s # * 1159s # * Virtual table for the D-Bus interface org.project.UsefulInterface. 1159s # */ 1159s # 1159s # typedef OrgProjectUsefulInterfaceIface OrgProjectUsefulInterfaceInterface; 1159s # G_DEFINE_INTERFACE (OrgProjectUsefulInterface, org_project_useful_interface, G_TYPE_OBJECT) 1159s # 1159s # static void 1159s # org_project_useful_interface_default_init (OrgProjectUsefulInterfaceIface *iface) 1159s # { 1159s # /* GObject signals for incoming D-Bus method calls: */ 1159s # /** 1159s # * OrgProjectUsefulInterface::handle-single-arg-method-ao: 1159s # * @object: A #OrgProjectUsefulInterface. 1159s # * @invocation: A #GDBusMethodInvocation. 1159s # * 1159s # * Signal emitted when a remote caller is invoking the SingleArgMethodAo() D-Bus method. 1159s # * 1159s # * 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. 1159s # * 1159s # * 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. 1159s # */ 1159s # g_signal_new ("handle-single-arg-method-ao", 1159s # G_TYPE_FROM_INTERFACE (iface), 1159s # G_SIGNAL_RUN_LAST, 1159s # G_STRUCT_OFFSET (OrgProjectUsefulInterfaceIface, handle_single_arg_method_ao), 1159s # g_signal_accumulator_true_handled, 1159s # NULL, 1159s # org_project_useful_interface_method_marshal_single_arg_method_ao, 1159s # G_TYPE_BOOLEAN, 1159s # 1, 1159s # G_TYPE_DBUS_METHOD_INVOCATION); 1159s # 1159s # } 1159s # 1159s # /** 1159s # * org_project_useful_interface_call_single_arg_method_ao: 1159s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1159s # * @cancellable: (nullable): A #GCancellable or %NULL. 1159s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL. 1159s # * @user_data: User data to pass to @callback. 1159s # * 1159s # * Asynchronously invokes the SingleArgMethodAo() D-Bus method on @proxy. 1159s # * 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()). 1159s # * You can then call org_project_useful_interface_call_single_arg_method_ao_finish() to get the result of the operation. 1159s # * 1159s # * See org_project_useful_interface_call_single_arg_method_ao_sync() for the synchronous, blocking version of this method. 1159s # */ 1159s # void 1159s # org_project_useful_interface_call_single_arg_method_ao ( 1159s # OrgProjectUsefulInterface *proxy, 1159s # GCancellable *cancellable, 1159s # GAsyncReadyCallback callback, 1159s # gpointer user_data) 1159s # { 1159s # g_dbus_proxy_call (G_DBUS_PROXY (proxy), 1159s # "SingleArgMethodAo", 1159s # g_variant_new ("()"), 1159s # G_DBUS_CALL_FLAGS_NONE, 1159s # -1, 1159s # cancellable, 1159s # callback, 1159s # user_data); 1159s # } 1159s # 1159s # /** 1159s # * org_project_useful_interface_call_single_arg_method_ao_finish: 1159s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1159s # * @out_arg_ao: (out) (optional) (array zero-terminated=1): Return location for return parameter or %NULL to ignore. 1159s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_call_single_arg_method_ao(). 1159s # * @error: Return location for error or %NULL. 1159s # * 1159s # * Finishes an operation started with org_project_useful_interface_call_single_arg_method_ao(). 1159s # * 1159s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1159s # */ 1159s # gboolean 1159s # org_project_useful_interface_call_single_arg_method_ao_finish ( 1159s # OrgProjectUsefulInterface *proxy, 1159s # gchar ***out_arg_ao, 1159s # GAsyncResult *res, 1159s # GError **error) 1159s # { 1159s # GVariant *_ret; 1159s # _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error); 1159s # if (_ret == NULL) 1159s # goto _out; 1159s # g_variant_get (_ret, 1159s # "(^ao)", 1159s # out_arg_ao); 1159s # g_variant_unref (_ret); 1159s # _out: 1159s # return _ret != NULL; 1159s # } 1159s # 1159s # /** 1159s # * org_project_useful_interface_call_single_arg_method_ao_sync: 1159s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1159s # * @out_arg_ao: (out) (optional) (array zero-terminated=1): Return location for return parameter or %NULL to ignore. 1159s # * @cancellable: (nullable): A #GCancellable or %NULL. 1159s # * @error: Return location for error or %NULL. 1159s # * 1159s # * Synchronously invokes the SingleArgMethodAo() D-Bus method on @proxy. The calling thread is blocked until a reply is received. 1159s # * 1159s # * See org_project_useful_interface_call_single_arg_method_ao() for the asynchronous version of this method. 1159s # * 1159s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1159s # */ 1159s # gboolean 1159s # org_project_useful_interface_call_single_arg_method_ao_sync ( 1159s # OrgProjectUsefulInterface *proxy, 1159s # gchar ***out_arg_ao, 1159s # GCancellable *cancellable, 1159s # GError **error) 1159s # { 1159s # GVariant *_ret; 1159s # _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy), 1159s # "SingleArgMethodAo", 1159s # g_variant_new ("()"), 1159s # G_DBUS_CALL_FLAGS_NONE, 1159s # -1, 1159s # cancellable, 1159s # error); 1159s # if (_ret == NULL) 1159s # goto _out; 1159s # g_variant_get (_ret, 1159s # "(^ao)", 1159s # out_arg_ao); 1159s # g_variant_unref (_ret); 1159s # _out: 1159s # return _ret != NULL; 1159s # } 1159s # 1159s # /** 1159s # * org_project_useful_interface_complete_single_arg_method_ao: 1159s # * @object: A #OrgProjectUsefulInterface. 1159s # * @invocation: (transfer full): A #GDBusMethodInvocation. 1159s # * @arg_ao: Parameter to return. 1159s # * 1159s # * 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. 1159s # * 1159s # * This method will free @invocation, you cannot use it afterwards. 1159s # */ 1159s # void 1159s # org_project_useful_interface_complete_single_arg_method_ao ( 1159s # OrgProjectUsefulInterface *object G_GNUC_UNUSED, 1159s # GDBusMethodInvocation *invocation, 1159s # const gchar *const *arg_ao) 1159s # { 1159s # g_dbus_method_invocation_return_value (invocation, 1159s # g_variant_new ("(^ao)", 1159s # arg_ao)); 1159s # } 1159s # 1159s # /* ------------------------------------------------------------------------ */ 1159s # 1159s # /** 1159s # * OrgProjectUsefulInterfaceProxy: 1159s # * 1159s # * The #OrgProjectUsefulInterfaceProxy structure contains only private data and should only be accessed using the provided API. 1159s # */ 1159s # 1159s # /** 1159s # * OrgProjectUsefulInterfaceProxyClass: 1159s # * @parent_class: The parent class. 1159s # * 1159s # * Class structure for #OrgProjectUsefulInterfaceProxy. 1159s # */ 1159s # 1159s # struct _OrgProjectUsefulInterfaceProxyPrivate 1159s # { 1159s # GData *qdata; 1159s # }; 1159s # 1159s # static void org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface); 1159s # 1159s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1159s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 1159s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceProxy) 1159s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 1159s # 1159s # #else 1159s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 1159s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 1159s # 1159s # #endif 1159s # static void 1159s # org_project_useful_interface_proxy_finalize (GObject *object) 1159s # { 1159s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (object); 1159s # g_datalist_clear (&proxy->priv->qdata); 1159s # G_OBJECT_CLASS (org_project_useful_interface_proxy_parent_class)->finalize (object); 1159s # } 1159s # 1159s # static void 1159s # org_project_useful_interface_proxy_get_property (GObject *object G_GNUC_UNUSED, 1159s # guint prop_id G_GNUC_UNUSED, 1159s # GValue *value G_GNUC_UNUSED, 1159s # GParamSpec *pspec G_GNUC_UNUSED) 1159s # { 1159s # } 1159s # 1159s # static void 1159s # org_project_useful_interface_proxy_set_property (GObject *object G_GNUC_UNUSED, 1159s # guint prop_id G_GNUC_UNUSED, 1159s # const GValue *value G_GNUC_UNUSED, 1159s # GParamSpec *pspec G_GNUC_UNUSED) 1159s # { 1159s # } 1159s # 1159s # static void 1159s # org_project_useful_interface_proxy_g_signal (GDBusProxy *proxy, 1159s # const gchar *sender_name G_GNUC_UNUSED, 1159s # const gchar *signal_name, 1159s # GVariant *parameters) 1159s # { 1159s # _ExtendedGDBusSignalInfo *info; 1159s # GVariantIter iter; 1159s # GVariant *child; 1159s # GValue *paramv; 1159s # gsize num_params; 1159s # gsize n; 1159s # guint signal_id; 1159s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, signal_name); 1159s # if (info == NULL) 1159s # return; 1159s # num_params = g_variant_n_children (parameters); 1159s # paramv = g_new0 (GValue, num_params + 1); 1159s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1159s # g_value_set_object (¶mv[0], proxy); 1159s # g_variant_iter_init (&iter, parameters); 1159s # n = 1; 1159s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1159s # { 1159s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 1159s # if (arg_info->use_gvariant) 1159s # { 1159s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1159s # g_value_set_variant (¶mv[n], child); 1159s # n++; 1159s # } 1159s # else 1159s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1159s # g_variant_unref (child); 1159s # } 1159s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1159s # g_signal_emitv (paramv, signal_id, 0, NULL); 1159s # for (n = 0; n < num_params + 1; n++) 1159s # g_value_unset (¶mv[n]); 1159s # g_free (paramv); 1159s # } 1159s # 1159s # static void 1159s # org_project_useful_interface_proxy_g_properties_changed (GDBusProxy *_proxy, 1159s # GVariant *changed_properties, 1159s # const gchar *const *invalidated_properties) 1159s # { 1159s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (_proxy); 1159s # guint n; 1159s # const gchar *key; 1159s # GVariantIter *iter; 1159s # _ExtendedGDBusPropertyInfo *info; 1159s # g_variant_get (changed_properties, "a{sv}", &iter); 1159s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 1159s # { 1159s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, key); 1159s # g_datalist_remove_data (&proxy->priv->qdata, key); 1159s # if (info != NULL) 1159s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1159s # } 1159s # g_variant_iter_free (iter); 1159s # for (n = 0; invalidated_properties[n] != NULL; n++) 1159s # { 1159s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, invalidated_properties[n]); 1159s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 1159s # if (info != NULL) 1159s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1159s # } 1159s # } 1159s # 1159s # static void 1159s # org_project_useful_interface_proxy_init (OrgProjectUsefulInterfaceProxy *proxy) 1159s # { 1159s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1159s # proxy->priv = org_project_useful_interface_proxy_get_instance_private (proxy); 1159s # #else 1159s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY, OrgProjectUsefulInterfaceProxyPrivate); 1159s # #endif 1159s # 1159s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_useful_interface_interface_info ()); 1159s # } 1159s # 1159s # static void 1159s # org_project_useful_interface_proxy_class_init (OrgProjectUsefulInterfaceProxyClass *klass) 1159s # { 1159s # GObjectClass *gobject_class; 1159s # GDBusProxyClass *proxy_class; 1159s # 1159s # gobject_class = G_OBJECT_CLASS (klass); 1159s # gobject_class->finalize = org_project_useful_interface_proxy_finalize; 1159s # gobject_class->get_property = org_project_useful_interface_proxy_get_property; 1159s # gobject_class->set_property = org_project_useful_interface_proxy_set_property; 1159s # 1159s # proxy_class = G_DBUS_PROXY_CLASS (klass); 1159s # proxy_class->g_signal = org_project_useful_interface_proxy_g_signal; 1159s # proxy_class->g_properties_changed = org_project_useful_interface_proxy_g_properties_changed; 1159s # 1159s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1159s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceProxyPrivate)); 1159s # #endif 1159s # } 1159s # 1159s # static void 1159s # org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 1159s # { 1159s # } 1159s # 1159s # /** 1159s # * org_project_useful_interface_proxy_new: 1159s # * @connection: A #GDBusConnection. 1159s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1159s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1159s # * @object_path: An object path. 1159s # * @cancellable: (nullable): A #GCancellable or %NULL. 1159s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1159s # * @user_data: User data to pass to @callback. 1159s # * 1159s # * Asynchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new() for more details. 1159s # * 1159s # * 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()). 1159s # * You can then call org_project_useful_interface_proxy_new_finish() to get the result of the operation. 1159s # * 1159s # * See org_project_useful_interface_proxy_new_sync() for the synchronous, blocking version of this constructor. 1159s # */ 1159s # void 1159s # org_project_useful_interface_proxy_new ( 1159s # GDBusConnection *connection, 1159s # GDBusProxyFlags flags, 1159s # const gchar *name, 1159s # const gchar *object_path, 1159s # GCancellable *cancellable, 1159s # GAsyncReadyCallback callback, 1159s # gpointer user_data) 1159s # { 1159s # 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); 1159s # } 1159s # 1159s # /** 1159s # * org_project_useful_interface_proxy_new_finish: 1159s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new(). 1159s # * @error: Return location for error or %NULL 1159s # * 1159s # * Finishes an operation started with org_project_useful_interface_proxy_new(). 1159s # * 1159s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1159s # */ 1159s # OrgProjectUsefulInterface * 1159s # org_project_useful_interface_proxy_new_finish ( 1159s # GAsyncResult *res, 1159s # GError **error) 1159s # { 1159s # GObject *ret; 1159s # GObject *source_object; 1159s # source_object = g_async_result_get_source_object (res); 1159s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1159s # g_object_unref (source_object); 1159s # if (ret != NULL) 1159s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1159s # else 1159s # return NULL; 1159s # } 1159s # 1159s # /** 1159s # * org_project_useful_interface_proxy_new_sync: 1159s # * @connection: A #GDBusConnection. 1159s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1159s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1159s # * @object_path: An object path. 1159s # * @cancellable: (nullable): A #GCancellable or %NULL. 1159s # * @error: Return location for error or %NULL 1159s # * 1159s # * Synchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new_sync() for more details. 1159s # * 1159s # * The calling thread is blocked until a reply is received. 1159s # * 1159s # * See org_project_useful_interface_proxy_new() for the asynchronous version of this constructor. 1159s # * 1159s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1159s # */ 1159s # OrgProjectUsefulInterface * 1159s # org_project_useful_interface_proxy_new_sync ( 1159s # GDBusConnection *connection, 1159s # GDBusProxyFlags flags, 1159s # const gchar *name, 1159s # const gchar *object_path, 1159s # GCancellable *cancellable, 1159s # GError **error) 1159s # { 1159s # GInitable *ret; 1159s # 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); 1159s # if (ret != NULL) 1159s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1159s # else 1159s # return NULL; 1159s # } 1159s # 1159s # 1159s # /** 1159s # * org_project_useful_interface_proxy_new_for_bus: 1159s # * @bus_type: A #GBusType. 1159s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1159s # * @name: A bus name (well-known or unique). 1159s # * @object_path: An object path. 1159s # * @cancellable: (nullable): A #GCancellable or %NULL. 1159s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1159s # * @user_data: User data to pass to @callback. 1159s # * 1159s # * Like org_project_useful_interface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 1159s # * 1159s # * 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()). 1159s # * You can then call org_project_useful_interface_proxy_new_for_bus_finish() to get the result of the operation. 1159s # * 1159s # * See org_project_useful_interface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 1159s # */ 1159s # void 1159s # org_project_useful_interface_proxy_new_for_bus ( 1159s # GBusType bus_type, 1159s # GDBusProxyFlags flags, 1159s # const gchar *name, 1159s # const gchar *object_path, 1159s # GCancellable *cancellable, 1159s # GAsyncReadyCallback callback, 1159s # gpointer user_data) 1159s # { 1159s # 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); 1159s # } 1159s # 1159s # /** 1159s # * org_project_useful_interface_proxy_new_for_bus_finish: 1159s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new_for_bus(). 1159s # * @error: Return location for error or %NULL 1159s # * 1159s # * Finishes an operation started with org_project_useful_interface_proxy_new_for_bus(). 1159s # * 1159s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1159s # */ 1159s # OrgProjectUsefulInterface * 1159s # org_project_useful_interface_proxy_new_for_bus_finish ( 1159s # GAsyncResult *res, 1159s # GError **error) 1159s # { 1159s # GObject *ret; 1159s # GObject *source_object; 1159s # source_object = g_async_result_get_source_object (res); 1159s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1159s # g_object_unref (source_object); 1159s # if (ret != NULL) 1159s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1159s # else 1159s # return NULL; 1159s # } 1159s # 1159s # /** 1159s # * org_project_useful_interface_proxy_new_for_bus_sync: 1159s # * @bus_type: A #GBusType. 1159s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1159s # * @name: A bus name (well-known or unique). 1159s # * @object_path: An object path. 1159s # * @cancellable: (nullable): A #GCancellable or %NULL. 1159s # * @error: Return location for error or %NULL 1159s # * 1159s # * Like org_project_useful_interface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 1159s # * 1159s # * The calling thread is blocked until a reply is received. 1159s # * 1159s # * See org_project_useful_interface_proxy_new_for_bus() for the asynchronous version of this constructor. 1159s # * 1159s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1159s # */ 1159s # OrgProjectUsefulInterface * 1159s # org_project_useful_interface_proxy_new_for_bus_sync ( 1159s # GBusType bus_type, 1159s # GDBusProxyFlags flags, 1159s # const gchar *name, 1159s # const gchar *object_path, 1159s # GCancellable *cancellable, 1159s # GError **error) 1159s # { 1159s # GInitable *ret; 1159s # 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); 1159s # if (ret != NULL) 1159s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1159s # else 1159s # return NULL; 1159s # } 1159s # 1159s # 1159s # /* ------------------------------------------------------------------------ */ 1159s # 1159s # /** 1159s # * OrgProjectUsefulInterfaceSkeleton: 1159s # * 1159s # * The #OrgProjectUsefulInterfaceSkeleton structure contains only private data and should only be accessed using the provided API. 1159s # */ 1159s # 1159s # /** 1159s # * OrgProjectUsefulInterfaceSkeletonClass: 1159s # * @parent_class: The parent class. 1159s # * 1159s # * Class structure for #OrgProjectUsefulInterfaceSkeleton. 1159s # */ 1159s # 1159s # struct _OrgProjectUsefulInterfaceSkeletonPrivate 1159s # { 1159s # GValue *properties; 1159s # GList *changed_properties; 1159s # GSource *changed_properties_idle_source; 1159s # GMainContext *context; 1159s # GMutex lock; 1159s # }; 1159s # 1159s # static void 1159s # _org_project_useful_interface_skeleton_handle_method_call ( 1159s # GDBusConnection *connection G_GNUC_UNUSED, 1159s # const gchar *sender G_GNUC_UNUSED, 1159s # const gchar *object_path G_GNUC_UNUSED, 1159s # const gchar *interface_name, 1159s # const gchar *method_name, 1159s # GVariant *parameters, 1159s # GDBusMethodInvocation *invocation, 1159s # gpointer user_data) 1159s # { 1159s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1159s # _ExtendedGDBusMethodInfo *info; 1159s # GVariantIter iter; 1159s # GVariant *child; 1159s # GValue *paramv; 1159s # gsize num_params; 1159s # guint num_extra; 1159s # gsize n; 1159s # guint signal_id; 1159s # GValue return_value = G_VALUE_INIT; 1159s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 1159s # g_assert (info != NULL); 1159s # num_params = g_variant_n_children (parameters); 1159s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 1159s # n = 0; 1159s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1159s # g_value_set_object (¶mv[n++], skeleton); 1159s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 1159s # g_value_set_object (¶mv[n++], invocation); 1159s # if (info->pass_fdlist) 1159s # { 1159s # #ifdef G_OS_UNIX 1159s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 1159s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 1159s # #else 1159s # g_assert_not_reached (); 1159s # #endif 1159s # } 1159s # g_variant_iter_init (&iter, parameters); 1159s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1159s # { 1159s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 1159s # if (arg_info->use_gvariant) 1159s # { 1159s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1159s # g_value_set_variant (¶mv[n], child); 1159s # n++; 1159s # } 1159s # else 1159s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1159s # g_variant_unref (child); 1159s # } 1159s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1159s # g_value_init (&return_value, G_TYPE_BOOLEAN); 1159s # g_signal_emitv (paramv, signal_id, 0, &return_value); 1159s # if (!g_value_get_boolean (&return_value)) 1159s # 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); 1159s # g_value_unset (&return_value); 1159s # for (n = 0; n < num_params + num_extra; n++) 1159s # g_value_unset (¶mv[n]); 1159s # g_free (paramv); 1159s # } 1159s # 1159s # static GVariant * 1159s # _org_project_useful_interface_skeleton_handle_get_property ( 1159s # GDBusConnection *connection G_GNUC_UNUSED, 1159s # const gchar *sender G_GNUC_UNUSED, 1159s # const gchar *object_path G_GNUC_UNUSED, 1159s # const gchar *interface_name G_GNUC_UNUSED, 1159s # const gchar *property_name, 1159s # GError **error, 1159s # gpointer user_data) 1159s # { 1159s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1159s # GValue value = G_VALUE_INIT; 1159s # GParamSpec *pspec; 1159s # _ExtendedGDBusPropertyInfo *info; 1159s # GVariant *ret; 1159s # ret = NULL; 1159s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 1159s # g_assert (info != NULL); 1159s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1159s # if (pspec == NULL) 1159s # { 1159s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1159s # } 1159s # else 1159s # { 1159s # g_value_init (&value, pspec->value_type); 1159s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1159s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 1159s # g_value_unset (&value); 1159s # } 1159s # return ret; 1159s # } 1159s # 1159s # static gboolean 1159s # _org_project_useful_interface_skeleton_handle_set_property ( 1159s # GDBusConnection *connection G_GNUC_UNUSED, 1159s # const gchar *sender G_GNUC_UNUSED, 1159s # const gchar *object_path G_GNUC_UNUSED, 1159s # const gchar *interface_name G_GNUC_UNUSED, 1159s # const gchar *property_name, 1159s # GVariant *variant, 1159s # GError **error, 1159s # gpointer user_data) 1159s # { 1159s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1159s # GValue value = G_VALUE_INIT; 1159s # GParamSpec *pspec; 1159s # _ExtendedGDBusPropertyInfo *info; 1159s # gboolean ret; 1159s # ret = FALSE; 1159s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 1159s # g_assert (info != NULL); 1159s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1159s # if (pspec == NULL) 1159s # { 1159s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1159s # } 1159s # else 1159s # { 1159s # if (info->use_gvariant) 1159s # g_value_set_variant (&value, variant); 1159s # else 1159s # g_dbus_gvariant_to_gvalue (variant, &value); 1159s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1159s # g_value_unset (&value); 1159s # ret = TRUE; 1159s # } 1159s # return ret; 1159s # } 1159s # 1159s # static const GDBusInterfaceVTable _org_project_useful_interface_skeleton_vtable = 1159s # { 1159s # _org_project_useful_interface_skeleton_handle_method_call, 1159s # _org_project_useful_interface_skeleton_handle_get_property, 1159s # _org_project_useful_interface_skeleton_handle_set_property, 1159s # {NULL} 1159s # }; 1159s # 1159s # static GDBusInterfaceInfo * 1159s # org_project_useful_interface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1159s # { 1159s # return org_project_useful_interface_interface_info (); 1159s # } 1159s # 1159s # static GDBusInterfaceVTable * 1159s # org_project_useful_interface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1159s # { 1159s # return (GDBusInterfaceVTable *) &_org_project_useful_interface_skeleton_vtable; 1159s # } 1159s # 1159s # static GVariant * 1159s # org_project_useful_interface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 1159s # { 1159s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (_skeleton); 1159s # 1159s # GVariantBuilder builder; 1159s # guint n; 1159s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 1159s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 1159s # #else 1159s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 1159s # #endif 1159s # if (_org_project_useful_interface_interface_info.parent_struct.properties == NULL) 1159s # goto out; 1159s # for (n = 0; _org_project_useful_interface_interface_info.parent_struct.properties[n] != NULL; n++) 1159s # { 1159s # GDBusPropertyInfo *info = _org_project_useful_interface_interface_info.parent_struct.properties[n]; 1159s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 1159s # { 1159s # GVariant *value; 1159s # 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); 1159s # if (value != NULL) 1159s # { 1159s # g_variant_take_ref (value); 1159s # g_variant_builder_add (&builder, "{sv}", info->name, value); 1159s # g_variant_unref (value); 1159s # } 1159s # } 1159s # } 1159s # out: 1159s # return g_variant_builder_end (&builder); 1159s # } 1159s # 1159s # static void 1159s # org_project_useful_interface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 1159s # { 1159s # } 1159s # 1159s # static void org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface); 1159s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1159s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1159s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceSkeleton) 1159s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 1159s # 1159s # #else 1159s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1159s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 1159s # 1159s # #endif 1159s # static void 1159s # org_project_useful_interface_skeleton_finalize (GObject *object) 1159s # { 1159s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (object); 1159s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 1159s # if (skeleton->priv->changed_properties_idle_source != NULL) 1159s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 1159s # g_main_context_unref (skeleton->priv->context); 1159s # g_mutex_clear (&skeleton->priv->lock); 1159s # G_OBJECT_CLASS (org_project_useful_interface_skeleton_parent_class)->finalize (object); 1159s # } 1159s # 1159s # static void 1159s # org_project_useful_interface_skeleton_init (OrgProjectUsefulInterfaceSkeleton *skeleton) 1159s # { 1159s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1159s # skeleton->priv = org_project_useful_interface_skeleton_get_instance_private (skeleton); 1159s # #else 1159s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, OrgProjectUsefulInterfaceSkeletonPrivate); 1159s # #endif 1159s # 1159s # g_mutex_init (&skeleton->priv->lock); 1159s # skeleton->priv->context = g_main_context_ref_thread_default (); 1159s # } 1159s # 1159s # static void 1159s # org_project_useful_interface_skeleton_class_init (OrgProjectUsefulInterfaceSkeletonClass *klass) 1159s # { 1159s # GObjectClass *gobject_class; 1159s # GDBusInterfaceSkeletonClass *skeleton_class; 1159s # 1159s # gobject_class = G_OBJECT_CLASS (klass); 1159s # gobject_class->finalize = org_project_useful_interface_skeleton_finalize; 1159s # 1159s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 1159s # skeleton_class->get_info = org_project_useful_interface_skeleton_dbus_interface_get_info; 1159s # skeleton_class->get_properties = org_project_useful_interface_skeleton_dbus_interface_get_properties; 1159s # skeleton_class->flush = org_project_useful_interface_skeleton_dbus_interface_flush; 1159s # skeleton_class->get_vtable = org_project_useful_interface_skeleton_dbus_interface_get_vtable; 1159s # 1159s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1159s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceSkeletonPrivate)); 1159s # #endif 1159s # } 1159s # 1159s # static void 1159s # org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 1159s # { 1159s # } 1159s # 1159s # /** 1159s # * org_project_useful_interface_skeleton_new: 1159s # * 1159s # * Creates a skeleton object for the D-Bus interface org.project.UsefulInterface. 1159s # * 1159s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceSkeleton): The skeleton object. 1159s # */ 1159s # OrgProjectUsefulInterface * 1159s # org_project_useful_interface_skeleton_new (void) 1159s # { 1159s # return ORG_PROJECT_USEFUL_INTERFACE (g_object_new (TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, NULL)); 1159s # } 1159s # Error: 1159s # 1159s # /tmp/tmpatbfkbk2/tmpbz1d7u9n.xml: 1159s # 1159s # 1159s # 1159s # 1159s # 1159s # 1159s # 1159s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpatbfkbk2/tmpbz1d7u9n.xml', '--output', '-', '--body'] 1159s # Return code: 0 1159s # Output: 1159s # /* 1159s # * This file is generated by gdbus-codegen, do not modify it. 1159s # * 1159s # * The license of this code is the same as for the D-Bus interface description 1159s # * it was derived from. Note that it links to GLib, so must comply with the 1159s # * LGPL linking clauses. 1159s # */ 1159s # 1159s # #ifdef HAVE_CONFIG_H 1159s # # include "config.h" 1159s # #endif 1159s # 1159s # #include 1159s # #ifdef G_OS_UNIX 1159s # # include 1159s # #endif 1159s # 1159s # #ifdef G_ENABLE_DEBUG 1159s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 1159s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 1159s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 1159s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 1159s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 1159s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 1159s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 1159s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 1159s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 1159s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 1159s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 1159s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 1159s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 1159s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 1159s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 1159s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 1159s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 1159s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 1159s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 1159s # #else /* !G_ENABLE_DEBUG */ 1159s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 1159s # * Do not access GValues directly in your code. Instead, use the 1159s # * g_value_get_*() functions 1159s # */ 1159s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 1159s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 1159s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 1159s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 1159s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 1159s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 1159s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 1159s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 1159s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 1159s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 1159s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 1159s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 1159s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 1159s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 1159s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 1159s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 1159s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 1159s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 1159s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 1159s # #endif /* !G_ENABLE_DEBUG */ 1159s # 1159s # typedef struct 1159s # { 1159s # GDBusArgInfo parent_struct; 1159s # gboolean use_gvariant; 1159s # } _ExtendedGDBusArgInfo; 1159s # 1159s # typedef struct 1159s # { 1159s # GDBusMethodInfo parent_struct; 1159s # const gchar *signal_name; 1159s # gboolean pass_fdlist; 1159s # } _ExtendedGDBusMethodInfo; 1159s # 1159s # typedef struct 1159s # { 1159s # GDBusSignalInfo parent_struct; 1159s # const gchar *signal_name; 1159s # } _ExtendedGDBusSignalInfo; 1159s # 1159s # typedef struct 1159s # { 1159s # GDBusPropertyInfo parent_struct; 1159s # const gchar *hyphen_name; 1159s # guint use_gvariant : 1; 1159s # guint emits_changed_signal : 1; 1159s # } _ExtendedGDBusPropertyInfo; 1159s # 1159s # typedef struct 1159s # { 1159s # GDBusInterfaceInfo parent_struct; 1159s # const gchar *hyphen_name; 1159s # } _ExtendedGDBusInterfaceInfo; 1159s # 1159s # typedef struct 1159s # { 1159s # const _ExtendedGDBusPropertyInfo *info; 1159s # guint prop_id; 1159s # GValue orig_value; /* the value before the change */ 1159s # } ChangedProperty; 1159s # 1159s # static void 1159s # _changed_property_free (ChangedProperty *data) 1159s # { 1159s # g_value_unset (&data->orig_value); 1159s # g_free (data); 1159s # } 1159s # 1159s # static gboolean 1159s # _g_strv_equal0 (gchar **a, gchar **b) 1159s # { 1159s # gboolean ret = FALSE; 1159s # guint n; 1159s # if (a == NULL && b == NULL) 1159s # { 1159s # ret = TRUE; 1159s # goto out; 1159s # } 1159s # if (a == NULL || b == NULL) 1159s # goto out; 1159s # if (g_strv_length (a) != g_strv_length (b)) 1159s # goto out; 1159s # for (n = 0; a[n] != NULL; n++) 1159s # if (g_strcmp0 (a[n], b[n]) != 0) 1159s # goto out; 1159s # ret = TRUE; 1159s # out: 1159s # return ret; 1159s # } 1159s # 1159s # static gboolean 1159s # _g_variant_equal0 (GVariant *a, GVariant *b) 1159s # { 1159s # gboolean ret = FALSE; 1159s # if (a == NULL && b == NULL) 1159s # { 1159s # ret = TRUE; 1159s # goto out; 1159s # } 1159s # if (a == NULL || b == NULL) 1159s # goto out; 1159s # ret = g_variant_equal (a, b); 1159s # out: 1159s # return ret; 1159s # } 1159s # 1159s # G_GNUC_UNUSED static gboolean 1159s # _g_value_equal (const GValue *a, const GValue *b) 1159s # { 1159s # gboolean ret = FALSE; 1159s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 1159s # switch (G_VALUE_TYPE (a)) 1159s # { 1159s # case G_TYPE_BOOLEAN: 1159s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 1159s # break; 1159s # case G_TYPE_UCHAR: 1159s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 1159s # break; 1159s # case G_TYPE_INT: 1159s # ret = (g_value_get_int (a) == g_value_get_int (b)); 1159s # break; 1159s # case G_TYPE_UINT: 1159s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 1159s # break; 1159s # case G_TYPE_INT64: 1159s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 1159s # break; 1159s # case G_TYPE_UINT64: 1159s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 1159s # break; 1159s # case G_TYPE_DOUBLE: 1159s # { 1159s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 1159s # gdouble da = g_value_get_double (a); 1159s # gdouble db = g_value_get_double (b); 1159s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 1159s # } 1159s # break; 1159s # case G_TYPE_STRING: 1159s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 1159s # break; 1159s # case G_TYPE_VARIANT: 1159s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 1159s # break; 1159s # default: 1159s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 1159s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 1159s # else 1159s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 1159s # break; 1159s # } 1159s # return ret; 1159s # } 1159s # 1159s # static void 1159s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT ( 1159s # GClosure *closure, 1159s # GValue *return_value, 1159s # unsigned int n_param_values, 1159s # const GValue *param_values, 1159s # void *invocation_hint G_GNUC_UNUSED, 1159s # void *marshal_data) 1159s # { 1159s # typedef gboolean (*_GDbusCodegenMarshalBoolean_ObjectFunc) 1159s # (void *data1, 1159s # GDBusMethodInvocation *arg_method_invocation, 1159s # void *data2); 1159s # _GDbusCodegenMarshalBoolean_ObjectFunc callback; 1159s # GCClosure *cc = (GCClosure*) closure; 1159s # void *data1, *data2; 1159s # gboolean v_return; 1159s # 1159s # g_return_if_fail (return_value != NULL); 1159s # g_return_if_fail (n_param_values == 2); 1159s # 1159s # if (G_CCLOSURE_SWAP_DATA (closure)) 1159s # { 1159s # data1 = closure->data; 1159s # data2 = g_value_peek_pointer (param_values + 0); 1159s # } 1159s # else 1159s # { 1159s # data1 = g_value_peek_pointer (param_values + 0); 1159s # data2 = closure->data; 1159s # } 1159s # 1159s # callback = (_GDbusCodegenMarshalBoolean_ObjectFunc) 1159s # (marshal_data ? marshal_data : cc->callback); 1159s # 1159s # v_return = 1159s # callback (data1, 1159s # g_marshal_value_peek_object (param_values + 1), 1159s # data2); 1159s # 1159s # g_value_set_boolean (return_value, v_return); 1159s # } 1159s # 1159s # /* ------------------------------------------------------------------------ 1159s # * Code for interface org.project.UsefulInterface 1159s # * ------------------------------------------------------------------------ 1159s # */ 1159s # 1159s # /** 1159s # * SECTION:OrgProjectUsefulInterface 1159s # * @title: OrgProjectUsefulInterface 1159s # * @short_description: Generated C code for the org.project.UsefulInterface D-Bus interface 1159s # * 1159s # * This section contains code for working with the org.project.UsefulInterface D-Bus interface in C. 1159s # */ 1159s # 1159s # /* ---- Introspection data for org.project.UsefulInterface ---- */ 1159s # 1159s # static const _ExtendedGDBusArgInfo _org_project_useful_interface_method_info_single_arg_method_aay_OUT_ARG_arg_aay = 1159s # { 1159s # { 1159s # -1, 1159s # (gchar *) "arg_aay", 1159s # (gchar *) "aay", 1159s # NULL 1159s # }, 1159s # FALSE 1159s # }; 1159s # 1159s # static const GDBusArgInfo * const _org_project_useful_interface_method_info_single_arg_method_aay_OUT_ARG_pointers[] = 1159s # { 1159s # &_org_project_useful_interface_method_info_single_arg_method_aay_OUT_ARG_arg_aay.parent_struct, 1159s # NULL 1159s # }; 1159s # 1159s # static const _ExtendedGDBusMethodInfo _org_project_useful_interface_method_info_single_arg_method_aay = 1159s # { 1159s # { 1159s # -1, 1159s # (gchar *) "SingleArgMethodAay", 1159s # NULL, 1159s # (GDBusArgInfo **) &_org_project_useful_interface_method_info_single_arg_method_aay_OUT_ARG_pointers, 1159s # NULL 1159s # }, 1159s # "handle-single-arg-method-aay", 1159s # FALSE 1159s # }; 1159s # 1159s # static const GDBusMethodInfo * const _org_project_useful_interface_method_info_pointers[] = 1159s # { 1159s # &_org_project_useful_interface_method_info_single_arg_method_aay.parent_struct, 1159s # NULL 1159s # }; 1159s # 1159s # static const _ExtendedGDBusInterfaceInfo _org_project_useful_interface_interface_info = 1159s # { 1159s # { 1159s # -1, 1159s # (gchar *) "org.project.UsefulInterface", 1159s # (GDBusMethodInfo **) &_org_project_useful_interface_method_info_pointers, 1159s # NULL, 1159s # NULL, 1159s # NULL 1159s # }, 1159s # "org-project-useful-interface", 1159s # }; 1159s # 1159s # 1159s # /** 1159s # * org_project_useful_interface_interface_info: 1159s # * 1159s # * Gets a machine-readable description of the org.project.UsefulInterface D-Bus interface. 1159s # * 1159s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 1159s # */ 1159s # GDBusInterfaceInfo * 1159s # org_project_useful_interface_interface_info (void) 1159s # { 1159s # return (GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct; 1159s # } 1159s # 1159s # /** 1159s # * org_project_useful_interface_override_properties: 1159s # * @klass: The class structure for a #GObject derived class. 1159s # * @property_id_begin: The property id to assign to the first overridden property. 1159s # * 1159s # * Overrides all #GObject properties in the #OrgProjectUsefulInterface interface for a concrete class. 1159s # * The properties are overridden in the order they are defined. 1159s # * 1159s # * Returns: The last property id. 1159s # */ 1159s # guint 1159s # org_project_useful_interface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 1159s # { 1159s # return property_id_begin - 1; 1159s # } 1159s # 1159s # 1159s # inline static void 1159s # org_project_useful_interface_method_marshal_single_arg_method_aay ( 1159s # GClosure *closure, 1159s # GValue *return_value, 1159s # unsigned int n_param_values, 1159s # const GValue *param_values, 1159s # void *invocation_hint, 1159s # void *marshal_data) 1159s # { 1159s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT (closure, 1159s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1159s # } 1159s # 1159s # 1159s # /** 1159s # * OrgProjectUsefulInterface: 1159s # * 1159s # * Abstract interface type for the D-Bus interface org.project.UsefulInterface. 1159s # */ 1159s # 1159s # /** 1159s # * OrgProjectUsefulInterfaceIface: 1159s # * @parent_iface: The parent interface. 1159s # * @handle_single_arg_method_aay: Handler for the #OrgProjectUsefulInterface::handle-single-arg-method-aay signal. 1159s # * 1159s # * Virtual table for the D-Bus interface org.project.UsefulInterface. 1159s # */ 1159s # 1159s # typedef OrgProjectUsefulInterfaceIface OrgProjectUsefulInterfaceInterface; 1159s # G_DEFINE_INTERFACE (OrgProjectUsefulInterface, org_project_useful_interface, G_TYPE_OBJECT) 1159s # 1159s # static void 1159s # org_project_useful_interface_default_init (OrgProjectUsefulInterfaceIface *iface) 1159s # { 1159s # /* GObject signals for incoming D-Bus method calls: */ 1159s # /** 1159s # * OrgProjectUsefulInterface::handle-single-arg-method-aay: 1159s # * @object: A #OrgProjectUsefulInterface. 1159s # * @invocation: A #GDBusMethodInvocation. 1159s # * 1159s # * Signal emitted when a remote caller is invoking the SingleArgMethodAay() D-Bus method. 1159s # * 1159s # * 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. 1159s # * 1159s # * 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. 1159s # */ 1159s # g_signal_new ("handle-single-arg-method-aay", 1159s # G_TYPE_FROM_INTERFACE (iface), 1159s # G_SIGNAL_RUN_LAST, 1159s # G_STRUCT_OFFSET (OrgProjectUsefulInterfaceIface, handle_single_arg_method_aay), 1159s # g_signal_accumulator_true_handled, 1159s # NULL, 1159s # org_project_useful_interface_method_marshal_single_arg_method_aay, 1159s # G_TYPE_BOOLEAN, 1159s # 1, 1159s # G_TYPE_DBUS_METHOD_INVOCATION); 1159s # 1159s # } 1159s # 1159s # /** 1159s # * org_project_useful_interface_call_single_arg_method_aay: 1159s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1159s # * @cancellable: (nullable): A #GCancellable or %NULL. 1159s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL. 1159s # * @user_data: User data to pass to @callback. 1159s # * 1159s # * Asynchronously invokes the SingleArgMethodAay() D-Bus method on @proxy. 1159s # * 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()). 1159s # * You can then call org_project_useful_interface_call_single_arg_method_aay_finish() to get the result of the operation. 1159s # * 1159s # * See org_project_useful_interface_call_single_arg_method_aay_sync() for the synchronous, blocking version of this method. 1159s # */ 1159s # void 1159s # org_project_useful_interface_call_single_arg_method_aay ( 1159s # OrgProjectUsefulInterface *proxy, 1159s # GCancellable *cancellable, 1159s # GAsyncReadyCallback callback, 1159s # gpointer user_data) 1159s # { 1159s # g_dbus_proxy_call (G_DBUS_PROXY (proxy), 1159s # "SingleArgMethodAay", 1159s # g_variant_new ("()"), 1159s # G_DBUS_CALL_FLAGS_NONE, 1159s # -1, 1159s # cancellable, 1159s # callback, 1159s # user_data); 1159s # } 1159s # 1159s # /** 1159s # * org_project_useful_interface_call_single_arg_method_aay_finish: 1159s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1159s # * @out_arg_aay: (out) (optional) (array zero-terminated=1): Return location for return parameter or %NULL to ignore. 1159s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_call_single_arg_method_aay(). 1159s # * @error: Return location for error or %NULL. 1159s # * 1159s # * Finishes an operation started with org_project_useful_interface_call_single_arg_method_aay(). 1159s # * 1159s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1159s # */ 1159s # gboolean 1159s # org_project_useful_interface_call_single_arg_method_aay_finish ( 1159s # OrgProjectUsefulInterface *proxy, 1159s # gchar ***out_arg_aay, 1159s # GAsyncResult *res, 1159s # GError **error) 1159s # { 1159s # GVariant *_ret; 1159s # _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error); 1159s # if (_ret == NULL) 1159s # goto _out; 1159s # g_variant_get (_ret, 1159s # "(^aay)", 1159s # out_arg_aay); 1159s # g_variant_unref (_ret); 1159s # _out: 1159s # return _ret != NULL; 1159s # } 1159s # 1159s # /** 1159s # * org_project_useful_interface_call_single_arg_method_aay_sync: 1159s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1159s # * @out_arg_aay: (out) (optional) (array zero-terminated=1): Return location for return parameter or %NULL to ignore. 1159s # * @cancellable: (nullable): A #GCancellable or %NULL. 1159s # * @error: Return location for error or %NULL. 1159s # * 1159s # * Synchronously invokes the SingleArgMethodAay() D-Bus method on @proxy. The calling thread is blocked until a reply is received. 1159s # * 1159s # * See org_project_useful_interface_call_single_arg_method_aay() for the asynchronous version of this method. 1159s # * 1159s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1159s # */ 1159s # gboolean 1159s # org_project_useful_interface_call_single_arg_method_aay_sync ( 1159s # OrgProjectUsefulInterface *proxy, 1159s # gchar ***out_arg_aay, 1159s # GCancellable *cancellable, 1159s # GError **error) 1159s # { 1159s # GVariant *_ret; 1159s # _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy), 1159s # "SingleArgMethodAay", 1159s # g_variant_new ("()"), 1159s # G_DBUS_CALL_FLAGS_NONE, 1159s # -1, 1159s # cancellable, 1159s # error); 1159s # if (_ret == NULL) 1159s # goto _out; 1159s # g_variant_get (_ret, 1159s # "(^aay)", 1159s # out_arg_aay); 1159s # g_variant_unref (_ret); 1159s # _out: 1159s # return _ret != NULL; 1159s # } 1159s # 1159s # /** 1159s # * org_project_useful_interface_complete_single_arg_method_aay: 1159s # * @object: A #OrgProjectUsefulInterface. 1159s # * @invocation: (transfer full): A #GDBusMethodInvocation. 1159s # * @arg_aay: Parameter to return. 1159s # * 1159s # * 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. 1159s # * 1159s # * This method will free @invocation, you cannot use it afterwards. 1159s # */ 1159s # void 1159s # org_project_useful_interface_complete_single_arg_method_aay ( 1159s # OrgProjectUsefulInterface *object G_GNUC_UNUSED, 1159s # GDBusMethodInvocation *invocation, 1159s # const gchar *const *arg_aay) 1159s # { 1159s # g_dbus_method_invocation_return_value (invocation, 1159s # g_variant_new ("(^aay)", 1159s # arg_aay)); 1159s # } 1159s # 1159s # /* ------------------------------------------------------------------------ */ 1159s # 1159s # /** 1159s # * OrgProjectUsefulInterfaceProxy: 1159s # * 1159s # * The #OrgProjectUsefulInterfaceProxy structure contains only private data and should only be accessed using the provided API. 1159s # */ 1159s # 1159s # /** 1159s # * OrgProjectUsefulInterfaceProxyClass: 1159s # * @parent_class: The parent class. 1159s # * 1159s # * Class structure for #OrgProjectUsefulInterfaceProxy. 1159s # */ 1159s # 1159s # struct _OrgProjectUsefulInterfaceProxyPrivate 1159s # { 1159s # GData *qdata; 1159s # }; 1159s # 1159s # static void org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface); 1159s # 1159s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1159s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 1159s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceProxy) 1159s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 1159s # 1159s # #else 1159s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 1159s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 1159s # 1159s # #endif 1159s # static void 1159s # org_project_useful_interface_proxy_finalize (GObject *object) 1159s # { 1159s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (object); 1159s # g_datalist_clear (&proxy->priv->qdata); 1159s # G_OBJECT_CLASS (org_project_useful_interface_proxy_parent_class)->finalize (object); 1159s # } 1159s # 1159s # static void 1159s # org_project_useful_interface_proxy_get_property (GObject *object G_GNUC_UNUSED, 1159s # guint prop_id G_GNUC_UNUSED, 1159s # GValue *value G_GNUC_UNUSED, 1159s # GParamSpec *pspec G_GNUC_UNUSED) 1159s # { 1159s # } 1159s # 1159s # static void 1159s # org_project_useful_interface_proxy_set_property (GObject *object G_GNUC_UNUSED, 1159s # guint prop_id G_GNUC_UNUSED, 1159s # const GValue *value G_GNUC_UNUSED, 1159s # GParamSpec *pspec G_GNUC_UNUSED) 1159s # { 1159s # } 1159s # 1159s # static void 1159s # org_project_useful_interface_proxy_g_signal (GDBusProxy *proxy, 1159s # const gchar *sender_name G_GNUC_UNUSED, 1159s # const gchar *signal_name, 1159s # GVariant *parameters) 1159s # { 1159s # _ExtendedGDBusSignalInfo *info; 1159s # GVariantIter iter; 1159s # GVariant *child; 1159s # GValue *paramv; 1159s # gsize num_params; 1159s # gsize n; 1159s # guint signal_id; 1159s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, signal_name); 1159s # if (info == NULL) 1159s # return; 1159s # num_params = g_variant_n_children (parameters); 1159s # paramv = g_new0 (GValue, num_params + 1); 1159s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1159s # g_value_set_object (¶mv[0], proxy); 1159s # g_variant_iter_init (&iter, parameters); 1159s # n = 1; 1159s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1159s # { 1159s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 1159s # if (arg_info->use_gvariant) 1159s # { 1159s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1159s # g_value_set_variant (¶mv[n], child); 1159s # n++; 1159s # } 1159s # else 1159s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1159s # g_variant_unref (child); 1159s # } 1159s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1159s # g_signal_emitv (paramv, signal_id, 0, NULL); 1159s # for (n = 0; n < num_params + 1; n++) 1159s # g_value_unset (¶mv[n]); 1159s # g_free (paramv); 1159s # } 1159s # 1159s # static void 1159s # org_project_useful_interface_proxy_g_properties_changed (GDBusProxy *_proxy, 1159s # GVariant *changed_properties, 1159s # const gchar *const *invalidated_properties) 1159s # { 1159s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (_proxy); 1159s # guint n; 1159s # const gchar *key; 1159s # GVariantIter *iter; 1159s # _ExtendedGDBusPropertyInfo *info; 1159s # g_variant_get (changed_properties, "a{sv}", &iter); 1159s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 1159s # { 1159s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, key); 1159s # g_datalist_remove_data (&proxy->priv->qdata, key); 1159s # if (info != NULL) 1159s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1159s # } 1159s # g_variant_iter_free (iter); 1159s # for (n = 0; invalidated_properties[n] != NULL; n++) 1159s # { 1159s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, invalidated_properties[n]); 1159s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 1159s # if (info != NULL) 1159s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1159s # } 1159s # } 1159s # 1159s # static void 1159s # org_project_useful_interface_proxy_init (OrgProjectUsefulInterfaceProxy *proxy) 1159s # { 1159s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1159s # proxy->priv = org_project_useful_interface_proxy_get_instance_private (proxy); 1159s # #else 1159s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY, OrgProjectUsefulInterfaceProxyPrivate); 1159s # #endif 1159s # 1159s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_useful_interface_interface_info ()); 1159s # } 1159s # 1159s # static void 1159s # org_project_useful_interface_proxy_class_init (OrgProjectUsefulInterfaceProxyClass *klass) 1159s # { 1159s # GObjectClass *gobject_class; 1159s # GDBusProxyClass *proxy_class; 1159s # 1159s # gobject_class = G_OBJECT_CLASS (klass); 1159s # gobject_class->finalize = org_project_useful_interface_proxy_finalize; 1159s # gobject_class->get_property = org_project_useful_interface_proxy_get_property; 1159s # gobject_class->set_property = org_project_useful_interface_proxy_set_property; 1159s # 1159s # proxy_class = G_DBUS_PROXY_CLASS (klass); 1159s # proxy_class->g_signal = org_project_useful_interface_proxy_g_signal; 1159s # proxy_class->g_properties_changed = org_project_useful_interface_proxy_g_properties_changed; 1159s # 1159s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1159s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceProxyPrivate)); 1159s # #endif 1159s # } 1159s # 1159s # static void 1159s # org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 1159s # { 1159s # } 1159s # 1159s # /** 1159s # * org_project_useful_interface_proxy_new: 1159s # * @connection: A #GDBusConnection. 1159s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1159s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1159s # * @object_path: An object path. 1159s # * @cancellable: (nullable): A #GCancellable or %NULL. 1159s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1159s # * @user_data: User data to pass to @callback. 1159s # * 1159s # * Asynchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new() for more details. 1159s # * 1159s # * 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()). 1159s # * You can then call org_project_useful_interface_proxy_new_finish() to get the result of the operation. 1159s # * 1159s # * See org_project_useful_interface_proxy_new_sync() for the synchronous, blocking version of this constructor. 1159s # */ 1159s # void 1159s # org_project_useful_interface_proxy_new ( 1159s # GDBusConnection *connection, 1159s # GDBusProxyFlags flags, 1159s # const gchar *name, 1159s # const gchar *object_path, 1159s # GCancellable *cancellable, 1159s # GAsyncReadyCallback callback, 1159s # gpointer user_data) 1159s # { 1159s # 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); 1159s # } 1159s # 1159s # /** 1159s # * org_project_useful_interface_proxy_new_finish: 1159s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new(). 1159s # * @error: Return location for error or %NULL 1159s # * 1159s # * Finishes an operation started with org_project_useful_interface_proxy_new(). 1159s # * 1159s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1159s # */ 1159s # OrgProjectUsefulInterface * 1159s # org_project_useful_interface_proxy_new_finish ( 1159s # GAsyncResult *res, 1159s # GError **error) 1159s # { 1159s # GObject *ret; 1159s # GObject *source_object; 1159s # source_object = g_async_result_get_source_object (res); 1159s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1159s # g_object_unref (source_object); 1159s # if (ret != NULL) 1159s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1159s # else 1159s # return NULL; 1159s # } 1159s # 1159s # /** 1159s # * org_project_useful_interface_proxy_new_sync: 1159s # * @connection: A #GDBusConnection. 1159s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1159s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1159s # * @object_path: An object path. 1159s # * @cancellable: (nullable): A #GCancellable or %NULL. 1159s # * @error: Return location for error or %NULL 1159s # * 1159s # * Synchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new_sync() for more details. 1159s # * 1159s # * The calling thread is blocked until a reply is received. 1159s # * 1159s # * See org_project_useful_interface_proxy_new() for the asynchronous version of this constructor. 1159s # * 1159s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1159s # */ 1159s # OrgProjectUsefulInterface * 1159s # org_project_useful_interface_proxy_new_sync ( 1159s # GDBusConnection *connection, 1159s # GDBusProxyFlags flags, 1159s # const gchar *name, 1159s # const gchar *object_path, 1159s # GCancellable *cancellable, 1159s # GError **error) 1159s # { 1159s # GInitable *ret; 1159s # 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); 1159s # if (ret != NULL) 1159s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1159s # else 1159s # return NULL; 1159s # } 1159s # 1159s # 1159s # /** 1159s # * org_project_useful_interface_proxy_new_for_bus: 1159s # * @bus_type: A #GBusType. 1159s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1159s # * @name: A bus name (well-known or unique). 1159s # * @object_path: An object path. 1159s # * @cancellable: (nullable): A #GCancellable or %NULL. 1159s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1159s # * @user_data: User data to pass to @callback. 1159s # * 1159s # * Like org_project_useful_interface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 1159s # * 1159s # * 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()). 1159s # * You can then call org_project_useful_interface_proxy_new_for_bus_finish() to get the result of the operation. 1159s # * 1159s # * See org_project_useful_interface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 1159s # */ 1159s # void 1159s # org_project_useful_interface_proxy_new_for_bus ( 1159s # GBusType bus_type, 1159s # GDBusProxyFlags flags, 1159s # const gchar *name, 1159s # const gchar *object_path, 1159s # GCancellable *cancellable, 1159s # GAsyncReadyCallback callback, 1159s # gpointer user_data) 1159s # { 1159s # 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); 1159s # } 1159s # 1159s # /** 1159s # * org_project_useful_interface_proxy_new_for_bus_finish: 1159s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new_for_bus(). 1159s # * @error: Return location for error or %NULL 1159s # * 1159s # * Finishes an operation started with org_project_useful_interface_proxy_new_for_bus(). 1159s # * 1159s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1159s # */ 1159s # OrgProjectUsefulInterface * 1159s # org_project_useful_interface_proxy_new_for_bus_finish ( 1159s # GAsyncResult *res, 1159s # GError **error) 1159s # { 1159s # GObject *ret; 1159s # GObject *source_object; 1159s # source_object = g_async_result_get_source_object (res); 1159s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1159s # g_object_unref (source_object); 1159s # if (ret != NULL) 1159s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1159s # else 1159s # return NULL; 1159s # } 1159s # 1159s # /** 1159s # * org_project_useful_interface_proxy_new_for_bus_sync: 1159s # * @bus_type: A #GBusType. 1159s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1159s # * @name: A bus name (well-known or unique). 1159s # * @object_path: An object path. 1159s # * @cancellable: (nullable): A #GCancellable or %NULL. 1159s # * @error: Return location for error or %NULL 1159s # * 1159s # * Like org_project_useful_interface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 1159s # * 1159s # * The calling thread is blocked until a reply is received. 1159s # * 1159s # * See org_project_useful_interface_proxy_new_for_bus() for the asynchronous version of this constructor. 1159s # * 1159s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1159s # */ 1159s # OrgProjectUsefulInterface * 1159s # org_project_useful_interface_proxy_new_for_bus_sync ( 1159s # GBusType bus_type, 1159s # GDBusProxyFlags flags, 1159s # const gchar *name, 1159s # const gchar *object_path, 1159s # GCancellable *cancellable, 1159s # GError **error) 1159s # { 1159s # GInitable *ret; 1159s # 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); 1159s # if (ret != NULL) 1159s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1159s # else 1159s # return NULL; 1159s # } 1159s # 1159s # 1159s # /* ------------------------------------------------------------------------ */ 1159s # 1159s # /** 1159s # * OrgProjectUsefulInterfaceSkeleton: 1159s # * 1159s # * The #OrgProjectUsefulInterfaceSkeleton structure contains only private data and should only be accessed using the provided API. 1159s # */ 1159s # 1159s # /** 1159s # * OrgProjectUsefulInterfaceSkeletonClass: 1159s # * @parent_class: The parent class. 1159s # * 1159s # * Class structure for #OrgProjectUsefulInterfaceSkeleton. 1159s # */ 1159s # 1159s # struct _OrgProjectUsefulInterfaceSkeletonPrivate 1159s # { 1159s # GValue *properties; 1159s # GList *changed_properties; 1159s # GSource *changed_properties_idle_source; 1159s # GMainContext *context; 1159s # GMutex lock; 1159s # }; 1159s # 1159s # static void 1159s # _org_project_useful_interface_skeleton_handle_method_call ( 1159s # GDBusConnection *connection G_GNUC_UNUSED, 1159s # const gchar *sender G_GNUC_UNUSED, 1159s # const gchar *object_path G_GNUC_UNUSED, 1159s # const gchar *interface_name, 1159s # const gchar *method_name, 1159s # GVariant *parameters, 1159s # GDBusMethodInvocation *invocation, 1159s # gpointer user_data) 1159s # { 1159s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1159s # _ExtendedGDBusMethodInfo *info; 1159s # GVariantIter iter; 1159s # GVariant *child; 1159s # GValue *paramv; 1159s # gsize num_params; 1159s # guint num_extra; 1159s # gsize n; 1159s # guint signal_id; 1159s # GValue return_value = G_VALUE_INIT; 1159s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 1159s # g_assert (info != NULL); 1159s # num_params = g_variant_n_children (parameters); 1159s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 1159s # n = 0; 1159s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1159s # g_value_set_object (¶mv[n++], skeleton); 1159s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 1159s # g_value_set_object (¶mv[n++], invocation); 1159s # if (info->pass_fdlist) 1159s # { 1159s # #ifdef G_OS_UNIX 1159s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 1159s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 1159s # #else 1159s # g_assert_not_reached (); 1159s # #endif 1159s # } 1159s # g_variant_iter_init (&iter, parameters); 1159s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1159s # { 1159s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 1159s # if (arg_info->use_gvariant) 1159s # { 1159s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1159s # g_value_set_variant (¶mv[n], child); 1159s # n++; 1159s # } 1159s # else 1159s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1159s # g_variant_unref (child); 1159s # } 1159s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1159s # g_value_init (&return_value, G_TYPE_BOOLEAN); 1159s # g_signal_emitv (paramv, signal_id, 0, &return_value); 1159s # if (!g_value_get_boolean (&return_value)) 1159s # 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); 1159s # g_value_unset (&return_value); 1159s # for (n = 0; n < num_params + num_extra; n++) 1159s # g_value_unset (¶mv[n]); 1159s # g_free (paramv); 1159s # } 1159s # 1159s # static GVariant * 1159s # _org_project_useful_interface_skeleton_handle_get_property ( 1159s # GDBusConnection *connection G_GNUC_UNUSED, 1159s # const gchar *sender G_GNUC_UNUSED, 1159s # const gchar *object_path G_GNUC_UNUSED, 1159s # const gchar *interface_name G_GNUC_UNUSED, 1159s # const gchar *property_name, 1159s # GError **error, 1159s # gpointer user_data) 1159s # { 1159s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1159s # GValue value = G_VALUE_INIT; 1159s # GParamSpec *pspec; 1159s # _ExtendedGDBusPropertyInfo *info; 1159s # GVariant *ret; 1159s # ret = NULL; 1159s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 1159s # g_assert (info != NULL); 1159s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1159s # if (pspec == NULL) 1159s # { 1159s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1159s # } 1159s # else 1159s # { 1159s # g_value_init (&value, pspec->value_type); 1159s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1159s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 1159s # g_value_unset (&value); 1159s # } 1159s # return ret; 1159s # } 1159s # 1159s # static gboolean 1159s # _org_project_useful_interface_skeleton_handle_set_property ( 1159s # GDBusConnection *connection G_GNUC_UNUSED, 1159s # const gchar *sender G_GNUC_UNUSED, 1159s # const gchar *object_path G_GNUC_UNUSED, 1159s # const gchar *interface_name G_GNUC_UNUSED, 1159s # const gchar *property_name, 1159s # GVariant *variant, 1159s # GError **error, 1159s # gpointer user_data) 1159s # { 1159s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1159s # GValue value = G_VALUE_INIT; 1159s # GParamSpec *pspec; 1159s # _ExtendedGDBusPropertyInfo *info; 1159s # gboolean ret; 1159s # ret = FALSE; 1159s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 1159s # g_assert (info != NULL); 1159s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1159s # if (pspec == NULL) 1159s # { 1159s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1159s # } 1159s # else 1159s # { 1159s # if (info->use_gvariant) 1159s # g_value_set_variant (&value, variant); 1159s # else 1159s # g_dbus_gvariant_to_gvalue (variant, &value); 1159s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1159s # g_value_unset (&value); 1159s # ret = TRUE; 1159s # } 1159s # return ret; 1159s # } 1159s # 1159s # static const GDBusInterfaceVTable _org_project_useful_interface_skeleton_vtable = 1159s # { 1159s # _org_project_useful_interface_skeleton_handle_method_call, 1159s # _org_project_useful_interface_skeleton_handle_get_property, 1159s # _org_project_useful_interface_skeleton_handle_set_property, 1159s # {NULL} 1159s # }; 1159s # 1159s # static GDBusInterfaceInfo * 1159s # org_project_useful_interface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1159s # { 1159s # return org_project_useful_interface_interface_info (); 1159s # } 1159s # 1159s # static GDBusInterfaceVTable * 1159s # org_project_useful_interface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1159s # { 1159s # return (GDBusInterfaceVTable *) &_org_project_useful_interface_skeleton_vtable; 1159s # } 1159s # 1159s # static GVariant * 1159s # org_project_useful_interface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 1159s # { 1159s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (_skeleton); 1159s # 1159s # GVariantBuilder builder; 1159s # guint n; 1159s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 1159s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 1159s # #else 1159s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 1159s # #endif 1159s # if (_org_project_useful_interface_interface_info.parent_struct.properties == NULL) 1159s # goto out; 1159s # for (n = 0; _org_project_useful_interface_interface_info.parent_struct.properties[n] != NULL; n++) 1159s # { 1159s # GDBusPropertyInfo *info = _org_project_useful_interface_interface_info.parent_struct.properties[n]; 1159s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 1159s # { 1159s # GVariant *value; 1159s # 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); 1159s # if (value != NULL) 1159s # { 1159s # g_variant_take_ref (value); 1159s # g_variant_builder_add (&builder, "{sv}", info->name, value); 1159s # g_variant_unref (value); 1159s # } 1159s # } 1159s # } 1159s # out: 1159s # return g_variant_builder_end (&builder); 1159s # } 1159s # 1159s # static void 1159s # org_project_useful_interface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 1159s # { 1159s # } 1159s # 1159s # static void org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface); 1159s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1159s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1159s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceSkeleton) 1159s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 1159s # 1159s # #else 1159s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1159s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 1159s # 1159s # #endif 1159s # static void 1159s # org_project_useful_interface_skeleton_finalize (GObject *object) 1159s # { 1159s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (object); 1159s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 1159s # if (skeleton->priv->changed_properties_idle_source != NULL) 1159s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 1159s # g_main_context_unref (skeleton->priv->context); 1159s # g_mutex_clear (&skeleton->priv->lock); 1159s # G_OBJECT_CLASS (org_project_useful_interface_skeleton_parent_class)->finalize (object); 1159s # } 1159s # 1159s # static void 1159s # org_project_useful_interface_skeleton_init (OrgProjectUsefulInterfaceSkeleton *skeleton) 1159s # { 1159s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1159s # skeleton->priv = org_project_useful_interface_skeleton_get_instance_private (skeleton); 1159s # #else 1159s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, OrgProjectUsefulInterfaceSkeletonPrivate); 1159s # #endif 1159s # 1159s # g_mutex_init (&skeleton->priv->lock); 1159s # skeleton->priv->context = g_main_context_ref_thread_default (); 1159s # } 1159s # 1159s # static void 1159s # org_project_useful_interface_skeleton_class_init (OrgProjectUsefulInterfaceSkeletonClass *klass) 1159s # { 1159s # GObjectClass *gobject_class; 1159s # GDBusInterfaceSkeletonClass *skeleton_class; 1159s # 1159s # gobject_class = G_OBJECT_CLASS (klass); 1159s # gobject_class->finalize = org_project_useful_interface_skeleton_finalize; 1159s # 1159s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 1159s # skeleton_class->get_info = org_project_useful_interface_skeleton_dbus_interface_get_info; 1159s # skeleton_class->get_properties = org_project_useful_interface_skeleton_dbus_interface_get_properties; 1159s # skeleton_class->flush = org_project_useful_interface_skeleton_dbus_interface_flush; 1159s # skeleton_class->get_vtable = org_project_useful_interface_skeleton_dbus_interface_get_vtable; 1159s # 1159s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1159s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceSkeletonPrivate)); 1159s # #endif 1159s # } 1159s # 1159s # static void 1159s # org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 1159s # { 1159s # } 1159s # 1159s # /** 1159s # * org_project_useful_interface_skeleton_new: 1159s # * 1159s # * Creates a skeleton object for the D-Bus interface org.project.UsefulInterface. 1159s # * 1159s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceSkeleton): The skeleton object. 1159s # */ 1159s # OrgProjectUsefulInterface * 1159s # org_project_useful_interface_skeleton_new (void) 1159s # { 1159s # return ORG_PROJECT_USEFUL_INTERFACE (g_object_new (TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, NULL)); 1159s # } 1159s # Error: 1159s # 1159s # /tmp/tmpatbfkbk2/tmpojok30fi.xml: 1159s # 1159s # 1159s # 1159s # 1159s # 1159s # 1159s # 1159s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpatbfkbk2/tmpojok30fi.xml', '--output', '-', '--body'] 1159s # Return code: 0 1159s # Output: 1159s # /* 1159s # * This file is generated by gdbus-codegen, do not modify it. 1159s # * 1159s # * The license of this code is the same as for the D-Bus interface description 1159s # * it was derived from. Note that it links to GLib, so must comply with the 1159s # * LGPL linking clauses. 1159s # */ 1159s # 1159s # #ifdef HAVE_CONFIG_H 1159s # # include "config.h" 1159s # #endif 1159s # 1159s # #include 1159s # #ifdef G_OS_UNIX 1159s # # include 1159s # #endif 1159s # 1159s # #ifdef G_ENABLE_DEBUG 1159s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 1159s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 1159s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 1159s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 1159s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 1159s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 1159s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 1159s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 1159s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 1159s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 1159s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 1159s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 1159s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 1159s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 1159s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 1159s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 1159s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 1159s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 1159s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 1159s # #else /* !G_ENABLE_DEBUG */ 1159s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 1159s # * Do not access GValues directly in your code. Instead, use the 1159s # * g_value_get_*() functions 1159s # */ 1159s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 1159s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 1159s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 1159s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 1159s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 1159s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 1159s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 1159s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 1159s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 1159s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 1159s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 1159s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 1159s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 1159s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 1159s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 1159s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 1159s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 1159s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 1159s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 1159s # #endif /* !G_ENABLE_DEBUG */ 1159s # 1159s # typedef struct 1159s # { 1159s # GDBusArgInfo parent_struct; 1159s # gboolean use_gvariant; 1159s # } _ExtendedGDBusArgInfo; 1159s # 1159s # typedef struct 1159s # { 1159s # GDBusMethodInfo parent_struct; 1159s # const gchar *signal_name; 1159s # gboolean pass_fdlist; 1159s # } _ExtendedGDBusMethodInfo; 1159s # 1159s # typedef struct 1159s # { 1159s # GDBusSignalInfo parent_struct; 1159s # const gchar *signal_name; 1159s # } _ExtendedGDBusSignalInfo; 1159s # 1159s # typedef struct 1159s # { 1159s # GDBusPropertyInfo parent_struct; 1159s # const gchar *hyphen_name; 1159s # guint use_gvariant : 1; 1159s # guint emits_changed_signal : 1; 1159s # } _ExtendedGDBusPropertyInfo; 1159s # 1159s # typedef struct 1159s # { 1159s # GDBusInterfaceInfo parent_struct; 1159s # const gchar *hyphen_name; 1159s # } _ExtendedGDBusInterfaceInfo; 1159s # 1159s # typedef struct 1159s # { 1159s # const _ExtendedGDBusPropertyInfo *info; 1159s # guint prop_id; 1159s # GValue orig_value; /* the value before the change */ 1159s # } ChangedProperty; 1159s # 1159s # static void 1159s # _changed_property_free (ChangedProperty *data) 1159s # { 1159s # g_value_unset (&data->orig_value); 1159s # g_free (data); 1159s # } 1159s # 1159s # static gboolean 1159s # _g_strv_equal0 (gchar **a, gchar **b) 1159s # { 1159s # gboolean ret = FALSE; 1159s # guint n; 1159s # if (a == NULL && b == NULL) 1159s # { 1159s # ret = TRUE; 1159s # goto out; 1159s # } 1159s # if (a == NULL || b == NULL) 1159s # goto out; 1159s # if (g_strv_length (a) != g_strv_length (b)) 1159s # goto out; 1159s # for (n = 0; a[n] != NULL; n++) 1159s # if (g_strcmp0 (a[n], b[n]) != 0) 1159s # goto out; 1159s # ret = TRUE; 1159s # out: 1159s # return ret; 1159s # } 1159s # 1159s # static gboolean 1159s # _g_variant_equal0 (GVariant *a, GVariant *b) 1159s # { 1159s # gboolean ret = FALSE; 1159s # if (a == NULL && b == NULL) 1159s # { 1159s # ret = TRUE; 1159s # goto out; 1159s # } 1159s # if (a == NULL || b == NULL) 1159s # goto out; 1159s # ret = g_variant_equal (a, b); 1159s # out: 1159s # return ret; 1159s # } 1159s # 1159s # G_GNUC_UNUSED static gboolean 1159s # _g_value_equal (const GValue *a, const GValue *b) 1159s # { 1159s # gboolean ret = FALSE; 1159s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 1159s # switch (G_VALUE_TYPE (a)) 1159s # { 1159s # case G_TYPE_BOOLEAN: 1159s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 1159s # break; 1159s # case G_TYPE_UCHAR: 1159s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 1159s # break; 1159s # case G_TYPE_INT: 1159s # ret = (g_value_get_int (a) == g_value_get_int (b)); 1159s # break; 1159s # case G_TYPE_UINT: 1159s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 1159s # break; 1159s # case G_TYPE_INT64: 1159s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 1159s # break; 1159s # case G_TYPE_UINT64: 1159s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 1159s # break; 1159s # case G_TYPE_DOUBLE: 1159s # { 1159s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 1159s # gdouble da = g_value_get_double (a); 1159s # gdouble db = g_value_get_double (b); 1159s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 1159s # } 1159s # break; 1159s # case G_TYPE_STRING: 1159s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 1159s # break; 1159s # case G_TYPE_VARIANT: 1159s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 1159s # break; 1159s # default: 1159s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 1159s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 1159s # else 1159s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 1159s # break; 1159s # } 1159s # return ret; 1159s # } 1159s # 1159s # static void 1159s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT ( 1159s # GClosure *closure, 1159s # GValue *return_value, 1159s # unsigned int n_param_values, 1159s # const GValue *param_values, 1159s # void *invocation_hint G_GNUC_UNUSED, 1159s # void *marshal_data) 1159s # { 1159s # typedef gboolean (*_GDbusCodegenMarshalBoolean_ObjectFunc) 1159s # (void *data1, 1159s # GDBusMethodInvocation *arg_method_invocation, 1159s # void *data2); 1159s # _GDbusCodegenMarshalBoolean_ObjectFunc callback; 1159s # GCClosure *cc = (GCClosure*) closure; 1159s # void *data1, *data2; 1159s # gboolean v_return; 1159s # 1159s # g_return_if_fail (return_value != NULL); 1159s # g_return_if_fail (n_param_values == 2); 1159s # 1159s # if (G_CCLOSURE_SWAP_DATA (closure)) 1159s # { 1159s # data1 = closure->data; 1159s # data2 = g_value_peek_pointer (param_values + 0); 1159s # } 1159s # else 1159s # { 1159s # data1 = g_value_peek_pointer (param_values + 0); 1159s # data2 = closure->data; 1159s # } 1159s # 1159s # callback = (_GDbusCodegenMarshalBoolean_ObjectFunc) 1159s # (marshal_data ? marshal_data : cc->callback); 1159s # 1159s # v_return = 1159s # callback (data1, 1159s # g_marshal_value_peek_object (param_values + 1), 1159s # data2); 1159s # 1159s # g_value_set_boolean (return_value, v_return); 1159s # } 1159s # 1159s # /* ------------------------------------------------------------------------ 1159s # * Code for interface org.project.UsefulInterface 1159s # * ------------------------------------------------------------------------ 1159s # */ 1159s # 1159s # /** 1159s # * SECTION:OrgProjectUsefulInterface 1159s # * @title: OrgProjectUsefulInterface 1159s # * @short_description: Generated C code for the org.project.UsefulInterface D-Bus interface 1159s # * 1159s # * This section contains code for working with the org.project.UsefulInterface D-Bus interface in C. 1159s # */ 1159s # 1159s # /* ---- Introspection data for org.project.UsefulInterface ---- */ 1159s # 1159s # static const _ExtendedGDBusArgInfo _org_project_useful_interface_method_info_single_arg_method_asv_OUT_ARG_arg_asv = 1159s # { 1159s # { 1159s # -1, 1159s # (gchar *) "arg_asv", 1159s # (gchar *) "a{sv}", 1159s # NULL 1159s # }, 1159s # FALSE 1159s # }; 1159s # 1159s # static const GDBusArgInfo * const _org_project_useful_interface_method_info_single_arg_method_asv_OUT_ARG_pointers[] = 1159s # { 1159s # &_org_project_useful_interface_method_info_single_arg_method_asv_OUT_ARG_arg_asv.parent_struct, 1159s # NULL 1159s # }; 1159s # 1159s # static const _ExtendedGDBusMethodInfo _org_project_useful_interface_method_info_single_arg_method_asv = 1159s # { 1159s # { 1159s # -1, 1159s # (gchar *) "SingleArgMethodAsv", 1159s # NULL, 1159s # (GDBusArgInfo **) &_org_project_useful_interface_method_info_single_arg_method_asv_OUT_ARG_pointers, 1159s # NULL 1159s # }, 1159s # "handle-single-arg-method-asv", 1159s # FALSE 1159s # }; 1159s # 1159s # static const GDBusMethodInfo * const _org_project_useful_interface_method_info_pointers[] = 1159s # { 1159s # &_org_project_useful_interface_method_info_single_arg_method_asv.parent_struct, 1159s # NULL 1159s # }; 1159s # 1159s # static const _ExtendedGDBusInterfaceInfo _org_project_useful_interface_interface_info = 1159s # { 1159s # { 1159s # -1, 1159s # (gchar *) "org.project.UsefulInterface", 1159s # (GDBusMethodInfo **) &_org_project_useful_interface_method_info_pointers, 1159s # NULL, 1159s # NULL, 1159s # NULL 1159s # }, 1159s # "org-project-useful-interface", 1159s # }; 1159s # 1159s # 1159s # /** 1159s # * org_project_useful_interface_interface_info: 1159s # * 1159s # * Gets a machine-readable description of the org.project.UsefulInterface D-Bus interface. 1159s # * 1159s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 1159s # */ 1159s # GDBusInterfaceInfo * 1159s # org_project_useful_interface_interface_info (void) 1159s # { 1159s # return (GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct; 1159s # } 1159s # 1159s # /** 1159s # * org_project_useful_interface_override_properties: 1159s # * @klass: The class structure for a #GObject derived class. 1159s # * @property_id_begin: The property id to assign to the first overridden property. 1159s # * 1159s # * Overrides all #GObject properties in the #OrgProjectUsefulInterface interface for a concrete class. 1159s # * The properties are overridden in the order they are defined. 1159s # * 1159s # * Returns: The last property id. 1159s # */ 1159s # guint 1159s # org_project_useful_interface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 1159s # { 1159s # return property_id_begin - 1; 1159s # } 1159s # 1159s # 1159s # inline static void 1159s # org_project_useful_interface_method_marshal_single_arg_method_asv ( 1159s # GClosure *closure, 1159s # GValue *return_value, 1159s # unsigned int n_param_values, 1159s # const GValue *param_values, 1159s # void *invocation_hint, 1159s # void *marshal_data) 1159s # { 1159s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT (closure, 1159s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1159s # } 1159s # 1159s # 1159s # /** 1159s # * OrgProjectUsefulInterface: 1159s # * 1159s # * Abstract interface type for the D-Bus interface org.project.UsefulInterface. 1159s # */ 1159s # 1159s # /** 1159s # * OrgProjectUsefulInterfaceIface: 1159s # * @parent_iface: The parent interface. 1159s # * @handle_single_arg_method_asv: Handler for the #OrgProjectUsefulInterface::handle-single-arg-method-asv signal. 1159s # * 1159s # * Virtual table for the D-Bus interface org.project.UsefulInterface. 1159s # */ 1159s # 1159s # typedef OrgProjectUsefulInterfaceIface OrgProjectUsefulInterfaceInterface; 1159s # G_DEFINE_INTERFACE (OrgProjectUsefulInterface, org_project_useful_interface, G_TYPE_OBJECT) 1159s # 1159s # static void 1159s # org_project_useful_interface_default_init (OrgProjectUsefulInterfaceIface *iface) 1159s # { 1159s # /* GObject signals for incoming D-Bus method calls: */ 1159s # /** 1159s # * OrgProjectUsefulInterface::handle-single-arg-method-asv: 1159s # * @object: A #OrgProjectUsefulInterface. 1159s # * @invocation: A #GDBusMethodInvocation. 1159s # * 1159s # * Signal emitted when a remote caller is invoking the SingleArgMethodAsv() D-Bus method. 1159s # * 1159s # * 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. 1159s # * 1159s # * 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. 1159s # */ 1159s # g_signal_new ("handle-single-arg-method-asv", 1159s # G_TYPE_FROM_INTERFACE (iface), 1159s # G_SIGNAL_RUN_LAST, 1159s # G_STRUCT_OFFSET (OrgProjectUsefulInterfaceIface, handle_single_arg_method_asv), 1159s # g_signal_accumulator_true_handled, 1159s # NULL, 1159s # org_project_useful_interface_method_marshal_single_arg_method_asv, 1159s # G_TYPE_BOOLEAN, 1159s # 1, 1159s # G_TYPE_DBUS_METHOD_INVOCATION); 1159s # 1159s # } 1159s # 1159s # /** 1159s # * org_project_useful_interface_call_single_arg_method_asv: 1159s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1159s # * @cancellable: (nullable): A #GCancellable or %NULL. 1159s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL. 1159s # * @user_data: User data to pass to @callback. 1159s # * 1159s # * Asynchronously invokes the SingleArgMethodAsv() D-Bus method on @proxy. 1159s # * 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()). 1159s # * You can then call org_project_useful_interface_call_single_arg_method_asv_finish() to get the result of the operation. 1159s # * 1159s # * See org_project_useful_interface_call_single_arg_method_asv_sync() for the synchronous, blocking version of this method. 1159s # */ 1159s # void 1159s # org_project_useful_interface_call_single_arg_method_asv ( 1159s # OrgProjectUsefulInterface *proxy, 1159s # GCancellable *cancellable, 1159s # GAsyncReadyCallback callback, 1159s # gpointer user_data) 1159s # { 1159s # g_dbus_proxy_call (G_DBUS_PROXY (proxy), 1159s # "SingleArgMethodAsv", 1159s # g_variant_new ("()"), 1159s # G_DBUS_CALL_FLAGS_NONE, 1159s # -1, 1159s # cancellable, 1159s # callback, 1159s # user_data); 1159s # } 1159s # 1159s # /** 1159s # * org_project_useful_interface_call_single_arg_method_asv_finish: 1159s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1159s # * @out_arg_asv: (out) (optional): Return location for return parameter or %NULL to ignore. 1159s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_call_single_arg_method_asv(). 1159s # * @error: Return location for error or %NULL. 1159s # * 1159s # * Finishes an operation started with org_project_useful_interface_call_single_arg_method_asv(). 1159s # * 1159s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1159s # */ 1159s # gboolean 1159s # org_project_useful_interface_call_single_arg_method_asv_finish ( 1159s # OrgProjectUsefulInterface *proxy, 1159s # GVariant **out_arg_asv, 1159s # GAsyncResult *res, 1159s # GError **error) 1159s # { 1159s # GVariant *_ret; 1159s # _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error); 1159s # if (_ret == NULL) 1159s # goto _out; 1159s # g_variant_get (_ret, 1159s # "(@a{sv})", 1159s # out_arg_asv); 1159s # g_variant_unref (_ret); 1159s # _out: 1159s # return _ret != NULL; 1159s # } 1159s # 1159s # /** 1159s # * org_project_useful_interface_call_single_arg_method_asv_sync: 1159s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1159s # * @out_arg_asv: (out) (optional): Return location for return parameter or %NULL to ignore. 1159s # * @cancellable: (nullable): A #GCancellable or %NULL. 1159s # * @error: Return location for error or %NULL. 1159s # * 1159s # * Synchronously invokes the SingleArgMethodAsv() D-Bus method on @proxy. The calling thread is blocked until a reply is received. 1159s # * 1159s # * See org_project_useful_interface_call_single_arg_method_asv() for the asynchronous version of this method. 1159s # * 1159s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1159s # */ 1159s # gboolean 1159s # org_project_useful_interface_call_single_arg_method_asv_sync ( 1159s # OrgProjectUsefulInterface *proxy, 1159s # GVariant **out_arg_asv, 1159s # GCancellable *cancellable, 1159s # GError **error) 1159s # { 1159s # GVariant *_ret; 1159s # _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy), 1159s # "SingleArgMethodAsv", 1159s # g_variant_new ("()"), 1159s # G_DBUS_CALL_FLAGS_NONE, 1159s # -1, 1159s # cancellable, 1159s # error); 1159s # if (_ret == NULL) 1159s # goto _out; 1159s # g_variant_get (_ret, 1159s # "(@a{sv})", 1159s # out_arg_asv); 1159s # g_variant_unref (_ret); 1159s # _out: 1159s # return _ret != NULL; 1159s # } 1159s # 1159s # /** 1159s # * org_project_useful_interface_complete_single_arg_method_asv: 1159s # * @object: A #OrgProjectUsefulInterface. 1159s # * @invocation: (transfer full): A #GDBusMethodInvocation. 1159s # * @arg_asv: Parameter to return. 1159s # * 1159s # * 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. 1159s # * 1159s # * This method will free @invocation, you cannot use it afterwards. 1159s # */ 1159s # void 1159s # org_project_useful_interface_complete_single_arg_method_asv ( 1159s # OrgProjectUsefulInterface *object G_GNUC_UNUSED, 1159s # GDBusMethodInvocation *invocation, 1159s # GVariant *arg_asv) 1159s # { 1159s # g_dbus_method_invocation_return_value (invocation, 1159s # g_variant_new ("(@a{sv})", 1159s # arg_asv)); 1159s # } 1159s # 1159s # /* ------------------------------------------------------------------------ */ 1159s # 1159s # /** 1159s # * OrgProjectUsefulInterfaceProxy: 1159s # * 1159s # * The #OrgProjectUsefulInterfaceProxy structure contains only private data and should only be accessed using the provided API. 1159s # */ 1159s # 1159s # /** 1159s # * OrgProjectUsefulInterfaceProxyClass: 1159s # * @parent_class: The parent class. 1159s # * 1159s # * Class structure for #OrgProjectUsefulInterfaceProxy. 1159s # */ 1159s # 1159s # struct _OrgProjectUsefulInterfaceProxyPrivate 1159s # { 1159s # GData *qdata; 1159s # }; 1159s # 1159s # static void org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface); 1159s # 1159s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1159s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 1159s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceProxy) 1159s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 1159s # 1159s # #else 1159s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 1159s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 1159s # 1159s # #endif 1159s # static void 1159s # org_project_useful_interface_proxy_finalize (GObject *object) 1159s # { 1159s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (object); 1159s # g_datalist_clear (&proxy->priv->qdata); 1159s # G_OBJECT_CLASS (org_project_useful_interface_proxy_parent_class)->finalize (object); 1159s # } 1159s # 1159s # static void 1159s # org_project_useful_interface_proxy_get_property (GObject *object G_GNUC_UNUSED, 1159s # guint prop_id G_GNUC_UNUSED, 1159s # GValue *value G_GNUC_UNUSED, 1159s # GParamSpec *pspec G_GNUC_UNUSED) 1159s # { 1159s # } 1159s # 1159s # static void 1159s # org_project_useful_interface_proxy_set_property (GObject *object G_GNUC_UNUSED, 1159s # guint prop_id G_GNUC_UNUSED, 1159s # const GValue *value G_GNUC_UNUSED, 1159s # GParamSpec *pspec G_GNUC_UNUSED) 1159s # { 1159s # } 1159s # 1159s # static void 1159s # org_project_useful_interface_proxy_g_signal (GDBusProxy *proxy, 1159s # const gchar *sender_name G_GNUC_UNUSED, 1159s # const gchar *signal_name, 1159s # GVariant *parameters) 1159s # { 1159s # _ExtendedGDBusSignalInfo *info; 1159s # GVariantIter iter; 1159s # GVariant *child; 1159s # GValue *paramv; 1159s # gsize num_params; 1159s # gsize n; 1159s # guint signal_id; 1159s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, signal_name); 1159s # if (info == NULL) 1159s # return; 1159s # num_params = g_variant_n_children (parameters); 1159s # paramv = g_new0 (GValue, num_params + 1); 1159s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1159s # g_value_set_object (¶mv[0], proxy); 1159s # g_variant_iter_init (&iter, parameters); 1159s # n = 1; 1159s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1159s # { 1159s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 1159s # if (arg_info->use_gvariant) 1159s # { 1159s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1159s # g_value_set_variant (¶mv[n], child); 1159s # n++; 1159s # } 1159s # else 1159s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1159s # g_variant_unref (child); 1159s # } 1159s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1159s # g_signal_emitv (paramv, signal_id, 0, NULL); 1159s # for (n = 0; n < num_params + 1; n++) 1159s # g_value_unset (¶mv[n]); 1159s # g_free (paramv); 1159s # } 1159s # 1159s # static void 1159s # org_project_useful_interface_proxy_g_properties_changed (GDBusProxy *_proxy, 1159s # GVariant *changed_properties, 1159s # const gchar *const *invalidated_properties) 1159s # { 1159s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (_proxy); 1159s # guint n; 1159s # const gchar *key; 1159s # GVariantIter *iter; 1159s # _ExtendedGDBusPropertyInfo *info; 1159s # g_variant_get (changed_properties, "a{sv}", &iter); 1159s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 1159s # { 1159s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, key); 1159s # g_datalist_remove_data (&proxy->priv->qdata, key); 1159s # if (info != NULL) 1159s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1159s # } 1159s # g_variant_iter_free (iter); 1159s # for (n = 0; invalidated_properties[n] != NULL; n++) 1159s # { 1159s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, invalidated_properties[n]); 1159s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 1159s # if (info != NULL) 1159s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1159s # } 1159s # } 1159s # 1159s # static void 1159s # org_project_useful_interface_proxy_init (OrgProjectUsefulInterfaceProxy *proxy) 1159s # { 1159s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1159s # proxy->priv = org_project_useful_interface_proxy_get_instance_private (proxy); 1159s # #else 1159s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY, OrgProjectUsefulInterfaceProxyPrivate); 1159s # #endif 1159s # 1159s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_useful_interface_interface_info ()); 1159s # } 1159s # 1159s # static void 1159s # org_project_useful_interface_proxy_class_init (OrgProjectUsefulInterfaceProxyClass *klass) 1159s # { 1159s # GObjectClass *gobject_class; 1159s # GDBusProxyClass *proxy_class; 1159s # 1159s # gobject_class = G_OBJECT_CLASS (klass); 1159s # gobject_class->finalize = org_project_useful_interface_proxy_finalize; 1159s # gobject_class->get_property = org_project_useful_interface_proxy_get_property; 1159s # gobject_class->set_property = org_project_useful_interface_proxy_set_property; 1159s # 1159s # proxy_class = G_DBUS_PROXY_CLASS (klass); 1159s # proxy_class->g_signal = org_project_useful_interface_proxy_g_signal; 1159s # proxy_class->g_properties_changed = org_project_useful_interface_proxy_g_properties_changed; 1159s # 1159s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1159s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceProxyPrivate)); 1159s # #endif 1159s # } 1159s # 1159s # static void 1159s # org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 1159s # { 1159s # } 1159s # 1159s # /** 1159s # * org_project_useful_interface_proxy_new: 1159s # * @connection: A #GDBusConnection. 1159s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1159s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1159s # * @object_path: An object path. 1159s # * @cancellable: (nullable): A #GCancellable or %NULL. 1159s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1159s # * @user_data: User data to pass to @callback. 1159s # * 1159s # * Asynchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new() for more details. 1159s # * 1159s # * 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()). 1159s # * You can then call org_project_useful_interface_proxy_new_finish() to get the result of the operation. 1159s # * 1159s # * See org_project_useful_interface_proxy_new_sync() for the synchronous, blocking version of this constructor. 1159s # */ 1159s # void 1159s # org_project_useful_interface_proxy_new ( 1159s # GDBusConnection *connection, 1159s # GDBusProxyFlags flags, 1159s # const gchar *name, 1159s # const gchar *object_path, 1159s # GCancellable *cancellable, 1159s # GAsyncReadyCallback callback, 1159s # gpointer user_data) 1159s # { 1159s # 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); 1159s # } 1159s # 1159s # /** 1159s # * org_project_useful_interface_proxy_new_finish: 1159s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new(). 1159s # * @error: Return location for error or %NULL 1159s # * 1159s # * Finishes an operation started with org_project_useful_interface_proxy_new(). 1159s # * 1159s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1159s # */ 1159s # OrgProjectUsefulInterface * 1159s # org_project_useful_interface_proxy_new_finish ( 1159s # GAsyncResult *res, 1159s # GError **error) 1159s # { 1159s # GObject *ret; 1159s # GObject *source_object; 1159s # source_object = g_async_result_get_source_object (res); 1159s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1159s # g_object_unref (source_object); 1159s # if (ret != NULL) 1159s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1159s # else 1159s # return NULL; 1159s # } 1159s # 1159s # /** 1159s # * org_project_useful_interface_proxy_new_sync: 1159s # * @connection: A #GDBusConnection. 1159s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1159s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1159s # * @object_path: An object path. 1159s # * @cancellable: (nullable): A #GCancellable or %NULL. 1159s # * @error: Return location for error or %NULL 1159s # * 1159s # * Synchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new_sync() for more details. 1159s # * 1159s # * The calling thread is blocked until a reply is received. 1159s # * 1159s # * See org_project_useful_interface_proxy_new() for the asynchronous version of this constructor. 1159s # * 1159s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1159s # */ 1159s # OrgProjectUsefulInterface * 1159s # org_project_useful_interface_proxy_new_sync ( 1159s # GDBusConnection *connection, 1159s # GDBusProxyFlags flags, 1159s # const gchar *name, 1159s # const gchar *object_path, 1159s # GCancellable *cancellable, 1159s # GError **error) 1159s # { 1159s # GInitable *ret; 1159s # 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); 1159s # if (ret != NULL) 1159s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1159s # else 1159s # return NULL; 1159s # } 1159s # 1159s # 1159s # /** 1159s # * org_project_useful_interface_proxy_new_for_bus: 1159s # * @bus_type: A #GBusType. 1159s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1159s # * @name: A bus name (well-known or unique). 1159s # * @object_path: An object path. 1159s # * @cancellable: (nullable): A #GCancellable or %NULL. 1159s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1159s # * @user_data: User data to pass to @callback. 1159s # * 1159s # * Like org_project_useful_interface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 1159s # * 1159s # * 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()). 1159s # * You can then call org_project_useful_interface_proxy_new_for_bus_finish() to get the result of the operation. 1159s # * 1159s # * See org_project_useful_interface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 1159s # */ 1159s # void 1159s # org_project_useful_interface_proxy_new_for_bus ( 1159s # GBusType bus_type, 1159s # GDBusProxyFlags flags, 1159s # const gchar *name, 1159s # const gchar *object_path, 1159s # GCancellable *cancellable, 1159s # GAsyncReadyCallback callback, 1159s # gpointer user_data) 1159s # { 1159s # 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); 1159s # } 1159s # 1159s # /** 1159s # * org_project_useful_interface_proxy_new_for_bus_finish: 1159s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new_for_bus(). 1159s # * @error: Return location for error or %NULL 1159s # * 1159s # * Finishes an operation started with org_project_useful_interface_proxy_new_for_bus(). 1159s # * 1159s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1159s # */ 1159s # OrgProjectUsefulInterface * 1159s # org_project_useful_interface_proxy_new_for_bus_finish ( 1159s # GAsyncResult *res, 1159s # GError **error) 1159s # { 1159s # GObject *ret; 1159s # GObject *source_object; 1159s # source_object = g_async_result_get_source_object (res); 1159s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1159s # g_object_unref (source_object); 1159s # if (ret != NULL) 1159s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1159s # else 1159s # return NULL; 1159s # } 1159s # 1159s # /** 1159s # * org_project_useful_interface_proxy_new_for_bus_sync: 1159s # * @bus_type: A #GBusType. 1159s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1159s # * @name: A bus name (well-known or unique). 1159s # * @object_path: An object path. 1159s # * @cancellable: (nullable): A #GCancellable or %NULL. 1159s # * @error: Return location for error or %NULL 1159s # * 1159s # * Like org_project_useful_interface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 1159s # * 1159s # * The calling thread is blocked until a reply is received. 1159s # * 1159s # * See org_project_useful_interface_proxy_new_for_bus() for the asynchronous version of this constructor. 1159s # * 1159s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1159s # */ 1159s # OrgProjectUsefulInterface * 1159s # org_project_useful_interface_proxy_new_for_bus_sync ( 1159s # GBusType bus_type, 1159s # GDBusProxyFlags flags, 1159s # const gchar *name, 1159s # const gchar *object_path, 1159s # GCancellable *cancellable, 1159s # GError **error) 1159s # { 1159s # GInitable *ret; 1159s # 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); 1159s # if (ret != NULL) 1159s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1159s # else 1159s # return NULL; 1159s # } 1159s # 1159s # 1159s # /* ------------------------------------------------------------------------ */ 1159s # 1159s # /** 1159s # * OrgProjectUsefulInterfaceSkeleton: 1159s # * 1159s # * The #OrgProjectUsefulInterfaceSkeleton structure contains only private data and should only be accessed using the provided API. 1159s # */ 1159s # 1159s # /** 1159s # * OrgProjectUsefulInterfaceSkeletonClass: 1159s # * @parent_class: The parent class. 1159s # * 1159s # * Class structure for #OrgProjectUsefulInterfaceSkeleton. 1159s # */ 1159s # 1159s # struct _OrgProjectUsefulInterfaceSkeletonPrivate 1159s # { 1159s # GValue *properties; 1159s # GList *changed_properties; 1159s # GSource *changed_properties_idle_source; 1159s # GMainContext *context; 1159s # GMutex lock; 1159s # }; 1159s # 1159s # static void 1159s # _org_project_useful_interface_skeleton_handle_method_call ( 1159s # GDBusConnection *connection G_GNUC_UNUSED, 1159s # const gchar *sender G_GNUC_UNUSED, 1159s # const gchar *object_path G_GNUC_UNUSED, 1159s # const gchar *interface_name, 1159s # const gchar *method_name, 1159s # GVariant *parameters, 1159s # GDBusMethodInvocation *invocation, 1159s # gpointer user_data) 1159s # { 1159s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1159s # _ExtendedGDBusMethodInfo *info; 1159s # GVariantIter iter; 1159s # GVariant *child; 1159s # GValue *paramv; 1159s # gsize num_params; 1159s # guint num_extra; 1159s # gsize n; 1159s # guint signal_id; 1159s # GValue return_value = G_VALUE_INIT; 1159s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 1159s # g_assert (info != NULL); 1159s # num_params = g_variant_n_children (parameters); 1159s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 1159s # n = 0; 1159s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1159s # g_value_set_object (¶mv[n++], skeleton); 1159s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 1159s # g_value_set_object (¶mv[n++], invocation); 1159s # if (info->pass_fdlist) 1159s # { 1159s # #ifdef G_OS_UNIX 1159s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 1159s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 1159s # #else 1159s # g_assert_not_reached (); 1159s # #endif 1159s # } 1159s # g_variant_iter_init (&iter, parameters); 1159s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1159s # { 1159s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 1159s # if (arg_info->use_gvariant) 1159s # { 1159s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1159s # g_value_set_variant (¶mv[n], child); 1159s # n++; 1159s # } 1159s # else 1159s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1159s # g_variant_unref (child); 1159s # } 1159s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1159s # g_value_init (&return_value, G_TYPE_BOOLEAN); 1159s # g_signal_emitv (paramv, signal_id, 0, &return_value); 1159s # if (!g_value_get_boolean (&return_value)) 1159s # 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); 1159s # g_value_unset (&return_value); 1159s # for (n = 0; n < num_params + num_extra; n++) 1159s # g_value_unset (¶mv[n]); 1159s # g_free (paramv); 1159s # } 1159s # 1159s # static GVariant * 1159s # _org_project_useful_interface_skeleton_handle_get_property ( 1159s # GDBusConnection *connection G_GNUC_UNUSED, 1159s # const gchar *sender G_GNUC_UNUSED, 1159s # const gchar *object_path G_GNUC_UNUSED, 1159s # const gchar *interface_name G_GNUC_UNUSED, 1159s # const gchar *property_name, 1159s # GError **error, 1159s # gpointer user_data) 1159s # { 1159s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1159s # GValue value = G_VALUE_INIT; 1159s # GParamSpec *pspec; 1159s # _ExtendedGDBusPropertyInfo *info; 1159s # GVariant *ret; 1159s # ret = NULL; 1159s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 1159s # g_assert (info != NULL); 1159s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1159s # if (pspec == NULL) 1159s # { 1159s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1159s # } 1159s # else 1159s # { 1159s # g_value_init (&value, pspec->value_type); 1159s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1159s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 1159s # g_value_unset (&value); 1159s # } 1159s # return ret; 1159s # } 1159s # 1159s # static gboolean 1159s # _org_project_useful_interface_skeleton_handle_set_property ( 1159s # GDBusConnection *connection G_GNUC_UNUSED, 1159s # const gchar *sender G_GNUC_UNUSED, 1159s # const gchar *object_path G_GNUC_UNUSED, 1159s # const gchar *interface_name G_GNUC_UNUSED, 1159s # const gchar *property_name, 1159s # GVariant *variant, 1159s # GError **error, 1159s # gpointer user_data) 1159s # { 1159s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1159s # GValue value = G_VALUE_INIT; 1159s # GParamSpec *pspec; 1159s # _ExtendedGDBusPropertyInfo *info; 1159s # gboolean ret; 1159s # ret = FALSE; 1159s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 1159s # g_assert (info != NULL); 1159s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1159s # if (pspec == NULL) 1159s # { 1159s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1159s # } 1159s # else 1159s # { 1159s # if (info->use_gvariant) 1159s # g_value_set_variant (&value, variant); 1159s # else 1159s # g_dbus_gvariant_to_gvalue (variant, &value); 1159s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1159s # g_value_unset (&value); 1159s # ret = TRUE; 1159s # } 1159s # return ret; 1159s # } 1159s # 1159s # static const GDBusInterfaceVTable _org_project_useful_interface_skeleton_vtable = 1159s # { 1159s # _org_project_useful_interface_skeleton_handle_method_call, 1159s # _org_project_useful_interface_skeleton_handle_get_property, 1159s # _org_project_useful_interface_skeleton_handle_set_property, 1159s # {NULL} 1159s # }; 1159s # 1159s # static GDBusInterfaceInfo * 1159s # org_project_useful_interface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1159s # { 1159s # return org_project_useful_interface_interface_info (); 1159s # } 1159s # 1159s # static GDBusInterfaceVTable * 1159s # org_project_useful_interface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1159s # { 1159s # return (GDBusInterfaceVTable *) &_org_project_useful_interface_skeleton_vtable; 1159s # } 1159s # 1159s # static GVariant * 1159s # org_project_useful_interface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 1159s # { 1159s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (_skeleton); 1159s # 1159s # GVariantBuilder builder; 1159s # guint n; 1159s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 1159s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 1159s # #else 1159s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 1159s # #endif 1159s # if (_org_project_useful_interface_interface_info.parent_struct.properties == NULL) 1159s # goto out; 1159s # for (n = 0; _org_project_useful_interface_interface_info.parent_struct.properties[n] != NULL; n++) 1159s # { 1159s # GDBusPropertyInfo *info = _org_project_useful_interface_interface_info.parent_struct.properties[n]; 1159s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 1159s # { 1159s # GVariant *value; 1159s # 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); 1159s # if (value != NULL) 1159s # { 1159s # g_variant_take_ref (value); 1159s # g_variant_builder_add (&builder, "{sv}", info->name, value); 1159s # g_variant_unref (value); 1159s # } 1159s # } 1159s # } 1159s # out: 1159s # return g_variant_builder_end (&builder); 1159s # } 1159s # 1159s # static void 1159s # org_project_useful_interface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 1159s # { 1159s # } 1159s # 1159s # static void org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface); 1159s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1159s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1159s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceSkeleton) 1159s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 1159s # 1159s # #else 1159s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1159s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 1159s # 1159s # #endif 1159s # static void 1159s # org_project_useful_interface_skeleton_finalize (GObject *object) 1159s # { 1159s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (object); 1159s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 1159s # if (skeleton->priv->changed_properties_idle_source != NULL) 1159s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 1159s # g_main_context_unref (skeleton->priv->context); 1159s # g_mutex_clear (&skeleton->priv->lock); 1159s # G_OBJECT_CLASS (org_project_useful_interface_skeleton_parent_class)->finalize (object); 1159s # } 1159s # 1159s # static void 1159s # org_project_useful_interface_skeleton_init (OrgProjectUsefulInterfaceSkeleton *skeleton) 1159s # { 1159s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1159s # skeleton->priv = org_project_useful_interface_skeleton_get_instance_private (skeleton); 1159s # #else 1159s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, OrgProjectUsefulInterfaceSkeletonPrivate); 1159s # #endif 1159s # 1159s # g_mutex_init (&skeleton->priv->lock); 1159s # skeleton->priv->context = g_main_context_ref_thread_default (); 1159s # } 1159s # 1159s # static void 1159s # org_project_useful_interface_skeleton_class_init (OrgProjectUsefulInterfaceSkeletonClass *klass) 1159s # { 1159s # GObjectClass *gobject_class; 1159s # GDBusInterfaceSkeletonClass *skeleton_class; 1159s # 1159s # gobject_class = G_OBJECT_CLASS (klass); 1159s # gobject_class->finalize = org_project_useful_interface_skeleton_finalize; 1159s # 1159s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 1159s # skeleton_class->get_info = org_project_useful_interface_skeleton_dbus_interface_get_info; 1159s # skeleton_class->get_properties = org_project_useful_interface_skeleton_dbus_interface_get_properties; 1159s # skeleton_class->flush = org_project_useful_interface_skeleton_dbus_interface_flush; 1159s # skeleton_class->get_vtable = org_project_useful_interface_skeleton_dbus_interface_get_vtable; 1159s # 1159s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1159s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceSkeletonPrivate)); 1159s # #endif 1159s # } 1159s # 1159s # static void 1159s # org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 1159s # { 1159s # } 1159s # 1159s # /** 1159s # * org_project_useful_interface_skeleton_new: 1159s # * 1159s # * Creates a skeleton object for the D-Bus interface org.project.UsefulInterface. 1159s # * 1159s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceSkeleton): The skeleton object. 1159s # */ 1159s # OrgProjectUsefulInterface * 1159s # org_project_useful_interface_skeleton_new (void) 1159s # { 1159s # return ORG_PROJECT_USEFUL_INTERFACE (g_object_new (TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, NULL)); 1159s # } 1159s # Error: 1159s ok 12 __main__.TestCodegen.test_generate_methods_marshallers_multiple_in_args 1159s # gdbus-codegen: /usr/bin/gdbus-codegen 1159s # tmpdir: /tmp/tmpoygx92a8 1159s # /tmp/tmpoygx92a8/tmpvhf7n84c.xml: 1159s # 1159s # 1159s # 1159s # 1159s # 1159s # 1159s # 1159s # 1159s # 1159s # 1159s # 1159s # 1159s # 1159s # 1159s # 1159s # 1159s # 1159s # 1159s # 1159s # 1159s # 1159s # 1159s # 1159s # 1159s # 1159s # 1159s # 1159s # 1159s # 1159s # 1159s # 1159s # 1159s # 1159s # 1159s # 1159s # 1159s # 1159s # 1159s # 1159s # 1159s # 1159s # 1159s # 1159s # 1159s # 1159s # 1159s # 1159s # 1159s # 1159s # 1159s # 1159s # 1159s # 1159s # 1159s # 1159s # 1159s # 1159s # 1159s # 1159s # 1159s # 1159s # 1159s # 1159s # 1159s # 1159s # 1159s # 1159s # 1159s # 1159s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpoygx92a8/tmpvhf7n84c.xml', '--output', '-', '--body'] 1159s # Return code: 0 1159s # Output: 1159s # /* 1159s # * This file is generated by gdbus-codegen, do not modify it. 1159s # * 1159s # * The license of this code is the same as for the D-Bus interface description 1159s # * it was derived from. Note that it links to GLib, so must comply with the 1159s # * LGPL linking clauses. 1159s # */ 1159s # 1159s # #ifdef HAVE_CONFIG_H 1159s # # include "config.h" 1159s # #endif 1159s # 1159s # #include 1159s # #ifdef G_OS_UNIX 1159s # # include 1159s # #endif 1159s # 1159s # #ifdef G_ENABLE_DEBUG 1159s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 1159s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 1159s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 1159s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 1159s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 1159s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 1159s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 1159s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 1159s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 1159s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 1159s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 1159s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 1159s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 1159s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 1159s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 1159s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 1159s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 1159s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 1159s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 1159s # #else /* !G_ENABLE_DEBUG */ 1159s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 1159s # * Do not access GValues directly in your code. Instead, use the 1159s # * g_value_get_*() functions 1159s # */ 1159s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 1159s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 1159s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 1159s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 1159s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 1159s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 1159s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 1159s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 1159s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 1159s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 1159s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 1159s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 1159s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 1159s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 1159s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 1159s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 1159s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 1159s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 1159s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 1159s # #endif /* !G_ENABLE_DEBUG */ 1159s # 1159s # typedef struct 1159s # { 1159s # GDBusArgInfo parent_struct; 1159s # gboolean use_gvariant; 1159s # } _ExtendedGDBusArgInfo; 1159s # 1159s # typedef struct 1159s # { 1159s # GDBusMethodInfo parent_struct; 1159s # const gchar *signal_name; 1159s # gboolean pass_fdlist; 1159s # } _ExtendedGDBusMethodInfo; 1159s # 1159s # typedef struct 1159s # { 1159s # GDBusSignalInfo parent_struct; 1159s # const gchar *signal_name; 1159s # } _ExtendedGDBusSignalInfo; 1159s # 1159s # typedef struct 1159s # { 1159s # GDBusPropertyInfo parent_struct; 1159s # const gchar *hyphen_name; 1159s # guint use_gvariant : 1; 1159s # guint emits_changed_signal : 1; 1159s # } _ExtendedGDBusPropertyInfo; 1159s # 1159s # typedef struct 1159s # { 1159s # GDBusInterfaceInfo parent_struct; 1159s # const gchar *hyphen_name; 1159s # } _ExtendedGDBusInterfaceInfo; 1159s # 1159s # typedef struct 1159s # { 1159s # const _ExtendedGDBusPropertyInfo *info; 1159s # guint prop_id; 1159s # GValue orig_value; /* the value before the change */ 1159s # } ChangedProperty; 1159s # 1159s # static void 1159s # _changed_property_free (ChangedProperty *data) 1159s # { 1159s # g_value_unset (&data->orig_value); 1159s # g_free (data); 1159s # } 1159s # 1159s # static gboolean 1159s # _g_strv_equal0 (gchar **a, gchar **b) 1159s # { 1159s # gboolean ret = FALSE; 1159s # guint n; 1159s # if (a == NULL && b == NULL) 1159s # { 1159s # ret = TRUE; 1159s # goto out; 1159s # } 1159s # if (a == NULL || b == NULL) 1159s # goto out; 1159s # if (g_strv_length (a) != g_strv_length (b)) 1159s # goto out; 1159s # for (n = 0; a[n] != NULL; n++) 1159s # if (g_strcmp0 (a[n], b[n]) != 0) 1159s # goto out; 1159s # ret = TRUE; 1159s # out: 1159s # return ret; 1159s # } 1159s # 1159s # static gboolean 1159s # _g_variant_equal0 (GVariant *a, GVariant *b) 1159s # { 1159s # gboolean ret = FALSE; 1159s # if (a == NULL && b == NULL) 1159s # { 1159s # ret = TRUE; 1159s # goto out; 1159s # } 1159s # if (a == NULL || b == NULL) 1159s # goto out; 1159s # ret = g_variant_equal (a, b); 1159s # out: 1159s # return ret; 1159s # } 1159s # 1159s # G_GNUC_UNUSED static gboolean 1159s # _g_value_equal (const GValue *a, const GValue *b) 1159s # { 1159s # gboolean ret = FALSE; 1159s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 1159s # switch (G_VALUE_TYPE (a)) 1159s # { 1159s # case G_TYPE_BOOLEAN: 1159s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 1159s # break; 1159s # case G_TYPE_UCHAR: 1159s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 1159s # break; 1159s # case G_TYPE_INT: 1159s # ret = (g_value_get_int (a) == g_value_get_int (b)); 1159s # break; 1159s # case G_TYPE_UINT: 1159s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 1159s # break; 1159s # case G_TYPE_INT64: 1159s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 1159s # break; 1159s # case G_TYPE_UINT64: 1159s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 1159s # break; 1159s # case G_TYPE_DOUBLE: 1159s # { 1159s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 1159s # gdouble da = g_value_get_double (a); 1159s # gdouble db = g_value_get_double (b); 1159s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 1159s # } 1159s # break; 1159s # case G_TYPE_STRING: 1159s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 1159s # break; 1159s # case G_TYPE_VARIANT: 1159s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 1159s # break; 1159s # default: 1159s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 1159s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 1159s # else 1159s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 1159s # break; 1159s # } 1159s # return ret; 1159s # } 1159s # 1159s # static void 1159s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT_BOOLEAN_UCHAR_INT_UINT_INT_UINT_INT64_UINT64_DOUBLE_STRING_STRING_STRING_VARIANT_STRING_BOXED_BOXED_BOXED_VARIANT ( 1159s # GClosure *closure, 1159s # GValue *return_value, 1159s # unsigned int n_param_values, 1159s # const GValue *param_values, 1159s # void *invocation_hint G_GNUC_UNUSED, 1159s # void *marshal_data) 1159s # { 1159s # typedef gboolean (*_GDbusCodegenMarshalBoolean_ObjectBooleanUcharIntUintIntUintInt64Uint64DoubleStringStringStringVariantStringBoxedBoxedBoxedVariantFunc) 1159s # (void *data1, 1159s # GDBusMethodInvocation *arg_method_invocation, 1159s # gboolean arg_an_b, 1159s # guchar arg_an_y, 1159s # gint16 arg_an_n, 1159s # guint16 arg_an_q, 1159s # gint arg_an_i, 1159s # guint arg_an_u, 1159s # gint64 arg_an_x, 1159s # guint64 arg_an_t, 1159s # gdouble arg_an_d, 1159s # const gchar *arg_an_s, 1159s # const gchar *arg_an_o, 1159s # const gchar *arg_an_g, 1159s # GVariant *arg_an_h, 1159s # const gchar *arg_an_ay, 1159s # const gchar *const *arg_an_as, 1159s # const gchar *const *arg_an_ao, 1159s # const gchar *const *arg_an_aay, 1159s # GVariant *arg_an_asv, 1159s # void *data2); 1159s # _GDbusCodegenMarshalBoolean_ObjectBooleanUcharIntUintIntUintInt64Uint64DoubleStringStringStringVariantStringBoxedBoxedBoxedVariantFunc callback; 1159s # GCClosure *cc = (GCClosure*) closure; 1159s # void *data1, *data2; 1159s # gboolean v_return; 1159s # 1159s # g_return_if_fail (return_value != NULL); 1159s # g_return_if_fail (n_param_values == 20); 1159s # 1159s # if (G_CCLOSURE_SWAP_DATA (closure)) 1159s # { 1159s # data1 = closure->data; 1159s # data2 = g_value_peek_pointer (param_values + 0); 1159s # } 1159s # else 1159s # { 1159s # data1 = g_value_peek_pointer (param_values + 0); 1159s # data2 = closure->data; 1159s # } 1159s # 1159s # callback = (_GDbusCodegenMarshalBoolean_ObjectBooleanUcharIntUintIntUintInt64Uint64DoubleStringStringStringVariantStringBoxedBoxedBoxedVariantFunc) 1159s # (marshal_data ? marshal_data : cc->callback); 1159s # 1159s # v_return = 1159s # callback (data1, 1159s # g_marshal_value_peek_object (param_values + 1), 1159s # g_marshal_value_peek_boolean (param_values + 2), 1159s # g_marshal_value_peek_uchar (param_values + 3), 1159s # g_marshal_value_peek_int (param_values + 4), 1159s # g_marshal_value_peek_uint (param_values + 5), 1159s # g_marshal_value_peek_int (param_values + 6), 1159s # g_marshal_value_peek_uint (param_values + 7), 1159s # g_marshal_value_peek_int64 (param_values + 8), 1159s # g_marshal_value_peek_uint64 (param_values + 9), 1159s # g_marshal_value_peek_double (param_values + 10), 1159s # g_marshal_value_peek_string (param_values + 11), 1159s # g_marshal_value_peek_string (param_values + 12), 1159s # g_marshal_value_peek_string (param_values + 13), 1159s # g_marshal_value_peek_variant (param_values + 14), 1159s # g_marshal_value_peek_string (param_values + 15), 1159s # g_marshal_value_peek_boxed (param_values + 16), 1159s # g_marshal_value_peek_boxed (param_values + 17), 1159s # g_marshal_value_peek_boxed (param_values + 18), 1159s # g_marshal_value_peek_variant (param_values + 19), 1159s # data2); 1159s # 1159s # g_value_set_boolean (return_value, v_return); 1159s # } 1159s # 1159s # /* ------------------------------------------------------------------------ 1159s # * Code for interface org.project.CallableIface 1159s # * ------------------------------------------------------------------------ 1159s # */ 1159s # 1159s # /** 1159s # * SECTION:OrgProjectCallableIface 1159s # * @title: OrgProjectCallableIface 1159s # * @short_description: Generated C code for the org.project.CallableIface D-Bus interface 1159s # * 1159s # * This section contains code for working with the org.project.CallableIface D-Bus interface in C. 1159s # */ 1159s # 1159s # /* ---- Introspection data for org.project.CallableIface ---- */ 1159s # 1159s # static const _ExtendedGDBusArgInfo _org_project_callable_iface_method_info_method_with_many_args_IN_ARG_an_b = 1159s # { 1159s # { 1159s # -1, 1159s # (gchar *) "an_b", 1159s # (gchar *) "b", 1159s # NULL 1159s # }, 1159s # FALSE 1159s # }; 1159s # 1159s # static const _ExtendedGDBusArgInfo _org_project_callable_iface_method_info_method_with_many_args_IN_ARG_an_y = 1159s # { 1159s # { 1159s # -1, 1159s # (gchar *) "an_y", 1159s # (gchar *) "y", 1159s # NULL 1159s # }, 1159s # FALSE 1159s # }; 1159s # 1159s # static const _ExtendedGDBusArgInfo _org_project_callable_iface_method_info_method_with_many_args_IN_ARG_an_n = 1159s # { 1159s # { 1159s # -1, 1159s # (gchar *) "an_n", 1159s # (gchar *) "n", 1159s # NULL 1159s # }, 1159s # FALSE 1159s # }; 1159s # 1159s # static const _ExtendedGDBusArgInfo _org_project_callable_iface_method_info_method_with_many_args_IN_ARG_an_q = 1159s # { 1159s # { 1159s # -1, 1159s # (gchar *) "an_q", 1159s # (gchar *) "q", 1159s # NULL 1159s # }, 1159s # FALSE 1159s # }; 1159s # 1159s # static const _ExtendedGDBusArgInfo _org_project_callable_iface_method_info_method_with_many_args_IN_ARG_an_i = 1159s # { 1159s # { 1159s # -1, 1159s # (gchar *) "an_i", 1159s # (gchar *) "i", 1159s # NULL 1159s # }, 1159s # FALSE 1159s # }; 1159s # 1159s # static const _ExtendedGDBusArgInfo _org_project_callable_iface_method_info_method_with_many_args_IN_ARG_an_u = 1159s # { 1159s # { 1159s # -1, 1159s # (gchar *) "an_u", 1159s # (gchar *) "u", 1159s # NULL 1159s # }, 1159s # FALSE 1159s # }; 1159s # 1159s # static const _ExtendedGDBusArgInfo _org_project_callable_iface_method_info_method_with_many_args_IN_ARG_an_x = 1159s # { 1159s # { 1159s # -1, 1159s # (gchar *) "an_x", 1159s # (gchar *) "x", 1159s # NULL 1159s # }, 1159s # FALSE 1159s # }; 1159s # 1159s # static const _ExtendedGDBusArgInfo _org_project_callable_iface_method_info_method_with_many_args_IN_ARG_an_t = 1159s # { 1159s # { 1159s # -1, 1159s # (gchar *) "an_t", 1159s # (gchar *) "t", 1159s # NULL 1159s # }, 1159s # FALSE 1159s # }; 1159s # 1159s # static const _ExtendedGDBusArgInfo _org_project_callable_iface_method_info_method_with_many_args_IN_ARG_an_d = 1159s # { 1159s # { 1159s # -1, 1159s # (gchar *) "an_d", 1159s # (gchar *) "d", 1159s # NULL 1159s # }, 1159s # FALSE 1159s # }; 1159s # 1159s # static const _ExtendedGDBusArgInfo _org_project_callable_iface_method_info_method_with_many_args_IN_ARG_an_s = 1159s # { 1159s # { 1159s # -1, 1159s # (gchar *) "an_s", 1159s # (gchar *) "s", 1159s # NULL 1159s # }, 1159s # FALSE 1159s # }; 1159s # 1159s # static const _ExtendedGDBusArgInfo _org_project_callable_iface_method_info_method_with_many_args_IN_ARG_an_o = 1159s # { 1159s # { 1159s # -1, 1159s # (gchar *) "an_o", 1159s # (gchar *) "o", 1159s # NULL 1159s # }, 1159s # FALSE 1159s # }; 1159s # 1159s # static const _ExtendedGDBusArgInfo _org_project_callable_iface_method_info_method_with_many_args_IN_ARG_an_g = 1159s # { 1159s # { 1159s # -1, 1159s # (gchar *) "an_g", 1159s # (gchar *) "g", 1159s # NULL 1159s # }, 1159s # FALSE 1159s # }; 1159s # 1159s # static const _ExtendedGDBusArgInfo _org_project_callable_iface_method_info_method_with_many_args_IN_ARG_an_h = 1159s # { 1159s # { 1159s # -1, 1159s # (gchar *) "an_h", 1159s # (gchar *) "h", 1159s # NULL 1159s # }, 1159s # FALSE 1159s # }; 1159s # 1159s # static const _ExtendedGDBusArgInfo _org_project_callable_iface_method_info_method_with_many_args_IN_ARG_an_ay = 1159s # { 1159s # { 1159s # -1, 1159s # (gchar *) "an_ay", 1159s # (gchar *) "ay", 1159s # NULL 1159s # }, 1159s # FALSE 1159s # }; 1159s # 1159s # static const _ExtendedGDBusArgInfo _org_project_callable_iface_method_info_method_with_many_args_IN_ARG_an_as = 1159s # { 1159s # { 1159s # -1, 1159s # (gchar *) "an_as", 1159s # (gchar *) "as", 1159s # NULL 1159s # }, 1159s # FALSE 1159s # }; 1159s # 1159s # static const _ExtendedGDBusArgInfo _org_project_callable_iface_method_info_method_with_many_args_IN_ARG_an_ao = 1159s # { 1159s # { 1159s # -1, 1159s # (gchar *) "an_ao", 1159s # (gchar *) "ao", 1159s # NULL 1159s # }, 1159s # FALSE 1159s # }; 1159s # 1159s # static const _ExtendedGDBusArgInfo _org_project_callable_iface_method_info_method_with_many_args_IN_ARG_an_aay = 1159s # { 1159s # { 1159s # -1, 1159s # (gchar *) "an_aay", 1159s # (gchar *) "aay", 1159s # NULL 1159s # }, 1159s # FALSE 1159s # }; 1159s # 1159s # static const _ExtendedGDBusArgInfo _org_project_callable_iface_method_info_method_with_many_args_IN_ARG_an_asv = 1159s # { 1159s # { 1159s # -1, 1159s # (gchar *) "an_asv", 1159s # (gchar *) "a{sv}", 1159s # NULL 1159s # }, 1159s # FALSE 1159s # }; 1159s # 1159s # static const GDBusArgInfo * const _org_project_callable_iface_method_info_method_with_many_args_IN_ARG_pointers[] = 1159s # { 1159s # &_org_project_callable_iface_method_info_method_with_many_args_IN_ARG_an_b.parent_struct, 1159s # &_org_project_callable_iface_method_info_method_with_many_args_IN_ARG_an_y.parent_struct, 1159s # &_org_project_callable_iface_method_info_method_with_many_args_IN_ARG_an_n.parent_struct, 1159s # &_org_project_callable_iface_method_info_method_with_many_args_IN_ARG_an_q.parent_struct, 1159s # &_org_project_callable_iface_method_info_method_with_many_args_IN_ARG_an_i.parent_struct, 1159s # &_org_project_callable_iface_method_info_method_with_many_args_IN_ARG_an_u.parent_struct, 1159s # &_org_project_callable_iface_method_info_method_with_many_args_IN_ARG_an_x.parent_struct, 1159s # &_org_project_callable_iface_method_info_method_with_many_args_IN_ARG_an_t.parent_struct, 1159s # &_org_project_callable_iface_method_info_method_with_many_args_IN_ARG_an_d.parent_struct, 1159s # &_org_project_callable_iface_method_info_method_with_many_args_IN_ARG_an_s.parent_struct, 1159s # &_org_project_callable_iface_method_info_method_with_many_args_IN_ARG_an_o.parent_struct, 1159s # &_org_project_callable_iface_method_info_method_with_many_args_IN_ARG_an_g.parent_struct, 1159s # &_org_project_callable_iface_method_info_method_with_many_args_IN_ARG_an_h.parent_struct, 1159s # &_org_project_callable_iface_method_info_method_with_many_args_IN_ARG_an_ay.parent_struct, 1159s # &_org_project_callable_iface_method_info_method_with_many_args_IN_ARG_an_as.parent_struct, 1159s # &_org_project_callable_iface_method_info_method_with_many_args_IN_ARG_an_ao.parent_struct, 1159s # &_org_project_callable_iface_method_info_method_with_many_args_IN_ARG_an_aay.parent_struct, 1159s # &_org_project_callable_iface_method_info_method_with_many_args_IN_ARG_an_asv.parent_struct, 1159s # NULL 1159s # }; 1159s # 1159s # static const _ExtendedGDBusMethodInfo _org_project_callable_iface_method_info_method_with_many_args = 1159s # { 1159s # { 1159s # -1, 1159s # (gchar *) "MethodWithManyArgs", 1159s # (GDBusArgInfo **) &_org_project_callable_iface_method_info_method_with_many_args_IN_ARG_pointers, 1159s # NULL, 1159s # NULL 1159s # }, 1159s # "handle-method-with-many-args", 1159s # FALSE 1159s # }; 1159s # 1159s # static const _ExtendedGDBusArgInfo _org_project_callable_iface_method_info_same_method_with_many_args_IN_ARG_an_b = 1159s # { 1159s # { 1159s # -1, 1159s # (gchar *) "an_b", 1159s # (gchar *) "b", 1159s # NULL 1159s # }, 1159s # FALSE 1159s # }; 1159s # 1159s # static const _ExtendedGDBusArgInfo _org_project_callable_iface_method_info_same_method_with_many_args_IN_ARG_an_y = 1159s # { 1159s # { 1159s # -1, 1159s # (gchar *) "an_y", 1159s # (gchar *) "y", 1159s # NULL 1159s # }, 1159s # FALSE 1159s # }; 1159s # 1159s # static const _ExtendedGDBusArgInfo _org_project_callable_iface_method_info_same_method_with_many_args_IN_ARG_an_n = 1159s # { 1159s # { 1159s # -1, 1159s # (gchar *) "an_n", 1159s # (gchar *) "n", 1159s # NULL 1159s # }, 1159s # FALSE 1159s # }; 1159s # 1159s # static const _ExtendedGDBusArgInfo _org_project_callable_iface_method_info_same_method_with_many_args_IN_ARG_an_q = 1159s # { 1159s # { 1159s # -1, 1159s # (gchar *) "an_q", 1159s # (gchar *) "q", 1159s # NULL 1159s # }, 1159s # FALSE 1159s # }; 1159s # 1159s # static const _ExtendedGDBusArgInfo _org_project_callable_iface_method_info_same_method_with_many_args_IN_ARG_an_i = 1159s # { 1159s # { 1159s # -1, 1159s # (gchar *) "an_i", 1159s # (gchar *) "i", 1159s # NULL 1159s # }, 1159s # FALSE 1159s # }; 1159s # 1159s # static const _ExtendedGDBusArgInfo _org_project_callable_iface_method_info_same_method_with_many_args_IN_ARG_an_u = 1159s # { 1159s # { 1159s # -1, 1159s # (gchar *) "an_u", 1159s # (gchar *) "u", 1159s # NULL 1159s # }, 1159s # FALSE 1159s # }; 1159s # 1159s # static const _ExtendedGDBusArgInfo _org_project_callable_iface_method_info_same_method_with_many_args_IN_ARG_an_x = 1159s # { 1159s # { 1159s # -1, 1159s # (gchar *) "an_x", 1159s # (gchar *) "x", 1159s # NULL 1159s # }, 1159s # FALSE 1159s # }; 1159s # 1159s # static const _ExtendedGDBusArgInfo _org_project_callable_iface_method_info_same_method_with_many_args_IN_ARG_an_t = 1159s # { 1159s # { 1159s # -1, 1159s # (gchar *) "an_t", 1159s # (gchar *) "t", 1159s # NULL 1159s # }, 1159s # FALSE 1159s # }; 1159s # 1159s # static const _ExtendedGDBusArgInfo _org_project_callable_iface_method_info_same_method_with_many_args_IN_ARG_an_d = 1159s # { 1159s # { 1159s # -1, 1159s # (gchar *) "an_d", 1159s # (gchar *) "d", 1159s # NULL 1159s # }, 1159s # FALSE 1159s # }; 1159s # 1159s # static const _ExtendedGDBusArgInfo _org_project_callable_iface_method_info_same_method_with_many_args_IN_ARG_an_s = 1159s # { 1159s # { 1159s # -1, 1159s # (gchar *) "an_s", 1159s # (gchar *) "s", 1159s # NULL 1159s # }, 1159s # FALSE 1159s # }; 1159s # 1159s # static const _ExtendedGDBusArgInfo _org_project_callable_iface_method_info_same_method_with_many_args_IN_ARG_an_o = 1159s # { 1159s # { 1159s # -1, 1159s # (gchar *) "an_o", 1159s # (gchar *) "o", 1159s # NULL 1159s # }, 1159s # FALSE 1159s # }; 1159s # 1159s # static const _ExtendedGDBusArgInfo _org_project_callable_iface_method_info_same_method_with_many_args_IN_ARG_an_g = 1159s # { 1159s # { 1159s # -1, 1159s # (gchar *) "an_g", 1159s # (gchar *) "g", 1159s # NULL 1159s # }, 1159s # FALSE 1159s # }; 1159s # 1159s # static const _ExtendedGDBusArgInfo _org_project_callable_iface_method_info_same_method_with_many_args_IN_ARG_an_h = 1159s # { 1159s # { 1159s # -1, 1159s # (gchar *) "an_h", 1159s # (gchar *) "h", 1159s # NULL 1159s # }, 1159s # FALSE 1159s # }; 1159s # 1159s # static const _ExtendedGDBusArgInfo _org_project_callable_iface_method_info_same_method_with_many_args_IN_ARG_an_ay = 1159s # { 1159s # { 1159s # -1, 1159s # (gchar *) "an_ay", 1159s # (gchar *) "ay", 1159s # NULL 1159s # }, 1159s # FALSE 1159s # }; 1159s # 1159s # static const _ExtendedGDBusArgInfo _org_project_callable_iface_method_info_same_method_with_many_args_IN_ARG_an_as = 1159s # { 1159s # { 1159s # -1, 1159s # (gchar *) "an_as", 1159s # (gchar *) "as", 1159s # NULL 1159s # }, 1159s # FALSE 1159s # }; 1159s # 1159s # static const _ExtendedGDBusArgInfo _org_project_callable_iface_method_info_same_method_with_many_args_IN_ARG_an_ao = 1159s # { 1159s # { 1159s # -1, 1159s # (gchar *) "an_ao", 1159s # (gchar *) "ao", 1159s # NULL 1159s # }, 1159s # FALSE 1159s # }; 1159s # 1159s # static const _ExtendedGDBusArgInfo _org_project_callable_iface_method_info_same_method_with_many_args_IN_ARG_an_aay = 1159s # { 1159s # { 1159s # -1, 1159s # (gchar *) "an_aay", 1159s # (gchar *) "aay", 1159s # NULL 1159s # }, 1159s # FALSE 1159s # }; 1159s # 1159s # static const _ExtendedGDBusArgInfo _org_project_callable_iface_method_info_same_method_with_many_args_IN_ARG_an_asv = 1159s # { 1159s # { 1159s # -1, 1159s # (gchar *) "an_asv", 1159s # (gchar *) "a{sv}", 1159s # NULL 1159s # }, 1159s # FALSE 1159s # }; 1159s # 1159s # static const GDBusArgInfo * const _org_project_callable_iface_method_info_same_method_with_many_args_IN_ARG_pointers[] = 1159s # { 1159s # &_org_project_callable_iface_method_info_same_method_with_many_args_IN_ARG_an_b.parent_struct, 1159s # &_org_project_callable_iface_method_info_same_method_with_many_args_IN_ARG_an_y.parent_struct, 1159s # &_org_project_callable_iface_method_info_same_method_with_many_args_IN_ARG_an_n.parent_struct, 1159s # &_org_project_callable_iface_method_info_same_method_with_many_args_IN_ARG_an_q.parent_struct, 1159s # &_org_project_callable_iface_method_info_same_method_with_many_args_IN_ARG_an_i.parent_struct, 1159s # &_org_project_callable_iface_method_info_same_method_with_many_args_IN_ARG_an_u.parent_struct, 1159s # &_org_project_callable_iface_method_info_same_method_with_many_args_IN_ARG_an_x.parent_struct, 1159s # &_org_project_callable_iface_method_info_same_method_with_many_args_IN_ARG_an_t.parent_struct, 1159s # &_org_project_callable_iface_method_info_same_method_with_many_args_IN_ARG_an_d.parent_struct, 1159s # &_org_project_callable_iface_method_info_same_method_with_many_args_IN_ARG_an_s.parent_struct, 1159s # &_org_project_callable_iface_method_info_same_method_with_many_args_IN_ARG_an_o.parent_struct, 1159s # &_org_project_callable_iface_method_info_same_method_with_many_args_IN_ARG_an_g.parent_struct, 1159s # &_org_project_callable_iface_method_info_same_method_with_many_args_IN_ARG_an_h.parent_struct, 1159s # &_org_project_callable_iface_method_info_same_method_with_many_args_IN_ARG_an_ay.parent_struct, 1159s # &_org_project_callable_iface_method_info_same_method_with_many_args_IN_ARG_an_as.parent_struct, 1159s # &_org_project_callable_iface_method_info_same_method_with_many_args_IN_ARG_an_ao.parent_struct, 1159s # &_org_project_callable_iface_method_info_same_method_with_many_args_IN_ARG_an_aay.parent_struct, 1159s # &_org_project_callable_iface_method_info_same_method_with_many_args_IN_ARG_an_asv.parent_struct, 1159s # NULL 1159s # }; 1159s # 1159s # static const _ExtendedGDBusMethodInfo _org_project_callable_iface_method_info_same_method_with_many_args = 1159s # { 1159s # { 1159s # -1, 1159s # (gchar *) "SameMethodWithManyArgs", 1159s # (GDBusArgInfo **) &_org_project_callable_iface_method_info_same_method_with_many_args_IN_ARG_pointers, 1159s # NULL, 1159s # NULL 1159s # }, 1159s # "handle-same-method-with-many-args", 1159s # FALSE 1159s # }; 1159s # 1159s # static const GDBusMethodInfo * const _org_project_callable_iface_method_info_pointers[] = 1159s # { 1159s # &_org_project_callable_iface_method_info_method_with_many_args.parent_struct, 1159s # &_org_project_callable_iface_method_info_same_method_with_many_args.parent_struct, 1159s # NULL 1159s # }; 1159s # 1159s # static const _ExtendedGDBusInterfaceInfo _org_project_callable_iface_interface_info = 1159s # { 1159s # { 1159s # -1, 1159s # (gchar *) "org.project.CallableIface", 1159s # (GDBusMethodInfo **) &_org_project_callable_iface_method_info_pointers, 1159s # NULL, 1159s # NULL, 1159s # NULL 1159s # }, 1159s # "org-project-callable-iface", 1159s # }; 1159s # 1159s # 1159s # /** 1159s # * org_project_callable_iface_interface_info: 1159s # * 1159s # * Gets a machine-readable description of the org.project.CallableIface D-Bus interface. 1159s # * 1159s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 1159s # */ 1159s # GDBusInterfaceInfo * 1159s # org_project_callable_iface_interface_info (void) 1159s # { 1159s # return (GDBusInterfaceInfo *) &_org_project_callable_iface_interface_info.parent_struct; 1159s # } 1159s # 1159s # /** 1159s # * org_project_callable_iface_override_properties: 1159s # * @klass: The class structure for a #GObject derived class. 1159s # * @property_id_begin: The property id to assign to the first overridden property. 1159s # * 1159s # * Overrides all #GObject properties in the #OrgProjectCallableIface interface for a concrete class. 1159s # * The properties are overridden in the order they are defined. 1159s # * 1159s # * Returns: The last property id. 1159s # */ 1159s # guint 1159s # org_project_callable_iface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 1159s # { 1159s # return property_id_begin - 1; 1159s # } 1159s # 1159s # 1159s # inline static void 1159s # org_project_callable_iface_method_marshal_method_with_many_args ( 1159s # GClosure *closure, 1159s # GValue *return_value, 1159s # unsigned int n_param_values, 1159s # const GValue *param_values, 1159s # void *invocation_hint, 1159s # void *marshal_data) 1159s # { 1159s # _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, 1159s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1159s # } 1159s # 1159s # inline static void 1159s # org_project_callable_iface_method_marshal_same_method_with_many_args ( 1159s # GClosure *closure, 1159s # GValue *return_value, 1159s # unsigned int n_param_values, 1159s # const GValue *param_values, 1159s # void *invocation_hint, 1159s # void *marshal_data) 1159s # { 1159s # _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, 1159s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1159s # } 1159s # 1159s # 1159s # /** 1159s # * OrgProjectCallableIface: 1159s # * 1159s # * Abstract interface type for the D-Bus interface org.project.CallableIface. 1159s # */ 1159s # 1159s # /** 1159s # * OrgProjectCallableIfaceIface: 1159s # * @parent_iface: The parent interface. 1159s # * @handle_method_with_many_args: Handler for the #OrgProjectCallableIface::handle-method-with-many-args signal. 1159s # * @handle_same_method_with_many_args: Handler for the #OrgProjectCallableIface::handle-same-method-with-many-args signal. 1159s # * 1159s # * Virtual table for the D-Bus interface org.project.CallableIface. 1159s # */ 1159s # 1159s # typedef OrgProjectCallableIfaceIface OrgProjectCallableIfaceInterface; 1159s # G_DEFINE_INTERFACE (OrgProjectCallableIface, org_project_callable_iface, G_TYPE_OBJECT) 1159s # 1159s # static void 1159s # org_project_callable_iface_default_init (OrgProjectCallableIfaceIface *iface) 1159s # { 1159s # /* GObject signals for incoming D-Bus method calls: */ 1159s # /** 1159s # * OrgProjectCallableIface::handle-method-with-many-args: 1159s # * @object: A #OrgProjectCallableIface. 1159s # * @invocation: A #GDBusMethodInvocation. 1159s # * @arg_an_b: Argument passed by remote caller. 1159s # * @arg_an_y: Argument passed by remote caller. 1159s # * @arg_an_n: Argument passed by remote caller. 1159s # * @arg_an_q: Argument passed by remote caller. 1159s # * @arg_an_i: Argument passed by remote caller. 1159s # * @arg_an_u: Argument passed by remote caller. 1159s # * @arg_an_x: Argument passed by remote caller. 1159s # * @arg_an_t: Argument passed by remote caller. 1159s # * @arg_an_d: Argument passed by remote caller. 1159s # * @arg_an_s: Argument passed by remote caller. 1159s # * @arg_an_o: Argument passed by remote caller. 1159s # * @arg_an_g: Argument passed by remote caller. 1159s # * @arg_an_h: Argument passed by remote caller. 1159s # * @arg_an_ay: Argument passed by remote caller. 1159s # * @arg_an_as: Argument passed by remote caller. 1159s # * @arg_an_ao: Argument passed by remote caller. 1159s # * @arg_an_aay: Argument passed by remote caller. 1159s # * @arg_an_asv: Argument passed by remote caller. 1159s # * 1159s # * Signal emitted when a remote caller is invoking the MethodWithManyArgs() D-Bus method. 1159s # * 1159s # * 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. 1159s # * 1159s # * 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. 1159s # */ 1159s # g_signal_new ("handle-method-with-many-args", 1159s # G_TYPE_FROM_INTERFACE (iface), 1159s # G_SIGNAL_RUN_LAST, 1159s # G_STRUCT_OFFSET (OrgProjectCallableIfaceIface, handle_method_with_many_args), 1159s # g_signal_accumulator_true_handled, 1159s # NULL, 1159s # org_project_callable_iface_method_marshal_method_with_many_args, 1159s # G_TYPE_BOOLEAN, 1159s # 19, 1159s # 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); 1159s # 1159s # /** 1159s # * OrgProjectCallableIface::handle-same-method-with-many-args: 1159s # * @object: A #OrgProjectCallableIface. 1159s # * @invocation: A #GDBusMethodInvocation. 1159s # * @arg_an_b: Argument passed by remote caller. 1159s # * @arg_an_y: Argument passed by remote caller. 1159s # * @arg_an_n: Argument passed by remote caller. 1159s # * @arg_an_q: Argument passed by remote caller. 1159s # * @arg_an_i: Argument passed by remote caller. 1159s # * @arg_an_u: Argument passed by remote caller. 1159s # * @arg_an_x: Argument passed by remote caller. 1159s # * @arg_an_t: Argument passed by remote caller. 1159s # * @arg_an_d: Argument passed by remote caller. 1159s # * @arg_an_s: Argument passed by remote caller. 1159s # * @arg_an_o: Argument passed by remote caller. 1159s # * @arg_an_g: Argument passed by remote caller. 1159s # * @arg_an_h: Argument passed by remote caller. 1159s # * @arg_an_ay: Argument passed by remote caller. 1159s # * @arg_an_as: Argument passed by remote caller. 1159s # * @arg_an_ao: Argument passed by remote caller. 1159s # * @arg_an_aay: Argument passed by remote caller. 1159s # * @arg_an_asv: Argument passed by remote caller. 1159s # * 1159s # * Signal emitted when a remote caller is invoking the SameMethodWithManyArgs() D-Bus method. 1159s # * 1159s # * 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. 1159s # * 1159s # * 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. 1159s # */ 1159s # g_signal_new ("handle-same-method-with-many-args", 1159s # G_TYPE_FROM_INTERFACE (iface), 1159s # G_SIGNAL_RUN_LAST, 1159s # G_STRUCT_OFFSET (OrgProjectCallableIfaceIface, handle_same_method_with_many_args), 1159s # g_signal_accumulator_true_handled, 1159s # NULL, 1159s # org_project_callable_iface_method_marshal_same_method_with_many_args, 1159s # G_TYPE_BOOLEAN, 1159s # 19, 1159s # 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); 1159s # 1159s # } 1159s # 1159s # /** 1159s # * org_project_callable_iface_call_method_with_many_args: 1159s # * @proxy: A #OrgProjectCallableIfaceProxy. 1159s # * @arg_an_b: Argument to pass with the method invocation. 1159s # * @arg_an_y: Argument to pass with the method invocation. 1159s # * @arg_an_n: Argument to pass with the method invocation. 1159s # * @arg_an_q: Argument to pass with the method invocation. 1159s # * @arg_an_i: Argument to pass with the method invocation. 1159s # * @arg_an_u: Argument to pass with the method invocation. 1159s # * @arg_an_x: Argument to pass with the method invocation. 1159s # * @arg_an_t: Argument to pass with the method invocation. 1159s # * @arg_an_d: Argument to pass with the method invocation. 1159s # * @arg_an_s: Argument to pass with the method invocation. 1159s # * @arg_an_o: Argument to pass with the method invocation. 1159s # * @arg_an_g: Argument to pass with the method invocation. 1159s # * @arg_an_h: Argument to pass with the method invocation. 1159s # * @arg_an_ay: Argument to pass with the method invocation. 1159s # * @arg_an_as: Argument to pass with the method invocation. 1159s # * @arg_an_ao: Argument to pass with the method invocation. 1159s # * @arg_an_aay: Argument to pass with the method invocation. 1159s # * @arg_an_asv: Argument to pass with the method invocation. 1159s # * @cancellable: (nullable): A #GCancellable or %NULL. 1159s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL. 1159s # * @user_data: User data to pass to @callback. 1159s # * 1159s # * Asynchronously invokes the MethodWithManyArgs() D-Bus method on @proxy. 1159s # * 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()). 1159s # * You can then call org_project_callable_iface_call_method_with_many_args_finish() to get the result of the operation. 1159s # * 1159s # * See org_project_callable_iface_call_method_with_many_args_sync() for the synchronous, blocking version of this method. 1159s # */ 1159s # void 1159s # org_project_callable_iface_call_method_with_many_args ( 1159s # OrgProjectCallableIface *proxy, 1159s # gboolean arg_an_b, 1159s # guchar arg_an_y, 1159s # gint16 arg_an_n, 1159s # guint16 arg_an_q, 1159s # gint arg_an_i, 1159s # guint arg_an_u, 1159s # gint64 arg_an_x, 1159s # guint64 arg_an_t, 1159s # gdouble arg_an_d, 1159s # const gchar *arg_an_s, 1159s # const gchar *arg_an_o, 1159s # const gchar *arg_an_g, 1159s # GVariant *arg_an_h, 1159s # const gchar *arg_an_ay, 1159s # const gchar *const *arg_an_as, 1159s # const gchar *const *arg_an_ao, 1159s # const gchar *const *arg_an_aay, 1159s # GVariant *arg_an_asv, 1159s # GCancellable *cancellable, 1159s # GAsyncReadyCallback callback, 1159s # gpointer user_data) 1159s # { 1159s # g_dbus_proxy_call (G_DBUS_PROXY (proxy), 1159s # "MethodWithManyArgs", 1159s # g_variant_new ("(bynqiuxtdsog@h^ay^as^ao^aay@a{sv})", 1159s # arg_an_b, 1159s # arg_an_y, 1159s # arg_an_n, 1159s # arg_an_q, 1159s # arg_an_i, 1159s # arg_an_u, 1159s # arg_an_x, 1159s # arg_an_t, 1159s # arg_an_d, 1159s # arg_an_s, 1159s # arg_an_o, 1159s # arg_an_g, 1159s # arg_an_h, 1159s # arg_an_ay, 1159s # arg_an_as, 1159s # arg_an_ao, 1159s # arg_an_aay, 1159s # arg_an_asv), 1159s # G_DBUS_CALL_FLAGS_NONE, 1159s # -1, 1159s # cancellable, 1159s # callback, 1159s # user_data); 1159s # } 1159s # 1159s # /** 1159s # * org_project_callable_iface_call_method_with_many_args_finish: 1159s # * @proxy: A #OrgProjectCallableIfaceProxy. 1159s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_callable_iface_call_method_with_many_args(). 1159s # * @error: Return location for error or %NULL. 1159s # * 1159s # * Finishes an operation started with org_project_callable_iface_call_method_with_many_args(). 1159s # * 1159s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1159s # */ 1159s # gboolean 1159s # org_project_callable_iface_call_method_with_many_args_finish ( 1159s # OrgProjectCallableIface *proxy, 1159s # GAsyncResult *res, 1159s # GError **error) 1159s # { 1159s # GVariant *_ret; 1159s # _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error); 1159s # if (_ret == NULL) 1159s # goto _out; 1159s # g_variant_get (_ret, 1159s # "()"); 1159s # g_variant_unref (_ret); 1159s # _out: 1159s # return _ret != NULL; 1159s # } 1159s # 1159s # /** 1159s # * org_project_callable_iface_call_method_with_many_args_sync: 1159s # * @proxy: A #OrgProjectCallableIfaceProxy. 1159s # * @arg_an_b: Argument to pass with the method invocation. 1159s # * @arg_an_y: Argument to pass with the method invocation. 1159s # * @arg_an_n: Argument to pass with the method invocation. 1159s # * @arg_an_q: Argument to pass with the method invocation. 1159s # * @arg_an_i: Argument to pass with the method invocation. 1159s # * @arg_an_u: Argument to pass with the method invocation. 1159s # * @arg_an_x: Argument to pass with the method invocation. 1159s # * @arg_an_t: Argument to pass with the method invocation. 1159s # * @arg_an_d: Argument to pass with the method invocation. 1159s # * @arg_an_s: Argument to pass with the method invocation. 1159s # * @arg_an_o: Argument to pass with the method invocation. 1159s # * @arg_an_g: Argument to pass with the method invocation. 1159s # * @arg_an_h: Argument to pass with the method invocation. 1159s # * @arg_an_ay: Argument to pass with the method invocation. 1159s # * @arg_an_as: Argument to pass with the method invocation. 1159s # * @arg_an_ao: Argument to pass with the method invocation. 1159s # * @arg_an_aay: Argument to pass with the method invocation. 1159s # * @arg_an_asv: Argument to pass with the method invocation. 1159s # * @cancellable: (nullable): A #GCancellable or %NULL. 1159s # * @error: Return location for error or %NULL. 1159s # * 1159s # * Synchronously invokes the MethodWithManyArgs() D-Bus method on @proxy. The calling thread is blocked until a reply is received. 1159s # * 1159s # * See org_project_callable_iface_call_method_with_many_args() for the asynchronous version of this method. 1159s # * 1159s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1159s # */ 1159s # gboolean 1159s # org_project_callable_iface_call_method_with_many_args_sync ( 1159s # OrgProjectCallableIface *proxy, 1159s # gboolean arg_an_b, 1159s # guchar arg_an_y, 1159s # gint16 arg_an_n, 1159s # guint16 arg_an_q, 1159s # gint arg_an_i, 1159s # guint arg_an_u, 1159s # gint64 arg_an_x, 1159s # guint64 arg_an_t, 1159s # gdouble arg_an_d, 1159s # const gchar *arg_an_s, 1159s # const gchar *arg_an_o, 1159s # const gchar *arg_an_g, 1159s # GVariant *arg_an_h, 1159s # const gchar *arg_an_ay, 1159s # const gchar *const *arg_an_as, 1159s # const gchar *const *arg_an_ao, 1159s # const gchar *const *arg_an_aay, 1159s # GVariant *arg_an_asv, 1159s # GCancellable *cancellable, 1159s # GError **error) 1159s # { 1159s # GVariant *_ret; 1159s # _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy), 1159s # "MethodWithManyArgs", 1159s # g_variant_new ("(bynqiuxtdsog@h^ay^as^ao^aay@a{sv})", 1159s # arg_an_b, 1159s # arg_an_y, 1159s # arg_an_n, 1159s # arg_an_q, 1159s # arg_an_i, 1159s # arg_an_u, 1159s # arg_an_x, 1159s # arg_an_t, 1159s # arg_an_d, 1159s # arg_an_s, 1159s # arg_an_o, 1159s # arg_an_g, 1159s # arg_an_h, 1159s # arg_an_ay, 1159s # arg_an_as, 1159s # arg_an_ao, 1159s # arg_an_aay, 1159s # arg_an_asv), 1159s # G_DBUS_CALL_FLAGS_NONE, 1159s # -1, 1159s # cancellable, 1159s # error); 1159s # if (_ret == NULL) 1159s # goto _out; 1159s # g_variant_get (_ret, 1159s # "()"); 1159s # g_variant_unref (_ret); 1159s # _out: 1159s # return _ret != NULL; 1159s # } 1159s # 1159s # /** 1159s # * org_project_callable_iface_call_same_method_with_many_args: 1159s # * @proxy: A #OrgProjectCallableIfaceProxy. 1159s # * @arg_an_b: Argument to pass with the method invocation. 1159s # * @arg_an_y: Argument to pass with the method invocation. 1159s # * @arg_an_n: Argument to pass with the method invocation. 1159s # * @arg_an_q: Argument to pass with the method invocation. 1159s # * @arg_an_i: Argument to pass with the method invocation. 1159s # * @arg_an_u: Argument to pass with the method invocation. 1159s # * @arg_an_x: Argument to pass with the method invocation. 1159s # * @arg_an_t: Argument to pass with the method invocation. 1159s # * @arg_an_d: Argument to pass with the method invocation. 1159s # * @arg_an_s: Argument to pass with the method invocation. 1159s # * @arg_an_o: Argument to pass with the method invocation. 1159s # * @arg_an_g: Argument to pass with the method invocation. 1159s # * @arg_an_h: Argument to pass with the method invocation. 1159s # * @arg_an_ay: Argument to pass with the method invocation. 1159s # * @arg_an_as: Argument to pass with the method invocation. 1159s # * @arg_an_ao: Argument to pass with the method invocation. 1159s # * @arg_an_aay: Argument to pass with the method invocation. 1159s # * @arg_an_asv: Argument to pass with the method invocation. 1159s # * @cancellable: (nullable): A #GCancellable or %NULL. 1159s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL. 1159s # * @user_data: User data to pass to @callback. 1159s # * 1159s # * Asynchronously invokes the SameMethodWithManyArgs() D-Bus method on @proxy. 1159s # * 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()). 1159s # * You can then call org_project_callable_iface_call_same_method_with_many_args_finish() to get the result of the operation. 1159s # * 1159s # * See org_project_callable_iface_call_same_method_with_many_args_sync() for the synchronous, blocking version of this method. 1159s # */ 1159s # void 1159s # org_project_callable_iface_call_same_method_with_many_args ( 1159s # OrgProjectCallableIface *proxy, 1159s # gboolean arg_an_b, 1159s # guchar arg_an_y, 1159s # gint16 arg_an_n, 1159s # guint16 arg_an_q, 1159s # gint arg_an_i, 1159s # guint arg_an_u, 1159s # gint64 arg_an_x, 1159s # guint64 arg_an_t, 1159s # gdouble arg_an_d, 1159s # const gchar *arg_an_s, 1159s # const gchar *arg_an_o, 1159s # const gchar *arg_an_g, 1159s # GVariant *arg_an_h, 1159s # const gchar *arg_an_ay, 1159s # const gchar *const *arg_an_as, 1159s # const gchar *const *arg_an_ao, 1159s # const gchar *const *arg_an_aay, 1159s # GVariant *arg_an_asv, 1159s # GCancellable *cancellable, 1159s # GAsyncReadyCallback callback, 1159s # gpointer user_data) 1159s # { 1159s # g_dbus_proxy_call (G_DBUS_PROXY (proxy), 1159s # "SameMethodWithManyArgs", 1159s # g_variant_new ("(bynqiuxtdsog@h^ay^as^ao^aay@a{sv})", 1159s # arg_an_b, 1159s # arg_an_y, 1159s # arg_an_n, 1159s # arg_an_q, 1159s # arg_an_i, 1159s # arg_an_u, 1159s # arg_an_x, 1159s # arg_an_t, 1159s # arg_an_d, 1159s # arg_an_s, 1159s # arg_an_o, 1159s # arg_an_g, 1159s # arg_an_h, 1159s # arg_an_ay, 1159s # arg_an_as, 1159s # arg_an_ao, 1159s # arg_an_aay, 1159s # arg_an_asv), 1159s # G_DBUS_CALL_FLAGS_NONE, 1159s # -1, 1159s # cancellable, 1159s # callback, 1159s # user_data); 1159s # } 1159s # 1159s # /** 1159s # * org_project_callable_iface_call_same_method_with_many_args_finish: 1159s # * @proxy: A #OrgProjectCallableIfaceProxy. 1159s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_callable_iface_call_same_method_with_many_args(). 1159s # * @error: Return location for error or %NULL. 1159s # * 1159s # * Finishes an operation started with org_project_callable_iface_call_same_method_with_many_args(). 1159s # * 1159s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1159s # */ 1159s # gboolean 1159s # org_project_callable_iface_call_same_method_with_many_args_finish ( 1159s # OrgProjectCallableIface *proxy, 1159s # GAsyncResult *res, 1159s # GError **error) 1159s # { 1159s # GVariant *_ret; 1159s # _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error); 1159s # if (_ret == NULL) 1159s # goto _out; 1159s # g_variant_get (_ret, 1159s # "()"); 1159s # g_variant_unref (_ret); 1159s # _out: 1159s # return _ret != NULL; 1159s # } 1159s # 1159s # /** 1159s # * org_project_callable_iface_call_same_method_with_many_args_sync: 1159s # * @proxy: A #OrgProjectCallableIfaceProxy. 1159s # * @arg_an_b: Argument to pass with the method invocation. 1159s # * @arg_an_y: Argument to pass with the method invocation. 1159s # * @arg_an_n: Argument to pass with the method invocation. 1159s # * @arg_an_q: Argument to pass with the method invocation. 1159s # * @arg_an_i: Argument to pass with the method invocation. 1159s # * @arg_an_u: Argument to pass with the method invocation. 1159s # * @arg_an_x: Argument to pass with the method invocation. 1159s # * @arg_an_t: Argument to pass with the method invocation. 1159s # * @arg_an_d: Argument to pass with the method invocation. 1159s # * @arg_an_s: Argument to pass with the method invocation. 1159s # * @arg_an_o: Argument to pass with the method invocation. 1159s # * @arg_an_g: Argument to pass with the method invocation. 1159s # * @arg_an_h: Argument to pass with the method invocation. 1159s # * @arg_an_ay: Argument to pass with the method invocation. 1159s # * @arg_an_as: Argument to pass with the method invocation. 1159s # * @arg_an_ao: Argument to pass with the method invocation. 1159s # * @arg_an_aay: Argument to pass with the method invocation. 1159s # * @arg_an_asv: Argument to pass with the method invocation. 1159s # * @cancellable: (nullable): A #GCancellable or %NULL. 1159s # * @error: Return location for error or %NULL. 1159s # * 1159s # * Synchronously invokes the SameMethodWithManyArgs() D-Bus method on @proxy. The calling thread is blocked until a reply is received. 1159s # * 1159s # * See org_project_callable_iface_call_same_method_with_many_args() for the asynchronous version of this method. 1159s # * 1159s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1159s # */ 1159s # gboolean 1159s # org_project_callable_iface_call_same_method_with_many_args_sync ( 1159s # OrgProjectCallableIface *proxy, 1159s # gboolean arg_an_b, 1159s # guchar arg_an_y, 1159s # gint16 arg_an_n, 1159s # guint16 arg_an_q, 1159s # gint arg_an_i, 1159s # guint arg_an_u, 1159s # gint64 arg_an_x, 1159s # guint64 arg_an_t, 1159s # gdouble arg_an_d, 1159s # const gchar *arg_an_s, 1159s # const gchar *arg_an_o, 1159s # const gchar *arg_an_g, 1159s # GVariant *arg_an_h, 1159s # const gchar *arg_an_ay, 1159s # const gchar *const *arg_an_as, 1159s # const gchar *const *arg_an_ao, 1159s # const gchar *const *arg_an_aay, 1159s # GVariant *arg_an_asv, 1159s # GCancellable *cancellable, 1159s # GError **error) 1159s # { 1159s # GVariant *_ret; 1159s # _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy), 1159s # "SameMethodWithManyArgs", 1159s # g_variant_new ("(bynqiuxtdsog@h^ay^as^ao^aay@a{sv})", 1159s # arg_an_b, 1159s # arg_an_y, 1159s # arg_an_n, 1159s # arg_an_q, 1159s # arg_an_i, 1159s # arg_an_u, 1159s # arg_an_x, 1159s # arg_an_t, 1159s # arg_an_d, 1159s # arg_an_s, 1159s # arg_an_o, 1159s # arg_an_g, 1159s # arg_an_h, 1159s # arg_an_ay, 1159s # arg_an_as, 1159s # arg_an_ao, 1159s # arg_an_aay, 1159s # arg_an_asv), 1159s # G_DBUS_CALL_FLAGS_NONE, 1159s # -1, 1159s # cancellable, 1159s # error); 1159s # if (_ret == NULL) 1159s # goto _out; 1159s # g_variant_get (_ret, 1159s # "()"); 1159s # g_variant_unref (_ret); 1159s # _out: 1159s # return _ret != NULL; 1159s # } 1159s # 1159s # /** 1159s # * org_project_callable_iface_complete_method_with_many_args: 1159s # * @object: A #OrgProjectCallableIface. 1159s # * @invocation: (transfer full): A #GDBusMethodInvocation. 1159s # * 1159s # * 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. 1159s # * 1159s # * This method will free @invocation, you cannot use it afterwards. 1159s # */ 1159s # void 1159s # org_project_callable_iface_complete_method_with_many_args ( 1159s # OrgProjectCallableIface *object G_GNUC_UNUSED, 1159s # GDBusMethodInvocation *invocation) 1159s # { 1159s # g_dbus_method_invocation_return_value (invocation, 1159s # g_variant_new ("()")); 1159s # } 1159s # 1159s # /** 1159s # * org_project_callable_iface_complete_same_method_with_many_args: 1159s # * @object: A #OrgProjectCallableIface. 1159s # * @invocation: (transfer full): A #GDBusMethodInvocation. 1159s # * 1159s # * 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. 1159s # * 1159s # * This method will free @invocation, you cannot use it afterwards. 1159s # */ 1159s # void 1159s # org_project_callable_iface_complete_same_method_with_many_args ( 1159s # OrgProjectCallableIface *object G_GNUC_UNUSED, 1159s # GDBusMethodInvocation *invocation) 1159s # { 1159s # g_dbus_method_invocation_return_value (invocation, 1159s # g_variant_new ("()")); 1159s # } 1159s # 1159s # /* ------------------------------------------------------------------------ */ 1159s # 1159s # /** 1159s # * OrgProjectCallableIfaceProxy: 1159s # * 1159s # * The #OrgProjectCallableIfaceProxy structure contains only private data and should only be accessed using the provided API. 1159s # */ 1159s # 1159s # /** 1159s # * OrgProjectCallableIfaceProxyClass: 1159s # * @parent_class: The parent class. 1159s # * 1159s # * Class structure for #OrgProjectCallableIfaceProxy. 1159s # */ 1159s # 1159s # struct _OrgProjectCallableIfaceProxyPrivate 1159s # { 1159s # GData *qdata; 1159s # }; 1159s # 1159s # static void org_project_callable_iface_proxy_iface_init (OrgProjectCallableIfaceIface *iface); 1159s # 1159s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1159s # G_DEFINE_TYPE_WITH_CODE (OrgProjectCallableIfaceProxy, org_project_callable_iface_proxy, G_TYPE_DBUS_PROXY, 1159s # G_ADD_PRIVATE (OrgProjectCallableIfaceProxy) 1159s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_CALLABLE_IFACE, org_project_callable_iface_proxy_iface_init)) 1159s # 1159s # #else 1159s # G_DEFINE_TYPE_WITH_CODE (OrgProjectCallableIfaceProxy, org_project_callable_iface_proxy, G_TYPE_DBUS_PROXY, 1159s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_CALLABLE_IFACE, org_project_callable_iface_proxy_iface_init)) 1159s # 1159s # #endif 1159s # static void 1159s # org_project_callable_iface_proxy_finalize (GObject *object) 1159s # { 1159s # OrgProjectCallableIfaceProxy *proxy = ORG_PROJECT_CALLABLE_IFACE_PROXY (object); 1159s # g_datalist_clear (&proxy->priv->qdata); 1159s # G_OBJECT_CLASS (org_project_callable_iface_proxy_parent_class)->finalize (object); 1159s # } 1159s # 1159s # static void 1159s # org_project_callable_iface_proxy_get_property (GObject *object G_GNUC_UNUSED, 1159s # guint prop_id G_GNUC_UNUSED, 1159s # GValue *value G_GNUC_UNUSED, 1159s # GParamSpec *pspec G_GNUC_UNUSED) 1159s # { 1159s # } 1159s # 1159s # static void 1159s # org_project_callable_iface_proxy_set_property (GObject *object G_GNUC_UNUSED, 1159s # guint prop_id G_GNUC_UNUSED, 1159s # const GValue *value G_GNUC_UNUSED, 1159s # GParamSpec *pspec G_GNUC_UNUSED) 1159s # { 1159s # } 1159s # 1159s # static void 1159s # org_project_callable_iface_proxy_g_signal (GDBusProxy *proxy, 1159s # const gchar *sender_name G_GNUC_UNUSED, 1159s # const gchar *signal_name, 1159s # GVariant *parameters) 1159s # { 1159s # _ExtendedGDBusSignalInfo *info; 1159s # GVariantIter iter; 1159s # GVariant *child; 1159s # GValue *paramv; 1159s # gsize num_params; 1159s # gsize n; 1159s # guint signal_id; 1159s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_callable_iface_interface_info.parent_struct, signal_name); 1159s # if (info == NULL) 1159s # return; 1159s # num_params = g_variant_n_children (parameters); 1159s # paramv = g_new0 (GValue, num_params + 1); 1159s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_CALLABLE_IFACE); 1159s # g_value_set_object (¶mv[0], proxy); 1159s # g_variant_iter_init (&iter, parameters); 1159s # n = 1; 1159s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1159s # { 1159s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 1159s # if (arg_info->use_gvariant) 1159s # { 1159s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1159s # g_value_set_variant (¶mv[n], child); 1159s # n++; 1159s # } 1159s # else 1159s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1159s # g_variant_unref (child); 1159s # } 1159s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_CALLABLE_IFACE); 1159s # g_signal_emitv (paramv, signal_id, 0, NULL); 1159s # for (n = 0; n < num_params + 1; n++) 1159s # g_value_unset (¶mv[n]); 1159s # g_free (paramv); 1159s # } 1159s # 1159s # static void 1159s # org_project_callable_iface_proxy_g_properties_changed (GDBusProxy *_proxy, 1159s # GVariant *changed_properties, 1159s # const gchar *const *invalidated_properties) 1159s # { 1159s # OrgProjectCallableIfaceProxy *proxy = ORG_PROJECT_CALLABLE_IFACE_PROXY (_proxy); 1159s # guint n; 1159s # const gchar *key; 1159s # GVariantIter *iter; 1159s # _ExtendedGDBusPropertyInfo *info; 1159s # g_variant_get (changed_properties, "a{sv}", &iter); 1159s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 1159s # { 1159s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_callable_iface_interface_info.parent_struct, key); 1159s # g_datalist_remove_data (&proxy->priv->qdata, key); 1159s # if (info != NULL) 1159s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1159s # } 1159s # g_variant_iter_free (iter); 1159s # for (n = 0; invalidated_properties[n] != NULL; n++) 1159s # { 1159s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_callable_iface_interface_info.parent_struct, invalidated_properties[n]); 1159s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 1159s # if (info != NULL) 1159s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1159s # } 1159s # } 1159s # 1159s # static void 1159s # org_project_callable_iface_proxy_init (OrgProjectCallableIfaceProxy *proxy) 1159s # { 1159s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1159s # proxy->priv = org_project_callable_iface_proxy_get_instance_private (proxy); 1159s # #else 1159s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_CALLABLE_IFACE_PROXY, OrgProjectCallableIfaceProxyPrivate); 1159s # #endif 1159s # 1159s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_callable_iface_interface_info ()); 1159s # } 1159s # 1159s # static void 1159s # org_project_callable_iface_proxy_class_init (OrgProjectCallableIfaceProxyClass *klass) 1159s # { 1159s # GObjectClass *gobject_class; 1159s # GDBusProxyClass *proxy_class; 1159s # 1159s # gobject_class = G_OBJECT_CLASS (klass); 1159s # gobject_class->finalize = org_project_callable_iface_proxy_finalize; 1159s # gobject_class->get_property = org_project_callable_iface_proxy_get_property; 1159s # gobject_class->set_property = org_project_callable_iface_proxy_set_property; 1159s # 1159s # proxy_class = G_DBUS_PROXY_CLASS (klass); 1159s # proxy_class->g_signal = org_project_callable_iface_proxy_g_signal; 1159s # proxy_class->g_properties_changed = org_project_callable_iface_proxy_g_properties_changed; 1159s # 1159s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1159s # g_type_class_add_private (klass, sizeof (OrgProjectCallableIfaceProxyPrivate)); 1159s # #endif 1159s # } 1159s # 1159s # static void 1159s # org_project_callable_iface_proxy_iface_init (OrgProjectCallableIfaceIface *iface G_GNUC_UNUSED) 1159s # { 1159s # } 1159s # 1159s # /** 1159s # * org_project_callable_iface_proxy_new: 1159s # * @connection: A #GDBusConnection. 1159s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1159s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1159s # * @object_path: An object path. 1159s # * @cancellable: (nullable): A #GCancellable or %NULL. 1159s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1159s # * @user_data: User data to pass to @callback. 1159s # * 1159s # * Asynchronously creates a proxy for the D-Bus interface org.project.CallableIface. See g_dbus_proxy_new() for more details. 1159s # * 1159s # * 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()). 1159s # * You can then call org_project_callable_iface_proxy_new_finish() to get the result of the operation. 1159s # * 1159s # * See org_project_callable_iface_proxy_new_sync() for the synchronous, blocking version of this constructor. 1159s # */ 1159s # void 1159s # org_project_callable_iface_proxy_new ( 1159s # GDBusConnection *connection, 1159s # GDBusProxyFlags flags, 1159s # const gchar *name, 1159s # const gchar *object_path, 1159s # GCancellable *cancellable, 1159s # GAsyncReadyCallback callback, 1159s # gpointer user_data) 1159s # { 1159s # 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); 1159s # } 1159s # 1159s # /** 1159s # * org_project_callable_iface_proxy_new_finish: 1159s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_callable_iface_proxy_new(). 1159s # * @error: Return location for error or %NULL 1159s # * 1159s # * Finishes an operation started with org_project_callable_iface_proxy_new(). 1159s # * 1159s # * Returns: (transfer full) (type OrgProjectCallableIfaceProxy): The constructed proxy object or %NULL if @error is set. 1159s # */ 1159s # OrgProjectCallableIface * 1159s # org_project_callable_iface_proxy_new_finish ( 1159s # GAsyncResult *res, 1159s # GError **error) 1159s # { 1159s # GObject *ret; 1159s # GObject *source_object; 1159s # source_object = g_async_result_get_source_object (res); 1159s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1159s # g_object_unref (source_object); 1159s # if (ret != NULL) 1159s # return ORG_PROJECT_CALLABLE_IFACE (ret); 1159s # else 1159s # return NULL; 1159s # } 1159s # 1159s # /** 1159s # * org_project_callable_iface_proxy_new_sync: 1159s # * @connection: A #GDBusConnection. 1159s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1159s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1159s # * @object_path: An object path. 1159s # * @cancellable: (nullable): A #GCancellable or %NULL. 1159s # * @error: Return location for error or %NULL 1159s # * 1159s # * Synchronously creates a proxy for the D-Bus interface org.project.CallableIface. See g_dbus_proxy_new_sync() for more details. 1159s # * 1159s # * The calling thread is blocked until a reply is received. 1159s # * 1159s # * See org_project_callable_iface_proxy_new() for the asynchronous version of this constructor. 1159s # * 1159s # * Returns: (transfer full) (type OrgProjectCallableIfaceProxy): The constructed proxy object or %NULL if @error is set. 1159s # */ 1159s # OrgProjectCallableIface * 1159s # org_project_callable_iface_proxy_new_sync ( 1159s # GDBusConnection *connection, 1159s # GDBusProxyFlags flags, 1159s # const gchar *name, 1159s # const gchar *object_path, 1159s # GCancellable *cancellable, 1159s # GError **error) 1159s # { 1159s # GInitable *ret; 1159s # 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); 1159s # if (ret != NULL) 1159s # return ORG_PROJECT_CALLABLE_IFACE (ret); 1159s # else 1159s # return NULL; 1159s # } 1159s # 1159s # 1159s # /** 1159s # * org_project_callable_iface_proxy_new_for_bus: 1159s # * @bus_type: A #GBusType. 1159s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1159s # * @name: A bus name (well-known or unique). 1159s # * @object_path: An object path. 1159s # * @cancellable: (nullable): A #GCancellable or %NULL. 1159s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1159s # * @user_data: User data to pass to @callback. 1159s # * 1159s # * Like org_project_callable_iface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 1159s # * 1159s # * 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()). 1159s # * You can then call org_project_callable_iface_proxy_new_for_bus_finish() to get the result of the operation. 1159s # * 1159s # * See org_project_callable_iface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 1159s # */ 1159s # void 1159s # org_project_callable_iface_proxy_new_for_bus ( 1159s # GBusType bus_type, 1159s # GDBusProxyFlags flags, 1159s # const gchar *name, 1159s # const gchar *object_path, 1159s # GCancellable *cancellable, 1159s # GAsyncReadyCallback callback, 1159s # gpointer user_data) 1159s # { 1159s # 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); 1159s # } 1159s # 1159s # /** 1159s # * org_project_callable_iface_proxy_new_for_bus_finish: 1159s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_callable_iface_proxy_new_for_bus(). 1159s # * @error: Return location for error or %NULL 1159s # * 1159s # * Finishes an operation started with org_project_callable_iface_proxy_new_for_bus(). 1159s # * 1159s # * Returns: (transfer full) (type OrgProjectCallableIfaceProxy): The constructed proxy object or %NULL if @error is set. 1159s # */ 1159s # OrgProjectCallableIface * 1159s # org_project_callable_iface_proxy_new_for_bus_finish ( 1159s # GAsyncResult *res, 1159s # GError **error) 1159s # { 1159s # GObject *ret; 1159s # GObject *source_object; 1159s # source_object = g_async_result_get_source_object (res); 1159s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1159s # g_object_unref (source_object); 1159s # if (ret != NULL) 1159s # return ORG_PROJECT_CALLABLE_IFACE (ret); 1159s # else 1159s # return NULL; 1159s # } 1159s # 1159s # /** 1159s # * org_project_callable_iface_proxy_new_for_bus_sync: 1159s # * @bus_type: A #GBusType. 1159s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1159s # * @name: A bus name (well-known or unique). 1159s # * @object_path: An object path. 1159s # * @cancellable: (nullable): A #GCancellable or %NULL. 1159s # * @error: Return location for error or %NULL 1159s # * 1159s # * Like org_project_callable_iface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 1159s # * 1159s # * The calling thread is blocked until a reply is received. 1159s # * 1159s # * See org_project_callable_iface_proxy_new_for_bus() for the asynchronous version of this constructor. 1159s # * 1159s # * Returns: (transfer full) (type OrgProjectCallableIfaceProxy): The constructed proxy object or %NULL if @error is set. 1159s # */ 1159s # OrgProjectCallableIface * 1159s # org_project_callable_iface_proxy_new_for_bus_sync ( 1159s # GBusType bus_type, 1159s # GDBusProxyFlags flags, 1159s # const gchar *name, 1159s # const gchar *object_path, 1159s # GCancellable *cancellable, 1159s # GError **error) 1159s # { 1159s # GInitable *ret; 1159s # 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); 1159s # if (ret != NULL) 1159s # return ORG_PROJECT_CALLABLE_IFACE (ret); 1159s # else 1159s # return NULL; 1159s # } 1159s # 1159s # 1159s # /* ------------------------------------------------------------------------ */ 1159s # 1159s # /** 1159s # * OrgProjectCallableIfaceSkeleton: 1159s # * 1159s # * The #OrgProjectCallableIfaceSkeleton structure contains only private data and should only be accessed using the provided API. 1159s # */ 1159s # 1159s # /** 1159s # * OrgProjectCallableIfaceSkeletonClass: 1159s # * @parent_class: The parent class. 1159s # * 1159s # * Class structure for #OrgProjectCallableIfaceSkeleton. 1159s # */ 1159s # 1159s # struct _OrgProjectCallableIfaceSkeletonPrivate 1159s # { 1159s # GValue *properties; 1159s # GList *changed_properties; 1159s # GSource *changed_properties_idle_source; 1159s # GMainContext *context; 1159s # GMutex lock; 1159s # }; 1159s # 1159s # static void 1159s # _org_project_callable_iface_skeleton_handle_method_call ( 1159s # GDBusConnection *connection G_GNUC_UNUSED, 1159s # const gchar *sender G_GNUC_UNUSED, 1159s # const gchar *object_path G_GNUC_UNUSED, 1159s # const gchar *interface_name, 1159s # const gchar *method_name, 1159s # GVariant *parameters, 1159s # GDBusMethodInvocation *invocation, 1159s # gpointer user_data) 1159s # { 1159s # OrgProjectCallableIfaceSkeleton *skeleton = ORG_PROJECT_CALLABLE_IFACE_SKELETON (user_data); 1159s # _ExtendedGDBusMethodInfo *info; 1159s # GVariantIter iter; 1159s # GVariant *child; 1159s # GValue *paramv; 1159s # gsize num_params; 1159s # guint num_extra; 1159s # gsize n; 1159s # guint signal_id; 1159s # GValue return_value = G_VALUE_INIT; 1159s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 1159s # g_assert (info != NULL); 1159s # num_params = g_variant_n_children (parameters); 1159s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 1159s # n = 0; 1159s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_CALLABLE_IFACE); 1159s # g_value_set_object (¶mv[n++], skeleton); 1159s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 1159s # g_value_set_object (¶mv[n++], invocation); 1159s # if (info->pass_fdlist) 1159s # { 1159s # #ifdef G_OS_UNIX 1159s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 1159s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 1159s # #else 1159s # g_assert_not_reached (); 1159s # #endif 1159s # } 1159s # g_variant_iter_init (&iter, parameters); 1159s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1159s # { 1159s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 1159s # if (arg_info->use_gvariant) 1159s # { 1159s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1159s # g_value_set_variant (¶mv[n], child); 1159s # n++; 1159s # } 1159s # else 1159s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1159s # g_variant_unref (child); 1159s # } 1159s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_CALLABLE_IFACE); 1159s # g_value_init (&return_value, G_TYPE_BOOLEAN); 1159s # g_signal_emitv (paramv, signal_id, 0, &return_value); 1159s # if (!g_value_get_boolean (&return_value)) 1159s # 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); 1159s # g_value_unset (&return_value); 1159s # for (n = 0; n < num_params + num_extra; n++) 1159s # g_value_unset (¶mv[n]); 1159s # g_free (paramv); 1159s # } 1159s # 1159s # static GVariant * 1159s # _org_project_callable_iface_skeleton_handle_get_property ( 1159s # GDBusConnection *connection G_GNUC_UNUSED, 1159s # const gchar *sender G_GNUC_UNUSED, 1159s # const gchar *object_path G_GNUC_UNUSED, 1159s # const gchar *interface_name G_GNUC_UNUSED, 1159s # const gchar *property_name, 1159s # GError **error, 1159s # gpointer user_data) 1159s # { 1159s # OrgProjectCallableIfaceSkeleton *skeleton = ORG_PROJECT_CALLABLE_IFACE_SKELETON (user_data); 1159s # GValue value = G_VALUE_INIT; 1159s # GParamSpec *pspec; 1159s # _ExtendedGDBusPropertyInfo *info; 1159s # GVariant *ret; 1159s # ret = NULL; 1159s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_callable_iface_interface_info.parent_struct, property_name); 1159s # g_assert (info != NULL); 1159s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1159s # if (pspec == NULL) 1159s # { 1159s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1159s # } 1159s # else 1159s # { 1159s # g_value_init (&value, pspec->value_type); 1159s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1159s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 1159s # g_value_unset (&value); 1159s # } 1159s # return ret; 1159s # } 1159s # 1159s # static gboolean 1159s # _org_project_callable_iface_skeleton_handle_set_property ( 1159s # GDBusConnection *connection G_GNUC_UNUSED, 1159s # const gchar *sender G_GNUC_UNUSED, 1159s # const gchar *object_path G_GNUC_UNUSED, 1159s # const gchar *interface_name G_GNUC_UNUSED, 1159s # const gchar *property_name, 1159s # GVariant *variant, 1159s # GError **error, 1159s # gpointer user_data) 1159s # { 1159s # OrgProjectCallableIfaceSkeleton *skeleton = ORG_PROJECT_CALLABLE_IFACE_SKELETON (user_data); 1159s # GValue value = G_VALUE_INIT; 1159s # GParamSpec *pspec; 1159s # _ExtendedGDBusPropertyInfo *info; 1159s # gboolean ret; 1159s # ret = FALSE; 1159s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_callable_iface_interface_info.parent_struct, property_name); 1159s # g_assert (info != NULL); 1159s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1159s # if (pspec == NULL) 1159s # { 1159s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1159s # } 1159s # else 1159s # { 1159s # if (info->use_gvariant) 1159s # g_value_set_variant (&value, variant); 1159s # else 1159s # g_dbus_gvariant_to_gvalue (variant, &value); 1159s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1159s # g_value_unset (&value); 1159s # ret = TRUE; 1159s # } 1159s # return ret; 1159s # } 1159s # 1159s # static const GDBusInterfaceVTable _org_project_callable_iface_skeleton_vtable = 1159s # { 1159s # _org_project_callable_iface_skeleton_handle_method_call, 1159s # _org_project_callable_iface_skeleton_handle_get_property, 1159s # _org_project_callable_iface_skeleton_handle_set_property, 1159s # {NULL} 1159s # }; 1159s # 1159s # static GDBusInterfaceInfo * 1159s # org_project_callable_iface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1159s # { 1159s # return org_project_callable_iface_interface_info (); 1159s # } 1159s # 1159s # static GDBusInterfaceVTable * 1159s # org_project_callable_iface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1159s # { 1159s # return (GDBusInterfaceVTable *) &_org_project_callable_iface_skeleton_vtable; 1159s # } 1159s # 1159s # static GVariant * 1159s # org_project_callable_iface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 1159s # { 1159s # OrgProjectCallableIfaceSkeleton *skeleton = ORG_PROJECT_CALLABLE_IFACE_SKELETON (_skeleton); 1159s # 1159s # GVariantBuilder builder; 1159s # guint n; 1159s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 1159s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 1159s # #else 1159s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 1159s # #endif 1159s # if (_org_project_callable_iface_interface_info.parent_struct.properties == NULL) 1159s # goto out; 1159s # for (n = 0; _org_project_callable_iface_interface_info.parent_struct.properties[n] != NULL; n++) 1159s # { 1159s # GDBusPropertyInfo *info = _org_project_callable_iface_interface_info.parent_struct.properties[n]; 1159s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 1159s # { 1159s # GVariant *value; 1159s # 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); 1159s # if (value != NULL) 1159s # { 1159s # g_variant_take_ref (value); 1159s # g_variant_builder_add (&builder, "{sv}", info->name, value); 1159s # g_variant_unref (value); 1159s # } 1159s # } 1159s # } 1159s # out: 1159s # return g_variant_builder_end (&builder); 1159s # } 1159s # 1159s # static void 1159s # org_project_callable_iface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 1159s # { 1159s # } 1159s # 1159s # static void org_project_callable_iface_skeleton_iface_init (OrgProjectCallableIfaceIface *iface); 1159s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1159s # G_DEFINE_TYPE_WITH_CODE (OrgProjectCallableIfaceSkeleton, org_project_callable_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1159s # G_ADD_PRIVATE (OrgProjectCallableIfaceSkeleton) 1159s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_CALLABLE_IFACE, org_project_callable_iface_skeleton_iface_init)) 1159s # 1159s # #else 1159s # G_DEFINE_TYPE_WITH_CODE (OrgProjectCallableIfaceSkeleton, org_project_callable_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1159s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_CALLABLE_IFACE, org_project_callable_iface_skeleton_iface_init)) 1159s # 1159s # #endif 1159s # static void 1159s # org_project_callable_iface_skeleton_finalize (GObject *object) 1159s # { 1159s # OrgProjectCallableIfaceSkeleton *skeleton = ORG_PROJECT_CALLABLE_IFACE_SKELETON (object); 1159s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 1159s # if (skeleton->priv->changed_properties_idle_source != NULL) 1159s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 1159s # g_main_context_unref (skeleton->priv->context); 1159s # g_mutex_clear (&skeleton->priv->lock); 1159s # G_OBJECT_CLASS (org_project_callable_iface_skeleton_parent_class)->finalize (object); 1159s # } 1159s # 1159s # static void 1159s # org_project_callable_iface_skeleton_init (OrgProjectCallableIfaceSkeleton *skeleton) 1159s # { 1159s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1159s # skeleton->priv = org_project_callable_iface_skeleton_get_instance_private (skeleton); 1159s # #else 1159s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_CALLABLE_IFACE_SKELETON, OrgProjectCallableIfaceSkeletonPrivate); 1159s # #endif 1159s # 1159s # g_mutex_init (&skeleton->priv->lock); 1159s # skeleton->priv->context = g_main_context_ref_thread_default (); 1159s # } 1159s # 1159s # static void 1159s # org_project_callable_iface_skeleton_class_init (OrgProjectCallableIfaceSkeletonClass *klass) 1159s # { 1159s # GObjectClass *gobject_class; 1159s # GDBusInterfaceSkeletonClass *skeleton_class; 1159s # 1159s # gobject_class = G_OBJECT_CLASS (klass); 1159s # gobject_class->finalize = org_project_callable_iface_skeleton_finalize; 1159s # 1159s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 1159s # skeleton_class->get_info = org_project_callable_iface_skeleton_dbus_interface_get_info; 1159s # skeleton_class->get_properties = org_project_callable_iface_skeleton_dbus_interface_get_properties; 1159s # skeleton_class->flush = org_project_callable_iface_skeleton_dbus_interface_flush; 1159s # skeleton_class->get_vtable = org_project_callable_iface_skeleton_dbus_interface_get_vtable; 1159s # 1159s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1159s # g_type_class_add_private (klass, sizeof (OrgProjectCallableIfaceSkeletonPrivate)); 1159s # #endif 1159s # } 1159s # 1159s # static void 1159s # org_project_callable_iface_skeleton_iface_init (OrgProjectCallableIfaceIface *iface G_GNUC_UNUSED) 1159s # { 1159s # } 1159s # 1159s # /** 1159s # * org_project_callable_iface_skeleton_new: 1159s # * 1159s # * Creates a skeleton object for the D-Bus interface org.project.CallableIface. 1159s # * 1159s # * Returns: (transfer full) (type OrgProjectCallableIfaceSkeleton): The skeleton object. 1159s # */ 1159s # OrgProjectCallableIface * 1159s # org_project_callable_iface_skeleton_new (void) 1159s # { 1159s # return ORG_PROJECT_CALLABLE_IFACE (g_object_new (TYPE_ORG_PROJECT_CALLABLE_IFACE_SKELETON, NULL)); 1159s # } 1159s # 1159s # /* ------------------------------------------------------------------------ 1159s # * Code for interface org.project.OtherCallableIface 1159s # * ------------------------------------------------------------------------ 1159s # */ 1159s # 1159s # /** 1159s # * SECTION:OrgProjectOtherCallableIface 1159s # * @title: OrgProjectOtherCallableIface 1159s # * @short_description: Generated C code for the org.project.OtherCallableIface D-Bus interface 1159s # * 1159s # * This section contains code for working with the org.project.OtherCallableIface D-Bus interface in C. 1159s # */ 1159s # 1159s # /* ---- Introspection data for org.project.OtherCallableIface ---- */ 1159s # 1159s # static const _ExtendedGDBusArgInfo _org_project_other_callable_iface_method_info_method_with_many_args_IN_ARG_an_b = 1159s # { 1159s # { 1159s # -1, 1159s # (gchar *) "an_b", 1159s # (gchar *) "b", 1159s # NULL 1159s # }, 1159s # FALSE 1159s # }; 1159s # 1159s # static const _ExtendedGDBusArgInfo _org_project_other_callable_iface_method_info_method_with_many_args_IN_ARG_an_y = 1159s # { 1159s # { 1159s # -1, 1159s # (gchar *) "an_y", 1159s # (gchar *) "y", 1159s # NULL 1159s # }, 1159s # FALSE 1159s # }; 1159s # 1159s # static const _ExtendedGDBusArgInfo _org_project_other_callable_iface_method_info_method_with_many_args_IN_ARG_an_n = 1159s # { 1159s # { 1159s # -1, 1159s # (gchar *) "an_n", 1159s # (gchar *) "n", 1159s # NULL 1159s # }, 1159s # FALSE 1159s # }; 1159s # 1159s # static const _ExtendedGDBusArgInfo _org_project_other_callable_iface_method_info_method_with_many_args_IN_ARG_an_q = 1159s # { 1159s # { 1159s # -1, 1159s # (gchar *) "an_q", 1159s # (gchar *) "q", 1159s # NULL 1159s # }, 1159s # FALSE 1159s # }; 1159s # 1159s # static const _ExtendedGDBusArgInfo _org_project_other_callable_iface_method_info_method_with_many_args_IN_ARG_an_i = 1159s # { 1159s # { 1159s # -1, 1159s # (gchar *) "an_i", 1159s # (gchar *) "i", 1159s # NULL 1159s # }, 1159s # FALSE 1159s # }; 1159s # 1159s # static const _ExtendedGDBusArgInfo _org_project_other_callable_iface_method_info_method_with_many_args_IN_ARG_an_u = 1159s # { 1159s # { 1159s # -1, 1159s # (gchar *) "an_u", 1159s # (gchar *) "u", 1159s # NULL 1159s # }, 1159s # FALSE 1159s # }; 1159s # 1159s # static const _ExtendedGDBusArgInfo _org_project_other_callable_iface_method_info_method_with_many_args_IN_ARG_an_x = 1159s # { 1159s # { 1159s # -1, 1159s # (gchar *) "an_x", 1159s # (gchar *) "x", 1159s # NULL 1159s # }, 1159s # FALSE 1159s # }; 1159s # 1159s # static const _ExtendedGDBusArgInfo _org_project_other_callable_iface_method_info_method_with_many_args_IN_ARG_an_t = 1159s # { 1159s # { 1159s # -1, 1159s # (gchar *) "an_t", 1159s # (gchar *) "t", 1159s # NULL 1159s # }, 1159s # FALSE 1159s # }; 1159s # 1159s # static const _ExtendedGDBusArgInfo _org_project_other_callable_iface_method_info_method_with_many_args_IN_ARG_an_d = 1159s # { 1159s # { 1159s # -1, 1159s # (gchar *) "an_d", 1159s # (gchar *) "d", 1159s # NULL 1159s # }, 1159s # FALSE 1159s # }; 1159s # 1159s # static const _ExtendedGDBusArgInfo _org_project_other_callable_iface_method_info_method_with_many_args_IN_ARG_an_s = 1159s # { 1159s # { 1159s # -1, 1159s # (gchar *) "an_s", 1159s # (gchar *) "s", 1159s # NULL 1159s # }, 1159s # FALSE 1159s # }; 1159s # 1159s # static const _ExtendedGDBusArgInfo _org_project_other_callable_iface_method_info_method_with_many_args_IN_ARG_an_o = 1159s # { 1159s # { 1159s # -1, 1159s # (gchar *) "an_o", 1159s # (gchar *) "o", 1159s # NULL 1159s # }, 1159s # FALSE 1159s # }; 1159s # 1159s # static const _ExtendedGDBusArgInfo _org_project_other_callable_iface_method_info_method_with_many_args_IN_ARG_an_g = 1159s # { 1159s # { 1159s # -1, 1159s # (gchar *) "an_g", 1159s # (gchar *) "g", 1159s # NULL 1159s # }, 1159s # FALSE 1159s # }; 1159s # 1159s # static const _ExtendedGDBusArgInfo _org_project_other_callable_iface_method_info_method_with_many_args_IN_ARG_an_h = 1159s # { 1159s # { 1159s # -1, 1159s # (gchar *) "an_h", 1159s # (gchar *) "h", 1159s # NULL 1159s # }, 1159s # FALSE 1159s # }; 1159s # 1159s # static const _ExtendedGDBusArgInfo _org_project_other_callable_iface_method_info_method_with_many_args_IN_ARG_an_ay = 1159s # { 1159s # { 1159s # -1, 1159s # (gchar *) "an_ay", 1159s # (gchar *) "ay", 1159s # NULL 1159s # }, 1159s # FALSE 1159s # }; 1159s # 1159s # static const _ExtendedGDBusArgInfo _org_project_other_callable_iface_method_info_method_with_many_args_IN_ARG_an_as = 1159s # { 1159s # { 1159s # -1, 1159s # (gchar *) "an_as", 1159s # (gchar *) "as", 1159s # NULL 1159s # }, 1159s # FALSE 1159s # }; 1159s # 1159s # static const _ExtendedGDBusArgInfo _org_project_other_callable_iface_method_info_method_with_many_args_IN_ARG_an_ao = 1159s # { 1159s # { 1159s # -1, 1159s # (gchar *) "an_ao", 1159s # (gchar *) "ao", 1159s # NULL 1159s # }, 1159s # FALSE 1159s # }; 1159s # 1159s # static const _ExtendedGDBusArgInfo _org_project_other_callable_iface_method_info_method_with_many_args_IN_ARG_an_aay = 1159s # { 1159s # { 1159s # -1, 1159s # (gchar *) "an_aay", 1159s # (gchar *) "aay", 1159s # NULL 1159s # }, 1159s # FALSE 1159s # }; 1159s # 1159s # static const _ExtendedGDBusArgInfo _org_project_other_callable_iface_method_info_method_with_many_args_IN_ARG_an_asv = 1159s # { 1159s # { 1159s # -1, 1159s # (gchar *) "an_asv", 1159s # (gchar *) "a{sv}", 1159s # NULL 1159s # }, 1159s # FALSE 1159s # }; 1159s # 1159s # static const GDBusArgInfo * const _org_project_other_callable_iface_method_info_method_with_many_args_IN_ARG_pointers[] = 1159s # { 1159s # &_org_project_other_callable_iface_method_info_method_with_many_args_IN_ARG_an_b.parent_struct, 1159s # &_org_project_other_callable_iface_method_info_method_with_many_args_IN_ARG_an_y.parent_struct, 1159s # &_org_project_other_callable_iface_method_info_method_with_many_args_IN_ARG_an_n.parent_struct, 1159s # &_org_project_other_callable_iface_method_info_method_with_many_args_IN_ARG_an_q.parent_struct, 1159s # &_org_project_other_callable_iface_method_info_method_with_many_args_IN_ARG_an_i.parent_struct, 1159s # &_org_project_other_callable_iface_method_info_method_with_many_args_IN_ARG_an_u.parent_struct, 1159s # &_org_project_other_callable_iface_method_info_method_with_many_args_IN_ARG_an_x.parent_struct, 1159s # &_org_project_other_callable_iface_method_info_method_with_many_args_IN_ARG_an_t.parent_struct, 1159s # &_org_project_other_callable_iface_method_info_method_with_many_args_IN_ARG_an_d.parent_struct, 1159s # &_org_project_other_callable_iface_method_info_method_with_many_args_IN_ARG_an_s.parent_struct, 1159s # &_org_project_other_callable_iface_method_info_method_with_many_args_IN_ARG_an_o.parent_struct, 1159s # &_org_project_other_callable_iface_method_info_method_with_many_args_IN_ARG_an_g.parent_struct, 1159s # &_org_project_other_callable_iface_method_info_method_with_many_args_IN_ARG_an_h.parent_struct, 1159s # &_org_project_other_callable_iface_method_info_method_with_many_args_IN_ARG_an_ay.parent_struct, 1159s # &_org_project_other_callable_iface_method_info_method_with_many_args_IN_ARG_an_as.parent_struct, 1159s # &_org_project_other_callable_iface_method_info_method_with_many_args_IN_ARG_an_ao.parent_struct, 1159s # &_org_project_other_callable_iface_method_info_method_with_many_args_IN_ARG_an_aay.parent_struct, 1159s # &_org_project_other_callable_iface_method_info_method_with_many_args_IN_ARG_an_asv.parent_struct, 1159s # NULL 1159s # }; 1159s # 1159s # static const _ExtendedGDBusMethodInfo _org_project_other_callable_iface_method_info_method_with_many_args = 1159s # { 1159s # { 1159s # -1, 1159s # (gchar *) "MethodWithManyArgs", 1159s # (GDBusArgInfo **) &_org_project_other_callable_iface_method_info_method_with_many_args_IN_ARG_pointers, 1159s # NULL, 1159s # NULL 1159s # }, 1159s # "handle-method-with-many-args", 1159s # FALSE 1159s # }; 1159s # 1159s # static const GDBusMethodInfo * const _org_project_other_callable_iface_method_info_pointers[] = 1159s # { 1159s # &_org_project_other_callable_iface_method_info_method_with_many_args.parent_struct, 1159s # NULL 1159s # }; 1159s # 1159s # static const _ExtendedGDBusInterfaceInfo _org_project_other_callable_iface_interface_info = 1159s # { 1159s # { 1159s # -1, 1159s # (gchar *) "org.project.OtherCallableIface", 1159s # (GDBusMethodInfo **) &_org_project_other_callable_iface_method_info_pointers, 1159s # NULL, 1159s # NULL, 1159s # NULL 1159s # }, 1159s # "org-project-other-callable-iface", 1159s # }; 1159s # 1159s # 1159s # /** 1159s # * org_project_other_callable_iface_interface_info: 1159s # * 1159s # * Gets a machine-readable description of the org.project.OtherCallableIface D-Bus interface. 1159s # * 1159s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 1159s # */ 1159s # GDBusInterfaceInfo * 1159s # org_project_other_callable_iface_interface_info (void) 1159s # { 1159s # return (GDBusInterfaceInfo *) &_org_project_other_callable_iface_interface_info.parent_struct; 1159s # } 1159s # 1159s # /** 1159s # * org_project_other_callable_iface_override_properties: 1159s # * @klass: The class structure for a #GObject derived class. 1159s # * @property_id_begin: The property id to assign to the first overridden property. 1159s # * 1159s # * Overrides all #GObject properties in the #OrgProjectOtherCallableIface interface for a concrete class. 1159s # * The properties are overridden in the order they are defined. 1159s # * 1159s # * Returns: The last property id. 1159s # */ 1159s # guint 1159s # org_project_other_callable_iface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 1159s # { 1159s # return property_id_begin - 1; 1159s # } 1159s # 1159s # 1159s # inline static void 1159s # org_project_other_callable_iface_method_marshal_method_with_many_args ( 1159s # GClosure *closure, 1159s # GValue *return_value, 1159s # unsigned int n_param_values, 1159s # const GValue *param_values, 1159s # void *invocation_hint, 1159s # void *marshal_data) 1159s # { 1159s # _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, 1159s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1159s # } 1159s # 1159s # 1159s # /** 1159s # * OrgProjectOtherCallableIface: 1159s # * 1159s # * Abstract interface type for the D-Bus interface org.project.OtherCallableIface. 1159s # */ 1159s # 1159s # /** 1159s # * OrgProjectOtherCallableIfaceIface: 1159s # * @parent_iface: The parent interface. 1159s # * @handle_method_with_many_args: Handler for the #OrgProjectOtherCallableIface::handle-method-with-many-args signal. 1159s # * 1159s # * Virtual table for the D-Bus interface org.project.OtherCallableIface. 1159s # */ 1159s # 1159s # typedef OrgProjectOtherCallableIfaceIface OrgProjectOtherCallableIfaceInterface; 1159s # G_DEFINE_INTERFACE (OrgProjectOtherCallableIface, org_project_other_callable_iface, G_TYPE_OBJECT) 1159s # 1159s # static void 1159s # org_project_other_callable_iface_default_init (OrgProjectOtherCallableIfaceIface *iface) 1159s # { 1159s # /* GObject signals for incoming D-Bus method calls: */ 1159s # /** 1159s # * OrgProjectOtherCallableIface::handle-method-with-many-args: 1159s # * @object: A #OrgProjectOtherCallableIface. 1159s # * @invocation: A #GDBusMethodInvocation. 1159s # * @arg_an_b: Argument passed by remote caller. 1159s # * @arg_an_y: Argument passed by remote caller. 1159s # * @arg_an_n: Argument passed by remote caller. 1159s # * @arg_an_q: Argument passed by remote caller. 1159s # * @arg_an_i: Argument passed by remote caller. 1159s # * @arg_an_u: Argument passed by remote caller. 1159s # * @arg_an_x: Argument passed by remote caller. 1159s # * @arg_an_t: Argument passed by remote caller. 1159s # * @arg_an_d: Argument passed by remote caller. 1159s # * @arg_an_s: Argument passed by remote caller. 1159s # * @arg_an_o: Argument passed by remote caller. 1159s # * @arg_an_g: Argument passed by remote caller. 1159s # * @arg_an_h: Argument passed by remote caller. 1159s # * @arg_an_ay: Argument passed by remote caller. 1159s # * @arg_an_as: Argument passed by remote caller. 1159s # * @arg_an_ao: Argument passed by remote caller. 1159s # * @arg_an_aay: Argument passed by remote caller. 1159s # * @arg_an_asv: Argument passed by remote caller. 1159s # * 1159s # * Signal emitted when a remote caller is invoking the MethodWithManyArgs() D-Bus method. 1159s # * 1159s # * 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. 1159s # * 1159s # * 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. 1159s # */ 1159s # g_signal_new ("handle-method-with-many-args", 1159s # G_TYPE_FROM_INTERFACE (iface), 1159s # G_SIGNAL_RUN_LAST, 1159s # G_STRUCT_OFFSET (OrgProjectOtherCallableIfaceIface, handle_method_with_many_args), 1159s # g_signal_accumulator_true_handled, 1159s # NULL, 1159s # org_project_other_callable_iface_method_marshal_method_with_many_args, 1159s # G_TYPE_BOOLEAN, 1159s # 19, 1159s # 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); 1159s # 1159s # } 1159s # 1159s # /** 1159s # * org_project_other_callable_iface_call_method_with_many_args: 1159s # * @proxy: A #OrgProjectOtherCallableIfaceProxy. 1159s # * @arg_an_b: Argument to pass with the method invocation. 1159s # * @arg_an_y: Argument to pass with the method invocation. 1159s # * @arg_an_n: Argument to pass with the method invocation. 1159s # * @arg_an_q: Argument to pass with the method invocation. 1159s # * @arg_an_i: Argument to pass with the method invocation. 1159s # * @arg_an_u: Argument to pass with the method invocation. 1159s # * @arg_an_x: Argument to pass with the method invocation. 1159s # * @arg_an_t: Argument to pass with the method invocation. 1159s # * @arg_an_d: Argument to pass with the method invocation. 1159s # * @arg_an_s: Argument to pass with the method invocation. 1159s # * @arg_an_o: Argument to pass with the method invocation. 1159s # * @arg_an_g: Argument to pass with the method invocation. 1159s # * @arg_an_h: Argument to pass with the method invocation. 1159s # * @arg_an_ay: Argument to pass with the method invocation. 1159s # * @arg_an_as: Argument to pass with the method invocation. 1159s # * @arg_an_ao: Argument to pass with the method invocation. 1159s # * @arg_an_aay: Argument to pass with the method invocation. 1159s # * @arg_an_asv: Argument to pass with the method invocation. 1159s # * @cancellable: (nullable): A #GCancellable or %NULL. 1159s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL. 1159s # * @user_data: User data to pass to @callback. 1159s # * 1159s # * Asynchronously invokes the MethodWithManyArgs() D-Bus method on @proxy. 1159s # * 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()). 1159s # * You can then call org_project_other_callable_iface_call_method_with_many_args_finish() to get the result of the operation. 1159s # * 1159s # * See org_project_other_callable_iface_call_method_with_many_args_sync() for the synchronous, blocking version of this method. 1159s # */ 1159s # void 1159s # org_project_other_callable_iface_call_method_with_many_args ( 1159s # OrgProjectOtherCallableIface *proxy, 1159s # gboolean arg_an_b, 1159s # guchar arg_an_y, 1159s # gint16 arg_an_n, 1159s # guint16 arg_an_q, 1159s # gint arg_an_i, 1159s # guint arg_an_u, 1159s # gint64 arg_an_x, 1159s # guint64 arg_an_t, 1159s # gdouble arg_an_d, 1159s # const gchar *arg_an_s, 1159s # const gchar *arg_an_o, 1159s # const gchar *arg_an_g, 1159s # GVariant *arg_an_h, 1159s # const gchar *arg_an_ay, 1159s # const gchar *const *arg_an_as, 1159s # const gchar *const *arg_an_ao, 1159s # const gchar *const *arg_an_aay, 1159s # GVariant *arg_an_asv, 1159s # GCancellable *cancellable, 1159s # GAsyncReadyCallback callback, 1159s # gpointer user_data) 1159s # { 1159s # g_dbus_proxy_call (G_DBUS_PROXY (proxy), 1159s # "MethodWithManyArgs", 1159s # g_variant_new ("(bynqiuxtdsog@h^ay^as^ao^aay@a{sv})", 1159s # arg_an_b, 1159s # arg_an_y, 1159s # arg_an_n, 1159s # arg_an_q, 1159s # arg_an_i, 1159s # arg_an_u, 1159s # arg_an_x, 1159s # arg_an_t, 1159s # arg_an_d, 1159s # arg_an_s, 1159s # arg_an_o, 1159s # arg_an_g, 1159s # arg_an_h, 1159s # arg_an_ay, 1159s # arg_an_as, 1159s # arg_an_ao, 1159s # arg_an_aay, 1159s # arg_an_asv), 1159s # G_DBUS_CALL_FLAGS_NONE, 1159s # -1, 1159s # cancellable, 1159s # callback, 1159s # user_data); 1159s # } 1159s # 1159s # /** 1159s # * org_project_other_callable_iface_call_method_with_many_args_finish: 1159s # * @proxy: A #OrgProjectOtherCallableIfaceProxy. 1159s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_other_callable_iface_call_method_with_many_args(). 1159s # * @error: Return location for error or %NULL. 1159s # * 1159s # * Finishes an operation started with org_project_other_callable_iface_call_method_with_many_args(). 1159s # * 1159s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1159s # */ 1159s # gboolean 1159s # org_project_other_callable_iface_call_method_with_many_args_finish ( 1159s # OrgProjectOtherCallableIface *proxy, 1159s # GAsyncResult *res, 1159s # GError **error) 1159s # { 1159s # GVariant *_ret; 1159s # _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error); 1159s # if (_ret == NULL) 1159s # goto _out; 1159s # g_variant_get (_ret, 1159s # "()"); 1159s # g_variant_unref (_ret); 1159s # _out: 1159s # return _ret != NULL; 1159s # } 1159s # 1159s # /** 1159s # * org_project_other_callable_iface_call_method_with_many_args_sync: 1159s # * @proxy: A #OrgProjectOtherCallableIfaceProxy. 1159s # * @arg_an_b: Argument to pass with the method invocation. 1159s # * @arg_an_y: Argument to pass with the method invocation. 1159s # * @arg_an_n: Argument to pass with the method invocation. 1159s # * @arg_an_q: Argument to pass with the method invocation. 1159s # * @arg_an_i: Argument to pass with the method invocation. 1159s # * @arg_an_u: Argument to pass with the method invocation. 1159s # * @arg_an_x: Argument to pass with the method invocation. 1159s # * @arg_an_t: Argument to pass with the method invocation. 1159s # * @arg_an_d: Argument to pass with the method invocation. 1159s # * @arg_an_s: Argument to pass with the method invocation. 1159s # * @arg_an_o: Argument to pass with the method invocation. 1159s # * @arg_an_g: Argument to pass with the method invocation. 1159s # * @arg_an_h: Argument to pass with the method invocation. 1159s # * @arg_an_ay: Argument to pass with the method invocation. 1159s # * @arg_an_as: Argument to pass with the method invocation. 1159s # * @arg_an_ao: Argument to pass with the method invocation. 1159s # * @arg_an_aay: Argument to pass with the method invocation. 1159s # * @arg_an_asv: Argument to pass with the method invocation. 1159s # * @cancellable: (nullable): A #GCancellable or %NULL. 1159s # * @error: Return location for error or %NULL. 1159s # * 1159s # * Synchronously invokes the MethodWithManyArgs() D-Bus method on @proxy. The calling thread is blocked until a reply is received. 1159s # * 1159s # * See org_project_other_callable_iface_call_method_with_many_args() for the asynchronous version of this method. 1159s # * 1159s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1159s # */ 1159s # gboolean 1159s # org_project_other_callable_iface_call_method_with_many_args_sync ( 1159s # OrgProjectOtherCallableIface *proxy, 1159s # gboolean arg_an_b, 1159s # guchar arg_an_y, 1159s # gint16 arg_an_n, 1159s # guint16 arg_an_q, 1159s # gint arg_an_i, 1159s # guint arg_an_u, 1159s # gint64 arg_an_x, 1159s # guint64 arg_an_t, 1159s # gdouble arg_an_d, 1159s # const gchar *arg_an_s, 1159s # const gchar *arg_an_o, 1159s # const gchar *arg_an_g, 1159s # GVariant *arg_an_h, 1159s # const gchar *arg_an_ay, 1159s # const gchar *const *arg_an_as, 1159s # const gchar *const *arg_an_ao, 1159s # const gchar *const *arg_an_aay, 1159s # GVariant *arg_an_asv, 1159s # GCancellable *cancellable, 1159s # GError **error) 1159s # { 1159s # GVariant *_ret; 1159s # _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy), 1159s # "MethodWithManyArgs", 1159s # g_variant_new ("(bynqiuxtdsog@h^ay^as^ao^aay@a{sv})", 1159s # arg_an_b, 1159s # arg_an_y, 1159s # arg_an_n, 1159s # arg_an_q, 1159s # arg_an_i, 1159s # arg_an_u, 1159s # arg_an_x, 1159s # arg_an_t, 1159s # arg_an_d, 1159s # arg_an_s, 1159s # arg_an_o, 1159s # arg_an_g, 1159s # arg_an_h, 1159s # arg_an_ay, 1159s # arg_an_as, 1159s # arg_an_ao, 1159s # arg_an_aay, 1159s # arg_an_asv), 1159s # G_DBUS_CALL_FLAGS_NONE, 1159s # -1, 1159s # cancellable, 1159s # error); 1159s # if (_ret == NULL) 1159s # goto _out; 1159s # g_variant_get (_ret, 1159s # "()"); 1159s # g_variant_unref (_ret); 1159s # _out: 1159s # return _ret != NULL; 1159s # } 1159s # 1159s # /** 1159s # * org_project_other_callable_iface_complete_method_with_many_args: 1159s # * @object: A #OrgProjectOtherCallableIface. 1159s # * @invocation: (transfer full): A #GDBusMethodInvocation. 1159s # * 1159s # * 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. 1159s # * 1159s # * This method will free @invocation, you cannot use it afterwards. 1159s # */ 1159s # void 1159s # org_project_other_callable_iface_complete_method_with_many_args ( 1159s # OrgProjectOtherCallableIface *object G_GNUC_UNUSED, 1159s # GDBusMethodInvocation *invocation) 1159s # { 1159s # g_dbus_method_invocation_return_value (invocation, 1159s # g_variant_new ("()")); 1159s # } 1159s # 1159s # /* ------------------------------------------------------------------------ */ 1159s # 1159s # /** 1159s # * OrgProjectOtherCallableIfaceProxy: 1159s # * 1159s # * The #OrgProjectOtherCallableIfaceProxy structure contains only private data and should only be accessed using the provided API. 1159s # */ 1159s # 1159s # /** 1159s # * OrgProjectOtherCallableIfaceProxyClass: 1159s # * @parent_class: The parent class. 1159s # * 1159s # * Class structure for #OrgProjectOtherCallableIfaceProxy. 1159s # */ 1159s # 1159s # struct _OrgProjectOtherCallableIfaceProxyPrivate 1159s # { 1159s # GData *qdata; 1159s # }; 1159s # 1159s # static void org_project_other_callable_iface_proxy_iface_init (OrgProjectOtherCallableIfaceIface *iface); 1159s # 1159s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1159s # G_DEFINE_TYPE_WITH_CODE (OrgProjectOtherCallableIfaceProxy, org_project_other_callable_iface_proxy, G_TYPE_DBUS_PROXY, 1159s # G_ADD_PRIVATE (OrgProjectOtherCallableIfaceProxy) 1159s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_OTHER_CALLABLE_IFACE, org_project_other_callable_iface_proxy_iface_init)) 1159s # 1159s # #else 1159s # G_DEFINE_TYPE_WITH_CODE (OrgProjectOtherCallableIfaceProxy, org_project_other_callable_iface_proxy, G_TYPE_DBUS_PROXY, 1159s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_OTHER_CALLABLE_IFACE, org_project_other_callable_iface_proxy_iface_init)) 1159s # 1159s # #endif 1159s # static void 1159s # org_project_other_callable_iface_proxy_finalize (GObject *object) 1159s # { 1159s # OrgProjectOtherCallableIfaceProxy *proxy = ORG_PROJECT_OTHER_CALLABLE_IFACE_PROXY (object); 1159s # g_datalist_clear (&proxy->priv->qdata); 1159s # G_OBJECT_CLASS (org_project_other_callable_iface_proxy_parent_class)->finalize (object); 1159s # } 1159s # 1159s # static void 1159s # org_project_other_callable_iface_proxy_get_property (GObject *object G_GNUC_UNUSED, 1159s # guint prop_id G_GNUC_UNUSED, 1159s # GValue *value G_GNUC_UNUSED, 1159s # GParamSpec *pspec G_GNUC_UNUSED) 1159s # { 1159s # } 1159s # 1159s # static void 1159s # org_project_other_callable_iface_proxy_set_property (GObject *object G_GNUC_UNUSED, 1159s # guint prop_id G_GNUC_UNUSED, 1159s # const GValue *value G_GNUC_UNUSED, 1159s # GParamSpec *pspec G_GNUC_UNUSED) 1159s # { 1159s # } 1159s # 1159s # static void 1159s # org_project_other_callable_iface_proxy_g_signal (GDBusProxy *proxy, 1159s # const gchar *sender_name G_GNUC_UNUSED, 1159s # const gchar *signal_name, 1159s # GVariant *parameters) 1159s # { 1159s # _ExtendedGDBusSignalInfo *info; 1159s # GVariantIter iter; 1159s # GVariant *child; 1159s # GValue *paramv; 1159s # gsize num_params; 1159s # gsize n; 1159s # guint signal_id; 1159s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_other_callable_iface_interface_info.parent_struct, signal_name); 1159s # if (info == NULL) 1159s # return; 1159s # num_params = g_variant_n_children (parameters); 1159s # paramv = g_new0 (GValue, num_params + 1); 1159s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_OTHER_CALLABLE_IFACE); 1159s # g_value_set_object (¶mv[0], proxy); 1159s # g_variant_iter_init (&iter, parameters); 1159s # n = 1; 1159s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1159s # { 1159s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 1159s # if (arg_info->use_gvariant) 1159s # { 1159s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1159s # g_value_set_variant (¶mv[n], child); 1159s # n++; 1159s # } 1159s # else 1159s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1159s # g_variant_unref (child); 1159s # } 1159s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_OTHER_CALLABLE_IFACE); 1159s # g_signal_emitv (paramv, signal_id, 0, NULL); 1159s # for (n = 0; n < num_params + 1; n++) 1159s # g_value_unset (¶mv[n]); 1159s # g_free (paramv); 1159s # } 1159s # 1159s # static void 1159s # org_project_other_callable_iface_proxy_g_properties_changed (GDBusProxy *_proxy, 1159s # GVariant *changed_properties, 1159s # const gchar *const *invalidated_properties) 1159s # { 1159s # OrgProjectOtherCallableIfaceProxy *proxy = ORG_PROJECT_OTHER_CALLABLE_IFACE_PROXY (_proxy); 1159s # guint n; 1159s # const gchar *key; 1159s # GVariantIter *iter; 1159s # _ExtendedGDBusPropertyInfo *info; 1159s # g_variant_get (changed_properties, "a{sv}", &iter); 1159s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 1159s # { 1159s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_other_callable_iface_interface_info.parent_struct, key); 1159s # g_datalist_remove_data (&proxy->priv->qdata, key); 1159s # if (info != NULL) 1159s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1159s # } 1159s # g_variant_iter_free (iter); 1159s # for (n = 0; invalidated_properties[n] != NULL; n++) 1159s # { 1159s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_other_callable_iface_interface_info.parent_struct, invalidated_properties[n]); 1159s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 1159s # if (info != NULL) 1159s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1159s # } 1159s # } 1159s # 1159s # static void 1159s # org_project_other_callable_iface_proxy_init (OrgProjectOtherCallableIfaceProxy *proxy) 1159s # { 1159s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1159s # proxy->priv = org_project_other_callable_iface_proxy_get_instance_private (proxy); 1159s # #else 1159s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_OTHER_CALLABLE_IFACE_PROXY, OrgProjectOtherCallableIfaceProxyPrivate); 1159s # #endif 1159s # 1159s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_other_callable_iface_interface_info ()); 1159s # } 1159s # 1159s # static void 1159s # org_project_other_callable_iface_proxy_class_init (OrgProjectOtherCallableIfaceProxyClass *klass) 1159s # { 1159s # GObjectClass *gobject_class; 1159s # GDBusProxyClass *proxy_class; 1159s # 1159s # gobject_class = G_OBJECT_CLASS (klass); 1159s # gobject_class->finalize = org_project_other_callable_iface_proxy_finalize; 1159s # gobject_class->get_property = org_project_other_callable_iface_proxy_get_property; 1159s # gobject_class->set_property = org_project_other_callable_iface_proxy_set_property; 1159s # 1159s # proxy_class = G_DBUS_PROXY_CLASS (klass); 1159s # proxy_class->g_signal = org_project_other_callable_iface_proxy_g_signal; 1159s # proxy_class->g_properties_changed = org_project_other_callable_iface_proxy_g_properties_changed; 1159s # 1159s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1159s # g_type_class_add_private (klass, sizeof (OrgProjectOtherCallableIfaceProxyPrivate)); 1159s # #endif 1159s # } 1159s # 1159s # static void 1159s # org_project_other_callable_iface_proxy_iface_init (OrgProjectOtherCallableIfaceIface *iface G_GNUC_UNUSED) 1159s # { 1159s # } 1159s # 1159s # /** 1159s # * org_project_other_callable_iface_proxy_new: 1159s # * @connection: A #GDBusConnection. 1159s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1159s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1159s # * @object_path: An object path. 1159s # * @cancellable: (nullable): A #GCancellable or %NULL. 1159s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1159s # * @user_data: User data to pass to @callback. 1159s # * 1159s # * Asynchronously creates a proxy for the D-Bus interface org.project.OtherCallableIface. See g_dbus_proxy_new() for more details. 1159s # * 1159s # * 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()). 1159s # * You can then call org_project_other_callable_iface_proxy_new_finish() to get the result of the operation. 1159s # * 1159s # * See org_project_other_callable_iface_proxy_new_sync() for the synchronous, blocking version of this constructor. 1159s # */ 1159s # void 1159s # org_project_other_callable_iface_proxy_new ( 1159s # GDBusConnection *connection, 1159s # GDBusProxyFlags flags, 1159s # const gchar *name, 1159s # const gchar *object_path, 1159s # GCancellable *cancellable, 1159s # GAsyncReadyCallback callback, 1159s # gpointer user_data) 1159s # { 1159s # 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); 1159s # } 1159s # 1159s # /** 1159s # * org_project_other_callable_iface_proxy_new_finish: 1159s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_other_callable_iface_proxy_new(). 1159s # * @error: Return location for error or %NULL 1159s # * 1159s # * Finishes an operation started with org_project_other_callable_iface_proxy_new(). 1159s # * 1159s # * Returns: (transfer full) (type OrgProjectOtherCallableIfaceProxy): The constructed proxy object or %NULL if @error is set. 1159s # */ 1159s # OrgProjectOtherCallableIface * 1159s # org_project_other_callable_iface_proxy_new_finish ( 1159s # GAsyncResult *res, 1159s # GError **error) 1159s # { 1159s # GObject *ret; 1159s # GObject *source_object; 1159s # source_object = g_async_result_get_source_object (res); 1159s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1159s # g_object_unref (source_object); 1159s # if (ret != NULL) 1159s # return ORG_PROJECT_OTHER_CALLABLE_IFACE (ret); 1159s # else 1159s # return NULL; 1159s # } 1159s # 1159s # /** 1159s # * org_project_other_callable_iface_proxy_new_sync: 1159s # * @connection: A #GDBusConnection. 1159s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1159s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1159s # * @object_path: An object path. 1159s # * @cancellable: (nullable): A #GCancellable or %NULL. 1159s # * @error: Return location for error or %NULL 1159s # * 1159s # * Synchronously creates a proxy for the D-Bus interface org.project.OtherCallableIface. See g_dbus_proxy_new_sync() for more details. 1159s # * 1159s # * The calling thread is blocked until a reply is received. 1159s # * 1159s # * See org_project_other_callable_iface_proxy_new() for the asynchronous version of this constructor. 1159s # * 1159s # * Returns: (transfer full) (type OrgProjectOtherCallableIfaceProxy): The constructed proxy object or %NULL if @error is set. 1159s # */ 1159s # OrgProjectOtherCallableIface * 1159s # org_project_other_callable_iface_proxy_new_sync ( 1159s # GDBusConnection *connection, 1159s # GDBusProxyFlags flags, 1159s # const gchar *name, 1159s # const gchar *object_path, 1159s # GCancellable *cancellable, 1159s # GError **error) 1159s # { 1159s # GInitable *ret; 1159s # 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); 1159s # if (ret != NULL) 1159s # return ORG_PROJECT_OTHER_CALLABLE_IFACE (ret); 1159s # else 1159s # return NULL; 1159s # } 1159s # 1159s # 1159s # /** 1159s # * org_project_other_callable_iface_proxy_new_for_bus: 1159s # * @bus_type: A #GBusType. 1159s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1159s # * @name: A bus name (well-known or unique). 1159s # * @object_path: An object path. 1159s # * @cancellable: (nullable): A #GCancellable or %NULL. 1159s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1159s # * @user_data: User data to pass to @callback. 1159s # * 1159s # * Like org_project_other_callable_iface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 1159s # * 1159s # * 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()). 1159s # * You can then call org_project_other_callable_iface_proxy_new_for_bus_finish() to get the result of the operation. 1159s # * 1159s # * See org_project_other_callable_iface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 1159s # */ 1159s # void 1159s # org_project_other_callable_iface_proxy_new_for_bus ( 1159s # GBusType bus_type, 1159s # GDBusProxyFlags flags, 1159s # const gchar *name, 1159s # const gchar *object_path, 1159s # GCancellable *cancellable, 1159s # GAsyncReadyCallback callback, 1159s # gpointer user_data) 1159s # { 1159s # 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); 1159s # } 1159s # 1159s # /** 1159s # * org_project_other_callable_iface_proxy_new_for_bus_finish: 1159s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_other_callable_iface_proxy_new_for_bus(). 1159s # * @error: Return location for error or %NULL 1159s # * 1159s # * Finishes an operation started with org_project_other_callable_iface_proxy_new_for_bus(). 1159s # * 1159s # * Returns: (transfer full) (type OrgProjectOtherCallableIfaceProxy): The constructed proxy object or %NULL if @error is set. 1159s # */ 1159s # OrgProjectOtherCallableIface * 1159s # org_project_other_callable_iface_proxy_new_for_bus_finish ( 1159s # GAsyncResult *res, 1159s # GError **error) 1159s # { 1159s # GObject *ret; 1159s # GObject *source_object; 1159s # source_object = g_async_result_get_source_object (res); 1159s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1159s # g_object_unref (source_object); 1159s # if (ret != NULL) 1159s # return ORG_PROJECT_OTHER_CALLABLE_IFACE (ret); 1159s # else 1159s # return NULL; 1159s # } 1159s # 1159s # /** 1159s # * org_project_other_callable_iface_proxy_new_for_bus_sync: 1159s # * @bus_type: A #GBusType. 1159s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1159s # * @name: A bus name (well-known or unique). 1159s # * @object_path: An object path. 1159s # * @cancellable: (nullable): A #GCancellable or %NULL. 1159s # * @error: Return location for error or %NULL 1159s # * 1159s # * Like org_project_other_callable_iface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 1159s # * 1159s # * The calling thread is blocked until a reply is received. 1159s # * 1159s # * See org_project_other_callable_iface_proxy_new_for_bus() for the asynchronous version of this constructor. 1159s # * 1159s # * Returns: (transfer full) (type OrgProjectOtherCallableIfaceProxy): The constructed proxy object or %NULL if @error is set. 1159s # */ 1159s # OrgProjectOtherCallableIface * 1159s # org_project_other_callable_iface_proxy_new_for_bus_sync ( 1159s # GBusType bus_type, 1159s # GDBusProxyFlags flags, 1159s # const gchar *name, 1159s # const gchar *object_path, 1159s # GCancellable *cancellable, 1159s # GError **error) 1159s # { 1159s # GInitable *ret; 1159s # 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); 1159s # if (ret != NULL) 1159s # return ORG_PROJECT_OTHER_CALLABLE_IFACE (ret); 1159s # else 1159s # return NULL; 1159s # } 1159s # 1159s # 1159s # /* ------------------------------------------------------------------------ */ 1159s # 1159s # /** 1159s # * OrgProjectOtherCallableIfaceSkeleton: 1159s # * 1159s # * The #OrgProjectOtherCallableIfaceSkeleton structure contains only private data and should only be accessed using the provided API. 1159s # */ 1159s # 1159s # /** 1159s # * OrgProjectOtherCallableIfaceSkeletonClass: 1159s # * @parent_class: The parent class. 1159s # * 1159s # * Class structure for #OrgProjectOtherCallableIfaceSkeleton. 1159s # */ 1159s # 1159s # struct _OrgProjectOtherCallableIfaceSkeletonPrivate 1159s # { 1159s # GValue *properties; 1159s # GList *changed_properties; 1159s # GSource *changed_properties_idle_source; 1159s # GMainContext *context; 1159s # GMutex lock; 1159s # }; 1159s # 1159s # static void 1159s # _org_project_other_callable_iface_skeleton_handle_method_call ( 1159s # GDBusConnection *connection G_GNUC_UNUSED, 1159s # const gchar *sender G_GNUC_UNUSED, 1159s # const gchar *object_path G_GNUC_UNUSED, 1159s # const gchar *interface_name, 1159s # const gchar *method_name, 1159s # GVariant *parameters, 1159s # GDBusMethodInvocation *invocation, 1159s # gpointer user_data) 1159s # { 1159s # OrgProjectOtherCallableIfaceSkeleton *skeleton = ORG_PROJECT_OTHER_CALLABLE_IFACE_SKELETON (user_data); 1159s # _ExtendedGDBusMethodInfo *info; 1159s # GVariantIter iter; 1159s # GVariant *child; 1159s # GValue *paramv; 1159s # gsize num_params; 1159s # guint num_extra; 1159s # gsize n; 1159s # guint signal_id; 1159s # GValue return_value = G_VALUE_INIT; 1159s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 1159s # g_assert (info != NULL); 1159s # num_params = g_variant_n_children (parameters); 1159s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 1159s # n = 0; 1159s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_OTHER_CALLABLE_IFACE); 1159s # g_value_set_object (¶mv[n++], skeleton); 1159s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 1159s # g_value_set_object (¶mv[n++], invocation); 1159s # if (info->pass_fdlist) 1159s # { 1159s # #ifdef G_OS_UNIX 1159s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 1159s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 1159s # #else 1159s # g_assert_not_reached (); 1159s # #endif 1159s # } 1159s # g_variant_iter_init (&iter, parameters); 1159s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1159s # { 1159s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 1159s # if (arg_info->use_gvariant) 1159s # { 1159s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1159s # g_value_set_variant (¶mv[n], child); 1159s # n++; 1159s # } 1159s # else 1159s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1159s # g_variant_unref (child); 1159s # } 1159s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_OTHER_CALLABLE_IFACE); 1159s # g_value_init (&return_value, G_TYPE_BOOLEAN); 1159s # g_signal_emitv (paramv, signal_id, 0, &return_value); 1159s # if (!g_value_get_boolean (&return_value)) 1159s # 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); 1159s # g_value_unset (&return_value); 1159s # for (n = 0; n < num_params + num_extra; n++) 1159s # g_value_unset (¶mv[n]); 1159s # g_free (paramv); 1159s # } 1159s # 1159s # static GVariant * 1159s # _org_project_other_callable_iface_skeleton_handle_get_property ( 1159s # GDBusConnection *connection G_GNUC_UNUSED, 1159s # const gchar *sender G_GNUC_UNUSED, 1159s # const gchar *object_path G_GNUC_UNUSED, 1159s # const gchar *interface_name G_GNUC_UNUSED, 1159s # const gchar *property_name, 1159s # GError **error, 1159s # gpointer user_data) 1159s # { 1159s # OrgProjectOtherCallableIfaceSkeleton *skeleton = ORG_PROJECT_OTHER_CALLABLE_IFACE_SKELETON (user_data); 1159s # GValue value = G_VALUE_INIT; 1159s # GParamSpec *pspec; 1159s # _ExtendedGDBusPropertyInfo *info; 1159s # GVariant *ret; 1159s # ret = NULL; 1159s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_other_callable_iface_interface_info.parent_struct, property_name); 1159s # g_assert (info != NULL); 1159s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1159s # if (pspec == NULL) 1159s # { 1159s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1159s # } 1159s # else 1159s # { 1159s # g_value_init (&value, pspec->value_type); 1159s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1159s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 1159s # g_value_unset (&value); 1159s # } 1159s # return ret; 1159s # } 1159s # 1159s # static gboolean 1159s # _org_project_other_callable_iface_skeleton_handle_set_property ( 1159s # GDBusConnection *connection G_GNUC_UNUSED, 1159s # const gchar *sender G_GNUC_UNUSED, 1159s # const gchar *object_path G_GNUC_UNUSED, 1159s # const gchar *interface_name G_GNUC_UNUSED, 1159s # const gchar *property_name, 1159s # GVariant *variant, 1159s # GError **error, 1159s # gpointer user_data) 1159s # { 1159s # OrgProjectOtherCallableIfaceSkeleton *skeleton = ORG_PROJECT_OTHER_CALLABLE_IFACE_SKELETON (user_data); 1159s # GValue value = G_VALUE_INIT; 1159s # GParamSpec *pspec; 1159s # _ExtendedGDBusPropertyInfo *info; 1159s # gboolean ret; 1159s # ret = FALSE; 1159s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_other_callable_iface_interface_info.parent_struct, property_name); 1159s # g_assert (info != NULL); 1159s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1159s # if (pspec == NULL) 1159s # { 1159s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1159s # } 1159s # else 1159s # { 1159s # if (info->use_gvariant) 1159s # g_value_set_variant (&value, variant); 1159s # else 1159s # g_dbus_gvariant_to_gvalue (variant, &value); 1159s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1159s # g_value_unset (&value); 1159s # ret = TRUE; 1159s # } 1159s # return ret; 1159s # } 1159s # 1159s # static const GDBusInterfaceVTable _org_project_other_callable_iface_skeleton_vtable = 1159s # { 1159s # _org_project_other_callable_iface_skeleton_handle_method_call, 1159s # _org_project_other_callable_iface_skeleton_handle_get_property, 1159s # _org_project_other_callable_iface_skeleton_handle_set_property, 1159s # {NULL} 1159s # }; 1159s # 1159s # static GDBusInterfaceInfo * 1159s # org_project_other_callable_iface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1159s # { 1159s # return org_project_other_callable_iface_interface_info (); 1159s # } 1159s # 1159s # static GDBusInterfaceVTable * 1159s # org_project_other_callable_iface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1159s # { 1159s # return (GDBusInterfaceVTable *) &_org_project_other_callable_iface_skeleton_vtable; 1159s # } 1159s # 1159s # static GVariant * 1159s # org_project_other_callable_iface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 1159s # { 1159s # OrgProjectOtherCallableIfaceSkeleton *skeleton = ORG_PROJECT_OTHER_CALLABLE_IFACE_SKELETON (_skeleton); 1159s # 1159s # GVariantBuilder builder; 1159s # guint n; 1159s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 1159s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 1159s # #else 1159s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 1159s # #endif 1159s # if (_org_project_other_callable_iface_interface_info.parent_struct.properties == NULL) 1159s # goto out; 1159s # for (n = 0; _org_project_other_callable_iface_interface_info.parent_struct.properties[n] != NULL; n++) 1159s # { 1159s # GDBusPropertyInfo *info = _org_project_other_callable_iface_interface_info.parent_struct.properties[n]; 1159s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 1159s # { 1159s # GVariant *value; 1159s # 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); 1159s # if (value != NULL) 1159s # { 1159s # g_variant_take_ref (value); 1159s # g_variant_builder_add (&builder, "{sv}", info->name, value); 1159s # g_variant_unref (value); 1159s # } 1159s # } 1159s # } 1159s # out: 1159s # return g_variant_builder_end (&builder); 1159s # } 1159s # 1159s # static void 1159s # org_project_other_callable_iface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 1159s # { 1159s # } 1159s # 1159s # static void org_project_other_callable_iface_skeleton_iface_init (OrgProjectOtherCallableIfaceIface *iface); 1159s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1159s # G_DEFINE_TYPE_WITH_CODE (OrgProjectOtherCallableIfaceSkeleton, org_project_other_callable_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1159s # G_ADD_PRIVATE (OrgProjectOtherCallableIfaceSkeleton) 1159s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_OTHER_CALLABLE_IFACE, org_project_other_callable_iface_skeleton_iface_init)) 1159s # 1159s # #else 1159s # G_DEFINE_TYPE_WITH_CODE (OrgProjectOtherCallableIfaceSkeleton, org_project_other_callable_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1159s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_OTHER_CALLABLE_IFACE, org_project_other_callable_iface_skeleton_iface_init)) 1159s # 1159s # #endif 1159s # static void 1159s # org_project_other_callable_iface_skeleton_finalize (GObject *object) 1159s # { 1159s # OrgProjectOtherCallableIfaceSkeleton *skeleton = ORG_PROJECT_OTHER_CALLABLE_IFACE_SKELETON (object); 1159s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 1159s # if (skeleton->priv->changed_properties_idle_source != NULL) 1159s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 1159s # g_main_context_unref (skeleton->priv->context); 1159s # g_mutex_clear (&skeleton->priv->lock); 1159s # G_OBJECT_CLASS (org_project_other_callable_iface_skeleton_parent_class)->finalize (object); 1159s # } 1159s # 1159s # static void 1159s # org_project_other_callable_iface_skeleton_init (OrgProjectOtherCallableIfaceSkeleton *skeleton) 1159s # { 1159s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1159s # skeleton->priv = org_project_other_callable_iface_skeleton_get_instance_private (skeleton); 1159s # #else 1159s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_OTHER_CALLABLE_IFACE_SKELETON, OrgProjectOtherCallableIfaceSkeletonPrivate); 1159s # #endif 1159s # 1159s # g_mutex_init (&skeleton->priv->lock); 1159s # skeleton->priv->context = g_main_context_ref_thread_default (); 1159s # } 1159s # 1159s # static void 1159s # org_project_other_callable_iface_skeleton_class_init (OrgProjectOtherCallableIfaceSkeletonClass *klass) 1159s # { 1159s # GObjectClass *gobject_class; 1159s # GDBusInterfaceSkeletonClass *skeleton_class; 1159s # 1159s # gobject_class = G_OBJECT_CLASS (klass); 1159s # gobject_class->finalize = org_project_other_callable_iface_skeleton_finalize; 1159s # 1159s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 1159s # skeleton_class->get_info = org_project_other_callable_iface_skeleton_dbus_interface_get_info; 1159s # skeleton_class->get_properties = org_project_other_callable_iface_skeleton_dbus_interface_get_properties; 1159s # skeleton_class->flush = org_project_other_callable_iface_skeleton_dbus_interface_flush; 1159s # skeleton_class->get_vtable = org_project_other_callable_iface_skeleton_dbus_interface_get_vtable; 1159s # 1159s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1159s # g_type_class_add_private (klass, sizeof (OrgProjectOtherCallableIfaceSkeletonPrivate)); 1159s # #endif 1159s # } 1159s # 1159s # static void 1159s # org_project_other_callable_iface_skeleton_iface_init (OrgProjectOtherCallableIfaceIface *iface G_GNUC_UNUSED) 1159s # { 1159s # } 1159s # 1159s # /** 1159s # * org_project_other_callable_iface_skeleton_new: 1159s # * 1159s # * Creates a skeleton object for the D-Bus interface org.project.OtherCallableIface. 1159s # * 1159s # * Returns: (transfer full) (type OrgProjectOtherCallableIfaceSkeleton): The skeleton object. 1159s # */ 1159s # OrgProjectOtherCallableIface * 1159s # org_project_other_callable_iface_skeleton_new (void) 1159s # { 1159s # return ORG_PROJECT_OTHER_CALLABLE_IFACE (g_object_new (TYPE_ORG_PROJECT_OTHER_CALLABLE_IFACE_SKELETON, NULL)); 1159s # } 1159s # Error: 1159s ok 13 __main__.TestCodegen.test_generate_methods_marshallers_multiple_out_args 1159s # gdbus-codegen: /usr/bin/gdbus-codegen 1159s # tmpdir: /tmp/tmpc3au0jpz 1159s # /tmp/tmpc3au0jpz/tmpsolcah9q.xml: 1159s # 1159s # 1159s # 1159s # 1159s # 1159s # 1159s # 1159s # 1159s # 1159s # 1159s # 1159s # 1159s # 1159s # 1159s # 1159s # 1159s # 1159s # 1159s # 1159s # 1159s # 1159s # 1159s # 1159s # 1159s # 1159s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpc3au0jpz/tmpsolcah9q.xml', '--output', '-', '--body'] 1159s # Return code: 0 1159s # Output: 1159s # /* 1159s # * This file is generated by gdbus-codegen, do not modify it. 1159s # * 1159s # * The license of this code is the same as for the D-Bus interface description 1159s # * it was derived from. Note that it links to GLib, so must comply with the 1159s # * LGPL linking clauses. 1159s # */ 1159s # 1159s # #ifdef HAVE_CONFIG_H 1159s # # include "config.h" 1159s # #endif 1159s # 1159s # #include 1159s # #ifdef G_OS_UNIX 1159s # # include 1159s # #endif 1159s # 1159s # #ifdef G_ENABLE_DEBUG 1159s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 1159s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 1159s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 1159s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 1159s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 1159s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 1159s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 1159s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 1159s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 1159s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 1159s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 1159s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 1159s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 1159s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 1159s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 1159s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 1159s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 1159s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 1159s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 1159s # #else /* !G_ENABLE_DEBUG */ 1159s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 1159s # * Do not access GValues directly in your code. Instead, use the 1159s # * g_value_get_*() functions 1159s # */ 1159s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 1159s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 1159s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 1159s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 1159s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 1159s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 1159s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 1159s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 1159s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 1159s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 1159s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 1159s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 1159s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 1159s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 1159s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 1159s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 1159s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 1159s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 1159s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 1159s # #endif /* !G_ENABLE_DEBUG */ 1159s # 1159s # typedef struct 1159s # { 1159s # GDBusArgInfo parent_struct; 1159s # gboolean use_gvariant; 1159s # } _ExtendedGDBusArgInfo; 1159s # 1159s # typedef struct 1159s # { 1159s # GDBusMethodInfo parent_struct; 1159s # const gchar *signal_name; 1159s # gboolean pass_fdlist; 1159s # } _ExtendedGDBusMethodInfo; 1159s # 1159s # typedef struct 1159s # { 1159s # GDBusSignalInfo parent_struct; 1159s # const gchar *signal_name; 1159s # } _ExtendedGDBusSignalInfo; 1159s # 1159s # typedef struct 1159s # { 1159s # GDBusPropertyInfo parent_struct; 1159s # const gchar *hyphen_name; 1159s # guint use_gvariant : 1; 1159s # guint emits_changed_signal : 1; 1159s # } _ExtendedGDBusPropertyInfo; 1159s # 1159s # typedef struct 1159s # { 1159s # GDBusInterfaceInfo parent_struct; 1159s # const gchar *hyphen_name; 1159s # } _ExtendedGDBusInterfaceInfo; 1159s # 1159s # typedef struct 1159s # { 1159s # const _ExtendedGDBusPropertyInfo *info; 1159s # guint prop_id; 1159s # GValue orig_value; /* the value before the change */ 1159s # } ChangedProperty; 1159s # 1159s # static void 1159s # _changed_property_free (ChangedProperty *data) 1159s # { 1159s # g_value_unset (&data->orig_value); 1159s # g_free (data); 1159s # } 1159s # 1159s # static gboolean 1159s # _g_strv_equal0 (gchar **a, gchar **b) 1159s # { 1159s # gboolean ret = FALSE; 1159s # guint n; 1159s # if (a == NULL && b == NULL) 1159s # { 1159s # ret = TRUE; 1159s # goto out; 1159s # } 1159s # if (a == NULL || b == NULL) 1159s # goto out; 1159s # if (g_strv_length (a) != g_strv_length (b)) 1159s # goto out; 1159s # for (n = 0; a[n] != NULL; n++) 1159s # if (g_strcmp0 (a[n], b[n]) != 0) 1159s # goto out; 1159s # ret = TRUE; 1159s # out: 1159s # return ret; 1159s # } 1159s # 1159s # static gboolean 1159s # _g_variant_equal0 (GVariant *a, GVariant *b) 1159s # { 1159s # gboolean ret = FALSE; 1159s # if (a == NULL && b == NULL) 1159s # { 1159s # ret = TRUE; 1159s # goto out; 1159s # } 1159s # if (a == NULL || b == NULL) 1159s # goto out; 1159s # ret = g_variant_equal (a, b); 1159s # out: 1159s # return ret; 1159s # } 1159s # 1159s # G_GNUC_UNUSED static gboolean 1159s # _g_value_equal (const GValue *a, const GValue *b) 1159s # { 1159s # gboolean ret = FALSE; 1159s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 1159s # switch (G_VALUE_TYPE (a)) 1159s # { 1159s # case G_TYPE_BOOLEAN: 1159s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 1159s # break; 1159s # case G_TYPE_UCHAR: 1159s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 1159s # break; 1159s # case G_TYPE_INT: 1159s # ret = (g_value_get_int (a) == g_value_get_int (b)); 1159s # break; 1159s # case G_TYPE_UINT: 1159s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 1159s # break; 1159s # case G_TYPE_INT64: 1159s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 1159s # break; 1159s # case G_TYPE_UINT64: 1159s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 1159s # break; 1159s # case G_TYPE_DOUBLE: 1159s # { 1159s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 1159s # gdouble da = g_value_get_double (a); 1159s # gdouble db = g_value_get_double (b); 1159s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 1159s # } 1159s # break; 1159s # case G_TYPE_STRING: 1159s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 1159s # break; 1159s # case G_TYPE_VARIANT: 1159s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 1159s # break; 1159s # default: 1159s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 1159s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 1159s # else 1159s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 1159s # break; 1159s # } 1159s # return ret; 1159s # } 1159s # 1159s # static void 1159s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT ( 1159s # GClosure *closure, 1159s # GValue *return_value, 1159s # unsigned int n_param_values, 1159s # const GValue *param_values, 1159s # void *invocation_hint G_GNUC_UNUSED, 1159s # void *marshal_data) 1159s # { 1159s # typedef gboolean (*_GDbusCodegenMarshalBoolean_ObjectFunc) 1159s # (void *data1, 1159s # GDBusMethodInvocation *arg_method_invocation, 1159s # void *data2); 1159s # _GDbusCodegenMarshalBoolean_ObjectFunc callback; 1159s # GCClosure *cc = (GCClosure*) closure; 1159s # void *data1, *data2; 1159s # gboolean v_return; 1159s # 1159s # g_return_if_fail (return_value != NULL); 1159s # g_return_if_fail (n_param_values == 2); 1159s # 1159s # if (G_CCLOSURE_SWAP_DATA (closure)) 1159s # { 1159s # data1 = closure->data; 1159s # data2 = g_value_peek_pointer (param_values + 0); 1159s # } 1159s # else 1159s # { 1159s # data1 = g_value_peek_pointer (param_values + 0); 1159s # data2 = closure->data; 1159s # } 1159s # 1159s # callback = (_GDbusCodegenMarshalBoolean_ObjectFunc) 1159s # (marshal_data ? marshal_data : cc->callback); 1159s # 1159s # v_return = 1159s # callback (data1, 1159s # g_marshal_value_peek_object (param_values + 1), 1159s # data2); 1159s # 1159s # g_value_set_boolean (return_value, v_return); 1159s # } 1159s # 1159s # /* ------------------------------------------------------------------------ 1159s # * Code for interface org.project.CallableIface 1159s # * ------------------------------------------------------------------------ 1159s # */ 1159s # 1159s # /** 1159s # * SECTION:OrgProjectCallableIface 1159s # * @title: OrgProjectCallableIface 1159s # * @short_description: Generated C code for the org.project.CallableIface D-Bus interface 1159s # * 1159s # * This section contains code for working with the org.project.CallableIface D-Bus interface in C. 1159s # */ 1159s # 1159s # /* ---- Introspection data for org.project.CallableIface ---- */ 1159s # 1159s # static const _ExtendedGDBusArgInfo _org_project_callable_iface_method_info_method_with_many_args_OUT_ARG_an_b = 1159s # { 1159s # { 1159s # -1, 1159s # (gchar *) "an_b", 1159s # (gchar *) "b", 1159s # NULL 1159s # }, 1159s # FALSE 1159s # }; 1159s # 1159s # static const _ExtendedGDBusArgInfo _org_project_callable_iface_method_info_method_with_many_args_OUT_ARG_an_y = 1159s # { 1159s # { 1159s # -1, 1159s # (gchar *) "an_y", 1159s # (gchar *) "y", 1159s # NULL 1159s # }, 1159s # FALSE 1159s # }; 1159s # 1159s # static const _ExtendedGDBusArgInfo _org_project_callable_iface_method_info_method_with_many_args_OUT_ARG_an_n = 1159s # { 1159s # { 1159s # -1, 1159s # (gchar *) "an_n", 1159s # (gchar *) "n", 1159s # NULL 1159s # }, 1159s # FALSE 1159s # }; 1159s # 1159s # static const _ExtendedGDBusArgInfo _org_project_callable_iface_method_info_method_with_many_args_OUT_ARG_an_q = 1159s # { 1159s # { 1159s # -1, 1159s # (gchar *) "an_q", 1159s # (gchar *) "q", 1159s # NULL 1159s # }, 1159s # FALSE 1159s # }; 1159s # 1159s # static const _ExtendedGDBusArgInfo _org_project_callable_iface_method_info_method_with_many_args_OUT_ARG_an_i = 1159s # { 1159s # { 1159s # -1, 1159s # (gchar *) "an_i", 1159s # (gchar *) "i", 1159s # NULL 1159s # }, 1159s # FALSE 1159s # }; 1159s # 1159s # static const _ExtendedGDBusArgInfo _org_project_callable_iface_method_info_method_with_many_args_OUT_ARG_an_u = 1159s # { 1159s # { 1159s # -1, 1159s # (gchar *) "an_u", 1159s # (gchar *) "u", 1159s # NULL 1159s # }, 1159s # FALSE 1159s # }; 1159s # 1159s # static const _ExtendedGDBusArgInfo _org_project_callable_iface_method_info_method_with_many_args_OUT_ARG_an_x = 1159s # { 1159s # { 1159s # -1, 1159s # (gchar *) "an_x", 1159s # (gchar *) "x", 1159s # NULL 1159s # }, 1159s # FALSE 1159s # }; 1159s # 1159s # static const _ExtendedGDBusArgInfo _org_project_callable_iface_method_info_method_with_many_args_OUT_ARG_an_t = 1159s # { 1159s # { 1159s # -1, 1159s # (gchar *) "an_t", 1159s # (gchar *) "t", 1159s # NULL 1159s # }, 1159s # FALSE 1159s # }; 1159s # 1159s # static const _ExtendedGDBusArgInfo _org_project_callable_iface_method_info_method_with_many_args_OUT_ARG_an_d = 1159s # { 1159s # { 1159s # -1, 1159s # (gchar *) "an_d", 1159s # (gchar *) "d", 1159s # NULL 1159s # }, 1159s # FALSE 1159s # }; 1159s # 1159s # static const _ExtendedGDBusArgInfo _org_project_callable_iface_method_info_method_with_many_args_OUT_ARG_an_s = 1159s # { 1159s # { 1159s # -1, 1159s # (gchar *) "an_s", 1159s # (gchar *) "s", 1159s # NULL 1159s # }, 1159s # FALSE 1159s # }; 1159s # 1159s # static const _ExtendedGDBusArgInfo _org_project_callable_iface_method_info_method_with_many_args_OUT_ARG_an_o = 1159s # { 1159s # { 1159s # -1, 1159s # (gchar *) "an_o", 1159s # (gchar *) "o", 1159s # NULL 1159s # }, 1159s # FALSE 1159s # }; 1159s # 1159s # static const _ExtendedGDBusArgInfo _org_project_callable_iface_method_info_method_with_many_args_OUT_ARG_an_g = 1159s # { 1159s # { 1159s # -1, 1159s # (gchar *) "an_g", 1159s # (gchar *) "g", 1159s # NULL 1159s # }, 1159s # FALSE 1159s # }; 1159s # 1159s # static const _ExtendedGDBusArgInfo _org_project_callable_iface_method_info_method_with_many_args_OUT_ARG_an_h = 1159s # { 1159s # { 1159s # -1, 1159s # (gchar *) "an_h", 1159s # (gchar *) "h", 1159s # NULL 1159s # }, 1159s # FALSE 1159s # }; 1159s # 1159s # static const _ExtendedGDBusArgInfo _org_project_callable_iface_method_info_method_with_many_args_OUT_ARG_an_ay = 1159s # { 1159s # { 1159s # -1, 1159s # (gchar *) "an_ay", 1159s # (gchar *) "ay", 1159s # NULL 1159s # }, 1159s # FALSE 1159s # }; 1159s # 1159s # static const _ExtendedGDBusArgInfo _org_project_callable_iface_method_info_method_with_many_args_OUT_ARG_an_as = 1159s # { 1159s # { 1159s # -1, 1159s # (gchar *) "an_as", 1159s # (gchar *) "as", 1159s # NULL 1159s # }, 1159s # FALSE 1159s # }; 1159s # 1159s # static const _ExtendedGDBusArgInfo _org_project_callable_iface_method_info_method_with_many_args_OUT_ARG_an_ao = 1159s # { 1159s # { 1159s # -1, 1159s # (gchar *) "an_ao", 1159s # (gchar *) "ao", 1159s # NULL 1159s # }, 1159s # FALSE 1159s # }; 1159s # 1159s # static const _ExtendedGDBusArgInfo _org_project_callable_iface_method_info_method_with_many_args_OUT_ARG_an_aay = 1159s # { 1159s # { 1159s # -1, 1159s # (gchar *) "an_aay", 1159s # (gchar *) "aay", 1159s # NULL 1159s # }, 1159s # FALSE 1159s # }; 1159s # 1159s # static const _ExtendedGDBusArgInfo _org_project_callable_iface_method_info_method_with_many_args_OUT_ARG_an_asv = 1159s # { 1159s # { 1159s # -1, 1159s # (gchar *) "an_asv", 1159s # (gchar *) "a{sv}", 1159s # NULL 1159s # }, 1159s # FALSE 1159s # }; 1159s # 1159s # static const GDBusArgInfo * const _org_project_callable_iface_method_info_method_with_many_args_OUT_ARG_pointers[] = 1159s # { 1159s # &_org_project_callable_iface_method_info_method_with_many_args_OUT_ARG_an_b.parent_struct, 1159s # &_org_project_callable_iface_method_info_method_with_many_args_OUT_ARG_an_y.parent_struct, 1159s # &_org_project_callable_iface_method_info_method_with_many_args_OUT_ARG_an_n.parent_struct, 1159s # &_org_project_callable_iface_method_info_method_with_many_args_OUT_ARG_an_q.parent_struct, 1159s # &_org_project_callable_iface_method_info_method_with_many_args_OUT_ARG_an_i.parent_struct, 1159s # &_org_project_callable_iface_method_info_method_with_many_args_OUT_ARG_an_u.parent_struct, 1159s # &_org_project_callable_iface_method_info_method_with_many_args_OUT_ARG_an_x.parent_struct, 1159s # &_org_project_callable_iface_method_info_method_with_many_args_OUT_ARG_an_t.parent_struct, 1159s # &_org_project_callable_iface_method_info_method_with_many_args_OUT_ARG_an_d.parent_struct, 1159s # &_org_project_callable_iface_method_info_method_with_many_args_OUT_ARG_an_s.parent_struct, 1159s # &_org_project_callable_iface_method_info_method_with_many_args_OUT_ARG_an_o.parent_struct, 1159s # &_org_project_callable_iface_method_info_method_with_many_args_OUT_ARG_an_g.parent_struct, 1159s # &_org_project_callable_iface_method_info_method_with_many_args_OUT_ARG_an_h.parent_struct, 1159s # &_org_project_callable_iface_method_info_method_with_many_args_OUT_ARG_an_ay.parent_struct, 1159s # &_org_project_callable_iface_method_info_method_with_many_args_OUT_ARG_an_as.parent_struct, 1159s # &_org_project_callable_iface_method_info_method_with_many_args_OUT_ARG_an_ao.parent_struct, 1159s # &_org_project_callable_iface_method_info_method_with_many_args_OUT_ARG_an_aay.parent_struct, 1159s # &_org_project_callable_iface_method_info_method_with_many_args_OUT_ARG_an_asv.parent_struct, 1159s # NULL 1159s # }; 1159s # 1159s # static const _ExtendedGDBusMethodInfo _org_project_callable_iface_method_info_method_with_many_args = 1159s # { 1159s # { 1159s # -1, 1159s # (gchar *) "MethodWithManyArgs", 1159s # NULL, 1159s # (GDBusArgInfo **) &_org_project_callable_iface_method_info_method_with_many_args_OUT_ARG_pointers, 1159s # NULL 1159s # }, 1159s # "handle-method-with-many-args", 1159s # FALSE 1159s # }; 1159s # 1159s # static const GDBusMethodInfo * const _org_project_callable_iface_method_info_pointers[] = 1159s # { 1159s # &_org_project_callable_iface_method_info_method_with_many_args.parent_struct, 1159s # NULL 1159s # }; 1159s # 1159s # static const _ExtendedGDBusInterfaceInfo _org_project_callable_iface_interface_info = 1159s # { 1159s # { 1159s # -1, 1159s # (gchar *) "org.project.CallableIface", 1159s # (GDBusMethodInfo **) &_org_project_callable_iface_method_info_pointers, 1159s # NULL, 1159s # NULL, 1159s # NULL 1159s # }, 1159s # "org-project-callable-iface", 1159s # }; 1159s # 1159s # 1159s # /** 1159s # * org_project_callable_iface_interface_info: 1159s # * 1159s # * Gets a machine-readable description of the org.project.CallableIface D-Bus interface. 1159s # * 1159s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 1159s # */ 1159s # GDBusInterfaceInfo * 1159s # org_project_callable_iface_interface_info (void) 1159s # { 1159s # return (GDBusInterfaceInfo *) &_org_project_callable_iface_interface_info.parent_struct; 1159s # } 1159s # 1159s # /** 1159s # * org_project_callable_iface_override_properties: 1159s # * @klass: The class structure for a #GObject derived class. 1159s # * @property_id_begin: The property id to assign to the first overridden property. 1159s # * 1159s # * Overrides all #GObject properties in the #OrgProjectCallableIface interface for a concrete class. 1159s # * The properties are overridden in the order they are defined. 1159s # * 1159s # * Returns: The last property id. 1159s # */ 1159s # guint 1159s # org_project_callable_iface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 1159s # { 1159s # return property_id_begin - 1; 1159s # } 1159s # 1159s # 1159s # inline static void 1159s # org_project_callable_iface_method_marshal_method_with_many_args ( 1159s # GClosure *closure, 1159s # GValue *return_value, 1159s # unsigned int n_param_values, 1159s # const GValue *param_values, 1159s # void *invocation_hint, 1159s # void *marshal_data) 1159s # { 1159s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT (closure, 1159s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1159s # } 1159s # 1159s # 1159s # /** 1159s # * OrgProjectCallableIface: 1159s # * 1159s # * Abstract interface type for the D-Bus interface org.project.CallableIface. 1159s # */ 1159s # 1159s # /** 1159s # * OrgProjectCallableIfaceIface: 1159s # * @parent_iface: The parent interface. 1159s # * @handle_method_with_many_args: Handler for the #OrgProjectCallableIface::handle-method-with-many-args signal. 1159s # * 1159s # * Virtual table for the D-Bus interface org.project.CallableIface. 1159s # */ 1159s # 1159s # typedef OrgProjectCallableIfaceIface OrgProjectCallableIfaceInterface; 1159s # G_DEFINE_INTERFACE (OrgProjectCallableIface, org_project_callable_iface, G_TYPE_OBJECT) 1159s # 1159s # static void 1159s # org_project_callable_iface_default_init (OrgProjectCallableIfaceIface *iface) 1159s # { 1159s # /* GObject signals for incoming D-Bus method calls: */ 1159s # /** 1159s # * OrgProjectCallableIface::handle-method-with-many-args: 1159s # * @object: A #OrgProjectCallableIface. 1159s # * @invocation: A #GDBusMethodInvocation. 1159s # * 1159s # * Signal emitted when a remote caller is invoking the MethodWithManyArgs() D-Bus method. 1159s # * 1159s # * 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. 1159s # * 1159s # * 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. 1159s # */ 1159s # g_signal_new ("handle-method-with-many-args", 1159s # G_TYPE_FROM_INTERFACE (iface), 1159s # G_SIGNAL_RUN_LAST, 1159s # G_STRUCT_OFFSET (OrgProjectCallableIfaceIface, handle_method_with_many_args), 1159s # g_signal_accumulator_true_handled, 1159s # NULL, 1159s # org_project_callable_iface_method_marshal_method_with_many_args, 1159s # G_TYPE_BOOLEAN, 1159s # 1, 1159s # G_TYPE_DBUS_METHOD_INVOCATION); 1159s # 1159s # } 1159s # 1159s # /** 1159s # * org_project_callable_iface_call_method_with_many_args: 1159s # * @proxy: A #OrgProjectCallableIfaceProxy. 1159s # * @cancellable: (nullable): A #GCancellable or %NULL. 1159s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL. 1159s # * @user_data: User data to pass to @callback. 1159s # * 1159s # * Asynchronously invokes the MethodWithManyArgs() D-Bus method on @proxy. 1159s # * 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()). 1159s # * You can then call org_project_callable_iface_call_method_with_many_args_finish() to get the result of the operation. 1159s # * 1159s # * See org_project_callable_iface_call_method_with_many_args_sync() for the synchronous, blocking version of this method. 1159s # */ 1159s # void 1159s # org_project_callable_iface_call_method_with_many_args ( 1159s # OrgProjectCallableIface *proxy, 1159s # GCancellable *cancellable, 1159s # GAsyncReadyCallback callback, 1159s # gpointer user_data) 1159s # { 1159s # g_dbus_proxy_call (G_DBUS_PROXY (proxy), 1159s # "MethodWithManyArgs", 1159s # g_variant_new ("()"), 1159s # G_DBUS_CALL_FLAGS_NONE, 1159s # -1, 1159s # cancellable, 1159s # callback, 1159s # user_data); 1159s # } 1159s # 1159s # /** 1159s # * org_project_callable_iface_call_method_with_many_args_finish: 1159s # * @proxy: A #OrgProjectCallableIfaceProxy. 1159s # * @out_an_b: (out) (optional): Return location for return parameter or %NULL to ignore. 1159s # * @out_an_y: (out) (optional): Return location for return parameter or %NULL to ignore. 1159s # * @out_an_n: (out) (optional): Return location for return parameter or %NULL to ignore. 1159s # * @out_an_q: (out) (optional): Return location for return parameter or %NULL to ignore. 1159s # * @out_an_i: (out) (optional): Return location for return parameter or %NULL to ignore. 1159s # * @out_an_u: (out) (optional): Return location for return parameter or %NULL to ignore. 1159s # * @out_an_x: (out) (optional): Return location for return parameter or %NULL to ignore. 1159s # * @out_an_t: (out) (optional): Return location for return parameter or %NULL to ignore. 1159s # * @out_an_d: (out) (optional): Return location for return parameter or %NULL to ignore. 1159s # * @out_an_s: (out) (optional): Return location for return parameter or %NULL to ignore. 1159s # * @out_an_o: (out) (optional): Return location for return parameter or %NULL to ignore. 1159s # * @out_an_g: (out) (optional): Return location for return parameter or %NULL to ignore. 1159s # * @out_an_h: (out) (optional): Return location for return parameter or %NULL to ignore. 1159s # * @out_an_ay: (out) (optional): Return location for return parameter or %NULL to ignore. 1159s # * @out_an_as: (out) (optional) (array zero-terminated=1): Return location for return parameter or %NULL to ignore. 1159s # * @out_an_ao: (out) (optional) (array zero-terminated=1): Return location for return parameter or %NULL to ignore. 1159s # * @out_an_aay: (out) (optional) (array zero-terminated=1): Return location for return parameter or %NULL to ignore. 1159s # * @out_an_asv: (out) (optional): Return location for return parameter or %NULL to ignore. 1159s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_callable_iface_call_method_with_many_args(). 1159s # * @error: Return location for error or %NULL. 1159s # * 1159s # * Finishes an operation started with org_project_callable_iface_call_method_with_many_args(). 1159s # * 1159s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1159s # */ 1159s # gboolean 1159s # org_project_callable_iface_call_method_with_many_args_finish ( 1159s # OrgProjectCallableIface *proxy, 1159s # gboolean *out_an_b, 1159s # guchar *out_an_y, 1159s # gint16 *out_an_n, 1159s # guint16 *out_an_q, 1159s # gint *out_an_i, 1159s # guint *out_an_u, 1159s # gint64 *out_an_x, 1159s # guint64 *out_an_t, 1159s # gdouble *out_an_d, 1159s # gchar **out_an_s, 1159s # gchar **out_an_o, 1159s # gchar **out_an_g, 1159s # GVariant **out_an_h, 1159s # gchar **out_an_ay, 1159s # gchar ***out_an_as, 1159s # gchar ***out_an_ao, 1159s # gchar ***out_an_aay, 1159s # GVariant **out_an_asv, 1159s # GAsyncResult *res, 1159s # GError **error) 1159s # { 1159s # GVariant *_ret; 1159s # _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error); 1159s # if (_ret == NULL) 1159s # goto _out; 1159s # g_variant_get (_ret, 1159s # "(bynqiuxtdsog@h^ay^as^ao^aay@a{sv})", 1159s # out_an_b, 1159s # out_an_y, 1159s # out_an_n, 1159s # out_an_q, 1159s # out_an_i, 1159s # out_an_u, 1159s # out_an_x, 1159s # out_an_t, 1159s # out_an_d, 1159s # out_an_s, 1159s # out_an_o, 1159s # out_an_g, 1159s # out_an_h, 1159s # out_an_ay, 1159s # out_an_as, 1159s # out_an_ao, 1159s # out_an_aay, 1159s # out_an_asv); 1159s # g_variant_unref (_ret); 1159s # _out: 1159s # return _ret != NULL; 1159s # } 1159s # 1159s # /** 1159s # * org_project_callable_iface_call_method_with_many_args_sync: 1159s # * @proxy: A #OrgProjectCallableIfaceProxy. 1159s # * @out_an_b: (out) (optional): Return location for return parameter or %NULL to ignore. 1159s # * @out_an_y: (out) (optional): Return location for return parameter or %NULL to ignore. 1159s # * @out_an_n: (out) (optional): Return location for return parameter or %NULL to ignore. 1159s # * @out_an_q: (out) (optional): Return location for return parameter or %NULL to ignore. 1159s # * @out_an_i: (out) (optional): Return location for return parameter or %NULL to ignore. 1159s # * @out_an_u: (out) (optional): Return location for return parameter or %NULL to ignore. 1159s # * @out_an_x: (out) (optional): Return location for return parameter or %NULL to ignore. 1159s # * @out_an_t: (out) (optional): Return location for return parameter or %NULL to ignore. 1159s # * @out_an_d: (out) (optional): Return location for return parameter or %NULL to ignore. 1159s # * @out_an_s: (out) (optional): Return location for return parameter or %NULL to ignore. 1159s # * @out_an_o: (out) (optional): Return location for return parameter or %NULL to ignore. 1159s # * @out_an_g: (out) (optional): Return location for return parameter or %NULL to ignore. 1159s # * @out_an_h: (out) (optional): Return location for return parameter or %NULL to ignore. 1159s # * @out_an_ay: (out) (optional): Return location for return parameter or %NULL to ignore. 1159s # * @out_an_as: (out) (optional) (array zero-terminated=1): Return location for return parameter or %NULL to ignore. 1159s # * @out_an_ao: (out) (optional) (array zero-terminated=1): Return location for return parameter or %NULL to ignore. 1159s # * @out_an_aay: (out) (optional) (array zero-terminated=1): Return location for return parameter or %NULL to ignore. 1159s # * @out_an_asv: (out) (optional): Return location for return parameter or %NULL to ignore. 1159s # * @cancellable: (nullable): A #GCancellable or %NULL. 1159s # * @error: Return location for error or %NULL. 1159s # * 1159s # * Synchronously invokes the MethodWithManyArgs() D-Bus method on @proxy. The calling thread is blocked until a reply is received. 1159s # * 1159s # * See org_project_callable_iface_call_method_with_many_args() for the asynchronous version of this method. 1159s # * 1159s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1159s # */ 1159s # gboolean 1159s # org_project_callable_iface_call_method_with_many_args_sync ( 1159s # OrgProjectCallableIface *proxy, 1159s # gboolean *out_an_b, 1159s # guchar *out_an_y, 1159s # gint16 *out_an_n, 1159s # guint16 *out_an_q, 1159s # gint *out_an_i, 1159s # guint *out_an_u, 1159s # gint64 *out_an_x, 1159s # guint64 *out_an_t, 1159s # gdouble *out_an_d, 1159s # gchar **out_an_s, 1159s # gchar **out_an_o, 1159s # gchar **out_an_g, 1159s # GVariant **out_an_h, 1159s # gchar **out_an_ay, 1159s # gchar ***out_an_as, 1159s # gchar ***out_an_ao, 1159s # gchar ***out_an_aay, 1159s # GVariant **out_an_asv, 1159s # GCancellable *cancellable, 1159s # GError **error) 1159s # { 1159s # GVariant *_ret; 1159s # _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy), 1159s # "MethodWithManyArgs", 1159s # g_variant_new ("()"), 1159s # G_DBUS_CALL_FLAGS_NONE, 1159s # -1, 1159s # cancellable, 1159s # error); 1159s # if (_ret == NULL) 1159s # goto _out; 1159s # g_variant_get (_ret, 1159s # "(bynqiuxtdsog@h^ay^as^ao^aay@a{sv})", 1159s # out_an_b, 1159s # out_an_y, 1159s # out_an_n, 1159s # out_an_q, 1159s # out_an_i, 1159s # out_an_u, 1159s # out_an_x, 1159s # out_an_t, 1159s # out_an_d, 1159s # out_an_s, 1159s # out_an_o, 1159s # out_an_g, 1159s # out_an_h, 1159s # out_an_ay, 1159s # out_an_as, 1159s # out_an_ao, 1159s # out_an_aay, 1159s # out_an_asv); 1159s # g_variant_unref (_ret); 1159s # _out: 1159s # return _ret != NULL; 1159s # } 1159s # 1159s # /** 1159s # * org_project_callable_iface_complete_method_with_many_args: 1159s # * @object: A #OrgProjectCallableIface. 1159s # * @invocation: (transfer full): A #GDBusMethodInvocation. 1159s # * @an_b: Parameter to return. 1159s # * @an_y: Parameter to return. 1159s # * @an_n: Parameter to return. 1159s # * @an_q: Parameter to return. 1159s # * @an_i: Parameter to return. 1159s # * @an_u: Parameter to return. 1159s # * @an_x: Parameter to return. 1159s # * @an_t: Parameter to return. 1159s # * @an_d: Parameter to return. 1159s # * @an_s: Parameter to return. 1159s # * @an_o: Parameter to return. 1159s # * @an_g: Parameter to return. 1159s # * @an_h: Parameter to return. 1159s # * @an_ay: Parameter to return. 1159s # * @an_as: Parameter to return. 1159s # * @an_ao: Parameter to return. 1159s # * @an_aay: Parameter to return. 1159s # * @an_asv: Parameter to return. 1159s # * 1159s # * 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. 1159s # * 1159s # * This method will free @invocation, you cannot use it afterwards. 1159s # */ 1159s # void 1159s # org_project_callable_iface_complete_method_with_many_args ( 1159s # OrgProjectCallableIface *object G_GNUC_UNUSED, 1159s # GDBusMethodInvocation *invocation, 1159s # gboolean an_b, 1159s # guchar an_y, 1159s # gint16 an_n, 1159s # guint16 an_q, 1159s # gint an_i, 1159s # guint an_u, 1159s # gint64 an_x, 1159s # guint64 an_t, 1159s # gdouble an_d, 1159s # const gchar *an_s, 1159s # const gchar *an_o, 1159s # const gchar *an_g, 1159s # GVariant *an_h, 1159s # const gchar *an_ay, 1159s # const gchar *const *an_as, 1159s # const gchar *const *an_ao, 1159s # const gchar *const *an_aay, 1159s # GVariant *an_asv) 1159s # { 1159s # g_dbus_method_invocation_return_value (invocation, 1159s # g_variant_new ("(bynqiuxtdsog@h^ay^as^ao^aay@a{sv})", 1159s # an_b, 1159s # an_y, 1159s # an_n, 1159s # an_q, 1159s # an_i, 1159s # an_u, 1159s # an_x, 1159s # an_t, 1159s # an_d, 1159s # an_s, 1159s # an_o, 1159s # an_g, 1159s # an_h, 1159s # an_ay, 1159s # an_as, 1159s # an_ao, 1159s # an_aay, 1159s # an_asv)); 1159s # } 1159s # 1159s # /* ------------------------------------------------------------------------ */ 1159s # 1159s # /** 1159s # * OrgProjectCallableIfaceProxy: 1159s # * 1159s # * The #OrgProjectCallableIfaceProxy structure contains only private data and should only be accessed using the provided API. 1159s # */ 1159s # 1159s # /** 1159s # * OrgProjectCallableIfaceProxyClass: 1159s # * @parent_class: The parent class. 1159s # * 1159s # * Class structure for #OrgProjectCallableIfaceProxy. 1159s # */ 1159s # 1159s # struct _OrgProjectCallableIfaceProxyPrivate 1159s # { 1159s # GData *qdata; 1159s # }; 1159s # 1159s # static void org_project_callable_iface_proxy_iface_init (OrgProjectCallableIfaceIface *iface); 1159s # 1159s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1159s # G_DEFINE_TYPE_WITH_CODE (OrgProjectCallableIfaceProxy, org_project_callable_iface_proxy, G_TYPE_DBUS_PROXY, 1159s # G_ADD_PRIVATE (OrgProjectCallableIfaceProxy) 1159s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_CALLABLE_IFACE, org_project_callable_iface_proxy_iface_init)) 1159s # 1159s # #else 1159s # G_DEFINE_TYPE_WITH_CODE (OrgProjectCallableIfaceProxy, org_project_callable_iface_proxy, G_TYPE_DBUS_PROXY, 1159s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_CALLABLE_IFACE, org_project_callable_iface_proxy_iface_init)) 1159s # 1159s # #endif 1159s # static void 1159s # org_project_callable_iface_proxy_finalize (GObject *object) 1159s # { 1159s # OrgProjectCallableIfaceProxy *proxy = ORG_PROJECT_CALLABLE_IFACE_PROXY (object); 1159s # g_datalist_clear (&proxy->priv->qdata); 1159s # G_OBJECT_CLASS (org_project_callable_iface_proxy_parent_class)->finalize (object); 1159s # } 1159s # 1159s # static void 1159s # org_project_callable_iface_proxy_get_property (GObject *object G_GNUC_UNUSED, 1159s # guint prop_id G_GNUC_UNUSED, 1159s # GValue *value G_GNUC_UNUSED, 1159s # GParamSpec *pspec G_GNUC_UNUSED) 1159s # { 1159s # } 1159s # 1159s # static void 1159s # org_project_callable_iface_proxy_set_property (GObject *object G_GNUC_UNUSED, 1159s # guint prop_id G_GNUC_UNUSED, 1159s # const GValue *value G_GNUC_UNUSED, 1159s # GParamSpec *pspec G_GNUC_UNUSED) 1159s # { 1159s # } 1159s # 1159s # static void 1159s # org_project_callable_iface_proxy_g_signal (GDBusProxy *proxy, 1159s # const gchar *sender_name G_GNUC_UNUSED, 1159s # const gchar *signal_name, 1159s # GVariant *parameters) 1159s # { 1159s # _ExtendedGDBusSignalInfo *info; 1159s # GVariantIter iter; 1159s # GVariant *child; 1159s # GValue *paramv; 1159s # gsize num_params; 1159s # gsize n; 1159s # guint signal_id; 1159s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_callable_iface_interface_info.parent_struct, signal_name); 1159s # if (info == NULL) 1159s # return; 1159s # num_params = g_variant_n_children (parameters); 1159s # paramv = g_new0 (GValue, num_params + 1); 1159s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_CALLABLE_IFACE); 1159s # g_value_set_object (¶mv[0], proxy); 1159s # g_variant_iter_init (&iter, parameters); 1159s # n = 1; 1159s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1159s # { 1159s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 1159s # if (arg_info->use_gvariant) 1159s # { 1159s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1159s # g_value_set_variant (¶mv[n], child); 1159s # n++; 1159s # } 1159s # else 1159s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1159s # g_variant_unref (child); 1159s # } 1159s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_CALLABLE_IFACE); 1159s # g_signal_emitv (paramv, signal_id, 0, NULL); 1159s # for (n = 0; n < num_params + 1; n++) 1159s # g_value_unset (¶mv[n]); 1159s # g_free (paramv); 1159s # } 1159s # 1159s # static void 1159s # org_project_callable_iface_proxy_g_properties_changed (GDBusProxy *_proxy, 1159s # GVariant *changed_properties, 1159s # const gchar *const *invalidated_properties) 1159s # { 1159s # OrgProjectCallableIfaceProxy *proxy = ORG_PROJECT_CALLABLE_IFACE_PROXY (_proxy); 1159s # guint n; 1159s # const gchar *key; 1159s # GVariantIter *iter; 1159s # _ExtendedGDBusPropertyInfo *info; 1159s # g_variant_get (changed_properties, "a{sv}", &iter); 1159s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 1159s # { 1159s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_callable_iface_interface_info.parent_struct, key); 1159s # g_datalist_remove_data (&proxy->priv->qdata, key); 1159s # if (info != NULL) 1159s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1159s # } 1159s # g_variant_iter_free (iter); 1159s # for (n = 0; invalidated_properties[n] != NULL; n++) 1159s # { 1159s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_callable_iface_interface_info.parent_struct, invalidated_properties[n]); 1159s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 1159s # if (info != NULL) 1159s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1159s # } 1159s # } 1159s # 1159s # static void 1159s # org_project_callable_iface_proxy_init (OrgProjectCallableIfaceProxy *proxy) 1159s # { 1159s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1159s # proxy->priv = org_project_callable_iface_proxy_get_instance_private (proxy); 1159s # #else 1159s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_CALLABLE_IFACE_PROXY, OrgProjectCallableIfaceProxyPrivate); 1159s # #endif 1159s # 1159s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_callable_iface_interface_info ()); 1159s # } 1159s # 1159s # static void 1159s # org_project_callable_iface_proxy_class_init (OrgProjectCallableIfaceProxyClass *klass) 1159s # { 1159s # GObjectClass *gobject_class; 1159s # GDBusProxyClass *proxy_class; 1159s # 1159s # gobject_class = G_OBJECT_CLASS (klass); 1159s # gobject_class->finalize = org_project_callable_iface_proxy_finalize; 1159s # gobject_class->get_property = org_project_callable_iface_proxy_get_property; 1159s # gobject_class->set_property = org_project_callable_iface_proxy_set_property; 1159s # 1159s # proxy_class = G_DBUS_PROXY_CLASS (klass); 1159s # proxy_class->g_signal = org_project_callable_iface_proxy_g_signal; 1159s # proxy_class->g_properties_changed = org_project_callable_iface_proxy_g_properties_changed; 1159s # 1159s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1159s # g_type_class_add_private (klass, sizeof (OrgProjectCallableIfaceProxyPrivate)); 1159s # #endif 1159s # } 1159s # 1159s # static void 1159s # org_project_callable_iface_proxy_iface_init (OrgProjectCallableIfaceIface *iface G_GNUC_UNUSED) 1159s # { 1159s # } 1159s # 1159s # /** 1159s # * org_project_callable_iface_proxy_new: 1159s # * @connection: A #GDBusConnection. 1159s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1159s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1159s # * @object_path: An object path. 1159s # * @cancellable: (nullable): A #GCancellable or %NULL. 1159s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1159s # * @user_data: User data to pass to @callback. 1159s # * 1159s # * Asynchronously creates a proxy for the D-Bus interface org.project.CallableIface. See g_dbus_proxy_new() for more details. 1159s # * 1159s # * 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()). 1159s # * You can then call org_project_callable_iface_proxy_new_finish() to get the result of the operation. 1159s # * 1159s # * See org_project_callable_iface_proxy_new_sync() for the synchronous, blocking version of this constructor. 1159s # */ 1159s # void 1159s # org_project_callable_iface_proxy_new ( 1159s # GDBusConnection *connection, 1159s # GDBusProxyFlags flags, 1159s # const gchar *name, 1159s # const gchar *object_path, 1159s # GCancellable *cancellable, 1159s # GAsyncReadyCallback callback, 1159s # gpointer user_data) 1159s # { 1159s # 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); 1159s # } 1159s # 1159s # /** 1159s # * org_project_callable_iface_proxy_new_finish: 1159s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_callable_iface_proxy_new(). 1159s # * @error: Return location for error or %NULL 1159s # * 1159s # * Finishes an operation started with org_project_callable_iface_proxy_new(). 1159s # * 1159s # * Returns: (transfer full) (type OrgProjectCallableIfaceProxy): The constructed proxy object or %NULL if @error is set. 1159s # */ 1159s # OrgProjectCallableIface * 1159s # org_project_callable_iface_proxy_new_finish ( 1159s # GAsyncResult *res, 1159s # GError **error) 1159s # { 1159s # GObject *ret; 1159s # GObject *source_object; 1159s # source_object = g_async_result_get_source_object (res); 1159s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1159s # g_object_unref (source_object); 1159s # if (ret != NULL) 1159s # return ORG_PROJECT_CALLABLE_IFACE (ret); 1159s # else 1159s # return NULL; 1159s # } 1159s # 1159s # /** 1159s # * org_project_callable_iface_proxy_new_sync: 1159s # * @connection: A #GDBusConnection. 1159s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1159s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1159s # * @object_path: An object path. 1159s # * @cancellable: (nullable): A #GCancellable or %NULL. 1159s # * @error: Return location for error or %NULL 1159s # * 1159s # * Synchronously creates a proxy for the D-Bus interface org.project.CallableIface. See g_dbus_proxy_new_sync() for more details. 1159s # * 1159s # * The calling thread is blocked until a reply is received. 1159s # * 1159s # * See org_project_callable_iface_proxy_new() for the asynchronous version of this constructor. 1159s # * 1159s # * Returns: (transfer full) (type OrgProjectCallableIfaceProxy): The constructed proxy object or %NULL if @error is set. 1159s # */ 1159s # OrgProjectCallableIface * 1159s # org_project_callable_iface_proxy_new_sync ( 1159s # GDBusConnection *connection, 1159s # GDBusProxyFlags flags, 1159s # const gchar *name, 1159s # const gchar *object_path, 1159s # GCancellable *cancellable, 1159s # GError **error) 1159s # { 1159s # GInitable *ret; 1159s # 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); 1159s # if (ret != NULL) 1159s # return ORG_PROJECT_CALLABLE_IFACE (ret); 1159s # else 1159s # return NULL; 1159s # } 1159s # 1159s # 1159s # /** 1159s # * org_project_callable_iface_proxy_new_for_bus: 1159s # * @bus_type: A #GBusType. 1159s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1159s # * @name: A bus name (well-known or unique). 1159s # * @object_path: An object path. 1159s # * @cancellable: (nullable): A #GCancellable or %NULL. 1159s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1159s # * @user_data: User data to pass to @callback. 1159s # * 1159s # * Like org_project_callable_iface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 1159s # * 1159s # * 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()). 1159s # * You can then call org_project_callable_iface_proxy_new_for_bus_finish() to get the result of the operation. 1159s # * 1159s # * See org_project_callable_iface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 1159s # */ 1159s # void 1159s # org_project_callable_iface_proxy_new_for_bus ( 1159s # GBusType bus_type, 1159s # GDBusProxyFlags flags, 1159s # const gchar *name, 1159s # const gchar *object_path, 1159s # GCancellable *cancellable, 1159s # GAsyncReadyCallback callback, 1159s # gpointer user_data) 1159s # { 1159s # 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); 1159s # } 1159s # 1159s # /** 1159s # * org_project_callable_iface_proxy_new_for_bus_finish: 1159s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_callable_iface_proxy_new_for_bus(). 1159s # * @error: Return location for error or %NULL 1159s # * 1159s # * Finishes an operation started with org_project_callable_iface_proxy_new_for_bus(). 1159s # * 1159s # * Returns: (transfer full) (type OrgProjectCallableIfaceProxy): The constructed proxy object or %NULL if @error is set. 1159s # */ 1159s # OrgProjectCallableIface * 1159s # org_project_callable_iface_proxy_new_for_bus_finish ( 1159s # GAsyncResult *res, 1159s # GError **error) 1159s # { 1159s # GObject *ret; 1159s # GObject *source_object; 1159s # source_object = g_async_result_get_source_object (res); 1159s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1159s # g_object_unref (source_object); 1159s # if (ret != NULL) 1159s # return ORG_PROJECT_CALLABLE_IFACE (ret); 1159s # else 1159s # return NULL; 1159s # } 1159s # 1159s # /** 1159s # * org_project_callable_iface_proxy_new_for_bus_sync: 1159s # * @bus_type: A #GBusType. 1159s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1159s # * @name: A bus name (well-known or unique). 1159s # * @object_path: An object path. 1159s # * @cancellable: (nullable): A #GCancellable or %NULL. 1159s # * @error: Return location for error or %NULL 1159s # * 1159s # * Like org_project_callable_iface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 1159s # * 1159s # * The calling thread is blocked until a reply is received. 1159s # * 1159s # * See org_project_callable_iface_proxy_new_for_bus() for the asynchronous version of this constructor. 1159s # * 1159s # * Returns: (transfer full) (type OrgProjectCallableIfaceProxy): The constructed proxy object or %NULL if @error is set. 1159s # */ 1159s # OrgProjectCallableIface * 1159s # org_project_callable_iface_proxy_new_for_bus_sync ( 1159s # GBusType bus_type, 1159s # GDBusProxyFlags flags, 1159s # const gchar *name, 1159s # const gchar *object_path, 1159s # GCancellable *cancellable, 1159s # GError **error) 1159s # { 1159s # GInitable *ret; 1159s # 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); 1159s # if (ret != NULL) 1159s # return ORG_PROJECT_CALLABLE_IFACE (ret); 1159s # else 1159s # return NULL; 1159s # } 1159s # 1159s # 1159s # /* ------------------------------------------------------------------------ */ 1159s # 1159s # /** 1159s # * OrgProjectCallableIfaceSkeleton: 1159s # * 1159s # * The #OrgProjectCallableIfaceSkeleton structure contains only private data and should only be accessed using the provided API. 1159s # */ 1159s # 1159s # /** 1159s # * OrgProjectCallableIfaceSkeletonClass: 1159s # * @parent_class: The parent class. 1159s # * 1159s # * Class structure for #OrgProjectCallableIfaceSkeleton. 1159s # */ 1159s # 1159s # struct _OrgProjectCallableIfaceSkeletonPrivate 1159s # { 1159s # GValue *properties; 1159s # GList *changed_properties; 1159s # GSource *changed_properties_idle_source; 1159s # GMainContext *context; 1159s # GMutex lock; 1159s # }; 1159s # 1159s # static void 1159s # _org_project_callable_iface_skeleton_handle_method_call ( 1159s # GDBusConnection *connection G_GNUC_UNUSED, 1159s # const gchar *sender G_GNUC_UNUSED, 1159s # const gchar *object_path G_GNUC_UNUSED, 1159s # const gchar *interface_name, 1159s # const gchar *method_name, 1159s # GVariant *parameters, 1159s # GDBusMethodInvocation *invocation, 1159s # gpointer user_data) 1159s # { 1159s # OrgProjectCallableIfaceSkeleton *skeleton = ORG_PROJECT_CALLABLE_IFACE_SKELETON (user_data); 1159s # _ExtendedGDBusMethodInfo *info; 1159s # GVariantIter iter; 1159s # GVariant *child; 1159s # GValue *paramv; 1159s # gsize num_params; 1159s # guint num_extra; 1159s # gsize n; 1159s # guint signal_id; 1159s # GValue return_value = G_VALUE_INIT; 1159s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 1159s # g_assert (info != NULL); 1159s # num_params = g_variant_n_children (parameters); 1159s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 1159s # n = 0; 1159s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_CALLABLE_IFACE); 1159s # g_value_set_object (¶mv[n++], skeleton); 1159s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 1159s # g_value_set_object (¶mv[n++], invocation); 1159s # if (info->pass_fdlist) 1159s # { 1159s # #ifdef G_OS_UNIX 1159s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 1159s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 1159s # #else 1159s # g_assert_not_reached (); 1159s # #endif 1159s # } 1159s # g_variant_iter_init (&iter, parameters); 1159s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1159s # { 1159s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 1159s # if (arg_info->use_gvariant) 1159s # { 1159s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1159s # g_value_set_variant (¶mv[n], child); 1159s # n++; 1159s # } 1159s # else 1159s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1159s # g_variant_unref (child); 1159s # } 1159s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_CALLABLE_IFACE); 1159s # g_value_init (&return_value, G_TYPE_BOOLEAN); 1159s # g_signal_emitv (paramv, signal_id, 0, &return_value); 1159s # if (!g_value_get_boolean (&return_value)) 1159s # 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); 1159s # g_value_unset (&return_value); 1159s # for (n = 0; n < num_params + num_extra; n++) 1159s # g_value_unset (¶mv[n]); 1159s # g_free (paramv); 1159s # } 1159s # 1159s # static GVariant * 1159s # _org_project_callable_iface_skeleton_handle_get_property ( 1159s # GDBusConnection *connection G_GNUC_UNUSED, 1159s # const gchar *sender G_GNUC_UNUSED, 1159s # const gchar *object_path G_GNUC_UNUSED, 1159s # const gchar *interface_name G_GNUC_UNUSED, 1159s # const gchar *property_name, 1159s # GError **error, 1159s # gpointer user_data) 1159s # { 1159s # OrgProjectCallableIfaceSkeleton *skeleton = ORG_PROJECT_CALLABLE_IFACE_SKELETON (user_data); 1159s # GValue value = G_VALUE_INIT; 1159s # GParamSpec *pspec; 1159s # _ExtendedGDBusPropertyInfo *info; 1159s # GVariant *ret; 1159s # ret = NULL; 1159s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_callable_iface_interface_info.parent_struct, property_name); 1159s # g_assert (info != NULL); 1159s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1159s # if (pspec == NULL) 1159s # { 1159s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1159s # } 1159s # else 1159s # { 1159s # g_value_init (&value, pspec->value_type); 1159s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1159s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 1159s # g_value_unset (&value); 1159s # } 1159s # return ret; 1159s # } 1159s # 1159s # static gboolean 1159s # _org_project_callable_iface_skeleton_handle_set_property ( 1159s # GDBusConnection *connection G_GNUC_UNUSED, 1159s # const gchar *sender G_GNUC_UNUSED, 1159s # const gchar *object_path G_GNUC_UNUSED, 1159s # const gchar *interface_name G_GNUC_UNUSED, 1159s # const gchar *property_name, 1159s # GVariant *variant, 1159s # GError **error, 1159s # gpointer user_data) 1159s # { 1159s # OrgProjectCallableIfaceSkeleton *skeleton = ORG_PROJECT_CALLABLE_IFACE_SKELETON (user_data); 1159s # GValue value = G_VALUE_INIT; 1159s # GParamSpec *pspec; 1159s # _ExtendedGDBusPropertyInfo *info; 1159s # gboolean ret; 1159s # ret = FALSE; 1159s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_callable_iface_interface_info.parent_struct, property_name); 1159s # g_assert (info != NULL); 1159s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1159s # if (pspec == NULL) 1159s # { 1159s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1159s # } 1159s # else 1159s # { 1159s # if (info->use_gvariant) 1159s # g_value_set_variant (&value, variant); 1159s # else 1159s # g_dbus_gvariant_to_gvalue (variant, &value); 1159s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1159s # g_value_unset (&value); 1159s # ret = TRUE; 1159s # } 1159s # return ret; 1159s # } 1159s # 1159s # static const GDBusInterfaceVTable _org_project_callable_iface_skeleton_vtable = 1159s # { 1159s # _org_project_callable_iface_skeleton_handle_method_call, 1159s # _org_project_callable_iface_skeleton_handle_get_property, 1159s # _org_project_callable_iface_skeleton_handle_set_property, 1159s # {NULL} 1159s # }; 1159s # 1159s # static GDBusInterfaceInfo * 1159s # org_project_callable_iface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1159s # { 1159s # return org_project_callable_iface_interface_info (); 1159s # } 1159s # 1159s # static GDBusInterfaceVTable * 1159s # org_project_callable_iface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1159s # { 1159s # return (GDBusInterfaceVTable *) &_org_project_callable_iface_skeleton_vtable; 1159s # } 1159s # 1159s # static GVariant * 1159s # org_project_callable_iface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 1159s # { 1159s # OrgProjectCallableIfaceSkeleton *skeleton = ORG_PROJECT_CALLABLE_IFACE_SKELETON (_skeleton); 1159s # 1159s # GVariantBuilder builder; 1159s # guint n; 1159s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 1159s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 1159s # #else 1159s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 1159s # #endif 1159s # if (_org_project_callable_iface_interface_info.parent_struct.properties == NULL) 1159s # goto out; 1159s # for (n = 0; _org_project_callable_iface_interface_info.parent_struct.properties[n] != NULL; n++) 1159s # { 1159s # GDBusPropertyInfo *info = _org_project_callable_iface_interface_info.parent_struct.properties[n]; 1159s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 1159s # { 1159s # GVariant *value; 1159s # 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); 1159s # if (value != NULL) 1159s # { 1159s # g_variant_take_ref (value); 1159s # g_variant_builder_add (&builder, "{sv}", info->name, value); 1159s # g_variant_unref (value); 1159s # } 1159s # } 1159s # } 1159s # out: 1159s # return g_variant_builder_end (&builder); 1159s # } 1159s # 1159s # static void 1159s # org_project_callable_iface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 1159s # { 1159s # } 1159s # 1159s # static void org_project_callable_iface_skeleton_iface_init (OrgProjectCallableIfaceIface *iface); 1159s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1159s # G_DEFINE_TYPE_WITH_CODE (OrgProjectCallableIfaceSkeleton, org_project_callable_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1159s # G_ADD_PRIVATE (OrgProjectCallableIfaceSkeleton) 1159s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_CALLABLE_IFACE, org_project_callable_iface_skeleton_iface_init)) 1159s # 1159s # #else 1159s # G_DEFINE_TYPE_WITH_CODE (OrgProjectCallableIfaceSkeleton, org_project_callable_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1159s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_CALLABLE_IFACE, org_project_callable_iface_skeleton_iface_init)) 1159s # 1159s # #endif 1159s # static void 1159s # org_project_callable_iface_skeleton_finalize (GObject *object) 1159s # { 1159s # OrgProjectCallableIfaceSkeleton *skeleton = ORG_PROJECT_CALLABLE_IFACE_SKELETON (object); 1159s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 1159s # if (skeleton->priv->changed_properties_idle_source != NULL) 1159s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 1159s # g_main_context_unref (skeleton->priv->context); 1159s # g_mutex_clear (&skeleton->priv->lock); 1159s # G_OBJECT_CLASS (org_project_callable_iface_skeleton_parent_class)->finalize (object); 1159s # } 1159s # 1159s # static void 1159s # org_project_callable_iface_skeleton_init (OrgProjectCallableIfaceSkeleton *skeleton) 1159s # { 1159s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1159s # skeleton->priv = org_project_callable_iface_skeleton_get_instance_private (skeleton); 1159s # #else 1159s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_CALLABLE_IFACE_SKELETON, OrgProjectCallableIfaceSkeletonPrivate); 1159s # #endif 1159s # 1159s # g_mutex_init (&skeleton->priv->lock); 1159s # skeleton->priv->context = g_main_context_ref_thread_default (); 1159s # } 1159s # 1159s # static void 1159s # org_project_callable_iface_skeleton_class_init (OrgProjectCallableIfaceSkeletonClass *klass) 1159s # { 1159s # GObjectClass *gobject_class; 1159s # GDBusInterfaceSkeletonClass *skeleton_class; 1159s # 1159s # gobject_class = G_OBJECT_CLASS (klass); 1159s # gobject_class->finalize = org_project_callable_iface_skeleton_finalize; 1159s # 1159s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 1159s # skeleton_class->get_info = org_project_callable_iface_skeleton_dbus_interface_get_info; 1159s # skeleton_class->get_properties = org_project_callable_iface_skeleton_dbus_interface_get_properties; 1159s # skeleton_class->flush = org_project_callable_iface_skeleton_dbus_interface_flush; 1159s # skeleton_class->get_vtable = org_project_callable_iface_skeleton_dbus_interface_get_vtable; 1159s # 1159s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1159s # g_type_class_add_private (klass, sizeof (OrgProjectCallableIfaceSkeletonPrivate)); 1159s # #endif 1159s # } 1159s # 1159s # static void 1159s # org_project_callable_iface_skeleton_iface_init (OrgProjectCallableIfaceIface *iface G_GNUC_UNUSED) 1159s # { 1159s # } 1159s # 1159s # /** 1159s # * org_project_callable_iface_skeleton_new: 1159s # * 1159s # * Creates a skeleton object for the D-Bus interface org.project.CallableIface. 1159s # * 1159s # * Returns: (transfer full) (type OrgProjectCallableIfaceSkeleton): The skeleton object. 1159s # */ 1159s # OrgProjectCallableIface * 1159s # org_project_callable_iface_skeleton_new (void) 1159s # { 1159s # return ORG_PROJECT_CALLABLE_IFACE (g_object_new (TYPE_ORG_PROJECT_CALLABLE_IFACE_SKELETON, NULL)); 1159s # } 1159s # Error: 1159s ok 14 __main__.TestCodegen.test_generate_methods_marshallers_with_unix_fds 1159s # gdbus-codegen: /usr/bin/gdbus-codegen 1159s # tmpdir: /tmp/tmpyef9blxp 1159s # /tmp/tmpyef9blxp/tmp4gnmsa04.xml: 1159s # 1159s # 1159s # 1159s # 1159s # 1159s # 1159s # 1159s # 1159s # 1159s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpyef9blxp/tmp4gnmsa04.xml', '--output', '-', '--body'] 1159s # Return code: 0 1159s # Output: 1159s # /* 1159s # * This file is generated by gdbus-codegen, do not modify it. 1159s # * 1159s # * The license of this code is the same as for the D-Bus interface description 1159s # * it was derived from. Note that it links to GLib, so must comply with the 1159s # * LGPL linking clauses. 1159s # */ 1159s # 1159s # #ifdef HAVE_CONFIG_H 1159s # # include "config.h" 1159s # #endif 1159s # 1159s # #include 1159s # #ifdef G_OS_UNIX 1159s # # include 1159s # #endif 1159s # 1159s # #ifdef G_ENABLE_DEBUG 1159s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 1159s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 1159s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 1159s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 1159s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 1159s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 1159s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 1159s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 1159s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 1159s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 1159s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 1159s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 1159s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 1159s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 1159s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 1159s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 1159s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 1159s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 1159s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 1159s # #else /* !G_ENABLE_DEBUG */ 1159s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 1159s # * Do not access GValues directly in your code. Instead, use the 1159s # * g_value_get_*() functions 1159s # */ 1159s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 1159s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 1159s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 1159s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 1159s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 1159s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 1159s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 1159s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 1159s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 1159s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 1159s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 1159s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 1159s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 1159s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 1159s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 1159s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 1159s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 1159s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 1159s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 1159s # #endif /* !G_ENABLE_DEBUG */ 1159s # 1159s # typedef struct 1159s # { 1159s # GDBusArgInfo parent_struct; 1159s # gboolean use_gvariant; 1159s # } _ExtendedGDBusArgInfo; 1159s # 1159s # typedef struct 1159s # { 1159s # GDBusMethodInfo parent_struct; 1159s # const gchar *signal_name; 1159s # gboolean pass_fdlist; 1159s # } _ExtendedGDBusMethodInfo; 1159s # 1159s # typedef struct 1159s # { 1159s # GDBusSignalInfo parent_struct; 1159s # const gchar *signal_name; 1159s # } _ExtendedGDBusSignalInfo; 1159s # 1159s # typedef struct 1159s # { 1159s # GDBusPropertyInfo parent_struct; 1159s # const gchar *hyphen_name; 1159s # guint use_gvariant : 1; 1159s # guint emits_changed_signal : 1; 1159s # } _ExtendedGDBusPropertyInfo; 1159s # 1159s # typedef struct 1159s # { 1159s # GDBusInterfaceInfo parent_struct; 1159s # const gchar *hyphen_name; 1159s # } _ExtendedGDBusInterfaceInfo; 1159s # 1159s # typedef struct 1159s # { 1159s # const _ExtendedGDBusPropertyInfo *info; 1159s # guint prop_id; 1159s # GValue orig_value; /* the value before the change */ 1159s # } ChangedProperty; 1159s # 1159s # static void 1159s # _changed_property_free (ChangedProperty *data) 1159s # { 1159s # g_value_unset (&data->orig_value); 1159s # g_free (data); 1159s # } 1159s # 1159s # static gboolean 1159s # _g_strv_equal0 (gchar **a, gchar **b) 1159s # { 1159s # gboolean ret = FALSE; 1159s # guint n; 1159s # if (a == NULL && b == NULL) 1159s # { 1159s # ret = TRUE; 1159s # goto out; 1159s # } 1159s # if (a == NULL || b == NULL) 1159s # goto out; 1159s # if (g_strv_length (a) != g_strv_length (b)) 1159s # goto out; 1159s # for (n = 0; a[n] != NULL; n++) 1159s # if (g_strcmp0 (a[n], b[n]) != 0) 1159s # goto out; 1159s # ret = TRUE; 1159s # out: 1159s # return ret; 1159s # } 1159s # 1159s # static gboolean 1159s # _g_variant_equal0 (GVariant *a, GVariant *b) 1159s # { 1159s # gboolean ret = FALSE; 1159s # if (a == NULL && b == NULL) 1159s # { 1159s # ret = TRUE; 1159s # goto out; 1159s # } 1159s # if (a == NULL || b == NULL) 1159s # goto out; 1159s # ret = g_variant_equal (a, b); 1159s # out: 1159s # return ret; 1159s # } 1159s # 1159s # G_GNUC_UNUSED static gboolean 1159s # _g_value_equal (const GValue *a, const GValue *b) 1159s # { 1159s # gboolean ret = FALSE; 1159s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 1159s # switch (G_VALUE_TYPE (a)) 1159s # { 1159s # case G_TYPE_BOOLEAN: 1159s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 1159s # break; 1159s # case G_TYPE_UCHAR: 1159s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 1159s # break; 1159s # case G_TYPE_INT: 1159s # ret = (g_value_get_int (a) == g_value_get_int (b)); 1159s # break; 1159s # case G_TYPE_UINT: 1159s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 1159s # break; 1159s # case G_TYPE_INT64: 1159s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 1159s # break; 1159s # case G_TYPE_UINT64: 1159s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 1159s # break; 1159s # case G_TYPE_DOUBLE: 1159s # { 1159s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 1159s # gdouble da = g_value_get_double (a); 1159s # gdouble db = g_value_get_double (b); 1159s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 1159s # } 1159s # break; 1159s # case G_TYPE_STRING: 1159s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 1159s # break; 1159s # case G_TYPE_VARIANT: 1159s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 1159s # break; 1159s # default: 1159s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 1159s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 1159s # else 1159s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 1159s # break; 1159s # } 1159s # return ret; 1159s # } 1159s # 1159s # static void 1159s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT_OBJECT_STRING ( 1159s # GClosure *closure, 1159s # GValue *return_value, 1159s # unsigned int n_param_values, 1159s # const GValue *param_values, 1159s # void *invocation_hint G_GNUC_UNUSED, 1159s # void *marshal_data) 1159s # { 1159s # typedef gboolean (*_GDbusCodegenMarshalBoolean_ObjectObjectStringFunc) 1159s # (void *data1, 1159s # GDBusMethodInvocation *arg_method_invocation, 1159s # GUnixFDList *arg_fd_list, 1159s # const gchar *arg_greeting, 1159s # void *data2); 1159s # _GDbusCodegenMarshalBoolean_ObjectObjectStringFunc callback; 1159s # GCClosure *cc = (GCClosure*) closure; 1159s # void *data1, *data2; 1159s # gboolean v_return; 1159s # 1159s # g_return_if_fail (return_value != NULL); 1159s # g_return_if_fail (n_param_values == 4); 1159s # 1159s # if (G_CCLOSURE_SWAP_DATA (closure)) 1159s # { 1159s # data1 = closure->data; 1159s # data2 = g_value_peek_pointer (param_values + 0); 1159s # } 1159s # else 1159s # { 1159s # data1 = g_value_peek_pointer (param_values + 0); 1159s # data2 = closure->data; 1159s # } 1159s # 1159s # callback = (_GDbusCodegenMarshalBoolean_ObjectObjectStringFunc) 1159s # (marshal_data ? marshal_data : cc->callback); 1159s # 1159s # v_return = 1159s # callback (data1, 1159s # g_marshal_value_peek_object (param_values + 1), 1159s # g_marshal_value_peek_object (param_values + 2), 1159s # g_marshal_value_peek_string (param_values + 3), 1159s # data2); 1159s # 1159s # g_value_set_boolean (return_value, v_return); 1159s # } 1159s # 1159s # /* ------------------------------------------------------------------------ 1159s # * Code for interface test.FDPassing 1159s # * ------------------------------------------------------------------------ 1159s # */ 1159s # 1159s # /** 1159s # * SECTION:TestFDPassing 1159s # * @title: TestFDPassing 1159s # * @short_description: Generated C code for the test.FDPassing D-Bus interface 1159s # * 1159s # * This section contains code for working with the test.FDPassing D-Bus interface in C. 1159s # */ 1159s # 1159s # /* ---- Introspection data for test.FDPassing ---- */ 1159s # 1159s # static const _ExtendedGDBusArgInfo _test_fdpassing_method_info_hello_fd_IN_ARG_greeting = 1159s # { 1159s # { 1159s # -1, 1159s # (gchar *) "greeting", 1159s # (gchar *) "s", 1159s # NULL 1159s # }, 1159s # FALSE 1159s # }; 1159s # 1159s # static const GDBusArgInfo * const _test_fdpassing_method_info_hello_fd_IN_ARG_pointers[] = 1159s # { 1159s # &_test_fdpassing_method_info_hello_fd_IN_ARG_greeting.parent_struct, 1159s # NULL 1159s # }; 1159s # 1159s # static const _ExtendedGDBusArgInfo _test_fdpassing_method_info_hello_fd_OUT_ARG_response = 1159s # { 1159s # { 1159s # -1, 1159s # (gchar *) "response", 1159s # (gchar *) "s", 1159s # NULL 1159s # }, 1159s # FALSE 1159s # }; 1159s # 1159s # static const GDBusArgInfo * const _test_fdpassing_method_info_hello_fd_OUT_ARG_pointers[] = 1159s # { 1159s # &_test_fdpassing_method_info_hello_fd_OUT_ARG_response.parent_struct, 1159s # NULL 1159s # }; 1159s # 1159s # static const _ExtendedGDBusMethodInfo _test_fdpassing_method_info_hello_fd = 1159s # { 1159s # { 1159s # -1, 1159s # (gchar *) "HelloFD", 1159s # (GDBusArgInfo **) &_test_fdpassing_method_info_hello_fd_IN_ARG_pointers, 1159s # (GDBusArgInfo **) &_test_fdpassing_method_info_hello_fd_OUT_ARG_pointers, 1159s # NULL 1159s # }, 1159s # "handle-hello-fd", 1159s # TRUE 1159s # }; 1159s # 1159s # static const GDBusMethodInfo * const _test_fdpassing_method_info_pointers[] = 1159s # { 1159s # &_test_fdpassing_method_info_hello_fd.parent_struct, 1159s # NULL 1159s # }; 1159s # 1159s # static const _ExtendedGDBusInterfaceInfo _test_fdpassing_interface_info = 1159s # { 1159s # { 1159s # -1, 1159s # (gchar *) "test.FDPassing", 1159s # (GDBusMethodInfo **) &_test_fdpassing_method_info_pointers, 1159s # NULL, 1159s # NULL, 1159s # NULL 1159s # }, 1159s # "test-fdpassing", 1159s # }; 1159s # 1159s # 1159s # /** 1159s # * test_fdpassing_interface_info: 1159s # * 1159s # * Gets a machine-readable description of the test.FDPassing D-Bus interface. 1159s # * 1159s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 1159s # */ 1159s # GDBusInterfaceInfo * 1159s # test_fdpassing_interface_info (void) 1159s # { 1159s # return (GDBusInterfaceInfo *) &_test_fdpassing_interface_info.parent_struct; 1159s # } 1159s # 1159s # /** 1159s # * test_fdpassing_override_properties: 1159s # * @klass: The class structure for a #GObject derived class. 1159s # * @property_id_begin: The property id to assign to the first overridden property. 1159s # * 1159s # * Overrides all #GObject properties in the #TestFDPassing interface for a concrete class. 1159s # * The properties are overridden in the order they are defined. 1159s # * 1159s # * Returns: The last property id. 1159s # */ 1159s # guint 1159s # test_fdpassing_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 1159s # { 1159s # return property_id_begin - 1; 1159s # } 1159s # 1159s # 1159s # inline static void 1159s # test_fdpassing_method_marshal_hello_fd ( 1159s # GClosure *closure, 1159s # GValue *return_value, 1159s # unsigned int n_param_values, 1159s # const GValue *param_values, 1159s # void *invocation_hint, 1159s # void *marshal_data) 1159s # { 1159s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT_OBJECT_STRING (closure, 1159s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1159s # } 1159s # 1159s # 1159s # /** 1159s # * TestFDPassing: 1159s # * 1159s # * Abstract interface type for the D-Bus interface test.FDPassing. 1159s # */ 1159s # 1159s # /** 1159s # * TestFDPassingIface: 1159s # * @parent_iface: The parent interface. 1159s # * @handle_hello_fd: Handler for the #TestFDPassing::handle-hello-fd signal. 1159s # * 1159s # * Virtual table for the D-Bus interface test.FDPassing. 1159s # */ 1159s # 1159s # typedef TestFDPassingIface TestFDPassingInterface; 1159s # G_DEFINE_INTERFACE (TestFDPassing, test_fdpassing, G_TYPE_OBJECT) 1159s # 1159s # static void 1159s # test_fdpassing_default_init (TestFDPassingIface *iface) 1159s # { 1159s # /* GObject signals for incoming D-Bus method calls: */ 1159s # /** 1159s # * TestFDPassing::handle-hello-fd: 1159s # * @object: A #TestFDPassing. 1159s # * @invocation: A #GDBusMethodInvocation. 1159s # * @fd_list: (nullable): A #GUnixFDList or %NULL. 1159s # * @arg_greeting: Argument passed by remote caller. 1159s # * 1159s # * Signal emitted when a remote caller is invoking the HelloFD() D-Bus method. 1159s # * 1159s # * 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. 1159s # * 1159s # * 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. 1159s # */ 1159s # g_signal_new ("handle-hello-fd", 1159s # G_TYPE_FROM_INTERFACE (iface), 1159s # G_SIGNAL_RUN_LAST, 1159s # G_STRUCT_OFFSET (TestFDPassingIface, handle_hello_fd), 1159s # g_signal_accumulator_true_handled, 1159s # NULL, 1159s # test_fdpassing_method_marshal_hello_fd, 1159s # G_TYPE_BOOLEAN, 1159s # 3, 1159s # G_TYPE_DBUS_METHOD_INVOCATION, G_TYPE_UNIX_FD_LIST, G_TYPE_STRING); 1159s # 1159s # } 1159s # 1159s # /** 1159s # * test_fdpassing_call_hello_fd: 1159s # * @proxy: A #TestFDPassingProxy. 1159s # * @arg_greeting: Argument to pass with the method invocation. 1159s # * @fd_list: (nullable): A #GUnixFDList or %NULL. 1159s # * @cancellable: (nullable): A #GCancellable or %NULL. 1159s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL. 1159s # * @user_data: User data to pass to @callback. 1159s # * 1159s # * Asynchronously invokes the HelloFD() D-Bus method on @proxy. 1159s # * 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()). 1159s # * You can then call test_fdpassing_call_hello_fd_finish() to get the result of the operation. 1159s # * 1159s # * See test_fdpassing_call_hello_fd_sync() for the synchronous, blocking version of this method. 1159s # */ 1159s # void 1159s # test_fdpassing_call_hello_fd ( 1159s # TestFDPassing *proxy, 1159s # const gchar *arg_greeting, 1159s # GUnixFDList *fd_list, 1159s # GCancellable *cancellable, 1159s # GAsyncReadyCallback callback, 1159s # gpointer user_data) 1159s # { 1159s # g_dbus_proxy_call_with_unix_fd_list (G_DBUS_PROXY (proxy), 1159s # "HelloFD", 1159s # g_variant_new ("(s)", 1159s # arg_greeting), 1159s # G_DBUS_CALL_FLAGS_NONE, 1159s # -1, 1159s # fd_list, 1159s # cancellable, 1159s # callback, 1159s # user_data); 1159s # } 1159s # 1159s # /** 1159s # * test_fdpassing_call_hello_fd_finish: 1159s # * @proxy: A #TestFDPassingProxy. 1159s # * @out_response: (out) (optional): Return location for return parameter or %NULL to ignore. 1159s # * @out_fd_list: (out) (optional) (nullable): Return location for a #GUnixFDList or %NULL to ignore. 1159s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to test_fdpassing_call_hello_fd(). 1159s # * @error: Return location for error or %NULL. 1159s # * 1159s # * Finishes an operation started with test_fdpassing_call_hello_fd(). 1159s # * 1159s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1159s # */ 1159s # gboolean 1159s # test_fdpassing_call_hello_fd_finish ( 1159s # TestFDPassing *proxy, 1159s # gchar **out_response, 1159s # GUnixFDList **out_fd_list, 1159s # GAsyncResult *res, 1159s # GError **error) 1159s # { 1159s # GVariant *_ret; 1159s # _ret = g_dbus_proxy_call_with_unix_fd_list_finish (G_DBUS_PROXY (proxy), out_fd_list, res, error); 1159s # if (_ret == NULL) 1159s # goto _out; 1159s # g_variant_get (_ret, 1159s # "(s)", 1159s # out_response); 1159s # g_variant_unref (_ret); 1159s # _out: 1159s # return _ret != NULL; 1159s # } 1159s # 1159s # /** 1159s # * test_fdpassing_call_hello_fd_sync: 1159s # * @proxy: A #TestFDPassingProxy. 1159s # * @arg_greeting: Argument to pass with the method invocation. 1159s # * @fd_list: (nullable): A #GUnixFDList or %NULL. 1159s # * @out_response: (out) (optional): Return location for return parameter or %NULL to ignore. 1159s # * @out_fd_list: (out) (optional) (nullable): Return location for a #GUnixFDList or %NULL. 1159s # * @cancellable: (nullable): A #GCancellable or %NULL. 1159s # * @error: Return location for error or %NULL. 1159s # * 1159s # * Synchronously invokes the HelloFD() D-Bus method on @proxy. The calling thread is blocked until a reply is received. 1159s # * 1159s # * See test_fdpassing_call_hello_fd() for the asynchronous version of this method. 1159s # * 1159s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1159s # */ 1159s # gboolean 1159s # test_fdpassing_call_hello_fd_sync ( 1159s # TestFDPassing *proxy, 1159s # const gchar *arg_greeting, 1159s # GUnixFDList *fd_list, 1159s # gchar **out_response, 1159s # GUnixFDList **out_fd_list, 1159s # GCancellable *cancellable, 1159s # GError **error) 1159s # { 1159s # GVariant *_ret; 1159s # _ret = g_dbus_proxy_call_with_unix_fd_list_sync (G_DBUS_PROXY (proxy), 1159s # "HelloFD", 1159s # g_variant_new ("(s)", 1159s # arg_greeting), 1159s # G_DBUS_CALL_FLAGS_NONE, 1159s # -1, 1159s # fd_list, 1159s # out_fd_list, 1159s # cancellable, 1159s # error); 1159s # if (_ret == NULL) 1159s # goto _out; 1159s # g_variant_get (_ret, 1159s # "(s)", 1159s # out_response); 1159s # g_variant_unref (_ret); 1159s # _out: 1159s # return _ret != NULL; 1159s # } 1159s # 1159s # /** 1159s # * test_fdpassing_complete_hello_fd: 1159s # * @object: A #TestFDPassing. 1159s # * @invocation: (transfer full): A #GDBusMethodInvocation. 1159s # * @fd_list: (nullable): A #GUnixFDList or %NULL. 1159s # * @response: Parameter to return. 1159s # * 1159s # * 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. 1159s # * 1159s # * This method will free @invocation, you cannot use it afterwards. 1159s # */ 1159s # void 1159s # test_fdpassing_complete_hello_fd ( 1159s # TestFDPassing *object G_GNUC_UNUSED, 1159s # GDBusMethodInvocation *invocation, 1159s # GUnixFDList *fd_list, 1159s # const gchar *response) 1159s # { 1159s # g_dbus_method_invocation_return_value_with_unix_fd_list (invocation, 1159s # g_variant_new ("(s)", 1159s # response), 1159s # fd_list); 1159s # } 1159s # 1159s # /* ------------------------------------------------------------------------ */ 1159s # 1159s # /** 1159s # * TestFDPassingProxy: 1159s # * 1159s # * The #TestFDPassingProxy structure contains only private data and should only be accessed using the provided API. 1159s # */ 1159s # 1159s # /** 1159s # * TestFDPassingProxyClass: 1159s # * @parent_class: The parent class. 1159s # * 1159s # * Class structure for #TestFDPassingProxy. 1159s # */ 1159s # 1159s # struct _TestFDPassingProxyPrivate 1159s # { 1159s # GData *qdata; 1159s # }; 1159s # 1159s # static void test_fdpassing_proxy_iface_init (TestFDPassingIface *iface); 1159s # 1159s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1159s # G_DEFINE_TYPE_WITH_CODE (TestFDPassingProxy, test_fdpassing_proxy, G_TYPE_DBUS_PROXY, 1159s # G_ADD_PRIVATE (TestFDPassingProxy) 1159s # G_IMPLEMENT_INTERFACE (TYPE_TEST_FDPASSING, test_fdpassing_proxy_iface_init)) 1159s # 1159s # #else 1159s # G_DEFINE_TYPE_WITH_CODE (TestFDPassingProxy, test_fdpassing_proxy, G_TYPE_DBUS_PROXY, 1159s # G_IMPLEMENT_INTERFACE (TYPE_TEST_FDPASSING, test_fdpassing_proxy_iface_init)) 1159s # 1159s # #endif 1159s # static void 1159s # test_fdpassing_proxy_finalize (GObject *object) 1159s # { 1159s # TestFDPassingProxy *proxy = TEST_FDPASSING_PROXY (object); 1159s # g_datalist_clear (&proxy->priv->qdata); 1159s # G_OBJECT_CLASS (test_fdpassing_proxy_parent_class)->finalize (object); 1159s # } 1159s # 1159s # static void 1159s # test_fdpassing_proxy_get_property (GObject *object G_GNUC_UNUSED, 1159s # guint prop_id G_GNUC_UNUSED, 1159s # GValue *value G_GNUC_UNUSED, 1159s # GParamSpec *pspec G_GNUC_UNUSED) 1159s # { 1159s # } 1159s # 1159s # static void 1159s # test_fdpassing_proxy_set_property (GObject *object G_GNUC_UNUSED, 1159s # guint prop_id G_GNUC_UNUSED, 1159s # const GValue *value G_GNUC_UNUSED, 1159s # GParamSpec *pspec G_GNUC_UNUSED) 1159s # { 1159s # } 1159s # 1159s # static void 1159s # test_fdpassing_proxy_g_signal (GDBusProxy *proxy, 1159s # const gchar *sender_name G_GNUC_UNUSED, 1159s # const gchar *signal_name, 1159s # GVariant *parameters) 1159s # { 1159s # _ExtendedGDBusSignalInfo *info; 1159s # GVariantIter iter; 1159s # GVariant *child; 1159s # GValue *paramv; 1159s # gsize num_params; 1159s # gsize n; 1159s # guint signal_id; 1159s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_test_fdpassing_interface_info.parent_struct, signal_name); 1159s # if (info == NULL) 1159s # return; 1159s # num_params = g_variant_n_children (parameters); 1159s # paramv = g_new0 (GValue, num_params + 1); 1159s # g_value_init (¶mv[0], TYPE_TEST_FDPASSING); 1159s # g_value_set_object (¶mv[0], proxy); 1159s # g_variant_iter_init (&iter, parameters); 1159s # n = 1; 1159s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1159s # { 1159s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 1159s # if (arg_info->use_gvariant) 1159s # { 1159s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1159s # g_value_set_variant (¶mv[n], child); 1159s # n++; 1159s # } 1159s # else 1159s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1159s # g_variant_unref (child); 1159s # } 1159s # signal_id = g_signal_lookup (info->signal_name, TYPE_TEST_FDPASSING); 1159s # g_signal_emitv (paramv, signal_id, 0, NULL); 1159s # for (n = 0; n < num_params + 1; n++) 1159s # g_value_unset (¶mv[n]); 1159s # g_free (paramv); 1159s # } 1159s # 1159s # static void 1159s # test_fdpassing_proxy_g_properties_changed (GDBusProxy *_proxy, 1159s # GVariant *changed_properties, 1159s # const gchar *const *invalidated_properties) 1159s # { 1159s # TestFDPassingProxy *proxy = TEST_FDPASSING_PROXY (_proxy); 1159s # guint n; 1159s # const gchar *key; 1159s # GVariantIter *iter; 1159s # _ExtendedGDBusPropertyInfo *info; 1159s # g_variant_get (changed_properties, "a{sv}", &iter); 1159s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 1159s # { 1159s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_test_fdpassing_interface_info.parent_struct, key); 1159s # g_datalist_remove_data (&proxy->priv->qdata, key); 1159s # if (info != NULL) 1159s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1159s # } 1159s # g_variant_iter_free (iter); 1159s # for (n = 0; invalidated_properties[n] != NULL; n++) 1159s # { 1159s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_test_fdpassing_interface_info.parent_struct, invalidated_properties[n]); 1159s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 1159s # if (info != NULL) 1159s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1159s # } 1159s # } 1159s # 1159s # static void 1159s # test_fdpassing_proxy_init (TestFDPassingProxy *proxy) 1159s # { 1159s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1159s # proxy->priv = test_fdpassing_proxy_get_instance_private (proxy); 1159s # #else 1159s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_TEST_FDPASSING_PROXY, TestFDPassingProxyPrivate); 1159s # #endif 1159s # 1159s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), test_fdpassing_interface_info ()); 1159s # } 1159s # 1159s # static void 1159s # test_fdpassing_proxy_class_init (TestFDPassingProxyClass *klass) 1159s # { 1159s # GObjectClass *gobject_class; 1159s # GDBusProxyClass *proxy_class; 1159s # 1159s # gobject_class = G_OBJECT_CLASS (klass); 1159s # gobject_class->finalize = test_fdpassing_proxy_finalize; 1159s # gobject_class->get_property = test_fdpassing_proxy_get_property; 1159s # gobject_class->set_property = test_fdpassing_proxy_set_property; 1159s # 1159s # proxy_class = G_DBUS_PROXY_CLASS (klass); 1159s # proxy_class->g_signal = test_fdpassing_proxy_g_signal; 1159s # proxy_class->g_properties_changed = test_fdpassing_proxy_g_properties_changed; 1159s # 1159s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1159s # g_type_class_add_private (klass, sizeof (TestFDPassingProxyPrivate)); 1159s # #endif 1159s # } 1159s # 1159s # static void 1159s # test_fdpassing_proxy_iface_init (TestFDPassingIface *iface G_GNUC_UNUSED) 1159s # { 1159s # } 1159s # 1159s # /** 1159s # * test_fdpassing_proxy_new: 1159s # * @connection: A #GDBusConnection. 1159s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1159s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1159s # * @object_path: An object path. 1159s # * @cancellable: (nullable): A #GCancellable or %NULL. 1159s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1159s # * @user_data: User data to pass to @callback. 1159s # * 1159s # * Asynchronously creates a proxy for the D-Bus interface test.FDPassing. See g_dbus_proxy_new() for more details. 1159s # * 1159s # * 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()). 1159s # * You can then call test_fdpassing_proxy_new_finish() to get the result of the operation. 1159s # * 1159s # * See test_fdpassing_proxy_new_sync() for the synchronous, blocking version of this constructor. 1159s # */ 1159s # void 1159s # test_fdpassing_proxy_new ( 1159s # GDBusConnection *connection, 1159s # GDBusProxyFlags flags, 1159s # const gchar *name, 1159s # const gchar *object_path, 1159s # GCancellable *cancellable, 1159s # GAsyncReadyCallback callback, 1159s # gpointer user_data) 1159s # { 1159s # 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); 1159s # } 1159s # 1159s # /** 1159s # * test_fdpassing_proxy_new_finish: 1159s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to test_fdpassing_proxy_new(). 1159s # * @error: Return location for error or %NULL 1159s # * 1159s # * Finishes an operation started with test_fdpassing_proxy_new(). 1159s # * 1159s # * Returns: (transfer full) (type TestFDPassingProxy): The constructed proxy object or %NULL if @error is set. 1159s # */ 1159s # TestFDPassing * 1159s # test_fdpassing_proxy_new_finish ( 1159s # GAsyncResult *res, 1159s # GError **error) 1159s # { 1159s # GObject *ret; 1159s # GObject *source_object; 1159s # source_object = g_async_result_get_source_object (res); 1159s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1159s # g_object_unref (source_object); 1159s # if (ret != NULL) 1159s # return TEST_FDPASSING (ret); 1159s # else 1159s # return NULL; 1159s # } 1159s # 1159s # /** 1159s # * test_fdpassing_proxy_new_sync: 1159s # * @connection: A #GDBusConnection. 1159s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1159s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1159s # * @object_path: An object path. 1159s # * @cancellable: (nullable): A #GCancellable or %NULL. 1159s # * @error: Return location for error or %NULL 1159s # * 1159s # * Synchronously creates a proxy for the D-Bus interface test.FDPassing. See g_dbus_proxy_new_sync() for more details. 1159s # * 1159s # * The calling thread is blocked until a reply is received. 1159s # * 1159s # * See test_fdpassing_proxy_new() for the asynchronous version of this constructor. 1159s # * 1159s # * Returns: (transfer full) (type TestFDPassingProxy): The constructed proxy object or %NULL if @error is set. 1159s # */ 1159s # TestFDPassing * 1159s # test_fdpassing_proxy_new_sync ( 1159s # GDBusConnection *connection, 1159s # GDBusProxyFlags flags, 1159s # const gchar *name, 1159s # const gchar *object_path, 1159s # GCancellable *cancellable, 1159s # GError **error) 1159s # { 1159s # GInitable *ret; 1159s # 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); 1159s # if (ret != NULL) 1159s # return TEST_FDPASSING (ret); 1159s # else 1159s # return NULL; 1159s # } 1159s # 1159s # 1159s # /** 1159s # * test_fdpassing_proxy_new_for_bus: 1159s # * @bus_type: A #GBusType. 1159s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1159s # * @name: A bus name (well-known or unique). 1159s # * @object_path: An object path. 1159s # * @cancellable: (nullable): A #GCancellable or %NULL. 1159s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1159s # * @user_data: User data to pass to @callback. 1159s # * 1159s # * Like test_fdpassing_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 1159s # * 1159s # * 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()). 1159s # * You can then call test_fdpassing_proxy_new_for_bus_finish() to get the result of the operation. 1159s # * 1159s # * See test_fdpassing_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 1159s # */ 1159s # void 1159s # test_fdpassing_proxy_new_for_bus ( 1159s # GBusType bus_type, 1159s # GDBusProxyFlags flags, 1159s # const gchar *name, 1159s # const gchar *object_path, 1159s # GCancellable *cancellable, 1159s # GAsyncReadyCallback callback, 1159s # gpointer user_data) 1159s # { 1159s # 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); 1159s # } 1159s # 1159s # /** 1159s # * test_fdpassing_proxy_new_for_bus_finish: 1159s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to test_fdpassing_proxy_new_for_bus(). 1159s # * @error: Return location for error or %NULL 1159s # * 1159s # * Finishes an operation started with test_fdpassing_proxy_new_for_bus(). 1159s # * 1159s # * Returns: (transfer full) (type TestFDPassingProxy): The constructed proxy object or %NULL if @error is set. 1159s # */ 1159s # TestFDPassing * 1159s # test_fdpassing_proxy_new_for_bus_finish ( 1159s # GAsyncResult *res, 1159s # GError **error) 1159s # { 1159s # GObject *ret; 1159s # GObject *source_object; 1159s # source_object = g_async_result_get_source_object (res); 1159s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1159s # g_object_unref (source_object); 1159s # if (ret != NULL) 1159s # return TEST_FDPASSING (ret); 1159s # else 1159s # return NULL; 1159s # } 1159s # 1159s # /** 1159s # * test_fdpassing_proxy_new_for_bus_sync: 1159s # * @bus_type: A #GBusType. 1159s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1159s # * @name: A bus name (well-known or unique). 1159s # * @object_path: An object path. 1159s # * @cancellable: (nullable): A #GCancellable or %NULL. 1159s # * @error: Return location for error or %NULL 1159s # * 1159s # * Like test_fdpassing_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 1159s # * 1159s # * The calling thread is blocked until a reply is received. 1159s # * 1159s # * See test_fdpassing_proxy_new_for_bus() for the asynchronous version of this constructor. 1159s # * 1159s # * Returns: (transfer full) (type TestFDPassingProxy): The constructed proxy object or %NULL if @error is set. 1159s # */ 1159s # TestFDPassing * 1159s # test_fdpassing_proxy_new_for_bus_sync ( 1159s # GBusType bus_type, 1159s # GDBusProxyFlags flags, 1159s # const gchar *name, 1159s # const gchar *object_path, 1159s # GCancellable *cancellable, 1159s # GError **error) 1159s # { 1159s # GInitable *ret; 1159s # 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); 1159s # if (ret != NULL) 1159s # return TEST_FDPASSING (ret); 1159s # else 1159s # return NULL; 1159s # } 1159s # 1159s # 1159s # /* ------------------------------------------------------------------------ */ 1159s # 1159s # /** 1159s # * TestFDPassingSkeleton: 1159s # * 1159s # * The #TestFDPassingSkeleton structure contains only private data and should only be accessed using the provided API. 1159s # */ 1159s # 1159s # /** 1159s # * TestFDPassingSkeletonClass: 1159s # * @parent_class: The parent class. 1159s # * 1159s # * Class structure for #TestFDPassingSkeleton. 1159s # */ 1159s # 1159s # struct _TestFDPassingSkeletonPrivate 1159s # { 1159s # GValue *properties; 1159s # GList *changed_properties; 1159s # GSource *changed_properties_idle_source; 1159s # GMainContext *context; 1159s # GMutex lock; 1159s # }; 1159s # 1159s # static void 1159s # _test_fdpassing_skeleton_handle_method_call ( 1159s # GDBusConnection *connection G_GNUC_UNUSED, 1159s # const gchar *sender G_GNUC_UNUSED, 1159s # const gchar *object_path G_GNUC_UNUSED, 1159s # const gchar *interface_name, 1159s # const gchar *method_name, 1159s # GVariant *parameters, 1159s # GDBusMethodInvocation *invocation, 1159s # gpointer user_data) 1159s # { 1159s # TestFDPassingSkeleton *skeleton = TEST_FDPASSING_SKELETON (user_data); 1159s # _ExtendedGDBusMethodInfo *info; 1159s # GVariantIter iter; 1159s # GVariant *child; 1159s # GValue *paramv; 1159s # gsize num_params; 1159s # guint num_extra; 1159s # gsize n; 1159s # guint signal_id; 1159s # GValue return_value = G_VALUE_INIT; 1159s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 1159s # g_assert (info != NULL); 1159s # num_params = g_variant_n_children (parameters); 1159s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 1159s # n = 0; 1159s # g_value_init (¶mv[n], TYPE_TEST_FDPASSING); 1159s # g_value_set_object (¶mv[n++], skeleton); 1159s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 1159s # g_value_set_object (¶mv[n++], invocation); 1159s # if (info->pass_fdlist) 1159s # { 1159s # #ifdef G_OS_UNIX 1159s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 1159s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 1159s # #else 1159s # g_assert_not_reached (); 1159s # #endif 1159s # } 1159s # g_variant_iter_init (&iter, parameters); 1159s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1159s # { 1159s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 1159s # if (arg_info->use_gvariant) 1159s # { 1159s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1159s # g_value_set_variant (¶mv[n], child); 1159s # n++; 1159s # } 1159s # else 1159s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1159s # g_variant_unref (child); 1159s # } 1159s # signal_id = g_signal_lookup (info->signal_name, TYPE_TEST_FDPASSING); 1159s # g_value_init (&return_value, G_TYPE_BOOLEAN); 1159s # g_signal_emitv (paramv, signal_id, 0, &return_value); 1159s # if (!g_value_get_boolean (&return_value)) 1159s # 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); 1159s # g_value_unset (&return_value); 1159s # for (n = 0; n < num_params + num_extra; n++) 1159s # g_value_unset (¶mv[n]); 1159s # g_free (paramv); 1159s # } 1159s # 1159s # static GVariant * 1159s # _test_fdpassing_skeleton_handle_get_property ( 1159s # GDBusConnection *connection G_GNUC_UNUSED, 1159s # const gchar *sender G_GNUC_UNUSED, 1159s # const gchar *object_path G_GNUC_UNUSED, 1159s # const gchar *interface_name G_GNUC_UNUSED, 1159s # const gchar *property_name, 1159s # GError **error, 1159s # gpointer user_data) 1159s # { 1159s # TestFDPassingSkeleton *skeleton = TEST_FDPASSING_SKELETON (user_data); 1159s # GValue value = G_VALUE_INIT; 1159s # GParamSpec *pspec; 1159s # _ExtendedGDBusPropertyInfo *info; 1159s # GVariant *ret; 1159s # ret = NULL; 1159s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_test_fdpassing_interface_info.parent_struct, property_name); 1159s # g_assert (info != NULL); 1159s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1159s # if (pspec == NULL) 1159s # { 1159s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1159s # } 1159s # else 1159s # { 1159s # g_value_init (&value, pspec->value_type); 1159s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1159s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 1159s # g_value_unset (&value); 1159s # } 1159s # return ret; 1159s # } 1159s # 1159s # static gboolean 1159s # _test_fdpassing_skeleton_handle_set_property ( 1159s # GDBusConnection *connection G_GNUC_UNUSED, 1159s # const gchar *sender G_GNUC_UNUSED, 1159s # const gchar *object_path G_GNUC_UNUSED, 1159s # const gchar *interface_name G_GNUC_UNUSED, 1159s # const gchar *property_name, 1159s # GVariant *variant, 1159s # GError **error, 1159s # gpointer user_data) 1159s # { 1159s # TestFDPassingSkeleton *skeleton = TEST_FDPASSING_SKELETON (user_data); 1159s # GValue value = G_VALUE_INIT; 1159s # GParamSpec *pspec; 1159s # _ExtendedGDBusPropertyInfo *info; 1159s # gboolean ret; 1159s # ret = FALSE; 1159s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_test_fdpassing_interface_info.parent_struct, property_name); 1159s # g_assert (info != NULL); 1159s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1159s # if (pspec == NULL) 1159s # { 1159s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1159s # } 1159s # else 1159s # { 1159s # if (info->use_gvariant) 1159s # g_value_set_variant (&value, variant); 1159s # else 1159s # g_dbus_gvariant_to_gvalue (variant, &value); 1159s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1159s # g_value_unset (&value); 1159s # ret = TRUE; 1159s # } 1159s # return ret; 1159s # } 1159s # 1159s # static const GDBusInterfaceVTable _test_fdpassing_skeleton_vtable = 1159s # { 1159s # _test_fdpassing_skeleton_handle_method_call, 1159s # _test_fdpassing_skeleton_handle_get_property, 1159s # _test_fdpassing_skeleton_handle_set_property, 1159s # {NULL} 1159s # }; 1159s # 1159s # static GDBusInterfaceInfo * 1159s # test_fdpassing_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1159s # { 1159s # return test_fdpassing_interface_info (); 1159s # } 1159s # 1159s # static GDBusInterfaceVTable * 1159s # test_fdpassing_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1159s # { 1159s # return (GDBusInterfaceVTable *) &_test_fdpassing_skeleton_vtable; 1159s # } 1159s # 1159s # static GVariant * 1159s # test_fdpassing_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 1159s # { 1159s # TestFDPassingSkeleton *skeleton = TEST_FDPASSING_SKELETON (_skeleton); 1159s # 1159s # GVariantBuilder builder; 1159s # guint n; 1159s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 1159s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 1159s # #else 1159s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 1159s # #endif 1159s # if (_test_fdpassing_interface_info.parent_struct.properties == NULL) 1159s # goto out; 1159s # for (n = 0; _test_fdpassing_interface_info.parent_struct.properties[n] != NULL; n++) 1159s # { 1159s # GDBusPropertyInfo *info = _test_fdpassing_interface_info.parent_struct.properties[n]; 1159s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 1159s # { 1159s # GVariant *value; 1159s # 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); 1159s # if (value != NULL) 1159s # { 1159s # g_variant_take_ref (value); 1159s # g_variant_builder_add (&builder, "{sv}", info->name, value); 1159s # g_variant_unref (value); 1159s # } 1159s # } 1159s # } 1159s # out: 1159s # return g_variant_builder_end (&builder); 1159s # } 1159s # 1159s # static void 1159s # test_fdpassing_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 1159s # { 1159s # } 1159s # 1159s # static void test_fdpassing_skeleton_iface_init (TestFDPassingIface *iface); 1159s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1159s # G_DEFINE_TYPE_WITH_CODE (TestFDPassingSkeleton, test_fdpassing_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1159s # G_ADD_PRIVATE (TestFDPassingSkeleton) 1159s # G_IMPLEMENT_INTERFACE (TYPE_TEST_FDPASSING, test_fdpassing_skeleton_iface_init)) 1159s # 1159s # #else 1159s # G_DEFINE_TYPE_WITH_CODE (TestFDPassingSkeleton, test_fdpassing_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1159s # G_IMPLEMENT_INTERFACE (TYPE_TEST_FDPASSING, test_fdpassing_skeleton_iface_init)) 1159s # 1159s # #endif 1159s # static void 1159s # test_fdpassing_skeleton_finalize (GObject *object) 1159s # { 1159s # TestFDPassingSkeleton *skeleton = TEST_FDPASSING_SKELETON (object); 1159s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 1159s # if (skeleton->priv->changed_properties_idle_source != NULL) 1159s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 1159s # g_main_context_unref (skeleton->priv->context); 1159s # g_mutex_clear (&skeleton->priv->lock); 1159s # G_OBJECT_CLASS (test_fdpassing_skeleton_parent_class)->finalize (object); 1159s # } 1159s # 1159s # static void 1159s # test_fdpassing_skeleton_init (TestFDPassingSkeleton *skeleton) 1159s # { 1159s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1159s # skeleton->priv = test_fdpassing_skeleton_get_instance_private (skeleton); 1159s # #else 1159s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_TEST_FDPASSING_SKELETON, TestFDPassingSkeletonPrivate); 1159s # #endif 1159s # 1159s # g_mutex_init (&skeleton->priv->lock); 1159s # skeleton->priv->context = g_main_context_ref_thread_default (); 1159s # } 1159s # 1159s # static void 1159s # test_fdpassing_skeleton_class_init (TestFDPassingSkeletonClass *klass) 1159s # { 1159s # GObjectClass *gobject_class; 1159s # GDBusInterfaceSkeletonClass *skeleton_class; 1159s # 1159s # gobject_class = G_OBJECT_CLASS (klass); 1159s # gobject_class->finalize = test_fdpassing_skeleton_finalize; 1159s # 1159s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 1159s # skeleton_class->get_info = test_fdpassing_skeleton_dbus_interface_get_info; 1159s # skeleton_class->get_properties = test_fdpassing_skeleton_dbus_interface_get_properties; 1159s # skeleton_class->flush = test_fdpassing_skeleton_dbus_interface_flush; 1159s # skeleton_class->get_vtable = test_fdpassing_skeleton_dbus_interface_get_vtable; 1159s # 1159s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1159s # g_type_class_add_private (klass, sizeof (TestFDPassingSkeletonPrivate)); 1159s # #endif 1159s # } 1159s # 1159s # static void 1159s # test_fdpassing_skeleton_iface_init (TestFDPassingIface *iface G_GNUC_UNUSED) 1159s # { 1159s # } 1159s # 1159s # /** 1159s # * test_fdpassing_skeleton_new: 1159s # * 1159s # * Creates a skeleton object for the D-Bus interface test.FDPassing. 1159s # * 1159s # * Returns: (transfer full) (type TestFDPassingSkeleton): The skeleton object. 1159s # */ 1159s # TestFDPassing * 1159s # test_fdpassing_skeleton_new (void) 1159s # { 1159s # return TEST_FDPASSING (g_object_new (TYPE_TEST_FDPASSING_SKELETON, NULL)); 1159s # } 1159s # Error: 1159s ok 15 __main__.TestCodegen.test_generate_rst 1159s # gdbus-codegen: /usr/bin/gdbus-codegen 1159s # tmpdir: /tmp/tmppnsbkriy 1159s # /tmp/tmppnsbkriy/tmpl1p03cbh.xml: 1159s # 1159s # 1159s # 1159s # 1159s # 1159s # 1159s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmppnsbkriy/tmpl1p03cbh.xml', '--generate-rst', 'test'] 1159s # Return code: 0 1159s # Output: 1159s # 1159s # Error: 1159s ok 16 __main__.TestCodegen.test_generate_rst_method 1159s # gdbus-codegen: /usr/bin/gdbus-codegen 1159s # tmpdir: /tmp/tmpvmxhzvw8 1159s # /tmp/tmpvmxhzvw8/tmp34t96z6e.xml: 1159s # 1159s # 1159s # 1159s # 1159s # 1159s # 1159s # 1159s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpvmxhzvw8/tmp34t96z6e.xml', '--generate-rst', 'test'] 1159s # Return code: 0 1159s # Output: 1159s # 1159s # Error: 1159s ok 17 __main__.TestCodegen.test_generate_rst_property 1159s # gdbus-codegen: /usr/bin/gdbus-codegen 1159s # tmpdir: /tmp/tmpop5nii5j 1159s # /tmp/tmpop5nii5j/tmpeo4x0f14.xml: 1159s # 1159s # 1159s # 1159s # 1159s # 1159s # 1159s # 1159s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpop5nii5j/tmpeo4x0f14.xml', '--generate-rst', 'test'] 1159s # Return code: 0 1159s # Output: 1159s # 1159s # Error: 1159s ok 18 __main__.TestCodegen.test_generate_rst_signal 1159s # gdbus-codegen: /usr/bin/gdbus-codegen 1159s # tmpdir: /tmp/tmp0xftldfs 1159s # /tmp/tmp0xftldfs/tmpiyeqirs3.xml: 1159s # 1159s # 1159s # 1159s # 1159s # 1159s # 1159s # 1159s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmp0xftldfs/tmpiyeqirs3.xml', '--generate-rst', 'test'] 1159s # Return code: 0 1159s # Output: 1159s # 1159s # Error: 1159s ok 19 __main__.TestCodegen.test_generate_signal_id_multiple_signal_args_types 1159s # gdbus-codegen: /usr/bin/gdbus-codegen 1159s # tmpdir: /tmp/tmprat_i2wl 1159s # /tmp/tmprat_i2wl/tmpba_fk1j_.xml: 1159s # 1159s # 1159s # 1159s # 1159s # 1159s # 1159s # 1159s # 1159s # 1159s # 1159s # 1159s # 1159s # 1159s # 1159s # 1159s # 1159s # 1159s # 1159s # 1159s # 1159s # 1159s # 1159s # 1159s # 1159s # 1159s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmprat_i2wl/tmpba_fk1j_.xml', '--output', '-', '--body'] 1159s # Return code: 0 1159s # Output: 1159s # /* 1159s # * This file is generated by gdbus-codegen, do not modify it. 1159s # * 1159s # * The license of this code is the same as for the D-Bus interface description 1159s # * it was derived from. Note that it links to GLib, so must comply with the 1159s # * LGPL linking clauses. 1159s # */ 1159s # 1159s # #ifdef HAVE_CONFIG_H 1159s # # include "config.h" 1159s # #endif 1159s # 1159s # #include 1159s # #ifdef G_OS_UNIX 1159s # # include 1159s # #endif 1159s # 1159s # #ifdef G_ENABLE_DEBUG 1159s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 1159s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 1159s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 1159s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 1159s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 1159s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 1159s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 1159s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 1159s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 1159s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 1159s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 1159s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 1159s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 1159s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 1159s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 1159s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 1159s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 1159s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 1159s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 1159s # #else /* !G_ENABLE_DEBUG */ 1159s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 1159s # * Do not access GValues directly in your code. Instead, use the 1159s # * g_value_get_*() functions 1159s # */ 1159s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 1159s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 1159s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 1159s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 1159s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 1159s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 1159s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 1159s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 1159s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 1159s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 1159s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 1159s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 1159s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 1159s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 1159s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 1159s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 1159s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 1159s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 1159s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 1159s # #endif /* !G_ENABLE_DEBUG */ 1159s # 1159s # typedef struct 1159s # { 1159s # GDBusArgInfo parent_struct; 1159s # gboolean use_gvariant; 1159s # } _ExtendedGDBusArgInfo; 1159s # 1159s # typedef struct 1159s # { 1159s # GDBusMethodInfo parent_struct; 1159s # const gchar *signal_name; 1159s # gboolean pass_fdlist; 1159s # } _ExtendedGDBusMethodInfo; 1159s # 1159s # typedef struct 1159s # { 1159s # GDBusSignalInfo parent_struct; 1159s # const gchar *signal_name; 1159s # } _ExtendedGDBusSignalInfo; 1159s # 1159s # typedef struct 1159s # { 1159s # GDBusPropertyInfo parent_struct; 1159s # const gchar *hyphen_name; 1159s # guint use_gvariant : 1; 1159s # guint emits_changed_signal : 1; 1159s # } _ExtendedGDBusPropertyInfo; 1159s # 1159s # typedef struct 1159s # { 1159s # GDBusInterfaceInfo parent_struct; 1159s # const gchar *hyphen_name; 1159s # } _ExtendedGDBusInterfaceInfo; 1159s # 1159s # typedef struct 1159s # { 1159s # const _ExtendedGDBusPropertyInfo *info; 1159s # guint prop_id; 1159s # GValue orig_value; /* the value before the change */ 1159s # } ChangedProperty; 1159s # 1159s # static void 1159s # _changed_property_free (ChangedProperty *data) 1159s # { 1159s # g_value_unset (&data->orig_value); 1159s # g_free (data); 1159s # } 1159s # 1159s # static gboolean 1159s # _g_strv_equal0 (gchar **a, gchar **b) 1159s # { 1159s # gboolean ret = FALSE; 1159s # guint n; 1159s # if (a == NULL && b == NULL) 1159s # { 1159s # ret = TRUE; 1159s # goto out; 1159s # } 1159s # if (a == NULL || b == NULL) 1159s # goto out; 1159s # if (g_strv_length (a) != g_strv_length (b)) 1159s # goto out; 1159s # for (n = 0; a[n] != NULL; n++) 1159s # if (g_strcmp0 (a[n], b[n]) != 0) 1159s # goto out; 1159s # ret = TRUE; 1159s # out: 1159s # return ret; 1159s # } 1159s # 1159s # static gboolean 1159s # _g_variant_equal0 (GVariant *a, GVariant *b) 1159s # { 1159s # gboolean ret = FALSE; 1159s # if (a == NULL && b == NULL) 1159s # { 1159s # ret = TRUE; 1159s # goto out; 1159s # } 1159s # if (a == NULL || b == NULL) 1159s # goto out; 1159s # ret = g_variant_equal (a, b); 1159s # out: 1159s # return ret; 1159s # } 1159s # 1159s # G_GNUC_UNUSED static gboolean 1159s # _g_value_equal (const GValue *a, const GValue *b) 1159s # { 1159s # gboolean ret = FALSE; 1159s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 1159s # switch (G_VALUE_TYPE (a)) 1159s # { 1159s # case G_TYPE_BOOLEAN: 1159s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 1159s # break; 1159s # case G_TYPE_UCHAR: 1159s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 1159s # break; 1159s # case G_TYPE_INT: 1159s # ret = (g_value_get_int (a) == g_value_get_int (b)); 1159s # break; 1159s # case G_TYPE_UINT: 1159s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 1159s # break; 1159s # case G_TYPE_INT64: 1159s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 1159s # break; 1159s # case G_TYPE_UINT64: 1159s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 1159s # break; 1159s # case G_TYPE_DOUBLE: 1159s # { 1159s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 1159s # gdouble da = g_value_get_double (a); 1159s # gdouble db = g_value_get_double (b); 1159s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 1159s # } 1159s # break; 1159s # case G_TYPE_STRING: 1159s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 1159s # break; 1159s # case G_TYPE_VARIANT: 1159s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 1159s # break; 1159s # default: 1159s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 1159s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 1159s # else 1159s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 1159s # break; 1159s # } 1159s # return ret; 1159s # } 1159s # 1159s # static void 1159s # _g_dbus_codegen_marshal_VOID__BOOLEAN_UCHAR_INT_UINT_INT_UINT_INT64_UINT64_DOUBLE_STRING_STRING_STRING_VARIANT_STRING_BOXED_BOXED_BOXED_VARIANT ( 1159s # GClosure *closure, 1159s # GValue *return_value G_GNUC_UNUSED, 1159s # unsigned int n_param_values, 1159s # const GValue *param_values, 1159s # void *invocation_hint G_GNUC_UNUSED, 1159s # void *marshal_data) 1159s # { 1159s # typedef void (*_GDbusCodegenMarshalVoid_BooleanUcharIntUintIntUintInt64Uint64DoubleStringStringStringVariantStringBoxedBoxedBoxedVariantFunc) 1159s # (void *data1, 1159s # gboolean arg_an_b, 1159s # guchar arg_an_y, 1159s # gint16 arg_an_n, 1159s # guint16 arg_an_q, 1159s # gint arg_an_i, 1159s # guint arg_an_u, 1159s # gint64 arg_an_x, 1159s # guint64 arg_an_t, 1159s # gdouble arg_an_d, 1159s # const gchar *arg_an_s, 1159s # const gchar *arg_an_o, 1159s # const gchar *arg_an_g, 1159s # GVariant *arg_an_h, 1159s # const gchar *arg_an_ay, 1159s # const gchar *const *arg_an_as, 1159s # const gchar *const *arg_an_ao, 1159s # const gchar *const *arg_an_aay, 1159s # GVariant *arg_an_asv, 1159s # void *data2); 1159s # _GDbusCodegenMarshalVoid_BooleanUcharIntUintIntUintInt64Uint64DoubleStringStringStringVariantStringBoxedBoxedBoxedVariantFunc callback; 1159s # GCClosure *cc = (GCClosure*) closure; 1159s # void *data1, *data2; 1159s # 1159s # g_return_if_fail (n_param_values == 19); 1159s # 1159s # if (G_CCLOSURE_SWAP_DATA (closure)) 1159s # { 1159s # data1 = closure->data; 1159s # data2 = g_value_peek_pointer (param_values + 0); 1159s # } 1159s # else 1159s # { 1159s # data1 = g_value_peek_pointer (param_values + 0); 1159s # data2 = closure->data; 1159s # } 1159s # 1159s # callback = (_GDbusCodegenMarshalVoid_BooleanUcharIntUintIntUintInt64Uint64DoubleStringStringStringVariantStringBoxedBoxedBoxedVariantFunc) 1159s # (marshal_data ? marshal_data : cc->callback); 1159s # 1159s # callback (data1, 1159s # g_marshal_value_peek_boolean (param_values + 1), 1159s # g_marshal_value_peek_uchar (param_values + 2), 1159s # g_marshal_value_peek_int (param_values + 3), 1159s # g_marshal_value_peek_uint (param_values + 4), 1159s # g_marshal_value_peek_int (param_values + 5), 1159s # g_marshal_value_peek_uint (param_values + 6), 1159s # g_marshal_value_peek_int64 (param_values + 7), 1159s # g_marshal_value_peek_uint64 (param_values + 8), 1159s # g_marshal_value_peek_double (param_values + 9), 1159s # g_marshal_value_peek_string (param_values + 10), 1159s # g_marshal_value_peek_string (param_values + 11), 1159s # g_marshal_value_peek_string (param_values + 12), 1159s # g_marshal_value_peek_variant (param_values + 13), 1159s # g_marshal_value_peek_string (param_values + 14), 1159s # g_marshal_value_peek_boxed (param_values + 15), 1159s # g_marshal_value_peek_boxed (param_values + 16), 1159s # g_marshal_value_peek_boxed (param_values + 17), 1159s # g_marshal_value_peek_variant (param_values + 18), 1159s # data2); 1159s # } 1159s # 1159s # /* ------------------------------------------------------------------------ 1159s # * Code for interface org.project.SignalingIface 1159s # * ------------------------------------------------------------------------ 1159s # */ 1159s # 1159s # /** 1159s # * SECTION:OrgProjectSignalingIface 1159s # * @title: OrgProjectSignalingIface 1159s # * @short_description: Generated C code for the org.project.SignalingIface D-Bus interface 1159s # * 1159s # * This section contains code for working with the org.project.SignalingIface D-Bus interface in C. 1159s # */ 1159s # 1159s # enum 1159s # { 1159s # _ORG_PROJECT_SIGNALING_IFACE_SIGNAL_WITH_MANY_ARGS, 1159s # }; 1159s # 1159s # static unsigned _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[1] = { 0 }; 1159s # 1159s # /* ---- Introspection data for org.project.SignalingIface ---- */ 1159s # 1159s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_b = 1159s # { 1159s # { 1159s # -1, 1159s # (gchar *) "an_b", 1159s # (gchar *) "b", 1159s # NULL 1159s # }, 1159s # FALSE 1159s # }; 1159s # 1159s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_y = 1159s # { 1159s # { 1159s # -1, 1159s # (gchar *) "an_y", 1159s # (gchar *) "y", 1159s # NULL 1159s # }, 1159s # FALSE 1159s # }; 1159s # 1159s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_n = 1159s # { 1159s # { 1159s # -1, 1159s # (gchar *) "an_n", 1159s # (gchar *) "n", 1159s # NULL 1159s # }, 1159s # FALSE 1159s # }; 1159s # 1159s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_q = 1159s # { 1159s # { 1159s # -1, 1159s # (gchar *) "an_q", 1159s # (gchar *) "q", 1159s # NULL 1159s # }, 1159s # FALSE 1159s # }; 1159s # 1159s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_i = 1159s # { 1159s # { 1159s # -1, 1159s # (gchar *) "an_i", 1159s # (gchar *) "i", 1159s # NULL 1159s # }, 1159s # FALSE 1159s # }; 1159s # 1159s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_u = 1159s # { 1159s # { 1159s # -1, 1159s # (gchar *) "an_u", 1159s # (gchar *) "u", 1159s # NULL 1159s # }, 1159s # FALSE 1159s # }; 1159s # 1159s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_x = 1159s # { 1159s # { 1159s # -1, 1159s # (gchar *) "an_x", 1159s # (gchar *) "x", 1159s # NULL 1159s # }, 1159s # FALSE 1159s # }; 1159s # 1159s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_t = 1159s # { 1159s # { 1159s # -1, 1159s # (gchar *) "an_t", 1159s # (gchar *) "t", 1159s # NULL 1159s # }, 1159s # FALSE 1159s # }; 1159s # 1159s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_d = 1159s # { 1159s # { 1159s # -1, 1159s # (gchar *) "an_d", 1159s # (gchar *) "d", 1159s # NULL 1159s # }, 1159s # FALSE 1159s # }; 1159s # 1159s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_s = 1159s # { 1159s # { 1159s # -1, 1159s # (gchar *) "an_s", 1159s # (gchar *) "s", 1159s # NULL 1159s # }, 1159s # FALSE 1159s # }; 1159s # 1159s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_o = 1159s # { 1159s # { 1159s # -1, 1159s # (gchar *) "an_o", 1159s # (gchar *) "o", 1159s # NULL 1159s # }, 1159s # FALSE 1159s # }; 1159s # 1159s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_g = 1159s # { 1159s # { 1159s # -1, 1159s # (gchar *) "an_g", 1159s # (gchar *) "g", 1159s # NULL 1159s # }, 1159s # FALSE 1159s # }; 1159s # 1159s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_h = 1159s # { 1159s # { 1159s # -1, 1159s # (gchar *) "an_h", 1159s # (gchar *) "h", 1159s # NULL 1159s # }, 1159s # FALSE 1159s # }; 1159s # 1159s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_ay = 1159s # { 1159s # { 1159s # -1, 1159s # (gchar *) "an_ay", 1159s # (gchar *) "ay", 1159s # NULL 1159s # }, 1159s # FALSE 1159s # }; 1159s # 1159s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_as = 1159s # { 1159s # { 1159s # -1, 1159s # (gchar *) "an_as", 1159s # (gchar *) "as", 1159s # NULL 1159s # }, 1159s # FALSE 1159s # }; 1159s # 1159s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_ao = 1159s # { 1159s # { 1159s # -1, 1159s # (gchar *) "an_ao", 1159s # (gchar *) "ao", 1159s # NULL 1159s # }, 1159s # FALSE 1159s # }; 1159s # 1159s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_aay = 1159s # { 1159s # { 1159s # -1, 1159s # (gchar *) "an_aay", 1159s # (gchar *) "aay", 1159s # NULL 1159s # }, 1159s # FALSE 1159s # }; 1159s # 1159s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_asv = 1159s # { 1159s # { 1159s # -1, 1159s # (gchar *) "an_asv", 1159s # (gchar *) "a{sv}", 1159s # NULL 1159s # }, 1159s # FALSE 1159s # }; 1159s # 1159s # static const GDBusArgInfo * const _org_project_signaling_iface_signal_info_signal_with_many_args_ARG_pointers[] = 1159s # { 1159s # &_org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_b.parent_struct, 1159s # &_org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_y.parent_struct, 1159s # &_org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_n.parent_struct, 1159s # &_org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_q.parent_struct, 1159s # &_org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_i.parent_struct, 1159s # &_org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_u.parent_struct, 1159s # &_org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_x.parent_struct, 1159s # &_org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_t.parent_struct, 1159s # &_org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_d.parent_struct, 1159s # &_org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_s.parent_struct, 1159s # &_org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_o.parent_struct, 1159s # &_org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_g.parent_struct, 1159s # &_org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_h.parent_struct, 1159s # &_org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_ay.parent_struct, 1159s # &_org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_as.parent_struct, 1159s # &_org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_ao.parent_struct, 1159s # &_org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_aay.parent_struct, 1159s # &_org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_asv.parent_struct, 1159s # NULL 1159s # }; 1159s # 1159s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_signal_with_many_args = 1159s # { 1159s # { 1159s # -1, 1159s # (gchar *) "SignalWithManyArgs", 1159s # (GDBusArgInfo **) &_org_project_signaling_iface_signal_info_signal_with_many_args_ARG_pointers, 1159s # NULL 1159s # }, 1159s # "signal-with-many-args" 1159s # }; 1159s # 1159s # static const GDBusSignalInfo * const _org_project_signaling_iface_signal_info_pointers[] = 1159s # { 1159s # &_org_project_signaling_iface_signal_info_signal_with_many_args.parent_struct, 1159s # NULL 1159s # }; 1159s # 1159s # static const _ExtendedGDBusInterfaceInfo _org_project_signaling_iface_interface_info = 1159s # { 1159s # { 1159s # -1, 1159s # (gchar *) "org.project.SignalingIface", 1159s # NULL, 1159s # (GDBusSignalInfo **) &_org_project_signaling_iface_signal_info_pointers, 1159s # NULL, 1159s # NULL 1159s # }, 1159s # "org-project-signaling-iface", 1159s # }; 1159s # 1159s # 1159s # /** 1159s # * org_project_signaling_iface_interface_info: 1159s # * 1159s # * Gets a machine-readable description of the org.project.SignalingIface D-Bus interface. 1159s # * 1159s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 1159s # */ 1159s # GDBusInterfaceInfo * 1159s # org_project_signaling_iface_interface_info (void) 1159s # { 1159s # return (GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct; 1159s # } 1159s # 1159s # /** 1159s # * org_project_signaling_iface_override_properties: 1159s # * @klass: The class structure for a #GObject derived class. 1159s # * @property_id_begin: The property id to assign to the first overridden property. 1159s # * 1159s # * Overrides all #GObject properties in the #OrgProjectSignalingIface interface for a concrete class. 1159s # * The properties are overridden in the order they are defined. 1159s # * 1159s # * Returns: The last property id. 1159s # */ 1159s # guint 1159s # org_project_signaling_iface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 1159s # { 1159s # return property_id_begin - 1; 1159s # } 1159s # 1159s # 1159s # inline static void 1159s # org_project_signaling_iface_signal_marshal_signal_with_many_args ( 1159s # GClosure *closure, 1159s # GValue *return_value, 1159s # unsigned int n_param_values, 1159s # const GValue *param_values, 1159s # void *invocation_hint, 1159s # void *marshal_data) 1159s # { 1159s # _g_dbus_codegen_marshal_VOID__BOOLEAN_UCHAR_INT_UINT_INT_UINT_INT64_UINT64_DOUBLE_STRING_STRING_STRING_VARIANT_STRING_BOXED_BOXED_BOXED_VARIANT (closure, 1159s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1159s # } 1159s # 1159s # 1159s # /** 1159s # * OrgProjectSignalingIface: 1159s # * 1159s # * Abstract interface type for the D-Bus interface org.project.SignalingIface. 1159s # */ 1159s # 1159s # /** 1159s # * OrgProjectSignalingIfaceIface: 1159s # * @parent_iface: The parent interface. 1159s # * @signal_with_many_args: Handler for the #OrgProjectSignalingIface::signal-with-many-args signal. 1159s # * 1159s # * Virtual table for the D-Bus interface org.project.SignalingIface. 1159s # */ 1159s # 1159s # typedef OrgProjectSignalingIfaceIface OrgProjectSignalingIfaceInterface; 1159s # G_DEFINE_INTERFACE (OrgProjectSignalingIface, org_project_signaling_iface, G_TYPE_OBJECT) 1159s # 1159s # static void 1159s # org_project_signaling_iface_default_init (OrgProjectSignalingIfaceIface *iface) 1159s # { 1159s # /* GObject signals for received D-Bus signals: */ 1159s # /** 1159s # * OrgProjectSignalingIface::signal-with-many-args: 1159s # * @object: A #OrgProjectSignalingIface. 1159s # * @arg_an_b: Argument. 1159s # * @arg_an_y: Argument. 1159s # * @arg_an_n: Argument. 1159s # * @arg_an_q: Argument. 1159s # * @arg_an_i: Argument. 1159s # * @arg_an_u: Argument. 1159s # * @arg_an_x: Argument. 1159s # * @arg_an_t: Argument. 1159s # * @arg_an_d: Argument. 1159s # * @arg_an_s: Argument. 1159s # * @arg_an_o: Argument. 1159s # * @arg_an_g: Argument. 1159s # * @arg_an_h: Argument. 1159s # * @arg_an_ay: Argument. 1159s # * @arg_an_as: Argument. 1159s # * @arg_an_ao: Argument. 1159s # * @arg_an_aay: Argument. 1159s # * @arg_an_asv: Argument. 1159s # * 1159s # * On the client-side, this signal is emitted whenever the D-Bus signal "SignalWithManyArgs" is received. 1159s # * 1159s # * 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. 1159s # */ 1159s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SIGNAL_WITH_MANY_ARGS] = 1159s # g_signal_new ("signal-with-many-args", 1159s # G_TYPE_FROM_INTERFACE (iface), 1159s # G_SIGNAL_RUN_LAST, 1159s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, signal_with_many_args), 1159s # NULL, 1159s # NULL, 1159s # org_project_signaling_iface_signal_marshal_signal_with_many_args, 1159s # G_TYPE_NONE, 1159s # 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); 1159s # 1159s # } 1159s # 1159s # /** 1159s # * org_project_signaling_iface_emit_signal_with_many_args: 1159s # * @object: A #OrgProjectSignalingIface. 1159s # * @arg_an_b: Argument to pass with the signal. 1159s # * @arg_an_y: Argument to pass with the signal. 1159s # * @arg_an_n: Argument to pass with the signal. 1159s # * @arg_an_q: Argument to pass with the signal. 1159s # * @arg_an_i: Argument to pass with the signal. 1159s # * @arg_an_u: Argument to pass with the signal. 1159s # * @arg_an_x: Argument to pass with the signal. 1159s # * @arg_an_t: Argument to pass with the signal. 1159s # * @arg_an_d: Argument to pass with the signal. 1159s # * @arg_an_s: Argument to pass with the signal. 1159s # * @arg_an_o: Argument to pass with the signal. 1159s # * @arg_an_g: Argument to pass with the signal. 1159s # * @arg_an_h: Argument to pass with the signal. 1159s # * @arg_an_ay: Argument to pass with the signal. 1159s # * @arg_an_as: Argument to pass with the signal. 1159s # * @arg_an_ao: Argument to pass with the signal. 1159s # * @arg_an_aay: Argument to pass with the signal. 1159s # * @arg_an_asv: Argument to pass with the signal. 1159s # * 1159s # * Emits the "SignalWithManyArgs" D-Bus signal. 1159s # */ 1159s # void 1159s # org_project_signaling_iface_emit_signal_with_many_args ( 1159s # OrgProjectSignalingIface *object, 1159s # gboolean arg_an_b, 1159s # guchar arg_an_y, 1159s # gint16 arg_an_n, 1159s # guint16 arg_an_q, 1159s # gint arg_an_i, 1159s # guint arg_an_u, 1159s # gint64 arg_an_x, 1159s # guint64 arg_an_t, 1159s # gdouble arg_an_d, 1159s # const gchar *arg_an_s, 1159s # const gchar *arg_an_o, 1159s # const gchar *arg_an_g, 1159s # GVariant *arg_an_h, 1159s # const gchar *arg_an_ay, 1159s # const gchar *const *arg_an_as, 1159s # const gchar *const *arg_an_ao, 1159s # const gchar *const *arg_an_aay, 1159s # GVariant *arg_an_asv) 1159s # { 1159s # 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); 1159s # } 1159s # 1159s # /* ------------------------------------------------------------------------ */ 1159s # 1159s # /** 1159s # * OrgProjectSignalingIfaceProxy: 1159s # * 1159s # * The #OrgProjectSignalingIfaceProxy structure contains only private data and should only be accessed using the provided API. 1159s # */ 1159s # 1159s # /** 1159s # * OrgProjectSignalingIfaceProxyClass: 1159s # * @parent_class: The parent class. 1159s # * 1159s # * Class structure for #OrgProjectSignalingIfaceProxy. 1159s # */ 1159s # 1159s # struct _OrgProjectSignalingIfaceProxyPrivate 1159s # { 1159s # GData *qdata; 1159s # }; 1159s # 1159s # static void org_project_signaling_iface_proxy_iface_init (OrgProjectSignalingIfaceIface *iface); 1159s # 1159s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1159s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceProxy, org_project_signaling_iface_proxy, G_TYPE_DBUS_PROXY, 1159s # G_ADD_PRIVATE (OrgProjectSignalingIfaceProxy) 1159s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_proxy_iface_init)) 1159s # 1159s # #else 1159s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceProxy, org_project_signaling_iface_proxy, G_TYPE_DBUS_PROXY, 1159s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_proxy_iface_init)) 1159s # 1159s # #endif 1159s # static void 1159s # org_project_signaling_iface_proxy_finalize (GObject *object) 1159s # { 1159s # OrgProjectSignalingIfaceProxy *proxy = ORG_PROJECT_SIGNALING_IFACE_PROXY (object); 1159s # g_datalist_clear (&proxy->priv->qdata); 1159s # G_OBJECT_CLASS (org_project_signaling_iface_proxy_parent_class)->finalize (object); 1159s # } 1159s # 1159s # static void 1159s # org_project_signaling_iface_proxy_get_property (GObject *object G_GNUC_UNUSED, 1159s # guint prop_id G_GNUC_UNUSED, 1159s # GValue *value G_GNUC_UNUSED, 1159s # GParamSpec *pspec G_GNUC_UNUSED) 1159s # { 1159s # } 1159s # 1159s # static void 1159s # org_project_signaling_iface_proxy_set_property (GObject *object G_GNUC_UNUSED, 1159s # guint prop_id G_GNUC_UNUSED, 1159s # const GValue *value G_GNUC_UNUSED, 1159s # GParamSpec *pspec G_GNUC_UNUSED) 1159s # { 1159s # } 1159s # 1159s # static void 1159s # org_project_signaling_iface_proxy_g_signal (GDBusProxy *proxy, 1159s # const gchar *sender_name G_GNUC_UNUSED, 1159s # const gchar *signal_name, 1159s # GVariant *parameters) 1159s # { 1159s # _ExtendedGDBusSignalInfo *info; 1159s # GVariantIter iter; 1159s # GVariant *child; 1159s # GValue *paramv; 1159s # gsize num_params; 1159s # gsize n; 1159s # guint signal_id; 1159s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, signal_name); 1159s # if (info == NULL) 1159s # return; 1159s # num_params = g_variant_n_children (parameters); 1159s # paramv = g_new0 (GValue, num_params + 1); 1159s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_SIGNALING_IFACE); 1159s # g_value_set_object (¶mv[0], proxy); 1159s # g_variant_iter_init (&iter, parameters); 1159s # n = 1; 1159s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1159s # { 1159s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 1159s # if (arg_info->use_gvariant) 1159s # { 1159s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1159s # g_value_set_variant (¶mv[n], child); 1159s # n++; 1159s # } 1159s # else 1159s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1159s # g_variant_unref (child); 1159s # } 1159s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_SIGNALING_IFACE); 1159s # g_signal_emitv (paramv, signal_id, 0, NULL); 1159s # for (n = 0; n < num_params + 1; n++) 1159s # g_value_unset (¶mv[n]); 1159s # g_free (paramv); 1159s # } 1159s # 1159s # static void 1159s # org_project_signaling_iface_proxy_g_properties_changed (GDBusProxy *_proxy, 1159s # GVariant *changed_properties, 1159s # const gchar *const *invalidated_properties) 1159s # { 1159s # OrgProjectSignalingIfaceProxy *proxy = ORG_PROJECT_SIGNALING_IFACE_PROXY (_proxy); 1159s # guint n; 1159s # const gchar *key; 1159s # GVariantIter *iter; 1159s # _ExtendedGDBusPropertyInfo *info; 1159s # g_variant_get (changed_properties, "a{sv}", &iter); 1159s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 1159s # { 1159s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, key); 1159s # g_datalist_remove_data (&proxy->priv->qdata, key); 1159s # if (info != NULL) 1159s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1159s # } 1159s # g_variant_iter_free (iter); 1159s # for (n = 0; invalidated_properties[n] != NULL; n++) 1159s # { 1159s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, invalidated_properties[n]); 1159s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 1159s # if (info != NULL) 1159s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1159s # } 1159s # } 1159s # 1159s # static void 1159s # org_project_signaling_iface_proxy_init (OrgProjectSignalingIfaceProxy *proxy) 1159s # { 1159s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1159s # proxy->priv = org_project_signaling_iface_proxy_get_instance_private (proxy); 1159s # #else 1159s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_SIGNALING_IFACE_PROXY, OrgProjectSignalingIfaceProxyPrivate); 1159s # #endif 1159s # 1159s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_signaling_iface_interface_info ()); 1159s # } 1159s # 1159s # static void 1159s # org_project_signaling_iface_proxy_class_init (OrgProjectSignalingIfaceProxyClass *klass) 1159s # { 1159s # GObjectClass *gobject_class; 1159s # GDBusProxyClass *proxy_class; 1159s # 1159s # gobject_class = G_OBJECT_CLASS (klass); 1159s # gobject_class->finalize = org_project_signaling_iface_proxy_finalize; 1159s # gobject_class->get_property = org_project_signaling_iface_proxy_get_property; 1159s # gobject_class->set_property = org_project_signaling_iface_proxy_set_property; 1159s # 1159s # proxy_class = G_DBUS_PROXY_CLASS (klass); 1159s # proxy_class->g_signal = org_project_signaling_iface_proxy_g_signal; 1159s # proxy_class->g_properties_changed = org_project_signaling_iface_proxy_g_properties_changed; 1159s # 1159s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1159s # g_type_class_add_private (klass, sizeof (OrgProjectSignalingIfaceProxyPrivate)); 1159s # #endif 1159s # } 1159s # 1159s # static void 1159s # org_project_signaling_iface_proxy_iface_init (OrgProjectSignalingIfaceIface *iface G_GNUC_UNUSED) 1159s # { 1159s # } 1159s # 1159s # /** 1159s # * org_project_signaling_iface_proxy_new: 1159s # * @connection: A #GDBusConnection. 1159s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1159s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1159s # * @object_path: An object path. 1159s # * @cancellable: (nullable): A #GCancellable or %NULL. 1159s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1159s # * @user_data: User data to pass to @callback. 1159s # * 1159s # * Asynchronously creates a proxy for the D-Bus interface org.project.SignalingIface. See g_dbus_proxy_new() for more details. 1159s # * 1159s # * 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()). 1159s # * You can then call org_project_signaling_iface_proxy_new_finish() to get the result of the operation. 1159s # * 1159s # * See org_project_signaling_iface_proxy_new_sync() for the synchronous, blocking version of this constructor. 1159s # */ 1159s # void 1159s # org_project_signaling_iface_proxy_new ( 1159s # GDBusConnection *connection, 1159s # GDBusProxyFlags flags, 1159s # const gchar *name, 1159s # const gchar *object_path, 1159s # GCancellable *cancellable, 1159s # GAsyncReadyCallback callback, 1159s # gpointer user_data) 1159s # { 1159s # 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); 1159s # } 1159s # 1159s # /** 1159s # * org_project_signaling_iface_proxy_new_finish: 1159s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_signaling_iface_proxy_new(). 1159s # * @error: Return location for error or %NULL 1159s # * 1159s # * Finishes an operation started with org_project_signaling_iface_proxy_new(). 1159s # * 1159s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 1159s # */ 1159s # OrgProjectSignalingIface * 1159s # org_project_signaling_iface_proxy_new_finish ( 1159s # GAsyncResult *res, 1159s # GError **error) 1159s # { 1159s # GObject *ret; 1159s # GObject *source_object; 1159s # source_object = g_async_result_get_source_object (res); 1159s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1159s # g_object_unref (source_object); 1159s # if (ret != NULL) 1159s # return ORG_PROJECT_SIGNALING_IFACE (ret); 1159s # else 1159s # return NULL; 1159s # } 1159s # 1159s # /** 1159s # * org_project_signaling_iface_proxy_new_sync: 1159s # * @connection: A #GDBusConnection. 1159s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1159s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1159s # * @object_path: An object path. 1159s # * @cancellable: (nullable): A #GCancellable or %NULL. 1159s # * @error: Return location for error or %NULL 1159s # * 1159s # * Synchronously creates a proxy for the D-Bus interface org.project.SignalingIface. See g_dbus_proxy_new_sync() for more details. 1159s # * 1159s # * The calling thread is blocked until a reply is received. 1159s # * 1159s # * See org_project_signaling_iface_proxy_new() for the asynchronous version of this constructor. 1159s # * 1159s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 1159s # */ 1159s # OrgProjectSignalingIface * 1159s # org_project_signaling_iface_proxy_new_sync ( 1159s # GDBusConnection *connection, 1159s # GDBusProxyFlags flags, 1159s # const gchar *name, 1159s # const gchar *object_path, 1159s # GCancellable *cancellable, 1159s # GError **error) 1159s # { 1159s # GInitable *ret; 1159s # 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); 1159s # if (ret != NULL) 1159s # return ORG_PROJECT_SIGNALING_IFACE (ret); 1159s # else 1159s # return NULL; 1159s # } 1159s # 1159s # 1159s # /** 1159s # * org_project_signaling_iface_proxy_new_for_bus: 1159s # * @bus_type: A #GBusType. 1159s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1159s # * @name: A bus name (well-known or unique). 1159s # * @object_path: An object path. 1159s # * @cancellable: (nullable): A #GCancellable or %NULL. 1159s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1159s # * @user_data: User data to pass to @callback. 1159s # * 1159s # * Like org_project_signaling_iface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 1159s # * 1159s # * 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()). 1159s # * You can then call org_project_signaling_iface_proxy_new_for_bus_finish() to get the result of the operation. 1159s # * 1159s # * See org_project_signaling_iface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 1159s # */ 1159s # void 1159s # org_project_signaling_iface_proxy_new_for_bus ( 1159s # GBusType bus_type, 1159s # GDBusProxyFlags flags, 1159s # const gchar *name, 1159s # const gchar *object_path, 1159s # GCancellable *cancellable, 1159s # GAsyncReadyCallback callback, 1159s # gpointer user_data) 1159s # { 1159s # 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); 1159s # } 1159s # 1159s # /** 1159s # * org_project_signaling_iface_proxy_new_for_bus_finish: 1159s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_signaling_iface_proxy_new_for_bus(). 1159s # * @error: Return location for error or %NULL 1159s # * 1159s # * Finishes an operation started with org_project_signaling_iface_proxy_new_for_bus(). 1159s # * 1159s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 1159s # */ 1159s # OrgProjectSignalingIface * 1159s # org_project_signaling_iface_proxy_new_for_bus_finish ( 1159s # GAsyncResult *res, 1159s # GError **error) 1159s # { 1159s # GObject *ret; 1159s # GObject *source_object; 1159s # source_object = g_async_result_get_source_object (res); 1159s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1159s # g_object_unref (source_object); 1159s # if (ret != NULL) 1159s # return ORG_PROJECT_SIGNALING_IFACE (ret); 1159s # else 1159s # return NULL; 1159s # } 1159s # 1159s # /** 1159s # * org_project_signaling_iface_proxy_new_for_bus_sync: 1159s # * @bus_type: A #GBusType. 1159s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1159s # * @name: A bus name (well-known or unique). 1159s # * @object_path: An object path. 1159s # * @cancellable: (nullable): A #GCancellable or %NULL. 1159s # * @error: Return location for error or %NULL 1159s # * 1159s # * Like org_project_signaling_iface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 1159s # * 1159s # * The calling thread is blocked until a reply is received. 1159s # * 1159s # * See org_project_signaling_iface_proxy_new_for_bus() for the asynchronous version of this constructor. 1159s # * 1159s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 1159s # */ 1159s # OrgProjectSignalingIface * 1159s # org_project_signaling_iface_proxy_new_for_bus_sync ( 1159s # GBusType bus_type, 1159s # GDBusProxyFlags flags, 1159s # const gchar *name, 1159s # const gchar *object_path, 1159s # GCancellable *cancellable, 1159s # GError **error) 1159s # { 1159s # GInitable *ret; 1159s # 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); 1159s # if (ret != NULL) 1159s # return ORG_PROJECT_SIGNALING_IFACE (ret); 1159s # else 1159s # return NULL; 1159s # } 1159s # 1159s # 1159s # /* ------------------------------------------------------------------------ */ 1159s # 1159s # /** 1159s # * OrgProjectSignalingIfaceSkeleton: 1159s # * 1159s # * The #OrgProjectSignalingIfaceSkeleton structure contains only private data and should only be accessed using the provided API. 1159s # */ 1159s # 1159s # /** 1159s # * OrgProjectSignalingIfaceSkeletonClass: 1159s # * @parent_class: The parent class. 1159s # * 1159s # * Class structure for #OrgProjectSignalingIfaceSkeleton. 1159s # */ 1159s # 1159s # struct _OrgProjectSignalingIfaceSkeletonPrivate 1159s # { 1159s # GValue *properties; 1159s # GList *changed_properties; 1159s # GSource *changed_properties_idle_source; 1159s # GMainContext *context; 1159s # GMutex lock; 1159s # }; 1159s # 1159s # static void 1159s # _org_project_signaling_iface_skeleton_handle_method_call ( 1159s # GDBusConnection *connection G_GNUC_UNUSED, 1159s # const gchar *sender G_GNUC_UNUSED, 1159s # const gchar *object_path G_GNUC_UNUSED, 1159s # const gchar *interface_name, 1159s # const gchar *method_name, 1159s # GVariant *parameters, 1159s # GDBusMethodInvocation *invocation, 1159s # gpointer user_data) 1159s # { 1159s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 1159s # _ExtendedGDBusMethodInfo *info; 1159s # GVariantIter iter; 1159s # GVariant *child; 1159s # GValue *paramv; 1159s # gsize num_params; 1159s # guint num_extra; 1159s # gsize n; 1159s # guint signal_id; 1159s # GValue return_value = G_VALUE_INIT; 1159s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 1159s # g_assert (info != NULL); 1159s # num_params = g_variant_n_children (parameters); 1159s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 1159s # n = 0; 1159s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_SIGNALING_IFACE); 1159s # g_value_set_object (¶mv[n++], skeleton); 1159s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 1159s # g_value_set_object (¶mv[n++], invocation); 1159s # if (info->pass_fdlist) 1159s # { 1159s # #ifdef G_OS_UNIX 1159s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 1159s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 1159s # #else 1159s # g_assert_not_reached (); 1159s # #endif 1159s # } 1159s # g_variant_iter_init (&iter, parameters); 1159s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1159s # { 1159s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 1159s # if (arg_info->use_gvariant) 1159s # { 1159s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1159s # g_value_set_variant (¶mv[n], child); 1159s # n++; 1159s # } 1159s # else 1159s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1159s # g_variant_unref (child); 1159s # } 1159s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_SIGNALING_IFACE); 1159s # g_value_init (&return_value, G_TYPE_BOOLEAN); 1159s # g_signal_emitv (paramv, signal_id, 0, &return_value); 1159s # if (!g_value_get_boolean (&return_value)) 1159s # 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); 1159s # g_value_unset (&return_value); 1159s # for (n = 0; n < num_params + num_extra; n++) 1159s # g_value_unset (¶mv[n]); 1159s # g_free (paramv); 1159s # } 1159s # 1159s # static GVariant * 1159s # _org_project_signaling_iface_skeleton_handle_get_property ( 1159s # GDBusConnection *connection G_GNUC_UNUSED, 1159s # const gchar *sender G_GNUC_UNUSED, 1159s # const gchar *object_path G_GNUC_UNUSED, 1159s # const gchar *interface_name G_GNUC_UNUSED, 1159s # const gchar *property_name, 1159s # GError **error, 1159s # gpointer user_data) 1159s # { 1159s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 1159s # GValue value = G_VALUE_INIT; 1159s # GParamSpec *pspec; 1159s # _ExtendedGDBusPropertyInfo *info; 1159s # GVariant *ret; 1159s # ret = NULL; 1159s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, property_name); 1159s # g_assert (info != NULL); 1159s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1159s # if (pspec == NULL) 1159s # { 1159s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1159s # } 1159s # else 1159s # { 1159s # g_value_init (&value, pspec->value_type); 1159s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1159s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 1159s # g_value_unset (&value); 1159s # } 1159s # return ret; 1159s # } 1159s # 1159s # static gboolean 1159s # _org_project_signaling_iface_skeleton_handle_set_property ( 1159s # GDBusConnection *connection G_GNUC_UNUSED, 1159s # const gchar *sender G_GNUC_UNUSED, 1159s # const gchar *object_path G_GNUC_UNUSED, 1159s # const gchar *interface_name G_GNUC_UNUSED, 1159s # const gchar *property_name, 1159s # GVariant *variant, 1159s # GError **error, 1159s # gpointer user_data) 1159s # { 1159s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 1159s # GValue value = G_VALUE_INIT; 1159s # GParamSpec *pspec; 1159s # _ExtendedGDBusPropertyInfo *info; 1159s # gboolean ret; 1159s # ret = FALSE; 1159s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, property_name); 1159s # g_assert (info != NULL); 1159s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1159s # if (pspec == NULL) 1159s # { 1159s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1159s # } 1159s # else 1159s # { 1159s # if (info->use_gvariant) 1159s # g_value_set_variant (&value, variant); 1159s # else 1159s # g_dbus_gvariant_to_gvalue (variant, &value); 1159s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1159s # g_value_unset (&value); 1159s # ret = TRUE; 1159s # } 1159s # return ret; 1159s # } 1159s # 1159s # static const GDBusInterfaceVTable _org_project_signaling_iface_skeleton_vtable = 1159s # { 1159s # _org_project_signaling_iface_skeleton_handle_method_call, 1159s # _org_project_signaling_iface_skeleton_handle_get_property, 1159s # _org_project_signaling_iface_skeleton_handle_set_property, 1159s # {NULL} 1159s # }; 1159s # 1159s # static GDBusInterfaceInfo * 1159s # org_project_signaling_iface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1159s # { 1159s # return org_project_signaling_iface_interface_info (); 1159s # } 1159s # 1159s # static GDBusInterfaceVTable * 1159s # org_project_signaling_iface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1159s # { 1159s # return (GDBusInterfaceVTable *) &_org_project_signaling_iface_skeleton_vtable; 1159s # } 1159s # 1159s # static GVariant * 1159s # org_project_signaling_iface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 1159s # { 1159s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (_skeleton); 1159s # 1159s # GVariantBuilder builder; 1159s # guint n; 1159s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 1159s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 1159s # #else 1159s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 1159s # #endif 1159s # if (_org_project_signaling_iface_interface_info.parent_struct.properties == NULL) 1159s # goto out; 1159s # for (n = 0; _org_project_signaling_iface_interface_info.parent_struct.properties[n] != NULL; n++) 1159s # { 1159s # GDBusPropertyInfo *info = _org_project_signaling_iface_interface_info.parent_struct.properties[n]; 1159s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 1159s # { 1159s # GVariant *value; 1159s # 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); 1159s # if (value != NULL) 1159s # { 1159s # g_variant_take_ref (value); 1159s # g_variant_builder_add (&builder, "{sv}", info->name, value); 1159s # g_variant_unref (value); 1159s # } 1159s # } 1159s # } 1159s # out: 1159s # return g_variant_builder_end (&builder); 1159s # } 1159s # 1159s # static void 1159s # org_project_signaling_iface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 1159s # { 1159s # } 1159s # 1159s # static void 1159s # _org_project_signaling_iface_on_signal_signal_with_many_args ( 1159s # OrgProjectSignalingIface *object, 1159s # gboolean arg_an_b, 1159s # guchar arg_an_y, 1159s # gint16 arg_an_n, 1159s # guint16 arg_an_q, 1159s # gint arg_an_i, 1159s # guint arg_an_u, 1159s # gint64 arg_an_x, 1159s # guint64 arg_an_t, 1159s # gdouble arg_an_d, 1159s # const gchar *arg_an_s, 1159s # const gchar *arg_an_o, 1159s # const gchar *arg_an_g, 1159s # GVariant *arg_an_h, 1159s # const gchar *arg_an_ay, 1159s # const gchar *const *arg_an_as, 1159s # const gchar *const *arg_an_ao, 1159s # const gchar *const *arg_an_aay, 1159s # GVariant *arg_an_asv) 1159s # { 1159s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 1159s # 1159s # GList *connections, *l; 1159s # GVariant *signal_variant; 1159s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 1159s # 1159s # signal_variant = g_variant_ref_sink (g_variant_new ("(bynqiuxtdsog@h^ay^as^ao^aay@a{sv})", 1159s # arg_an_b, 1159s # arg_an_y, 1159s # arg_an_n, 1159s # arg_an_q, 1159s # arg_an_i, 1159s # arg_an_u, 1159s # arg_an_x, 1159s # arg_an_t, 1159s # arg_an_d, 1159s # arg_an_s, 1159s # arg_an_o, 1159s # arg_an_g, 1159s # arg_an_h, 1159s # arg_an_ay, 1159s # arg_an_as, 1159s # arg_an_ao, 1159s # arg_an_aay, 1159s # arg_an_asv)); 1159s # for (l = connections; l != NULL; l = l->next) 1159s # { 1159s # GDBusConnection *connection = l->data; 1159s # g_dbus_connection_emit_signal (connection, 1159s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SignalWithManyArgs", 1159s # signal_variant, NULL); 1159s # } 1159s # g_variant_unref (signal_variant); 1159s # g_list_free_full (connections, g_object_unref); 1159s # } 1159s # 1159s # static void org_project_signaling_iface_skeleton_iface_init (OrgProjectSignalingIfaceIface *iface); 1159s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1159s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceSkeleton, org_project_signaling_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1159s # G_ADD_PRIVATE (OrgProjectSignalingIfaceSkeleton) 1159s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_skeleton_iface_init)) 1159s # 1159s # #else 1159s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceSkeleton, org_project_signaling_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1159s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_skeleton_iface_init)) 1159s # 1159s # #endif 1159s # static void 1159s # org_project_signaling_iface_skeleton_finalize (GObject *object) 1159s # { 1159s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 1159s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 1159s # if (skeleton->priv->changed_properties_idle_source != NULL) 1159s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 1159s # g_main_context_unref (skeleton->priv->context); 1159s # g_mutex_clear (&skeleton->priv->lock); 1159s # G_OBJECT_CLASS (org_project_signaling_iface_skeleton_parent_class)->finalize (object); 1159s # } 1159s # 1159s # static void 1159s # org_project_signaling_iface_skeleton_init (OrgProjectSignalingIfaceSkeleton *skeleton) 1159s # { 1159s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1159s # skeleton->priv = org_project_signaling_iface_skeleton_get_instance_private (skeleton); 1159s # #else 1159s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_SIGNALING_IFACE_SKELETON, OrgProjectSignalingIfaceSkeletonPrivate); 1159s # #endif 1159s # 1159s # g_mutex_init (&skeleton->priv->lock); 1159s # skeleton->priv->context = g_main_context_ref_thread_default (); 1159s # } 1159s # 1159s # static void 1159s # org_project_signaling_iface_skeleton_class_init (OrgProjectSignalingIfaceSkeletonClass *klass) 1159s # { 1159s # GObjectClass *gobject_class; 1159s # GDBusInterfaceSkeletonClass *skeleton_class; 1159s # 1159s # gobject_class = G_OBJECT_CLASS (klass); 1159s # gobject_class->finalize = org_project_signaling_iface_skeleton_finalize; 1159s # 1159s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 1159s # skeleton_class->get_info = org_project_signaling_iface_skeleton_dbus_interface_get_info; 1159s # skeleton_class->get_properties = org_project_signaling_iface_skeleton_dbus_interface_get_properties; 1159s # skeleton_class->flush = org_project_signaling_iface_skeleton_dbus_interface_flush; 1159s # skeleton_class->get_vtable = org_project_signaling_iface_skeleton_dbus_interface_get_vtable; 1159s # 1159s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1159s # g_type_class_add_private (klass, sizeof (OrgProjectSignalingIfaceSkeletonPrivate)); 1159s # #endif 1159s # } 1159s # 1159s # static void 1159s # org_project_signaling_iface_skeleton_iface_init (OrgProjectSignalingIfaceIface *iface) 1159s # { 1159s # iface->signal_with_many_args = _org_project_signaling_iface_on_signal_signal_with_many_args; 1159s # } 1159s # 1159s # /** 1159s # * org_project_signaling_iface_skeleton_new: 1159s # * 1159s # * Creates a skeleton object for the D-Bus interface org.project.SignalingIface. 1159s # * 1159s # * Returns: (transfer full) (type OrgProjectSignalingIfaceSkeleton): The skeleton object. 1159s # */ 1159s # OrgProjectSignalingIface * 1159s # org_project_signaling_iface_skeleton_new (void) 1159s # { 1159s # return ORG_PROJECT_SIGNALING_IFACE (g_object_new (TYPE_ORG_PROJECT_SIGNALING_IFACE_SKELETON, NULL)); 1159s # } 1159s # Error: 1159s ok 20 __main__.TestCodegen.test_generate_signal_id_multiple_signals_types 1159s # gdbus-codegen: /usr/bin/gdbus-codegen 1159s # tmpdir: /tmp/tmp8kcjhg9w 1159s # /tmp/tmp8kcjhg9w/tmpnuhy_gvy.xml: 1159s # 1159s # 1159s # 1159s # 1159s # 1159s # 1159s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmp8kcjhg9w/tmpnuhy_gvy.xml', '--output', '-', '--body'] 1159s # Return code: 0 1159s # Output: 1159s # /* 1159s # * This file is generated by gdbus-codegen, do not modify it. 1159s # * 1159s # * The license of this code is the same as for the D-Bus interface description 1159s # * it was derived from. Note that it links to GLib, so must comply with the 1159s # * LGPL linking clauses. 1159s # */ 1159s # 1159s # #ifdef HAVE_CONFIG_H 1159s # # include "config.h" 1159s # #endif 1159s # 1159s # #include 1159s # #ifdef G_OS_UNIX 1159s # # include 1159s # #endif 1159s # 1159s # #ifdef G_ENABLE_DEBUG 1159s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 1159s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 1159s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 1159s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 1159s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 1159s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 1159s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 1159s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 1159s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 1159s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 1159s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 1159s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 1159s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 1159s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 1159s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 1159s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 1159s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 1159s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 1159s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 1159s # #else /* !G_ENABLE_DEBUG */ 1159s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 1159s # * Do not access GValues directly in your code. Instead, use the 1159s # * g_value_get_*() functions 1159s # */ 1159s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 1159s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 1159s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 1159s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 1159s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 1159s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 1159s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 1159s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 1159s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 1159s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 1159s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 1159s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 1159s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 1159s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 1159s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 1159s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 1159s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 1159s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 1159s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 1159s # #endif /* !G_ENABLE_DEBUG */ 1159s # 1159s # typedef struct 1159s # { 1159s # GDBusArgInfo parent_struct; 1159s # gboolean use_gvariant; 1159s # } _ExtendedGDBusArgInfo; 1159s # 1159s # typedef struct 1159s # { 1159s # GDBusMethodInfo parent_struct; 1159s # const gchar *signal_name; 1159s # gboolean pass_fdlist; 1159s # } _ExtendedGDBusMethodInfo; 1159s # 1159s # typedef struct 1159s # { 1159s # GDBusSignalInfo parent_struct; 1159s # const gchar *signal_name; 1159s # } _ExtendedGDBusSignalInfo; 1159s # 1159s # typedef struct 1159s # { 1159s # GDBusPropertyInfo parent_struct; 1159s # const gchar *hyphen_name; 1159s # guint use_gvariant : 1; 1159s # guint emits_changed_signal : 1; 1159s # } _ExtendedGDBusPropertyInfo; 1159s # 1159s # typedef struct 1159s # { 1159s # GDBusInterfaceInfo parent_struct; 1159s # const gchar *hyphen_name; 1159s # } _ExtendedGDBusInterfaceInfo; 1159s # 1159s # typedef struct 1159s # { 1159s # const _ExtendedGDBusPropertyInfo *info; 1159s # guint prop_id; 1159s # GValue orig_value; /* the value before the change */ 1159s # } ChangedProperty; 1159s # 1159s # static void 1159s # _changed_property_free (ChangedProperty *data) 1159s # { 1159s # g_value_unset (&data->orig_value); 1159s # g_free (data); 1159s # } 1159s # 1159s # static gboolean 1159s # _g_strv_equal0 (gchar **a, gchar **b) 1159s # { 1159s # gboolean ret = FALSE; 1159s # guint n; 1159s # if (a == NULL && b == NULL) 1159s # { 1159s # ret = TRUE; 1159s # goto out; 1159s # } 1159s # if (a == NULL || b == NULL) 1159s # goto out; 1159s # if (g_strv_length (a) != g_strv_length (b)) 1159s # goto out; 1159s # for (n = 0; a[n] != NULL; n++) 1159s # if (g_strcmp0 (a[n], b[n]) != 0) 1159s # goto out; 1159s # ret = TRUE; 1159s # out: 1159s # return ret; 1159s # } 1159s # 1159s # static gboolean 1159s # _g_variant_equal0 (GVariant *a, GVariant *b) 1159s # { 1159s # gboolean ret = FALSE; 1159s # if (a == NULL && b == NULL) 1159s # { 1159s # ret = TRUE; 1159s # goto out; 1159s # } 1159s # if (a == NULL || b == NULL) 1159s # goto out; 1159s # ret = g_variant_equal (a, b); 1159s # out: 1159s # return ret; 1159s # } 1159s # 1159s # G_GNUC_UNUSED static gboolean 1159s # _g_value_equal (const GValue *a, const GValue *b) 1159s # { 1159s # gboolean ret = FALSE; 1159s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 1159s # switch (G_VALUE_TYPE (a)) 1159s # { 1159s # case G_TYPE_BOOLEAN: 1159s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 1159s # break; 1159s # case G_TYPE_UCHAR: 1159s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 1159s # break; 1159s # case G_TYPE_INT: 1159s # ret = (g_value_get_int (a) == g_value_get_int (b)); 1159s # break; 1159s # case G_TYPE_UINT: 1159s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 1159s # break; 1159s # case G_TYPE_INT64: 1159s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 1159s # break; 1159s # case G_TYPE_UINT64: 1159s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 1159s # break; 1159s # case G_TYPE_DOUBLE: 1159s # { 1159s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 1159s # gdouble da = g_value_get_double (a); 1159s # gdouble db = g_value_get_double (b); 1159s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 1159s # } 1159s # break; 1159s # case G_TYPE_STRING: 1159s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 1159s # break; 1159s # case G_TYPE_VARIANT: 1159s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 1159s # break; 1159s # default: 1159s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 1159s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 1159s # else 1159s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 1159s # break; 1159s # } 1159s # return ret; 1159s # } 1159s # 1159s # static void 1159s # _g_dbus_codegen_marshal_VOID__INT64 ( 1159s # GClosure *closure, 1159s # GValue *return_value G_GNUC_UNUSED, 1159s # unsigned int n_param_values, 1159s # const GValue *param_values, 1159s # void *invocation_hint G_GNUC_UNUSED, 1159s # void *marshal_data) 1159s # { 1159s # typedef void (*_GDbusCodegenMarshalVoid_Int64Func) 1159s # (void *data1, 1159s # gint64 arg_an_x, 1159s # void *data2); 1159s # _GDbusCodegenMarshalVoid_Int64Func callback; 1159s # GCClosure *cc = (GCClosure*) closure; 1159s # void *data1, *data2; 1159s # 1159s # g_return_if_fail (n_param_values == 2); 1159s # 1159s # if (G_CCLOSURE_SWAP_DATA (closure)) 1159s # { 1159s # data1 = closure->data; 1159s # data2 = g_value_peek_pointer (param_values + 0); 1159s # } 1159s # else 1159s # { 1159s # data1 = g_value_peek_pointer (param_values + 0); 1159s # data2 = closure->data; 1159s # } 1159s # 1159s # callback = (_GDbusCodegenMarshalVoid_Int64Func) 1159s # (marshal_data ? marshal_data : cc->callback); 1159s # 1159s # callback (data1, 1159s # g_marshal_value_peek_int64 (param_values + 1), 1159s # data2); 1159s # } 1159s # 1159s # static void 1159s # _g_dbus_codegen_marshal_VOID__UINT64 ( 1159s # GClosure *closure, 1159s # GValue *return_value G_GNUC_UNUSED, 1159s # unsigned int n_param_values, 1159s # const GValue *param_values, 1159s # void *invocation_hint G_GNUC_UNUSED, 1159s # void *marshal_data) 1159s # { 1159s # typedef void (*_GDbusCodegenMarshalVoid_Uint64Func) 1159s # (void *data1, 1159s # guint64 arg_an_t, 1159s # void *data2); 1159s # _GDbusCodegenMarshalVoid_Uint64Func callback; 1159s # GCClosure *cc = (GCClosure*) closure; 1159s # void *data1, *data2; 1159s # 1159s # g_return_if_fail (n_param_values == 2); 1159s # 1159s # if (G_CCLOSURE_SWAP_DATA (closure)) 1159s # { 1159s # data1 = closure->data; 1159s # data2 = g_value_peek_pointer (param_values + 0); 1159s # } 1159s # else 1159s # { 1159s # data1 = g_value_peek_pointer (param_values + 0); 1159s # data2 = closure->data; 1159s # } 1159s # 1159s # callback = (_GDbusCodegenMarshalVoid_Uint64Func) 1159s # (marshal_data ? marshal_data : cc->callback); 1159s # 1159s # callback (data1, 1159s # g_marshal_value_peek_uint64 (param_values + 1), 1159s # data2); 1159s # } 1159s # 1159s # /* ------------------------------------------------------------------------ 1159s # * Code for interface org.project.SignalingIface 1159s # * ------------------------------------------------------------------------ 1159s # */ 1159s # 1159s # /** 1159s # * SECTION:OrgProjectSignalingIface 1159s # * @title: OrgProjectSignalingIface 1159s # * @short_description: Generated C code for the org.project.SignalingIface D-Bus interface 1159s # * 1159s # * This section contains code for working with the org.project.SignalingIface D-Bus interface in C. 1159s # */ 1159s # 1159s # enum 1159s # { 1159s # _ORG_PROJECT_SIGNALING_IFACE_NO_ARG_SIGNAL, 1159s # _ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_B, 1159s # _ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_Y, 1159s # _ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_N, 1159s # _ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_Q, 1159s # _ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_I, 1159s # _ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_U, 1159s # _ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_X, 1159s # _ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_T, 1159s # _ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_D, 1159s # _ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_S, 1159s # _ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_O, 1159s # _ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_G, 1159s # _ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_H, 1159s # _ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_AY, 1159s # _ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_AS, 1159s # _ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_AO, 1159s # _ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_AAY, 1159s # _ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_ASV, 1159s # }; 1159s # 1159s # static unsigned _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[19] = { 0 }; 1159s # 1159s # /* ---- Introspection data for org.project.SignalingIface ---- */ 1159s # 1159s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_no_arg_signal = 1159s # { 1159s # { 1159s # -1, 1159s # (gchar *) "NoArgSignal", 1159s # NULL, 1159s # NULL 1159s # }, 1159s # "no-arg-signal" 1159s # }; 1159s # 1159s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_single_arg_signal_b_ARG_an_b = 1159s # { 1159s # { 1159s # -1, 1159s # (gchar *) "an_b", 1159s # (gchar *) "b", 1159s # NULL 1159s # }, 1159s # FALSE 1159s # }; 1159s # 1159s # static const GDBusArgInfo * const _org_project_signaling_iface_signal_info_single_arg_signal_b_ARG_pointers[] = 1159s # { 1159s # &_org_project_signaling_iface_signal_info_single_arg_signal_b_ARG_an_b.parent_struct, 1159s # NULL 1159s # }; 1159s # 1159s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_single_arg_signal_b = 1159s # { 1159s # { 1159s # -1, 1159s # (gchar *) "SingleArgSignalB", 1159s # (GDBusArgInfo **) &_org_project_signaling_iface_signal_info_single_arg_signal_b_ARG_pointers, 1159s # NULL 1159s # }, 1159s # "single-arg-signal-b" 1159s # }; 1159s # 1159s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_single_arg_signal_y_ARG_an_y = 1159s # { 1159s # { 1159s # -1, 1159s # (gchar *) "an_y", 1159s # (gchar *) "y", 1159s # NULL 1159s # }, 1159s # FALSE 1159s # }; 1159s # 1159s # static const GDBusArgInfo * const _org_project_signaling_iface_signal_info_single_arg_signal_y_ARG_pointers[] = 1159s # { 1159s # &_org_project_signaling_iface_signal_info_single_arg_signal_y_ARG_an_y.parent_struct, 1159s # NULL 1159s # }; 1159s # 1159s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_single_arg_signal_y = 1159s # { 1159s # { 1159s # -1, 1159s # (gchar *) "SingleArgSignalY", 1159s # (GDBusArgInfo **) &_org_project_signaling_iface_signal_info_single_arg_signal_y_ARG_pointers, 1159s # NULL 1159s # }, 1159s # "single-arg-signal-y" 1159s # }; 1159s # 1159s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_single_arg_signal_n_ARG_an_n = 1159s # { 1159s # { 1159s # -1, 1159s # (gchar *) "an_n", 1159s # (gchar *) "n", 1159s # NULL 1159s # }, 1159s # FALSE 1159s # }; 1159s # 1159s # static const GDBusArgInfo * const _org_project_signaling_iface_signal_info_single_arg_signal_n_ARG_pointers[] = 1159s # { 1159s # &_org_project_signaling_iface_signal_info_single_arg_signal_n_ARG_an_n.parent_struct, 1159s # NULL 1159s # }; 1159s # 1159s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_single_arg_signal_n = 1159s # { 1159s # { 1159s # -1, 1159s # (gchar *) "SingleArgSignalN", 1159s # (GDBusArgInfo **) &_org_project_signaling_iface_signal_info_single_arg_signal_n_ARG_pointers, 1159s # NULL 1159s # }, 1159s # "single-arg-signal-n" 1159s # }; 1159s # 1159s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_single_arg_signal_q_ARG_an_q = 1159s # { 1159s # { 1159s # -1, 1159s # (gchar *) "an_q", 1159s # (gchar *) "q", 1159s # NULL 1159s # }, 1159s # FALSE 1159s # }; 1159s # 1159s # static const GDBusArgInfo * const _org_project_signaling_iface_signal_info_single_arg_signal_q_ARG_pointers[] = 1159s # { 1159s # &_org_project_signaling_iface_signal_info_single_arg_signal_q_ARG_an_q.parent_struct, 1159s # NULL 1159s # }; 1159s # 1159s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_single_arg_signal_q = 1159s # { 1159s # { 1159s # -1, 1159s # (gchar *) "SingleArgSignalQ", 1159s # (GDBusArgInfo **) &_org_project_signaling_iface_signal_info_single_arg_signal_q_ARG_pointers, 1159s # NULL 1159s # }, 1159s # "single-arg-signal-q" 1159s # }; 1159s # 1159s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_single_arg_signal_i_ARG_an_i = 1159s # { 1159s # { 1159s # -1, 1159s # (gchar *) "an_i", 1159s # (gchar *) "i", 1159s # NULL 1159s # }, 1159s # FALSE 1159s # }; 1159s # 1159s # static const GDBusArgInfo * const _org_project_signaling_iface_signal_info_single_arg_signal_i_ARG_pointers[] = 1159s # { 1159s # &_org_project_signaling_iface_signal_info_single_arg_signal_i_ARG_an_i.parent_struct, 1159s # NULL 1159s # }; 1159s # 1159s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_single_arg_signal_i = 1159s # { 1159s # { 1159s # -1, 1159s # (gchar *) "SingleArgSignalI", 1159s # (GDBusArgInfo **) &_org_project_signaling_iface_signal_info_single_arg_signal_i_ARG_pointers, 1159s # NULL 1159s # }, 1159s # "single-arg-signal-i" 1159s # }; 1159s # 1159s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_single_arg_signal_u_ARG_an_u = 1159s # { 1159s # { 1159s # -1, 1159s # (gchar *) "an_u", 1159s # (gchar *) "u", 1159s # NULL 1159s # }, 1159s # FALSE 1159s # }; 1159s # 1159s # static const GDBusArgInfo * const _org_project_signaling_iface_signal_info_single_arg_signal_u_ARG_pointers[] = 1159s # { 1159s # &_org_project_signaling_iface_signal_info_single_arg_signal_u_ARG_an_u.parent_struct, 1159s # NULL 1159s # }; 1159s # 1159s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_single_arg_signal_u = 1159s # { 1159s # { 1159s # -1, 1159s # (gchar *) "SingleArgSignalU", 1159s # (GDBusArgInfo **) &_org_project_signaling_iface_signal_info_single_arg_signal_u_ARG_pointers, 1159s # NULL 1159s # }, 1159s # "single-arg-signal-u" 1159s # }; 1159s # 1159s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_single_arg_signal_x_ARG_an_x = 1159s # { 1159s # { 1159s # -1, 1159s # (gchar *) "an_x", 1159s # (gchar *) "x", 1159s # NULL 1159s # }, 1159s # FALSE 1159s # }; 1159s # 1159s # static const GDBusArgInfo * const _org_project_signaling_iface_signal_info_single_arg_signal_x_ARG_pointers[] = 1159s # { 1159s # &_org_project_signaling_iface_signal_info_single_arg_signal_x_ARG_an_x.parent_struct, 1159s # NULL 1159s # }; 1159s # 1159s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_single_arg_signal_x = 1159s # { 1159s # { 1159s # -1, 1159s # (gchar *) "SingleArgSignalX", 1159s # (GDBusArgInfo **) &_org_project_signaling_iface_signal_info_single_arg_signal_x_ARG_pointers, 1159s # NULL 1159s # }, 1159s # "single-arg-signal-x" 1159s # }; 1159s # 1159s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_single_arg_signal_t_ARG_an_t = 1159s # { 1159s # { 1159s # -1, 1159s # (gchar *) "an_t", 1159s # (gchar *) "t", 1159s # NULL 1159s # }, 1159s # FALSE 1159s # }; 1159s # 1159s # static const GDBusArgInfo * const _org_project_signaling_iface_signal_info_single_arg_signal_t_ARG_pointers[] = 1159s # { 1159s # &_org_project_signaling_iface_signal_info_single_arg_signal_t_ARG_an_t.parent_struct, 1159s # NULL 1159s # }; 1159s # 1159s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_single_arg_signal_t = 1159s # { 1159s # { 1159s # -1, 1159s # (gchar *) "SingleArgSignalT", 1159s # (GDBusArgInfo **) &_org_project_signaling_iface_signal_info_single_arg_signal_t_ARG_pointers, 1159s # NULL 1159s # }, 1159s # "single-arg-signal-t" 1159s # }; 1159s # 1159s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_single_arg_signal_d_ARG_an_d = 1159s # { 1159s # { 1159s # -1, 1159s # (gchar *) "an_d", 1159s # (gchar *) "d", 1159s # NULL 1159s # }, 1159s # FALSE 1159s # }; 1159s # 1159s # static const GDBusArgInfo * const _org_project_signaling_iface_signal_info_single_arg_signal_d_ARG_pointers[] = 1159s # { 1159s # &_org_project_signaling_iface_signal_info_single_arg_signal_d_ARG_an_d.parent_struct, 1159s # NULL 1159s # }; 1159s # 1159s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_single_arg_signal_d = 1159s # { 1159s # { 1159s # -1, 1159s # (gchar *) "SingleArgSignalD", 1159s # (GDBusArgInfo **) &_org_project_signaling_iface_signal_info_single_arg_signal_d_ARG_pointers, 1159s # NULL 1159s # }, 1159s # "single-arg-signal-d" 1159s # }; 1159s # 1159s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_single_arg_signal_s_ARG_an_s = 1159s # { 1159s # { 1159s # -1, 1159s # (gchar *) "an_s", 1159s # (gchar *) "s", 1159s # NULL 1159s # }, 1159s # FALSE 1159s # }; 1159s # 1159s # static const GDBusArgInfo * const _org_project_signaling_iface_signal_info_single_arg_signal_s_ARG_pointers[] = 1159s # { 1159s # &_org_project_signaling_iface_signal_info_single_arg_signal_s_ARG_an_s.parent_struct, 1159s # NULL 1159s # }; 1159s # 1159s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_single_arg_signal_s = 1159s # { 1159s # { 1159s # -1, 1159s # (gchar *) "SingleArgSignalS", 1159s # (GDBusArgInfo **) &_org_project_signaling_iface_signal_info_single_arg_signal_s_ARG_pointers, 1159s # NULL 1159s # }, 1159s # "single-arg-signal-s" 1159s # }; 1159s # 1159s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_single_arg_signal_o_ARG_an_o = 1159s # { 1159s # { 1159s # -1, 1159s # (gchar *) "an_o", 1159s # (gchar *) "o", 1159s # NULL 1159s # }, 1159s # FALSE 1159s # }; 1159s # 1159s # static const GDBusArgInfo * const _org_project_signaling_iface_signal_info_single_arg_signal_o_ARG_pointers[] = 1159s # { 1159s # &_org_project_signaling_iface_signal_info_single_arg_signal_o_ARG_an_o.parent_struct, 1159s # NULL 1159s # }; 1159s # 1159s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_single_arg_signal_o = 1159s # { 1159s # { 1159s # -1, 1159s # (gchar *) "SingleArgSignalO", 1159s # (GDBusArgInfo **) &_org_project_signaling_iface_signal_info_single_arg_signal_o_ARG_pointers, 1159s # NULL 1159s # }, 1159s # "single-arg-signal-o" 1159s # }; 1159s # 1159s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_single_arg_signal_g_ARG_an_g = 1159s # { 1159s # { 1159s # -1, 1159s # (gchar *) "an_g", 1159s # (gchar *) "g", 1159s # NULL 1159s # }, 1159s # FALSE 1159s # }; 1159s # 1159s # static const GDBusArgInfo * const _org_project_signaling_iface_signal_info_single_arg_signal_g_ARG_pointers[] = 1159s # { 1159s # &_org_project_signaling_iface_signal_info_single_arg_signal_g_ARG_an_g.parent_struct, 1159s # NULL 1159s # }; 1159s # 1159s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_single_arg_signal_g = 1159s # { 1159s # { 1159s # -1, 1159s # (gchar *) "SingleArgSignalG", 1159s # (GDBusArgInfo **) &_org_project_signaling_iface_signal_info_single_arg_signal_g_ARG_pointers, 1159s # NULL 1159s # }, 1159s # "single-arg-signal-g" 1159s # }; 1159s # 1159s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_single_arg_signal_h_ARG_an_h = 1159s # { 1159s # { 1159s # -1, 1159s # (gchar *) "an_h", 1159s # (gchar *) "h", 1159s # NULL 1159s # }, 1159s # FALSE 1159s # }; 1159s # 1159s # static const GDBusArgInfo * const _org_project_signaling_iface_signal_info_single_arg_signal_h_ARG_pointers[] = 1159s # { 1159s # &_org_project_signaling_iface_signal_info_single_arg_signal_h_ARG_an_h.parent_struct, 1159s # NULL 1159s # }; 1159s # 1159s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_single_arg_signal_h = 1159s # { 1159s # { 1159s # -1, 1159s # (gchar *) "SingleArgSignalH", 1159s # (GDBusArgInfo **) &_org_project_signaling_iface_signal_info_single_arg_signal_h_ARG_pointers, 1159s # NULL 1159s # }, 1159s # "single-arg-signal-h" 1159s # }; 1159s # 1159s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_single_arg_signal_ay_ARG_an_ay = 1159s # { 1159s # { 1159s # -1, 1159s # (gchar *) "an_ay", 1159s # (gchar *) "ay", 1159s # NULL 1159s # }, 1159s # FALSE 1159s # }; 1159s # 1159s # static const GDBusArgInfo * const _org_project_signaling_iface_signal_info_single_arg_signal_ay_ARG_pointers[] = 1159s # { 1159s # &_org_project_signaling_iface_signal_info_single_arg_signal_ay_ARG_an_ay.parent_struct, 1159s # NULL 1159s # }; 1159s # 1159s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_single_arg_signal_ay = 1159s # { 1159s # { 1159s # -1, 1159s # (gchar *) "SingleArgSignalAY", 1159s # (GDBusArgInfo **) &_org_project_signaling_iface_signal_info_single_arg_signal_ay_ARG_pointers, 1159s # NULL 1159s # }, 1159s # "single-arg-signal-ay" 1159s # }; 1159s # 1159s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_single_arg_signal_as_ARG_an_as = 1159s # { 1159s # { 1159s # -1, 1159s # (gchar *) "an_as", 1159s # (gchar *) "as", 1159s # NULL 1159s # }, 1159s # FALSE 1159s # }; 1159s # 1159s # static const GDBusArgInfo * const _org_project_signaling_iface_signal_info_single_arg_signal_as_ARG_pointers[] = 1159s # { 1159s # &_org_project_signaling_iface_signal_info_single_arg_signal_as_ARG_an_as.parent_struct, 1159s # NULL 1159s # }; 1159s # 1159s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_single_arg_signal_as = 1159s # { 1159s # { 1159s # -1, 1159s # (gchar *) "SingleArgSignalAS", 1159s # (GDBusArgInfo **) &_org_project_signaling_iface_signal_info_single_arg_signal_as_ARG_pointers, 1159s # NULL 1159s # }, 1159s # "single-arg-signal-as" 1159s # }; 1159s # 1159s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_single_arg_signal_ao_ARG_an_ao = 1159s # { 1159s # { 1159s # -1, 1159s # (gchar *) "an_ao", 1159s # (gchar *) "ao", 1159s # NULL 1159s # }, 1159s # FALSE 1159s # }; 1159s # 1159s # static const GDBusArgInfo * const _org_project_signaling_iface_signal_info_single_arg_signal_ao_ARG_pointers[] = 1159s # { 1159s # &_org_project_signaling_iface_signal_info_single_arg_signal_ao_ARG_an_ao.parent_struct, 1159s # NULL 1159s # }; 1159s # 1159s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_single_arg_signal_ao = 1159s # { 1159s # { 1159s # -1, 1159s # (gchar *) "SingleArgSignalAO", 1159s # (GDBusArgInfo **) &_org_project_signaling_iface_signal_info_single_arg_signal_ao_ARG_pointers, 1159s # NULL 1159s # }, 1159s # "single-arg-signal-ao" 1159s # }; 1159s # 1159s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_single_arg_signal_aay_ARG_an_aay = 1159s # { 1159s # { 1159s # -1, 1159s # (gchar *) "an_aay", 1159s # (gchar *) "aay", 1159s # NULL 1159s # }, 1159s # FALSE 1159s # }; 1159s # 1159s # static const GDBusArgInfo * const _org_project_signaling_iface_signal_info_single_arg_signal_aay_ARG_pointers[] = 1159s # { 1159s # &_org_project_signaling_iface_signal_info_single_arg_signal_aay_ARG_an_aay.parent_struct, 1159s # NULL 1159s # }; 1159s # 1159s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_single_arg_signal_aay = 1159s # { 1159s # { 1159s # -1, 1159s # (gchar *) "SingleArgSignalAAY", 1159s # (GDBusArgInfo **) &_org_project_signaling_iface_signal_info_single_arg_signal_aay_ARG_pointers, 1159s # NULL 1159s # }, 1159s # "single-arg-signal-aay" 1159s # }; 1159s # 1159s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_single_arg_signal_asv_ARG_an_asv = 1159s # { 1159s # { 1159s # -1, 1159s # (gchar *) "an_asv", 1159s # (gchar *) "a{sv}", 1159s # NULL 1159s # }, 1159s # FALSE 1159s # }; 1159s # 1159s # static const GDBusArgInfo * const _org_project_signaling_iface_signal_info_single_arg_signal_asv_ARG_pointers[] = 1159s # { 1159s # &_org_project_signaling_iface_signal_info_single_arg_signal_asv_ARG_an_asv.parent_struct, 1159s # NULL 1159s # }; 1159s # 1159s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_single_arg_signal_asv = 1159s # { 1159s # { 1159s # -1, 1159s # (gchar *) "SingleArgSignalASV", 1159s # (GDBusArgInfo **) &_org_project_signaling_iface_signal_info_single_arg_signal_asv_ARG_pointers, 1159s # NULL 1159s # }, 1159s # "single-arg-signal-asv" 1159s # }; 1159s # 1159s # static const GDBusSignalInfo * const _org_project_signaling_iface_signal_info_pointers[] = 1159s # { 1159s # &_org_project_signaling_iface_signal_info_no_arg_signal.parent_struct, 1159s # &_org_project_signaling_iface_signal_info_single_arg_signal_b.parent_struct, 1159s # &_org_project_signaling_iface_signal_info_single_arg_signal_y.parent_struct, 1159s # &_org_project_signaling_iface_signal_info_single_arg_signal_n.parent_struct, 1159s # &_org_project_signaling_iface_signal_info_single_arg_signal_q.parent_struct, 1159s # &_org_project_signaling_iface_signal_info_single_arg_signal_i.parent_struct, 1159s # &_org_project_signaling_iface_signal_info_single_arg_signal_u.parent_struct, 1159s # &_org_project_signaling_iface_signal_info_single_arg_signal_x.parent_struct, 1159s # &_org_project_signaling_iface_signal_info_single_arg_signal_t.parent_struct, 1159s # &_org_project_signaling_iface_signal_info_single_arg_signal_d.parent_struct, 1159s # &_org_project_signaling_iface_signal_info_single_arg_signal_s.parent_struct, 1159s # &_org_project_signaling_iface_signal_info_single_arg_signal_o.parent_struct, 1159s # &_org_project_signaling_iface_signal_info_single_arg_signal_g.parent_struct, 1159s # &_org_project_signaling_iface_signal_info_single_arg_signal_h.parent_struct, 1159s # &_org_project_signaling_iface_signal_info_single_arg_signal_ay.parent_struct, 1159s # &_org_project_signaling_iface_signal_info_single_arg_signal_as.parent_struct, 1159s # &_org_project_signaling_iface_signal_info_single_arg_signal_ao.parent_struct, 1159s # &_org_project_signaling_iface_signal_info_single_arg_signal_aay.parent_struct, 1159s # &_org_project_signaling_iface_signal_info_single_arg_signal_asv.parent_struct, 1159s # NULL 1159s # }; 1159s # 1159s # static const _ExtendedGDBusInterfaceInfo _org_project_signaling_iface_interface_info = 1159s # { 1159s # { 1159s # -1, 1159s # (gchar *) "org.project.SignalingIface", 1159s # NULL, 1159s # (GDBusSignalInfo **) &_org_project_signaling_iface_signal_info_pointers, 1159s # NULL, 1159s # NULL 1159s # }, 1159s # "org-project-signaling-iface", 1159s # }; 1159s # 1159s # 1159s # /** 1159s # * org_project_signaling_iface_interface_info: 1159s # * 1159s # * Gets a machine-readable description of the org.project.SignalingIface D-Bus interface. 1159s # * 1159s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 1159s # */ 1159s # GDBusInterfaceInfo * 1159s # org_project_signaling_iface_interface_info (void) 1159s # { 1159s # return (GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct; 1159s # } 1159s # 1159s # /** 1159s # * org_project_signaling_iface_override_properties: 1159s # * @klass: The class structure for a #GObject derived class. 1159s # * @property_id_begin: The property id to assign to the first overridden property. 1159s # * 1159s # * Overrides all #GObject properties in the #OrgProjectSignalingIface interface for a concrete class. 1159s # * The properties are overridden in the order they are defined. 1159s # * 1159s # * Returns: The last property id. 1159s # */ 1159s # guint 1159s # org_project_signaling_iface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 1159s # { 1159s # return property_id_begin - 1; 1159s # } 1159s # 1159s # 1159s # inline static void 1159s # org_project_signaling_iface_signal_marshal_no_arg_signal ( 1159s # GClosure *closure, 1159s # GValue *return_value, 1159s # unsigned int n_param_values, 1159s # const GValue *param_values, 1159s # void *invocation_hint, 1159s # void *marshal_data) 1159s # { 1159s # g_cclosure_marshal_VOID__VOID (closure, 1159s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1159s # } 1159s # 1159s # inline static void 1159s # org_project_signaling_iface_signal_marshal_single_arg_signal_b ( 1159s # GClosure *closure, 1159s # GValue *return_value, 1159s # unsigned int n_param_values, 1159s # const GValue *param_values, 1159s # void *invocation_hint, 1159s # void *marshal_data) 1159s # { 1159s # g_cclosure_marshal_VOID__BOOLEAN (closure, 1159s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1159s # } 1159s # 1159s # inline static void 1159s # org_project_signaling_iface_signal_marshal_single_arg_signal_y ( 1159s # GClosure *closure, 1159s # GValue *return_value, 1159s # unsigned int n_param_values, 1159s # const GValue *param_values, 1159s # void *invocation_hint, 1159s # void *marshal_data) 1159s # { 1159s # g_cclosure_marshal_VOID__UCHAR (closure, 1159s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1159s # } 1159s # 1159s # inline static void 1159s # org_project_signaling_iface_signal_marshal_single_arg_signal_n ( 1159s # GClosure *closure, 1159s # GValue *return_value, 1159s # unsigned int n_param_values, 1159s # const GValue *param_values, 1159s # void *invocation_hint, 1159s # void *marshal_data) 1159s # { 1159s # g_cclosure_marshal_VOID__INT (closure, 1159s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1159s # } 1159s # 1159s # inline static void 1159s # org_project_signaling_iface_signal_marshal_single_arg_signal_q ( 1159s # GClosure *closure, 1159s # GValue *return_value, 1159s # unsigned int n_param_values, 1159s # const GValue *param_values, 1159s # void *invocation_hint, 1159s # void *marshal_data) 1159s # { 1159s # g_cclosure_marshal_VOID__UINT (closure, 1159s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1159s # } 1159s # 1159s # inline static void 1159s # org_project_signaling_iface_signal_marshal_single_arg_signal_i ( 1159s # GClosure *closure, 1159s # GValue *return_value, 1159s # unsigned int n_param_values, 1159s # const GValue *param_values, 1159s # void *invocation_hint, 1159s # void *marshal_data) 1159s # { 1159s # g_cclosure_marshal_VOID__INT (closure, 1159s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1159s # } 1159s # 1159s # inline static void 1159s # org_project_signaling_iface_signal_marshal_single_arg_signal_u ( 1159s # GClosure *closure, 1159s # GValue *return_value, 1159s # unsigned int n_param_values, 1159s # const GValue *param_values, 1159s # void *invocation_hint, 1159s # void *marshal_data) 1159s # { 1159s # g_cclosure_marshal_VOID__UINT (closure, 1159s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1159s # } 1159s # 1159s # inline static void 1159s # org_project_signaling_iface_signal_marshal_single_arg_signal_x ( 1159s # GClosure *closure, 1159s # GValue *return_value, 1159s # unsigned int n_param_values, 1159s # const GValue *param_values, 1159s # void *invocation_hint, 1159s # void *marshal_data) 1159s # { 1159s # _g_dbus_codegen_marshal_VOID__INT64 (closure, 1159s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1159s # } 1159s # 1159s # inline static void 1159s # org_project_signaling_iface_signal_marshal_single_arg_signal_t ( 1159s # GClosure *closure, 1159s # GValue *return_value, 1159s # unsigned int n_param_values, 1159s # const GValue *param_values, 1159s # void *invocation_hint, 1159s # void *marshal_data) 1159s # { 1159s # _g_dbus_codegen_marshal_VOID__UINT64 (closure, 1159s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1159s # } 1159s # 1159s # inline static void 1159s # org_project_signaling_iface_signal_marshal_single_arg_signal_d ( 1159s # GClosure *closure, 1159s # GValue *return_value, 1159s # unsigned int n_param_values, 1159s # const GValue *param_values, 1159s # void *invocation_hint, 1159s # void *marshal_data) 1159s # { 1159s # g_cclosure_marshal_VOID__DOUBLE (closure, 1159s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1159s # } 1159s # 1159s # inline static void 1159s # org_project_signaling_iface_signal_marshal_single_arg_signal_s ( 1159s # GClosure *closure, 1159s # GValue *return_value, 1159s # unsigned int n_param_values, 1159s # const GValue *param_values, 1159s # void *invocation_hint, 1159s # void *marshal_data) 1159s # { 1159s # g_cclosure_marshal_VOID__STRING (closure, 1159s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1159s # } 1159s # 1159s # inline static void 1159s # org_project_signaling_iface_signal_marshal_single_arg_signal_o ( 1159s # GClosure *closure, 1159s # GValue *return_value, 1159s # unsigned int n_param_values, 1159s # const GValue *param_values, 1159s # void *invocation_hint, 1159s # void *marshal_data) 1159s # { 1159s # g_cclosure_marshal_VOID__STRING (closure, 1159s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1159s # } 1159s # 1159s # inline static void 1159s # org_project_signaling_iface_signal_marshal_single_arg_signal_g ( 1159s # GClosure *closure, 1159s # GValue *return_value, 1159s # unsigned int n_param_values, 1159s # const GValue *param_values, 1159s # void *invocation_hint, 1159s # void *marshal_data) 1159s # { 1159s # g_cclosure_marshal_VOID__STRING (closure, 1159s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1159s # } 1159s # 1159s # inline static void 1159s # org_project_signaling_iface_signal_marshal_single_arg_signal_h ( 1159s # GClosure *closure, 1159s # GValue *return_value, 1159s # unsigned int n_param_values, 1159s # const GValue *param_values, 1159s # void *invocation_hint, 1159s # void *marshal_data) 1159s # { 1159s # g_cclosure_marshal_VOID__VARIANT (closure, 1159s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1159s # } 1159s # 1159s # inline static void 1159s # org_project_signaling_iface_signal_marshal_single_arg_signal_ay ( 1159s # GClosure *closure, 1159s # GValue *return_value, 1159s # unsigned int n_param_values, 1159s # const GValue *param_values, 1159s # void *invocation_hint, 1159s # void *marshal_data) 1159s # { 1159s # g_cclosure_marshal_VOID__STRING (closure, 1159s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1159s # } 1159s # 1159s # inline static void 1159s # org_project_signaling_iface_signal_marshal_single_arg_signal_as ( 1159s # GClosure *closure, 1159s # GValue *return_value, 1159s # unsigned int n_param_values, 1159s # const GValue *param_values, 1159s # void *invocation_hint, 1159s # void *marshal_data) 1159s # { 1159s # g_cclosure_marshal_VOID__BOXED (closure, 1159s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1159s # } 1159s # 1159s # inline static void 1159s # org_project_signaling_iface_signal_marshal_single_arg_signal_ao ( 1159s # GClosure *closure, 1159s # GValue *return_value, 1159s # unsigned int n_param_values, 1159s # const GValue *param_values, 1159s # void *invocation_hint, 1159s # void *marshal_data) 1159s # { 1159s # g_cclosure_marshal_VOID__BOXED (closure, 1159s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1159s # } 1159s # 1159s # inline static void 1159s # org_project_signaling_iface_signal_marshal_single_arg_signal_aay ( 1159s # GClosure *closure, 1159s # GValue *return_value, 1159s # unsigned int n_param_values, 1159s # const GValue *param_values, 1159s # void *invocation_hint, 1159s # void *marshal_data) 1159s # { 1159s # g_cclosure_marshal_VOID__BOXED (closure, 1159s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1159s # } 1159s # 1159s # inline static void 1159s # org_project_signaling_iface_signal_marshal_single_arg_signal_asv ( 1159s # GClosure *closure, 1159s # GValue *return_value, 1159s # unsigned int n_param_values, 1159s # const GValue *param_values, 1159s # void *invocation_hint, 1159s # void *marshal_data) 1159s # { 1159s # g_cclosure_marshal_VOID__VARIANT (closure, 1159s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1159s # } 1159s # 1159s # 1159s # /** 1159s # * OrgProjectSignalingIface: 1159s # * 1159s # * Abstract interface type for the D-Bus interface org.project.SignalingIface. 1159s # */ 1159s # 1159s # /** 1159s # * OrgProjectSignalingIfaceIface: 1159s # * @parent_iface: The parent interface. 1159s # * @no_arg_signal: Handler for the #OrgProjectSignalingIface::no-arg-signal signal. 1159s # * @single_arg_signal_aay: Handler for the #OrgProjectSignalingIface::single-arg-signal-aay signal. 1159s # * @single_arg_signal_ao: Handler for the #OrgProjectSignalingIface::single-arg-signal-ao signal. 1159s # * @single_arg_signal_as: Handler for the #OrgProjectSignalingIface::single-arg-signal-as signal. 1159s # * @single_arg_signal_asv: Handler for the #OrgProjectSignalingIface::single-arg-signal-asv signal. 1159s # * @single_arg_signal_ay: Handler for the #OrgProjectSignalingIface::single-arg-signal-ay signal. 1159s # * @single_arg_signal_b: Handler for the #OrgProjectSignalingIface::single-arg-signal-b signal. 1159s # * @single_arg_signal_d: Handler for the #OrgProjectSignalingIface::single-arg-signal-d signal. 1159s # * @single_arg_signal_g: Handler for the #OrgProjectSignalingIface::single-arg-signal-g signal. 1159s # * @single_arg_signal_h: Handler for the #OrgProjectSignalingIface::single-arg-signal-h signal. 1159s # * @single_arg_signal_i: Handler for the #OrgProjectSignalingIface::single-arg-signal-i signal. 1159s # * @single_arg_signal_n: Handler for the #OrgProjectSignalingIface::single-arg-signal-n signal. 1159s # * @single_arg_signal_o: Handler for the #OrgProjectSignalingIface::single-arg-signal-o signal. 1159s # * @single_arg_signal_q: Handler for the #OrgProjectSignalingIface::single-arg-signal-q signal. 1159s # * @single_arg_signal_s: Handler for the #OrgProjectSignalingIface::single-arg-signal-s signal. 1159s # * @single_arg_signal_t: Handler for the #OrgProjectSignalingIface::single-arg-signal-t signal. 1159s # * @single_arg_signal_u: Handler for the #OrgProjectSignalingIface::single-arg-signal-u signal. 1159s # * @single_arg_signal_x: Handler for the #OrgProjectSignalingIface::single-arg-signal-x signal. 1159s # * @single_arg_signal_y: Handler for the #OrgProjectSignalingIface::single-arg-signal-y signal. 1159s # * 1159s # * Virtual table for the D-Bus interface org.project.SignalingIface. 1159s # */ 1159s # 1159s # typedef OrgProjectSignalingIfaceIface OrgProjectSignalingIfaceInterface; 1159s # G_DEFINE_INTERFACE (OrgProjectSignalingIface, org_project_signaling_iface, G_TYPE_OBJECT) 1159s # 1159s # static void 1159s # org_project_signaling_iface_default_init (OrgProjectSignalingIfaceIface *iface) 1159s # { 1159s # /* GObject signals for received D-Bus signals: */ 1159s # /** 1159s # * OrgProjectSignalingIface::no-arg-signal: 1159s # * @object: A #OrgProjectSignalingIface. 1159s # * 1159s # * On the client-side, this signal is emitted whenever the D-Bus signal "NoArgSignal" is received. 1159s # * 1159s # * 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. 1159s # */ 1159s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_NO_ARG_SIGNAL] = 1159s # g_signal_new ("no-arg-signal", 1159s # G_TYPE_FROM_INTERFACE (iface), 1159s # G_SIGNAL_RUN_LAST, 1159s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, no_arg_signal), 1159s # NULL, 1159s # NULL, 1159s # org_project_signaling_iface_signal_marshal_no_arg_signal, 1159s # G_TYPE_NONE, 1159s # 0); 1159s # 1159s # /** 1159s # * OrgProjectSignalingIface::single-arg-signal-b: 1159s # * @object: A #OrgProjectSignalingIface. 1159s # * @arg_an_b: Argument. 1159s # * 1159s # * On the client-side, this signal is emitted whenever the D-Bus signal "SingleArgSignalB" is received. 1159s # * 1159s # * 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. 1159s # */ 1159s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_B] = 1159s # g_signal_new ("single-arg-signal-b", 1159s # G_TYPE_FROM_INTERFACE (iface), 1159s # G_SIGNAL_RUN_LAST, 1159s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, single_arg_signal_b), 1159s # NULL, 1159s # NULL, 1159s # org_project_signaling_iface_signal_marshal_single_arg_signal_b, 1159s # G_TYPE_NONE, 1159s # 1, G_TYPE_BOOLEAN); 1159s # 1159s # /** 1159s # * OrgProjectSignalingIface::single-arg-signal-y: 1159s # * @object: A #OrgProjectSignalingIface. 1159s # * @arg_an_y: Argument. 1159s # * 1159s # * On the client-side, this signal is emitted whenever the D-Bus signal "SingleArgSignalY" is received. 1159s # * 1159s # * 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. 1159s # */ 1159s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_Y] = 1159s # g_signal_new ("single-arg-signal-y", 1159s # G_TYPE_FROM_INTERFACE (iface), 1159s # G_SIGNAL_RUN_LAST, 1159s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, single_arg_signal_y), 1159s # NULL, 1159s # NULL, 1159s # org_project_signaling_iface_signal_marshal_single_arg_signal_y, 1159s # G_TYPE_NONE, 1159s # 1, G_TYPE_UCHAR); 1159s # 1159s # /** 1159s # * OrgProjectSignalingIface::single-arg-signal-n: 1159s # * @object: A #OrgProjectSignalingIface. 1159s # * @arg_an_n: Argument. 1159s # * 1159s # * On the client-side, this signal is emitted whenever the D-Bus signal "SingleArgSignalN" is received. 1159s # * 1159s # * 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. 1159s # */ 1159s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_N] = 1159s # g_signal_new ("single-arg-signal-n", 1159s # G_TYPE_FROM_INTERFACE (iface), 1159s # G_SIGNAL_RUN_LAST, 1159s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, single_arg_signal_n), 1159s # NULL, 1159s # NULL, 1159s # org_project_signaling_iface_signal_marshal_single_arg_signal_n, 1159s # G_TYPE_NONE, 1159s # 1, G_TYPE_INT); 1159s # 1159s # /** 1159s # * OrgProjectSignalingIface::single-arg-signal-q: 1159s # * @object: A #OrgProjectSignalingIface. 1159s # * @arg_an_q: Argument. 1159s # * 1159s # * On the client-side, this signal is emitted whenever the D-Bus signal "SingleArgSignalQ" is received. 1159s # * 1159s # * 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. 1159s # */ 1159s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_Q] = 1159s # g_signal_new ("single-arg-signal-q", 1159s # G_TYPE_FROM_INTERFACE (iface), 1159s # G_SIGNAL_RUN_LAST, 1159s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, single_arg_signal_q), 1159s # NULL, 1159s # NULL, 1159s # org_project_signaling_iface_signal_marshal_single_arg_signal_q, 1159s # G_TYPE_NONE, 1159s # 1, G_TYPE_UINT); 1159s # 1159s # /** 1159s # * OrgProjectSignalingIface::single-arg-signal-i: 1159s # * @object: A #OrgProjectSignalingIface. 1159s # * @arg_an_i: Argument. 1159s # * 1159s # * On the client-side, this signal is emitted whenever the D-Bus signal "SingleArgSignalI" is received. 1159s # * 1159s # * 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. 1159s # */ 1159s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_I] = 1159s # g_signal_new ("single-arg-signal-i", 1159s # G_TYPE_FROM_INTERFACE (iface), 1159s # G_SIGNAL_RUN_LAST, 1159s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, single_arg_signal_i), 1159s # NULL, 1159s # NULL, 1159s # org_project_signaling_iface_signal_marshal_single_arg_signal_i, 1159s # G_TYPE_NONE, 1159s # 1, G_TYPE_INT); 1159s # 1159s # /** 1159s # * OrgProjectSignalingIface::single-arg-signal-u: 1159s # * @object: A #OrgProjectSignalingIface. 1159s # * @arg_an_u: Argument. 1159s # * 1159s # * On the client-side, this signal is emitted whenever the D-Bus signal "SingleArgSignalU" is received. 1159s # * 1159s # * 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. 1159s # */ 1159s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_U] = 1159s # g_signal_new ("single-arg-signal-u", 1159s # G_TYPE_FROM_INTERFACE (iface), 1159s # G_SIGNAL_RUN_LAST, 1159s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, single_arg_signal_u), 1159s # NULL, 1159s # NULL, 1159s # org_project_signaling_iface_signal_marshal_single_arg_signal_u, 1159s # G_TYPE_NONE, 1159s # 1, G_TYPE_UINT); 1159s # 1159s # /** 1159s # * OrgProjectSignalingIface::single-arg-signal-x: 1159s # * @object: A #OrgProjectSignalingIface. 1159s # * @arg_an_x: Argument. 1159s # * 1159s # * On the client-side, this signal is emitted whenever the D-Bus signal "SingleArgSignalX" is received. 1159s # * 1159s # * 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. 1159s # */ 1159s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_X] = 1159s # g_signal_new ("single-arg-signal-x", 1159s # G_TYPE_FROM_INTERFACE (iface), 1159s # G_SIGNAL_RUN_LAST, 1159s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, single_arg_signal_x), 1159s # NULL, 1159s # NULL, 1159s # org_project_signaling_iface_signal_marshal_single_arg_signal_x, 1159s # G_TYPE_NONE, 1159s # 1, G_TYPE_INT64); 1159s # 1159s # /** 1159s # * OrgProjectSignalingIface::single-arg-signal-t: 1159s # * @object: A #OrgProjectSignalingIface. 1159s # * @arg_an_t: Argument. 1159s # * 1159s # * On the client-side, this signal is emitted whenever the D-Bus signal "SingleArgSignalT" is received. 1159s # * 1159s # * 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. 1159s # */ 1159s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_T] = 1159s # g_signal_new ("single-arg-signal-t", 1159s # G_TYPE_FROM_INTERFACE (iface), 1159s # G_SIGNAL_RUN_LAST, 1159s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, single_arg_signal_t), 1159s # NULL, 1159s # NULL, 1159s # org_project_signaling_iface_signal_marshal_single_arg_signal_t, 1159s # G_TYPE_NONE, 1159s # 1, G_TYPE_UINT64); 1159s # 1159s # /** 1159s # * OrgProjectSignalingIface::single-arg-signal-d: 1159s # * @object: A #OrgProjectSignalingIface. 1159s # * @arg_an_d: Argument. 1159s # * 1159s # * On the client-side, this signal is emitted whenever the D-Bus signal "SingleArgSignalD" is received. 1159s # * 1159s # * 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. 1159s # */ 1159s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_D] = 1159s # g_signal_new ("single-arg-signal-d", 1159s # G_TYPE_FROM_INTERFACE (iface), 1159s # G_SIGNAL_RUN_LAST, 1159s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, single_arg_signal_d), 1159s # NULL, 1159s # NULL, 1159s # org_project_signaling_iface_signal_marshal_single_arg_signal_d, 1159s # G_TYPE_NONE, 1159s # 1, G_TYPE_DOUBLE); 1159s # 1159s # /** 1159s # * OrgProjectSignalingIface::single-arg-signal-s: 1159s # * @object: A #OrgProjectSignalingIface. 1159s # * @arg_an_s: Argument. 1159s # * 1159s # * On the client-side, this signal is emitted whenever the D-Bus signal "SingleArgSignalS" is received. 1159s # * 1159s # * 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. 1159s # */ 1159s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_S] = 1159s # g_signal_new ("single-arg-signal-s", 1159s # G_TYPE_FROM_INTERFACE (iface), 1159s # G_SIGNAL_RUN_LAST, 1159s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, single_arg_signal_s), 1159s # NULL, 1159s # NULL, 1159s # org_project_signaling_iface_signal_marshal_single_arg_signal_s, 1159s # G_TYPE_NONE, 1159s # 1, G_TYPE_STRING); 1159s # 1159s # /** 1159s # * OrgProjectSignalingIface::single-arg-signal-o: 1159s # * @object: A #OrgProjectSignalingIface. 1159s # * @arg_an_o: Argument. 1159s # * 1159s # * On the client-side, this signal is emitted whenever the D-Bus signal "SingleArgSignalO" is received. 1159s # * 1159s # * 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. 1159s # */ 1159s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_O] = 1159s # g_signal_new ("single-arg-signal-o", 1159s # G_TYPE_FROM_INTERFACE (iface), 1159s # G_SIGNAL_RUN_LAST, 1159s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, single_arg_signal_o), 1159s # NULL, 1159s # NULL, 1159s # org_project_signaling_iface_signal_marshal_single_arg_signal_o, 1159s # G_TYPE_NONE, 1159s # 1, G_TYPE_STRING); 1159s # 1159s # /** 1159s # * OrgProjectSignalingIface::single-arg-signal-g: 1159s # * @object: A #OrgProjectSignalingIface. 1159s # * @arg_an_g: Argument. 1159s # * 1159s # * On the client-side, this signal is emitted whenever the D-Bus signal "SingleArgSignalG" is received. 1159s # * 1159s # * 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. 1159s # */ 1159s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_G] = 1159s # g_signal_new ("single-arg-signal-g", 1159s # G_TYPE_FROM_INTERFACE (iface), 1159s # G_SIGNAL_RUN_LAST, 1159s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, single_arg_signal_g), 1159s # NULL, 1159s # NULL, 1159s # org_project_signaling_iface_signal_marshal_single_arg_signal_g, 1159s # G_TYPE_NONE, 1159s # 1, G_TYPE_STRING); 1159s # 1159s # /** 1159s # * OrgProjectSignalingIface::single-arg-signal-h: 1159s # * @object: A #OrgProjectSignalingIface. 1159s # * @arg_an_h: Argument. 1159s # * 1159s # * On the client-side, this signal is emitted whenever the D-Bus signal "SingleArgSignalH" is received. 1159s # * 1159s # * 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. 1159s # */ 1159s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_H] = 1159s # g_signal_new ("single-arg-signal-h", 1159s # G_TYPE_FROM_INTERFACE (iface), 1159s # G_SIGNAL_RUN_LAST, 1159s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, single_arg_signal_h), 1159s # NULL, 1159s # NULL, 1159s # org_project_signaling_iface_signal_marshal_single_arg_signal_h, 1159s # G_TYPE_NONE, 1159s # 1, G_TYPE_VARIANT); 1159s # 1159s # /** 1159s # * OrgProjectSignalingIface::single-arg-signal-ay: 1159s # * @object: A #OrgProjectSignalingIface. 1159s # * @arg_an_ay: Argument. 1159s # * 1159s # * On the client-side, this signal is emitted whenever the D-Bus signal "SingleArgSignalAY" is received. 1159s # * 1159s # * 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. 1159s # */ 1159s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_AY] = 1159s # g_signal_new ("single-arg-signal-ay", 1159s # G_TYPE_FROM_INTERFACE (iface), 1159s # G_SIGNAL_RUN_LAST, 1159s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, single_arg_signal_ay), 1159s # NULL, 1159s # NULL, 1159s # org_project_signaling_iface_signal_marshal_single_arg_signal_ay, 1159s # G_TYPE_NONE, 1159s # 1, G_TYPE_STRING); 1159s # 1159s # /** 1159s # * OrgProjectSignalingIface::single-arg-signal-as: 1159s # * @object: A #OrgProjectSignalingIface. 1159s # * @arg_an_as: Argument. 1159s # * 1159s # * On the client-side, this signal is emitted whenever the D-Bus signal "SingleArgSignalAS" is received. 1159s # * 1159s # * 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. 1159s # */ 1159s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_AS] = 1159s # g_signal_new ("single-arg-signal-as", 1159s # G_TYPE_FROM_INTERFACE (iface), 1159s # G_SIGNAL_RUN_LAST, 1159s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, single_arg_signal_as), 1159s # NULL, 1159s # NULL, 1159s # org_project_signaling_iface_signal_marshal_single_arg_signal_as, 1159s # G_TYPE_NONE, 1159s # 1, G_TYPE_STRV); 1159s # 1159s # /** 1159s # * OrgProjectSignalingIface::single-arg-signal-ao: 1159s # * @object: A #OrgProjectSignalingIface. 1159s # * @arg_an_ao: Argument. 1159s # * 1159s # * On the client-side, this signal is emitted whenever the D-Bus signal "SingleArgSignalAO" is received. 1159s # * 1159s # * 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. 1159s # */ 1159s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_AO] = 1159s # g_signal_new ("single-arg-signal-ao", 1159s # G_TYPE_FROM_INTERFACE (iface), 1159s # G_SIGNAL_RUN_LAST, 1159s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, single_arg_signal_ao), 1159s # NULL, 1159s # NULL, 1159s # org_project_signaling_iface_signal_marshal_single_arg_signal_ao, 1159s # G_TYPE_NONE, 1159s # 1, G_TYPE_STRV); 1159s # 1159s # /** 1159s # * OrgProjectSignalingIface::single-arg-signal-aay: 1159s # * @object: A #OrgProjectSignalingIface. 1159s # * @arg_an_aay: Argument. 1159s # * 1159s # * On the client-side, this signal is emitted whenever the D-Bus signal "SingleArgSignalAAY" is received. 1159s # * 1159s # * 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. 1159s # */ 1159s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_AAY] = 1159s # g_signal_new ("single-arg-signal-aay", 1159s # G_TYPE_FROM_INTERFACE (iface), 1159s # G_SIGNAL_RUN_LAST, 1159s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, single_arg_signal_aay), 1159s # NULL, 1159s # NULL, 1159s # org_project_signaling_iface_signal_marshal_single_arg_signal_aay, 1159s # G_TYPE_NONE, 1159s # 1, G_TYPE_STRV); 1159s # 1159s # /** 1159s # * OrgProjectSignalingIface::single-arg-signal-asv: 1159s # * @object: A #OrgProjectSignalingIface. 1159s # * @arg_an_asv: Argument. 1159s # * 1159s # * On the client-side, this signal is emitted whenever the D-Bus signal "SingleArgSignalASV" is received. 1159s # * 1159s # * 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. 1159s # */ 1159s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_ASV] = 1159s # g_signal_new ("single-arg-signal-asv", 1159s # G_TYPE_FROM_INTERFACE (iface), 1159s # G_SIGNAL_RUN_LAST, 1159s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, single_arg_signal_asv), 1159s # NULL, 1159s # NULL, 1159s # org_project_signaling_iface_signal_marshal_single_arg_signal_asv, 1159s # G_TYPE_NONE, 1159s # 1, G_TYPE_VARIANT); 1159s # 1159s # } 1159s # 1159s # /** 1159s # * org_project_signaling_iface_emit_no_arg_signal: 1159s # * @object: A #OrgProjectSignalingIface. 1159s # * 1159s # * Emits the "NoArgSignal" D-Bus signal. 1159s # */ 1159s # void 1159s # org_project_signaling_iface_emit_no_arg_signal ( 1159s # OrgProjectSignalingIface *object) 1159s # { 1159s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_NO_ARG_SIGNAL], 0); 1159s # } 1159s # 1159s # /** 1159s # * org_project_signaling_iface_emit_single_arg_signal_b: 1159s # * @object: A #OrgProjectSignalingIface. 1159s # * @arg_an_b: Argument to pass with the signal. 1159s # * 1159s # * Emits the "SingleArgSignalB" D-Bus signal. 1159s # */ 1159s # void 1159s # org_project_signaling_iface_emit_single_arg_signal_b ( 1159s # OrgProjectSignalingIface *object, 1159s # gboolean arg_an_b) 1159s # { 1159s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_B], 0, arg_an_b); 1159s # } 1159s # 1159s # /** 1159s # * org_project_signaling_iface_emit_single_arg_signal_y: 1159s # * @object: A #OrgProjectSignalingIface. 1159s # * @arg_an_y: Argument to pass with the signal. 1159s # * 1159s # * Emits the "SingleArgSignalY" D-Bus signal. 1159s # */ 1159s # void 1159s # org_project_signaling_iface_emit_single_arg_signal_y ( 1159s # OrgProjectSignalingIface *object, 1159s # guchar arg_an_y) 1159s # { 1159s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_Y], 0, arg_an_y); 1159s # } 1159s # 1159s # /** 1159s # * org_project_signaling_iface_emit_single_arg_signal_n: 1159s # * @object: A #OrgProjectSignalingIface. 1159s # * @arg_an_n: Argument to pass with the signal. 1159s # * 1159s # * Emits the "SingleArgSignalN" D-Bus signal. 1159s # */ 1159s # void 1159s # org_project_signaling_iface_emit_single_arg_signal_n ( 1159s # OrgProjectSignalingIface *object, 1159s # gint16 arg_an_n) 1159s # { 1159s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_N], 0, arg_an_n); 1159s # } 1159s # 1159s # /** 1159s # * org_project_signaling_iface_emit_single_arg_signal_q: 1159s # * @object: A #OrgProjectSignalingIface. 1159s # * @arg_an_q: Argument to pass with the signal. 1159s # * 1159s # * Emits the "SingleArgSignalQ" D-Bus signal. 1159s # */ 1159s # void 1159s # org_project_signaling_iface_emit_single_arg_signal_q ( 1159s # OrgProjectSignalingIface *object, 1159s # guint16 arg_an_q) 1159s # { 1159s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_Q], 0, arg_an_q); 1159s # } 1159s # 1159s # /** 1159s # * org_project_signaling_iface_emit_single_arg_signal_i: 1159s # * @object: A #OrgProjectSignalingIface. 1159s # * @arg_an_i: Argument to pass with the signal. 1159s # * 1159s # * Emits the "SingleArgSignalI" D-Bus signal. 1159s # */ 1159s # void 1159s # org_project_signaling_iface_emit_single_arg_signal_i ( 1159s # OrgProjectSignalingIface *object, 1159s # gint arg_an_i) 1159s # { 1159s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_I], 0, arg_an_i); 1159s # } 1159s # 1159s # /** 1159s # * org_project_signaling_iface_emit_single_arg_signal_u: 1159s # * @object: A #OrgProjectSignalingIface. 1159s # * @arg_an_u: Argument to pass with the signal. 1159s # * 1159s # * Emits the "SingleArgSignalU" D-Bus signal. 1159s # */ 1159s # void 1159s # org_project_signaling_iface_emit_single_arg_signal_u ( 1159s # OrgProjectSignalingIface *object, 1159s # guint arg_an_u) 1159s # { 1159s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_U], 0, arg_an_u); 1159s # } 1159s # 1159s # /** 1159s # * org_project_signaling_iface_emit_single_arg_signal_x: 1159s # * @object: A #OrgProjectSignalingIface. 1159s # * @arg_an_x: Argument to pass with the signal. 1159s # * 1159s # * Emits the "SingleArgSignalX" D-Bus signal. 1159s # */ 1159s # void 1159s # org_project_signaling_iface_emit_single_arg_signal_x ( 1159s # OrgProjectSignalingIface *object, 1159s # gint64 arg_an_x) 1159s # { 1159s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_X], 0, arg_an_x); 1159s # } 1159s # 1159s # /** 1159s # * org_project_signaling_iface_emit_single_arg_signal_t: 1159s # * @object: A #OrgProjectSignalingIface. 1159s # * @arg_an_t: Argument to pass with the signal. 1159s # * 1159s # * Emits the "SingleArgSignalT" D-Bus signal. 1159s # */ 1159s # void 1159s # org_project_signaling_iface_emit_single_arg_signal_t ( 1159s # OrgProjectSignalingIface *object, 1159s # guint64 arg_an_t) 1159s # { 1159s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_T], 0, arg_an_t); 1159s # } 1159s # 1159s # /** 1159s # * org_project_signaling_iface_emit_single_arg_signal_d: 1159s # * @object: A #OrgProjectSignalingIface. 1159s # * @arg_an_d: Argument to pass with the signal. 1159s # * 1159s # * Emits the "SingleArgSignalD" D-Bus signal. 1159s # */ 1159s # void 1159s # org_project_signaling_iface_emit_single_arg_signal_d ( 1159s # OrgProjectSignalingIface *object, 1159s # gdouble arg_an_d) 1159s # { 1159s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_D], 0, arg_an_d); 1159s # } 1159s # 1159s # /** 1159s # * org_project_signaling_iface_emit_single_arg_signal_s: 1159s # * @object: A #OrgProjectSignalingIface. 1159s # * @arg_an_s: Argument to pass with the signal. 1159s # * 1159s # * Emits the "SingleArgSignalS" D-Bus signal. 1159s # */ 1159s # void 1159s # org_project_signaling_iface_emit_single_arg_signal_s ( 1159s # OrgProjectSignalingIface *object, 1159s # const gchar *arg_an_s) 1159s # { 1159s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_S], 0, arg_an_s); 1159s # } 1159s # 1159s # /** 1159s # * org_project_signaling_iface_emit_single_arg_signal_o: 1159s # * @object: A #OrgProjectSignalingIface. 1159s # * @arg_an_o: Argument to pass with the signal. 1159s # * 1159s # * Emits the "SingleArgSignalO" D-Bus signal. 1159s # */ 1159s # void 1159s # org_project_signaling_iface_emit_single_arg_signal_o ( 1159s # OrgProjectSignalingIface *object, 1159s # const gchar *arg_an_o) 1159s # { 1159s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_O], 0, arg_an_o); 1159s # } 1159s # 1159s # /** 1159s # * org_project_signaling_iface_emit_single_arg_signal_g: 1159s # * @object: A #OrgProjectSignalingIface. 1159s # * @arg_an_g: Argument to pass with the signal. 1159s # * 1159s # * Emits the "SingleArgSignalG" D-Bus signal. 1159s # */ 1159s # void 1159s # org_project_signaling_iface_emit_single_arg_signal_g ( 1159s # OrgProjectSignalingIface *object, 1159s # const gchar *arg_an_g) 1159s # { 1159s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_G], 0, arg_an_g); 1159s # } 1159s # 1159s # /** 1159s # * org_project_signaling_iface_emit_single_arg_signal_h: 1159s # * @object: A #OrgProjectSignalingIface. 1159s # * @arg_an_h: Argument to pass with the signal. 1159s # * 1159s # * Emits the "SingleArgSignalH" D-Bus signal. 1159s # */ 1159s # void 1159s # org_project_signaling_iface_emit_single_arg_signal_h ( 1159s # OrgProjectSignalingIface *object, 1159s # GVariant *arg_an_h) 1159s # { 1159s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_H], 0, arg_an_h); 1159s # } 1159s # 1159s # /** 1159s # * org_project_signaling_iface_emit_single_arg_signal_ay: 1159s # * @object: A #OrgProjectSignalingIface. 1159s # * @arg_an_ay: Argument to pass with the signal. 1159s # * 1159s # * Emits the "SingleArgSignalAY" D-Bus signal. 1159s # */ 1159s # void 1159s # org_project_signaling_iface_emit_single_arg_signal_ay ( 1159s # OrgProjectSignalingIface *object, 1159s # const gchar *arg_an_ay) 1159s # { 1159s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_AY], 0, arg_an_ay); 1159s # } 1159s # 1159s # /** 1159s # * org_project_signaling_iface_emit_single_arg_signal_as: 1159s # * @object: A #OrgProjectSignalingIface. 1159s # * @arg_an_as: Argument to pass with the signal. 1159s # * 1159s # * Emits the "SingleArgSignalAS" D-Bus signal. 1159s # */ 1159s # void 1159s # org_project_signaling_iface_emit_single_arg_signal_as ( 1159s # OrgProjectSignalingIface *object, 1159s # const gchar *const *arg_an_as) 1159s # { 1159s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_AS], 0, arg_an_as); 1159s # } 1159s # 1159s # /** 1159s # * org_project_signaling_iface_emit_single_arg_signal_ao: 1159s # * @object: A #OrgProjectSignalingIface. 1159s # * @arg_an_ao: Argument to pass with the signal. 1159s # * 1159s # * Emits the "SingleArgSignalAO" D-Bus signal. 1159s # */ 1159s # void 1159s # org_project_signaling_iface_emit_single_arg_signal_ao ( 1159s # OrgProjectSignalingIface *object, 1159s # const gchar *const *arg_an_ao) 1159s # { 1159s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_AO], 0, arg_an_ao); 1159s # } 1159s # 1159s # /** 1159s # * org_project_signaling_iface_emit_single_arg_signal_aay: 1159s # * @object: A #OrgProjectSignalingIface. 1159s # * @arg_an_aay: Argument to pass with the signal. 1159s # * 1159s # * Emits the "SingleArgSignalAAY" D-Bus signal. 1159s # */ 1159s # void 1159s # org_project_signaling_iface_emit_single_arg_signal_aay ( 1159s # OrgProjectSignalingIface *object, 1159s # const gchar *const *arg_an_aay) 1159s # { 1159s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_AAY], 0, arg_an_aay); 1159s # } 1159s # 1159s # /** 1159s # * org_project_signaling_iface_emit_single_arg_signal_asv: 1159s # * @object: A #OrgProjectSignalingIface. 1159s # * @arg_an_asv: Argument to pass with the signal. 1159s # * 1159s # * Emits the "SingleArgSignalASV" D-Bus signal. 1159s # */ 1159s # void 1159s # org_project_signaling_iface_emit_single_arg_signal_asv ( 1159s # OrgProjectSignalingIface *object, 1159s # GVariant *arg_an_asv) 1159s # { 1159s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_ASV], 0, arg_an_asv); 1159s # } 1159s # 1159s # /* ------------------------------------------------------------------------ */ 1159s # 1159s # /** 1159s # * OrgProjectSignalingIfaceProxy: 1159s # * 1159s # * The #OrgProjectSignalingIfaceProxy structure contains only private data and should only be accessed using the provided API. 1159s # */ 1159s # 1159s # /** 1159s # * OrgProjectSignalingIfaceProxyClass: 1159s # * @parent_class: The parent class. 1159s # * 1159s # * Class structure for #OrgProjectSignalingIfaceProxy. 1159s # */ 1159s # 1159s # struct _OrgProjectSignalingIfaceProxyPrivate 1159s # { 1159s # GData *qdata; 1159s # }; 1159s # 1159s # static void org_project_signaling_iface_proxy_iface_init (OrgProjectSignalingIfaceIface *iface); 1159s # 1159s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1159s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceProxy, org_project_signaling_iface_proxy, G_TYPE_DBUS_PROXY, 1159s # G_ADD_PRIVATE (OrgProjectSignalingIfaceProxy) 1159s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_proxy_iface_init)) 1159s # 1159s # #else 1159s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceProxy, org_project_signaling_iface_proxy, G_TYPE_DBUS_PROXY, 1159s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_proxy_iface_init)) 1159s # 1159s # #endif 1159s # static void 1159s # org_project_signaling_iface_proxy_finalize (GObject *object) 1159s # { 1159s # OrgProjectSignalingIfaceProxy *proxy = ORG_PROJECT_SIGNALING_IFACE_PROXY (object); 1159s # g_datalist_clear (&proxy->priv->qdata); 1159s # G_OBJECT_CLASS (org_project_signaling_iface_proxy_parent_class)->finalize (object); 1159s # } 1159s # 1159s # static void 1159s # org_project_signaling_iface_proxy_get_property (GObject *object G_GNUC_UNUSED, 1159s # guint prop_id G_GNUC_UNUSED, 1159s # GValue *value G_GNUC_UNUSED, 1159s # GParamSpec *pspec G_GNUC_UNUSED) 1159s # { 1159s # } 1159s # 1159s # static void 1159s # org_project_signaling_iface_proxy_set_property (GObject *object G_GNUC_UNUSED, 1159s # guint prop_id G_GNUC_UNUSED, 1159s # const GValue *value G_GNUC_UNUSED, 1159s # GParamSpec *pspec G_GNUC_UNUSED) 1159s # { 1159s # } 1159s # 1159s # static void 1159s # org_project_signaling_iface_proxy_g_signal (GDBusProxy *proxy, 1159s # const gchar *sender_name G_GNUC_UNUSED, 1159s # const gchar *signal_name, 1159s # GVariant *parameters) 1159s # { 1159s # _ExtendedGDBusSignalInfo *info; 1159s # GVariantIter iter; 1159s # GVariant *child; 1159s # GValue *paramv; 1159s # gsize num_params; 1159s # gsize n; 1159s # guint signal_id; 1159s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, signal_name); 1159s # if (info == NULL) 1159s # return; 1159s # num_params = g_variant_n_children (parameters); 1159s # paramv = g_new0 (GValue, num_params + 1); 1159s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_SIGNALING_IFACE); 1159s # g_value_set_object (¶mv[0], proxy); 1159s # g_variant_iter_init (&iter, parameters); 1159s # n = 1; 1159s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1159s # { 1159s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 1159s # if (arg_info->use_gvariant) 1159s # { 1159s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1159s # g_value_set_variant (¶mv[n], child); 1159s # n++; 1159s # } 1159s # else 1159s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1159s # g_variant_unref (child); 1159s # } 1159s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_SIGNALING_IFACE); 1159s # g_signal_emitv (paramv, signal_id, 0, NULL); 1159s # for (n = 0; n < num_params + 1; n++) 1159s # g_value_unset (¶mv[n]); 1159s # g_free (paramv); 1159s # } 1159s # 1159s # static void 1159s # org_project_signaling_iface_proxy_g_properties_changed (GDBusProxy *_proxy, 1159s # GVariant *changed_properties, 1159s # const gchar *const *invalidated_properties) 1159s # { 1159s # OrgProjectSignalingIfaceProxy *proxy = ORG_PROJECT_SIGNALING_IFACE_PROXY (_proxy); 1159s # guint n; 1159s # const gchar *key; 1159s # GVariantIter *iter; 1159s # _ExtendedGDBusPropertyInfo *info; 1159s # g_variant_get (changed_properties, "a{sv}", &iter); 1159s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 1159s # { 1159s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, key); 1159s # g_datalist_remove_data (&proxy->priv->qdata, key); 1159s # if (info != NULL) 1159s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1159s # } 1159s # g_variant_iter_free (iter); 1159s # for (n = 0; invalidated_properties[n] != NULL; n++) 1159s # { 1159s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, invalidated_properties[n]); 1159s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 1159s # if (info != NULL) 1159s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1159s # } 1159s # } 1159s # 1159s # static void 1159s # org_project_signaling_iface_proxy_init (OrgProjectSignalingIfaceProxy *proxy) 1159s # { 1159s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1159s # proxy->priv = org_project_signaling_iface_proxy_get_instance_private (proxy); 1159s # #else 1159s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_SIGNALING_IFACE_PROXY, OrgProjectSignalingIfaceProxyPrivate); 1159s # #endif 1159s # 1159s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_signaling_iface_interface_info ()); 1159s # } 1159s # 1159s # static void 1159s # org_project_signaling_iface_proxy_class_init (OrgProjectSignalingIfaceProxyClass *klass) 1159s # { 1159s # GObjectClass *gobject_class; 1159s # GDBusProxyClass *proxy_class; 1159s # 1159s # gobject_class = G_OBJECT_CLASS (klass); 1159s # gobject_class->finalize = org_project_signaling_iface_proxy_finalize; 1159s # gobject_class->get_property = org_project_signaling_iface_proxy_get_property; 1159s # gobject_class->set_property = org_project_signaling_iface_proxy_set_property; 1159s # 1159s # proxy_class = G_DBUS_PROXY_CLASS (klass); 1159s # proxy_class->g_signal = org_project_signaling_iface_proxy_g_signal; 1159s # proxy_class->g_properties_changed = org_project_signaling_iface_proxy_g_properties_changed; 1159s # 1159s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1159s # g_type_class_add_private (klass, sizeof (OrgProjectSignalingIfaceProxyPrivate)); 1159s # #endif 1159s # } 1159s # 1159s # static void 1159s # org_project_signaling_iface_proxy_iface_init (OrgProjectSignalingIfaceIface *iface G_GNUC_UNUSED) 1159s # { 1159s # } 1159s # 1159s # /** 1159s # * org_project_signaling_iface_proxy_new: 1159s # * @connection: A #GDBusConnection. 1159s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1159s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1159s # * @object_path: An object path. 1159s # * @cancellable: (nullable): A #GCancellable or %NULL. 1159s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1159s # * @user_data: User data to pass to @callback. 1159s # * 1159s # * Asynchronously creates a proxy for the D-Bus interface org.project.SignalingIface. See g_dbus_proxy_new() for more details. 1159s # * 1159s # * 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()). 1159s # * You can then call org_project_signaling_iface_proxy_new_finish() to get the result of the operation. 1159s # * 1159s # * See org_project_signaling_iface_proxy_new_sync() for the synchronous, blocking version of this constructor. 1159s # */ 1159s # void 1159s # org_project_signaling_iface_proxy_new ( 1159s # GDBusConnection *connection, 1159s # GDBusProxyFlags flags, 1159s # const gchar *name, 1159s # const gchar *object_path, 1159s # GCancellable *cancellable, 1159s # GAsyncReadyCallback callback, 1159s # gpointer user_data) 1159s # { 1159s # 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); 1159s # } 1159s # 1159s # /** 1159s # * org_project_signaling_iface_proxy_new_finish: 1159s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_signaling_iface_proxy_new(). 1159s # * @error: Return location for error or %NULL 1159s # * 1159s # * Finishes an operation started with org_project_signaling_iface_proxy_new(). 1159s # * 1159s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 1159s # */ 1159s # OrgProjectSignalingIface * 1159s # org_project_signaling_iface_proxy_new_finish ( 1159s # GAsyncResult *res, 1159s # GError **error) 1159s # { 1159s # GObject *ret; 1159s # GObject *source_object; 1159s # source_object = g_async_result_get_source_object (res); 1159s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1159s # g_object_unref (source_object); 1159s # if (ret != NULL) 1159s # return ORG_PROJECT_SIGNALING_IFACE (ret); 1159s # else 1159s # return NULL; 1159s # } 1159s # 1159s # /** 1159s # * org_project_signaling_iface_proxy_new_sync: 1159s # * @connection: A #GDBusConnection. 1159s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1159s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1159s # * @object_path: An object path. 1159s # * @cancellable: (nullable): A #GCancellable or %NULL. 1159s # * @error: Return location for error or %NULL 1159s # * 1159s # * Synchronously creates a proxy for the D-Bus interface org.project.SignalingIface. See g_dbus_proxy_new_sync() for more details. 1159s # * 1159s # * The calling thread is blocked until a reply is received. 1159s # * 1159s # * See org_project_signaling_iface_proxy_new() for the asynchronous version of this constructor. 1159s # * 1159s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 1159s # */ 1159s # OrgProjectSignalingIface * 1159s # org_project_signaling_iface_proxy_new_sync ( 1159s # GDBusConnection *connection, 1159s # GDBusProxyFlags flags, 1159s # const gchar *name, 1159s # const gchar *object_path, 1159s # GCancellable *cancellable, 1159s # GError **error) 1159s # { 1159s # GInitable *ret; 1159s # 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); 1159s # if (ret != NULL) 1159s # return ORG_PROJECT_SIGNALING_IFACE (ret); 1159s # else 1159s # return NULL; 1159s # } 1159s # 1159s # 1159s # /** 1159s # * org_project_signaling_iface_proxy_new_for_bus: 1159s # * @bus_type: A #GBusType. 1159s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1159s # * @name: A bus name (well-known or unique). 1159s # * @object_path: An object path. 1159s # * @cancellable: (nullable): A #GCancellable or %NULL. 1159s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1159s # * @user_data: User data to pass to @callback. 1159s # * 1159s # * Like org_project_signaling_iface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 1159s # * 1159s # * 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()). 1159s # * You can then call org_project_signaling_iface_proxy_new_for_bus_finish() to get the result of the operation. 1159s # * 1159s # * See org_project_signaling_iface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 1159s # */ 1159s # void 1159s # org_project_signaling_iface_proxy_new_for_bus ( 1159s # GBusType bus_type, 1159s # GDBusProxyFlags flags, 1159s # const gchar *name, 1159s # const gchar *object_path, 1159s # GCancellable *cancellable, 1159s # GAsyncReadyCallback callback, 1159s # gpointer user_data) 1159s # { 1159s # 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); 1159s # } 1159s # 1159s # /** 1159s # * org_project_signaling_iface_proxy_new_for_bus_finish: 1159s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_signaling_iface_proxy_new_for_bus(). 1159s # * @error: Return location for error or %NULL 1159s # * 1159s # * Finishes an operation started with org_project_signaling_iface_proxy_new_for_bus(). 1159s # * 1159s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 1159s # */ 1159s # OrgProjectSignalingIface * 1159s # org_project_signaling_iface_proxy_new_for_bus_finish ( 1159s # GAsyncResult *res, 1159s # GError **error) 1159s # { 1159s # GObject *ret; 1159s # GObject *source_object; 1159s # source_object = g_async_result_get_source_object (res); 1159s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1159s # g_object_unref (source_object); 1159s # if (ret != NULL) 1159s # return ORG_PROJECT_SIGNALING_IFACE (ret); 1159s # else 1159s # return NULL; 1159s # } 1159s # 1159s # /** 1159s # * org_project_signaling_iface_proxy_new_for_bus_sync: 1159s # * @bus_type: A #GBusType. 1159s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1159s # * @name: A bus name (well-known or unique). 1159s # * @object_path: An object path. 1159s # * @cancellable: (nullable): A #GCancellable or %NULL. 1159s # * @error: Return location for error or %NULL 1159s # * 1159s # * Like org_project_signaling_iface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 1159s # * 1159s # * The calling thread is blocked until a reply is received. 1159s # * 1159s # * See org_project_signaling_iface_proxy_new_for_bus() for the asynchronous version of this constructor. 1159s # * 1159s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 1159s # */ 1159s # OrgProjectSignalingIface * 1159s # org_project_signaling_iface_proxy_new_for_bus_sync ( 1159s # GBusType bus_type, 1159s # GDBusProxyFlags flags, 1159s # const gchar *name, 1159s # const gchar *object_path, 1159s # GCancellable *cancellable, 1159s # GError **error) 1159s # { 1159s # GInitable *ret; 1159s # 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); 1159s # if (ret != NULL) 1159s # return ORG_PROJECT_SIGNALING_IFACE (ret); 1159s # else 1159s # return NULL; 1159s # } 1159s # 1159s # 1159s # /* ------------------------------------------------------------------------ */ 1159s # 1159s # /** 1159s # * OrgProjectSignalingIfaceSkeleton: 1159s # * 1159s # * The #OrgProjectSignalingIfaceSkeleton structure contains only private data and should only be accessed using the provided API. 1159s # */ 1159s # 1159s # /** 1159s # * OrgProjectSignalingIfaceSkeletonClass: 1159s # * @parent_class: The parent class. 1159s # * 1159s # * Class structure for #OrgProjectSignalingIfaceSkeleton. 1159s # */ 1159s # 1159s # struct _OrgProjectSignalingIfaceSkeletonPrivate 1159s # { 1159s # GValue *properties; 1159s # GList *changed_properties; 1159s # GSource *changed_properties_idle_source; 1159s # GMainContext *context; 1159s # GMutex lock; 1159s # }; 1159s # 1159s # static void 1159s # _org_project_signaling_iface_skeleton_handle_method_call ( 1159s # GDBusConnection *connection G_GNUC_UNUSED, 1159s # const gchar *sender G_GNUC_UNUSED, 1159s # const gchar *object_path G_GNUC_UNUSED, 1159s # const gchar *interface_name, 1159s # const gchar *method_name, 1159s # GVariant *parameters, 1159s # GDBusMethodInvocation *invocation, 1159s # gpointer user_data) 1159s # { 1159s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 1159s # _ExtendedGDBusMethodInfo *info; 1159s # GVariantIter iter; 1159s # GVariant *child; 1159s # GValue *paramv; 1159s # gsize num_params; 1159s # guint num_extra; 1159s # gsize n; 1159s # guint signal_id; 1159s # GValue return_value = G_VALUE_INIT; 1159s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 1159s # g_assert (info != NULL); 1159s # num_params = g_variant_n_children (parameters); 1159s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 1159s # n = 0; 1159s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_SIGNALING_IFACE); 1159s # g_value_set_object (¶mv[n++], skeleton); 1159s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 1159s # g_value_set_object (¶mv[n++], invocation); 1159s # if (info->pass_fdlist) 1159s # { 1159s # #ifdef G_OS_UNIX 1159s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 1159s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 1159s # #else 1159s # g_assert_not_reached (); 1159s # #endif 1159s # } 1159s # g_variant_iter_init (&iter, parameters); 1159s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1159s # { 1159s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 1159s # if (arg_info->use_gvariant) 1159s # { 1159s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1159s # g_value_set_variant (¶mv[n], child); 1159s # n++; 1159s # } 1159s # else 1159s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1159s # g_variant_unref (child); 1159s # } 1159s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_SIGNALING_IFACE); 1159s # g_value_init (&return_value, G_TYPE_BOOLEAN); 1159s # g_signal_emitv (paramv, signal_id, 0, &return_value); 1159s # if (!g_value_get_boolean (&return_value)) 1159s # 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); 1159s # g_value_unset (&return_value); 1159s # for (n = 0; n < num_params + num_extra; n++) 1159s # g_value_unset (¶mv[n]); 1159s # g_free (paramv); 1159s # } 1159s # 1159s # static GVariant * 1159s # _org_project_signaling_iface_skeleton_handle_get_property ( 1159s # GDBusConnection *connection G_GNUC_UNUSED, 1159s # const gchar *sender G_GNUC_UNUSED, 1159s # const gchar *object_path G_GNUC_UNUSED, 1159s # const gchar *interface_name G_GNUC_UNUSED, 1159s # const gchar *property_name, 1159s # GError **error, 1159s # gpointer user_data) 1159s # { 1159s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 1159s # GValue value = G_VALUE_INIT; 1159s # GParamSpec *pspec; 1159s # _ExtendedGDBusPropertyInfo *info; 1159s # GVariant *ret; 1159s # ret = NULL; 1159s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, property_name); 1159s # g_assert (info != NULL); 1159s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1159s # if (pspec == NULL) 1159s # { 1159s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1159s # } 1159s # else 1159s # { 1159s # g_value_init (&value, pspec->value_type); 1159s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1159s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 1159s # g_value_unset (&value); 1159s # } 1159s # return ret; 1159s # } 1159s # 1159s # static gboolean 1159s # _org_project_signaling_iface_skeleton_handle_set_property ( 1159s # GDBusConnection *connection G_GNUC_UNUSED, 1159s # const gchar *sender G_GNUC_UNUSED, 1159s # const gchar *object_path G_GNUC_UNUSED, 1159s # const gchar *interface_name G_GNUC_UNUSED, 1159s # const gchar *property_name, 1159s # GVariant *variant, 1159s # GError **error, 1159s # gpointer user_data) 1159s # { 1159s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 1159s # GValue value = G_VALUE_INIT; 1159s # GParamSpec *pspec; 1159s # _ExtendedGDBusPropertyInfo *info; 1159s # gboolean ret; 1159s # ret = FALSE; 1159s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, property_name); 1159s # g_assert (info != NULL); 1159s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1159s # if (pspec == NULL) 1159s # { 1159s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1159s # } 1159s # else 1159s # { 1159s # if (info->use_gvariant) 1159s # g_value_set_variant (&value, variant); 1159s # else 1159s # g_dbus_gvariant_to_gvalue (variant, &value); 1159s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1159s # g_value_unset (&value); 1159s # ret = TRUE; 1159s # } 1159s # return ret; 1159s # } 1159s # 1159s # static const GDBusInterfaceVTable _org_project_signaling_iface_skeleton_vtable = 1159s # { 1159s # _org_project_signaling_iface_skeleton_handle_method_call, 1159s # _org_project_signaling_iface_skeleton_handle_get_property, 1159s # _org_project_signaling_iface_skeleton_handle_set_property, 1159s # {NULL} 1159s # }; 1159s # 1159s # static GDBusInterfaceInfo * 1159s # org_project_signaling_iface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1159s # { 1159s # return org_project_signaling_iface_interface_info (); 1159s # } 1159s # 1159s # static GDBusInterfaceVTable * 1159s # org_project_signaling_iface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1159s # { 1159s # return (GDBusInterfaceVTable *) &_org_project_signaling_iface_skeleton_vtable; 1159s # } 1159s # 1159s # static GVariant * 1159s # org_project_signaling_iface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 1159s # { 1159s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (_skeleton); 1159s # 1159s # GVariantBuilder builder; 1159s # guint n; 1159s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 1159s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 1159s # #else 1159s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 1159s # #endif 1159s # if (_org_project_signaling_iface_interface_info.parent_struct.properties == NULL) 1159s # goto out; 1159s # for (n = 0; _org_project_signaling_iface_interface_info.parent_struct.properties[n] != NULL; n++) 1159s # { 1159s # GDBusPropertyInfo *info = _org_project_signaling_iface_interface_info.parent_struct.properties[n]; 1159s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 1159s # { 1159s # GVariant *value; 1159s # 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); 1159s # if (value != NULL) 1159s # { 1159s # g_variant_take_ref (value); 1159s # g_variant_builder_add (&builder, "{sv}", info->name, value); 1159s # g_variant_unref (value); 1159s # } 1159s # } 1159s # } 1159s # out: 1159s # return g_variant_builder_end (&builder); 1159s # } 1159s # 1159s # static void 1159s # org_project_signaling_iface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 1159s # { 1159s # } 1159s # 1159s # static void 1159s # _org_project_signaling_iface_on_signal_no_arg_signal ( 1159s # OrgProjectSignalingIface *object) 1159s # { 1159s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 1159s # 1159s # GList *connections, *l; 1159s # GVariant *signal_variant; 1159s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 1159s # 1159s # signal_variant = g_variant_ref_sink (g_variant_new ("()")); 1159s # for (l = connections; l != NULL; l = l->next) 1159s # { 1159s # GDBusConnection *connection = l->data; 1159s # g_dbus_connection_emit_signal (connection, 1159s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "NoArgSignal", 1159s # signal_variant, NULL); 1159s # } 1159s # g_variant_unref (signal_variant); 1159s # g_list_free_full (connections, g_object_unref); 1159s # } 1159s # 1159s # static void 1159s # _org_project_signaling_iface_on_signal_single_arg_signal_b ( 1159s # OrgProjectSignalingIface *object, 1159s # gboolean arg_an_b) 1159s # { 1159s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 1159s # 1159s # GList *connections, *l; 1159s # GVariant *signal_variant; 1159s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 1159s # 1159s # signal_variant = g_variant_ref_sink (g_variant_new ("(b)", 1159s # arg_an_b)); 1159s # for (l = connections; l != NULL; l = l->next) 1159s # { 1159s # GDBusConnection *connection = l->data; 1159s # g_dbus_connection_emit_signal (connection, 1159s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SingleArgSignalB", 1159s # signal_variant, NULL); 1159s # } 1159s # g_variant_unref (signal_variant); 1159s # g_list_free_full (connections, g_object_unref); 1159s # } 1159s # 1159s # static void 1159s # _org_project_signaling_iface_on_signal_single_arg_signal_y ( 1159s # OrgProjectSignalingIface *object, 1159s # guchar arg_an_y) 1159s # { 1159s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 1159s # 1159s # GList *connections, *l; 1159s # GVariant *signal_variant; 1159s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 1159s # 1159s # signal_variant = g_variant_ref_sink (g_variant_new ("(y)", 1159s # arg_an_y)); 1159s # for (l = connections; l != NULL; l = l->next) 1159s # { 1159s # GDBusConnection *connection = l->data; 1159s # g_dbus_connection_emit_signal (connection, 1159s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SingleArgSignalY", 1159s # signal_variant, NULL); 1159s # } 1159s # g_variant_unref (signal_variant); 1159s # g_list_free_full (connections, g_object_unref); 1159s # } 1159s # 1159s # static void 1159s # _org_project_signaling_iface_on_signal_single_arg_signal_n ( 1159s # OrgProjectSignalingIface *object, 1159s # gint16 arg_an_n) 1159s # { 1159s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 1159s # 1159s # GList *connections, *l; 1159s # GVariant *signal_variant; 1159s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 1159s # 1159s # signal_variant = g_variant_ref_sink (g_variant_new ("(n)", 1159s # arg_an_n)); 1159s # for (l = connections; l != NULL; l = l->next) 1159s # { 1159s # GDBusConnection *connection = l->data; 1159s # g_dbus_connection_emit_signal (connection, 1159s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SingleArgSignalN", 1159s # signal_variant, NULL); 1159s # } 1159s # g_variant_unref (signal_variant); 1159s # g_list_free_full (connections, g_object_unref); 1159s # } 1159s # 1159s # static void 1159s # _org_project_signaling_iface_on_signal_single_arg_signal_q ( 1159s # OrgProjectSignalingIface *object, 1159s # guint16 arg_an_q) 1159s # { 1159s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 1159s # 1159s # GList *connections, *l; 1159s # GVariant *signal_variant; 1159s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 1159s # 1159s # signal_variant = g_variant_ref_sink (g_variant_new ("(q)", 1159s # arg_an_q)); 1159s # for (l = connections; l != NULL; l = l->next) 1159s # { 1159s # GDBusConnection *connection = l->data; 1159s # g_dbus_connection_emit_signal (connection, 1159s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SingleArgSignalQ", 1159s # signal_variant, NULL); 1159s # } 1159s # g_variant_unref (signal_variant); 1159s # g_list_free_full (connections, g_object_unref); 1159s # } 1159s # 1159s # static void 1159s # _org_project_signaling_iface_on_signal_single_arg_signal_i ( 1159s # OrgProjectSignalingIface *object, 1159s # gint arg_an_i) 1159s # { 1159s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 1159s # 1159s # GList *connections, *l; 1159s # GVariant *signal_variant; 1159s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 1159s # 1159s # signal_variant = g_variant_ref_sink (g_variant_new ("(i)", 1159s # arg_an_i)); 1159s # for (l = connections; l != NULL; l = l->next) 1159s # { 1159s # GDBusConnection *connection = l->data; 1159s # g_dbus_connection_emit_signal (connection, 1159s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SingleArgSignalI", 1159s # signal_variant, NULL); 1159s # } 1159s # g_variant_unref (signal_variant); 1159s # g_list_free_full (connections, g_object_unref); 1159s # } 1159s # 1159s # static void 1159s # _org_project_signaling_iface_on_signal_single_arg_signal_u ( 1159s # OrgProjectSignalingIface *object, 1159s # guint arg_an_u) 1159s # { 1159s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 1159s # 1159s # GList *connections, *l; 1159s # GVariant *signal_variant; 1159s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 1159s # 1159s # signal_variant = g_variant_ref_sink (g_variant_new ("(u)", 1159s # arg_an_u)); 1159s # for (l = connections; l != NULL; l = l->next) 1159s # { 1159s # GDBusConnection *connection = l->data; 1159s # g_dbus_connection_emit_signal (connection, 1159s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SingleArgSignalU", 1159s # signal_variant, NULL); 1159s # } 1159s # g_variant_unref (signal_variant); 1159s # g_list_free_full (connections, g_object_unref); 1159s # } 1159s # 1159s # static void 1159s # _org_project_signaling_iface_on_signal_single_arg_signal_x ( 1159s # OrgProjectSignalingIface *object, 1159s # gint64 arg_an_x) 1159s # { 1159s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 1159s # 1159s # GList *connections, *l; 1159s # GVariant *signal_variant; 1159s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 1159s # 1159s # signal_variant = g_variant_ref_sink (g_variant_new ("(x)", 1159s # arg_an_x)); 1159s # for (l = connections; l != NULL; l = l->next) 1159s # { 1159s # GDBusConnection *connection = l->data; 1159s # g_dbus_connection_emit_signal (connection, 1159s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SingleArgSignalX", 1159s # signal_variant, NULL); 1159s # } 1159s # g_variant_unref (signal_variant); 1159s # g_list_free_full (connections, g_object_unref); 1159s # } 1159s # 1159s # static void 1159s # _org_project_signaling_iface_on_signal_single_arg_signal_t ( 1159s # OrgProjectSignalingIface *object, 1159s # guint64 arg_an_t) 1159s # { 1159s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 1159s # 1159s # GList *connections, *l; 1159s # GVariant *signal_variant; 1159s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 1159s # 1159s # signal_variant = g_variant_ref_sink (g_variant_new ("(t)", 1159s # arg_an_t)); 1159s # for (l = connections; l != NULL; l = l->next) 1159s # { 1159s # GDBusConnection *connection = l->data; 1159s # g_dbus_connection_emit_signal (connection, 1159s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SingleArgSignalT", 1159s # signal_variant, NULL); 1159s # } 1159s # g_variant_unref (signal_variant); 1159s # g_list_free_full (connections, g_object_unref); 1159s # } 1159s # 1159s # static void 1159s # _org_project_signaling_iface_on_signal_single_arg_signal_d ( 1159s # OrgProjectSignalingIface *object, 1159s # gdouble arg_an_d) 1159s # { 1159s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 1159s # 1159s # GList *connections, *l; 1159s # GVariant *signal_variant; 1159s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 1159s # 1159s # signal_variant = g_variant_ref_sink (g_variant_new ("(d)", 1159s # arg_an_d)); 1159s # for (l = connections; l != NULL; l = l->next) 1159s # { 1159s # GDBusConnection *connection = l->data; 1159s # g_dbus_connection_emit_signal (connection, 1159s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SingleArgSignalD", 1159s # signal_variant, NULL); 1159s # } 1159s # g_variant_unref (signal_variant); 1159s # g_list_free_full (connections, g_object_unref); 1159s # } 1159s # 1159s # static void 1159s # _org_project_signaling_iface_on_signal_single_arg_signal_s ( 1159s # OrgProjectSignalingIface *object, 1159s # const gchar *arg_an_s) 1159s # { 1159s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 1159s # 1159s # GList *connections, *l; 1159s # GVariant *signal_variant; 1159s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 1159s # 1159s # signal_variant = g_variant_ref_sink (g_variant_new ("(s)", 1159s # arg_an_s)); 1159s # for (l = connections; l != NULL; l = l->next) 1159s # { 1159s # GDBusConnection *connection = l->data; 1159s # g_dbus_connection_emit_signal (connection, 1159s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SingleArgSignalS", 1159s # signal_variant, NULL); 1159s # } 1159s # g_variant_unref (signal_variant); 1159s # g_list_free_full (connections, g_object_unref); 1159s # } 1159s # 1159s # static void 1159s # _org_project_signaling_iface_on_signal_single_arg_signal_o ( 1159s # OrgProjectSignalingIface *object, 1159s # const gchar *arg_an_o) 1159s # { 1159s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 1159s # 1159s # GList *connections, *l; 1159s # GVariant *signal_variant; 1159s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 1159s # 1159s # signal_variant = g_variant_ref_sink (g_variant_new ("(o)", 1159s # arg_an_o)); 1159s # for (l = connections; l != NULL; l = l->next) 1159s # { 1159s # GDBusConnection *connection = l->data; 1159s # g_dbus_connection_emit_signal (connection, 1159s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SingleArgSignalO", 1159s # signal_variant, NULL); 1159s # } 1159s # g_variant_unref (signal_variant); 1159s # g_list_free_full (connections, g_object_unref); 1159s # } 1159s # 1159s # static void 1159s # _org_project_signaling_iface_on_signal_single_arg_signal_g ( 1159s # OrgProjectSignalingIface *object, 1159s # const gchar *arg_an_g) 1159s # { 1159s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 1159s # 1159s # GList *connections, *l; 1159s # GVariant *signal_variant; 1159s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 1159s # 1159s # signal_variant = g_variant_ref_sink (g_variant_new ("(g)", 1159s # arg_an_g)); 1159s # for (l = connections; l != NULL; l = l->next) 1159s # { 1159s # GDBusConnection *connection = l->data; 1159s # g_dbus_connection_emit_signal (connection, 1159s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SingleArgSignalG", 1159s # signal_variant, NULL); 1159s # } 1159s # g_variant_unref (signal_variant); 1159s # g_list_free_full (connections, g_object_unref); 1159s # } 1159s # 1159s # static void 1159s # _org_project_signaling_iface_on_signal_single_arg_signal_h ( 1159s # OrgProjectSignalingIface *object, 1159s # GVariant *arg_an_h) 1159s # { 1159s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 1159s # 1159s # GList *connections, *l; 1159s # GVariant *signal_variant; 1159s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 1159s # 1159s # signal_variant = g_variant_ref_sink (g_variant_new ("(@h)", 1159s # arg_an_h)); 1159s # for (l = connections; l != NULL; l = l->next) 1159s # { 1159s # GDBusConnection *connection = l->data; 1159s # g_dbus_connection_emit_signal (connection, 1159s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SingleArgSignalH", 1159s # signal_variant, NULL); 1159s # } 1159s # g_variant_unref (signal_variant); 1159s # g_list_free_full (connections, g_object_unref); 1159s # } 1159s # 1159s # static void 1159s # _org_project_signaling_iface_on_signal_single_arg_signal_ay ( 1159s # OrgProjectSignalingIface *object, 1159s # const gchar *arg_an_ay) 1159s # { 1159s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 1159s # 1159s # GList *connections, *l; 1159s # GVariant *signal_variant; 1159s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 1159s # 1159s # signal_variant = g_variant_ref_sink (g_variant_new ("(^ay)", 1159s # arg_an_ay)); 1159s # for (l = connections; l != NULL; l = l->next) 1159s # { 1159s # GDBusConnection *connection = l->data; 1159s # g_dbus_connection_emit_signal (connection, 1159s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SingleArgSignalAY", 1159s # signal_variant, NULL); 1159s # } 1159s # g_variant_unref (signal_variant); 1159s # g_list_free_full (connections, g_object_unref); 1159s # } 1159s # 1159s # static void 1159s # _org_project_signaling_iface_on_signal_single_arg_signal_as ( 1159s # OrgProjectSignalingIface *object, 1159s # const gchar *const *arg_an_as) 1159s # { 1159s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 1159s # 1159s # GList *connections, *l; 1159s # GVariant *signal_variant; 1159s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 1159s # 1159s # signal_variant = g_variant_ref_sink (g_variant_new ("(^as)", 1159s # arg_an_as)); 1159s # for (l = connections; l != NULL; l = l->next) 1159s # { 1159s # GDBusConnection *connection = l->data; 1159s # g_dbus_connection_emit_signal (connection, 1159s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SingleArgSignalAS", 1159s # signal_variant, NULL); 1159s # } 1159s # g_variant_unref (signal_variant); 1159s # g_list_free_full (connections, g_object_unref); 1159s # } 1159s # 1159s # static void 1159s # _org_project_signaling_iface_on_signal_single_arg_signal_ao ( 1159s # OrgProjectSignalingIface *object, 1159s # const gchar *const *arg_an_ao) 1159s # { 1159s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 1159s # 1159s # GList *connections, *l; 1159s # GVariant *signal_variant; 1159s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 1159s # 1159s # signal_variant = g_variant_ref_sink (g_variant_new ("(^ao)", 1159s # arg_an_ao)); 1159s # for (l = connections; l != NULL; l = l->next) 1159s # { 1159s # GDBusConnection *connection = l->data; 1159s # g_dbus_connection_emit_signal (connection, 1159s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SingleArgSignalAO", 1159s # signal_variant, NULL); 1159s # } 1159s # g_variant_unref (signal_variant); 1159s # g_list_free_full (connections, g_object_unref); 1159s # } 1159s # 1159s # static void 1159s # _org_project_signaling_iface_on_signal_single_arg_signal_aay ( 1159s # OrgProjectSignalingIface *object, 1159s # const gchar *const *arg_an_aay) 1159s # { 1159s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 1159s # 1159s # GList *connections, *l; 1159s # GVariant *signal_variant; 1159s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 1159s # 1159s # signal_variant = g_variant_ref_sink (g_variant_new ("(^aay)", 1159s # arg_an_aay)); 1159s # for (l = connections; l != NULL; l = l->next) 1159s # { 1159s # GDBusConnection *connection = l->data; 1159s # g_dbus_connection_emit_signal (connection, 1159s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SingleArgSignalAAY", 1159s # signal_variant, NULL); 1159s # } 1159s # g_variant_unref (signal_variant); 1159s # g_list_free_full (connections, g_object_unref); 1159s # } 1159s # 1159s # static void 1159s # _org_project_signaling_iface_on_signal_single_arg_signal_asv ( 1159s # OrgProjectSignalingIface *object, 1159s # GVariant *arg_an_asv) 1159s # { 1159s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 1159s # 1159s # GList *connections, *l; 1159s # GVariant *signal_variant; 1159s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 1159s # 1159s # signal_variant = g_variant_ref_sink (g_variant_new ("(@a{sv})", 1159s # arg_an_asv)); 1159s # for (l = connections; l != NULL; l = l->next) 1159s # { 1159s # GDBusConnection *connection = l->data; 1159s # g_dbus_connection_emit_signal (connection, 1159s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SingleArgSignalASV", 1159s # signal_variant, NULL); 1159s # } 1159s # g_variant_unref (signal_variant); 1159s # g_list_free_full (connections, g_object_unref); 1159s # } 1159s # 1159s # static void org_project_signaling_iface_skeleton_iface_init (OrgProjectSignalingIfaceIface *iface); 1159s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1159s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceSkeleton, org_project_signaling_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1159s # G_ADD_PRIVATE (OrgProjectSignalingIfaceSkeleton) 1159s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_skeleton_iface_init)) 1159s # 1159s # #else 1159s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceSkeleton, org_project_signaling_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1159s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_skeleton_iface_init)) 1159s # 1159s # #endif 1159s # static void 1159s # org_project_signaling_iface_skeleton_finalize (GObject *object) 1159s # { 1159s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 1159s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 1159s # if (skeleton->priv->changed_properties_idle_source != NULL) 1159s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 1159s # g_main_context_unref (skeleton->priv->context); 1159s # g_mutex_clear (&skeleton->priv->lock); 1159s # G_OBJECT_CLASS (org_project_signaling_iface_skeleton_parent_class)->finalize (object); 1159s # } 1159s # 1159s # static void 1159s # org_project_signaling_iface_skeleton_init (OrgProjectSignalingIfaceSkeleton *skeleton) 1159s # { 1159s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1159s # skeleton->priv = org_project_signaling_iface_skeleton_get_instance_private (skeleton); 1159s # #else 1159s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_SIGNALING_IFACE_SKELETON, OrgProjectSignalingIfaceSkeletonPrivate); 1159s # #endif 1159s # 1159s # g_mutex_init (&skeleton->priv->lock); 1159s # skeleton->priv->context = g_main_context_ref_thread_default (); 1159s # } 1159s # 1159s # static void 1159s # org_project_signaling_iface_skeleton_class_init (OrgProjectSignalingIfaceSkeletonClass *klass) 1159s # { 1159s # GObjectClass *gobject_class; 1159s # GDBusInterfaceSkeletonClass *skeleton_class; 1159s # 1159s # gobject_class = G_OBJECT_CLASS (klass); 1159s # gobject_class->finalize = org_project_signaling_iface_skeleton_finalize; 1159s # 1159s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 1159s # skeleton_class->get_info = org_project_signaling_iface_skeleton_dbus_interface_get_info; 1159s # skeleton_class->get_properties = org_project_signaling_iface_skeleton_dbus_interface_get_properties; 1159s # skeleton_class->flush = org_project_signaling_iface_skeleton_dbus_interface_flush; 1159s # skeleton_class->get_vtable = org_project_signaling_iface_skeleton_dbus_interface_get_vtable; 1159s # 1159s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1159s # g_type_class_add_private (klass, sizeof (OrgProjectSignalingIfaceSkeletonPrivate)); 1159s # #endif 1159s # } 1159s # 1159s # static void 1159s # org_project_signaling_iface_skeleton_iface_init (OrgProjectSignalingIfaceIface *iface) 1159s # { 1159s # iface->no_arg_signal = _org_project_signaling_iface_on_signal_no_arg_signal; 1159s # iface->single_arg_signal_b = _org_project_signaling_iface_on_signal_single_arg_signal_b; 1159s # iface->single_arg_signal_y = _org_project_signaling_iface_on_signal_single_arg_signal_y; 1159s # iface->single_arg_signal_n = _org_project_signaling_iface_on_signal_single_arg_signal_n; 1159s # iface->single_arg_signal_q = _org_project_signaling_iface_on_signal_single_arg_signal_q; 1159s # iface->single_arg_signal_i = _org_project_signaling_iface_on_signal_single_arg_signal_i; 1159s # iface->single_arg_signal_u = _org_project_signaling_iface_on_signal_single_arg_signal_u; 1159s # iface->single_arg_signal_x = _org_project_signaling_iface_on_signal_single_arg_signal_x; 1159s # iface->single_arg_signal_t = _org_project_signaling_iface_on_signal_single_arg_signal_t; 1159s # iface->single_arg_signal_d = _org_project_signaling_iface_on_signal_single_arg_signal_d; 1159s # iface->single_arg_signal_s = _org_project_signaling_iface_on_signal_single_arg_signal_s; 1159s # iface->single_arg_signal_o = _org_project_signaling_iface_on_signal_single_arg_signal_o; 1159s # iface->single_arg_signal_g = _org_project_signaling_iface_on_signal_single_arg_signal_g; 1159s # iface->single_arg_signal_h = _org_project_signaling_iface_on_signal_single_arg_signal_h; 1159s # iface->single_arg_signal_ay = _org_project_signaling_iface_on_signal_single_arg_signal_ay; 1159s # iface->single_arg_signal_as = _org_project_signaling_iface_on_signal_single_arg_signal_as; 1159s # iface->single_arg_signal_ao = _org_project_signaling_iface_on_signal_single_arg_signal_ao; 1159s # iface->single_arg_signal_aay = _org_project_signaling_iface_on_signal_single_arg_signal_aay; 1159s # iface->single_arg_signal_asv = _org_project_signaling_iface_on_signal_single_arg_signal_asv; 1159s # } 1159s # 1159s # /** 1159s # * org_project_signaling_iface_skeleton_new: 1159s # * 1159s # * Creates a skeleton object for the D-Bus interface org.project.SignalingIface. 1159s # * 1159s # * Returns: (transfer full) (type OrgProjectSignalingIfaceSkeleton): The skeleton object. 1159s # */ 1159s # OrgProjectSignalingIface * 1159s # org_project_signaling_iface_skeleton_new (void) 1159s # { 1159s # return ORG_PROJECT_SIGNALING_IFACE (g_object_new (TYPE_ORG_PROJECT_SIGNALING_IFACE_SKELETON, NULL)); 1159s # } 1159s # Error: 1159s ok 21 __main__.TestCodegen.test_generate_signal_id_simple_signal 1159s # gdbus-codegen: /usr/bin/gdbus-codegen 1159s # tmpdir: /tmp/tmpva1tt77x 1159s # /tmp/tmpva1tt77x/tmpehhw8koy.xml: 1159s # 1159s # 1159s # 1159s # 1159s # 1159s # 1159s # 1159s # 1159s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpva1tt77x/tmpehhw8koy.xml', '--output', '-', '--body'] 1159s # Return code: 0 1159s # Output: 1159s # /* 1159s # * This file is generated by gdbus-codegen, do not modify it. 1159s # * 1159s # * The license of this code is the same as for the D-Bus interface description 1159s # * it was derived from. Note that it links to GLib, so must comply with the 1159s # * LGPL linking clauses. 1159s # */ 1159s # 1159s # #ifdef HAVE_CONFIG_H 1159s # # include "config.h" 1159s # #endif 1159s # 1159s # #include 1159s # #ifdef G_OS_UNIX 1159s # # include 1159s # #endif 1159s # 1159s # #ifdef G_ENABLE_DEBUG 1159s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 1159s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 1159s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 1159s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 1159s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 1159s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 1159s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 1159s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 1159s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 1159s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 1159s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 1159s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 1159s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 1159s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 1159s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 1159s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 1159s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 1159s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 1159s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 1159s # #else /* !G_ENABLE_DEBUG */ 1159s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 1159s # * Do not access GValues directly in your code. Instead, use the 1159s # * g_value_get_*() functions 1159s # */ 1159s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 1159s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 1159s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 1159s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 1159s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 1159s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 1159s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 1159s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 1159s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 1159s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 1159s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 1159s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 1159s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 1159s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 1159s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 1159s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 1159s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 1159s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 1159s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 1159s # #endif /* !G_ENABLE_DEBUG */ 1159s # 1159s # typedef struct 1159s # { 1159s # GDBusArgInfo parent_struct; 1159s # gboolean use_gvariant; 1159s # } _ExtendedGDBusArgInfo; 1159s # 1159s # typedef struct 1159s # { 1159s # GDBusMethodInfo parent_struct; 1159s # const gchar *signal_name; 1159s # gboolean pass_fdlist; 1159s # } _ExtendedGDBusMethodInfo; 1159s # 1159s # typedef struct 1159s # { 1159s # GDBusSignalInfo parent_struct; 1159s # const gchar *signal_name; 1159s # } _ExtendedGDBusSignalInfo; 1159s # 1159s # typedef struct 1159s # { 1159s # GDBusPropertyInfo parent_struct; 1159s # const gchar *hyphen_name; 1159s # guint use_gvariant : 1; 1159s # guint emits_changed_signal : 1; 1159s # } _ExtendedGDBusPropertyInfo; 1159s # 1159s # typedef struct 1159s # { 1159s # GDBusInterfaceInfo parent_struct; 1159s # const gchar *hyphen_name; 1159s # } _ExtendedGDBusInterfaceInfo; 1159s # 1159s # typedef struct 1159s # { 1159s # const _ExtendedGDBusPropertyInfo *info; 1159s # guint prop_id; 1159s # GValue orig_value; /* the value before the change */ 1159s # } ChangedProperty; 1159s # 1159s # static void 1159s # _changed_property_free (ChangedProperty *data) 1159s # { 1159s # g_value_unset (&data->orig_value); 1159s # g_free (data); 1159s # } 1159s # 1159s # static gboolean 1159s # _g_strv_equal0 (gchar **a, gchar **b) 1159s # { 1159s # gboolean ret = FALSE; 1159s # guint n; 1159s # if (a == NULL && b == NULL) 1159s # { 1159s # ret = TRUE; 1159s # goto out; 1159s # } 1159s # if (a == NULL || b == NULL) 1159s # goto out; 1159s # if (g_strv_length (a) != g_strv_length (b)) 1159s # goto out; 1159s # for (n = 0; a[n] != NULL; n++) 1159s # if (g_strcmp0 (a[n], b[n]) != 0) 1159s # goto out; 1159s # ret = TRUE; 1159s # out: 1159s # return ret; 1159s # } 1159s # 1159s # static gboolean 1159s # _g_variant_equal0 (GVariant *a, GVariant *b) 1159s # { 1159s # gboolean ret = FALSE; 1159s # if (a == NULL && b == NULL) 1159s # { 1159s # ret = TRUE; 1159s # goto out; 1159s # } 1159s # if (a == NULL || b == NULL) 1159s # goto out; 1159s # ret = g_variant_equal (a, b); 1159s # out: 1159s # return ret; 1159s # } 1159s # 1159s # G_GNUC_UNUSED static gboolean 1159s # _g_value_equal (const GValue *a, const GValue *b) 1159s # { 1159s # gboolean ret = FALSE; 1159s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 1159s # switch (G_VALUE_TYPE (a)) 1159s # { 1159s # case G_TYPE_BOOLEAN: 1159s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 1159s # break; 1159s # case G_TYPE_UCHAR: 1159s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 1159s # break; 1159s # case G_TYPE_INT: 1159s # ret = (g_value_get_int (a) == g_value_get_int (b)); 1159s # break; 1159s # case G_TYPE_UINT: 1159s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 1159s # break; 1159s # case G_TYPE_INT64: 1159s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 1159s # break; 1159s # case G_TYPE_UINT64: 1159s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 1159s # break; 1159s # case G_TYPE_DOUBLE: 1159s # { 1159s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 1159s # gdouble da = g_value_get_double (a); 1159s # gdouble db = g_value_get_double (b); 1159s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 1159s # } 1159s # break; 1159s # case G_TYPE_STRING: 1159s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 1159s # break; 1159s # case G_TYPE_VARIANT: 1159s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 1159s # break; 1159s # default: 1159s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 1159s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 1159s # else 1159s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 1159s # break; 1159s # } 1159s # return ret; 1159s # } 1159s # 1159s # /* ------------------------------------------------------------------------ 1159s # * Code for interface org.project.UsefulInterface 1159s # * ------------------------------------------------------------------------ 1159s # */ 1159s # 1159s # /** 1159s # * SECTION:OrgProjectUsefulInterface 1159s # * @title: OrgProjectUsefulInterface 1159s # * @short_description: Generated C code for the org.project.UsefulInterface D-Bus interface 1159s # * 1159s # * This section contains code for working with the org.project.UsefulInterface D-Bus interface in C. 1159s # */ 1159s # 1159s # enum 1159s # { 1159s # _ORG_PROJECT_USEFUL_INTERFACE_SIMPLE_SIGNAL, 1159s # }; 1159s # 1159s # static unsigned _ORG_PROJECT_USEFUL_INTERFACE_SIGNALS[1] = { 0 }; 1159s # 1159s # /* ---- Introspection data for org.project.UsefulInterface ---- */ 1159s # 1159s # static const _ExtendedGDBusSignalInfo _org_project_useful_interface_signal_info_simple_signal = 1159s # { 1159s # { 1159s # -1, 1159s # (gchar *) "SimpleSignal", 1159s # NULL, 1159s # NULL 1159s # }, 1159s # "simple-signal" 1159s # }; 1159s # 1159s # static const GDBusSignalInfo * const _org_project_useful_interface_signal_info_pointers[] = 1159s # { 1159s # &_org_project_useful_interface_signal_info_simple_signal.parent_struct, 1159s # NULL 1159s # }; 1159s # 1159s # static const _ExtendedGDBusInterfaceInfo _org_project_useful_interface_interface_info = 1159s # { 1159s # { 1159s # -1, 1159s # (gchar *) "org.project.UsefulInterface", 1159s # NULL, 1159s # (GDBusSignalInfo **) &_org_project_useful_interface_signal_info_pointers, 1159s # NULL, 1159s # NULL 1159s # }, 1159s # "org-project-useful-interface", 1159s # }; 1159s # 1159s # 1159s # /** 1159s # * org_project_useful_interface_interface_info: 1159s # * 1159s # * Gets a machine-readable description of the org.project.UsefulInterface D-Bus interface. 1159s # * 1159s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 1159s # */ 1159s # GDBusInterfaceInfo * 1159s # org_project_useful_interface_interface_info (void) 1159s # { 1159s # return (GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct; 1159s # } 1159s # 1159s # /** 1159s # * org_project_useful_interface_override_properties: 1159s # * @klass: The class structure for a #GObject derived class. 1159s # * @property_id_begin: The property id to assign to the first overridden property. 1159s # * 1159s # * Overrides all #GObject properties in the #OrgProjectUsefulInterface interface for a concrete class. 1159s # * The properties are overridden in the order they are defined. 1159s # * 1159s # * Returns: The last property id. 1159s # */ 1159s # guint 1159s # org_project_useful_interface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 1159s # { 1159s # return property_id_begin - 1; 1159s # } 1159s # 1159s # 1159s # inline static void 1159s # org_project_useful_interface_signal_marshal_simple_signal ( 1159s # GClosure *closure, 1159s # GValue *return_value, 1159s # unsigned int n_param_values, 1159s # const GValue *param_values, 1159s # void *invocation_hint, 1159s # void *marshal_data) 1159s # { 1159s # g_cclosure_marshal_VOID__VOID (closure, 1159s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1159s # } 1159s # 1159s # 1159s # /** 1159s # * OrgProjectUsefulInterface: 1159s # * 1159s # * Abstract interface type for the D-Bus interface org.project.UsefulInterface. 1159s # */ 1159s # 1159s # /** 1159s # * OrgProjectUsefulInterfaceIface: 1159s # * @parent_iface: The parent interface. 1159s # * @simple_signal: Handler for the #OrgProjectUsefulInterface::simple-signal signal. 1159s # * 1159s # * Virtual table for the D-Bus interface org.project.UsefulInterface. 1159s # */ 1159s # 1159s # typedef OrgProjectUsefulInterfaceIface OrgProjectUsefulInterfaceInterface; 1159s # G_DEFINE_INTERFACE (OrgProjectUsefulInterface, org_project_useful_interface, G_TYPE_OBJECT) 1159s # 1159s # static void 1159s # org_project_useful_interface_default_init (OrgProjectUsefulInterfaceIface *iface) 1159s # { 1159s # /* GObject signals for received D-Bus signals: */ 1159s # /** 1159s # * OrgProjectUsefulInterface::simple-signal: 1159s # * @object: A #OrgProjectUsefulInterface. 1159s # * 1159s # * On the client-side, this signal is emitted whenever the D-Bus signal "SimpleSignal" is received. 1159s # * 1159s # * 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. 1159s # */ 1159s # _ORG_PROJECT_USEFUL_INTERFACE_SIGNALS[_ORG_PROJECT_USEFUL_INTERFACE_SIMPLE_SIGNAL] = 1159s # g_signal_new ("simple-signal", 1159s # G_TYPE_FROM_INTERFACE (iface), 1159s # G_SIGNAL_RUN_LAST, 1159s # G_STRUCT_OFFSET (OrgProjectUsefulInterfaceIface, simple_signal), 1159s # NULL, 1159s # NULL, 1159s # org_project_useful_interface_signal_marshal_simple_signal, 1159s # G_TYPE_NONE, 1159s # 0); 1159s # 1159s # } 1159s # 1159s # /** 1159s # * org_project_useful_interface_emit_simple_signal: 1159s # * @object: A #OrgProjectUsefulInterface. 1159s # * 1159s # * Emits the "SimpleSignal" D-Bus signal. 1159s # */ 1159s # void 1159s # org_project_useful_interface_emit_simple_signal ( 1159s # OrgProjectUsefulInterface *object) 1159s # { 1159s # g_signal_emit (object, _ORG_PROJECT_USEFUL_INTERFACE_SIGNALS[_ORG_PROJECT_USEFUL_INTERFACE_SIMPLE_SIGNAL], 0); 1159s # } 1159s # 1159s # /* ------------------------------------------------------------------------ */ 1159s # 1159s # /** 1159s # * OrgProjectUsefulInterfaceProxy: 1159s # * 1159s # * The #OrgProjectUsefulInterfaceProxy structure contains only private data and should only be accessed using the provided API. 1159s # */ 1159s # 1159s # /** 1159s # * OrgProjectUsefulInterfaceProxyClass: 1159s # * @parent_class: The parent class. 1159s # * 1159s # * Class structure for #OrgProjectUsefulInterfaceProxy. 1159s # */ 1159s # 1159s # struct _OrgProjectUsefulInterfaceProxyPrivate 1159s # { 1159s # GData *qdata; 1159s # }; 1159s # 1159s # static void org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface); 1159s # 1159s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1159s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 1159s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceProxy) 1159s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 1159s # 1159s # #else 1159s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 1159s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 1159s # 1159s # #endif 1159s # static void 1159s # org_project_useful_interface_proxy_finalize (GObject *object) 1159s # { 1159s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (object); 1159s # g_datalist_clear (&proxy->priv->qdata); 1159s # G_OBJECT_CLASS (org_project_useful_interface_proxy_parent_class)->finalize (object); 1159s # } 1159s # 1159s # static void 1159s # org_project_useful_interface_proxy_get_property (GObject *object G_GNUC_UNUSED, 1159s # guint prop_id G_GNUC_UNUSED, 1159s # GValue *value G_GNUC_UNUSED, 1159s # GParamSpec *pspec G_GNUC_UNUSED) 1159s # { 1159s # } 1159s # 1159s # static void 1159s # org_project_useful_interface_proxy_set_property (GObject *object G_GNUC_UNUSED, 1159s # guint prop_id G_GNUC_UNUSED, 1159s # const GValue *value G_GNUC_UNUSED, 1159s # GParamSpec *pspec G_GNUC_UNUSED) 1159s # { 1159s # } 1159s # 1159s # static void 1159s # org_project_useful_interface_proxy_g_signal (GDBusProxy *proxy, 1159s # const gchar *sender_name G_GNUC_UNUSED, 1159s # const gchar *signal_name, 1159s # GVariant *parameters) 1159s # { 1159s # _ExtendedGDBusSignalInfo *info; 1159s # GVariantIter iter; 1159s # GVariant *child; 1159s # GValue *paramv; 1159s # gsize num_params; 1159s # gsize n; 1159s # guint signal_id; 1159s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, signal_name); 1159s # if (info == NULL) 1159s # return; 1159s # num_params = g_variant_n_children (parameters); 1159s # paramv = g_new0 (GValue, num_params + 1); 1159s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1159s # g_value_set_object (¶mv[0], proxy); 1159s # g_variant_iter_init (&iter, parameters); 1159s # n = 1; 1159s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1159s # { 1159s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 1159s # if (arg_info->use_gvariant) 1159s # { 1159s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1159s # g_value_set_variant (¶mv[n], child); 1159s # n++; 1159s # } 1159s # else 1159s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1159s # g_variant_unref (child); 1159s # } 1159s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1159s # g_signal_emitv (paramv, signal_id, 0, NULL); 1159s # for (n = 0; n < num_params + 1; n++) 1159s # g_value_unset (¶mv[n]); 1159s # g_free (paramv); 1159s # } 1159s # 1159s # static void 1159s # org_project_useful_interface_proxy_g_properties_changed (GDBusProxy *_proxy, 1159s # GVariant *changed_properties, 1159s # const gchar *const *invalidated_properties) 1159s # { 1159s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (_proxy); 1159s # guint n; 1159s # const gchar *key; 1159s # GVariantIter *iter; 1159s # _ExtendedGDBusPropertyInfo *info; 1159s # g_variant_get (changed_properties, "a{sv}", &iter); 1159s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 1159s # { 1159s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, key); 1159s # g_datalist_remove_data (&proxy->priv->qdata, key); 1159s # if (info != NULL) 1159s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1159s # } 1159s # g_variant_iter_free (iter); 1159s # for (n = 0; invalidated_properties[n] != NULL; n++) 1159s # { 1159s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, invalidated_properties[n]); 1159s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 1159s # if (info != NULL) 1159s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1159s # } 1159s # } 1159s # 1159s # static void 1159s # org_project_useful_interface_proxy_init (OrgProjectUsefulInterfaceProxy *proxy) 1159s # { 1159s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1159s # proxy->priv = org_project_useful_interface_proxy_get_instance_private (proxy); 1159s # #else 1159s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY, OrgProjectUsefulInterfaceProxyPrivate); 1159s # #endif 1159s # 1159s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_useful_interface_interface_info ()); 1159s # } 1159s # 1159s # static void 1159s # org_project_useful_interface_proxy_class_init (OrgProjectUsefulInterfaceProxyClass *klass) 1159s # { 1159s # GObjectClass *gobject_class; 1159s # GDBusProxyClass *proxy_class; 1159s # 1159s # gobject_class = G_OBJECT_CLASS (klass); 1159s # gobject_class->finalize = org_project_useful_interface_proxy_finalize; 1159s # gobject_class->get_property = org_project_useful_interface_proxy_get_property; 1159s # gobject_class->set_property = org_project_useful_interface_proxy_set_property; 1159s # 1159s # proxy_class = G_DBUS_PROXY_CLASS (klass); 1159s # proxy_class->g_signal = org_project_useful_interface_proxy_g_signal; 1159s # proxy_class->g_properties_changed = org_project_useful_interface_proxy_g_properties_changed; 1159s # 1159s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1159s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceProxyPrivate)); 1159s # #endif 1159s # } 1159s # 1159s # static void 1159s # org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 1159s # { 1159s # } 1159s # 1159s # /** 1159s # * org_project_useful_interface_proxy_new: 1159s # * @connection: A #GDBusConnection. 1159s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1159s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1159s # * @object_path: An object path. 1159s # * @cancellable: (nullable): A #GCancellable or %NULL. 1159s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1159s # * @user_data: User data to pass to @callback. 1159s # * 1159s # * Asynchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new() for more details. 1159s # * 1159s # * 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()). 1159s # * You can then call org_project_useful_interface_proxy_new_finish() to get the result of the operation. 1159s # * 1159s # * See org_project_useful_interface_proxy_new_sync() for the synchronous, blocking version of this constructor. 1159s # */ 1159s # void 1159s # org_project_useful_interface_proxy_new ( 1159s # GDBusConnection *connection, 1159s # GDBusProxyFlags flags, 1159s # const gchar *name, 1159s # const gchar *object_path, 1159s # GCancellable *cancellable, 1159s # GAsyncReadyCallback callback, 1159s # gpointer user_data) 1159s # { 1159s # 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); 1159s # } 1159s # 1159s # /** 1159s # * org_project_useful_interface_proxy_new_finish: 1159s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new(). 1159s # * @error: Return location for error or %NULL 1159s # * 1159s # * Finishes an operation started with org_project_useful_interface_proxy_new(). 1159s # * 1159s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1159s # */ 1159s # OrgProjectUsefulInterface * 1159s # org_project_useful_interface_proxy_new_finish ( 1159s # GAsyncResult *res, 1159s # GError **error) 1159s # { 1159s # GObject *ret; 1159s # GObject *source_object; 1159s # source_object = g_async_result_get_source_object (res); 1159s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1159s # g_object_unref (source_object); 1159s # if (ret != NULL) 1159s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1159s # else 1159s # return NULL; 1159s # } 1159s # 1159s # /** 1159s # * org_project_useful_interface_proxy_new_sync: 1159s # * @connection: A #GDBusConnection. 1159s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1159s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1159s # * @object_path: An object path. 1159s # * @cancellable: (nullable): A #GCancellable or %NULL. 1159s # * @error: Return location for error or %NULL 1159s # * 1159s # * Synchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new_sync() for more details. 1159s # * 1159s # * The calling thread is blocked until a reply is received. 1159s # * 1159s # * See org_project_useful_interface_proxy_new() for the asynchronous version of this constructor. 1159s # * 1159s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1159s # */ 1159s # OrgProjectUsefulInterface * 1159s # org_project_useful_interface_proxy_new_sync ( 1159s # GDBusConnection *connection, 1159s # GDBusProxyFlags flags, 1159s # const gchar *name, 1159s # const gchar *object_path, 1159s # GCancellable *cancellable, 1159s # GError **error) 1159s # { 1159s # GInitable *ret; 1159s # 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); 1159s # if (ret != NULL) 1159s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1159s # else 1159s # return NULL; 1159s # } 1159s # 1159s # 1159s # /** 1159s # * org_project_useful_interface_proxy_new_for_bus: 1159s # * @bus_type: A #GBusType. 1159s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1159s # * @name: A bus name (well-known or unique). 1159s # * @object_path: An object path. 1159s # * @cancellable: (nullable): A #GCancellable or %NULL. 1159s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1159s # * @user_data: User data to pass to @callback. 1159s # * 1159s # * Like org_project_useful_interface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 1159s # * 1159s # * 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()). 1159s # * You can then call org_project_useful_interface_proxy_new_for_bus_finish() to get the result of the operation. 1159s # * 1159s # * See org_project_useful_interface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 1159s # */ 1159s # void 1159s # org_project_useful_interface_proxy_new_for_bus ( 1159s # GBusType bus_type, 1159s # GDBusProxyFlags flags, 1159s # const gchar *name, 1159s # const gchar *object_path, 1159s # GCancellable *cancellable, 1159s # GAsyncReadyCallback callback, 1159s # gpointer user_data) 1159s # { 1159s # 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); 1159s # } 1159s # 1159s # /** 1159s # * org_project_useful_interface_proxy_new_for_bus_finish: 1159s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new_for_bus(). 1159s # * @error: Return location for error or %NULL 1159s # * 1159s # * Finishes an operation started with org_project_useful_interface_proxy_new_for_bus(). 1159s # * 1159s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1159s # */ 1159s # OrgProjectUsefulInterface * 1159s # org_project_useful_interface_proxy_new_for_bus_finish ( 1159s # GAsyncResult *res, 1159s # GError **error) 1159s # { 1159s # GObject *ret; 1159s # GObject *source_object; 1159s # source_object = g_async_result_get_source_object (res); 1159s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1159s # g_object_unref (source_object); 1159s # if (ret != NULL) 1159s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1159s # else 1159s # return NULL; 1159s # } 1159s # 1159s # /** 1159s # * org_project_useful_interface_proxy_new_for_bus_sync: 1159s # * @bus_type: A #GBusType. 1159s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1159s # * @name: A bus name (well-known or unique). 1159s # * @object_path: An object path. 1159s # * @cancellable: (nullable): A #GCancellable or %NULL. 1159s # * @error: Return location for error or %NULL 1159s # * 1159s # * Like org_project_useful_interface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 1159s # * 1159s # * The calling thread is blocked until a reply is received. 1159s # * 1159s # * See org_project_useful_interface_proxy_new_for_bus() for the asynchronous version of this constructor. 1159s # * 1159s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1159s # */ 1159s # OrgProjectUsefulInterface * 1159s # org_project_useful_interface_proxy_new_for_bus_sync ( 1159s # GBusType bus_type, 1159s # GDBusProxyFlags flags, 1159s # const gchar *name, 1159s # const gchar *object_path, 1159s # GCancellable *cancellable, 1159s # GError **error) 1159s # { 1159s # GInitable *ret; 1159s # 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); 1159s # if (ret != NULL) 1159s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1159s # else 1159s # return NULL; 1159s # } 1159s # 1159s # 1159s # /* ------------------------------------------------------------------------ */ 1159s # 1159s # /** 1159s # * OrgProjectUsefulInterfaceSkeleton: 1159s # * 1159s # * The #OrgProjectUsefulInterfaceSkeleton structure contains only private data and should only be accessed using the provided API. 1159s # */ 1159s # 1159s # /** 1159s # * OrgProjectUsefulInterfaceSkeletonClass: 1159s # * @parent_class: The parent class. 1159s # * 1159s # * Class structure for #OrgProjectUsefulInterfaceSkeleton. 1159s # */ 1159s # 1159s # struct _OrgProjectUsefulInterfaceSkeletonPrivate 1159s # { 1159s # GValue *properties; 1159s # GList *changed_properties; 1159s # GSource *changed_properties_idle_source; 1159s # GMainContext *context; 1159s # GMutex lock; 1159s # }; 1159s # 1159s # static void 1159s # _org_project_useful_interface_skeleton_handle_method_call ( 1159s # GDBusConnection *connection G_GNUC_UNUSED, 1159s # const gchar *sender G_GNUC_UNUSED, 1159s # const gchar *object_path G_GNUC_UNUSED, 1159s # const gchar *interface_name, 1159s # const gchar *method_name, 1159s # GVariant *parameters, 1159s # GDBusMethodInvocation *invocation, 1159s # gpointer user_data) 1159s # { 1159s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1159s # _ExtendedGDBusMethodInfo *info; 1159s # GVariantIter iter; 1159s # GVariant *child; 1159s # GValue *paramv; 1159s # gsize num_params; 1159s # guint num_extra; 1159s # gsize n; 1159s # guint signal_id; 1159s # GValue return_value = G_VALUE_INIT; 1159s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 1159s # g_assert (info != NULL); 1159s # num_params = g_variant_n_children (parameters); 1159s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 1159s # n = 0; 1159s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1159s # g_value_set_object (¶mv[n++], skeleton); 1159s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 1159s # g_value_set_object (¶mv[n++], invocation); 1159s # if (info->pass_fdlist) 1159s # { 1159s # #ifdef G_OS_UNIX 1159s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 1159s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 1159s # #else 1159s # g_assert_not_reached (); 1159s # #endif 1159s # } 1159s # g_variant_iter_init (&iter, parameters); 1159s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1159s # { 1159s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 1159s # if (arg_info->use_gvariant) 1159s # { 1159s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1159s # g_value_set_variant (¶mv[n], child); 1159s # n++; 1159s # } 1159s # else 1159s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1159s # g_variant_unref (child); 1159s # } 1159s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1159s # g_value_init (&return_value, G_TYPE_BOOLEAN); 1159s # g_signal_emitv (paramv, signal_id, 0, &return_value); 1159s # if (!g_value_get_boolean (&return_value)) 1159s # 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); 1159s # g_value_unset (&return_value); 1159s # for (n = 0; n < num_params + num_extra; n++) 1159s # g_value_unset (¶mv[n]); 1159s # g_free (paramv); 1159s # } 1159s # 1159s # static GVariant * 1159s # _org_project_useful_interface_skeleton_handle_get_property ( 1159s # GDBusConnection *connection G_GNUC_UNUSED, 1159s # const gchar *sender G_GNUC_UNUSED, 1159s # const gchar *object_path G_GNUC_UNUSED, 1159s # const gchar *interface_name G_GNUC_UNUSED, 1159s # const gchar *property_name, 1159s # GError **error, 1159s # gpointer user_data) 1159s # { 1159s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1159s # GValue value = G_VALUE_INIT; 1159s # GParamSpec *pspec; 1159s # _ExtendedGDBusPropertyInfo *info; 1159s # GVariant *ret; 1159s # ret = NULL; 1159s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 1159s # g_assert (info != NULL); 1159s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1159s # if (pspec == NULL) 1159s # { 1159s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1159s # } 1159s # else 1159s # { 1159s # g_value_init (&value, pspec->value_type); 1159s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1159s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 1159s # g_value_unset (&value); 1159s # } 1159s # return ret; 1159s # } 1159s # 1159s # static gboolean 1159s # _org_project_useful_interface_skeleton_handle_set_property ( 1159s # GDBusConnection *connection G_GNUC_UNUSED, 1159s # const gchar *sender G_GNUC_UNUSED, 1159s # const gchar *object_path G_GNUC_UNUSED, 1159s # const gchar *interface_name G_GNUC_UNUSED, 1159s # const gchar *property_name, 1159s # GVariant *variant, 1159s # GError **error, 1159s # gpointer user_data) 1159s # { 1159s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1159s # GValue value = G_VALUE_INIT; 1159s # GParamSpec *pspec; 1159s # _ExtendedGDBusPropertyInfo *info; 1159s # gboolean ret; 1159s # ret = FALSE; 1159s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 1159s # g_assert (info != NULL); 1159s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1159s # if (pspec == NULL) 1159s # { 1159s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1159s # } 1159s # else 1159s # { 1159s # if (info->use_gvariant) 1159s # g_value_set_variant (&value, variant); 1159s # else 1159s # g_dbus_gvariant_to_gvalue (variant, &value); 1159s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1159s # g_value_unset (&value); 1159s # ret = TRUE; 1159s # } 1159s # return ret; 1159s # } 1159s # 1159s # static const GDBusInterfaceVTable _org_project_useful_interface_skeleton_vtable = 1159s # { 1159s # _org_project_useful_interface_skeleton_handle_method_call, 1159s # _org_project_useful_interface_skeleton_handle_get_property, 1159s # _org_project_useful_interface_skeleton_handle_set_property, 1159s # {NULL} 1159s # }; 1159s # 1159s # static GDBusInterfaceInfo * 1159s # org_project_useful_interface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1159s # { 1159s # return org_project_useful_interface_interface_info (); 1159s # } 1159s # 1159s # static GDBusInterfaceVTable * 1159s # org_project_useful_interface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1159s # { 1159s # return (GDBusInterfaceVTable *) &_org_project_useful_interface_skeleton_vtable; 1159s # } 1159s # 1159s # static GVariant * 1159s # org_project_useful_interface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 1159s # { 1159s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (_skeleton); 1159s # 1159s # GVariantBuilder builder; 1159s # guint n; 1159s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 1159s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 1159s # #else 1159s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 1159s # #endif 1159s # if (_org_project_useful_interface_interface_info.parent_struct.properties == NULL) 1159s # goto out; 1159s # for (n = 0; _org_project_useful_interface_interface_info.parent_struct.properties[n] != NULL; n++) 1159s # { 1159s # GDBusPropertyInfo *info = _org_project_useful_interface_interface_info.parent_struct.properties[n]; 1159s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 1159s # { 1159s # GVariant *value; 1159s # 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); 1159s # if (value != NULL) 1159s # { 1159s # g_variant_take_ref (value); 1159s # g_variant_builder_add (&builder, "{sv}", info->name, value); 1159s # g_variant_unref (value); 1159s # } 1159s # } 1159s # } 1159s # out: 1159s # return g_variant_builder_end (&builder); 1159s # } 1159s # 1159s # static void 1159s # org_project_useful_interface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 1159s # { 1159s # } 1159s # 1159s # static void 1159s # _org_project_useful_interface_on_signal_simple_signal ( 1159s # OrgProjectUsefulInterface *object) 1159s # { 1159s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (object); 1159s # 1159s # GList *connections, *l; 1159s # GVariant *signal_variant; 1159s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 1159s # 1159s # signal_variant = g_variant_ref_sink (g_variant_new ("()")); 1159s # for (l = connections; l != NULL; l = l->next) 1159s # { 1159s # GDBusConnection *connection = l->data; 1159s # g_dbus_connection_emit_signal (connection, 1159s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.UsefulInterface", "SimpleSignal", 1159s # signal_variant, NULL); 1159s # } 1159s # g_variant_unref (signal_variant); 1159s # g_list_free_full (connections, g_object_unref); 1159s # } 1159s # 1159s # static void org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface); 1159s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1159s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1159s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceSkeleton) 1159s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 1159s # 1159s # #else 1159s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1159s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 1159s # 1159s # #endif 1159s # static void 1159s # org_project_useful_interface_skeleton_finalize (GObject *object) 1159s # { 1159s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (object); 1159s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 1159s # if (skeleton->priv->changed_properties_idle_source != NULL) 1159s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 1159s # g_main_context_unref (skeleton->priv->context); 1159s # g_mutex_clear (&skeleton->priv->lock); 1159s # G_OBJECT_CLASS (org_project_useful_interface_skeleton_parent_class)->finalize (object); 1159s # } 1159s # 1159s # static void 1159s # org_project_useful_interface_skeleton_init (OrgProjectUsefulInterfaceSkeleton *skeleton) 1159s # { 1159s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1159s # skeleton->priv = org_project_useful_interface_skeleton_get_instance_private (skeleton); 1159s # #else 1159s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, OrgProjectUsefulInterfaceSkeletonPrivate); 1159s # #endif 1159s # 1159s # g_mutex_init (&skeleton->priv->lock); 1159s # skeleton->priv->context = g_main_context_ref_thread_default (); 1159s # } 1159s # 1159s # static void 1159s # org_project_useful_interface_skeleton_class_init (OrgProjectUsefulInterfaceSkeletonClass *klass) 1159s # { 1159s # GObjectClass *gobject_class; 1159s # GDBusInterfaceSkeletonClass *skeleton_class; 1159s # 1159s # gobject_class = G_OBJECT_CLASS (klass); 1159s # gobject_class->finalize = org_project_useful_interface_skeleton_finalize; 1159s # 1159s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 1159s # skeleton_class->get_info = org_project_useful_interface_skeleton_dbus_interface_get_info; 1159s # skeleton_class->get_properties = org_project_useful_interface_skeleton_dbus_interface_get_properties; 1159s # skeleton_class->flush = org_project_useful_interface_skeleton_dbus_interface_flush; 1159s # skeleton_class->get_vtable = org_project_useful_interface_skeleton_dbus_interface_get_vtable; 1159s # 1159s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1159s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceSkeletonPrivate)); 1159s # #endif 1159s # } 1159s # 1159s # static void 1159s # org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface) 1159s # { 1159s # iface->simple_signal = _org_project_useful_interface_on_signal_simple_signal; 1159s # } 1159s # 1159s # /** 1159s # * org_project_useful_interface_skeleton_new: 1159s # * 1159s # * Creates a skeleton object for the D-Bus interface org.project.UsefulInterface. 1159s # * 1159s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceSkeleton): The skeleton object. 1159s # */ 1159s # OrgProjectUsefulInterface * 1159s # org_project_useful_interface_skeleton_new (void) 1159s # { 1159s # return ORG_PROJECT_USEFUL_INTERFACE (g_object_new (TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, NULL)); 1159s # } 1159s # 1159s # /* ------------------------------------------------------------------------ 1159s # * Code for interface org.project.OtherIface 1159s # * ------------------------------------------------------------------------ 1159s # */ 1159s # 1159s # /** 1159s # * SECTION:OrgProjectOtherIface 1159s # * @title: OrgProjectOtherIface 1159s # * @short_description: Generated C code for the org.project.OtherIface D-Bus interface 1159s # * 1159s # * This section contains code for working with the org.project.OtherIface D-Bus interface in C. 1159s # */ 1159s # 1159s # enum 1159s # { 1159s # _ORG_PROJECT_OTHER_IFACE_SIMPLE_SIGNAL, 1159s # }; 1159s # 1159s # static unsigned _ORG_PROJECT_OTHER_IFACE_SIGNALS[1] = { 0 }; 1159s # 1159s # /* ---- Introspection data for org.project.OtherIface ---- */ 1159s # 1159s # static const _ExtendedGDBusSignalInfo _org_project_other_iface_signal_info_simple_signal = 1159s # { 1159s # { 1159s # -1, 1159s # (gchar *) "SimpleSignal", 1159s # NULL, 1159s # NULL 1159s # }, 1159s # "simple-signal" 1159s # }; 1159s # 1159s # static const GDBusSignalInfo * const _org_project_other_iface_signal_info_pointers[] = 1159s # { 1159s # &_org_project_other_iface_signal_info_simple_signal.parent_struct, 1159s # NULL 1159s # }; 1159s # 1159s # static const _ExtendedGDBusInterfaceInfo _org_project_other_iface_interface_info = 1159s # { 1159s # { 1159s # -1, 1159s # (gchar *) "org.project.OtherIface", 1159s # NULL, 1159s # (GDBusSignalInfo **) &_org_project_other_iface_signal_info_pointers, 1159s # NULL, 1159s # NULL 1159s # }, 1159s # "org-project-other-iface", 1159s # }; 1159s # 1159s # 1159s # /** 1159s # * org_project_other_iface_interface_info: 1159s # * 1159s # * Gets a machine-readable description of the org.project.OtherIface D-Bus interface. 1159s # * 1159s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 1159s # */ 1159s # GDBusInterfaceInfo * 1159s # org_project_other_iface_interface_info (void) 1159s # { 1159s # return (GDBusInterfaceInfo *) &_org_project_other_iface_interface_info.parent_struct; 1159s # } 1159s # 1159s # /** 1159s # * org_project_other_iface_override_properties: 1159s # * @klass: The class structure for a #GObject derived class. 1159s # * @property_id_begin: The property id to assign to the first overridden property. 1159s # * 1159s # * Overrides all #GObject properties in the #OrgProjectOtherIface interface for a concrete class. 1159s # * The properties are overridden in the order they are defined. 1159s # * 1159s # * Returns: The last property id. 1159s # */ 1159s # guint 1159s # org_project_other_iface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 1159s # { 1159s # return property_id_begin - 1; 1159s # } 1159s # 1159s # 1159s # inline static void 1159s # org_project_other_iface_signal_marshal_simple_signal ( 1159s # GClosure *closure, 1159s # GValue *return_value, 1159s # unsigned int n_param_values, 1159s # const GValue *param_values, 1159s # void *invocation_hint, 1159s # void *marshal_data) 1159s # { 1159s # g_cclosure_marshal_VOID__VOID (closure, 1159s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1159s # } 1159s # 1159s # 1159s # /** 1159s # * OrgProjectOtherIface: 1159s # * 1159s # * Abstract interface type for the D-Bus interface org.project.OtherIface. 1159s # */ 1159s # 1159s # /** 1159s # * OrgProjectOtherIfaceIface: 1159s # * @parent_iface: The parent interface. 1159s # * @simple_signal: Handler for the #OrgProjectOtherIface::simple-signal signal. 1159s # * 1159s # * Virtual table for the D-Bus interface org.project.OtherIface. 1159s # */ 1159s # 1159s # typedef OrgProjectOtherIfaceIface OrgProjectOtherIfaceInterface; 1159s # G_DEFINE_INTERFACE (OrgProjectOtherIface, org_project_other_iface, G_TYPE_OBJECT) 1159s # 1159s # static void 1159s # org_project_other_iface_default_init (OrgProjectOtherIfaceIface *iface) 1159s # { 1159s # /* GObject signals for received D-Bus signals: */ 1159s # /** 1159s # * OrgProjectOtherIface::simple-signal: 1159s # * @object: A #OrgProjectOtherIface. 1159s # * 1159s # * On the client-side, this signal is emitted whenever the D-Bus signal "SimpleSignal" is received. 1159s # * 1159s # * 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. 1159s # */ 1159s # _ORG_PROJECT_OTHER_IFACE_SIGNALS[_ORG_PROJECT_OTHER_IFACE_SIMPLE_SIGNAL] = 1159s # g_signal_new ("simple-signal", 1159s # G_TYPE_FROM_INTERFACE (iface), 1159s # G_SIGNAL_RUN_LAST, 1159s # G_STRUCT_OFFSET (OrgProjectOtherIfaceIface, simple_signal), 1159s # NULL, 1159s # NULL, 1159s # org_project_other_iface_signal_marshal_simple_signal, 1159s # G_TYPE_NONE, 1159s # 0); 1159s # 1159s # } 1159s # 1159s # /** 1159s # * org_project_other_iface_emit_simple_signal: 1159s # * @object: A #OrgProjectOtherIface. 1159s # * 1159s # * Emits the "SimpleSignal" D-Bus signal. 1159s # */ 1159s # void 1159s # org_project_other_iface_emit_simple_signal ( 1159s # OrgProjectOtherIface *object) 1159s # { 1159s # g_signal_emit (object, _ORG_PROJECT_OTHER_IFACE_SIGNALS[_ORG_PROJECT_OTHER_IFACE_SIMPLE_SIGNAL], 0); 1159s # } 1159s # 1159s # /* ------------------------------------------------------------------------ */ 1159s # 1159s # /** 1159s # * OrgProjectOtherIfaceProxy: 1159s # * 1159s # * The #OrgProjectOtherIfaceProxy structure contains only private data and should only be accessed using the provided API. 1159s # */ 1159s # 1159s # /** 1159s # * OrgProjectOtherIfaceProxyClass: 1159s # * @parent_class: The parent class. 1159s # * 1159s # * Class structure for #OrgProjectOtherIfaceProxy. 1159s # */ 1159s # 1159s # struct _OrgProjectOtherIfaceProxyPrivate 1159s # { 1159s # GData *qdata; 1159s # }; 1159s # 1159s # static void org_project_other_iface_proxy_iface_init (OrgProjectOtherIfaceIface *iface); 1159s # 1159s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1159s # G_DEFINE_TYPE_WITH_CODE (OrgProjectOtherIfaceProxy, org_project_other_iface_proxy, G_TYPE_DBUS_PROXY, 1159s # G_ADD_PRIVATE (OrgProjectOtherIfaceProxy) 1159s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_OTHER_IFACE, org_project_other_iface_proxy_iface_init)) 1159s # 1159s # #else 1159s # G_DEFINE_TYPE_WITH_CODE (OrgProjectOtherIfaceProxy, org_project_other_iface_proxy, G_TYPE_DBUS_PROXY, 1159s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_OTHER_IFACE, org_project_other_iface_proxy_iface_init)) 1159s # 1159s # #endif 1159s # static void 1159s # org_project_other_iface_proxy_finalize (GObject *object) 1159s # { 1159s # OrgProjectOtherIfaceProxy *proxy = ORG_PROJECT_OTHER_IFACE_PROXY (object); 1159s # g_datalist_clear (&proxy->priv->qdata); 1159s # G_OBJECT_CLASS (org_project_other_iface_proxy_parent_class)->finalize (object); 1159s # } 1159s # 1159s # static void 1159s # org_project_other_iface_proxy_get_property (GObject *object G_GNUC_UNUSED, 1159s # guint prop_id G_GNUC_UNUSED, 1159s # GValue *value G_GNUC_UNUSED, 1159s # GParamSpec *pspec G_GNUC_UNUSED) 1159s # { 1159s # } 1159s # 1159s # static void 1159s # org_project_other_iface_proxy_set_property (GObject *object G_GNUC_UNUSED, 1159s # guint prop_id G_GNUC_UNUSED, 1159s # const GValue *value G_GNUC_UNUSED, 1159s # GParamSpec *pspec G_GNUC_UNUSED) 1159s # { 1159s # } 1159s # 1159s # static void 1159s # org_project_other_iface_proxy_g_signal (GDBusProxy *proxy, 1159s # const gchar *sender_name G_GNUC_UNUSED, 1159s # const gchar *signal_name, 1159s # GVariant *parameters) 1159s # { 1159s # _ExtendedGDBusSignalInfo *info; 1159s # GVariantIter iter; 1159s # GVariant *child; 1159s # GValue *paramv; 1159s # gsize num_params; 1159s # gsize n; 1159s # guint signal_id; 1159s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_other_iface_interface_info.parent_struct, signal_name); 1159s # if (info == NULL) 1159s # return; 1159s # num_params = g_variant_n_children (parameters); 1159s # paramv = g_new0 (GValue, num_params + 1); 1159s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_OTHER_IFACE); 1159s # g_value_set_object (¶mv[0], proxy); 1159s # g_variant_iter_init (&iter, parameters); 1159s # n = 1; 1159s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1159s # { 1159s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 1159s # if (arg_info->use_gvariant) 1159s # { 1159s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1159s # g_value_set_variant (¶mv[n], child); 1159s # n++; 1159s # } 1159s # else 1159s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1159s # g_variant_unref (child); 1159s # } 1159s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_OTHER_IFACE); 1159s # g_signal_emitv (paramv, signal_id, 0, NULL); 1159s # for (n = 0; n < num_params + 1; n++) 1159s # g_value_unset (¶mv[n]); 1159s # g_free (paramv); 1159s # } 1159s # 1159s # static void 1159s # org_project_other_iface_proxy_g_properties_changed (GDBusProxy *_proxy, 1159s # GVariant *changed_properties, 1159s # const gchar *const *invalidated_properties) 1159s # { 1159s # OrgProjectOtherIfaceProxy *proxy = ORG_PROJECT_OTHER_IFACE_PROXY (_proxy); 1159s # guint n; 1159s # const gchar *key; 1159s # GVariantIter *iter; 1159s # _ExtendedGDBusPropertyInfo *info; 1159s # g_variant_get (changed_properties, "a{sv}", &iter); 1159s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 1159s # { 1159s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_other_iface_interface_info.parent_struct, key); 1159s # g_datalist_remove_data (&proxy->priv->qdata, key); 1159s # if (info != NULL) 1159s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1159s # } 1159s # g_variant_iter_free (iter); 1159s # for (n = 0; invalidated_properties[n] != NULL; n++) 1159s # { 1159s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_other_iface_interface_info.parent_struct, invalidated_properties[n]); 1159s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 1159s # if (info != NULL) 1159s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1159s # } 1159s # } 1159s # 1159s # static void 1159s # org_project_other_iface_proxy_init (OrgProjectOtherIfaceProxy *proxy) 1159s # { 1159s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1159s # proxy->priv = org_project_other_iface_proxy_get_instance_private (proxy); 1159s # #else 1159s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_OTHER_IFACE_PROXY, OrgProjectOtherIfaceProxyPrivate); 1159s # #endif 1159s # 1159s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_other_iface_interface_info ()); 1159s # } 1159s # 1159s # static void 1159s # org_project_other_iface_proxy_class_init (OrgProjectOtherIfaceProxyClass *klass) 1159s # { 1159s # GObjectClass *gobject_class; 1159s # GDBusProxyClass *proxy_class; 1159s # 1159s # gobject_class = G_OBJECT_CLASS (klass); 1159s # gobject_class->finalize = org_project_other_iface_proxy_finalize; 1159s # gobject_class->get_property = org_project_other_iface_proxy_get_property; 1159s # gobject_class->set_property = org_project_other_iface_proxy_set_property; 1159s # 1159s # proxy_class = G_DBUS_PROXY_CLASS (klass); 1159s # proxy_class->g_signal = org_project_other_iface_proxy_g_signal; 1159s # proxy_class->g_properties_changed = org_project_other_iface_proxy_g_properties_changed; 1159s # 1159s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1159s # g_type_class_add_private (klass, sizeof (OrgProjectOtherIfaceProxyPrivate)); 1159s # #endif 1159s # } 1159s # 1159s # static void 1159s # org_project_other_iface_proxy_iface_init (OrgProjectOtherIfaceIface *iface G_GNUC_UNUSED) 1159s # { 1159s # } 1159s # 1159s # /** 1159s # * org_project_other_iface_proxy_new: 1159s # * @connection: A #GDBusConnection. 1159s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1159s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1159s # * @object_path: An object path. 1159s # * @cancellable: (nullable): A #GCancellable or %NULL. 1159s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1159s # * @user_data: User data to pass to @callback. 1159s # * 1159s # * Asynchronously creates a proxy for the D-Bus interface org.project.OtherIface. See g_dbus_proxy_new() for more details. 1159s # * 1159s # * 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()). 1159s # * You can then call org_project_other_iface_proxy_new_finish() to get the result of the operation. 1159s # * 1159s # * See org_project_other_iface_proxy_new_sync() for the synchronous, blocking version of this constructor. 1159s # */ 1159s # void 1159s # org_project_other_iface_proxy_new ( 1159s # GDBusConnection *connection, 1159s # GDBusProxyFlags flags, 1159s # const gchar *name, 1159s # const gchar *object_path, 1159s # GCancellable *cancellable, 1159s # GAsyncReadyCallback callback, 1159s # gpointer user_data) 1159s # { 1159s # 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); 1159s # } 1159s # 1159s # /** 1159s # * org_project_other_iface_proxy_new_finish: 1159s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_other_iface_proxy_new(). 1159s # * @error: Return location for error or %NULL 1159s # * 1159s # * Finishes an operation started with org_project_other_iface_proxy_new(). 1159s # * 1159s # * Returns: (transfer full) (type OrgProjectOtherIfaceProxy): The constructed proxy object or %NULL if @error is set. 1159s # */ 1159s # OrgProjectOtherIface * 1159s # org_project_other_iface_proxy_new_finish ( 1159s # GAsyncResult *res, 1159s # GError **error) 1159s # { 1159s # GObject *ret; 1159s # GObject *source_object; 1159s # source_object = g_async_result_get_source_object (res); 1159s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1159s # g_object_unref (source_object); 1159s # if (ret != NULL) 1159s # return ORG_PROJECT_OTHER_IFACE (ret); 1159s # else 1159s # return NULL; 1159s # } 1159s # 1159s # /** 1159s # * org_project_other_iface_proxy_new_sync: 1159s # * @connection: A #GDBusConnection. 1159s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1159s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1159s # * @object_path: An object path. 1159s # * @cancellable: (nullable): A #GCancellable or %NULL. 1159s # * @error: Return location for error or %NULL 1159s # * 1159s # * Synchronously creates a proxy for the D-Bus interface org.project.OtherIface. See g_dbus_proxy_new_sync() for more details. 1159s # * 1159s # * The calling thread is blocked until a reply is received. 1159s # * 1159s # * See org_project_other_iface_proxy_new() for the asynchronous version of this constructor. 1159s # * 1159s # * Returns: (transfer full) (type OrgProjectOtherIfaceProxy): The constructed proxy object or %NULL if @error is set. 1159s # */ 1159s # OrgProjectOtherIface * 1159s # org_project_other_iface_proxy_new_sync ( 1159s # GDBusConnection *connection, 1159s # GDBusProxyFlags flags, 1159s # const gchar *name, 1159s # const gchar *object_path, 1159s # GCancellable *cancellable, 1159s # GError **error) 1159s # { 1159s # GInitable *ret; 1159s # 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); 1159s # if (ret != NULL) 1159s # return ORG_PROJECT_OTHER_IFACE (ret); 1159s # else 1159s # return NULL; 1159s # } 1159s # 1159s # 1159s # /** 1159s # * org_project_other_iface_proxy_new_for_bus: 1159s # * @bus_type: A #GBusType. 1159s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1159s # * @name: A bus name (well-known or unique). 1159s # * @object_path: An object path. 1159s # * @cancellable: (nullable): A #GCancellable or %NULL. 1159s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1159s # * @user_data: User data to pass to @callback. 1159s # * 1159s # * Like org_project_other_iface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 1159s # * 1159s # * 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()). 1159s # * You can then call org_project_other_iface_proxy_new_for_bus_finish() to get the result of the operation. 1159s # * 1159s # * See org_project_other_iface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 1159s # */ 1159s # void 1159s # org_project_other_iface_proxy_new_for_bus ( 1159s # GBusType bus_type, 1159s # GDBusProxyFlags flags, 1159s # const gchar *name, 1159s # const gchar *object_path, 1159s # GCancellable *cancellable, 1159s # GAsyncReadyCallback callback, 1159s # gpointer user_data) 1159s # { 1159s # 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); 1159s # } 1159s # 1159s # /** 1159s # * org_project_other_iface_proxy_new_for_bus_finish: 1159s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_other_iface_proxy_new_for_bus(). 1159s # * @error: Return location for error or %NULL 1159s # * 1159s # * Finishes an operation started with org_project_other_iface_proxy_new_for_bus(). 1159s # * 1159s # * Returns: (transfer full) (type OrgProjectOtherIfaceProxy): The constructed proxy object or %NULL if @error is set. 1159s # */ 1159s # OrgProjectOtherIface * 1159s # org_project_other_iface_proxy_new_for_bus_finish ( 1159s # GAsyncResult *res, 1159s # GError **error) 1159s # { 1159s # GObject *ret; 1159s # GObject *source_object; 1159s # source_object = g_async_result_get_source_object (res); 1159s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1159s # g_object_unref (source_object); 1159s # if (ret != NULL) 1159s # return ORG_PROJECT_OTHER_IFACE (ret); 1159s # else 1159s # return NULL; 1159s # } 1159s # 1159s # /** 1159s # * org_project_other_iface_proxy_new_for_bus_sync: 1159s # * @bus_type: A #GBusType. 1159s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1159s # * @name: A bus name (well-known or unique). 1159s # * @object_path: An object path. 1159s # * @cancellable: (nullable): A #GCancellable or %NULL. 1159s # * @error: Return location for error or %NULL 1159s # * 1159s # * Like org_project_other_iface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 1159s # * 1159s # * The calling thread is blocked until a reply is received. 1159s # * 1159s # * See org_project_other_iface_proxy_new_for_bus() for the asynchronous version of this constructor. 1159s # * 1159s # * Returns: (transfer full) (type OrgProjectOtherIfaceProxy): The constructed proxy object or %NULL if @error is set. 1159s # */ 1159s # OrgProjectOtherIface * 1159s # org_project_other_iface_proxy_new_for_bus_sync ( 1159s # GBusType bus_type, 1159s # GDBusProxyFlags flags, 1159s # const gchar *name, 1159s # const gchar *object_path, 1159s # GCancellable *cancellable, 1159s # GError **error) 1159s # { 1159s # GInitable *ret; 1159s # 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); 1159s # if (ret != NULL) 1159s # return ORG_PROJECT_OTHER_IFACE (ret); 1159s # else 1159s # return NULL; 1159s # } 1159s # 1159s # 1159s # /* ------------------------------------------------------------------------ */ 1159s # 1159s # /** 1159s # * OrgProjectOtherIfaceSkeleton: 1159s # * 1159s # * The #OrgProjectOtherIfaceSkeleton structure contains only private data and should only be accessed using the provided API. 1159s # */ 1159s # 1159s # /** 1159s # * OrgProjectOtherIfaceSkeletonClass: 1159s # * @parent_class: The parent class. 1159s # * 1159s # * Class structure for #OrgProjectOtherIfaceSkeleton. 1159s # */ 1159s # 1159s # struct _OrgProjectOtherIfaceSkeletonPrivate 1159s # { 1159s # GValue *properties; 1159s # GList *changed_properties; 1159s # GSource *changed_properties_idle_source; 1159s # GMainContext *context; 1159s # GMutex lock; 1159s # }; 1159s # 1159s # static void 1159s # _org_project_other_iface_skeleton_handle_method_call ( 1159s # GDBusConnection *connection G_GNUC_UNUSED, 1159s # const gchar *sender G_GNUC_UNUSED, 1159s # const gchar *object_path G_GNUC_UNUSED, 1159s # const gchar *interface_name, 1159s # const gchar *method_name, 1159s # GVariant *parameters, 1159s # GDBusMethodInvocation *invocation, 1159s # gpointer user_data) 1159s # { 1159s # OrgProjectOtherIfaceSkeleton *skeleton = ORG_PROJECT_OTHER_IFACE_SKELETON (user_data); 1159s # _ExtendedGDBusMethodInfo *info; 1159s # GVariantIter iter; 1159s # GVariant *child; 1159s # GValue *paramv; 1159s # gsize num_params; 1159s # guint num_extra; 1159s # gsize n; 1159s # guint signal_id; 1159s # GValue return_value = G_VALUE_INIT; 1159s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 1159s # g_assert (info != NULL); 1159s # num_params = g_variant_n_children (parameters); 1159s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 1159s # n = 0; 1159s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_OTHER_IFACE); 1159s # g_value_set_object (¶mv[n++], skeleton); 1159s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 1159s # g_value_set_object (¶mv[n++], invocation); 1159s # if (info->pass_fdlist) 1159s # { 1159s # #ifdef G_OS_UNIX 1159s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 1159s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 1159s # #else 1159s # g_assert_not_reached (); 1159s # #endif 1159s # } 1159s # g_variant_iter_init (&iter, parameters); 1159s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1159s # { 1159s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 1159s # if (arg_info->use_gvariant) 1159s # { 1159s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1159s # g_value_set_variant (¶mv[n], child); 1159s # n++; 1159s # } 1159s # else 1159s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1159s # g_variant_unref (child); 1159s # } 1159s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_OTHER_IFACE); 1159s # g_value_init (&return_value, G_TYPE_BOOLEAN); 1159s # g_signal_emitv (paramv, signal_id, 0, &return_value); 1159s # if (!g_value_get_boolean (&return_value)) 1159s # 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); 1159s # g_value_unset (&return_value); 1159s # for (n = 0; n < num_params + num_extra; n++) 1159s # g_value_unset (¶mv[n]); 1159s # g_free (paramv); 1159s # } 1159s # 1159s # static GVariant * 1159s # _org_project_other_iface_skeleton_handle_get_property ( 1159s # GDBusConnection *connection G_GNUC_UNUSED, 1159s # const gchar *sender G_GNUC_UNUSED, 1159s # const gchar *object_path G_GNUC_UNUSED, 1159s # const gchar *interface_name G_GNUC_UNUSED, 1159s # const gchar *property_name, 1159s # GError **error, 1159s # gpointer user_data) 1159s # { 1159s # OrgProjectOtherIfaceSkeleton *skeleton = ORG_PROJECT_OTHER_IFACE_SKELETON (user_data); 1159s # GValue value = G_VALUE_INIT; 1159s # GParamSpec *pspec; 1159s # _ExtendedGDBusPropertyInfo *info; 1159s # GVariant *ret; 1159s # ret = NULL; 1159s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_other_iface_interface_info.parent_struct, property_name); 1159s # g_assert (info != NULL); 1159s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1159s # if (pspec == NULL) 1159s # { 1159s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1159s # } 1159s # else 1159s # { 1159s # g_value_init (&value, pspec->value_type); 1159s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1159s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 1159s # g_value_unset (&value); 1159s # } 1159s # return ret; 1159s # } 1159s # 1159s # static gboolean 1159s # _org_project_other_iface_skeleton_handle_set_property ( 1159s # GDBusConnection *connection G_GNUC_UNUSED, 1159s # const gchar *sender G_GNUC_UNUSED, 1159s # const gchar *object_path G_GNUC_UNUSED, 1159s # const gchar *interface_name G_GNUC_UNUSED, 1159s # const gchar *property_name, 1159s # GVariant *variant, 1159s # GError **error, 1159s # gpointer user_data) 1159s # { 1159s # OrgProjectOtherIfaceSkeleton *skeleton = ORG_PROJECT_OTHER_IFACE_SKELETON (user_data); 1159s # GValue value = G_VALUE_INIT; 1159s # GParamSpec *pspec; 1159s # _ExtendedGDBusPropertyInfo *info; 1159s # gboolean ret; 1159s # ret = FALSE; 1159s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_other_iface_interface_info.parent_struct, property_name); 1159s # g_assert (info != NULL); 1159s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1159s # if (pspec == NULL) 1159s # { 1159s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1159s # } 1159s # else 1159s # { 1159s # if (info->use_gvariant) 1159s # g_value_set_variant (&value, variant); 1159s # else 1159s # g_dbus_gvariant_to_gvalue (variant, &value); 1159s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1159s # g_value_unset (&value); 1159s # ret = TRUE; 1159s # } 1159s # return ret; 1159s # } 1159s # 1159s # static const GDBusInterfaceVTable _org_project_other_iface_skeleton_vtable = 1159s # { 1159s # _org_project_other_iface_skeleton_handle_method_call, 1159s # _org_project_other_iface_skeleton_handle_get_property, 1159s # _org_project_other_iface_skeleton_handle_set_property, 1159s # {NULL} 1159s # }; 1159s # 1159s # static GDBusInterfaceInfo * 1159s # org_project_other_iface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1159s # { 1159s # return org_project_other_iface_interface_info (); 1159s # } 1159s # 1159s # static GDBusInterfaceVTable * 1159s # org_project_other_iface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1159s # { 1159s # return (GDBusInterfaceVTable *) &_org_project_other_iface_skeleton_vtable; 1159s # } 1159s # 1159s # static GVariant * 1159s # org_project_other_iface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 1159s # { 1159s # OrgProjectOtherIfaceSkeleton *skeleton = ORG_PROJECT_OTHER_IFACE_SKELETON (_skeleton); 1159s # 1159s # GVariantBuilder builder; 1159s # guint n; 1159s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 1159s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 1159s # #else 1159s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 1159s # #endif 1159s # if (_org_project_other_iface_interface_info.parent_struct.properties == NULL) 1159s # goto out; 1159s # for (n = 0; _org_project_other_iface_interface_info.parent_struct.properties[n] != NULL; n++) 1159s # { 1159s # GDBusPropertyInfo *info = _org_project_other_iface_interface_info.parent_struct.properties[n]; 1159s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 1159s # { 1159s # GVariant *value; 1159s # 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); 1159s # if (value != NULL) 1159s # { 1159s # g_variant_take_ref (value); 1159s # g_variant_builder_add (&builder, "{sv}", info->name, value); 1159s # g_variant_unref (value); 1159s # } 1159s # } 1159s # } 1159s # out: 1159s # return g_variant_builder_end (&builder); 1159s # } 1159s # 1159s # static void 1159s # org_project_other_iface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 1159s # { 1159s # } 1159s # 1159s # static void 1159s # _org_project_other_iface_on_signal_simple_signal ( 1159s # OrgProjectOtherIface *object) 1159s # { 1159s # OrgProjectOtherIfaceSkeleton *skeleton = ORG_PROJECT_OTHER_IFACE_SKELETON (object); 1159s # 1159s # GList *connections, *l; 1159s # GVariant *signal_variant; 1159s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 1159s # 1159s # signal_variant = g_variant_ref_sink (g_variant_new ("()")); 1159s # for (l = connections; l != NULL; l = l->next) 1159s # { 1159s # GDBusConnection *connection = l->data; 1159s # g_dbus_connection_emit_signal (connection, 1159s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.OtherIface", "SimpleSignal", 1159s # signal_variant, NULL); 1159s # } 1159s # g_variant_unref (signal_variant); 1159s # g_list_free_full (connections, g_object_unref); 1159s # } 1159s # 1159s # static void org_project_other_iface_skeleton_iface_init (OrgProjectOtherIfaceIface *iface); 1159s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1159s # G_DEFINE_TYPE_WITH_CODE (OrgProjectOtherIfaceSkeleton, org_project_other_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1159s # G_ADD_PRIVATE (OrgProjectOtherIfaceSkeleton) 1159s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_OTHER_IFACE, org_project_other_iface_skeleton_iface_init)) 1159s # 1159s # #else 1159s # G_DEFINE_TYPE_WITH_CODE (OrgProjectOtherIfaceSkeleton, org_project_other_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1159s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_OTHER_IFACE, org_project_other_iface_skeleton_iface_init)) 1159s # 1159s # #endif 1159s # static void 1159s # org_project_other_iface_skeleton_finalize (GObject *object) 1159s # { 1159s # OrgProjectOtherIfaceSkeleton *skeleton = ORG_PROJECT_OTHER_IFACE_SKELETON (object); 1159s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 1159s # if (skeleton->priv->changed_properties_idle_source != NULL) 1159s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 1159s # g_main_context_unref (skeleton->priv->context); 1159s # g_mutex_clear (&skeleton->priv->lock); 1159s # G_OBJECT_CLASS (org_project_other_iface_skeleton_parent_class)->finalize (object); 1159s # } 1159s # 1159s # static void 1159s # org_project_other_iface_skeleton_init (OrgProjectOtherIfaceSkeleton *skeleton) 1159s # { 1159s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1159s # skeleton->priv = org_project_other_iface_skeleton_get_instance_private (skeleton); 1159s # #else 1159s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_OTHER_IFACE_SKELETON, OrgProjectOtherIfaceSkeletonPrivate); 1159s # #endif 1159s # 1159s # g_mutex_init (&skeleton->priv->lock); 1159s # skeleton->priv->context = g_main_context_ref_thread_default (); 1159s # } 1159s # 1159s # static void 1159s # org_project_other_iface_skeleton_class_init (OrgProjectOtherIfaceSkeletonClass *klass) 1159s # { 1159s # GObjectClass *gobject_class; 1159s # GDBusInterfaceSkeletonClass *skeleton_class; 1159s # 1159s # gobject_class = G_OBJECT_CLASS (klass); 1159s # gobject_class->finalize = org_project_other_iface_skeleton_finalize; 1159s # 1159s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 1159s # skeleton_class->get_info = org_project_other_iface_skeleton_dbus_interface_get_info; 1159s # skeleton_class->get_properties = org_project_other_iface_skeleton_dbus_interface_get_properties; 1159s # skeleton_class->flush = org_project_other_iface_skeleton_dbus_interface_flush; 1159s # skeleton_class->get_vtable = org_project_other_iface_skeleton_dbus_interface_get_vtable; 1159s # 1159s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1159s # g_type_class_add_private (klass, sizeof (OrgProjectOtherIfaceSkeletonPrivate)); 1159s # #endif 1159s # } 1159s # 1159s # static void 1159s # org_project_other_iface_skeleton_iface_init (OrgProjectOtherIfaceIface *iface) 1159s # { 1159s # iface->simple_signal = _org_project_other_iface_on_signal_simple_signal; 1159s # } 1159s # 1159s # /** 1159s # * org_project_other_iface_skeleton_new: 1159s # * 1159s # * Creates a skeleton object for the D-Bus interface org.project.OtherIface. 1159s # * 1159s # * Returns: (transfer full) (type OrgProjectOtherIfaceSkeleton): The skeleton object. 1159s # */ 1159s # OrgProjectOtherIface * 1159s # org_project_other_iface_skeleton_new (void) 1159s # { 1159s # return ORG_PROJECT_OTHER_IFACE (g_object_new (TYPE_ORG_PROJECT_OTHER_IFACE_SKELETON, NULL)); 1159s # } 1159s # Error: 1160s ok 22 __main__.TestCodegen.test_generate_signals_marshaller_simple_signal 1160s # gdbus-codegen: /usr/bin/gdbus-codegen 1160s # tmpdir: /tmp/tmpwd0bytau 1160s # /tmp/tmpwd0bytau/tmp_3wahfyq.xml: 1160s # 1160s # 1160s # 1160s # 1160s # 1160s # 1160s # 1160s # 1160s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpwd0bytau/tmp_3wahfyq.xml', '--output', '-', '--body'] 1160s # Return code: 0 1160s # Output: 1160s # /* 1160s # * This file is generated by gdbus-codegen, do not modify it. 1160s # * 1160s # * The license of this code is the same as for the D-Bus interface description 1160s # * it was derived from. Note that it links to GLib, so must comply with the 1160s # * LGPL linking clauses. 1160s # */ 1160s # 1160s # #ifdef HAVE_CONFIG_H 1160s # # include "config.h" 1160s # #endif 1160s # 1160s # #include 1160s # #ifdef G_OS_UNIX 1160s # # include 1160s # #endif 1160s # 1160s # #ifdef G_ENABLE_DEBUG 1160s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 1160s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 1160s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 1160s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 1160s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 1160s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 1160s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 1160s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 1160s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 1160s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 1160s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 1160s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 1160s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 1160s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 1160s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 1160s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 1160s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 1160s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 1160s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 1160s # #else /* !G_ENABLE_DEBUG */ 1160s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 1160s # * Do not access GValues directly in your code. Instead, use the 1160s # * g_value_get_*() functions 1160s # */ 1160s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 1160s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 1160s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 1160s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 1160s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 1160s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 1160s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 1160s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 1160s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 1160s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 1160s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 1160s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 1160s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 1160s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 1160s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 1160s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 1160s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 1160s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 1160s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 1160s # #endif /* !G_ENABLE_DEBUG */ 1160s # 1160s # typedef struct 1160s # { 1160s # GDBusArgInfo parent_struct; 1160s # gboolean use_gvariant; 1160s # } _ExtendedGDBusArgInfo; 1160s # 1160s # typedef struct 1160s # { 1160s # GDBusMethodInfo parent_struct; 1160s # const gchar *signal_name; 1160s # gboolean pass_fdlist; 1160s # } _ExtendedGDBusMethodInfo; 1160s # 1160s # typedef struct 1160s # { 1160s # GDBusSignalInfo parent_struct; 1160s # const gchar *signal_name; 1160s # } _ExtendedGDBusSignalInfo; 1160s # 1160s # typedef struct 1160s # { 1160s # GDBusPropertyInfo parent_struct; 1160s # const gchar *hyphen_name; 1160s # guint use_gvariant : 1; 1160s # guint emits_changed_signal : 1; 1160s # } _ExtendedGDBusPropertyInfo; 1160s # 1160s # typedef struct 1160s # { 1160s # GDBusInterfaceInfo parent_struct; 1160s # const gchar *hyphen_name; 1160s # } _ExtendedGDBusInterfaceInfo; 1160s # 1160s # typedef struct 1160s # { 1160s # const _ExtendedGDBusPropertyInfo *info; 1160s # guint prop_id; 1160s # GValue orig_value; /* the value before the change */ 1160s # } ChangedProperty; 1160s # 1160s # static void 1160s # _changed_property_free (ChangedProperty *data) 1160s # { 1160s # g_value_unset (&data->orig_value); 1160s # g_free (data); 1160s # } 1160s # 1160s # static gboolean 1160s # _g_strv_equal0 (gchar **a, gchar **b) 1160s # { 1160s # gboolean ret = FALSE; 1160s # guint n; 1160s # if (a == NULL && b == NULL) 1160s # { 1160s # ret = TRUE; 1160s # goto out; 1160s # } 1160s # if (a == NULL || b == NULL) 1160s # goto out; 1160s # if (g_strv_length (a) != g_strv_length (b)) 1160s # goto out; 1160s # for (n = 0; a[n] != NULL; n++) 1160s # if (g_strcmp0 (a[n], b[n]) != 0) 1160s # goto out; 1160s # ret = TRUE; 1160s # out: 1160s # return ret; 1160s # } 1160s # 1160s # static gboolean 1160s # _g_variant_equal0 (GVariant *a, GVariant *b) 1160s # { 1160s # gboolean ret = FALSE; 1160s # if (a == NULL && b == NULL) 1160s # { 1160s # ret = TRUE; 1160s # goto out; 1160s # } 1160s # if (a == NULL || b == NULL) 1160s # goto out; 1160s # ret = g_variant_equal (a, b); 1160s # out: 1160s # return ret; 1160s # } 1160s # 1160s # G_GNUC_UNUSED static gboolean 1160s # _g_value_equal (const GValue *a, const GValue *b) 1160s # { 1160s # gboolean ret = FALSE; 1160s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 1160s # switch (G_VALUE_TYPE (a)) 1160s # { 1160s # case G_TYPE_BOOLEAN: 1160s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 1160s # break; 1160s # case G_TYPE_UCHAR: 1160s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 1160s # break; 1160s # case G_TYPE_INT: 1160s # ret = (g_value_get_int (a) == g_value_get_int (b)); 1160s # break; 1160s # case G_TYPE_UINT: 1160s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 1160s # break; 1160s # case G_TYPE_INT64: 1160s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 1160s # break; 1160s # case G_TYPE_UINT64: 1160s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 1160s # break; 1160s # case G_TYPE_DOUBLE: 1160s # { 1160s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 1160s # gdouble da = g_value_get_double (a); 1160s # gdouble db = g_value_get_double (b); 1160s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 1160s # } 1160s # break; 1160s # case G_TYPE_STRING: 1160s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 1160s # break; 1160s # case G_TYPE_VARIANT: 1160s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 1160s # break; 1160s # default: 1160s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 1160s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 1160s # else 1160s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 1160s # break; 1160s # } 1160s # return ret; 1160s # } 1160s # 1160s # /* ------------------------------------------------------------------------ 1160s # * Code for interface org.project.SignalingIface 1160s # * ------------------------------------------------------------------------ 1160s # */ 1160s # 1160s # /** 1160s # * SECTION:OrgProjectSignalingIface 1160s # * @title: OrgProjectSignalingIface 1160s # * @short_description: Generated C code for the org.project.SignalingIface D-Bus interface 1160s # * 1160s # * This section contains code for working with the org.project.SignalingIface D-Bus interface in C. 1160s # */ 1160s # 1160s # enum 1160s # { 1160s # _ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL, 1160s # }; 1160s # 1160s # static unsigned _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[1] = { 0 }; 1160s # 1160s # /* ---- Introspection data for org.project.SignalingIface ---- */ 1160s # 1160s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_simple_signal = 1160s # { 1160s # { 1160s # -1, 1160s # (gchar *) "SimpleSignal", 1160s # NULL, 1160s # NULL 1160s # }, 1160s # "simple-signal" 1160s # }; 1160s # 1160s # static const GDBusSignalInfo * const _org_project_signaling_iface_signal_info_pointers[] = 1160s # { 1160s # &_org_project_signaling_iface_signal_info_simple_signal.parent_struct, 1160s # NULL 1160s # }; 1160s # 1160s # static const _ExtendedGDBusInterfaceInfo _org_project_signaling_iface_interface_info = 1160s # { 1160s # { 1160s # -1, 1160s # (gchar *) "org.project.SignalingIface", 1160s # NULL, 1160s # (GDBusSignalInfo **) &_org_project_signaling_iface_signal_info_pointers, 1160s # NULL, 1160s # NULL 1160s # }, 1160s # "org-project-signaling-iface", 1160s # }; 1160s # 1160s # 1160s # /** 1160s # * org_project_signaling_iface_interface_info: 1160s # * 1160s # * Gets a machine-readable description of the org.project.SignalingIface D-Bus interface. 1160s # * 1160s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 1160s # */ 1160s # GDBusInterfaceInfo * 1160s # org_project_signaling_iface_interface_info (void) 1160s # { 1160s # return (GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct; 1160s # } 1160s # 1160s # /** 1160s # * org_project_signaling_iface_override_properties: 1160s # * @klass: The class structure for a #GObject derived class. 1160s # * @property_id_begin: The property id to assign to the first overridden property. 1160s # * 1160s # * Overrides all #GObject properties in the #OrgProjectSignalingIface interface for a concrete class. 1160s # * The properties are overridden in the order they are defined. 1160s # * 1160s # * Returns: The last property id. 1160s # */ 1160s # guint 1160s # org_project_signaling_iface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 1160s # { 1160s # return property_id_begin - 1; 1160s # } 1160s # 1160s # 1160s # inline static void 1160s # org_project_signaling_iface_signal_marshal_simple_signal ( 1160s # GClosure *closure, 1160s # GValue *return_value, 1160s # unsigned int n_param_values, 1160s # const GValue *param_values, 1160s # void *invocation_hint, 1160s # void *marshal_data) 1160s # { 1160s # g_cclosure_marshal_VOID__VOID (closure, 1160s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1160s # } 1160s # 1160s # 1160s # /** 1160s # * OrgProjectSignalingIface: 1160s # * 1160s # * Abstract interface type for the D-Bus interface org.project.SignalingIface. 1160s # */ 1160s # 1160s # /** 1160s # * OrgProjectSignalingIfaceIface: 1160s # * @parent_iface: The parent interface. 1160s # * @simple_signal: Handler for the #OrgProjectSignalingIface::simple-signal signal. 1160s # * 1160s # * Virtual table for the D-Bus interface org.project.SignalingIface. 1160s # */ 1160s # 1160s # typedef OrgProjectSignalingIfaceIface OrgProjectSignalingIfaceInterface; 1160s # G_DEFINE_INTERFACE (OrgProjectSignalingIface, org_project_signaling_iface, G_TYPE_OBJECT) 1160s # 1160s # static void 1160s # org_project_signaling_iface_default_init (OrgProjectSignalingIfaceIface *iface) 1160s # { 1160s # /* GObject signals for received D-Bus signals: */ 1160s # /** 1160s # * OrgProjectSignalingIface::simple-signal: 1160s # * @object: A #OrgProjectSignalingIface. 1160s # * 1160s # * On the client-side, this signal is emitted whenever the D-Bus signal "SimpleSignal" is received. 1160s # * 1160s # * 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. 1160s # */ 1160s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL] = 1160s # g_signal_new ("simple-signal", 1160s # G_TYPE_FROM_INTERFACE (iface), 1160s # G_SIGNAL_RUN_LAST, 1160s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, simple_signal), 1160s # NULL, 1160s # NULL, 1160s # org_project_signaling_iface_signal_marshal_simple_signal, 1160s # G_TYPE_NONE, 1160s # 0); 1160s # 1160s # } 1160s # 1160s # /** 1160s # * org_project_signaling_iface_emit_simple_signal: 1160s # * @object: A #OrgProjectSignalingIface. 1160s # * 1160s # * Emits the "SimpleSignal" D-Bus signal. 1160s # */ 1160s # void 1160s # org_project_signaling_iface_emit_simple_signal ( 1160s # OrgProjectSignalingIface *object) 1160s # { 1160s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL], 0); 1160s # } 1160s # 1160s # /* ------------------------------------------------------------------------ */ 1160s # 1160s # /** 1160s # * OrgProjectSignalingIfaceProxy: 1160s # * 1160s # * The #OrgProjectSignalingIfaceProxy structure contains only private data and should only be accessed using the provided API. 1160s # */ 1160s # 1160s # /** 1160s # * OrgProjectSignalingIfaceProxyClass: 1160s # * @parent_class: The parent class. 1160s # * 1160s # * Class structure for #OrgProjectSignalingIfaceProxy. 1160s # */ 1160s # 1160s # struct _OrgProjectSignalingIfaceProxyPrivate 1160s # { 1160s # GData *qdata; 1160s # }; 1160s # 1160s # static void org_project_signaling_iface_proxy_iface_init (OrgProjectSignalingIfaceIface *iface); 1160s # 1160s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1160s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceProxy, org_project_signaling_iface_proxy, G_TYPE_DBUS_PROXY, 1160s # G_ADD_PRIVATE (OrgProjectSignalingIfaceProxy) 1160s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_proxy_iface_init)) 1160s # 1160s # #else 1160s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceProxy, org_project_signaling_iface_proxy, G_TYPE_DBUS_PROXY, 1160s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_proxy_iface_init)) 1160s # 1160s # #endif 1160s # static void 1160s # org_project_signaling_iface_proxy_finalize (GObject *object) 1160s # { 1160s # OrgProjectSignalingIfaceProxy *proxy = ORG_PROJECT_SIGNALING_IFACE_PROXY (object); 1160s # g_datalist_clear (&proxy->priv->qdata); 1160s # G_OBJECT_CLASS (org_project_signaling_iface_proxy_parent_class)->finalize (object); 1160s # } 1160s # 1160s # static void 1160s # org_project_signaling_iface_proxy_get_property (GObject *object G_GNUC_UNUSED, 1160s # guint prop_id G_GNUC_UNUSED, 1160s # GValue *value G_GNUC_UNUSED, 1160s # GParamSpec *pspec G_GNUC_UNUSED) 1160s # { 1160s # } 1160s # 1160s # static void 1160s # org_project_signaling_iface_proxy_set_property (GObject *object G_GNUC_UNUSED, 1160s # guint prop_id G_GNUC_UNUSED, 1160s # const GValue *value G_GNUC_UNUSED, 1160s # GParamSpec *pspec G_GNUC_UNUSED) 1160s # { 1160s # } 1160s # 1160s # static void 1160s # org_project_signaling_iface_proxy_g_signal (GDBusProxy *proxy, 1160s # const gchar *sender_name G_GNUC_UNUSED, 1160s # const gchar *signal_name, 1160s # GVariant *parameters) 1160s # { 1160s # _ExtendedGDBusSignalInfo *info; 1160s # GVariantIter iter; 1160s # GVariant *child; 1160s # GValue *paramv; 1160s # gsize num_params; 1160s # gsize n; 1160s # guint signal_id; 1160s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, signal_name); 1160s # if (info == NULL) 1160s # return; 1160s # num_params = g_variant_n_children (parameters); 1160s # paramv = g_new0 (GValue, num_params + 1); 1160s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_SIGNALING_IFACE); 1160s # g_value_set_object (¶mv[0], proxy); 1160s # g_variant_iter_init (&iter, parameters); 1160s # n = 1; 1160s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1160s # { 1160s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 1160s # if (arg_info->use_gvariant) 1160s # { 1160s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1160s # g_value_set_variant (¶mv[n], child); 1160s # n++; 1160s # } 1160s # else 1160s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1160s # g_variant_unref (child); 1160s # } 1160s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_SIGNALING_IFACE); 1160s # g_signal_emitv (paramv, signal_id, 0, NULL); 1160s # for (n = 0; n < num_params + 1; n++) 1160s # g_value_unset (¶mv[n]); 1160s # g_free (paramv); 1160s # } 1160s # 1160s # static void 1160s # org_project_signaling_iface_proxy_g_properties_changed (GDBusProxy *_proxy, 1160s # GVariant *changed_properties, 1160s # const gchar *const *invalidated_properties) 1160s # { 1160s # OrgProjectSignalingIfaceProxy *proxy = ORG_PROJECT_SIGNALING_IFACE_PROXY (_proxy); 1160s # guint n; 1160s # const gchar *key; 1160s # GVariantIter *iter; 1160s # _ExtendedGDBusPropertyInfo *info; 1160s # g_variant_get (changed_properties, "a{sv}", &iter); 1160s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 1160s # { 1160s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, key); 1160s # g_datalist_remove_data (&proxy->priv->qdata, key); 1160s # if (info != NULL) 1160s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1160s # } 1160s # g_variant_iter_free (iter); 1160s # for (n = 0; invalidated_properties[n] != NULL; n++) 1160s # { 1160s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, invalidated_properties[n]); 1160s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 1160s # if (info != NULL) 1160s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1160s # } 1160s # } 1160s # 1160s # static void 1160s # org_project_signaling_iface_proxy_init (OrgProjectSignalingIfaceProxy *proxy) 1160s # { 1160s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1160s # proxy->priv = org_project_signaling_iface_proxy_get_instance_private (proxy); 1160s # #else 1160s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_SIGNALING_IFACE_PROXY, OrgProjectSignalingIfaceProxyPrivate); 1160s # #endif 1160s # 1160s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_signaling_iface_interface_info ()); 1160s # } 1160s # 1160s # static void 1160s # org_project_signaling_iface_proxy_class_init (OrgProjectSignalingIfaceProxyClass *klass) 1160s # { 1160s # GObjectClass *gobject_class; 1160s # GDBusProxyClass *proxy_class; 1160s # 1160s # gobject_class = G_OBJECT_CLASS (klass); 1160s # gobject_class->finalize = org_project_signaling_iface_proxy_finalize; 1160s # gobject_class->get_property = org_project_signaling_iface_proxy_get_property; 1160s # gobject_class->set_property = org_project_signaling_iface_proxy_set_property; 1160s # 1160s # proxy_class = G_DBUS_PROXY_CLASS (klass); 1160s # proxy_class->g_signal = org_project_signaling_iface_proxy_g_signal; 1160s # proxy_class->g_properties_changed = org_project_signaling_iface_proxy_g_properties_changed; 1160s # 1160s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1160s # g_type_class_add_private (klass, sizeof (OrgProjectSignalingIfaceProxyPrivate)); 1160s # #endif 1160s # } 1160s # 1160s # static void 1160s # org_project_signaling_iface_proxy_iface_init (OrgProjectSignalingIfaceIface *iface G_GNUC_UNUSED) 1160s # { 1160s # } 1160s # 1160s # /** 1160s # * org_project_signaling_iface_proxy_new: 1160s # * @connection: A #GDBusConnection. 1160s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1160s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1160s # * @object_path: An object path. 1160s # * @cancellable: (nullable): A #GCancellable or %NULL. 1160s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1160s # * @user_data: User data to pass to @callback. 1160s # * 1160s # * Asynchronously creates a proxy for the D-Bus interface org.project.SignalingIface. See g_dbus_proxy_new() for more details. 1160s # * 1160s # * 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()). 1160s # * You can then call org_project_signaling_iface_proxy_new_finish() to get the result of the operation. 1160s # * 1160s # * See org_project_signaling_iface_proxy_new_sync() for the synchronous, blocking version of this constructor. 1160s # */ 1160s # void 1160s # org_project_signaling_iface_proxy_new ( 1160s # GDBusConnection *connection, 1160s # GDBusProxyFlags flags, 1160s # const gchar *name, 1160s # const gchar *object_path, 1160s # GCancellable *cancellable, 1160s # GAsyncReadyCallback callback, 1160s # gpointer user_data) 1160s # { 1160s # 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); 1160s # } 1160s # 1160s # /** 1160s # * org_project_signaling_iface_proxy_new_finish: 1160s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_signaling_iface_proxy_new(). 1160s # * @error: Return location for error or %NULL 1160s # * 1160s # * Finishes an operation started with org_project_signaling_iface_proxy_new(). 1160s # * 1160s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 1160s # */ 1160s # OrgProjectSignalingIface * 1160s # org_project_signaling_iface_proxy_new_finish ( 1160s # GAsyncResult *res, 1160s # GError **error) 1160s # { 1160s # GObject *ret; 1160s # GObject *source_object; 1160s # source_object = g_async_result_get_source_object (res); 1160s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1160s # g_object_unref (source_object); 1160s # if (ret != NULL) 1160s # return ORG_PROJECT_SIGNALING_IFACE (ret); 1160s # else 1160s # return NULL; 1160s # } 1160s # 1160s # /** 1160s # * org_project_signaling_iface_proxy_new_sync: 1160s # * @connection: A #GDBusConnection. 1160s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1160s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1160s # * @object_path: An object path. 1160s # * @cancellable: (nullable): A #GCancellable or %NULL. 1160s # * @error: Return location for error or %NULL 1160s # * 1160s # * Synchronously creates a proxy for the D-Bus interface org.project.SignalingIface. See g_dbus_proxy_new_sync() for more details. 1160s # * 1160s # * The calling thread is blocked until a reply is received. 1160s # * 1160s # * See org_project_signaling_iface_proxy_new() for the asynchronous version of this constructor. 1160s # * 1160s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 1160s # */ 1160s # OrgProjectSignalingIface * 1160s # org_project_signaling_iface_proxy_new_sync ( 1160s # GDBusConnection *connection, 1160s # GDBusProxyFlags flags, 1160s # const gchar *name, 1160s # const gchar *object_path, 1160s # GCancellable *cancellable, 1160s # GError **error) 1160s # { 1160s # GInitable *ret; 1160s # 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); 1160s # if (ret != NULL) 1160s # return ORG_PROJECT_SIGNALING_IFACE (ret); 1160s # else 1160s # return NULL; 1160s # } 1160s # 1160s # 1160s # /** 1160s # * org_project_signaling_iface_proxy_new_for_bus: 1160s # * @bus_type: A #GBusType. 1160s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1160s # * @name: A bus name (well-known or unique). 1160s # * @object_path: An object path. 1160s # * @cancellable: (nullable): A #GCancellable or %NULL. 1160s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1160s # * @user_data: User data to pass to @callback. 1160s # * 1160s # * Like org_project_signaling_iface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 1160s # * 1160s # * 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()). 1160s # * You can then call org_project_signaling_iface_proxy_new_for_bus_finish() to get the result of the operation. 1160s # * 1160s # * See org_project_signaling_iface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 1160s # */ 1160s # void 1160s # org_project_signaling_iface_proxy_new_for_bus ( 1160s # GBusType bus_type, 1160s # GDBusProxyFlags flags, 1160s # const gchar *name, 1160s # const gchar *object_path, 1160s # GCancellable *cancellable, 1160s # GAsyncReadyCallback callback, 1160s # gpointer user_data) 1160s # { 1160s # 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); 1160s # } 1160s # 1160s # /** 1160s # * org_project_signaling_iface_proxy_new_for_bus_finish: 1160s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_signaling_iface_proxy_new_for_bus(). 1160s # * @error: Return location for error or %NULL 1160s # * 1160s # * Finishes an operation started with org_project_signaling_iface_proxy_new_for_bus(). 1160s # * 1160s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 1160s # */ 1160s # OrgProjectSignalingIface * 1160s # org_project_signaling_iface_proxy_new_for_bus_finish ( 1160s # GAsyncResult *res, 1160s # GError **error) 1160s # { 1160s # GObject *ret; 1160s # GObject *source_object; 1160s # source_object = g_async_result_get_source_object (res); 1160s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1160s # g_object_unref (source_object); 1160s # if (ret != NULL) 1160s # return ORG_PROJECT_SIGNALING_IFACE (ret); 1160s # else 1160s # return NULL; 1160s # } 1160s # 1160s # /** 1160s # * org_project_signaling_iface_proxy_new_for_bus_sync: 1160s # * @bus_type: A #GBusType. 1160s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1160s # * @name: A bus name (well-known or unique). 1160s # * @object_path: An object path. 1160s # * @cancellable: (nullable): A #GCancellable or %NULL. 1160s # * @error: Return location for error or %NULL 1160s # * 1160s # * Like org_project_signaling_iface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 1160s # * 1160s # * The calling thread is blocked until a reply is received. 1160s # * 1160s # * See org_project_signaling_iface_proxy_new_for_bus() for the asynchronous version of this constructor. 1160s # * 1160s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 1160s # */ 1160s # OrgProjectSignalingIface * 1160s # org_project_signaling_iface_proxy_new_for_bus_sync ( 1160s # GBusType bus_type, 1160s # GDBusProxyFlags flags, 1160s # const gchar *name, 1160s # const gchar *object_path, 1160s # GCancellable *cancellable, 1160s # GError **error) 1160s # { 1160s # GInitable *ret; 1160s # 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); 1160s # if (ret != NULL) 1160s # return ORG_PROJECT_SIGNALING_IFACE (ret); 1160s # else 1160s # return NULL; 1160s # } 1160s # 1160s # 1160s # /* ------------------------------------------------------------------------ */ 1160s # 1160s # /** 1160s # * OrgProjectSignalingIfaceSkeleton: 1160s # * 1160s # * The #OrgProjectSignalingIfaceSkeleton structure contains only private data and should only be accessed using the provided API. 1160s # */ 1160s # 1160s # /** 1160s # * OrgProjectSignalingIfaceSkeletonClass: 1160s # * @parent_class: The parent class. 1160s # * 1160s # * Class structure for #OrgProjectSignalingIfaceSkeleton. 1160s # */ 1160s # 1160s # struct _OrgProjectSignalingIfaceSkeletonPrivate 1160s # { 1160s # GValue *properties; 1160s # GList *changed_properties; 1160s # GSource *changed_properties_idle_source; 1160s # GMainContext *context; 1160s # GMutex lock; 1160s # }; 1160s # 1160s # static void 1160s # _org_project_signaling_iface_skeleton_handle_method_call ( 1160s # GDBusConnection *connection G_GNUC_UNUSED, 1160s # const gchar *sender G_GNUC_UNUSED, 1160s # const gchar *object_path G_GNUC_UNUSED, 1160s # const gchar *interface_name, 1160s # const gchar *method_name, 1160s # GVariant *parameters, 1160s # GDBusMethodInvocation *invocation, 1160s # gpointer user_data) 1160s # { 1160s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 1160s # _ExtendedGDBusMethodInfo *info; 1160s # GVariantIter iter; 1160s # GVariant *child; 1160s # GValue *paramv; 1160s # gsize num_params; 1160s # guint num_extra; 1160s # gsize n; 1160s # guint signal_id; 1160s # GValue return_value = G_VALUE_INIT; 1160s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 1160s # g_assert (info != NULL); 1160s # num_params = g_variant_n_children (parameters); 1160s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 1160s # n = 0; 1160s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_SIGNALING_IFACE); 1160s # g_value_set_object (¶mv[n++], skeleton); 1160s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 1160s # g_value_set_object (¶mv[n++], invocation); 1160s # if (info->pass_fdlist) 1160s # { 1160s # #ifdef G_OS_UNIX 1160s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 1160s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 1160s # #else 1160s # g_assert_not_reached (); 1160s # #endif 1160s # } 1160s # g_variant_iter_init (&iter, parameters); 1160s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1160s # { 1160s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 1160s # if (arg_info->use_gvariant) 1160s # { 1160s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1160s # g_value_set_variant (¶mv[n], child); 1160s # n++; 1160s # } 1160s # else 1160s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1160s # g_variant_unref (child); 1160s # } 1160s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_SIGNALING_IFACE); 1160s # g_value_init (&return_value, G_TYPE_BOOLEAN); 1160s # g_signal_emitv (paramv, signal_id, 0, &return_value); 1160s # if (!g_value_get_boolean (&return_value)) 1160s # 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); 1160s # g_value_unset (&return_value); 1160s # for (n = 0; n < num_params + num_extra; n++) 1160s # g_value_unset (¶mv[n]); 1160s # g_free (paramv); 1160s # } 1160s # 1160s # static GVariant * 1160s # _org_project_signaling_iface_skeleton_handle_get_property ( 1160s # GDBusConnection *connection G_GNUC_UNUSED, 1160s # const gchar *sender G_GNUC_UNUSED, 1160s # const gchar *object_path G_GNUC_UNUSED, 1160s # const gchar *interface_name G_GNUC_UNUSED, 1160s # const gchar *property_name, 1160s # GError **error, 1160s # gpointer user_data) 1160s # { 1160s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 1160s # GValue value = G_VALUE_INIT; 1160s # GParamSpec *pspec; 1160s # _ExtendedGDBusPropertyInfo *info; 1160s # GVariant *ret; 1160s # ret = NULL; 1160s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, property_name); 1160s # g_assert (info != NULL); 1160s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1160s # if (pspec == NULL) 1160s # { 1160s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1160s # } 1160s # else 1160s # { 1160s # g_value_init (&value, pspec->value_type); 1160s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1160s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 1160s # g_value_unset (&value); 1160s # } 1160s # return ret; 1160s # } 1160s # 1160s # static gboolean 1160s # _org_project_signaling_iface_skeleton_handle_set_property ( 1160s # GDBusConnection *connection G_GNUC_UNUSED, 1160s # const gchar *sender G_GNUC_UNUSED, 1160s # const gchar *object_path G_GNUC_UNUSED, 1160s # const gchar *interface_name G_GNUC_UNUSED, 1160s # const gchar *property_name, 1160s # GVariant *variant, 1160s # GError **error, 1160s # gpointer user_data) 1160s # { 1160s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 1160s # GValue value = G_VALUE_INIT; 1160s # GParamSpec *pspec; 1160s # _ExtendedGDBusPropertyInfo *info; 1160s # gboolean ret; 1160s # ret = FALSE; 1160s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, property_name); 1160s # g_assert (info != NULL); 1160s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1160s # if (pspec == NULL) 1160s # { 1160s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1160s # } 1160s # else 1160s # { 1160s # if (info->use_gvariant) 1160s # g_value_set_variant (&value, variant); 1160s # else 1160s # g_dbus_gvariant_to_gvalue (variant, &value); 1160s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1160s # g_value_unset (&value); 1160s # ret = TRUE; 1160s # } 1160s # return ret; 1160s # } 1160s # 1160s # static const GDBusInterfaceVTable _org_project_signaling_iface_skeleton_vtable = 1160s # { 1160s # _org_project_signaling_iface_skeleton_handle_method_call, 1160s # _org_project_signaling_iface_skeleton_handle_get_property, 1160s # _org_project_signaling_iface_skeleton_handle_set_property, 1160s # {NULL} 1160s # }; 1160s # 1160s # static GDBusInterfaceInfo * 1160s # org_project_signaling_iface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1160s # { 1160s # return org_project_signaling_iface_interface_info (); 1160s # } 1160s # 1160s # static GDBusInterfaceVTable * 1160s # org_project_signaling_iface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1160s # { 1160s # return (GDBusInterfaceVTable *) &_org_project_signaling_iface_skeleton_vtable; 1160s # } 1160s # 1160s # static GVariant * 1160s # org_project_signaling_iface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 1160s # { 1160s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (_skeleton); 1160s # 1160s # GVariantBuilder builder; 1160s # guint n; 1160s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 1160s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 1160s # #else 1160s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 1160s # #endif 1160s # if (_org_project_signaling_iface_interface_info.parent_struct.properties == NULL) 1160s # goto out; 1160s # for (n = 0; _org_project_signaling_iface_interface_info.parent_struct.properties[n] != NULL; n++) 1160s # { 1160s # GDBusPropertyInfo *info = _org_project_signaling_iface_interface_info.parent_struct.properties[n]; 1160s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 1160s # { 1160s # GVariant *value; 1160s # 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); 1160s # if (value != NULL) 1160s # { 1160s # g_variant_take_ref (value); 1160s # g_variant_builder_add (&builder, "{sv}", info->name, value); 1160s # g_variant_unref (value); 1160s # } 1160s # } 1160s # } 1160s # out: 1160s # return g_variant_builder_end (&builder); 1160s # } 1160s # 1160s # static void 1160s # org_project_signaling_iface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 1160s # { 1160s # } 1160s # 1160s # static void 1160s # _org_project_signaling_iface_on_signal_simple_signal ( 1160s # OrgProjectSignalingIface *object) 1160s # { 1160s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 1160s # 1160s # GList *connections, *l; 1160s # GVariant *signal_variant; 1160s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 1160s # 1160s # signal_variant = g_variant_ref_sink (g_variant_new ("()")); 1160s # for (l = connections; l != NULL; l = l->next) 1160s # { 1160s # GDBusConnection *connection = l->data; 1160s # g_dbus_connection_emit_signal (connection, 1160s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SimpleSignal", 1160s # signal_variant, NULL); 1160s # } 1160s # g_variant_unref (signal_variant); 1160s # g_list_free_full (connections, g_object_unref); 1160s # } 1160s # 1160s # static void org_project_signaling_iface_skeleton_iface_init (OrgProjectSignalingIfaceIface *iface); 1160s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1160s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceSkeleton, org_project_signaling_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1160s # G_ADD_PRIVATE (OrgProjectSignalingIfaceSkeleton) 1160s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_skeleton_iface_init)) 1160s # 1160s # #else 1160s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceSkeleton, org_project_signaling_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1160s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_skeleton_iface_init)) 1160s # 1160s # #endif 1160s # static void 1160s # org_project_signaling_iface_skeleton_finalize (GObject *object) 1160s # { 1160s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 1160s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 1160s # if (skeleton->priv->changed_properties_idle_source != NULL) 1160s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 1160s # g_main_context_unref (skeleton->priv->context); 1160s # g_mutex_clear (&skeleton->priv->lock); 1160s # G_OBJECT_CLASS (org_project_signaling_iface_skeleton_parent_class)->finalize (object); 1160s # } 1160s # 1160s # static void 1160s # org_project_signaling_iface_skeleton_init (OrgProjectSignalingIfaceSkeleton *skeleton) 1160s # { 1160s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1160s # skeleton->priv = org_project_signaling_iface_skeleton_get_instance_private (skeleton); 1160s # #else 1160s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_SIGNALING_IFACE_SKELETON, OrgProjectSignalingIfaceSkeletonPrivate); 1160s # #endif 1160s # 1160s # g_mutex_init (&skeleton->priv->lock); 1160s # skeleton->priv->context = g_main_context_ref_thread_default (); 1160s # } 1160s # 1160s # static void 1160s # org_project_signaling_iface_skeleton_class_init (OrgProjectSignalingIfaceSkeletonClass *klass) 1160s # { 1160s # GObjectClass *gobject_class; 1160s # GDBusInterfaceSkeletonClass *skeleton_class; 1160s # 1160s # gobject_class = G_OBJECT_CLASS (klass); 1160s # gobject_class->finalize = org_project_signaling_iface_skeleton_finalize; 1160s # 1160s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 1160s # skeleton_class->get_info = org_project_signaling_iface_skeleton_dbus_interface_get_info; 1160s # skeleton_class->get_properties = org_project_signaling_iface_skeleton_dbus_interface_get_properties; 1160s # skeleton_class->flush = org_project_signaling_iface_skeleton_dbus_interface_flush; 1160s # skeleton_class->get_vtable = org_project_signaling_iface_skeleton_dbus_interface_get_vtable; 1160s # 1160s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1160s # g_type_class_add_private (klass, sizeof (OrgProjectSignalingIfaceSkeletonPrivate)); 1160s # #endif 1160s # } 1160s # 1160s # static void 1160s # org_project_signaling_iface_skeleton_iface_init (OrgProjectSignalingIfaceIface *iface) 1160s # { 1160s # iface->simple_signal = _org_project_signaling_iface_on_signal_simple_signal; 1160s # } 1160s # 1160s # /** 1160s # * org_project_signaling_iface_skeleton_new: 1160s # * 1160s # * Creates a skeleton object for the D-Bus interface org.project.SignalingIface. 1160s # * 1160s # * Returns: (transfer full) (type OrgProjectSignalingIfaceSkeleton): The skeleton object. 1160s # */ 1160s # OrgProjectSignalingIface * 1160s # org_project_signaling_iface_skeleton_new (void) 1160s # { 1160s # return ORG_PROJECT_SIGNALING_IFACE (g_object_new (TYPE_ORG_PROJECT_SIGNALING_IFACE_SKELETON, NULL)); 1160s # } 1160s # 1160s # /* ------------------------------------------------------------------------ 1160s # * Code for interface org.project.OtherSignalingIface 1160s # * ------------------------------------------------------------------------ 1160s # */ 1160s # 1160s # /** 1160s # * SECTION:OrgProjectOtherSignalingIface 1160s # * @title: OrgProjectOtherSignalingIface 1160s # * @short_description: Generated C code for the org.project.OtherSignalingIface D-Bus interface 1160s # * 1160s # * This section contains code for working with the org.project.OtherSignalingIface D-Bus interface in C. 1160s # */ 1160s # 1160s # enum 1160s # { 1160s # _ORG_PROJECT_OTHER_SIGNALING_IFACE_SIMPLE_SIGNAL, 1160s # }; 1160s # 1160s # static unsigned _ORG_PROJECT_OTHER_SIGNALING_IFACE_SIGNALS[1] = { 0 }; 1160s # 1160s # /* ---- Introspection data for org.project.OtherSignalingIface ---- */ 1160s # 1160s # static const _ExtendedGDBusSignalInfo _org_project_other_signaling_iface_signal_info_simple_signal = 1160s # { 1160s # { 1160s # -1, 1160s # (gchar *) "SimpleSignal", 1160s # NULL, 1160s # NULL 1160s # }, 1160s # "simple-signal" 1160s # }; 1160s # 1160s # static const GDBusSignalInfo * const _org_project_other_signaling_iface_signal_info_pointers[] = 1160s # { 1160s # &_org_project_other_signaling_iface_signal_info_simple_signal.parent_struct, 1160s # NULL 1160s # }; 1160s # 1160s # static const _ExtendedGDBusInterfaceInfo _org_project_other_signaling_iface_interface_info = 1160s # { 1160s # { 1160s # -1, 1160s # (gchar *) "org.project.OtherSignalingIface", 1160s # NULL, 1160s # (GDBusSignalInfo **) &_org_project_other_signaling_iface_signal_info_pointers, 1160s # NULL, 1160s # NULL 1160s # }, 1160s # "org-project-other-signaling-iface", 1160s # }; 1160s # 1160s # 1160s # /** 1160s # * org_project_other_signaling_iface_interface_info: 1160s # * 1160s # * Gets a machine-readable description of the org.project.OtherSignalingIface D-Bus interface. 1160s # * 1160s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 1160s # */ 1160s # GDBusInterfaceInfo * 1160s # org_project_other_signaling_iface_interface_info (void) 1160s # { 1160s # return (GDBusInterfaceInfo *) &_org_project_other_signaling_iface_interface_info.parent_struct; 1160s # } 1160s # 1160s # /** 1160s # * org_project_other_signaling_iface_override_properties: 1160s # * @klass: The class structure for a #GObject derived class. 1160s # * @property_id_begin: The property id to assign to the first overridden property. 1160s # * 1160s # * Overrides all #GObject properties in the #OrgProjectOtherSignalingIface interface for a concrete class. 1160s # * The properties are overridden in the order they are defined. 1160s # * 1160s # * Returns: The last property id. 1160s # */ 1160s # guint 1160s # org_project_other_signaling_iface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 1160s # { 1160s # return property_id_begin - 1; 1160s # } 1160s # 1160s # 1160s # inline static void 1160s # org_project_other_signaling_iface_signal_marshal_simple_signal ( 1160s # GClosure *closure, 1160s # GValue *return_value, 1160s # unsigned int n_param_values, 1160s # const GValue *param_values, 1160s # void *invocation_hint, 1160s # void *marshal_data) 1160s # { 1160s # g_cclosure_marshal_VOID__VOID (closure, 1160s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1160s # } 1160s # 1160s # 1160s # /** 1160s # * OrgProjectOtherSignalingIface: 1160s # * 1160s # * Abstract interface type for the D-Bus interface org.project.OtherSignalingIface. 1160s # */ 1160s # 1160s # /** 1160s # * OrgProjectOtherSignalingIfaceIface: 1160s # * @parent_iface: The parent interface. 1160s # * @simple_signal: Handler for the #OrgProjectOtherSignalingIface::simple-signal signal. 1160s # * 1160s # * Virtual table for the D-Bus interface org.project.OtherSignalingIface. 1160s # */ 1160s # 1160s # typedef OrgProjectOtherSignalingIfaceIface OrgProjectOtherSignalingIfaceInterface; 1160s # G_DEFINE_INTERFACE (OrgProjectOtherSignalingIface, org_project_other_signaling_iface, G_TYPE_OBJECT) 1160s # 1160s # static void 1160s # org_project_other_signaling_iface_default_init (OrgProjectOtherSignalingIfaceIface *iface) 1160s # { 1160s # /* GObject signals for received D-Bus signals: */ 1160s # /** 1160s # * OrgProjectOtherSignalingIface::simple-signal: 1160s # * @object: A #OrgProjectOtherSignalingIface. 1160s # * 1160s # * On the client-side, this signal is emitted whenever the D-Bus signal "SimpleSignal" is received. 1160s # * 1160s # * 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. 1160s # */ 1160s # _ORG_PROJECT_OTHER_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_OTHER_SIGNALING_IFACE_SIMPLE_SIGNAL] = 1160s # g_signal_new ("simple-signal", 1160s # G_TYPE_FROM_INTERFACE (iface), 1160s # G_SIGNAL_RUN_LAST, 1160s # G_STRUCT_OFFSET (OrgProjectOtherSignalingIfaceIface, simple_signal), 1160s # NULL, 1160s # NULL, 1160s # org_project_other_signaling_iface_signal_marshal_simple_signal, 1160s # G_TYPE_NONE, 1160s # 0); 1160s # 1160s # } 1160s # 1160s # /** 1160s # * org_project_other_signaling_iface_emit_simple_signal: 1160s # * @object: A #OrgProjectOtherSignalingIface. 1160s # * 1160s # * Emits the "SimpleSignal" D-Bus signal. 1160s # */ 1160s # void 1160s # org_project_other_signaling_iface_emit_simple_signal ( 1160s # OrgProjectOtherSignalingIface *object) 1160s # { 1160s # g_signal_emit (object, _ORG_PROJECT_OTHER_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_OTHER_SIGNALING_IFACE_SIMPLE_SIGNAL], 0); 1160s # } 1160s # 1160s # /* ------------------------------------------------------------------------ */ 1160s # 1160s # /** 1160s # * OrgProjectOtherSignalingIfaceProxy: 1160s # * 1160s # * The #OrgProjectOtherSignalingIfaceProxy structure contains only private data and should only be accessed using the provided API. 1160s # */ 1160s # 1160s # /** 1160s # * OrgProjectOtherSignalingIfaceProxyClass: 1160s # * @parent_class: The parent class. 1160s # * 1160s # * Class structure for #OrgProjectOtherSignalingIfaceProxy. 1160s # */ 1160s # 1160s # struct _OrgProjectOtherSignalingIfaceProxyPrivate 1160s # { 1160s # GData *qdata; 1160s # }; 1160s # 1160s # static void org_project_other_signaling_iface_proxy_iface_init (OrgProjectOtherSignalingIfaceIface *iface); 1160s # 1160s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1160s # G_DEFINE_TYPE_WITH_CODE (OrgProjectOtherSignalingIfaceProxy, org_project_other_signaling_iface_proxy, G_TYPE_DBUS_PROXY, 1160s # G_ADD_PRIVATE (OrgProjectOtherSignalingIfaceProxy) 1160s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_OTHER_SIGNALING_IFACE, org_project_other_signaling_iface_proxy_iface_init)) 1160s # 1160s # #else 1160s # G_DEFINE_TYPE_WITH_CODE (OrgProjectOtherSignalingIfaceProxy, org_project_other_signaling_iface_proxy, G_TYPE_DBUS_PROXY, 1160s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_OTHER_SIGNALING_IFACE, org_project_other_signaling_iface_proxy_iface_init)) 1160s # 1160s # #endif 1160s # static void 1160s # org_project_other_signaling_iface_proxy_finalize (GObject *object) 1160s # { 1160s # OrgProjectOtherSignalingIfaceProxy *proxy = ORG_PROJECT_OTHER_SIGNALING_IFACE_PROXY (object); 1160s # g_datalist_clear (&proxy->priv->qdata); 1160s # G_OBJECT_CLASS (org_project_other_signaling_iface_proxy_parent_class)->finalize (object); 1160s # } 1160s # 1160s # static void 1160s # org_project_other_signaling_iface_proxy_get_property (GObject *object G_GNUC_UNUSED, 1160s # guint prop_id G_GNUC_UNUSED, 1160s # GValue *value G_GNUC_UNUSED, 1160s # GParamSpec *pspec G_GNUC_UNUSED) 1160s # { 1160s # } 1160s # 1160s # static void 1160s # org_project_other_signaling_iface_proxy_set_property (GObject *object G_GNUC_UNUSED, 1160s # guint prop_id G_GNUC_UNUSED, 1160s # const GValue *value G_GNUC_UNUSED, 1160s # GParamSpec *pspec G_GNUC_UNUSED) 1160s # { 1160s # } 1160s # 1160s # static void 1160s # org_project_other_signaling_iface_proxy_g_signal (GDBusProxy *proxy, 1160s # const gchar *sender_name G_GNUC_UNUSED, 1160s # const gchar *signal_name, 1160s # GVariant *parameters) 1160s # { 1160s # _ExtendedGDBusSignalInfo *info; 1160s # GVariantIter iter; 1160s # GVariant *child; 1160s # GValue *paramv; 1160s # gsize num_params; 1160s # gsize n; 1160s # guint signal_id; 1160s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_other_signaling_iface_interface_info.parent_struct, signal_name); 1160s # if (info == NULL) 1160s # return; 1160s # num_params = g_variant_n_children (parameters); 1160s # paramv = g_new0 (GValue, num_params + 1); 1160s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_OTHER_SIGNALING_IFACE); 1160s # g_value_set_object (¶mv[0], proxy); 1160s # g_variant_iter_init (&iter, parameters); 1160s # n = 1; 1160s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1160s # { 1160s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 1160s # if (arg_info->use_gvariant) 1160s # { 1160s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1160s # g_value_set_variant (¶mv[n], child); 1160s # n++; 1160s # } 1160s # else 1160s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1160s # g_variant_unref (child); 1160s # } 1160s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_OTHER_SIGNALING_IFACE); 1160s # g_signal_emitv (paramv, signal_id, 0, NULL); 1160s # for (n = 0; n < num_params + 1; n++) 1160s # g_value_unset (¶mv[n]); 1160s # g_free (paramv); 1160s # } 1160s # 1160s # static void 1160s # org_project_other_signaling_iface_proxy_g_properties_changed (GDBusProxy *_proxy, 1160s # GVariant *changed_properties, 1160s # const gchar *const *invalidated_properties) 1160s # { 1160s # OrgProjectOtherSignalingIfaceProxy *proxy = ORG_PROJECT_OTHER_SIGNALING_IFACE_PROXY (_proxy); 1160s # guint n; 1160s # const gchar *key; 1160s # GVariantIter *iter; 1160s # _ExtendedGDBusPropertyInfo *info; 1160s # g_variant_get (changed_properties, "a{sv}", &iter); 1160s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 1160s # { 1160s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_other_signaling_iface_interface_info.parent_struct, key); 1160s # g_datalist_remove_data (&proxy->priv->qdata, key); 1160s # if (info != NULL) 1160s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1160s # } 1160s # g_variant_iter_free (iter); 1160s # for (n = 0; invalidated_properties[n] != NULL; n++) 1160s # { 1160s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_other_signaling_iface_interface_info.parent_struct, invalidated_properties[n]); 1160s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 1160s # if (info != NULL) 1160s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1160s # } 1160s # } 1160s # 1160s # static void 1160s # org_project_other_signaling_iface_proxy_init (OrgProjectOtherSignalingIfaceProxy *proxy) 1160s # { 1160s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1160s # proxy->priv = org_project_other_signaling_iface_proxy_get_instance_private (proxy); 1160s # #else 1160s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_OTHER_SIGNALING_IFACE_PROXY, OrgProjectOtherSignalingIfaceProxyPrivate); 1160s # #endif 1160s # 1160s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_other_signaling_iface_interface_info ()); 1160s # } 1160s # 1160s # static void 1160s # org_project_other_signaling_iface_proxy_class_init (OrgProjectOtherSignalingIfaceProxyClass *klass) 1160s # { 1160s # GObjectClass *gobject_class; 1160s # GDBusProxyClass *proxy_class; 1160s # 1160s # gobject_class = G_OBJECT_CLASS (klass); 1160s # gobject_class->finalize = org_project_other_signaling_iface_proxy_finalize; 1160s # gobject_class->get_property = org_project_other_signaling_iface_proxy_get_property; 1160s # gobject_class->set_property = org_project_other_signaling_iface_proxy_set_property; 1160s # 1160s # proxy_class = G_DBUS_PROXY_CLASS (klass); 1160s # proxy_class->g_signal = org_project_other_signaling_iface_proxy_g_signal; 1160s # proxy_class->g_properties_changed = org_project_other_signaling_iface_proxy_g_properties_changed; 1160s # 1160s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1160s # g_type_class_add_private (klass, sizeof (OrgProjectOtherSignalingIfaceProxyPrivate)); 1160s # #endif 1160s # } 1160s # 1160s # static void 1160s # org_project_other_signaling_iface_proxy_iface_init (OrgProjectOtherSignalingIfaceIface *iface G_GNUC_UNUSED) 1160s # { 1160s # } 1160s # 1160s # /** 1160s # * org_project_other_signaling_iface_proxy_new: 1160s # * @connection: A #GDBusConnection. 1160s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1160s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1160s # * @object_path: An object path. 1160s # * @cancellable: (nullable): A #GCancellable or %NULL. 1160s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1160s # * @user_data: User data to pass to @callback. 1160s # * 1160s # * Asynchronously creates a proxy for the D-Bus interface org.project.OtherSignalingIface. See g_dbus_proxy_new() for more details. 1160s # * 1160s # * 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()). 1160s # * You can then call org_project_other_signaling_iface_proxy_new_finish() to get the result of the operation. 1160s # * 1160s # * See org_project_other_signaling_iface_proxy_new_sync() for the synchronous, blocking version of this constructor. 1160s # */ 1160s # void 1160s # org_project_other_signaling_iface_proxy_new ( 1160s # GDBusConnection *connection, 1160s # GDBusProxyFlags flags, 1160s # const gchar *name, 1160s # const gchar *object_path, 1160s # GCancellable *cancellable, 1160s # GAsyncReadyCallback callback, 1160s # gpointer user_data) 1160s # { 1160s # 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); 1160s # } 1160s # 1160s # /** 1160s # * org_project_other_signaling_iface_proxy_new_finish: 1160s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_other_signaling_iface_proxy_new(). 1160s # * @error: Return location for error or %NULL 1160s # * 1160s # * Finishes an operation started with org_project_other_signaling_iface_proxy_new(). 1160s # * 1160s # * Returns: (transfer full) (type OrgProjectOtherSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 1160s # */ 1160s # OrgProjectOtherSignalingIface * 1160s # org_project_other_signaling_iface_proxy_new_finish ( 1160s # GAsyncResult *res, 1160s # GError **error) 1160s # { 1160s # GObject *ret; 1160s # GObject *source_object; 1160s # source_object = g_async_result_get_source_object (res); 1160s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1160s # g_object_unref (source_object); 1160s # if (ret != NULL) 1160s # return ORG_PROJECT_OTHER_SIGNALING_IFACE (ret); 1160s # else 1160s # return NULL; 1160s # } 1160s # 1160s # /** 1160s # * org_project_other_signaling_iface_proxy_new_sync: 1160s # * @connection: A #GDBusConnection. 1160s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1160s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1160s # * @object_path: An object path. 1160s # * @cancellable: (nullable): A #GCancellable or %NULL. 1160s # * @error: Return location for error or %NULL 1160s # * 1160s # * Synchronously creates a proxy for the D-Bus interface org.project.OtherSignalingIface. See g_dbus_proxy_new_sync() for more details. 1160s # * 1160s # * The calling thread is blocked until a reply is received. 1160s # * 1160s # * See org_project_other_signaling_iface_proxy_new() for the asynchronous version of this constructor. 1160s # * 1160s # * Returns: (transfer full) (type OrgProjectOtherSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 1160s # */ 1160s # OrgProjectOtherSignalingIface * 1160s # org_project_other_signaling_iface_proxy_new_sync ( 1160s # GDBusConnection *connection, 1160s # GDBusProxyFlags flags, 1160s # const gchar *name, 1160s # const gchar *object_path, 1160s # GCancellable *cancellable, 1160s # GError **error) 1160s # { 1160s # GInitable *ret; 1160s # 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); 1160s # if (ret != NULL) 1160s # return ORG_PROJECT_OTHER_SIGNALING_IFACE (ret); 1160s # else 1160s # return NULL; 1160s # } 1160s # 1160s # 1160s # /** 1160s # * org_project_other_signaling_iface_proxy_new_for_bus: 1160s # * @bus_type: A #GBusType. 1160s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1160s # * @name: A bus name (well-known or unique). 1160s # * @object_path: An object path. 1160s # * @cancellable: (nullable): A #GCancellable or %NULL. 1160s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1160s # * @user_data: User data to pass to @callback. 1160s # * 1160s # * Like org_project_other_signaling_iface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 1160s # * 1160s # * 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()). 1160s # * You can then call org_project_other_signaling_iface_proxy_new_for_bus_finish() to get the result of the operation. 1160s # * 1160s # * See org_project_other_signaling_iface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 1160s # */ 1160s # void 1160s # org_project_other_signaling_iface_proxy_new_for_bus ( 1160s # GBusType bus_type, 1160s # GDBusProxyFlags flags, 1160s # const gchar *name, 1160s # const gchar *object_path, 1160s # GCancellable *cancellable, 1160s # GAsyncReadyCallback callback, 1160s # gpointer user_data) 1160s # { 1160s # 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); 1160s # } 1160s # 1160s # /** 1160s # * org_project_other_signaling_iface_proxy_new_for_bus_finish: 1160s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_other_signaling_iface_proxy_new_for_bus(). 1160s # * @error: Return location for error or %NULL 1160s # * 1160s # * Finishes an operation started with org_project_other_signaling_iface_proxy_new_for_bus(). 1160s # * 1160s # * Returns: (transfer full) (type OrgProjectOtherSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 1160s # */ 1160s # OrgProjectOtherSignalingIface * 1160s # org_project_other_signaling_iface_proxy_new_for_bus_finish ( 1160s # GAsyncResult *res, 1160s # GError **error) 1160s # { 1160s # GObject *ret; 1160s # GObject *source_object; 1160s # source_object = g_async_result_get_source_object (res); 1160s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1160s # g_object_unref (source_object); 1160s # if (ret != NULL) 1160s # return ORG_PROJECT_OTHER_SIGNALING_IFACE (ret); 1160s # else 1160s # return NULL; 1160s # } 1160s # 1160s # /** 1160s # * org_project_other_signaling_iface_proxy_new_for_bus_sync: 1160s # * @bus_type: A #GBusType. 1160s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1160s # * @name: A bus name (well-known or unique). 1160s # * @object_path: An object path. 1160s # * @cancellable: (nullable): A #GCancellable or %NULL. 1160s # * @error: Return location for error or %NULL 1160s # * 1160s # * Like org_project_other_signaling_iface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 1160s # * 1160s # * The calling thread is blocked until a reply is received. 1160s # * 1160s # * See org_project_other_signaling_iface_proxy_new_for_bus() for the asynchronous version of this constructor. 1160s # * 1160s # * Returns: (transfer full) (type OrgProjectOtherSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 1160s # */ 1160s # OrgProjectOtherSignalingIface * 1160s # org_project_other_signaling_iface_proxy_new_for_bus_sync ( 1160s # GBusType bus_type, 1160s # GDBusProxyFlags flags, 1160s # const gchar *name, 1160s # const gchar *object_path, 1160s # GCancellable *cancellable, 1160s # GError **error) 1160s # { 1160s # GInitable *ret; 1160s # 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); 1160s # if (ret != NULL) 1160s # return ORG_PROJECT_OTHER_SIGNALING_IFACE (ret); 1160s # else 1160s # return NULL; 1160s # } 1160s # 1160s # 1160s # /* ------------------------------------------------------------------------ */ 1160s # 1160s # /** 1160s # * OrgProjectOtherSignalingIfaceSkeleton: 1160s # * 1160s # * The #OrgProjectOtherSignalingIfaceSkeleton structure contains only private data and should only be accessed using the provided API. 1160s # */ 1160s # 1160s # /** 1160s # * OrgProjectOtherSignalingIfaceSkeletonClass: 1160s # * @parent_class: The parent class. 1160s # * 1160s # * Class structure for #OrgProjectOtherSignalingIfaceSkeleton. 1160s # */ 1160s # 1160s # struct _OrgProjectOtherSignalingIfaceSkeletonPrivate 1160s # { 1160s # GValue *properties; 1160s # GList *changed_properties; 1160s # GSource *changed_properties_idle_source; 1160s # GMainContext *context; 1160s # GMutex lock; 1160s # }; 1160s # 1160s # static void 1160s # _org_project_other_signaling_iface_skeleton_handle_method_call ( 1160s # GDBusConnection *connection G_GNUC_UNUSED, 1160s # const gchar *sender G_GNUC_UNUSED, 1160s # const gchar *object_path G_GNUC_UNUSED, 1160s # const gchar *interface_name, 1160s # const gchar *method_name, 1160s # GVariant *parameters, 1160s # GDBusMethodInvocation *invocation, 1160s # gpointer user_data) 1160s # { 1160s # OrgProjectOtherSignalingIfaceSkeleton *skeleton = ORG_PROJECT_OTHER_SIGNALING_IFACE_SKELETON (user_data); 1160s # _ExtendedGDBusMethodInfo *info; 1160s # GVariantIter iter; 1160s # GVariant *child; 1160s # GValue *paramv; 1160s # gsize num_params; 1160s # guint num_extra; 1160s # gsize n; 1160s # guint signal_id; 1160s # GValue return_value = G_VALUE_INIT; 1160s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 1160s # g_assert (info != NULL); 1160s # num_params = g_variant_n_children (parameters); 1160s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 1160s # n = 0; 1160s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_OTHER_SIGNALING_IFACE); 1160s # g_value_set_object (¶mv[n++], skeleton); 1160s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 1160s # g_value_set_object (¶mv[n++], invocation); 1160s # if (info->pass_fdlist) 1160s # { 1160s # #ifdef G_OS_UNIX 1160s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 1160s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 1160s # #else 1160s # g_assert_not_reached (); 1160s # #endif 1160s # } 1160s # g_variant_iter_init (&iter, parameters); 1160s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1160s # { 1160s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 1160s # if (arg_info->use_gvariant) 1160s # { 1160s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1160s # g_value_set_variant (¶mv[n], child); 1160s # n++; 1160s # } 1160s # else 1160s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1160s # g_variant_unref (child); 1160s # } 1160s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_OTHER_SIGNALING_IFACE); 1160s # g_value_init (&return_value, G_TYPE_BOOLEAN); 1160s # g_signal_emitv (paramv, signal_id, 0, &return_value); 1160s # if (!g_value_get_boolean (&return_value)) 1160s # 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); 1160s # g_value_unset (&return_value); 1160s # for (n = 0; n < num_params + num_extra; n++) 1160s # g_value_unset (¶mv[n]); 1160s # g_free (paramv); 1160s # } 1160s # 1160s # static GVariant * 1160s # _org_project_other_signaling_iface_skeleton_handle_get_property ( 1160s # GDBusConnection *connection G_GNUC_UNUSED, 1160s # const gchar *sender G_GNUC_UNUSED, 1160s # const gchar *object_path G_GNUC_UNUSED, 1160s # const gchar *interface_name G_GNUC_UNUSED, 1160s # const gchar *property_name, 1160s # GError **error, 1160s # gpointer user_data) 1160s # { 1160s # OrgProjectOtherSignalingIfaceSkeleton *skeleton = ORG_PROJECT_OTHER_SIGNALING_IFACE_SKELETON (user_data); 1160s # GValue value = G_VALUE_INIT; 1160s # GParamSpec *pspec; 1160s # _ExtendedGDBusPropertyInfo *info; 1160s # GVariant *ret; 1160s # ret = NULL; 1160s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_other_signaling_iface_interface_info.parent_struct, property_name); 1160s # g_assert (info != NULL); 1160s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1160s # if (pspec == NULL) 1160s # { 1160s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1160s # } 1160s # else 1160s # { 1160s # g_value_init (&value, pspec->value_type); 1160s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1160s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 1160s # g_value_unset (&value); 1160s # } 1160s # return ret; 1160s # } 1160s # 1160s # static gboolean 1160s # _org_project_other_signaling_iface_skeleton_handle_set_property ( 1160s # GDBusConnection *connection G_GNUC_UNUSED, 1160s # const gchar *sender G_GNUC_UNUSED, 1160s # const gchar *object_path G_GNUC_UNUSED, 1160s # const gchar *interface_name G_GNUC_UNUSED, 1160s # const gchar *property_name, 1160s # GVariant *variant, 1160s # GError **error, 1160s # gpointer user_data) 1160s # { 1160s # OrgProjectOtherSignalingIfaceSkeleton *skeleton = ORG_PROJECT_OTHER_SIGNALING_IFACE_SKELETON (user_data); 1160s # GValue value = G_VALUE_INIT; 1160s # GParamSpec *pspec; 1160s # _ExtendedGDBusPropertyInfo *info; 1160s # gboolean ret; 1160s # ret = FALSE; 1160s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_other_signaling_iface_interface_info.parent_struct, property_name); 1160s # g_assert (info != NULL); 1160s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1160s # if (pspec == NULL) 1160s # { 1160s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1160s # } 1160s # else 1160s # { 1160s # if (info->use_gvariant) 1160s # g_value_set_variant (&value, variant); 1160s # else 1160s # g_dbus_gvariant_to_gvalue (variant, &value); 1160s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1160s # g_value_unset (&value); 1160s # ret = TRUE; 1160s # } 1160s # return ret; 1160s # } 1160s # 1160s # static const GDBusInterfaceVTable _org_project_other_signaling_iface_skeleton_vtable = 1160s # { 1160s # _org_project_other_signaling_iface_skeleton_handle_method_call, 1160s # _org_project_other_signaling_iface_skeleton_handle_get_property, 1160s # _org_project_other_signaling_iface_skeleton_handle_set_property, 1160s # {NULL} 1160s # }; 1160s # 1160s # static GDBusInterfaceInfo * 1160s # org_project_other_signaling_iface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1160s # { 1160s # return org_project_other_signaling_iface_interface_info (); 1160s # } 1160s # 1160s # static GDBusInterfaceVTable * 1160s # org_project_other_signaling_iface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1160s # { 1160s # return (GDBusInterfaceVTable *) &_org_project_other_signaling_iface_skeleton_vtable; 1160s # } 1160s # 1160s # static GVariant * 1160s # org_project_other_signaling_iface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 1160s # { 1160s # OrgProjectOtherSignalingIfaceSkeleton *skeleton = ORG_PROJECT_OTHER_SIGNALING_IFACE_SKELETON (_skeleton); 1160s # 1160s # GVariantBuilder builder; 1160s # guint n; 1160s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 1160s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 1160s # #else 1160s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 1160s # #endif 1160s # if (_org_project_other_signaling_iface_interface_info.parent_struct.properties == NULL) 1160s # goto out; 1160s # for (n = 0; _org_project_other_signaling_iface_interface_info.parent_struct.properties[n] != NULL; n++) 1160s # { 1160s # GDBusPropertyInfo *info = _org_project_other_signaling_iface_interface_info.parent_struct.properties[n]; 1160s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 1160s # { 1160s # GVariant *value; 1160s # 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); 1160s # if (value != NULL) 1160s # { 1160s # g_variant_take_ref (value); 1160s # g_variant_builder_add (&builder, "{sv}", info->name, value); 1160s # g_variant_unref (value); 1160s # } 1160s # } 1160s # } 1160s # out: 1160s # return g_variant_builder_end (&builder); 1160s # } 1160s # 1160s # static void 1160s # org_project_other_signaling_iface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 1160s # { 1160s # } 1160s # 1160s # static void 1160s # _org_project_other_signaling_iface_on_signal_simple_signal ( 1160s # OrgProjectOtherSignalingIface *object) 1160s # { 1160s # OrgProjectOtherSignalingIfaceSkeleton *skeleton = ORG_PROJECT_OTHER_SIGNALING_IFACE_SKELETON (object); 1160s # 1160s # GList *connections, *l; 1160s # GVariant *signal_variant; 1160s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 1160s # 1160s # signal_variant = g_variant_ref_sink (g_variant_new ("()")); 1160s # for (l = connections; l != NULL; l = l->next) 1160s # { 1160s # GDBusConnection *connection = l->data; 1160s # g_dbus_connection_emit_signal (connection, 1160s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.OtherSignalingIface", "SimpleSignal", 1160s # signal_variant, NULL); 1160s # } 1160s # g_variant_unref (signal_variant); 1160s # g_list_free_full (connections, g_object_unref); 1160s # } 1160s # 1160s # static void org_project_other_signaling_iface_skeleton_iface_init (OrgProjectOtherSignalingIfaceIface *iface); 1160s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1160s # G_DEFINE_TYPE_WITH_CODE (OrgProjectOtherSignalingIfaceSkeleton, org_project_other_signaling_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1160s # G_ADD_PRIVATE (OrgProjectOtherSignalingIfaceSkeleton) 1160s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_OTHER_SIGNALING_IFACE, org_project_other_signaling_iface_skeleton_iface_init)) 1160s # 1160s # #else 1160s # G_DEFINE_TYPE_WITH_CODE (OrgProjectOtherSignalingIfaceSkeleton, org_project_other_signaling_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1160s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_OTHER_SIGNALING_IFACE, org_project_other_signaling_iface_skeleton_iface_init)) 1160s # 1160s # #endif 1160s # static void 1160s # org_project_other_signaling_iface_skeleton_finalize (GObject *object) 1160s # { 1160s # OrgProjectOtherSignalingIfaceSkeleton *skeleton = ORG_PROJECT_OTHER_SIGNALING_IFACE_SKELETON (object); 1160s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 1160s # if (skeleton->priv->changed_properties_idle_source != NULL) 1160s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 1160s # g_main_context_unref (skeleton->priv->context); 1160s # g_mutex_clear (&skeleton->priv->lock); 1160s # G_OBJECT_CLASS (org_project_other_signaling_iface_skeleton_parent_class)->finalize (object); 1160s # } 1160s # 1160s # static void 1160s # org_project_other_signaling_iface_skeleton_init (OrgProjectOtherSignalingIfaceSkeleton *skeleton) 1160s # { 1160s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1160s # skeleton->priv = org_project_other_signaling_iface_skeleton_get_instance_private (skeleton); 1160s # #else 1160s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_OTHER_SIGNALING_IFACE_SKELETON, OrgProjectOtherSignalingIfaceSkeletonPrivate); 1160s # #endif 1160s # 1160s # g_mutex_init (&skeleton->priv->lock); 1160s # skeleton->priv->context = g_main_context_ref_thread_default (); 1160s # } 1160s # 1160s # static void 1160s # org_project_other_signaling_iface_skeleton_class_init (OrgProjectOtherSignalingIfaceSkeletonClass *klass) 1160s # { 1160s # GObjectClass *gobject_class; 1160s # GDBusInterfaceSkeletonClass *skeleton_class; 1160s # 1160s # gobject_class = G_OBJECT_CLASS (klass); 1160s # gobject_class->finalize = org_project_other_signaling_iface_skeleton_finalize; 1160s # 1160s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 1160s # skeleton_class->get_info = org_project_other_signaling_iface_skeleton_dbus_interface_get_info; 1160s # skeleton_class->get_properties = org_project_other_signaling_iface_skeleton_dbus_interface_get_properties; 1160s # skeleton_class->flush = org_project_other_signaling_iface_skeleton_dbus_interface_flush; 1160s # skeleton_class->get_vtable = org_project_other_signaling_iface_skeleton_dbus_interface_get_vtable; 1160s # 1160s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1160s # g_type_class_add_private (klass, sizeof (OrgProjectOtherSignalingIfaceSkeletonPrivate)); 1160s # #endif 1160s # } 1160s # 1160s # static void 1160s # org_project_other_signaling_iface_skeleton_iface_init (OrgProjectOtherSignalingIfaceIface *iface) 1160s # { 1160s # iface->simple_signal = _org_project_other_signaling_iface_on_signal_simple_signal; 1160s # } 1160s # 1160s # /** 1160s # * org_project_other_signaling_iface_skeleton_new: 1160s # * 1160s # * Creates a skeleton object for the D-Bus interface org.project.OtherSignalingIface. 1160s # * 1160s # * Returns: (transfer full) (type OrgProjectOtherSignalingIfaceSkeleton): The skeleton object. 1160s # */ 1160s # OrgProjectOtherSignalingIface * 1160s # org_project_other_signaling_iface_skeleton_new (void) 1160s # { 1160s # return ORG_PROJECT_OTHER_SIGNALING_IFACE (g_object_new (TYPE_ORG_PROJECT_OTHER_SIGNALING_IFACE_SKELETON, NULL)); 1160s # } 1160s # Error: 1160s # Executing: glib/codegen.py.test 1161s ok 23 __main__.TestCodegen.test_generate_signals_marshaller_single_typed_args 1161s # gdbus-codegen: /usr/bin/gdbus-codegen 1161s # tmpdir: /tmp/tmpjwrvmpd2 1161s # /tmp/tmpjwrvmpd2/tmp9z38vnbe.xml: 1161s # 1161s # 1161s # 1161s # 1161s # 1161s # 1161s # 1161s # 1161s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpjwrvmpd2/tmp9z38vnbe.xml', '--output', '-', '--body'] 1161s # Return code: 0 1161s # Output: 1161s # /* 1161s # * This file is generated by gdbus-codegen, do not modify it. 1161s # * 1161s # * The license of this code is the same as for the D-Bus interface description 1161s # * it was derived from. Note that it links to GLib, so must comply with the 1161s # * LGPL linking clauses. 1161s # */ 1161s # 1161s # #ifdef HAVE_CONFIG_H 1161s # # include "config.h" 1161s # #endif 1161s # 1161s # #include 1161s # #ifdef G_OS_UNIX 1161s # # include 1161s # #endif 1161s # 1161s # #ifdef G_ENABLE_DEBUG 1161s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 1161s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 1161s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 1161s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 1161s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 1161s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 1161s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 1161s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 1161s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 1161s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 1161s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 1161s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 1161s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 1161s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 1161s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 1161s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 1161s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 1161s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 1161s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 1161s # #else /* !G_ENABLE_DEBUG */ 1161s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 1161s # * Do not access GValues directly in your code. Instead, use the 1161s # * g_value_get_*() functions 1161s # */ 1161s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 1161s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 1161s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 1161s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 1161s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 1161s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 1161s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 1161s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 1161s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 1161s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 1161s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 1161s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 1161s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 1161s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 1161s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 1161s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 1161s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 1161s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 1161s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 1161s # #endif /* !G_ENABLE_DEBUG */ 1161s # 1161s # typedef struct 1161s # { 1161s # GDBusArgInfo parent_struct; 1161s # gboolean use_gvariant; 1161s # } _ExtendedGDBusArgInfo; 1161s # 1161s # typedef struct 1161s # { 1161s # GDBusMethodInfo parent_struct; 1161s # const gchar *signal_name; 1161s # gboolean pass_fdlist; 1161s # } _ExtendedGDBusMethodInfo; 1161s # 1161s # typedef struct 1161s # { 1161s # GDBusSignalInfo parent_struct; 1161s # const gchar *signal_name; 1161s # } _ExtendedGDBusSignalInfo; 1161s # 1161s # typedef struct 1161s # { 1161s # GDBusPropertyInfo parent_struct; 1161s # const gchar *hyphen_name; 1161s # guint use_gvariant : 1; 1161s # guint emits_changed_signal : 1; 1161s # } _ExtendedGDBusPropertyInfo; 1161s # 1161s # typedef struct 1161s # { 1161s # GDBusInterfaceInfo parent_struct; 1161s # const gchar *hyphen_name; 1161s # } _ExtendedGDBusInterfaceInfo; 1161s # 1161s # typedef struct 1161s # { 1161s # const _ExtendedGDBusPropertyInfo *info; 1161s # guint prop_id; 1161s # GValue orig_value; /* the value before the change */ 1161s # } ChangedProperty; 1161s # 1161s # static void 1161s # _changed_property_free (ChangedProperty *data) 1161s # { 1161s # g_value_unset (&data->orig_value); 1161s # g_free (data); 1161s # } 1161s # 1161s # static gboolean 1161s # _g_strv_equal0 (gchar **a, gchar **b) 1161s # { 1161s # gboolean ret = FALSE; 1161s # guint n; 1161s # if (a == NULL && b == NULL) 1161s # { 1161s # ret = TRUE; 1161s # goto out; 1161s # } 1161s # if (a == NULL || b == NULL) 1161s # goto out; 1161s # if (g_strv_length (a) != g_strv_length (b)) 1161s # goto out; 1161s # for (n = 0; a[n] != NULL; n++) 1161s # if (g_strcmp0 (a[n], b[n]) != 0) 1161s # goto out; 1161s # ret = TRUE; 1161s # out: 1161s # return ret; 1161s # } 1161s # 1161s # static gboolean 1161s # _g_variant_equal0 (GVariant *a, GVariant *b) 1161s # { 1161s # gboolean ret = FALSE; 1161s # if (a == NULL && b == NULL) 1161s # { 1161s # ret = TRUE; 1161s # goto out; 1161s # } 1161s # if (a == NULL || b == NULL) 1161s # goto out; 1161s # ret = g_variant_equal (a, b); 1161s # out: 1161s # return ret; 1161s # } 1161s # 1161s # G_GNUC_UNUSED static gboolean 1161s # _g_value_equal (const GValue *a, const GValue *b) 1161s # { 1161s # gboolean ret = FALSE; 1161s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 1161s # switch (G_VALUE_TYPE (a)) 1161s # { 1161s # case G_TYPE_BOOLEAN: 1161s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 1161s # break; 1161s # case G_TYPE_UCHAR: 1161s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 1161s # break; 1161s # case G_TYPE_INT: 1161s # ret = (g_value_get_int (a) == g_value_get_int (b)); 1161s # break; 1161s # case G_TYPE_UINT: 1161s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 1161s # break; 1161s # case G_TYPE_INT64: 1161s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 1161s # break; 1161s # case G_TYPE_UINT64: 1161s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 1161s # break; 1161s # case G_TYPE_DOUBLE: 1161s # { 1161s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 1161s # gdouble da = g_value_get_double (a); 1161s # gdouble db = g_value_get_double (b); 1161s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 1161s # } 1161s # break; 1161s # case G_TYPE_STRING: 1161s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 1161s # break; 1161s # case G_TYPE_VARIANT: 1161s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 1161s # break; 1161s # default: 1161s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 1161s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 1161s # else 1161s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 1161s # break; 1161s # } 1161s # return ret; 1161s # } 1161s # 1161s # /* ------------------------------------------------------------------------ 1161s # * Code for interface org.project.SignalingIface 1161s # * ------------------------------------------------------------------------ 1161s # */ 1161s # 1161s # /** 1161s # * SECTION:OrgProjectSignalingIface 1161s # * @title: OrgProjectSignalingIface 1161s # * @short_description: Generated C code for the org.project.SignalingIface D-Bus interface 1161s # * 1161s # * This section contains code for working with the org.project.SignalingIface D-Bus interface in C. 1161s # */ 1161s # 1161s # enum 1161s # { 1161s # _ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL, 1161s # _ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_B, 1161s # }; 1161s # 1161s # static unsigned _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[2] = { 0 }; 1161s # 1161s # /* ---- Introspection data for org.project.SignalingIface ---- */ 1161s # 1161s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_simple_signal = 1161s # { 1161s # { 1161s # -1, 1161s # (gchar *) "SimpleSignal", 1161s # NULL, 1161s # NULL 1161s # }, 1161s # "simple-signal" 1161s # }; 1161s # 1161s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_single_arg_signal_b_ARG_arg_b = 1161s # { 1161s # { 1161s # -1, 1161s # (gchar *) "arg_b", 1161s # (gchar *) "b", 1161s # NULL 1161s # }, 1161s # FALSE 1161s # }; 1161s # 1161s # static const GDBusArgInfo * const _org_project_signaling_iface_signal_info_single_arg_signal_b_ARG_pointers[] = 1161s # { 1161s # &_org_project_signaling_iface_signal_info_single_arg_signal_b_ARG_arg_b.parent_struct, 1161s # NULL 1161s # }; 1161s # 1161s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_single_arg_signal_b = 1161s # { 1161s # { 1161s # -1, 1161s # (gchar *) "SingleArgSignalB", 1161s # (GDBusArgInfo **) &_org_project_signaling_iface_signal_info_single_arg_signal_b_ARG_pointers, 1161s # NULL 1161s # }, 1161s # "single-arg-signal-b" 1161s # }; 1161s # 1161s # static const GDBusSignalInfo * const _org_project_signaling_iface_signal_info_pointers[] = 1161s # { 1161s # &_org_project_signaling_iface_signal_info_simple_signal.parent_struct, 1161s # &_org_project_signaling_iface_signal_info_single_arg_signal_b.parent_struct, 1161s # NULL 1161s # }; 1161s # 1161s # static const _ExtendedGDBusInterfaceInfo _org_project_signaling_iface_interface_info = 1161s # { 1161s # { 1161s # -1, 1161s # (gchar *) "org.project.SignalingIface", 1161s # NULL, 1161s # (GDBusSignalInfo **) &_org_project_signaling_iface_signal_info_pointers, 1161s # NULL, 1161s # NULL 1161s # }, 1161s # "org-project-signaling-iface", 1161s # }; 1161s # 1161s # 1161s # /** 1161s # * org_project_signaling_iface_interface_info: 1161s # * 1161s # * Gets a machine-readable description of the org.project.SignalingIface D-Bus interface. 1161s # * 1161s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 1161s # */ 1161s # GDBusInterfaceInfo * 1161s # org_project_signaling_iface_interface_info (void) 1161s # { 1161s # return (GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct; 1161s # } 1161s # 1161s # /** 1161s # * org_project_signaling_iface_override_properties: 1161s # * @klass: The class structure for a #GObject derived class. 1161s # * @property_id_begin: The property id to assign to the first overridden property. 1161s # * 1161s # * Overrides all #GObject properties in the #OrgProjectSignalingIface interface for a concrete class. 1161s # * The properties are overridden in the order they are defined. 1161s # * 1161s # * Returns: The last property id. 1161s # */ 1161s # guint 1161s # org_project_signaling_iface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 1161s # { 1161s # return property_id_begin - 1; 1161s # } 1161s # 1161s # 1161s # inline static void 1161s # org_project_signaling_iface_signal_marshal_simple_signal ( 1161s # GClosure *closure, 1161s # GValue *return_value, 1161s # unsigned int n_param_values, 1161s # const GValue *param_values, 1161s # void *invocation_hint, 1161s # void *marshal_data) 1161s # { 1161s # g_cclosure_marshal_VOID__VOID (closure, 1161s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1161s # } 1161s # 1161s # inline static void 1161s # org_project_signaling_iface_signal_marshal_single_arg_signal_b ( 1161s # GClosure *closure, 1161s # GValue *return_value, 1161s # unsigned int n_param_values, 1161s # const GValue *param_values, 1161s # void *invocation_hint, 1161s # void *marshal_data) 1161s # { 1161s # g_cclosure_marshal_VOID__BOOLEAN (closure, 1161s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1161s # } 1161s # 1161s # 1161s # /** 1161s # * OrgProjectSignalingIface: 1161s # * 1161s # * Abstract interface type for the D-Bus interface org.project.SignalingIface. 1161s # */ 1161s # 1161s # /** 1161s # * OrgProjectSignalingIfaceIface: 1161s # * @parent_iface: The parent interface. 1161s # * @simple_signal: Handler for the #OrgProjectSignalingIface::simple-signal signal. 1161s # * @single_arg_signal_b: Handler for the #OrgProjectSignalingIface::single-arg-signal-b signal. 1161s # * 1161s # * Virtual table for the D-Bus interface org.project.SignalingIface. 1161s # */ 1161s # 1161s # typedef OrgProjectSignalingIfaceIface OrgProjectSignalingIfaceInterface; 1161s # G_DEFINE_INTERFACE (OrgProjectSignalingIface, org_project_signaling_iface, G_TYPE_OBJECT) 1161s # 1161s # static void 1161s # org_project_signaling_iface_default_init (OrgProjectSignalingIfaceIface *iface) 1161s # { 1161s # /* GObject signals for received D-Bus signals: */ 1161s # /** 1161s # * OrgProjectSignalingIface::simple-signal: 1161s # * @object: A #OrgProjectSignalingIface. 1161s # * 1161s # * On the client-side, this signal is emitted whenever the D-Bus signal "SimpleSignal" is received. 1161s # * 1161s # * 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. 1161s # */ 1161s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL] = 1161s # g_signal_new ("simple-signal", 1161s # G_TYPE_FROM_INTERFACE (iface), 1161s # G_SIGNAL_RUN_LAST, 1161s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, simple_signal), 1161s # NULL, 1161s # NULL, 1161s # org_project_signaling_iface_signal_marshal_simple_signal, 1161s # G_TYPE_NONE, 1161s # 0); 1161s # 1161s # /** 1161s # * OrgProjectSignalingIface::single-arg-signal-b: 1161s # * @object: A #OrgProjectSignalingIface. 1161s # * @arg_arg_b: Argument. 1161s # * 1161s # * On the client-side, this signal is emitted whenever the D-Bus signal "SingleArgSignalB" is received. 1161s # * 1161s # * 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. 1161s # */ 1161s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_B] = 1161s # g_signal_new ("single-arg-signal-b", 1161s # G_TYPE_FROM_INTERFACE (iface), 1161s # G_SIGNAL_RUN_LAST, 1161s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, single_arg_signal_b), 1161s # NULL, 1161s # NULL, 1161s # org_project_signaling_iface_signal_marshal_single_arg_signal_b, 1161s # G_TYPE_NONE, 1161s # 1, G_TYPE_BOOLEAN); 1161s # 1161s # } 1161s # 1161s # /** 1161s # * org_project_signaling_iface_emit_simple_signal: 1161s # * @object: A #OrgProjectSignalingIface. 1161s # * 1161s # * Emits the "SimpleSignal" D-Bus signal. 1161s # */ 1161s # void 1161s # org_project_signaling_iface_emit_simple_signal ( 1161s # OrgProjectSignalingIface *object) 1161s # { 1161s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL], 0); 1161s # } 1161s # 1161s # /** 1161s # * org_project_signaling_iface_emit_single_arg_signal_b: 1161s # * @object: A #OrgProjectSignalingIface. 1161s # * @arg_arg_b: Argument to pass with the signal. 1161s # * 1161s # * Emits the "SingleArgSignalB" D-Bus signal. 1161s # */ 1161s # void 1161s # org_project_signaling_iface_emit_single_arg_signal_b ( 1161s # OrgProjectSignalingIface *object, 1161s # gboolean arg_arg_b) 1161s # { 1161s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_B], 0, arg_arg_b); 1161s # } 1161s # 1161s # /* ------------------------------------------------------------------------ */ 1161s # 1161s # /** 1161s # * OrgProjectSignalingIfaceProxy: 1161s # * 1161s # * The #OrgProjectSignalingIfaceProxy structure contains only private data and should only be accessed using the provided API. 1161s # */ 1161s # 1161s # /** 1161s # * OrgProjectSignalingIfaceProxyClass: 1161s # * @parent_class: The parent class. 1161s # * 1161s # * Class structure for #OrgProjectSignalingIfaceProxy. 1161s # */ 1161s # 1161s # struct _OrgProjectSignalingIfaceProxyPrivate 1161s # { 1161s # GData *qdata; 1161s # }; 1161s # 1161s # static void org_project_signaling_iface_proxy_iface_init (OrgProjectSignalingIfaceIface *iface); 1161s # 1161s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1161s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceProxy, org_project_signaling_iface_proxy, G_TYPE_DBUS_PROXY, 1161s # G_ADD_PRIVATE (OrgProjectSignalingIfaceProxy) 1161s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_proxy_iface_init)) 1161s # 1161s # #else 1161s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceProxy, org_project_signaling_iface_proxy, G_TYPE_DBUS_PROXY, 1161s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_proxy_iface_init)) 1161s # 1161s # #endif 1161s # static void 1161s # org_project_signaling_iface_proxy_finalize (GObject *object) 1161s # { 1161s # OrgProjectSignalingIfaceProxy *proxy = ORG_PROJECT_SIGNALING_IFACE_PROXY (object); 1161s # g_datalist_clear (&proxy->priv->qdata); 1161s # G_OBJECT_CLASS (org_project_signaling_iface_proxy_parent_class)->finalize (object); 1161s # } 1161s # 1161s # static void 1161s # org_project_signaling_iface_proxy_get_property (GObject *object G_GNUC_UNUSED, 1161s # guint prop_id G_GNUC_UNUSED, 1161s # GValue *value G_GNUC_UNUSED, 1161s # GParamSpec *pspec G_GNUC_UNUSED) 1161s # { 1161s # } 1161s # 1161s # static void 1161s # org_project_signaling_iface_proxy_set_property (GObject *object G_GNUC_UNUSED, 1161s # guint prop_id G_GNUC_UNUSED, 1161s # const GValue *value G_GNUC_UNUSED, 1161s # GParamSpec *pspec G_GNUC_UNUSED) 1161s # { 1161s # } 1161s # 1161s # static void 1161s # org_project_signaling_iface_proxy_g_signal (GDBusProxy *proxy, 1161s # const gchar *sender_name G_GNUC_UNUSED, 1161s # const gchar *signal_name, 1161s # GVariant *parameters) 1161s # { 1161s # _ExtendedGDBusSignalInfo *info; 1161s # GVariantIter iter; 1161s # GVariant *child; 1161s # GValue *paramv; 1161s # gsize num_params; 1161s # gsize n; 1161s # guint signal_id; 1161s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, signal_name); 1161s # if (info == NULL) 1161s # return; 1161s # num_params = g_variant_n_children (parameters); 1161s # paramv = g_new0 (GValue, num_params + 1); 1161s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_SIGNALING_IFACE); 1161s # g_value_set_object (¶mv[0], proxy); 1161s # g_variant_iter_init (&iter, parameters); 1161s # n = 1; 1161s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1161s # { 1161s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 1161s # if (arg_info->use_gvariant) 1161s # { 1161s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1161s # g_value_set_variant (¶mv[n], child); 1161s # n++; 1161s # } 1161s # else 1161s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1161s # g_variant_unref (child); 1161s # } 1161s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_SIGNALING_IFACE); 1161s # g_signal_emitv (paramv, signal_id, 0, NULL); 1161s # for (n = 0; n < num_params + 1; n++) 1161s # g_value_unset (¶mv[n]); 1161s # g_free (paramv); 1161s # } 1161s # 1161s # static void 1161s # org_project_signaling_iface_proxy_g_properties_changed (GDBusProxy *_proxy, 1161s # GVariant *changed_properties, 1161s # const gchar *const *invalidated_properties) 1161s # { 1161s # OrgProjectSignalingIfaceProxy *proxy = ORG_PROJECT_SIGNALING_IFACE_PROXY (_proxy); 1161s # guint n; 1161s # const gchar *key; 1161s # GVariantIter *iter; 1161s # _ExtendedGDBusPropertyInfo *info; 1161s # g_variant_get (changed_properties, "a{sv}", &iter); 1161s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 1161s # { 1161s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, key); 1161s # g_datalist_remove_data (&proxy->priv->qdata, key); 1161s # if (info != NULL) 1161s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1161s # } 1161s # g_variant_iter_free (iter); 1161s # for (n = 0; invalidated_properties[n] != NULL; n++) 1161s # { 1161s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, invalidated_properties[n]); 1161s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 1161s # if (info != NULL) 1161s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1161s # } 1161s # } 1161s # 1161s # static void 1161s # org_project_signaling_iface_proxy_init (OrgProjectSignalingIfaceProxy *proxy) 1161s # { 1161s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1161s # proxy->priv = org_project_signaling_iface_proxy_get_instance_private (proxy); 1161s # #else 1161s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_SIGNALING_IFACE_PROXY, OrgProjectSignalingIfaceProxyPrivate); 1161s # #endif 1161s # 1161s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_signaling_iface_interface_info ()); 1161s # } 1161s # 1161s # static void 1161s # org_project_signaling_iface_proxy_class_init (OrgProjectSignalingIfaceProxyClass *klass) 1161s # { 1161s # GObjectClass *gobject_class; 1161s # GDBusProxyClass *proxy_class; 1161s # 1161s # gobject_class = G_OBJECT_CLASS (klass); 1161s # gobject_class->finalize = org_project_signaling_iface_proxy_finalize; 1161s # gobject_class->get_property = org_project_signaling_iface_proxy_get_property; 1161s # gobject_class->set_property = org_project_signaling_iface_proxy_set_property; 1161s # 1161s # proxy_class = G_DBUS_PROXY_CLASS (klass); 1161s # proxy_class->g_signal = org_project_signaling_iface_proxy_g_signal; 1161s # proxy_class->g_properties_changed = org_project_signaling_iface_proxy_g_properties_changed; 1161s # 1161s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1161s # g_type_class_add_private (klass, sizeof (OrgProjectSignalingIfaceProxyPrivate)); 1161s # #endif 1161s # } 1161s # 1161s # static void 1161s # org_project_signaling_iface_proxy_iface_init (OrgProjectSignalingIfaceIface *iface G_GNUC_UNUSED) 1161s # { 1161s # } 1161s # 1161s # /** 1161s # * org_project_signaling_iface_proxy_new: 1161s # * @connection: A #GDBusConnection. 1161s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1161s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1161s # * @object_path: An object path. 1161s # * @cancellable: (nullable): A #GCancellable or %NULL. 1161s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1161s # * @user_data: User data to pass to @callback. 1161s # * 1161s # * Asynchronously creates a proxy for the D-Bus interface org.project.SignalingIface. See g_dbus_proxy_new() for more details. 1161s # * 1161s # * 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()). 1161s # * You can then call org_project_signaling_iface_proxy_new_finish() to get the result of the operation. 1161s # * 1161s # * See org_project_signaling_iface_proxy_new_sync() for the synchronous, blocking version of this constructor. 1161s # */ 1161s # void 1161s # org_project_signaling_iface_proxy_new ( 1161s # GDBusConnection *connection, 1161s # GDBusProxyFlags flags, 1161s # const gchar *name, 1161s # const gchar *object_path, 1161s # GCancellable *cancellable, 1161s # GAsyncReadyCallback callback, 1161s # gpointer user_data) 1161s # { 1161s # 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); 1161s # } 1161s # 1161s # /** 1161s # * org_project_signaling_iface_proxy_new_finish: 1161s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_signaling_iface_proxy_new(). 1161s # * @error: Return location for error or %NULL 1161s # * 1161s # * Finishes an operation started with org_project_signaling_iface_proxy_new(). 1161s # * 1161s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 1161s # */ 1161s # OrgProjectSignalingIface * 1161s # org_project_signaling_iface_proxy_new_finish ( 1161s # GAsyncResult *res, 1161s # GError **error) 1161s # { 1161s # GObject *ret; 1161s # GObject *source_object; 1161s # source_object = g_async_result_get_source_object (res); 1161s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1161s # g_object_unref (source_object); 1161s # if (ret != NULL) 1161s # return ORG_PROJECT_SIGNALING_IFACE (ret); 1161s # else 1161s # return NULL; 1161s # } 1161s # 1161s # /** 1161s # * org_project_signaling_iface_proxy_new_sync: 1161s # * @connection: A #GDBusConnection. 1161s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1161s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1161s # * @object_path: An object path. 1161s # * @cancellable: (nullable): A #GCancellable or %NULL. 1161s # * @error: Return location for error or %NULL 1161s # * 1161s # * Synchronously creates a proxy for the D-Bus interface org.project.SignalingIface. See g_dbus_proxy_new_sync() for more details. 1161s # * 1161s # * The calling thread is blocked until a reply is received. 1161s # * 1161s # * See org_project_signaling_iface_proxy_new() for the asynchronous version of this constructor. 1161s # * 1161s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 1161s # */ 1161s # OrgProjectSignalingIface * 1161s # org_project_signaling_iface_proxy_new_sync ( 1161s # GDBusConnection *connection, 1161s # GDBusProxyFlags flags, 1161s # const gchar *name, 1161s # const gchar *object_path, 1161s # GCancellable *cancellable, 1161s # GError **error) 1161s # { 1161s # GInitable *ret; 1161s # 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); 1161s # if (ret != NULL) 1161s # return ORG_PROJECT_SIGNALING_IFACE (ret); 1161s # else 1161s # return NULL; 1161s # } 1161s # 1161s # 1161s # /** 1161s # * org_project_signaling_iface_proxy_new_for_bus: 1161s # * @bus_type: A #GBusType. 1161s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1161s # * @name: A bus name (well-known or unique). 1161s # * @object_path: An object path. 1161s # * @cancellable: (nullable): A #GCancellable or %NULL. 1161s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1161s # * @user_data: User data to pass to @callback. 1161s # * 1161s # * Like org_project_signaling_iface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 1161s # * 1161s # * 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()). 1161s # * You can then call org_project_signaling_iface_proxy_new_for_bus_finish() to get the result of the operation. 1161s # * 1161s # * See org_project_signaling_iface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 1161s # */ 1161s # void 1161s # org_project_signaling_iface_proxy_new_for_bus ( 1161s # GBusType bus_type, 1161s # GDBusProxyFlags flags, 1161s # const gchar *name, 1161s # const gchar *object_path, 1161s # GCancellable *cancellable, 1161s # GAsyncReadyCallback callback, 1161s # gpointer user_data) 1161s # { 1161s # 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); 1161s # } 1161s # 1161s # /** 1161s # * org_project_signaling_iface_proxy_new_for_bus_finish: 1161s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_signaling_iface_proxy_new_for_bus(). 1161s # * @error: Return location for error or %NULL 1161s # * 1161s # * Finishes an operation started with org_project_signaling_iface_proxy_new_for_bus(). 1161s # * 1161s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 1161s # */ 1161s # OrgProjectSignalingIface * 1161s # org_project_signaling_iface_proxy_new_for_bus_finish ( 1161s # GAsyncResult *res, 1161s # GError **error) 1161s # { 1161s # GObject *ret; 1161s # GObject *source_object; 1161s # source_object = g_async_result_get_source_object (res); 1161s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1161s # g_object_unref (source_object); 1161s # if (ret != NULL) 1161s # return ORG_PROJECT_SIGNALING_IFACE (ret); 1161s # else 1161s # return NULL; 1161s # } 1161s # 1161s # /** 1161s # * org_project_signaling_iface_proxy_new_for_bus_sync: 1161s # * @bus_type: A #GBusType. 1161s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1161s # * @name: A bus name (well-known or unique). 1161s # * @object_path: An object path. 1161s # * @cancellable: (nullable): A #GCancellable or %NULL. 1161s # * @error: Return location for error or %NULL 1161s # * 1161s # * Like org_project_signaling_iface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 1161s # * 1161s # * The calling thread is blocked until a reply is received. 1161s # * 1161s # * See org_project_signaling_iface_proxy_new_for_bus() for the asynchronous version of this constructor. 1161s # * 1161s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 1161s # */ 1161s # OrgProjectSignalingIface * 1161s # org_project_signaling_iface_proxy_new_for_bus_sync ( 1161s # GBusType bus_type, 1161s # GDBusProxyFlags flags, 1161s # const gchar *name, 1161s # const gchar *object_path, 1161s # GCancellable *cancellable, 1161s # GError **error) 1161s # { 1161s # GInitable *ret; 1161s # 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); 1161s # if (ret != NULL) 1161s # return ORG_PROJECT_SIGNALING_IFACE (ret); 1161s # else 1161s # return NULL; 1161s # } 1161s # 1161s # 1161s # /* ------------------------------------------------------------------------ */ 1161s # 1161s # /** 1161s # * OrgProjectSignalingIfaceSkeleton: 1161s # * 1161s # * The #OrgProjectSignalingIfaceSkeleton structure contains only private data and should only be accessed using the provided API. 1161s # */ 1161s # 1161s # /** 1161s # * OrgProjectSignalingIfaceSkeletonClass: 1161s # * @parent_class: The parent class. 1161s # * 1161s # * Class structure for #OrgProjectSignalingIfaceSkeleton. 1161s # */ 1161s # 1161s # struct _OrgProjectSignalingIfaceSkeletonPrivate 1161s # { 1161s # GValue *properties; 1161s # GList *changed_properties; 1161s # GSource *changed_properties_idle_source; 1161s # GMainContext *context; 1161s # GMutex lock; 1161s # }; 1161s # 1161s # static void 1161s # _org_project_signaling_iface_skeleton_handle_method_call ( 1161s # GDBusConnection *connection G_GNUC_UNUSED, 1161s # const gchar *sender G_GNUC_UNUSED, 1161s # const gchar *object_path G_GNUC_UNUSED, 1161s # const gchar *interface_name, 1161s # const gchar *method_name, 1161s # GVariant *parameters, 1161s # GDBusMethodInvocation *invocation, 1161s # gpointer user_data) 1161s # { 1161s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 1161s # _ExtendedGDBusMethodInfo *info; 1161s # GVariantIter iter; 1161s # GVariant *child; 1161s # GValue *paramv; 1161s # gsize num_params; 1161s # guint num_extra; 1161s # gsize n; 1161s # guint signal_id; 1161s # GValue return_value = G_VALUE_INIT; 1161s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 1161s # g_assert (info != NULL); 1161s # num_params = g_variant_n_children (parameters); 1161s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 1161s # n = 0; 1161s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_SIGNALING_IFACE); 1161s # g_value_set_object (¶mv[n++], skeleton); 1161s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 1161s # g_value_set_object (¶mv[n++], invocation); 1161s # if (info->pass_fdlist) 1161s # { 1161s # #ifdef G_OS_UNIX 1161s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 1161s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 1161s # #else 1161s # g_assert_not_reached (); 1161s # #endif 1161s # } 1161s # g_variant_iter_init (&iter, parameters); 1161s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1161s # { 1161s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 1161s # if (arg_info->use_gvariant) 1161s # { 1161s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1161s # g_value_set_variant (¶mv[n], child); 1161s # n++; 1161s # } 1161s # else 1161s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1161s # g_variant_unref (child); 1161s # } 1161s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_SIGNALING_IFACE); 1161s # g_value_init (&return_value, G_TYPE_BOOLEAN); 1161s # g_signal_emitv (paramv, signal_id, 0, &return_value); 1161s # if (!g_value_get_boolean (&return_value)) 1161s # 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); 1161s # g_value_unset (&return_value); 1161s # for (n = 0; n < num_params + num_extra; n++) 1161s # g_value_unset (¶mv[n]); 1161s # g_free (paramv); 1161s # } 1161s # 1161s # static GVariant * 1161s # _org_project_signaling_iface_skeleton_handle_get_property ( 1161s # GDBusConnection *connection G_GNUC_UNUSED, 1161s # const gchar *sender G_GNUC_UNUSED, 1161s # const gchar *object_path G_GNUC_UNUSED, 1161s # const gchar *interface_name G_GNUC_UNUSED, 1161s # const gchar *property_name, 1161s # GError **error, 1161s # gpointer user_data) 1161s # { 1161s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 1161s # GValue value = G_VALUE_INIT; 1161s # GParamSpec *pspec; 1161s # _ExtendedGDBusPropertyInfo *info; 1161s # GVariant *ret; 1161s # ret = NULL; 1161s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, property_name); 1161s # g_assert (info != NULL); 1161s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1161s # if (pspec == NULL) 1161s # { 1161s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1161s # } 1161s # else 1161s # { 1161s # g_value_init (&value, pspec->value_type); 1161s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1161s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 1161s # g_value_unset (&value); 1161s # } 1161s # return ret; 1161s # } 1161s # 1161s # static gboolean 1161s # _org_project_signaling_iface_skeleton_handle_set_property ( 1161s # GDBusConnection *connection G_GNUC_UNUSED, 1161s # const gchar *sender G_GNUC_UNUSED, 1161s # const gchar *object_path G_GNUC_UNUSED, 1161s # const gchar *interface_name G_GNUC_UNUSED, 1161s # const gchar *property_name, 1161s # GVariant *variant, 1161s # GError **error, 1161s # gpointer user_data) 1161s # { 1161s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 1161s # GValue value = G_VALUE_INIT; 1161s # GParamSpec *pspec; 1161s # _ExtendedGDBusPropertyInfo *info; 1161s # gboolean ret; 1161s # ret = FALSE; 1161s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, property_name); 1161s # g_assert (info != NULL); 1161s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1161s # if (pspec == NULL) 1161s # { 1161s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1161s # } 1161s # else 1161s # { 1161s # if (info->use_gvariant) 1161s # g_value_set_variant (&value, variant); 1161s # else 1161s # g_dbus_gvariant_to_gvalue (variant, &value); 1161s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1161s # g_value_unset (&value); 1161s # ret = TRUE; 1161s # } 1161s # return ret; 1161s # } 1161s # 1161s # static const GDBusInterfaceVTable _org_project_signaling_iface_skeleton_vtable = 1161s # { 1161s # _org_project_signaling_iface_skeleton_handle_method_call, 1161s # _org_project_signaling_iface_skeleton_handle_get_property, 1161s # _org_project_signaling_iface_skeleton_handle_set_property, 1161s # {NULL} 1161s # }; 1161s # 1161s # static GDBusInterfaceInfo * 1161s # org_project_signaling_iface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1161s # { 1161s # return org_project_signaling_iface_interface_info (); 1161s # } 1161s # 1161s # static GDBusInterfaceVTable * 1161s # org_project_signaling_iface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1161s # { 1161s # return (GDBusInterfaceVTable *) &_org_project_signaling_iface_skeleton_vtable; 1161s # } 1161s # 1161s # static GVariant * 1161s # org_project_signaling_iface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 1161s # { 1161s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (_skeleton); 1161s # 1161s # GVariantBuilder builder; 1161s # guint n; 1161s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 1161s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 1161s # #else 1161s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 1161s # #endif 1161s # if (_org_project_signaling_iface_interface_info.parent_struct.properties == NULL) 1161s # goto out; 1161s # for (n = 0; _org_project_signaling_iface_interface_info.parent_struct.properties[n] != NULL; n++) 1161s # { 1161s # GDBusPropertyInfo *info = _org_project_signaling_iface_interface_info.parent_struct.properties[n]; 1161s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 1161s # { 1161s # GVariant *value; 1161s # 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); 1161s # if (value != NULL) 1161s # { 1161s # g_variant_take_ref (value); 1161s # g_variant_builder_add (&builder, "{sv}", info->name, value); 1161s # g_variant_unref (value); 1161s # } 1161s # } 1161s # } 1161s # out: 1161s # return g_variant_builder_end (&builder); 1161s # } 1161s # 1161s # static void 1161s # org_project_signaling_iface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 1161s # { 1161s # } 1161s # 1161s # static void 1161s # _org_project_signaling_iface_on_signal_simple_signal ( 1161s # OrgProjectSignalingIface *object) 1161s # { 1161s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 1161s # 1161s # GList *connections, *l; 1161s # GVariant *signal_variant; 1161s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 1161s # 1161s # signal_variant = g_variant_ref_sink (g_variant_new ("()")); 1161s # for (l = connections; l != NULL; l = l->next) 1161s # { 1161s # GDBusConnection *connection = l->data; 1161s # g_dbus_connection_emit_signal (connection, 1161s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SimpleSignal", 1161s # signal_variant, NULL); 1161s # } 1161s # g_variant_unref (signal_variant); 1161s # g_list_free_full (connections, g_object_unref); 1161s # } 1161s # 1161s # static void 1161s # _org_project_signaling_iface_on_signal_single_arg_signal_b ( 1161s # OrgProjectSignalingIface *object, 1161s # gboolean arg_arg_b) 1161s # { 1161s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 1161s # 1161s # GList *connections, *l; 1161s # GVariant *signal_variant; 1161s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 1161s # 1161s # signal_variant = g_variant_ref_sink (g_variant_new ("(b)", 1161s # arg_arg_b)); 1161s # for (l = connections; l != NULL; l = l->next) 1161s # { 1161s # GDBusConnection *connection = l->data; 1161s # g_dbus_connection_emit_signal (connection, 1161s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SingleArgSignalB", 1161s # signal_variant, NULL); 1161s # } 1161s # g_variant_unref (signal_variant); 1161s # g_list_free_full (connections, g_object_unref); 1161s # } 1161s # 1161s # static void org_project_signaling_iface_skeleton_iface_init (OrgProjectSignalingIfaceIface *iface); 1161s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1161s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceSkeleton, org_project_signaling_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1161s # G_ADD_PRIVATE (OrgProjectSignalingIfaceSkeleton) 1161s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_skeleton_iface_init)) 1161s # 1161s # #else 1161s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceSkeleton, org_project_signaling_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1161s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_skeleton_iface_init)) 1161s # 1161s # #endif 1161s # static void 1161s # org_project_signaling_iface_skeleton_finalize (GObject *object) 1161s # { 1161s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 1161s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 1161s # if (skeleton->priv->changed_properties_idle_source != NULL) 1161s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 1161s # g_main_context_unref (skeleton->priv->context); 1161s # g_mutex_clear (&skeleton->priv->lock); 1161s # G_OBJECT_CLASS (org_project_signaling_iface_skeleton_parent_class)->finalize (object); 1161s # } 1161s # 1161s # static void 1161s # org_project_signaling_iface_skeleton_init (OrgProjectSignalingIfaceSkeleton *skeleton) 1161s # { 1161s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1161s # skeleton->priv = org_project_signaling_iface_skeleton_get_instance_private (skeleton); 1161s # #else 1161s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_SIGNALING_IFACE_SKELETON, OrgProjectSignalingIfaceSkeletonPrivate); 1161s # #endif 1161s # 1161s # g_mutex_init (&skeleton->priv->lock); 1161s # skeleton->priv->context = g_main_context_ref_thread_default (); 1161s # } 1161s # 1161s # static void 1161s # org_project_signaling_iface_skeleton_class_init (OrgProjectSignalingIfaceSkeletonClass *klass) 1161s # { 1161s # GObjectClass *gobject_class; 1161s # GDBusInterfaceSkeletonClass *skeleton_class; 1161s # 1161s # gobject_class = G_OBJECT_CLASS (klass); 1161s # gobject_class->finalize = org_project_signaling_iface_skeleton_finalize; 1161s # 1161s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 1161s # skeleton_class->get_info = org_project_signaling_iface_skeleton_dbus_interface_get_info; 1161s # skeleton_class->get_properties = org_project_signaling_iface_skeleton_dbus_interface_get_properties; 1161s # skeleton_class->flush = org_project_signaling_iface_skeleton_dbus_interface_flush; 1161s # skeleton_class->get_vtable = org_project_signaling_iface_skeleton_dbus_interface_get_vtable; 1161s # 1161s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1161s # g_type_class_add_private (klass, sizeof (OrgProjectSignalingIfaceSkeletonPrivate)); 1161s # #endif 1161s # } 1161s # 1161s # static void 1161s # org_project_signaling_iface_skeleton_iface_init (OrgProjectSignalingIfaceIface *iface) 1161s # { 1161s # iface->simple_signal = _org_project_signaling_iface_on_signal_simple_signal; 1161s # iface->single_arg_signal_b = _org_project_signaling_iface_on_signal_single_arg_signal_b; 1161s # } 1161s # 1161s # /** 1161s # * org_project_signaling_iface_skeleton_new: 1161s # * 1161s # * Creates a skeleton object for the D-Bus interface org.project.SignalingIface. 1161s # * 1161s # * Returns: (transfer full) (type OrgProjectSignalingIfaceSkeleton): The skeleton object. 1161s # */ 1161s # OrgProjectSignalingIface * 1161s # org_project_signaling_iface_skeleton_new (void) 1161s # { 1161s # return ORG_PROJECT_SIGNALING_IFACE (g_object_new (TYPE_ORG_PROJECT_SIGNALING_IFACE_SKELETON, NULL)); 1161s # } 1161s # Error: 1161s # 1161s # /tmp/tmpjwrvmpd2/tmpqxefz460.xml: 1161s # 1161s # 1161s # 1161s # 1161s # 1161s # 1161s # 1161s # 1161s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpjwrvmpd2/tmpqxefz460.xml', '--output', '-', '--body'] 1161s # Return code: 0 1161s # Output: 1161s # /* 1161s # * This file is generated by gdbus-codegen, do not modify it. 1161s # * 1161s # * The license of this code is the same as for the D-Bus interface description 1161s # * it was derived from. Note that it links to GLib, so must comply with the 1161s # * LGPL linking clauses. 1161s # */ 1161s # 1161s # #ifdef HAVE_CONFIG_H 1161s # # include "config.h" 1161s # #endif 1161s # 1161s # #include 1161s # #ifdef G_OS_UNIX 1161s # # include 1161s # #endif 1161s # 1161s # #ifdef G_ENABLE_DEBUG 1161s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 1161s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 1161s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 1161s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 1161s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 1161s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 1161s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 1161s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 1161s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 1161s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 1161s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 1161s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 1161s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 1161s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 1161s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 1161s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 1161s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 1161s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 1161s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 1161s # #else /* !G_ENABLE_DEBUG */ 1161s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 1161s # * Do not access GValues directly in your code. Instead, use the 1161s # * g_value_get_*() functions 1161s # */ 1161s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 1161s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 1161s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 1161s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 1161s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 1161s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 1161s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 1161s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 1161s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 1161s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 1161s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 1161s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 1161s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 1161s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 1161s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 1161s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 1161s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 1161s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 1161s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 1161s # #endif /* !G_ENABLE_DEBUG */ 1161s # 1161s # typedef struct 1161s # { 1161s # GDBusArgInfo parent_struct; 1161s # gboolean use_gvariant; 1161s # } _ExtendedGDBusArgInfo; 1161s # 1161s # typedef struct 1161s # { 1161s # GDBusMethodInfo parent_struct; 1161s # const gchar *signal_name; 1161s # gboolean pass_fdlist; 1161s # } _ExtendedGDBusMethodInfo; 1161s # 1161s # typedef struct 1161s # { 1161s # GDBusSignalInfo parent_struct; 1161s # const gchar *signal_name; 1161s # } _ExtendedGDBusSignalInfo; 1161s # 1161s # typedef struct 1161s # { 1161s # GDBusPropertyInfo parent_struct; 1161s # const gchar *hyphen_name; 1161s # guint use_gvariant : 1; 1161s # guint emits_changed_signal : 1; 1161s # } _ExtendedGDBusPropertyInfo; 1161s # 1161s # typedef struct 1161s # { 1161s # GDBusInterfaceInfo parent_struct; 1161s # const gchar *hyphen_name; 1161s # } _ExtendedGDBusInterfaceInfo; 1161s # 1161s # typedef struct 1161s # { 1161s # const _ExtendedGDBusPropertyInfo *info; 1161s # guint prop_id; 1161s # GValue orig_value; /* the value before the change */ 1161s # } ChangedProperty; 1161s # 1161s # static void 1161s # _changed_property_free (ChangedProperty *data) 1161s # { 1161s # g_value_unset (&data->orig_value); 1161s # g_free (data); 1161s # } 1161s # 1161s # static gboolean 1161s # _g_strv_equal0 (gchar **a, gchar **b) 1161s # { 1161s # gboolean ret = FALSE; 1161s # guint n; 1161s # if (a == NULL && b == NULL) 1161s # { 1161s # ret = TRUE; 1161s # goto out; 1161s # } 1161s # if (a == NULL || b == NULL) 1161s # goto out; 1161s # if (g_strv_length (a) != g_strv_length (b)) 1161s # goto out; 1161s # for (n = 0; a[n] != NULL; n++) 1161s # if (g_strcmp0 (a[n], b[n]) != 0) 1161s # goto out; 1161s # ret = TRUE; 1161s # out: 1161s # return ret; 1161s # } 1161s # 1161s # static gboolean 1161s # _g_variant_equal0 (GVariant *a, GVariant *b) 1161s # { 1161s # gboolean ret = FALSE; 1161s # if (a == NULL && b == NULL) 1161s # { 1161s # ret = TRUE; 1161s # goto out; 1161s # } 1161s # if (a == NULL || b == NULL) 1161s # goto out; 1161s # ret = g_variant_equal (a, b); 1161s # out: 1161s # return ret; 1161s # } 1161s # 1161s # G_GNUC_UNUSED static gboolean 1161s # _g_value_equal (const GValue *a, const GValue *b) 1161s # { 1161s # gboolean ret = FALSE; 1161s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 1161s # switch (G_VALUE_TYPE (a)) 1161s # { 1161s # case G_TYPE_BOOLEAN: 1161s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 1161s # break; 1161s # case G_TYPE_UCHAR: 1161s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 1161s # break; 1161s # case G_TYPE_INT: 1161s # ret = (g_value_get_int (a) == g_value_get_int (b)); 1161s # break; 1161s # case G_TYPE_UINT: 1161s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 1161s # break; 1161s # case G_TYPE_INT64: 1161s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 1161s # break; 1161s # case G_TYPE_UINT64: 1161s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 1161s # break; 1161s # case G_TYPE_DOUBLE: 1161s # { 1161s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 1161s # gdouble da = g_value_get_double (a); 1161s # gdouble db = g_value_get_double (b); 1161s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 1161s # } 1161s # break; 1161s # case G_TYPE_STRING: 1161s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 1161s # break; 1161s # case G_TYPE_VARIANT: 1161s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 1161s # break; 1161s # default: 1161s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 1161s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 1161s # else 1161s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 1161s # break; 1161s # } 1161s # return ret; 1161s # } 1161s # 1161s # /* ------------------------------------------------------------------------ 1161s # * Code for interface org.project.SignalingIface 1161s # * ------------------------------------------------------------------------ 1161s # */ 1161s # 1161s # /** 1161s # * SECTION:OrgProjectSignalingIface 1161s # * @title: OrgProjectSignalingIface 1161s # * @short_description: Generated C code for the org.project.SignalingIface D-Bus interface 1161s # * 1161s # * This section contains code for working with the org.project.SignalingIface D-Bus interface in C. 1161s # */ 1161s # 1161s # enum 1161s # { 1161s # _ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL, 1161s # _ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_Y, 1161s # }; 1161s # 1161s # static unsigned _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[2] = { 0 }; 1161s # 1161s # /* ---- Introspection data for org.project.SignalingIface ---- */ 1161s # 1161s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_simple_signal = 1161s # { 1161s # { 1161s # -1, 1161s # (gchar *) "SimpleSignal", 1161s # NULL, 1161s # NULL 1161s # }, 1161s # "simple-signal" 1161s # }; 1161s # 1161s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_single_arg_signal_y_ARG_arg_y = 1161s # { 1161s # { 1161s # -1, 1161s # (gchar *) "arg_y", 1161s # (gchar *) "y", 1161s # NULL 1161s # }, 1161s # FALSE 1161s # }; 1161s # 1161s # static const GDBusArgInfo * const _org_project_signaling_iface_signal_info_single_arg_signal_y_ARG_pointers[] = 1161s # { 1161s # &_org_project_signaling_iface_signal_info_single_arg_signal_y_ARG_arg_y.parent_struct, 1161s # NULL 1161s # }; 1161s # 1161s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_single_arg_signal_y = 1161s # { 1161s # { 1161s # -1, 1161s # (gchar *) "SingleArgSignalY", 1161s # (GDBusArgInfo **) &_org_project_signaling_iface_signal_info_single_arg_signal_y_ARG_pointers, 1161s # NULL 1161s # }, 1161s # "single-arg-signal-y" 1161s # }; 1161s # 1161s # static const GDBusSignalInfo * const _org_project_signaling_iface_signal_info_pointers[] = 1161s # { 1161s # &_org_project_signaling_iface_signal_info_simple_signal.parent_struct, 1161s # &_org_project_signaling_iface_signal_info_single_arg_signal_y.parent_struct, 1161s # NULL 1161s # }; 1161s # 1161s # static const _ExtendedGDBusInterfaceInfo _org_project_signaling_iface_interface_info = 1161s # { 1161s # { 1161s # -1, 1161s # (gchar *) "org.project.SignalingIface", 1161s # NULL, 1161s # (GDBusSignalInfo **) &_org_project_signaling_iface_signal_info_pointers, 1161s # NULL, 1161s # NULL 1161s # }, 1161s # "org-project-signaling-iface", 1161s # }; 1161s # 1161s # 1161s # /** 1161s # * org_project_signaling_iface_interface_info: 1161s # * 1161s # * Gets a machine-readable description of the org.project.SignalingIface D-Bus interface. 1161s # * 1161s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 1161s # */ 1161s # GDBusInterfaceInfo * 1161s # org_project_signaling_iface_interface_info (void) 1161s # { 1161s # return (GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct; 1161s # } 1161s # 1161s # /** 1161s # * org_project_signaling_iface_override_properties: 1161s # * @klass: The class structure for a #GObject derived class. 1161s # * @property_id_begin: The property id to assign to the first overridden property. 1161s # * 1161s # * Overrides all #GObject properties in the #OrgProjectSignalingIface interface for a concrete class. 1161s # * The properties are overridden in the order they are defined. 1161s # * 1161s # * Returns: The last property id. 1161s # */ 1161s # guint 1161s # org_project_signaling_iface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 1161s # { 1161s # return property_id_begin - 1; 1161s # } 1161s # 1161s # 1161s # inline static void 1161s # org_project_signaling_iface_signal_marshal_simple_signal ( 1161s # GClosure *closure, 1161s # GValue *return_value, 1161s # unsigned int n_param_values, 1161s # const GValue *param_values, 1161s # void *invocation_hint, 1161s # void *marshal_data) 1161s # { 1161s # g_cclosure_marshal_VOID__VOID (closure, 1161s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1161s # } 1161s # 1161s # inline static void 1161s # org_project_signaling_iface_signal_marshal_single_arg_signal_y ( 1161s # GClosure *closure, 1161s # GValue *return_value, 1161s # unsigned int n_param_values, 1161s # const GValue *param_values, 1161s # void *invocation_hint, 1161s # void *marshal_data) 1161s # { 1161s # g_cclosure_marshal_VOID__UCHAR (closure, 1161s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1161s # } 1161s # 1161s # 1161s # /** 1161s # * OrgProjectSignalingIface: 1161s # * 1161s # * Abstract interface type for the D-Bus interface org.project.SignalingIface. 1161s # */ 1161s # 1161s # /** 1161s # * OrgProjectSignalingIfaceIface: 1161s # * @parent_iface: The parent interface. 1161s # * @simple_signal: Handler for the #OrgProjectSignalingIface::simple-signal signal. 1161s # * @single_arg_signal_y: Handler for the #OrgProjectSignalingIface::single-arg-signal-y signal. 1161s # * 1161s # * Virtual table for the D-Bus interface org.project.SignalingIface. 1161s # */ 1161s # 1161s # typedef OrgProjectSignalingIfaceIface OrgProjectSignalingIfaceInterface; 1161s # G_DEFINE_INTERFACE (OrgProjectSignalingIface, org_project_signaling_iface, G_TYPE_OBJECT) 1161s # 1161s # static void 1161s # org_project_signaling_iface_default_init (OrgProjectSignalingIfaceIface *iface) 1161s # { 1161s # /* GObject signals for received D-Bus signals: */ 1161s # /** 1161s # * OrgProjectSignalingIface::simple-signal: 1161s # * @object: A #OrgProjectSignalingIface. 1161s # * 1161s # * On the client-side, this signal is emitted whenever the D-Bus signal "SimpleSignal" is received. 1161s # * 1161s # * 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. 1161s # */ 1161s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL] = 1161s # g_signal_new ("simple-signal", 1161s # G_TYPE_FROM_INTERFACE (iface), 1161s # G_SIGNAL_RUN_LAST, 1161s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, simple_signal), 1161s # NULL, 1161s # NULL, 1161s # org_project_signaling_iface_signal_marshal_simple_signal, 1161s # G_TYPE_NONE, 1161s # 0); 1161s # 1161s # /** 1161s # * OrgProjectSignalingIface::single-arg-signal-y: 1161s # * @object: A #OrgProjectSignalingIface. 1161s # * @arg_arg_y: Argument. 1161s # * 1161s # * On the client-side, this signal is emitted whenever the D-Bus signal "SingleArgSignalY" is received. 1161s # * 1161s # * 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. 1161s # */ 1161s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_Y] = 1161s # g_signal_new ("single-arg-signal-y", 1161s # G_TYPE_FROM_INTERFACE (iface), 1161s # G_SIGNAL_RUN_LAST, 1161s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, single_arg_signal_y), 1161s # NULL, 1161s # NULL, 1161s # org_project_signaling_iface_signal_marshal_single_arg_signal_y, 1161s # G_TYPE_NONE, 1161s # 1, G_TYPE_UCHAR); 1161s # 1161s # } 1161s # 1161s # /** 1161s # * org_project_signaling_iface_emit_simple_signal: 1161s # * @object: A #OrgProjectSignalingIface. 1161s # * 1161s # * Emits the "SimpleSignal" D-Bus signal. 1161s # */ 1161s # void 1161s # org_project_signaling_iface_emit_simple_signal ( 1161s # OrgProjectSignalingIface *object) 1161s # { 1161s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL], 0); 1161s # } 1161s # 1161s # /** 1161s # * org_project_signaling_iface_emit_single_arg_signal_y: 1161s # * @object: A #OrgProjectSignalingIface. 1161s # * @arg_arg_y: Argument to pass with the signal. 1161s # * 1161s # * Emits the "SingleArgSignalY" D-Bus signal. 1161s # */ 1161s # void 1161s # org_project_signaling_iface_emit_single_arg_signal_y ( 1161s # OrgProjectSignalingIface *object, 1161s # guchar arg_arg_y) 1161s # { 1161s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_Y], 0, arg_arg_y); 1161s # } 1161s # 1161s # /* ------------------------------------------------------------------------ */ 1161s # 1161s # /** 1161s # * OrgProjectSignalingIfaceProxy: 1161s # * 1161s # * The #OrgProjectSignalingIfaceProxy structure contains only private data and should only be accessed using the provided API. 1161s # */ 1161s # 1161s # /** 1161s # * OrgProjectSignalingIfaceProxyClass: 1161s # * @parent_class: The parent class. 1161s # * 1161s # * Class structure for #OrgProjectSignalingIfaceProxy. 1161s # */ 1161s # 1161s # struct _OrgProjectSignalingIfaceProxyPrivate 1161s # { 1161s # GData *qdata; 1161s # }; 1161s # 1161s # static void org_project_signaling_iface_proxy_iface_init (OrgProjectSignalingIfaceIface *iface); 1161s # 1161s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1161s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceProxy, org_project_signaling_iface_proxy, G_TYPE_DBUS_PROXY, 1161s # G_ADD_PRIVATE (OrgProjectSignalingIfaceProxy) 1161s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_proxy_iface_init)) 1161s # 1161s # #else 1161s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceProxy, org_project_signaling_iface_proxy, G_TYPE_DBUS_PROXY, 1161s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_proxy_iface_init)) 1161s # 1161s # #endif 1161s # static void 1161s # org_project_signaling_iface_proxy_finalize (GObject *object) 1161s # { 1161s # OrgProjectSignalingIfaceProxy *proxy = ORG_PROJECT_SIGNALING_IFACE_PROXY (object); 1161s # g_datalist_clear (&proxy->priv->qdata); 1161s # G_OBJECT_CLASS (org_project_signaling_iface_proxy_parent_class)->finalize (object); 1161s # } 1161s # 1161s # static void 1161s # org_project_signaling_iface_proxy_get_property (GObject *object G_GNUC_UNUSED, 1161s # guint prop_id G_GNUC_UNUSED, 1161s # GValue *value G_GNUC_UNUSED, 1161s # GParamSpec *pspec G_GNUC_UNUSED) 1161s # { 1161s # } 1161s # 1161s # static void 1161s # org_project_signaling_iface_proxy_set_property (GObject *object G_GNUC_UNUSED, 1161s # guint prop_id G_GNUC_UNUSED, 1161s # const GValue *value G_GNUC_UNUSED, 1161s # GParamSpec *pspec G_GNUC_UNUSED) 1161s # { 1161s # } 1161s # 1161s # static void 1161s # org_project_signaling_iface_proxy_g_signal (GDBusProxy *proxy, 1161s # const gchar *sender_name G_GNUC_UNUSED, 1161s # const gchar *signal_name, 1161s # GVariant *parameters) 1161s # { 1161s # _ExtendedGDBusSignalInfo *info; 1161s # GVariantIter iter; 1161s # GVariant *child; 1161s # GValue *paramv; 1161s # gsize num_params; 1161s # gsize n; 1161s # guint signal_id; 1161s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, signal_name); 1161s # if (info == NULL) 1161s # return; 1161s # num_params = g_variant_n_children (parameters); 1161s # paramv = g_new0 (GValue, num_params + 1); 1161s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_SIGNALING_IFACE); 1161s # g_value_set_object (¶mv[0], proxy); 1161s # g_variant_iter_init (&iter, parameters); 1161s # n = 1; 1161s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1161s # { 1161s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 1161s # if (arg_info->use_gvariant) 1161s # { 1161s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1161s # g_value_set_variant (¶mv[n], child); 1161s # n++; 1161s # } 1161s # else 1161s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1161s # g_variant_unref (child); 1161s # } 1161s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_SIGNALING_IFACE); 1161s # g_signal_emitv (paramv, signal_id, 0, NULL); 1161s # for (n = 0; n < num_params + 1; n++) 1161s # g_value_unset (¶mv[n]); 1161s # g_free (paramv); 1161s # } 1161s # 1161s # static void 1161s # org_project_signaling_iface_proxy_g_properties_changed (GDBusProxy *_proxy, 1161s # GVariant *changed_properties, 1161s # const gchar *const *invalidated_properties) 1161s # { 1161s # OrgProjectSignalingIfaceProxy *proxy = ORG_PROJECT_SIGNALING_IFACE_PROXY (_proxy); 1161s # guint n; 1161s # const gchar *key; 1161s # GVariantIter *iter; 1161s # _ExtendedGDBusPropertyInfo *info; 1161s # g_variant_get (changed_properties, "a{sv}", &iter); 1161s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 1161s # { 1161s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, key); 1161s # g_datalist_remove_data (&proxy->priv->qdata, key); 1161s # if (info != NULL) 1161s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1161s # } 1161s # g_variant_iter_free (iter); 1161s # for (n = 0; invalidated_properties[n] != NULL; n++) 1161s # { 1161s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, invalidated_properties[n]); 1161s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 1161s # if (info != NULL) 1161s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1161s # } 1161s # } 1161s # 1161s # static void 1161s # org_project_signaling_iface_proxy_init (OrgProjectSignalingIfaceProxy *proxy) 1161s # { 1161s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1161s # proxy->priv = org_project_signaling_iface_proxy_get_instance_private (proxy); 1161s # #else 1161s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_SIGNALING_IFACE_PROXY, OrgProjectSignalingIfaceProxyPrivate); 1161s # #endif 1161s # 1161s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_signaling_iface_interface_info ()); 1161s # } 1161s # 1161s # static void 1161s # org_project_signaling_iface_proxy_class_init (OrgProjectSignalingIfaceProxyClass *klass) 1161s # { 1161s # GObjectClass *gobject_class; 1161s # GDBusProxyClass *proxy_class; 1161s # 1161s # gobject_class = G_OBJECT_CLASS (klass); 1161s # gobject_class->finalize = org_project_signaling_iface_proxy_finalize; 1161s # gobject_class->get_property = org_project_signaling_iface_proxy_get_property; 1161s # gobject_class->set_property = org_project_signaling_iface_proxy_set_property; 1161s # 1161s # proxy_class = G_DBUS_PROXY_CLASS (klass); 1161s # proxy_class->g_signal = org_project_signaling_iface_proxy_g_signal; 1161s # proxy_class->g_properties_changed = org_project_signaling_iface_proxy_g_properties_changed; 1161s # 1161s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1161s # g_type_class_add_private (klass, sizeof (OrgProjectSignalingIfaceProxyPrivate)); 1161s # #endif 1161s # } 1161s # 1161s # static void 1161s # org_project_signaling_iface_proxy_iface_init (OrgProjectSignalingIfaceIface *iface G_GNUC_UNUSED) 1161s # { 1161s # } 1161s # 1161s # /** 1161s # * org_project_signaling_iface_proxy_new: 1161s # * @connection: A #GDBusConnection. 1161s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1161s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1161s # * @object_path: An object path. 1161s # * @cancellable: (nullable): A #GCancellable or %NULL. 1161s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1161s # * @user_data: User data to pass to @callback. 1161s # * 1161s # * Asynchronously creates a proxy for the D-Bus interface org.project.SignalingIface. See g_dbus_proxy_new() for more details. 1161s # * 1161s # * 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()). 1161s # * You can then call org_project_signaling_iface_proxy_new_finish() to get the result of the operation. 1161s # * 1161s # * See org_project_signaling_iface_proxy_new_sync() for the synchronous, blocking version of this constructor. 1161s # */ 1161s # void 1161s # org_project_signaling_iface_proxy_new ( 1161s # GDBusConnection *connection, 1161s # GDBusProxyFlags flags, 1161s # const gchar *name, 1161s # const gchar *object_path, 1161s # GCancellable *cancellable, 1161s # GAsyncReadyCallback callback, 1161s # gpointer user_data) 1161s # { 1161s # 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); 1161s # } 1161s # 1161s # /** 1161s # * org_project_signaling_iface_proxy_new_finish: 1161s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_signaling_iface_proxy_new(). 1161s # * @error: Return location for error or %NULL 1161s # * 1161s # * Finishes an operation started with org_project_signaling_iface_proxy_new(). 1161s # * 1161s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 1161s # */ 1161s # OrgProjectSignalingIface * 1161s # org_project_signaling_iface_proxy_new_finish ( 1161s # GAsyncResult *res, 1161s # GError **error) 1161s # { 1161s # GObject *ret; 1161s # GObject *source_object; 1161s # source_object = g_async_result_get_source_object (res); 1161s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1161s # g_object_unref (source_object); 1161s # if (ret != NULL) 1161s # return ORG_PROJECT_SIGNALING_IFACE (ret); 1161s # else 1161s # return NULL; 1161s # } 1161s # 1161s # /** 1161s # * org_project_signaling_iface_proxy_new_sync: 1161s # * @connection: A #GDBusConnection. 1161s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1161s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1161s # * @object_path: An object path. 1161s # * @cancellable: (nullable): A #GCancellable or %NULL. 1161s # * @error: Return location for error or %NULL 1161s # * 1161s # * Synchronously creates a proxy for the D-Bus interface org.project.SignalingIface. See g_dbus_proxy_new_sync() for more details. 1161s # * 1161s # * The calling thread is blocked until a reply is received. 1161s # * 1161s # * See org_project_signaling_iface_proxy_new() for the asynchronous version of this constructor. 1161s # * 1161s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 1161s # */ 1161s # OrgProjectSignalingIface * 1161s # org_project_signaling_iface_proxy_new_sync ( 1161s # GDBusConnection *connection, 1161s # GDBusProxyFlags flags, 1161s # const gchar *name, 1161s # const gchar *object_path, 1161s # GCancellable *cancellable, 1161s # GError **error) 1161s # { 1161s # GInitable *ret; 1161s # 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); 1161s # if (ret != NULL) 1161s # return ORG_PROJECT_SIGNALING_IFACE (ret); 1161s # else 1161s # return NULL; 1161s # } 1161s # 1161s # 1161s # /** 1161s # * org_project_signaling_iface_proxy_new_for_bus: 1161s # * @bus_type: A #GBusType. 1161s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1161s # * @name: A bus name (well-known or unique). 1161s # * @object_path: An object path. 1161s # * @cancellable: (nullable): A #GCancellable or %NULL. 1161s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1161s # * @user_data: User data to pass to @callback. 1161s # * 1161s # * Like org_project_signaling_iface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 1161s # * 1161s # * 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()). 1161s # * You can then call org_project_signaling_iface_proxy_new_for_bus_finish() to get the result of the operation. 1161s # * 1161s # * See org_project_signaling_iface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 1161s # */ 1161s # void 1161s # org_project_signaling_iface_proxy_new_for_bus ( 1161s # GBusType bus_type, 1161s # GDBusProxyFlags flags, 1161s # const gchar *name, 1161s # const gchar *object_path, 1161s # GCancellable *cancellable, 1161s # GAsyncReadyCallback callback, 1161s # gpointer user_data) 1161s # { 1161s # 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); 1161s # } 1161s # 1161s # /** 1161s # * org_project_signaling_iface_proxy_new_for_bus_finish: 1161s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_signaling_iface_proxy_new_for_bus(). 1161s # * @error: Return location for error or %NULL 1161s # * 1161s # * Finishes an operation started with org_project_signaling_iface_proxy_new_for_bus(). 1161s # * 1161s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 1161s # */ 1161s # OrgProjectSignalingIface * 1161s # org_project_signaling_iface_proxy_new_for_bus_finish ( 1161s # GAsyncResult *res, 1161s # GError **error) 1161s # { 1161s # GObject *ret; 1161s # GObject *source_object; 1161s # source_object = g_async_result_get_source_object (res); 1161s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1161s # g_object_unref (source_object); 1161s # if (ret != NULL) 1161s # return ORG_PROJECT_SIGNALING_IFACE (ret); 1161s # else 1161s # return NULL; 1161s # } 1161s # 1161s # /** 1161s # * org_project_signaling_iface_proxy_new_for_bus_sync: 1161s # * @bus_type: A #GBusType. 1161s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1161s # * @name: A bus name (well-known or unique). 1161s # * @object_path: An object path. 1161s # * @cancellable: (nullable): A #GCancellable or %NULL. 1161s # * @error: Return location for error or %NULL 1161s # * 1161s # * Like org_project_signaling_iface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 1161s # * 1161s # * The calling thread is blocked until a reply is received. 1161s # * 1161s # * See org_project_signaling_iface_proxy_new_for_bus() for the asynchronous version of this constructor. 1161s # * 1161s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 1161s # */ 1161s # OrgProjectSignalingIface * 1161s # org_project_signaling_iface_proxy_new_for_bus_sync ( 1161s # GBusType bus_type, 1161s # GDBusProxyFlags flags, 1161s # const gchar *name, 1161s # const gchar *object_path, 1161s # GCancellable *cancellable, 1161s # GError **error) 1161s # { 1161s # GInitable *ret; 1161s # 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); 1161s # if (ret != NULL) 1161s # return ORG_PROJECT_SIGNALING_IFACE (ret); 1161s # else 1161s # return NULL; 1161s # } 1161s # 1161s # 1161s # /* ------------------------------------------------------------------------ */ 1161s # 1161s # /** 1161s # * OrgProjectSignalingIfaceSkeleton: 1161s # * 1161s # * The #OrgProjectSignalingIfaceSkeleton structure contains only private data and should only be accessed using the provided API. 1161s # */ 1161s # 1161s # /** 1161s # * OrgProjectSignalingIfaceSkeletonClass: 1161s # * @parent_class: The parent class. 1161s # * 1161s # * Class structure for #OrgProjectSignalingIfaceSkeleton. 1161s # */ 1161s # 1161s # struct _OrgProjectSignalingIfaceSkeletonPrivate 1161s # { 1161s # GValue *properties; 1161s # GList *changed_properties; 1161s # GSource *changed_properties_idle_source; 1161s # GMainContext *context; 1161s # GMutex lock; 1161s # }; 1161s # 1161s # static void 1161s # _org_project_signaling_iface_skeleton_handle_method_call ( 1161s # GDBusConnection *connection G_GNUC_UNUSED, 1161s # const gchar *sender G_GNUC_UNUSED, 1161s # const gchar *object_path G_GNUC_UNUSED, 1161s # const gchar *interface_name, 1161s # const gchar *method_name, 1161s # GVariant *parameters, 1161s # GDBusMethodInvocation *invocation, 1161s # gpointer user_data) 1161s # { 1161s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 1161s # _ExtendedGDBusMethodInfo *info; 1161s # GVariantIter iter; 1161s # GVariant *child; 1161s # GValue *paramv; 1161s # gsize num_params; 1161s # guint num_extra; 1161s # gsize n; 1161s # guint signal_id; 1161s # GValue return_value = G_VALUE_INIT; 1161s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 1161s # g_assert (info != NULL); 1161s # num_params = g_variant_n_children (parameters); 1161s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 1161s # n = 0; 1161s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_SIGNALING_IFACE); 1161s # g_value_set_object (¶mv[n++], skeleton); 1161s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 1161s # g_value_set_object (¶mv[n++], invocation); 1161s # if (info->pass_fdlist) 1161s # { 1161s # #ifdef G_OS_UNIX 1161s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 1161s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 1161s # #else 1161s # g_assert_not_reached (); 1161s # #endif 1161s # } 1161s # g_variant_iter_init (&iter, parameters); 1161s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1161s # { 1161s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 1161s # if (arg_info->use_gvariant) 1161s # { 1161s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1161s # g_value_set_variant (¶mv[n], child); 1161s # n++; 1161s # } 1161s # else 1161s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1161s # g_variant_unref (child); 1161s # } 1161s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_SIGNALING_IFACE); 1161s # g_value_init (&return_value, G_TYPE_BOOLEAN); 1161s # g_signal_emitv (paramv, signal_id, 0, &return_value); 1161s # if (!g_value_get_boolean (&return_value)) 1161s # 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); 1161s # g_value_unset (&return_value); 1161s # for (n = 0; n < num_params + num_extra; n++) 1161s # g_value_unset (¶mv[n]); 1161s # g_free (paramv); 1161s # } 1161s # 1161s # static GVariant * 1161s # _org_project_signaling_iface_skeleton_handle_get_property ( 1161s # GDBusConnection *connection G_GNUC_UNUSED, 1161s # const gchar *sender G_GNUC_UNUSED, 1161s # const gchar *object_path G_GNUC_UNUSED, 1161s # const gchar *interface_name G_GNUC_UNUSED, 1161s # const gchar *property_name, 1161s # GError **error, 1161s # gpointer user_data) 1161s # { 1161s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 1161s # GValue value = G_VALUE_INIT; 1161s # GParamSpec *pspec; 1161s # _ExtendedGDBusPropertyInfo *info; 1161s # GVariant *ret; 1161s # ret = NULL; 1161s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, property_name); 1161s # g_assert (info != NULL); 1161s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1161s # if (pspec == NULL) 1161s # { 1161s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1161s # } 1161s # else 1161s # { 1161s # g_value_init (&value, pspec->value_type); 1161s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1161s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 1161s # g_value_unset (&value); 1161s # } 1161s # return ret; 1161s # } 1161s # 1161s # static gboolean 1161s # _org_project_signaling_iface_skeleton_handle_set_property ( 1161s # GDBusConnection *connection G_GNUC_UNUSED, 1161s # const gchar *sender G_GNUC_UNUSED, 1161s # const gchar *object_path G_GNUC_UNUSED, 1161s # const gchar *interface_name G_GNUC_UNUSED, 1161s # const gchar *property_name, 1161s # GVariant *variant, 1161s # GError **error, 1161s # gpointer user_data) 1161s # { 1161s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 1161s # GValue value = G_VALUE_INIT; 1161s # GParamSpec *pspec; 1161s # _ExtendedGDBusPropertyInfo *info; 1161s # gboolean ret; 1161s # ret = FALSE; 1161s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, property_name); 1161s # g_assert (info != NULL); 1161s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1161s # if (pspec == NULL) 1161s # { 1161s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1161s # } 1161s # else 1161s # { 1161s # if (info->use_gvariant) 1161s # g_value_set_variant (&value, variant); 1161s # else 1161s # g_dbus_gvariant_to_gvalue (variant, &value); 1161s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1161s # g_value_unset (&value); 1161s # ret = TRUE; 1161s # } 1161s # return ret; 1161s # } 1161s # 1161s # static const GDBusInterfaceVTable _org_project_signaling_iface_skeleton_vtable = 1161s # { 1161s # _org_project_signaling_iface_skeleton_handle_method_call, 1161s # _org_project_signaling_iface_skeleton_handle_get_property, 1161s # _org_project_signaling_iface_skeleton_handle_set_property, 1161s # {NULL} 1161s # }; 1161s # 1161s # static GDBusInterfaceInfo * 1161s # org_project_signaling_iface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1161s # { 1161s # return org_project_signaling_iface_interface_info (); 1161s # } 1161s # 1161s # static GDBusInterfaceVTable * 1161s # org_project_signaling_iface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1161s # { 1161s # return (GDBusInterfaceVTable *) &_org_project_signaling_iface_skeleton_vtable; 1161s # } 1161s # 1161s # static GVariant * 1161s # org_project_signaling_iface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 1161s # { 1161s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (_skeleton); 1161s # 1161s # GVariantBuilder builder; 1161s # guint n; 1161s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 1161s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 1161s # #else 1161s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 1161s # #endif 1161s # if (_org_project_signaling_iface_interface_info.parent_struct.properties == NULL) 1161s # goto out; 1161s # for (n = 0; _org_project_signaling_iface_interface_info.parent_struct.properties[n] != NULL; n++) 1161s # { 1161s # GDBusPropertyInfo *info = _org_project_signaling_iface_interface_info.parent_struct.properties[n]; 1161s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 1161s # { 1161s # GVariant *value; 1161s # 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); 1161s # if (value != NULL) 1161s # { 1161s # g_variant_take_ref (value); 1161s # g_variant_builder_add (&builder, "{sv}", info->name, value); 1161s # g_variant_unref (value); 1161s # } 1161s # } 1161s # } 1161s # out: 1161s # return g_variant_builder_end (&builder); 1161s # } 1161s # 1161s # static void 1161s # org_project_signaling_iface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 1161s # { 1161s # } 1161s # 1161s # static void 1161s # _org_project_signaling_iface_on_signal_simple_signal ( 1161s # OrgProjectSignalingIface *object) 1161s # { 1161s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 1161s # 1161s # GList *connections, *l; 1161s # GVariant *signal_variant; 1161s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 1161s # 1161s # signal_variant = g_variant_ref_sink (g_variant_new ("()")); 1161s # for (l = connections; l != NULL; l = l->next) 1161s # { 1161s # GDBusConnection *connection = l->data; 1161s # g_dbus_connection_emit_signal (connection, 1161s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SimpleSignal", 1161s # signal_variant, NULL); 1161s # } 1161s # g_variant_unref (signal_variant); 1161s # g_list_free_full (connections, g_object_unref); 1161s # } 1161s # 1161s # static void 1161s # _org_project_signaling_iface_on_signal_single_arg_signal_y ( 1161s # OrgProjectSignalingIface *object, 1161s # guchar arg_arg_y) 1161s # { 1161s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 1161s # 1161s # GList *connections, *l; 1161s # GVariant *signal_variant; 1161s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 1161s # 1161s # signal_variant = g_variant_ref_sink (g_variant_new ("(y)", 1161s # arg_arg_y)); 1161s # for (l = connections; l != NULL; l = l->next) 1161s # { 1161s # GDBusConnection *connection = l->data; 1161s # g_dbus_connection_emit_signal (connection, 1161s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SingleArgSignalY", 1161s # signal_variant, NULL); 1161s # } 1161s # g_variant_unref (signal_variant); 1161s # g_list_free_full (connections, g_object_unref); 1161s # } 1161s # 1161s # static void org_project_signaling_iface_skeleton_iface_init (OrgProjectSignalingIfaceIface *iface); 1161s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1161s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceSkeleton, org_project_signaling_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1161s # G_ADD_PRIVATE (OrgProjectSignalingIfaceSkeleton) 1161s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_skeleton_iface_init)) 1161s # 1161s # #else 1161s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceSkeleton, org_project_signaling_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1161s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_skeleton_iface_init)) 1161s # 1161s # #endif 1161s # static void 1161s # org_project_signaling_iface_skeleton_finalize (GObject *object) 1161s # { 1161s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 1161s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 1161s # if (skeleton->priv->changed_properties_idle_source != NULL) 1161s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 1161s # g_main_context_unref (skeleton->priv->context); 1161s # g_mutex_clear (&skeleton->priv->lock); 1161s # G_OBJECT_CLASS (org_project_signaling_iface_skeleton_parent_class)->finalize (object); 1161s # } 1161s # 1161s # static void 1161s # org_project_signaling_iface_skeleton_init (OrgProjectSignalingIfaceSkeleton *skeleton) 1161s # { 1161s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1161s # skeleton->priv = org_project_signaling_iface_skeleton_get_instance_private (skeleton); 1161s # #else 1161s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_SIGNALING_IFACE_SKELETON, OrgProjectSignalingIfaceSkeletonPrivate); 1161s # #endif 1161s # 1161s # g_mutex_init (&skeleton->priv->lock); 1161s # skeleton->priv->context = g_main_context_ref_thread_default (); 1161s # } 1161s # 1161s # static void 1161s # org_project_signaling_iface_skeleton_class_init (OrgProjectSignalingIfaceSkeletonClass *klass) 1161s # { 1161s # GObjectClass *gobject_class; 1161s # GDBusInterfaceSkeletonClass *skeleton_class; 1161s # 1161s # gobject_class = G_OBJECT_CLASS (klass); 1161s # gobject_class->finalize = org_project_signaling_iface_skeleton_finalize; 1161s # 1161s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 1161s # skeleton_class->get_info = org_project_signaling_iface_skeleton_dbus_interface_get_info; 1161s # skeleton_class->get_properties = org_project_signaling_iface_skeleton_dbus_interface_get_properties; 1161s # skeleton_class->flush = org_project_signaling_iface_skeleton_dbus_interface_flush; 1161s # skeleton_class->get_vtable = org_project_signaling_iface_skeleton_dbus_interface_get_vtable; 1161s # 1161s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1161s # g_type_class_add_private (klass, sizeof (OrgProjectSignalingIfaceSkeletonPrivate)); 1161s # #endif 1161s # } 1161s # 1161s # static void 1161s # org_project_signaling_iface_skeleton_iface_init (OrgProjectSignalingIfaceIface *iface) 1161s # { 1161s # iface->simple_signal = _org_project_signaling_iface_on_signal_simple_signal; 1161s # iface->single_arg_signal_y = _org_project_signaling_iface_on_signal_single_arg_signal_y; 1161s # } 1161s # 1161s # /** 1161s # * org_project_signaling_iface_skeleton_new: 1161s # * 1161s # * Creates a skeleton object for the D-Bus interface org.project.SignalingIface. 1161s # * 1161s # * Returns: (transfer full) (type OrgProjectSignalingIfaceSkeleton): The skeleton object. 1161s # */ 1161s # OrgProjectSignalingIface * 1161s # org_project_signaling_iface_skeleton_new (void) 1161s # { 1161s # return ORG_PROJECT_SIGNALING_IFACE (g_object_new (TYPE_ORG_PROJECT_SIGNALING_IFACE_SKELETON, NULL)); 1161s # } 1161s # Error: 1161s # 1161s # /tmp/tmpjwrvmpd2/tmpa8j5t11s.xml: 1161s # 1161s # 1161s # 1161s # 1161s # 1161s # 1161s # 1161s # 1161s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpjwrvmpd2/tmpa8j5t11s.xml', '--output', '-', '--body'] 1161s # Return code: 0 1161s # Output: 1161s # /* 1161s # * This file is generated by gdbus-codegen, do not modify it. 1161s # * 1161s # * The license of this code is the same as for the D-Bus interface description 1161s # * it was derived from. Note that it links to GLib, so must comply with the 1161s # * LGPL linking clauses. 1161s # */ 1161s # 1161s # #ifdef HAVE_CONFIG_H 1161s # # include "config.h" 1161s # #endif 1161s # 1161s # #include 1161s # #ifdef G_OS_UNIX 1161s # # include 1161s # #endif 1161s # 1161s # #ifdef G_ENABLE_DEBUG 1161s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 1161s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 1161s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 1161s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 1161s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 1161s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 1161s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 1161s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 1161s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 1161s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 1161s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 1161s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 1161s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 1161s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 1161s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 1161s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 1161s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 1161s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 1161s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 1161s # #else /* !G_ENABLE_DEBUG */ 1161s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 1161s # * Do not access GValues directly in your code. Instead, use the 1161s # * g_value_get_*() functions 1161s # */ 1161s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 1161s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 1161s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 1161s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 1161s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 1161s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 1161s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 1161s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 1161s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 1161s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 1161s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 1161s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 1161s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 1161s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 1161s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 1161s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 1161s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 1161s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 1161s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 1161s # #endif /* !G_ENABLE_DEBUG */ 1161s # 1161s # typedef struct 1161s # { 1161s # GDBusArgInfo parent_struct; 1161s # gboolean use_gvariant; 1161s # } _ExtendedGDBusArgInfo; 1161s # 1161s # typedef struct 1161s # { 1161s # GDBusMethodInfo parent_struct; 1161s # const gchar *signal_name; 1161s # gboolean pass_fdlist; 1161s # } _ExtendedGDBusMethodInfo; 1161s # 1161s # typedef struct 1161s # { 1161s # GDBusSignalInfo parent_struct; 1161s # const gchar *signal_name; 1161s # } _ExtendedGDBusSignalInfo; 1161s # 1161s # typedef struct 1161s # { 1161s # GDBusPropertyInfo parent_struct; 1161s # const gchar *hyphen_name; 1161s # guint use_gvariant : 1; 1161s # guint emits_changed_signal : 1; 1161s # } _ExtendedGDBusPropertyInfo; 1161s # 1161s # typedef struct 1161s # { 1161s # GDBusInterfaceInfo parent_struct; 1161s # const gchar *hyphen_name; 1161s # } _ExtendedGDBusInterfaceInfo; 1161s # 1161s # typedef struct 1161s # { 1161s # const _ExtendedGDBusPropertyInfo *info; 1161s # guint prop_id; 1161s # GValue orig_value; /* the value before the change */ 1161s # } ChangedProperty; 1161s # 1161s # static void 1161s # _changed_property_free (ChangedProperty *data) 1161s # { 1161s # g_value_unset (&data->orig_value); 1161s # g_free (data); 1161s # } 1161s # 1161s # static gboolean 1161s # _g_strv_equal0 (gchar **a, gchar **b) 1161s # { 1161s # gboolean ret = FALSE; 1161s # guint n; 1161s # if (a == NULL && b == NULL) 1161s # { 1161s # ret = TRUE; 1161s # goto out; 1161s # } 1161s # if (a == NULL || b == NULL) 1161s # goto out; 1161s # if (g_strv_length (a) != g_strv_length (b)) 1161s # goto out; 1161s # for (n = 0; a[n] != NULL; n++) 1161s # if (g_strcmp0 (a[n], b[n]) != 0) 1161s # goto out; 1161s # ret = TRUE; 1161s # out: 1161s # return ret; 1161s # } 1161s # 1161s # static gboolean 1161s # _g_variant_equal0 (GVariant *a, GVariant *b) 1161s # { 1161s # gboolean ret = FALSE; 1161s # if (a == NULL && b == NULL) 1161s # { 1161s # ret = TRUE; 1161s # goto out; 1161s # } 1161s # if (a == NULL || b == NULL) 1161s # goto out; 1161s # ret = g_variant_equal (a, b); 1161s # out: 1161s # return ret; 1161s # } 1161s # 1161s # G_GNUC_UNUSED static gboolean 1161s # _g_value_equal (const GValue *a, const GValue *b) 1161s # { 1161s # gboolean ret = FALSE; 1161s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 1161s # switch (G_VALUE_TYPE (a)) 1161s # { 1161s # case G_TYPE_BOOLEAN: 1161s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 1161s # break; 1161s # case G_TYPE_UCHAR: 1161s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 1161s # break; 1161s # case G_TYPE_INT: 1161s # ret = (g_value_get_int (a) == g_value_get_int (b)); 1161s # break; 1161s # case G_TYPE_UINT: 1161s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 1161s # break; 1161s # case G_TYPE_INT64: 1161s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 1161s # break; 1161s # case G_TYPE_UINT64: 1161s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 1161s # break; 1161s # case G_TYPE_DOUBLE: 1161s # { 1161s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 1161s # gdouble da = g_value_get_double (a); 1161s # gdouble db = g_value_get_double (b); 1161s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 1161s # } 1161s # break; 1161s # case G_TYPE_STRING: 1161s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 1161s # break; 1161s # case G_TYPE_VARIANT: 1161s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 1161s # break; 1161s # default: 1161s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 1161s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 1161s # else 1161s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 1161s # break; 1161s # } 1161s # return ret; 1161s # } 1161s # 1161s # /* ------------------------------------------------------------------------ 1161s # * Code for interface org.project.SignalingIface 1161s # * ------------------------------------------------------------------------ 1161s # */ 1161s # 1161s # /** 1161s # * SECTION:OrgProjectSignalingIface 1161s # * @title: OrgProjectSignalingIface 1161s # * @short_description: Generated C code for the org.project.SignalingIface D-Bus interface 1161s # * 1161s # * This section contains code for working with the org.project.SignalingIface D-Bus interface in C. 1161s # */ 1161s # 1161s # enum 1161s # { 1161s # _ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL, 1161s # _ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_N, 1161s # }; 1161s # 1161s # static unsigned _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[2] = { 0 }; 1161s # 1161s # /* ---- Introspection data for org.project.SignalingIface ---- */ 1161s # 1161s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_simple_signal = 1161s # { 1161s # { 1161s # -1, 1161s # (gchar *) "SimpleSignal", 1161s # NULL, 1161s # NULL 1161s # }, 1161s # "simple-signal" 1161s # }; 1161s # 1161s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_single_arg_signal_n_ARG_arg_n = 1161s # { 1161s # { 1161s # -1, 1161s # (gchar *) "arg_n", 1161s # (gchar *) "n", 1161s # NULL 1161s # }, 1161s # FALSE 1161s # }; 1161s # 1161s # static const GDBusArgInfo * const _org_project_signaling_iface_signal_info_single_arg_signal_n_ARG_pointers[] = 1161s # { 1161s # &_org_project_signaling_iface_signal_info_single_arg_signal_n_ARG_arg_n.parent_struct, 1161s # NULL 1161s # }; 1161s # 1161s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_single_arg_signal_n = 1161s # { 1161s # { 1161s # -1, 1161s # (gchar *) "SingleArgSignalN", 1161s # (GDBusArgInfo **) &_org_project_signaling_iface_signal_info_single_arg_signal_n_ARG_pointers, 1161s # NULL 1161s # }, 1161s # "single-arg-signal-n" 1161s # }; 1161s # 1161s # static const GDBusSignalInfo * const _org_project_signaling_iface_signal_info_pointers[] = 1161s # { 1161s # &_org_project_signaling_iface_signal_info_simple_signal.parent_struct, 1161s # &_org_project_signaling_iface_signal_info_single_arg_signal_n.parent_struct, 1161s # NULL 1161s # }; 1161s # 1161s # static const _ExtendedGDBusInterfaceInfo _org_project_signaling_iface_interface_info = 1161s # { 1161s # { 1161s # -1, 1161s # (gchar *) "org.project.SignalingIface", 1161s # NULL, 1161s # (GDBusSignalInfo **) &_org_project_signaling_iface_signal_info_pointers, 1161s # NULL, 1161s # NULL 1161s # }, 1161s # "org-project-signaling-iface", 1161s # }; 1161s # 1161s # 1161s # /** 1161s # * org_project_signaling_iface_interface_info: 1161s # * 1161s # * Gets a machine-readable description of the org.project.SignalingIface D-Bus interface. 1161s # * 1161s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 1161s # */ 1161s # GDBusInterfaceInfo * 1161s # org_project_signaling_iface_interface_info (void) 1161s # { 1161s # return (GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct; 1161s # } 1161s # 1161s # /** 1161s # * org_project_signaling_iface_override_properties: 1161s # * @klass: The class structure for a #GObject derived class. 1161s # * @property_id_begin: The property id to assign to the first overridden property. 1161s # * 1161s # * Overrides all #GObject properties in the #OrgProjectSignalingIface interface for a concrete class. 1161s # * The properties are overridden in the order they are defined. 1161s # * 1161s # * Returns: The last property id. 1161s # */ 1161s # guint 1161s # org_project_signaling_iface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 1161s # { 1161s # return property_id_begin - 1; 1161s # } 1161s # 1161s # 1161s # inline static void 1161s # org_project_signaling_iface_signal_marshal_simple_signal ( 1161s # GClosure *closure, 1161s # GValue *return_value, 1161s # unsigned int n_param_values, 1161s # const GValue *param_values, 1161s # void *invocation_hint, 1161s # void *marshal_data) 1161s # { 1161s # g_cclosure_marshal_VOID__VOID (closure, 1161s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1161s # } 1161s # 1161s # inline static void 1161s # org_project_signaling_iface_signal_marshal_single_arg_signal_n ( 1161s # GClosure *closure, 1161s # GValue *return_value, 1161s # unsigned int n_param_values, 1161s # const GValue *param_values, 1161s # void *invocation_hint, 1161s # void *marshal_data) 1161s # { 1161s # g_cclosure_marshal_VOID__INT (closure, 1161s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1161s # } 1161s # 1161s # 1161s # /** 1161s # * OrgProjectSignalingIface: 1161s # * 1161s # * Abstract interface type for the D-Bus interface org.project.SignalingIface. 1161s # */ 1161s # 1161s # /** 1161s # * OrgProjectSignalingIfaceIface: 1161s # * @parent_iface: The parent interface. 1161s # * @simple_signal: Handler for the #OrgProjectSignalingIface::simple-signal signal. 1161s # * @single_arg_signal_n: Handler for the #OrgProjectSignalingIface::single-arg-signal-n signal. 1161s # * 1161s # * Virtual table for the D-Bus interface org.project.SignalingIface. 1161s # */ 1161s # 1161s # typedef OrgProjectSignalingIfaceIface OrgProjectSignalingIfaceInterface; 1161s # G_DEFINE_INTERFACE (OrgProjectSignalingIface, org_project_signaling_iface, G_TYPE_OBJECT) 1161s # 1161s # static void 1161s # org_project_signaling_iface_default_init (OrgProjectSignalingIfaceIface *iface) 1161s # { 1161s # /* GObject signals for received D-Bus signals: */ 1161s # /** 1161s # * OrgProjectSignalingIface::simple-signal: 1161s # * @object: A #OrgProjectSignalingIface. 1161s # * 1161s # * On the client-side, this signal is emitted whenever the D-Bus signal "SimpleSignal" is received. 1161s # * 1161s # * 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. 1161s # */ 1161s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL] = 1161s # g_signal_new ("simple-signal", 1161s # G_TYPE_FROM_INTERFACE (iface), 1161s # G_SIGNAL_RUN_LAST, 1161s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, simple_signal), 1161s # NULL, 1161s # NULL, 1161s # org_project_signaling_iface_signal_marshal_simple_signal, 1161s # G_TYPE_NONE, 1161s # 0); 1161s # 1161s # /** 1161s # * OrgProjectSignalingIface::single-arg-signal-n: 1161s # * @object: A #OrgProjectSignalingIface. 1161s # * @arg_arg_n: Argument. 1161s # * 1161s # * On the client-side, this signal is emitted whenever the D-Bus signal "SingleArgSignalN" is received. 1161s # * 1161s # * 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. 1161s # */ 1161s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_N] = 1161s # g_signal_new ("single-arg-signal-n", 1161s # G_TYPE_FROM_INTERFACE (iface), 1161s # G_SIGNAL_RUN_LAST, 1161s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, single_arg_signal_n), 1161s # NULL, 1161s # NULL, 1161s # org_project_signaling_iface_signal_marshal_single_arg_signal_n, 1161s # G_TYPE_NONE, 1161s # 1, G_TYPE_INT); 1161s # 1161s # } 1161s # 1161s # /** 1161s # * org_project_signaling_iface_emit_simple_signal: 1161s # * @object: A #OrgProjectSignalingIface. 1161s # * 1161s # * Emits the "SimpleSignal" D-Bus signal. 1161s # */ 1161s # void 1161s # org_project_signaling_iface_emit_simple_signal ( 1161s # OrgProjectSignalingIface *object) 1161s # { 1161s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL], 0); 1161s # } 1161s # 1161s # /** 1161s # * org_project_signaling_iface_emit_single_arg_signal_n: 1161s # * @object: A #OrgProjectSignalingIface. 1161s # * @arg_arg_n: Argument to pass with the signal. 1161s # * 1161s # * Emits the "SingleArgSignalN" D-Bus signal. 1161s # */ 1161s # void 1161s # org_project_signaling_iface_emit_single_arg_signal_n ( 1161s # OrgProjectSignalingIface *object, 1161s # gint16 arg_arg_n) 1161s # { 1161s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_N], 0, arg_arg_n); 1161s # } 1161s # 1161s # /* ------------------------------------------------------------------------ */ 1161s # 1161s # /** 1161s # * OrgProjectSignalingIfaceProxy: 1161s # * 1161s # * The #OrgProjectSignalingIfaceProxy structure contains only private data and should only be accessed using the provided API. 1161s # */ 1161s # 1161s # /** 1161s # * OrgProjectSignalingIfaceProxyClass: 1161s # * @parent_class: The parent class. 1161s # * 1161s # * Class structure for #OrgProjectSignalingIfaceProxy. 1161s # */ 1161s # 1161s # struct _OrgProjectSignalingIfaceProxyPrivate 1161s # { 1161s # GData *qdata; 1161s # }; 1161s # 1161s # static void org_project_signaling_iface_proxy_iface_init (OrgProjectSignalingIfaceIface *iface); 1161s # 1161s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1161s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceProxy, org_project_signaling_iface_proxy, G_TYPE_DBUS_PROXY, 1161s # G_ADD_PRIVATE (OrgProjectSignalingIfaceProxy) 1161s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_proxy_iface_init)) 1161s # 1161s # #else 1161s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceProxy, org_project_signaling_iface_proxy, G_TYPE_DBUS_PROXY, 1161s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_proxy_iface_init)) 1161s # 1161s # #endif 1161s # static void 1161s # org_project_signaling_iface_proxy_finalize (GObject *object) 1161s # { 1161s # OrgProjectSignalingIfaceProxy *proxy = ORG_PROJECT_SIGNALING_IFACE_PROXY (object); 1161s # g_datalist_clear (&proxy->priv->qdata); 1161s # G_OBJECT_CLASS (org_project_signaling_iface_proxy_parent_class)->finalize (object); 1161s # } 1161s # 1161s # static void 1161s # org_project_signaling_iface_proxy_get_property (GObject *object G_GNUC_UNUSED, 1161s # guint prop_id G_GNUC_UNUSED, 1161s # GValue *value G_GNUC_UNUSED, 1161s # GParamSpec *pspec G_GNUC_UNUSED) 1161s # { 1161s # } 1161s # 1161s # static void 1161s # org_project_signaling_iface_proxy_set_property (GObject *object G_GNUC_UNUSED, 1161s # guint prop_id G_GNUC_UNUSED, 1161s # const GValue *value G_GNUC_UNUSED, 1161s # GParamSpec *pspec G_GNUC_UNUSED) 1161s # { 1161s # } 1161s # 1161s # static void 1161s # org_project_signaling_iface_proxy_g_signal (GDBusProxy *proxy, 1161s # const gchar *sender_name G_GNUC_UNUSED, 1161s # const gchar *signal_name, 1161s # GVariant *parameters) 1161s # { 1161s # _ExtendedGDBusSignalInfo *info; 1161s # GVariantIter iter; 1161s # GVariant *child; 1161s # GValue *paramv; 1161s # gsize num_params; 1161s # gsize n; 1161s # guint signal_id; 1161s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, signal_name); 1161s # if (info == NULL) 1161s # return; 1161s # num_params = g_variant_n_children (parameters); 1161s # paramv = g_new0 (GValue, num_params + 1); 1161s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_SIGNALING_IFACE); 1161s # g_value_set_object (¶mv[0], proxy); 1161s # g_variant_iter_init (&iter, parameters); 1161s # n = 1; 1161s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1161s # { 1161s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 1161s # if (arg_info->use_gvariant) 1161s # { 1161s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1161s # g_value_set_variant (¶mv[n], child); 1161s # n++; 1161s # } 1161s # else 1161s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1161s # g_variant_unref (child); 1161s # } 1161s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_SIGNALING_IFACE); 1161s # g_signal_emitv (paramv, signal_id, 0, NULL); 1161s # for (n = 0; n < num_params + 1; n++) 1161s # g_value_unset (¶mv[n]); 1161s # g_free (paramv); 1161s # } 1161s # 1161s # static void 1161s # org_project_signaling_iface_proxy_g_properties_changed (GDBusProxy *_proxy, 1161s # GVariant *changed_properties, 1161s # const gchar *const *invalidated_properties) 1161s # { 1161s # OrgProjectSignalingIfaceProxy *proxy = ORG_PROJECT_SIGNALING_IFACE_PROXY (_proxy); 1161s # guint n; 1161s # const gchar *key; 1161s # GVariantIter *iter; 1161s # _ExtendedGDBusPropertyInfo *info; 1161s # g_variant_get (changed_properties, "a{sv}", &iter); 1161s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 1161s # { 1161s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, key); 1161s # g_datalist_remove_data (&proxy->priv->qdata, key); 1161s # if (info != NULL) 1161s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1161s # } 1161s # g_variant_iter_free (iter); 1161s # for (n = 0; invalidated_properties[n] != NULL; n++) 1161s # { 1161s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, invalidated_properties[n]); 1161s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 1161s # if (info != NULL) 1161s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1161s # } 1161s # } 1161s # 1161s # static void 1161s # org_project_signaling_iface_proxy_init (OrgProjectSignalingIfaceProxy *proxy) 1161s # { 1161s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1161s # proxy->priv = org_project_signaling_iface_proxy_get_instance_private (proxy); 1161s # #else 1161s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_SIGNALING_IFACE_PROXY, OrgProjectSignalingIfaceProxyPrivate); 1161s # #endif 1161s # 1161s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_signaling_iface_interface_info ()); 1161s # } 1161s # 1161s # static void 1161s # org_project_signaling_iface_proxy_class_init (OrgProjectSignalingIfaceProxyClass *klass) 1161s # { 1161s # GObjectClass *gobject_class; 1161s # GDBusProxyClass *proxy_class; 1161s # 1161s # gobject_class = G_OBJECT_CLASS (klass); 1161s # gobject_class->finalize = org_project_signaling_iface_proxy_finalize; 1161s # gobject_class->get_property = org_project_signaling_iface_proxy_get_property; 1161s # gobject_class->set_property = org_project_signaling_iface_proxy_set_property; 1161s # 1161s # proxy_class = G_DBUS_PROXY_CLASS (klass); 1161s # proxy_class->g_signal = org_project_signaling_iface_proxy_g_signal; 1161s # proxy_class->g_properties_changed = org_project_signaling_iface_proxy_g_properties_changed; 1161s # 1161s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1161s # g_type_class_add_private (klass, sizeof (OrgProjectSignalingIfaceProxyPrivate)); 1161s # #endif 1161s # } 1161s # 1161s # static void 1161s # org_project_signaling_iface_proxy_iface_init (OrgProjectSignalingIfaceIface *iface G_GNUC_UNUSED) 1161s # { 1161s # } 1161s # 1161s # /** 1161s # * org_project_signaling_iface_proxy_new: 1161s # * @connection: A #GDBusConnection. 1161s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1161s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1161s # * @object_path: An object path. 1161s # * @cancellable: (nullable): A #GCancellable or %NULL. 1161s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1161s # * @user_data: User data to pass to @callback. 1161s # * 1161s # * Asynchronously creates a proxy for the D-Bus interface org.project.SignalingIface. See g_dbus_proxy_new() for more details. 1161s # * 1161s # * 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()). 1161s # * You can then call org_project_signaling_iface_proxy_new_finish() to get the result of the operation. 1161s # * 1161s # * See org_project_signaling_iface_proxy_new_sync() for the synchronous, blocking version of this constructor. 1161s # */ 1161s # void 1161s # org_project_signaling_iface_proxy_new ( 1161s # GDBusConnection *connection, 1161s # GDBusProxyFlags flags, 1161s # const gchar *name, 1161s # const gchar *object_path, 1161s # GCancellable *cancellable, 1161s # GAsyncReadyCallback callback, 1161s # gpointer user_data) 1161s # { 1161s # 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); 1161s # } 1161s # 1161s # /** 1161s # * org_project_signaling_iface_proxy_new_finish: 1161s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_signaling_iface_proxy_new(). 1161s # * @error: Return location for error or %NULL 1161s # * 1161s # * Finishes an operation started with org_project_signaling_iface_proxy_new(). 1161s # * 1161s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 1161s # */ 1161s # OrgProjectSignalingIface * 1161s # org_project_signaling_iface_proxy_new_finish ( 1161s # GAsyncResult *res, 1161s # GError **error) 1161s # { 1161s # GObject *ret; 1161s # GObject *source_object; 1161s # source_object = g_async_result_get_source_object (res); 1161s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1161s # g_object_unref (source_object); 1161s # if (ret != NULL) 1161s # return ORG_PROJECT_SIGNALING_IFACE (ret); 1161s # else 1161s # return NULL; 1161s # } 1161s # 1161s # /** 1161s # * org_project_signaling_iface_proxy_new_sync: 1161s # * @connection: A #GDBusConnection. 1161s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1161s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1161s # * @object_path: An object path. 1161s # * @cancellable: (nullable): A #GCancellable or %NULL. 1161s # * @error: Return location for error or %NULL 1161s # * 1161s # * Synchronously creates a proxy for the D-Bus interface org.project.SignalingIface. See g_dbus_proxy_new_sync() for more details. 1161s # * 1161s # * The calling thread is blocked until a reply is received. 1161s # * 1161s # * See org_project_signaling_iface_proxy_new() for the asynchronous version of this constructor. 1161s # * 1161s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 1161s # */ 1161s # OrgProjectSignalingIface * 1161s # org_project_signaling_iface_proxy_new_sync ( 1161s # GDBusConnection *connection, 1161s # GDBusProxyFlags flags, 1161s # const gchar *name, 1161s # const gchar *object_path, 1161s # GCancellable *cancellable, 1161s # GError **error) 1161s # { 1161s # GInitable *ret; 1161s # 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); 1161s # if (ret != NULL) 1161s # return ORG_PROJECT_SIGNALING_IFACE (ret); 1161s # else 1161s # return NULL; 1161s # } 1161s # 1161s # 1161s # /** 1161s # * org_project_signaling_iface_proxy_new_for_bus: 1161s # * @bus_type: A #GBusType. 1161s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1161s # * @name: A bus name (well-known or unique). 1161s # * @object_path: An object path. 1161s # * @cancellable: (nullable): A #GCancellable or %NULL. 1161s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1161s # * @user_data: User data to pass to @callback. 1161s # * 1161s # * Like org_project_signaling_iface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 1161s # * 1161s # * 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()). 1161s # * You can then call org_project_signaling_iface_proxy_new_for_bus_finish() to get the result of the operation. 1161s # * 1161s # * See org_project_signaling_iface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 1161s # */ 1161s # void 1161s # org_project_signaling_iface_proxy_new_for_bus ( 1161s # GBusType bus_type, 1161s # GDBusProxyFlags flags, 1161s # const gchar *name, 1161s # const gchar *object_path, 1161s # GCancellable *cancellable, 1161s # GAsyncReadyCallback callback, 1161s # gpointer user_data) 1161s # { 1161s # 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); 1161s # } 1161s # 1161s # /** 1161s # * org_project_signaling_iface_proxy_new_for_bus_finish: 1161s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_signaling_iface_proxy_new_for_bus(). 1161s # * @error: Return location for error or %NULL 1161s # * 1161s # * Finishes an operation started with org_project_signaling_iface_proxy_new_for_bus(). 1161s # * 1161s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 1161s # */ 1161s # OrgProjectSignalingIface * 1161s # org_project_signaling_iface_proxy_new_for_bus_finish ( 1161s # GAsyncResult *res, 1161s # GError **error) 1161s # { 1161s # GObject *ret; 1161s # GObject *source_object; 1161s # source_object = g_async_result_get_source_object (res); 1161s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1161s # g_object_unref (source_object); 1161s # if (ret != NULL) 1161s # return ORG_PROJECT_SIGNALING_IFACE (ret); 1161s # else 1161s # return NULL; 1161s # } 1161s # 1161s # /** 1161s # * org_project_signaling_iface_proxy_new_for_bus_sync: 1161s # * @bus_type: A #GBusType. 1161s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1161s # * @name: A bus name (well-known or unique). 1161s # * @object_path: An object path. 1161s # * @cancellable: (nullable): A #GCancellable or %NULL. 1161s # * @error: Return location for error or %NULL 1161s # * 1161s # * Like org_project_signaling_iface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 1161s # * 1161s # * The calling thread is blocked until a reply is received. 1161s # * 1161s # * See org_project_signaling_iface_proxy_new_for_bus() for the asynchronous version of this constructor. 1161s # * 1161s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 1161s # */ 1161s # OrgProjectSignalingIface * 1161s # org_project_signaling_iface_proxy_new_for_bus_sync ( 1161s # GBusType bus_type, 1161s # GDBusProxyFlags flags, 1161s # const gchar *name, 1161s # const gchar *object_path, 1161s # GCancellable *cancellable, 1161s # GError **error) 1161s # { 1161s # GInitable *ret; 1161s # 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); 1161s # if (ret != NULL) 1161s # return ORG_PROJECT_SIGNALING_IFACE (ret); 1161s # else 1161s # return NULL; 1161s # } 1161s # 1161s # 1161s # /* ------------------------------------------------------------------------ */ 1161s # 1161s # /** 1161s # * OrgProjectSignalingIfaceSkeleton: 1161s # * 1161s # * The #OrgProjectSignalingIfaceSkeleton structure contains only private data and should only be accessed using the provided API. 1161s # */ 1161s # 1161s # /** 1161s # * OrgProjectSignalingIfaceSkeletonClass: 1161s # * @parent_class: The parent class. 1161s # * 1161s # * Class structure for #OrgProjectSignalingIfaceSkeleton. 1161s # */ 1161s # 1161s # struct _OrgProjectSignalingIfaceSkeletonPrivate 1161s # { 1161s # GValue *properties; 1161s # GList *changed_properties; 1161s # GSource *changed_properties_idle_source; 1161s # GMainContext *context; 1161s # GMutex lock; 1161s # }; 1161s # 1161s # static void 1161s # _org_project_signaling_iface_skeleton_handle_method_call ( 1161s # GDBusConnection *connection G_GNUC_UNUSED, 1161s # const gchar *sender G_GNUC_UNUSED, 1161s # const gchar *object_path G_GNUC_UNUSED, 1161s # const gchar *interface_name, 1161s # const gchar *method_name, 1161s # GVariant *parameters, 1161s # GDBusMethodInvocation *invocation, 1161s # gpointer user_data) 1161s # { 1161s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 1161s # _ExtendedGDBusMethodInfo *info; 1161s # GVariantIter iter; 1161s # GVariant *child; 1161s # GValue *paramv; 1161s # gsize num_params; 1161s # guint num_extra; 1161s # gsize n; 1161s # guint signal_id; 1161s # GValue return_value = G_VALUE_INIT; 1161s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 1161s # g_assert (info != NULL); 1161s # num_params = g_variant_n_children (parameters); 1161s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 1161s # n = 0; 1161s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_SIGNALING_IFACE); 1161s # g_value_set_object (¶mv[n++], skeleton); 1161s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 1161s # g_value_set_object (¶mv[n++], invocation); 1161s # if (info->pass_fdlist) 1161s # { 1161s # #ifdef G_OS_UNIX 1161s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 1161s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 1161s # #else 1161s # g_assert_not_reached (); 1161s # #endif 1161s # } 1161s # g_variant_iter_init (&iter, parameters); 1161s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1161s # { 1161s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 1161s # if (arg_info->use_gvariant) 1161s # { 1161s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1161s # g_value_set_variant (¶mv[n], child); 1161s # n++; 1161s # } 1161s # else 1161s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1161s # g_variant_unref (child); 1161s # } 1161s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_SIGNALING_IFACE); 1161s # g_value_init (&return_value, G_TYPE_BOOLEAN); 1161s # g_signal_emitv (paramv, signal_id, 0, &return_value); 1161s # if (!g_value_get_boolean (&return_value)) 1161s # 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); 1161s # g_value_unset (&return_value); 1161s # for (n = 0; n < num_params + num_extra; n++) 1161s # g_value_unset (¶mv[n]); 1161s # g_free (paramv); 1161s # } 1161s # 1161s # static GVariant * 1161s # _org_project_signaling_iface_skeleton_handle_get_property ( 1161s # GDBusConnection *connection G_GNUC_UNUSED, 1161s # const gchar *sender G_GNUC_UNUSED, 1161s # const gchar *object_path G_GNUC_UNUSED, 1161s # const gchar *interface_name G_GNUC_UNUSED, 1161s # const gchar *property_name, 1161s # GError **error, 1161s # gpointer user_data) 1161s # { 1161s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 1161s # GValue value = G_VALUE_INIT; 1161s # GParamSpec *pspec; 1161s # _ExtendedGDBusPropertyInfo *info; 1161s # GVariant *ret; 1161s # ret = NULL; 1161s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, property_name); 1161s # g_assert (info != NULL); 1161s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1161s # if (pspec == NULL) 1161s # { 1161s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1161s # } 1161s # else 1161s # { 1161s # g_value_init (&value, pspec->value_type); 1161s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1161s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 1161s # g_value_unset (&value); 1161s # } 1161s # return ret; 1161s # } 1161s # 1161s # static gboolean 1161s # _org_project_signaling_iface_skeleton_handle_set_property ( 1161s # GDBusConnection *connection G_GNUC_UNUSED, 1161s # const gchar *sender G_GNUC_UNUSED, 1161s # const gchar *object_path G_GNUC_UNUSED, 1161s # const gchar *interface_name G_GNUC_UNUSED, 1161s # const gchar *property_name, 1161s # GVariant *variant, 1161s # GError **error, 1161s # gpointer user_data) 1161s # { 1161s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 1161s # GValue value = G_VALUE_INIT; 1161s # GParamSpec *pspec; 1161s # _ExtendedGDBusPropertyInfo *info; 1161s # gboolean ret; 1161s # ret = FALSE; 1161s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, property_name); 1161s # g_assert (info != NULL); 1161s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1161s # if (pspec == NULL) 1161s # { 1161s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1161s # } 1161s # else 1161s # { 1161s # if (info->use_gvariant) 1161s # g_value_set_variant (&value, variant); 1161s # else 1161s # g_dbus_gvariant_to_gvalue (variant, &value); 1161s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1161s # g_value_unset (&value); 1161s # ret = TRUE; 1161s # } 1161s # return ret; 1161s # } 1161s # 1161s # static const GDBusInterfaceVTable _org_project_signaling_iface_skeleton_vtable = 1161s # { 1161s # _org_project_signaling_iface_skeleton_handle_method_call, 1161s # _org_project_signaling_iface_skeleton_handle_get_property, 1161s # _org_project_signaling_iface_skeleton_handle_set_property, 1161s # {NULL} 1161s # }; 1161s # 1161s # static GDBusInterfaceInfo * 1161s # org_project_signaling_iface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1161s # { 1161s # return org_project_signaling_iface_interface_info (); 1161s # } 1161s # 1161s # static GDBusInterfaceVTable * 1161s # org_project_signaling_iface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1161s # { 1161s # return (GDBusInterfaceVTable *) &_org_project_signaling_iface_skeleton_vtable; 1161s # } 1161s # 1161s # static GVariant * 1161s # org_project_signaling_iface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 1161s # { 1161s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (_skeleton); 1161s # 1161s # GVariantBuilder builder; 1161s # guint n; 1161s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 1161s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 1161s # #else 1161s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 1161s # #endif 1161s # if (_org_project_signaling_iface_interface_info.parent_struct.properties == NULL) 1161s # goto out; 1161s # for (n = 0; _org_project_signaling_iface_interface_info.parent_struct.properties[n] != NULL; n++) 1161s # { 1161s # GDBusPropertyInfo *info = _org_project_signaling_iface_interface_info.parent_struct.properties[n]; 1161s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 1161s # { 1161s # GVariant *value; 1161s # 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); 1161s # if (value != NULL) 1161s # { 1161s # g_variant_take_ref (value); 1161s # g_variant_builder_add (&builder, "{sv}", info->name, value); 1161s # g_variant_unref (value); 1161s # } 1161s # } 1161s # } 1161s # out: 1161s # return g_variant_builder_end (&builder); 1161s # } 1161s # 1161s # static void 1161s # org_project_signaling_iface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 1161s # { 1161s # } 1161s # 1161s # static void 1161s # _org_project_signaling_iface_on_signal_simple_signal ( 1161s # OrgProjectSignalingIface *object) 1161s # { 1161s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 1161s # 1161s # GList *connections, *l; 1161s # GVariant *signal_variant; 1161s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 1161s # 1161s # signal_variant = g_variant_ref_sink (g_variant_new ("()")); 1161s # for (l = connections; l != NULL; l = l->next) 1161s # { 1161s # GDBusConnection *connection = l->data; 1161s # g_dbus_connection_emit_signal (connection, 1161s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SimpleSignal", 1161s # signal_variant, NULL); 1161s # } 1161s # g_variant_unref (signal_variant); 1161s # g_list_free_full (connections, g_object_unref); 1161s # } 1161s # 1161s # static void 1161s # _org_project_signaling_iface_on_signal_single_arg_signal_n ( 1161s # OrgProjectSignalingIface *object, 1161s # gint16 arg_arg_n) 1161s # { 1161s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 1161s # 1161s # GList *connections, *l; 1161s # GVariant *signal_variant; 1161s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 1161s # 1161s # signal_variant = g_variant_ref_sink (g_variant_new ("(n)", 1161s # arg_arg_n)); 1161s # for (l = connections; l != NULL; l = l->next) 1161s # { 1161s # GDBusConnection *connection = l->data; 1161s # g_dbus_connection_emit_signal (connection, 1161s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SingleArgSignalN", 1161s # signal_variant, NULL); 1161s # } 1161s # g_variant_unref (signal_variant); 1161s # g_list_free_full (connections, g_object_unref); 1161s # } 1161s # 1161s # static void org_project_signaling_iface_skeleton_iface_init (OrgProjectSignalingIfaceIface *iface); 1161s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1161s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceSkeleton, org_project_signaling_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1161s # G_ADD_PRIVATE (OrgProjectSignalingIfaceSkeleton) 1161s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_skeleton_iface_init)) 1161s # 1161s # #else 1161s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceSkeleton, org_project_signaling_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1161s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_skeleton_iface_init)) 1161s # 1161s # #endif 1161s # static void 1161s # org_project_signaling_iface_skeleton_finalize (GObject *object) 1161s # { 1161s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 1161s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 1161s # if (skeleton->priv->changed_properties_idle_source != NULL) 1161s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 1161s # g_main_context_unref (skeleton->priv->context); 1161s # g_mutex_clear (&skeleton->priv->lock); 1161s # G_OBJECT_CLASS (org_project_signaling_iface_skeleton_parent_class)->finalize (object); 1161s # } 1161s # 1161s # static void 1161s # org_project_signaling_iface_skeleton_init (OrgProjectSignalingIfaceSkeleton *skeleton) 1161s # { 1161s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1161s # skeleton->priv = org_project_signaling_iface_skeleton_get_instance_private (skeleton); 1161s # #else 1161s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_SIGNALING_IFACE_SKELETON, OrgProjectSignalingIfaceSkeletonPrivate); 1161s # #endif 1161s # 1161s # g_mutex_init (&skeleton->priv->lock); 1161s # skeleton->priv->context = g_main_context_ref_thread_default (); 1161s # } 1161s # 1161s # static void 1161s # org_project_signaling_iface_skeleton_class_init (OrgProjectSignalingIfaceSkeletonClass *klass) 1161s # { 1161s # GObjectClass *gobject_class; 1161s # GDBusInterfaceSkeletonClass *skeleton_class; 1161s # 1161s # gobject_class = G_OBJECT_CLASS (klass); 1161s # gobject_class->finalize = org_project_signaling_iface_skeleton_finalize; 1161s # 1161s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 1161s # skeleton_class->get_info = org_project_signaling_iface_skeleton_dbus_interface_get_info; 1161s # skeleton_class->get_properties = org_project_signaling_iface_skeleton_dbus_interface_get_properties; 1161s # skeleton_class->flush = org_project_signaling_iface_skeleton_dbus_interface_flush; 1161s # skeleton_class->get_vtable = org_project_signaling_iface_skeleton_dbus_interface_get_vtable; 1161s # 1161s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1161s # g_type_class_add_private (klass, sizeof (OrgProjectSignalingIfaceSkeletonPrivate)); 1161s # #endif 1161s # } 1161s # 1161s # static void 1161s # org_project_signaling_iface_skeleton_iface_init (OrgProjectSignalingIfaceIface *iface) 1161s # { 1161s # iface->simple_signal = _org_project_signaling_iface_on_signal_simple_signal; 1161s # iface->single_arg_signal_n = _org_project_signaling_iface_on_signal_single_arg_signal_n; 1161s # } 1161s # 1161s # /** 1161s # * org_project_signaling_iface_skeleton_new: 1161s # * 1161s # * Creates a skeleton object for the D-Bus interface org.project.SignalingIface. 1161s # * 1161s # * Returns: (transfer full) (type OrgProjectSignalingIfaceSkeleton): The skeleton object. 1161s # */ 1161s # OrgProjectSignalingIface * 1161s # org_project_signaling_iface_skeleton_new (void) 1161s # { 1161s # return ORG_PROJECT_SIGNALING_IFACE (g_object_new (TYPE_ORG_PROJECT_SIGNALING_IFACE_SKELETON, NULL)); 1161s # } 1161s # Error: 1161s # 1161s # /tmp/tmpjwrvmpd2/tmpryp4jugo.xml: 1161s # 1161s # 1161s # 1161s # 1161s # 1161s # 1161s # 1161s # 1161s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpjwrvmpd2/tmpryp4jugo.xml', '--output', '-', '--body'] 1161s # Return code: 0 1161s # Output: 1161s # /* 1161s # * This file is generated by gdbus-codegen, do not modify it. 1161s # * 1161s # * The license of this code is the same as for the D-Bus interface description 1161s # * it was derived from. Note that it links to GLib, so must comply with the 1161s # * LGPL linking clauses. 1161s # */ 1161s # 1161s # #ifdef HAVE_CONFIG_H 1161s # # include "config.h" 1161s # #endif 1161s # 1161s # #include 1161s # #ifdef G_OS_UNIX 1161s # # include 1161s # #endif 1161s # 1161s # #ifdef G_ENABLE_DEBUG 1161s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 1161s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 1161s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 1161s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 1161s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 1161s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 1161s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 1161s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 1161s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 1161s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 1161s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 1161s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 1161s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 1161s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 1161s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 1161s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 1161s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 1161s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 1161s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 1161s # #else /* !G_ENABLE_DEBUG */ 1161s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 1161s # * Do not access GValues directly in your code. Instead, use the 1161s # * g_value_get_*() functions 1161s # */ 1161s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 1161s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 1161s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 1161s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 1161s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 1161s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 1161s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 1161s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 1161s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 1161s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 1161s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 1161s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 1161s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 1161s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 1161s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 1161s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 1161s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 1161s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 1161s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 1161s # #endif /* !G_ENABLE_DEBUG */ 1161s # 1161s # typedef struct 1161s # { 1161s # GDBusArgInfo parent_struct; 1161s # gboolean use_gvariant; 1161s # } _ExtendedGDBusArgInfo; 1161s # 1161s # typedef struct 1161s # { 1161s # GDBusMethodInfo parent_struct; 1161s # const gchar *signal_name; 1161s # gboolean pass_fdlist; 1161s # } _ExtendedGDBusMethodInfo; 1161s # 1161s # typedef struct 1161s # { 1161s # GDBusSignalInfo parent_struct; 1161s # const gchar *signal_name; 1161s # } _ExtendedGDBusSignalInfo; 1161s # 1161s # typedef struct 1161s # { 1161s # GDBusPropertyInfo parent_struct; 1161s # const gchar *hyphen_name; 1161s # guint use_gvariant : 1; 1161s # guint emits_changed_signal : 1; 1161s # } _ExtendedGDBusPropertyInfo; 1161s # 1161s # typedef struct 1161s # { 1161s # GDBusInterfaceInfo parent_struct; 1161s # const gchar *hyphen_name; 1161s # } _ExtendedGDBusInterfaceInfo; 1161s # 1161s # typedef struct 1161s # { 1161s # const _ExtendedGDBusPropertyInfo *info; 1161s # guint prop_id; 1161s # GValue orig_value; /* the value before the change */ 1161s # } ChangedProperty; 1161s # 1161s # static void 1161s # _changed_property_free (ChangedProperty *data) 1161s # { 1161s # g_value_unset (&data->orig_value); 1161s # g_free (data); 1161s # } 1161s # 1161s # static gboolean 1161s # _g_strv_equal0 (gchar **a, gchar **b) 1161s # { 1161s # gboolean ret = FALSE; 1161s # guint n; 1161s # if (a == NULL && b == NULL) 1161s # { 1161s # ret = TRUE; 1161s # goto out; 1161s # } 1161s # if (a == NULL || b == NULL) 1161s # goto out; 1161s # if (g_strv_length (a) != g_strv_length (b)) 1161s # goto out; 1161s # for (n = 0; a[n] != NULL; n++) 1161s # if (g_strcmp0 (a[n], b[n]) != 0) 1161s # goto out; 1161s # ret = TRUE; 1161s # out: 1161s # return ret; 1161s # } 1161s # 1161s # static gboolean 1161s # _g_variant_equal0 (GVariant *a, GVariant *b) 1161s # { 1161s # gboolean ret = FALSE; 1161s # if (a == NULL && b == NULL) 1161s # { 1161s # ret = TRUE; 1161s # goto out; 1161s # } 1161s # if (a == NULL || b == NULL) 1161s # goto out; 1161s # ret = g_variant_equal (a, b); 1161s # out: 1161s # return ret; 1161s # } 1161s # 1161s # G_GNUC_UNUSED static gboolean 1161s # _g_value_equal (const GValue *a, const GValue *b) 1161s # { 1161s # gboolean ret = FALSE; 1161s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 1161s # switch (G_VALUE_TYPE (a)) 1161s # { 1161s # case G_TYPE_BOOLEAN: 1161s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 1161s # break; 1161s # case G_TYPE_UCHAR: 1161s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 1161s # break; 1161s # case G_TYPE_INT: 1161s # ret = (g_value_get_int (a) == g_value_get_int (b)); 1161s # break; 1161s # case G_TYPE_UINT: 1161s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 1161s # break; 1161s # case G_TYPE_INT64: 1161s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 1161s # break; 1161s # case G_TYPE_UINT64: 1161s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 1161s # break; 1161s # case G_TYPE_DOUBLE: 1161s # { 1161s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 1161s # gdouble da = g_value_get_double (a); 1161s # gdouble db = g_value_get_double (b); 1161s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 1161s # } 1161s # break; 1161s # case G_TYPE_STRING: 1161s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 1161s # break; 1161s # case G_TYPE_VARIANT: 1161s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 1161s # break; 1161s # default: 1161s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 1161s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 1161s # else 1161s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 1161s # break; 1161s # } 1161s # return ret; 1161s # } 1161s # 1161s # /* ------------------------------------------------------------------------ 1161s # * Code for interface org.project.SignalingIface 1161s # * ------------------------------------------------------------------------ 1161s # */ 1161s # 1161s # /** 1161s # * SECTION:OrgProjectSignalingIface 1161s # * @title: OrgProjectSignalingIface 1161s # * @short_description: Generated C code for the org.project.SignalingIface D-Bus interface 1161s # * 1161s # * This section contains code for working with the org.project.SignalingIface D-Bus interface in C. 1161s # */ 1161s # 1161s # enum 1161s # { 1161s # _ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL, 1161s # _ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_Q, 1161s # }; 1161s # 1161s # static unsigned _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[2] = { 0 }; 1161s # 1161s # /* ---- Introspection data for org.project.SignalingIface ---- */ 1161s # 1161s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_simple_signal = 1161s # { 1161s # { 1161s # -1, 1161s # (gchar *) "SimpleSignal", 1161s # NULL, 1161s # NULL 1161s # }, 1161s # "simple-signal" 1161s # }; 1161s # 1161s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_single_arg_signal_q_ARG_arg_q = 1161s # { 1161s # { 1161s # -1, 1161s # (gchar *) "arg_q", 1161s # (gchar *) "q", 1161s # NULL 1161s # }, 1161s # FALSE 1161s # }; 1161s # 1161s # static const GDBusArgInfo * const _org_project_signaling_iface_signal_info_single_arg_signal_q_ARG_pointers[] = 1161s # { 1161s # &_org_project_signaling_iface_signal_info_single_arg_signal_q_ARG_arg_q.parent_struct, 1161s # NULL 1161s # }; 1161s # 1161s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_single_arg_signal_q = 1161s # { 1161s # { 1161s # -1, 1161s # (gchar *) "SingleArgSignalQ", 1161s # (GDBusArgInfo **) &_org_project_signaling_iface_signal_info_single_arg_signal_q_ARG_pointers, 1161s # NULL 1161s # }, 1161s # "single-arg-signal-q" 1161s # }; 1161s # 1161s # static const GDBusSignalInfo * const _org_project_signaling_iface_signal_info_pointers[] = 1161s # { 1161s # &_org_project_signaling_iface_signal_info_simple_signal.parent_struct, 1161s # &_org_project_signaling_iface_signal_info_single_arg_signal_q.parent_struct, 1161s # NULL 1161s # }; 1161s # 1161s # static const _ExtendedGDBusInterfaceInfo _org_project_signaling_iface_interface_info = 1161s # { 1161s # { 1161s # -1, 1161s # (gchar *) "org.project.SignalingIface", 1161s # NULL, 1161s # (GDBusSignalInfo **) &_org_project_signaling_iface_signal_info_pointers, 1161s # NULL, 1161s # NULL 1161s # }, 1161s # "org-project-signaling-iface", 1161s # }; 1161s # 1161s # 1161s # /** 1161s # * org_project_signaling_iface_interface_info: 1161s # * 1161s # * Gets a machine-readable description of the org.project.SignalingIface D-Bus interface. 1161s # * 1161s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 1161s # */ 1161s # GDBusInterfaceInfo * 1161s # org_project_signaling_iface_interface_info (void) 1161s # { 1161s # return (GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct; 1161s # } 1161s # 1161s # /** 1161s # * org_project_signaling_iface_override_properties: 1161s # * @klass: The class structure for a #GObject derived class. 1161s # * @property_id_begin: The property id to assign to the first overridden property. 1161s # * 1161s # * Overrides all #GObject properties in the #OrgProjectSignalingIface interface for a concrete class. 1161s # * The properties are overridden in the order they are defined. 1161s # * 1161s # * Returns: The last property id. 1161s # */ 1161s # guint 1161s # org_project_signaling_iface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 1161s # { 1161s # return property_id_begin - 1; 1161s # } 1161s # 1161s # 1161s # inline static void 1161s # org_project_signaling_iface_signal_marshal_simple_signal ( 1161s # GClosure *closure, 1161s # GValue *return_value, 1161s # unsigned int n_param_values, 1161s # const GValue *param_values, 1161s # void *invocation_hint, 1161s # void *marshal_data) 1161s # { 1161s # g_cclosure_marshal_VOID__VOID (closure, 1161s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1161s # } 1161s # 1161s # inline static void 1161s # org_project_signaling_iface_signal_marshal_single_arg_signal_q ( 1161s # GClosure *closure, 1161s # GValue *return_value, 1161s # unsigned int n_param_values, 1161s # const GValue *param_values, 1161s # void *invocation_hint, 1161s # void *marshal_data) 1161s # { 1161s # g_cclosure_marshal_VOID__UINT (closure, 1161s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1161s # } 1161s # 1161s # 1161s # /** 1161s # * OrgProjectSignalingIface: 1161s # * 1161s # * Abstract interface type for the D-Bus interface org.project.SignalingIface. 1161s # */ 1161s # 1161s # /** 1161s # * OrgProjectSignalingIfaceIface: 1161s # * @parent_iface: The parent interface. 1161s # * @simple_signal: Handler for the #OrgProjectSignalingIface::simple-signal signal. 1161s # * @single_arg_signal_q: Handler for the #OrgProjectSignalingIface::single-arg-signal-q signal. 1161s # * 1161s # * Virtual table for the D-Bus interface org.project.SignalingIface. 1161s # */ 1161s # 1161s # typedef OrgProjectSignalingIfaceIface OrgProjectSignalingIfaceInterface; 1161s # G_DEFINE_INTERFACE (OrgProjectSignalingIface, org_project_signaling_iface, G_TYPE_OBJECT) 1161s # 1161s # static void 1161s # org_project_signaling_iface_default_init (OrgProjectSignalingIfaceIface *iface) 1161s # { 1161s # /* GObject signals for received D-Bus signals: */ 1161s # /** 1161s # * OrgProjectSignalingIface::simple-signal: 1161s # * @object: A #OrgProjectSignalingIface. 1161s # * 1161s # * On the client-side, this signal is emitted whenever the D-Bus signal "SimpleSignal" is received. 1161s # * 1161s # * 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. 1161s # */ 1161s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL] = 1161s # g_signal_new ("simple-signal", 1161s # G_TYPE_FROM_INTERFACE (iface), 1161s # G_SIGNAL_RUN_LAST, 1161s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, simple_signal), 1161s # NULL, 1161s # NULL, 1161s # org_project_signaling_iface_signal_marshal_simple_signal, 1161s # G_TYPE_NONE, 1161s # 0); 1161s # 1161s # /** 1161s # * OrgProjectSignalingIface::single-arg-signal-q: 1161s # * @object: A #OrgProjectSignalingIface. 1161s # * @arg_arg_q: Argument. 1161s # * 1161s # * On the client-side, this signal is emitted whenever the D-Bus signal "SingleArgSignalQ" is received. 1161s # * 1161s # * 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. 1161s # */ 1161s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_Q] = 1161s # g_signal_new ("single-arg-signal-q", 1161s # G_TYPE_FROM_INTERFACE (iface), 1161s # G_SIGNAL_RUN_LAST, 1161s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, single_arg_signal_q), 1161s # NULL, 1161s # NULL, 1161s # org_project_signaling_iface_signal_marshal_single_arg_signal_q, 1161s # G_TYPE_NONE, 1161s # 1, G_TYPE_UINT); 1161s # 1161s # } 1161s # 1161s # /** 1161s # * org_project_signaling_iface_emit_simple_signal: 1161s # * @object: A #OrgProjectSignalingIface. 1161s # * 1161s # * Emits the "SimpleSignal" D-Bus signal. 1161s # */ 1161s # void 1161s # org_project_signaling_iface_emit_simple_signal ( 1161s # OrgProjectSignalingIface *object) 1161s # { 1161s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL], 0); 1161s # } 1161s # 1161s # /** 1161s # * org_project_signaling_iface_emit_single_arg_signal_q: 1161s # * @object: A #OrgProjectSignalingIface. 1161s # * @arg_arg_q: Argument to pass with the signal. 1161s # * 1161s # * Emits the "SingleArgSignalQ" D-Bus signal. 1161s # */ 1161s # void 1161s # org_project_signaling_iface_emit_single_arg_signal_q ( 1161s # OrgProjectSignalingIface *object, 1161s # guint16 arg_arg_q) 1161s # { 1161s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_Q], 0, arg_arg_q); 1161s # } 1161s # 1161s # /* ------------------------------------------------------------------------ */ 1161s # 1161s # /** 1161s # * OrgProjectSignalingIfaceProxy: 1161s # * 1161s # * The #OrgProjectSignalingIfaceProxy structure contains only private data and should only be accessed using the provided API. 1161s # */ 1161s # 1161s # /** 1161s # * OrgProjectSignalingIfaceProxyClass: 1161s # * @parent_class: The parent class. 1161s # * 1161s # * Class structure for #OrgProjectSignalingIfaceProxy. 1161s # */ 1161s # 1161s # struct _OrgProjectSignalingIfaceProxyPrivate 1161s # { 1161s # GData *qdata; 1161s # }; 1161s # 1161s # static void org_project_signaling_iface_proxy_iface_init (OrgProjectSignalingIfaceIface *iface); 1161s # 1161s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1161s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceProxy, org_project_signaling_iface_proxy, G_TYPE_DBUS_PROXY, 1161s # G_ADD_PRIVATE (OrgProjectSignalingIfaceProxy) 1161s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_proxy_iface_init)) 1161s # 1161s # #else 1161s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceProxy, org_project_signaling_iface_proxy, G_TYPE_DBUS_PROXY, 1161s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_proxy_iface_init)) 1161s # 1161s # #endif 1161s # static void 1161s # org_project_signaling_iface_proxy_finalize (GObject *object) 1161s # { 1161s # OrgProjectSignalingIfaceProxy *proxy = ORG_PROJECT_SIGNALING_IFACE_PROXY (object); 1161s # g_datalist_clear (&proxy->priv->qdata); 1161s # G_OBJECT_CLASS (org_project_signaling_iface_proxy_parent_class)->finalize (object); 1161s # } 1161s # 1161s # static void 1161s # org_project_signaling_iface_proxy_get_property (GObject *object G_GNUC_UNUSED, 1161s # guint prop_id G_GNUC_UNUSED, 1161s # GValue *value G_GNUC_UNUSED, 1161s # GParamSpec *pspec G_GNUC_UNUSED) 1161s # { 1161s # } 1161s # 1161s # static void 1161s # org_project_signaling_iface_proxy_set_property (GObject *object G_GNUC_UNUSED, 1161s # guint prop_id G_GNUC_UNUSED, 1161s # const GValue *value G_GNUC_UNUSED, 1161s # GParamSpec *pspec G_GNUC_UNUSED) 1161s # { 1161s # } 1161s # 1161s # static void 1161s # org_project_signaling_iface_proxy_g_signal (GDBusProxy *proxy, 1161s # const gchar *sender_name G_GNUC_UNUSED, 1161s # const gchar *signal_name, 1161s # GVariant *parameters) 1161s # { 1161s # _ExtendedGDBusSignalInfo *info; 1161s # GVariantIter iter; 1161s # GVariant *child; 1161s # GValue *paramv; 1161s # gsize num_params; 1161s # gsize n; 1161s # guint signal_id; 1161s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, signal_name); 1161s # if (info == NULL) 1161s # return; 1161s # num_params = g_variant_n_children (parameters); 1161s # paramv = g_new0 (GValue, num_params + 1); 1161s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_SIGNALING_IFACE); 1161s # g_value_set_object (¶mv[0], proxy); 1161s # g_variant_iter_init (&iter, parameters); 1161s # n = 1; 1161s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1161s # { 1161s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 1161s # if (arg_info->use_gvariant) 1161s # { 1161s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1161s # g_value_set_variant (¶mv[n], child); 1161s # n++; 1161s # } 1161s # else 1161s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1161s # g_variant_unref (child); 1161s # } 1161s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_SIGNALING_IFACE); 1161s # g_signal_emitv (paramv, signal_id, 0, NULL); 1161s # for (n = 0; n < num_params + 1; n++) 1161s # g_value_unset (¶mv[n]); 1161s # g_free (paramv); 1161s # } 1161s # 1161s # static void 1161s # org_project_signaling_iface_proxy_g_properties_changed (GDBusProxy *_proxy, 1161s # GVariant *changed_properties, 1161s # const gchar *const *invalidated_properties) 1161s # { 1161s # OrgProjectSignalingIfaceProxy *proxy = ORG_PROJECT_SIGNALING_IFACE_PROXY (_proxy); 1161s # guint n; 1161s # const gchar *key; 1161s # GVariantIter *iter; 1161s # _ExtendedGDBusPropertyInfo *info; 1161s # g_variant_get (changed_properties, "a{sv}", &iter); 1161s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 1161s # { 1161s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, key); 1161s # g_datalist_remove_data (&proxy->priv->qdata, key); 1161s # if (info != NULL) 1161s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1161s # } 1161s # g_variant_iter_free (iter); 1161s # for (n = 0; invalidated_properties[n] != NULL; n++) 1161s # { 1161s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, invalidated_properties[n]); 1161s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 1161s # if (info != NULL) 1161s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1161s # } 1161s # } 1161s # 1161s # static void 1161s # org_project_signaling_iface_proxy_init (OrgProjectSignalingIfaceProxy *proxy) 1161s # { 1161s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1161s # proxy->priv = org_project_signaling_iface_proxy_get_instance_private (proxy); 1161s # #else 1161s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_SIGNALING_IFACE_PROXY, OrgProjectSignalingIfaceProxyPrivate); 1161s # #endif 1161s # 1161s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_signaling_iface_interface_info ()); 1161s # } 1161s # 1161s # static void 1161s # org_project_signaling_iface_proxy_class_init (OrgProjectSignalingIfaceProxyClass *klass) 1161s # { 1161s # GObjectClass *gobject_class; 1161s # GDBusProxyClass *proxy_class; 1161s # 1161s # gobject_class = G_OBJECT_CLASS (klass); 1161s # gobject_class->finalize = org_project_signaling_iface_proxy_finalize; 1161s # gobject_class->get_property = org_project_signaling_iface_proxy_get_property; 1161s # gobject_class->set_property = org_project_signaling_iface_proxy_set_property; 1161s # 1161s # proxy_class = G_DBUS_PROXY_CLASS (klass); 1161s # proxy_class->g_signal = org_project_signaling_iface_proxy_g_signal; 1161s # proxy_class->g_properties_changed = org_project_signaling_iface_proxy_g_properties_changed; 1161s # 1161s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1161s # g_type_class_add_private (klass, sizeof (OrgProjectSignalingIfaceProxyPrivate)); 1161s # #endif 1161s # } 1161s # 1161s # static void 1161s # org_project_signaling_iface_proxy_iface_init (OrgProjectSignalingIfaceIface *iface G_GNUC_UNUSED) 1161s # { 1161s # } 1161s # 1161s # /** 1161s # * org_project_signaling_iface_proxy_new: 1161s # * @connection: A #GDBusConnection. 1161s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1161s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1161s # * @object_path: An object path. 1161s # * @cancellable: (nullable): A #GCancellable or %NULL. 1161s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1161s # * @user_data: User data to pass to @callback. 1161s # * 1161s # * Asynchronously creates a proxy for the D-Bus interface org.project.SignalingIface. See g_dbus_proxy_new() for more details. 1161s # * 1161s # * 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()). 1161s # * You can then call org_project_signaling_iface_proxy_new_finish() to get the result of the operation. 1161s # * 1161s # * See org_project_signaling_iface_proxy_new_sync() for the synchronous, blocking version of this constructor. 1161s # */ 1161s # void 1161s # org_project_signaling_iface_proxy_new ( 1161s # GDBusConnection *connection, 1161s # GDBusProxyFlags flags, 1161s # const gchar *name, 1161s # const gchar *object_path, 1161s # GCancellable *cancellable, 1161s # GAsyncReadyCallback callback, 1161s # gpointer user_data) 1161s # { 1161s # 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); 1161s # } 1161s # 1161s # /** 1161s # * org_project_signaling_iface_proxy_new_finish: 1161s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_signaling_iface_proxy_new(). 1161s # * @error: Return location for error or %NULL 1161s # * 1161s # * Finishes an operation started with org_project_signaling_iface_proxy_new(). 1161s # * 1161s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 1161s # */ 1161s # OrgProjectSignalingIface * 1161s # org_project_signaling_iface_proxy_new_finish ( 1161s # GAsyncResult *res, 1161s # GError **error) 1161s # { 1161s # GObject *ret; 1161s # GObject *source_object; 1161s # source_object = g_async_result_get_source_object (res); 1161s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1161s # g_object_unref (source_object); 1161s # if (ret != NULL) 1161s # return ORG_PROJECT_SIGNALING_IFACE (ret); 1161s # else 1161s # return NULL; 1161s # } 1161s # 1161s # /** 1161s # * org_project_signaling_iface_proxy_new_sync: 1161s # * @connection: A #GDBusConnection. 1161s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1161s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1161s # * @object_path: An object path. 1161s # * @cancellable: (nullable): A #GCancellable or %NULL. 1161s # * @error: Return location for error or %NULL 1161s # * 1161s # * Synchronously creates a proxy for the D-Bus interface org.project.SignalingIface. See g_dbus_proxy_new_sync() for more details. 1161s # * 1161s # * The calling thread is blocked until a reply is received. 1161s # * 1161s # * See org_project_signaling_iface_proxy_new() for the asynchronous version of this constructor. 1161s # * 1161s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 1161s # */ 1161s # OrgProjectSignalingIface * 1161s # org_project_signaling_iface_proxy_new_sync ( 1161s # GDBusConnection *connection, 1161s # GDBusProxyFlags flags, 1161s # const gchar *name, 1161s # const gchar *object_path, 1161s # GCancellable *cancellable, 1161s # GError **error) 1161s # { 1161s # GInitable *ret; 1161s # 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); 1161s # if (ret != NULL) 1161s # return ORG_PROJECT_SIGNALING_IFACE (ret); 1161s # else 1161s # return NULL; 1161s # } 1161s # 1161s # 1161s # /** 1161s # * org_project_signaling_iface_proxy_new_for_bus: 1161s # * @bus_type: A #GBusType. 1161s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1161s # * @name: A bus name (well-known or unique). 1161s # * @object_path: An object path. 1161s # * @cancellable: (nullable): A #GCancellable or %NULL. 1161s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1161s # * @user_data: User data to pass to @callback. 1161s # * 1161s # * Like org_project_signaling_iface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 1161s # * 1161s # * 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()). 1161s # * You can then call org_project_signaling_iface_proxy_new_for_bus_finish() to get the result of the operation. 1161s # * 1161s # * See org_project_signaling_iface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 1161s # */ 1161s # void 1161s # org_project_signaling_iface_proxy_new_for_bus ( 1161s # GBusType bus_type, 1161s # GDBusProxyFlags flags, 1161s # const gchar *name, 1161s # const gchar *object_path, 1161s # GCancellable *cancellable, 1161s # GAsyncReadyCallback callback, 1161s # gpointer user_data) 1161s # { 1161s # 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); 1161s # } 1161s # 1161s # /** 1161s # * org_project_signaling_iface_proxy_new_for_bus_finish: 1161s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_signaling_iface_proxy_new_for_bus(). 1161s # * @error: Return location for error or %NULL 1161s # * 1161s # * Finishes an operation started with org_project_signaling_iface_proxy_new_for_bus(). 1161s # * 1161s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 1161s # */ 1161s # OrgProjectSignalingIface * 1161s # org_project_signaling_iface_proxy_new_for_bus_finish ( 1161s # GAsyncResult *res, 1161s # GError **error) 1161s # { 1161s # GObject *ret; 1161s # GObject *source_object; 1161s # source_object = g_async_result_get_source_object (res); 1161s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1161s # g_object_unref (source_object); 1161s # if (ret != NULL) 1161s # return ORG_PROJECT_SIGNALING_IFACE (ret); 1161s # else 1161s # return NULL; 1161s # } 1161s # 1161s # /** 1161s # * org_project_signaling_iface_proxy_new_for_bus_sync: 1161s # * @bus_type: A #GBusType. 1161s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1161s # * @name: A bus name (well-known or unique). 1161s # * @object_path: An object path. 1161s # * @cancellable: (nullable): A #GCancellable or %NULL. 1161s # * @error: Return location for error or %NULL 1161s # * 1161s # * Like org_project_signaling_iface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 1161s # * 1161s # * The calling thread is blocked until a reply is received. 1161s # * 1161s # * See org_project_signaling_iface_proxy_new_for_bus() for the asynchronous version of this constructor. 1161s # * 1161s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 1161s # */ 1161s # OrgProjectSignalingIface * 1161s # org_project_signaling_iface_proxy_new_for_bus_sync ( 1161s # GBusType bus_type, 1161s # GDBusProxyFlags flags, 1161s # const gchar *name, 1161s # const gchar *object_path, 1161s # GCancellable *cancellable, 1161s # GError **error) 1161s # { 1161s # GInitable *ret; 1161s # 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); 1161s # if (ret != NULL) 1161s # return ORG_PROJECT_SIGNALING_IFACE (ret); 1161s # else 1161s # return NULL; 1161s # } 1161s # 1161s # 1161s # /* ------------------------------------------------------------------------ */ 1161s # 1161s # /** 1161s # * OrgProjectSignalingIfaceSkeleton: 1161s # * 1161s # * The #OrgProjectSignalingIfaceSkeleton structure contains only private data and should only be accessed using the provided API. 1161s # */ 1161s # 1161s # /** 1161s # * OrgProjectSignalingIfaceSkeletonClass: 1161s # * @parent_class: The parent class. 1161s # * 1161s # * Class structure for #OrgProjectSignalingIfaceSkeleton. 1161s # */ 1161s # 1161s # struct _OrgProjectSignalingIfaceSkeletonPrivate 1161s # { 1161s # GValue *properties; 1161s # GList *changed_properties; 1161s # GSource *changed_properties_idle_source; 1161s # GMainContext *context; 1161s # GMutex lock; 1161s # }; 1161s # 1161s # static void 1161s # _org_project_signaling_iface_skeleton_handle_method_call ( 1161s # GDBusConnection *connection G_GNUC_UNUSED, 1161s # const gchar *sender G_GNUC_UNUSED, 1161s # const gchar *object_path G_GNUC_UNUSED, 1161s # const gchar *interface_name, 1161s # const gchar *method_name, 1161s # GVariant *parameters, 1161s # GDBusMethodInvocation *invocation, 1161s # gpointer user_data) 1161s # { 1161s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 1161s # _ExtendedGDBusMethodInfo *info; 1161s # GVariantIter iter; 1161s # GVariant *child; 1161s # GValue *paramv; 1161s # gsize num_params; 1161s # guint num_extra; 1161s # gsize n; 1161s # guint signal_id; 1161s # GValue return_value = G_VALUE_INIT; 1161s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 1161s # g_assert (info != NULL); 1161s # num_params = g_variant_n_children (parameters); 1161s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 1161s # n = 0; 1161s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_SIGNALING_IFACE); 1161s # g_value_set_object (¶mv[n++], skeleton); 1161s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 1161s # g_value_set_object (¶mv[n++], invocation); 1161s # if (info->pass_fdlist) 1161s # { 1161s # #ifdef G_OS_UNIX 1161s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 1161s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 1161s # #else 1161s # g_assert_not_reached (); 1161s # #endif 1161s # } 1161s # g_variant_iter_init (&iter, parameters); 1161s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1161s # { 1161s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 1161s # if (arg_info->use_gvariant) 1161s # { 1161s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1161s # g_value_set_variant (¶mv[n], child); 1161s # n++; 1161s # } 1161s # else 1161s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1161s # g_variant_unref (child); 1161s # } 1161s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_SIGNALING_IFACE); 1161s # g_value_init (&return_value, G_TYPE_BOOLEAN); 1161s # g_signal_emitv (paramv, signal_id, 0, &return_value); 1161s # if (!g_value_get_boolean (&return_value)) 1161s # 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); 1161s # g_value_unset (&return_value); 1161s # for (n = 0; n < num_params + num_extra; n++) 1161s # g_value_unset (¶mv[n]); 1161s # g_free (paramv); 1161s # } 1161s # 1161s # static GVariant * 1161s # _org_project_signaling_iface_skeleton_handle_get_property ( 1161s # GDBusConnection *connection G_GNUC_UNUSED, 1161s # const gchar *sender G_GNUC_UNUSED, 1161s # const gchar *object_path G_GNUC_UNUSED, 1161s # const gchar *interface_name G_GNUC_UNUSED, 1161s # const gchar *property_name, 1161s # GError **error, 1161s # gpointer user_data) 1161s # { 1161s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 1161s # GValue value = G_VALUE_INIT; 1161s # GParamSpec *pspec; 1161s # _ExtendedGDBusPropertyInfo *info; 1161s # GVariant *ret; 1161s # ret = NULL; 1161s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, property_name); 1161s # g_assert (info != NULL); 1161s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1161s # if (pspec == NULL) 1161s # { 1161s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1161s # } 1161s # else 1161s # { 1161s # g_value_init (&value, pspec->value_type); 1161s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1161s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 1161s # g_value_unset (&value); 1161s # } 1161s # return ret; 1161s # } 1161s # 1161s # static gboolean 1161s # _org_project_signaling_iface_skeleton_handle_set_property ( 1161s # GDBusConnection *connection G_GNUC_UNUSED, 1161s # const gchar *sender G_GNUC_UNUSED, 1161s # const gchar *object_path G_GNUC_UNUSED, 1161s # const gchar *interface_name G_GNUC_UNUSED, 1161s # const gchar *property_name, 1161s # GVariant *variant, 1161s # GError **error, 1161s # gpointer user_data) 1161s # { 1161s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 1161s # GValue value = G_VALUE_INIT; 1161s # GParamSpec *pspec; 1161s # _ExtendedGDBusPropertyInfo *info; 1161s # gboolean ret; 1161s # ret = FALSE; 1161s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, property_name); 1161s # g_assert (info != NULL); 1161s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1161s # if (pspec == NULL) 1161s # { 1161s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1161s # } 1161s # else 1161s # { 1161s # if (info->use_gvariant) 1161s # g_value_set_variant (&value, variant); 1161s # else 1161s # g_dbus_gvariant_to_gvalue (variant, &value); 1161s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1161s # g_value_unset (&value); 1161s # ret = TRUE; 1161s # } 1161s # return ret; 1161s # } 1161s # 1161s # static const GDBusInterfaceVTable _org_project_signaling_iface_skeleton_vtable = 1161s # { 1161s # _org_project_signaling_iface_skeleton_handle_method_call, 1161s # _org_project_signaling_iface_skeleton_handle_get_property, 1161s # _org_project_signaling_iface_skeleton_handle_set_property, 1161s # {NULL} 1161s # }; 1161s # 1161s # static GDBusInterfaceInfo * 1161s # org_project_signaling_iface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1161s # { 1161s # return org_project_signaling_iface_interface_info (); 1161s # } 1161s # 1161s # static GDBusInterfaceVTable * 1161s # org_project_signaling_iface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1161s # { 1161s # return (GDBusInterfaceVTable *) &_org_project_signaling_iface_skeleton_vtable; 1161s # } 1161s # 1161s # static GVariant * 1161s # org_project_signaling_iface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 1161s # { 1161s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (_skeleton); 1161s # 1161s # GVariantBuilder builder; 1161s # guint n; 1161s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 1161s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 1161s # #else 1161s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 1161s # #endif 1161s # if (_org_project_signaling_iface_interface_info.parent_struct.properties == NULL) 1161s # goto out; 1161s # for (n = 0; _org_project_signaling_iface_interface_info.parent_struct.properties[n] != NULL; n++) 1161s # { 1161s # GDBusPropertyInfo *info = _org_project_signaling_iface_interface_info.parent_struct.properties[n]; 1161s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 1161s # { 1161s # GVariant *value; 1161s # 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); 1161s # if (value != NULL) 1161s # { 1161s # g_variant_take_ref (value); 1161s # g_variant_builder_add (&builder, "{sv}", info->name, value); 1161s # g_variant_unref (value); 1161s # } 1161s # } 1161s # } 1161s # out: 1161s # return g_variant_builder_end (&builder); 1161s # } 1161s # 1161s # static void 1161s # org_project_signaling_iface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 1161s # { 1161s # } 1161s # 1161s # static void 1161s # _org_project_signaling_iface_on_signal_simple_signal ( 1161s # OrgProjectSignalingIface *object) 1161s # { 1161s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 1161s # 1161s # GList *connections, *l; 1161s # GVariant *signal_variant; 1161s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 1161s # 1161s # signal_variant = g_variant_ref_sink (g_variant_new ("()")); 1161s # for (l = connections; l != NULL; l = l->next) 1161s # { 1161s # GDBusConnection *connection = l->data; 1161s # g_dbus_connection_emit_signal (connection, 1161s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SimpleSignal", 1161s # signal_variant, NULL); 1161s # } 1161s # g_variant_unref (signal_variant); 1161s # g_list_free_full (connections, g_object_unref); 1161s # } 1161s # 1161s # static void 1161s # _org_project_signaling_iface_on_signal_single_arg_signal_q ( 1161s # OrgProjectSignalingIface *object, 1161s # guint16 arg_arg_q) 1161s # { 1161s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 1161s # 1161s # GList *connections, *l; 1161s # GVariant *signal_variant; 1161s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 1161s # 1161s # signal_variant = g_variant_ref_sink (g_variant_new ("(q)", 1161s # arg_arg_q)); 1161s # for (l = connections; l != NULL; l = l->next) 1161s # { 1161s # GDBusConnection *connection = l->data; 1161s # g_dbus_connection_emit_signal (connection, 1161s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SingleArgSignalQ", 1161s # signal_variant, NULL); 1161s # } 1161s # g_variant_unref (signal_variant); 1161s # g_list_free_full (connections, g_object_unref); 1161s # } 1161s # 1161s # static void org_project_signaling_iface_skeleton_iface_init (OrgProjectSignalingIfaceIface *iface); 1161s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1161s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceSkeleton, org_project_signaling_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1161s # G_ADD_PRIVATE (OrgProjectSignalingIfaceSkeleton) 1161s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_skeleton_iface_init)) 1161s # 1161s # #else 1161s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceSkeleton, org_project_signaling_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1161s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_skeleton_iface_init)) 1161s # 1161s # #endif 1161s # static void 1161s # org_project_signaling_iface_skeleton_finalize (GObject *object) 1161s # { 1161s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 1161s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 1161s # if (skeleton->priv->changed_properties_idle_source != NULL) 1161s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 1161s # g_main_context_unref (skeleton->priv->context); 1161s # g_mutex_clear (&skeleton->priv->lock); 1161s # G_OBJECT_CLASS (org_project_signaling_iface_skeleton_parent_class)->finalize (object); 1161s # } 1161s # 1161s # static void 1161s # org_project_signaling_iface_skeleton_init (OrgProjectSignalingIfaceSkeleton *skeleton) 1161s # { 1161s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1161s # skeleton->priv = org_project_signaling_iface_skeleton_get_instance_private (skeleton); 1161s # #else 1161s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_SIGNALING_IFACE_SKELETON, OrgProjectSignalingIfaceSkeletonPrivate); 1161s # #endif 1161s # 1161s # g_mutex_init (&skeleton->priv->lock); 1161s # skeleton->priv->context = g_main_context_ref_thread_default (); 1161s # } 1161s # 1161s # static void 1161s # org_project_signaling_iface_skeleton_class_init (OrgProjectSignalingIfaceSkeletonClass *klass) 1161s # { 1161s # GObjectClass *gobject_class; 1161s # GDBusInterfaceSkeletonClass *skeleton_class; 1161s # 1161s # gobject_class = G_OBJECT_CLASS (klass); 1161s # gobject_class->finalize = org_project_signaling_iface_skeleton_finalize; 1161s # 1161s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 1161s # skeleton_class->get_info = org_project_signaling_iface_skeleton_dbus_interface_get_info; 1161s # skeleton_class->get_properties = org_project_signaling_iface_skeleton_dbus_interface_get_properties; 1161s # skeleton_class->flush = org_project_signaling_iface_skeleton_dbus_interface_flush; 1161s # skeleton_class->get_vtable = org_project_signaling_iface_skeleton_dbus_interface_get_vtable; 1161s # 1161s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1161s # g_type_class_add_private (klass, sizeof (OrgProjectSignalingIfaceSkeletonPrivate)); 1161s # #endif 1161s # } 1161s # 1161s # static void 1161s # org_project_signaling_iface_skeleton_iface_init (OrgProjectSignalingIfaceIface *iface) 1161s # { 1161s # iface->simple_signal = _org_project_signaling_iface_on_signal_simple_signal; 1161s # iface->single_arg_signal_q = _org_project_signaling_iface_on_signal_single_arg_signal_q; 1161s # } 1161s # 1161s # /** 1161s # * org_project_signaling_iface_skeleton_new: 1161s # * 1161s # * Creates a skeleton object for the D-Bus interface org.project.SignalingIface. 1161s # * 1161s # * Returns: (transfer full) (type OrgProjectSignalingIfaceSkeleton): The skeleton object. 1161s # */ 1161s # OrgProjectSignalingIface * 1161s # org_project_signaling_iface_skeleton_new (void) 1161s # { 1161s # return ORG_PROJECT_SIGNALING_IFACE (g_object_new (TYPE_ORG_PROJECT_SIGNALING_IFACE_SKELETON, NULL)); 1161s # } 1161s # Error: 1161s # 1161s # /tmp/tmpjwrvmpd2/tmprhe75dh9.xml: 1161s # 1161s # 1161s # 1161s # 1161s # 1161s # 1161s # 1161s # 1161s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpjwrvmpd2/tmprhe75dh9.xml', '--output', '-', '--body'] 1161s # Return code: 0 1161s # Output: 1161s # /* 1161s # * This file is generated by gdbus-codegen, do not modify it. 1161s # * 1161s # * The license of this code is the same as for the D-Bus interface description 1161s # * it was derived from. Note that it links to GLib, so must comply with the 1161s # * LGPL linking clauses. 1161s # */ 1161s # 1161s # #ifdef HAVE_CONFIG_H 1161s # # include "config.h" 1161s # #endif 1161s # 1161s # #include 1161s # #ifdef G_OS_UNIX 1161s # # include 1161s # #endif 1161s # 1161s # #ifdef G_ENABLE_DEBUG 1161s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 1161s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 1161s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 1161s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 1161s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 1161s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 1161s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 1161s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 1161s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 1161s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 1161s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 1161s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 1161s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 1161s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 1161s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 1161s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 1161s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 1161s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 1161s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 1161s # #else /* !G_ENABLE_DEBUG */ 1161s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 1161s # * Do not access GValues directly in your code. Instead, use the 1161s # * g_value_get_*() functions 1161s # */ 1161s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 1161s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 1161s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 1161s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 1161s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 1161s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 1161s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 1161s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 1161s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 1161s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 1161s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 1161s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 1161s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 1161s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 1161s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 1161s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 1161s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 1161s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 1161s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 1161s # #endif /* !G_ENABLE_DEBUG */ 1161s # 1161s # typedef struct 1161s # { 1161s # GDBusArgInfo parent_struct; 1161s # gboolean use_gvariant; 1161s # } _ExtendedGDBusArgInfo; 1161s # 1161s # typedef struct 1161s # { 1161s # GDBusMethodInfo parent_struct; 1161s # const gchar *signal_name; 1161s # gboolean pass_fdlist; 1161s # } _ExtendedGDBusMethodInfo; 1161s # 1161s # typedef struct 1161s # { 1161s # GDBusSignalInfo parent_struct; 1161s # const gchar *signal_name; 1161s # } _ExtendedGDBusSignalInfo; 1161s # 1161s # typedef struct 1161s # { 1161s # GDBusPropertyInfo parent_struct; 1161s # const gchar *hyphen_name; 1161s # guint use_gvariant : 1; 1161s # guint emits_changed_signal : 1; 1161s # } _ExtendedGDBusPropertyInfo; 1161s # 1161s # typedef struct 1161s # { 1161s # GDBusInterfaceInfo parent_struct; 1161s # const gchar *hyphen_name; 1161s # } _ExtendedGDBusInterfaceInfo; 1161s # 1161s # typedef struct 1161s # { 1161s # const _ExtendedGDBusPropertyInfo *info; 1161s # guint prop_id; 1161s # GValue orig_value; /* the value before the change */ 1161s # } ChangedProperty; 1161s # 1161s # static void 1161s # _changed_property_free (ChangedProperty *data) 1161s # { 1161s # g_value_unset (&data->orig_value); 1161s # g_free (data); 1161s # } 1161s # 1161s # static gboolean 1161s # _g_strv_equal0 (gchar **a, gchar **b) 1161s # { 1161s # gboolean ret = FALSE; 1161s # guint n; 1161s # if (a == NULL && b == NULL) 1161s # { 1161s # ret = TRUE; 1161s # goto out; 1161s # } 1161s # if (a == NULL || b == NULL) 1161s # goto out; 1161s # if (g_strv_length (a) != g_strv_length (b)) 1161s # goto out; 1161s # for (n = 0; a[n] != NULL; n++) 1161s # if (g_strcmp0 (a[n], b[n]) != 0) 1161s # goto out; 1161s # ret = TRUE; 1161s # out: 1161s # return ret; 1161s # } 1161s # 1161s # static gboolean 1161s # _g_variant_equal0 (GVariant *a, GVariant *b) 1161s # { 1161s # gboolean ret = FALSE; 1161s # if (a == NULL && b == NULL) 1161s # { 1161s # ret = TRUE; 1161s # goto out; 1161s # } 1161s # if (a == NULL || b == NULL) 1161s # goto out; 1161s # ret = g_variant_equal (a, b); 1161s # out: 1161s # return ret; 1161s # } 1161s # 1161s # G_GNUC_UNUSED static gboolean 1161s # _g_value_equal (const GValue *a, const GValue *b) 1161s # { 1161s # gboolean ret = FALSE; 1161s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 1161s # switch (G_VALUE_TYPE (a)) 1161s # { 1161s # case G_TYPE_BOOLEAN: 1161s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 1161s # break; 1161s # case G_TYPE_UCHAR: 1161s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 1161s # break; 1161s # case G_TYPE_INT: 1161s # ret = (g_value_get_int (a) == g_value_get_int (b)); 1161s # break; 1161s # case G_TYPE_UINT: 1161s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 1161s # break; 1161s # case G_TYPE_INT64: 1161s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 1161s # break; 1161s # case G_TYPE_UINT64: 1161s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 1161s # break; 1161s # case G_TYPE_DOUBLE: 1161s # { 1161s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 1161s # gdouble da = g_value_get_double (a); 1161s # gdouble db = g_value_get_double (b); 1161s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 1161s # } 1161s # break; 1161s # case G_TYPE_STRING: 1161s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 1161s # break; 1161s # case G_TYPE_VARIANT: 1161s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 1161s # break; 1161s # default: 1161s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 1161s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 1161s # else 1161s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 1161s # break; 1161s # } 1161s # return ret; 1161s # } 1161s # 1161s # /* ------------------------------------------------------------------------ 1161s # * Code for interface org.project.SignalingIface 1161s # * ------------------------------------------------------------------------ 1161s # */ 1161s # 1161s # /** 1161s # * SECTION:OrgProjectSignalingIface 1161s # * @title: OrgProjectSignalingIface 1161s # * @short_description: Generated C code for the org.project.SignalingIface D-Bus interface 1161s # * 1161s # * This section contains code for working with the org.project.SignalingIface D-Bus interface in C. 1161s # */ 1161s # 1161s # enum 1161s # { 1161s # _ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL, 1161s # _ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_I, 1161s # }; 1161s # 1161s # static unsigned _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[2] = { 0 }; 1161s # 1161s # /* ---- Introspection data for org.project.SignalingIface ---- */ 1161s # 1161s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_simple_signal = 1161s # { 1161s # { 1161s # -1, 1161s # (gchar *) "SimpleSignal", 1161s # NULL, 1161s # NULL 1161s # }, 1161s # "simple-signal" 1161s # }; 1161s # 1161s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_single_arg_signal_i_ARG_arg_i = 1161s # { 1161s # { 1161s # -1, 1161s # (gchar *) "arg_i", 1161s # (gchar *) "i", 1161s # NULL 1161s # }, 1161s # FALSE 1161s # }; 1161s # 1161s # static const GDBusArgInfo * const _org_project_signaling_iface_signal_info_single_arg_signal_i_ARG_pointers[] = 1161s # { 1161s # &_org_project_signaling_iface_signal_info_single_arg_signal_i_ARG_arg_i.parent_struct, 1161s # NULL 1161s # }; 1161s # 1161s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_single_arg_signal_i = 1161s # { 1161s # { 1161s # -1, 1161s # (gchar *) "SingleArgSignalI", 1161s # (GDBusArgInfo **) &_org_project_signaling_iface_signal_info_single_arg_signal_i_ARG_pointers, 1161s # NULL 1161s # }, 1161s # "single-arg-signal-i" 1161s # }; 1161s # 1161s # static const GDBusSignalInfo * const _org_project_signaling_iface_signal_info_pointers[] = 1161s # { 1161s # &_org_project_signaling_iface_signal_info_simple_signal.parent_struct, 1161s # &_org_project_signaling_iface_signal_info_single_arg_signal_i.parent_struct, 1161s # NULL 1161s # }; 1161s # 1161s # static const _ExtendedGDBusInterfaceInfo _org_project_signaling_iface_interface_info = 1161s # { 1161s # { 1161s # -1, 1161s # (gchar *) "org.project.SignalingIface", 1161s # NULL, 1161s # (GDBusSignalInfo **) &_org_project_signaling_iface_signal_info_pointers, 1161s # NULL, 1161s # NULL 1161s # }, 1161s # "org-project-signaling-iface", 1161s # }; 1161s # 1161s # 1161s # /** 1161s # * org_project_signaling_iface_interface_info: 1161s # * 1161s # * Gets a machine-readable description of the org.project.SignalingIface D-Bus interface. 1161s # * 1161s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 1161s # */ 1161s # GDBusInterfaceInfo * 1161s # org_project_signaling_iface_interface_info (void) 1161s # { 1161s # return (GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct; 1161s # } 1161s # 1161s # /** 1161s # * org_project_signaling_iface_override_properties: 1161s # * @klass: The class structure for a #GObject derived class. 1161s # * @property_id_begin: The property id to assign to the first overridden property. 1161s # * 1161s # * Overrides all #GObject properties in the #OrgProjectSignalingIface interface for a concrete class. 1161s # * The properties are overridden in the order they are defined. 1161s # * 1161s # * Returns: The last property id. 1161s # */ 1161s # guint 1161s # org_project_signaling_iface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 1161s # { 1161s # return property_id_begin - 1; 1161s # } 1161s # 1161s # 1161s # inline static void 1161s # org_project_signaling_iface_signal_marshal_simple_signal ( 1161s # GClosure *closure, 1161s # GValue *return_value, 1161s # unsigned int n_param_values, 1161s # const GValue *param_values, 1161s # void *invocation_hint, 1161s # void *marshal_data) 1161s # { 1161s # g_cclosure_marshal_VOID__VOID (closure, 1161s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1161s # } 1161s # 1161s # inline static void 1161s # org_project_signaling_iface_signal_marshal_single_arg_signal_i ( 1161s # GClosure *closure, 1161s # GValue *return_value, 1161s # unsigned int n_param_values, 1161s # const GValue *param_values, 1161s # void *invocation_hint, 1161s # void *marshal_data) 1161s # { 1161s # g_cclosure_marshal_VOID__INT (closure, 1161s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1161s # } 1161s # 1161s # 1161s # /** 1161s # * OrgProjectSignalingIface: 1161s # * 1161s # * Abstract interface type for the D-Bus interface org.project.SignalingIface. 1161s # */ 1161s # 1161s # /** 1161s # * OrgProjectSignalingIfaceIface: 1161s # * @parent_iface: The parent interface. 1161s # * @simple_signal: Handler for the #OrgProjectSignalingIface::simple-signal signal. 1161s # * @single_arg_signal_i: Handler for the #OrgProjectSignalingIface::single-arg-signal-i signal. 1161s # * 1161s # * Virtual table for the D-Bus interface org.project.SignalingIface. 1161s # */ 1161s # 1161s # typedef OrgProjectSignalingIfaceIface OrgProjectSignalingIfaceInterface; 1161s # G_DEFINE_INTERFACE (OrgProjectSignalingIface, org_project_signaling_iface, G_TYPE_OBJECT) 1161s # 1161s # static void 1161s # org_project_signaling_iface_default_init (OrgProjectSignalingIfaceIface *iface) 1161s # { 1161s # /* GObject signals for received D-Bus signals: */ 1161s # /** 1161s # * OrgProjectSignalingIface::simple-signal: 1161s # * @object: A #OrgProjectSignalingIface. 1161s # * 1161s # * On the client-side, this signal is emitted whenever the D-Bus signal "SimpleSignal" is received. 1161s # * 1161s # * 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. 1161s # */ 1161s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL] = 1161s # g_signal_new ("simple-signal", 1161s # G_TYPE_FROM_INTERFACE (iface), 1161s # G_SIGNAL_RUN_LAST, 1161s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, simple_signal), 1161s # NULL, 1161s # NULL, 1161s # org_project_signaling_iface_signal_marshal_simple_signal, 1161s # G_TYPE_NONE, 1161s # 0); 1161s # 1161s # /** 1161s # * OrgProjectSignalingIface::single-arg-signal-i: 1161s # * @object: A #OrgProjectSignalingIface. 1161s # * @arg_arg_i: Argument. 1161s # * 1161s # * On the client-side, this signal is emitted whenever the D-Bus signal "SingleArgSignalI" is received. 1161s # * 1161s # * 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. 1161s # */ 1161s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_I] = 1161s # g_signal_new ("single-arg-signal-i", 1161s # G_TYPE_FROM_INTERFACE (iface), 1161s # G_SIGNAL_RUN_LAST, 1161s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, single_arg_signal_i), 1161s # NULL, 1161s # NULL, 1161s # org_project_signaling_iface_signal_marshal_single_arg_signal_i, 1161s # G_TYPE_NONE, 1161s # 1, G_TYPE_INT); 1161s # 1161s # } 1161s # 1161s # /** 1161s # * org_project_signaling_iface_emit_simple_signal: 1161s # * @object: A #OrgProjectSignalingIface. 1161s # * 1161s # * Emits the "SimpleSignal" D-Bus signal. 1161s # */ 1161s # void 1161s # org_project_signaling_iface_emit_simple_signal ( 1161s # OrgProjectSignalingIface *object) 1161s # { 1161s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL], 0); 1161s # } 1161s # 1161s # /** 1161s # * org_project_signaling_iface_emit_single_arg_signal_i: 1161s # * @object: A #OrgProjectSignalingIface. 1161s # * @arg_arg_i: Argument to pass with the signal. 1161s # * 1161s # * Emits the "SingleArgSignalI" D-Bus signal. 1161s # */ 1161s # void 1161s # org_project_signaling_iface_emit_single_arg_signal_i ( 1161s # OrgProjectSignalingIface *object, 1161s # gint arg_arg_i) 1161s # { 1161s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_I], 0, arg_arg_i); 1161s # } 1161s # 1161s # /* ------------------------------------------------------------------------ */ 1161s # 1161s # /** 1161s # * OrgProjectSignalingIfaceProxy: 1161s # * 1161s # * The #OrgProjectSignalingIfaceProxy structure contains only private data and should only be accessed using the provided API. 1161s # */ 1161s # 1161s # /** 1161s # * OrgProjectSignalingIfaceProxyClass: 1161s # * @parent_class: The parent class. 1161s # * 1161s # * Class structure for #OrgProjectSignalingIfaceProxy. 1161s # */ 1161s # 1161s # struct _OrgProjectSignalingIfaceProxyPrivate 1161s # { 1161s # GData *qdata; 1161s # }; 1161s # 1161s # static void org_project_signaling_iface_proxy_iface_init (OrgProjectSignalingIfaceIface *iface); 1161s # 1161s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1161s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceProxy, org_project_signaling_iface_proxy, G_TYPE_DBUS_PROXY, 1161s # G_ADD_PRIVATE (OrgProjectSignalingIfaceProxy) 1161s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_proxy_iface_init)) 1161s # 1161s # #else 1161s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceProxy, org_project_signaling_iface_proxy, G_TYPE_DBUS_PROXY, 1161s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_proxy_iface_init)) 1161s # 1161s # #endif 1161s # static void 1161s # org_project_signaling_iface_proxy_finalize (GObject *object) 1161s # { 1161s # OrgProjectSignalingIfaceProxy *proxy = ORG_PROJECT_SIGNALING_IFACE_PROXY (object); 1161s # g_datalist_clear (&proxy->priv->qdata); 1161s # G_OBJECT_CLASS (org_project_signaling_iface_proxy_parent_class)->finalize (object); 1161s # } 1161s # 1161s # static void 1161s # org_project_signaling_iface_proxy_get_property (GObject *object G_GNUC_UNUSED, 1161s # guint prop_id G_GNUC_UNUSED, 1161s # GValue *value G_GNUC_UNUSED, 1161s # GParamSpec *pspec G_GNUC_UNUSED) 1161s # { 1161s # } 1161s # 1161s # static void 1161s # org_project_signaling_iface_proxy_set_property (GObject *object G_GNUC_UNUSED, 1161s # guint prop_id G_GNUC_UNUSED, 1161s # const GValue *value G_GNUC_UNUSED, 1161s # GParamSpec *pspec G_GNUC_UNUSED) 1161s # { 1161s # } 1161s # 1161s # static void 1161s # org_project_signaling_iface_proxy_g_signal (GDBusProxy *proxy, 1161s # const gchar *sender_name G_GNUC_UNUSED, 1161s # const gchar *signal_name, 1161s # GVariant *parameters) 1161s # { 1161s # _ExtendedGDBusSignalInfo *info; 1161s # GVariantIter iter; 1161s # GVariant *child; 1161s # GValue *paramv; 1161s # gsize num_params; 1161s # gsize n; 1161s # guint signal_id; 1161s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, signal_name); 1161s # if (info == NULL) 1161s # return; 1161s # num_params = g_variant_n_children (parameters); 1161s # paramv = g_new0 (GValue, num_params + 1); 1161s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_SIGNALING_IFACE); 1161s # g_value_set_object (¶mv[0], proxy); 1161s # g_variant_iter_init (&iter, parameters); 1161s # n = 1; 1161s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1161s # { 1161s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 1161s # if (arg_info->use_gvariant) 1161s # { 1161s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1161s # g_value_set_variant (¶mv[n], child); 1161s # n++; 1161s # } 1161s # else 1161s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1161s # g_variant_unref (child); 1161s # } 1161s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_SIGNALING_IFACE); 1161s # g_signal_emitv (paramv, signal_id, 0, NULL); 1161s # for (n = 0; n < num_params + 1; n++) 1161s # g_value_unset (¶mv[n]); 1161s # g_free (paramv); 1161s # } 1161s # 1161s # static void 1161s # org_project_signaling_iface_proxy_g_properties_changed (GDBusProxy *_proxy, 1161s # GVariant *changed_properties, 1161s # const gchar *const *invalidated_properties) 1161s # { 1161s # OrgProjectSignalingIfaceProxy *proxy = ORG_PROJECT_SIGNALING_IFACE_PROXY (_proxy); 1161s # guint n; 1161s # const gchar *key; 1161s # GVariantIter *iter; 1161s # _ExtendedGDBusPropertyInfo *info; 1161s # g_variant_get (changed_properties, "a{sv}", &iter); 1161s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 1161s # { 1161s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, key); 1161s # g_datalist_remove_data (&proxy->priv->qdata, key); 1161s # if (info != NULL) 1161s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1161s # } 1161s # g_variant_iter_free (iter); 1161s # for (n = 0; invalidated_properties[n] != NULL; n++) 1161s # { 1161s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, invalidated_properties[n]); 1161s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 1161s # if (info != NULL) 1161s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1161s # } 1161s # } 1161s # 1161s # static void 1161s # org_project_signaling_iface_proxy_init (OrgProjectSignalingIfaceProxy *proxy) 1161s # { 1161s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1161s # proxy->priv = org_project_signaling_iface_proxy_get_instance_private (proxy); 1161s # #else 1161s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_SIGNALING_IFACE_PROXY, OrgProjectSignalingIfaceProxyPrivate); 1161s # #endif 1161s # 1161s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_signaling_iface_interface_info ()); 1161s # } 1161s # 1161s # static void 1161s # org_project_signaling_iface_proxy_class_init (OrgProjectSignalingIfaceProxyClass *klass) 1161s # { 1161s # GObjectClass *gobject_class; 1161s # GDBusProxyClass *proxy_class; 1161s # 1161s # gobject_class = G_OBJECT_CLASS (klass); 1161s # gobject_class->finalize = org_project_signaling_iface_proxy_finalize; 1161s # gobject_class->get_property = org_project_signaling_iface_proxy_get_property; 1161s # gobject_class->set_property = org_project_signaling_iface_proxy_set_property; 1161s # 1161s # proxy_class = G_DBUS_PROXY_CLASS (klass); 1161s # proxy_class->g_signal = org_project_signaling_iface_proxy_g_signal; 1161s # proxy_class->g_properties_changed = org_project_signaling_iface_proxy_g_properties_changed; 1161s # 1161s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1161s # g_type_class_add_private (klass, sizeof (OrgProjectSignalingIfaceProxyPrivate)); 1161s # #endif 1161s # } 1161s # 1161s # static void 1161s # org_project_signaling_iface_proxy_iface_init (OrgProjectSignalingIfaceIface *iface G_GNUC_UNUSED) 1161s # { 1161s # } 1161s # 1161s # /** 1161s # * org_project_signaling_iface_proxy_new: 1161s # * @connection: A #GDBusConnection. 1161s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1161s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1161s # * @object_path: An object path. 1161s # * @cancellable: (nullable): A #GCancellable or %NULL. 1161s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1161s # * @user_data: User data to pass to @callback. 1161s # * 1161s # * Asynchronously creates a proxy for the D-Bus interface org.project.SignalingIface. See g_dbus_proxy_new() for more details. 1161s # * 1161s # * 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()). 1161s # * You can then call org_project_signaling_iface_proxy_new_finish() to get the result of the operation. 1161s # * 1161s # * See org_project_signaling_iface_proxy_new_sync() for the synchronous, blocking version of this constructor. 1161s # */ 1161s # void 1161s # org_project_signaling_iface_proxy_new ( 1161s # GDBusConnection *connection, 1161s # GDBusProxyFlags flags, 1161s # const gchar *name, 1161s # const gchar *object_path, 1161s # GCancellable *cancellable, 1161s # GAsyncReadyCallback callback, 1161s # gpointer user_data) 1161s # { 1161s # 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); 1161s # } 1161s # 1161s # /** 1161s # * org_project_signaling_iface_proxy_new_finish: 1161s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_signaling_iface_proxy_new(). 1161s # * @error: Return location for error or %NULL 1161s # * 1161s # * Finishes an operation started with org_project_signaling_iface_proxy_new(). 1161s # * 1161s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 1161s # */ 1161s # OrgProjectSignalingIface * 1161s # org_project_signaling_iface_proxy_new_finish ( 1161s # GAsyncResult *res, 1161s # GError **error) 1161s # { 1161s # GObject *ret; 1161s # GObject *source_object; 1161s # source_object = g_async_result_get_source_object (res); 1161s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1161s # g_object_unref (source_object); 1161s # if (ret != NULL) 1161s # return ORG_PROJECT_SIGNALING_IFACE (ret); 1161s # else 1161s # return NULL; 1161s # } 1161s # 1161s # /** 1161s # * org_project_signaling_iface_proxy_new_sync: 1161s # * @connection: A #GDBusConnection. 1161s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1161s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1161s # * @object_path: An object path. 1161s # * @cancellable: (nullable): A #GCancellable or %NULL. 1161s # * @error: Return location for error or %NULL 1161s # * 1161s # * Synchronously creates a proxy for the D-Bus interface org.project.SignalingIface. See g_dbus_proxy_new_sync() for more details. 1161s # * 1161s # * The calling thread is blocked until a reply is received. 1161s # * 1161s # * See org_project_signaling_iface_proxy_new() for the asynchronous version of this constructor. 1161s # * 1161s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 1161s # */ 1161s # OrgProjectSignalingIface * 1161s # org_project_signaling_iface_proxy_new_sync ( 1161s # GDBusConnection *connection, 1161s # GDBusProxyFlags flags, 1161s # const gchar *name, 1161s # const gchar *object_path, 1161s # GCancellable *cancellable, 1161s # GError **error) 1161s # { 1161s # GInitable *ret; 1161s # 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); 1161s # if (ret != NULL) 1161s # return ORG_PROJECT_SIGNALING_IFACE (ret); 1161s # else 1161s # return NULL; 1161s # } 1161s # 1161s # 1161s # /** 1161s # * org_project_signaling_iface_proxy_new_for_bus: 1161s # * @bus_type: A #GBusType. 1161s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1161s # * @name: A bus name (well-known or unique). 1161s # * @object_path: An object path. 1161s # * @cancellable: (nullable): A #GCancellable or %NULL. 1161s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1161s # * @user_data: User data to pass to @callback. 1161s # * 1161s # * Like org_project_signaling_iface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 1161s # * 1161s # * 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()). 1161s # * You can then call org_project_signaling_iface_proxy_new_for_bus_finish() to get the result of the operation. 1161s # * 1161s # * See org_project_signaling_iface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 1161s # */ 1161s # void 1161s # org_project_signaling_iface_proxy_new_for_bus ( 1161s # GBusType bus_type, 1161s # GDBusProxyFlags flags, 1161s # const gchar *name, 1161s # const gchar *object_path, 1161s # GCancellable *cancellable, 1161s # GAsyncReadyCallback callback, 1161s # gpointer user_data) 1161s # { 1161s # 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); 1161s # } 1161s # 1161s # /** 1161s # * org_project_signaling_iface_proxy_new_for_bus_finish: 1161s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_signaling_iface_proxy_new_for_bus(). 1161s # * @error: Return location for error or %NULL 1161s # * 1161s # * Finishes an operation started with org_project_signaling_iface_proxy_new_for_bus(). 1161s # * 1161s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 1161s # */ 1161s # OrgProjectSignalingIface * 1161s # org_project_signaling_iface_proxy_new_for_bus_finish ( 1161s # GAsyncResult *res, 1161s # GError **error) 1161s # { 1161s # GObject *ret; 1161s # GObject *source_object; 1161s # source_object = g_async_result_get_source_object (res); 1161s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1161s # g_object_unref (source_object); 1161s # if (ret != NULL) 1161s # return ORG_PROJECT_SIGNALING_IFACE (ret); 1161s # else 1161s # return NULL; 1161s # } 1161s # 1161s # /** 1161s # * org_project_signaling_iface_proxy_new_for_bus_sync: 1161s # * @bus_type: A #GBusType. 1161s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1161s # * @name: A bus name (well-known or unique). 1161s # * @object_path: An object path. 1161s # * @cancellable: (nullable): A #GCancellable or %NULL. 1161s # * @error: Return location for error or %NULL 1161s # * 1161s # * Like org_project_signaling_iface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 1161s # * 1161s # * The calling thread is blocked until a reply is received. 1161s # * 1161s # * See org_project_signaling_iface_proxy_new_for_bus() for the asynchronous version of this constructor. 1161s # * 1161s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 1161s # */ 1161s # OrgProjectSignalingIface * 1161s # org_project_signaling_iface_proxy_new_for_bus_sync ( 1161s # GBusType bus_type, 1161s # GDBusProxyFlags flags, 1161s # const gchar *name, 1161s # const gchar *object_path, 1161s # GCancellable *cancellable, 1161s # GError **error) 1161s # { 1161s # GInitable *ret; 1161s # 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); 1161s # if (ret != NULL) 1161s # return ORG_PROJECT_SIGNALING_IFACE (ret); 1161s # else 1161s # return NULL; 1161s # } 1161s # 1161s # 1161s # /* ------------------------------------------------------------------------ */ 1161s # 1161s # /** 1161s # * OrgProjectSignalingIfaceSkeleton: 1161s # * 1161s # * The #OrgProjectSignalingIfaceSkeleton structure contains only private data and should only be accessed using the provided API. 1161s # */ 1161s # 1161s # /** 1161s # * OrgProjectSignalingIfaceSkeletonClass: 1161s # * @parent_class: The parent class. 1161s # * 1161s # * Class structure for #OrgProjectSignalingIfaceSkeleton. 1161s # */ 1161s # 1161s # struct _OrgProjectSignalingIfaceSkeletonPrivate 1161s # { 1161s # GValue *properties; 1161s # GList *changed_properties; 1161s # GSource *changed_properties_idle_source; 1161s # GMainContext *context; 1161s # GMutex lock; 1161s # }; 1161s # 1161s # static void 1161s # _org_project_signaling_iface_skeleton_handle_method_call ( 1161s # GDBusConnection *connection G_GNUC_UNUSED, 1161s # const gchar *sender G_GNUC_UNUSED, 1161s # const gchar *object_path G_GNUC_UNUSED, 1161s # const gchar *interface_name, 1161s # const gchar *method_name, 1161s # GVariant *parameters, 1161s # GDBusMethodInvocation *invocation, 1161s # gpointer user_data) 1161s # { 1161s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 1161s # _ExtendedGDBusMethodInfo *info; 1161s # GVariantIter iter; 1161s # GVariant *child; 1161s # GValue *paramv; 1161s # gsize num_params; 1161s # guint num_extra; 1161s # gsize n; 1161s # guint signal_id; 1161s # GValue return_value = G_VALUE_INIT; 1161s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 1161s # g_assert (info != NULL); 1161s # num_params = g_variant_n_children (parameters); 1161s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 1161s # n = 0; 1161s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_SIGNALING_IFACE); 1161s # g_value_set_object (¶mv[n++], skeleton); 1161s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 1161s # g_value_set_object (¶mv[n++], invocation); 1161s # if (info->pass_fdlist) 1161s # { 1161s # #ifdef G_OS_UNIX 1161s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 1161s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 1161s # #else 1161s # g_assert_not_reached (); 1161s # #endif 1161s # } 1161s # g_variant_iter_init (&iter, parameters); 1161s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1161s # { 1161s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 1161s # if (arg_info->use_gvariant) 1161s # { 1161s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1161s # g_value_set_variant (¶mv[n], child); 1161s # n++; 1161s # } 1161s # else 1161s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1161s # g_variant_unref (child); 1161s # } 1161s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_SIGNALING_IFACE); 1161s # g_value_init (&return_value, G_TYPE_BOOLEAN); 1161s # g_signal_emitv (paramv, signal_id, 0, &return_value); 1161s # if (!g_value_get_boolean (&return_value)) 1161s # 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); 1161s # g_value_unset (&return_value); 1161s # for (n = 0; n < num_params + num_extra; n++) 1161s # g_value_unset (¶mv[n]); 1161s # g_free (paramv); 1161s # } 1161s # 1161s # static GVariant * 1161s # _org_project_signaling_iface_skeleton_handle_get_property ( 1161s # GDBusConnection *connection G_GNUC_UNUSED, 1161s # const gchar *sender G_GNUC_UNUSED, 1161s # const gchar *object_path G_GNUC_UNUSED, 1161s # const gchar *interface_name G_GNUC_UNUSED, 1161s # const gchar *property_name, 1161s # GError **error, 1161s # gpointer user_data) 1161s # { 1161s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 1161s # GValue value = G_VALUE_INIT; 1161s # GParamSpec *pspec; 1161s # _ExtendedGDBusPropertyInfo *info; 1161s # GVariant *ret; 1161s # ret = NULL; 1161s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, property_name); 1161s # g_assert (info != NULL); 1161s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1161s # if (pspec == NULL) 1161s # { 1161s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1161s # } 1161s # else 1161s # { 1161s # g_value_init (&value, pspec->value_type); 1161s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1161s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 1161s # g_value_unset (&value); 1161s # } 1161s # return ret; 1161s # } 1161s # 1161s # static gboolean 1161s # _org_project_signaling_iface_skeleton_handle_set_property ( 1161s # GDBusConnection *connection G_GNUC_UNUSED, 1161s # const gchar *sender G_GNUC_UNUSED, 1161s # const gchar *object_path G_GNUC_UNUSED, 1161s # const gchar *interface_name G_GNUC_UNUSED, 1161s # const gchar *property_name, 1161s # GVariant *variant, 1161s # GError **error, 1161s # gpointer user_data) 1161s # { 1161s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 1161s # GValue value = G_VALUE_INIT; 1161s # GParamSpec *pspec; 1161s # _ExtendedGDBusPropertyInfo *info; 1161s # gboolean ret; 1161s # ret = FALSE; 1161s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, property_name); 1161s # g_assert (info != NULL); 1161s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1161s # if (pspec == NULL) 1161s # { 1161s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1161s # } 1161s # else 1161s # { 1161s # if (info->use_gvariant) 1161s # g_value_set_variant (&value, variant); 1161s # else 1161s # g_dbus_gvariant_to_gvalue (variant, &value); 1161s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1161s # g_value_unset (&value); 1161s # ret = TRUE; 1161s # } 1161s # return ret; 1161s # } 1161s # 1161s # static const GDBusInterfaceVTable _org_project_signaling_iface_skeleton_vtable = 1161s # { 1161s # _org_project_signaling_iface_skeleton_handle_method_call, 1161s # _org_project_signaling_iface_skeleton_handle_get_property, 1161s # _org_project_signaling_iface_skeleton_handle_set_property, 1161s # {NULL} 1161s # }; 1161s # 1161s # static GDBusInterfaceInfo * 1161s # org_project_signaling_iface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1161s # { 1161s # return org_project_signaling_iface_interface_info (); 1161s # } 1161s # 1161s # static GDBusInterfaceVTable * 1161s # org_project_signaling_iface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1161s # { 1161s # return (GDBusInterfaceVTable *) &_org_project_signaling_iface_skeleton_vtable; 1161s # } 1161s # 1161s # static GVariant * 1161s # org_project_signaling_iface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 1161s # { 1161s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (_skeleton); 1161s # 1161s # GVariantBuilder builder; 1161s # guint n; 1161s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 1161s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 1161s # #else 1161s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 1161s # #endif 1161s # if (_org_project_signaling_iface_interface_info.parent_struct.properties == NULL) 1161s # goto out; 1161s # for (n = 0; _org_project_signaling_iface_interface_info.parent_struct.properties[n] != NULL; n++) 1161s # { 1161s # GDBusPropertyInfo *info = _org_project_signaling_iface_interface_info.parent_struct.properties[n]; 1161s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 1161s # { 1161s # GVariant *value; 1161s # 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); 1161s # if (value != NULL) 1161s # { 1161s # g_variant_take_ref (value); 1161s # g_variant_builder_add (&builder, "{sv}", info->name, value); 1161s # g_variant_unref (value); 1161s # } 1161s # } 1161s # } 1161s # out: 1161s # return g_variant_builder_end (&builder); 1161s # } 1161s # 1161s # static void 1161s # org_project_signaling_iface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 1161s # { 1161s # } 1161s # 1161s # static void 1161s # _org_project_signaling_iface_on_signal_simple_signal ( 1161s # OrgProjectSignalingIface *object) 1161s # { 1161s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 1161s # 1161s # GList *connections, *l; 1161s # GVariant *signal_variant; 1161s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 1161s # 1161s # signal_variant = g_variant_ref_sink (g_variant_new ("()")); 1161s # for (l = connections; l != NULL; l = l->next) 1161s # { 1161s # GDBusConnection *connection = l->data; 1161s # g_dbus_connection_emit_signal (connection, 1161s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SimpleSignal", 1161s # signal_variant, NULL); 1161s # } 1161s # g_variant_unref (signal_variant); 1161s # g_list_free_full (connections, g_object_unref); 1161s # } 1161s # 1161s # static void 1161s # _org_project_signaling_iface_on_signal_single_arg_signal_i ( 1161s # OrgProjectSignalingIface *object, 1161s # gint arg_arg_i) 1161s # { 1161s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 1161s # 1161s # GList *connections, *l; 1161s # GVariant *signal_variant; 1161s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 1161s # 1161s # signal_variant = g_variant_ref_sink (g_variant_new ("(i)", 1161s # arg_arg_i)); 1161s # for (l = connections; l != NULL; l = l->next) 1161s # { 1161s # GDBusConnection *connection = l->data; 1161s # g_dbus_connection_emit_signal (connection, 1161s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SingleArgSignalI", 1161s # signal_variant, NULL); 1161s # } 1161s # g_variant_unref (signal_variant); 1161s # g_list_free_full (connections, g_object_unref); 1161s # } 1161s # 1161s # static void org_project_signaling_iface_skeleton_iface_init (OrgProjectSignalingIfaceIface *iface); 1161s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1161s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceSkeleton, org_project_signaling_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1161s # G_ADD_PRIVATE (OrgProjectSignalingIfaceSkeleton) 1161s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_skeleton_iface_init)) 1161s # 1161s # #else 1161s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceSkeleton, org_project_signaling_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1161s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_skeleton_iface_init)) 1161s # 1161s # #endif 1161s # static void 1161s # org_project_signaling_iface_skeleton_finalize (GObject *object) 1161s # { 1161s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 1161s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 1161s # if (skeleton->priv->changed_properties_idle_source != NULL) 1161s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 1161s # g_main_context_unref (skeleton->priv->context); 1161s # g_mutex_clear (&skeleton->priv->lock); 1161s # G_OBJECT_CLASS (org_project_signaling_iface_skeleton_parent_class)->finalize (object); 1161s # } 1161s # 1161s # static void 1161s # org_project_signaling_iface_skeleton_init (OrgProjectSignalingIfaceSkeleton *skeleton) 1161s # { 1161s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1161s # skeleton->priv = org_project_signaling_iface_skeleton_get_instance_private (skeleton); 1161s # #else 1161s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_SIGNALING_IFACE_SKELETON, OrgProjectSignalingIfaceSkeletonPrivate); 1161s # #endif 1161s # 1161s # g_mutex_init (&skeleton->priv->lock); 1161s # skeleton->priv->context = g_main_context_ref_thread_default (); 1161s # } 1161s # 1161s # static void 1161s # org_project_signaling_iface_skeleton_class_init (OrgProjectSignalingIfaceSkeletonClass *klass) 1161s # { 1161s # GObjectClass *gobject_class; 1161s # GDBusInterfaceSkeletonClass *skeleton_class; 1161s # 1161s # gobject_class = G_OBJECT_CLASS (klass); 1161s # gobject_class->finalize = org_project_signaling_iface_skeleton_finalize; 1161s # 1161s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 1161s # skeleton_class->get_info = org_project_signaling_iface_skeleton_dbus_interface_get_info; 1161s # skeleton_class->get_properties = org_project_signaling_iface_skeleton_dbus_interface_get_properties; 1161s # skeleton_class->flush = org_project_signaling_iface_skeleton_dbus_interface_flush; 1161s # skeleton_class->get_vtable = org_project_signaling_iface_skeleton_dbus_interface_get_vtable; 1161s # 1161s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1161s # g_type_class_add_private (klass, sizeof (OrgProjectSignalingIfaceSkeletonPrivate)); 1161s # #endif 1161s # } 1161s # 1161s # static void 1161s # org_project_signaling_iface_skeleton_iface_init (OrgProjectSignalingIfaceIface *iface) 1161s # { 1161s # iface->simple_signal = _org_project_signaling_iface_on_signal_simple_signal; 1161s # iface->single_arg_signal_i = _org_project_signaling_iface_on_signal_single_arg_signal_i; 1161s # } 1161s # 1161s # /** 1161s # * org_project_signaling_iface_skeleton_new: 1161s # * 1161s # * Creates a skeleton object for the D-Bus interface org.project.SignalingIface. 1161s # * 1161s # * Returns: (transfer full) (type OrgProjectSignalingIfaceSkeleton): The skeleton object. 1161s # */ 1161s # OrgProjectSignalingIface * 1161s # org_project_signaling_iface_skeleton_new (void) 1161s # { 1161s # return ORG_PROJECT_SIGNALING_IFACE (g_object_new (TYPE_ORG_PROJECT_SIGNALING_IFACE_SKELETON, NULL)); 1161s # } 1161s # Error: 1161s # 1161s # /tmp/tmpjwrvmpd2/tmpfgqerj_2.xml: 1161s # 1161s # 1161s # 1161s # 1161s # 1161s # 1161s # 1161s # 1161s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpjwrvmpd2/tmpfgqerj_2.xml', '--output', '-', '--body'] 1161s # Return code: 0 1161s # Output: 1161s # /* 1161s # * This file is generated by gdbus-codegen, do not modify it. 1161s # * 1161s # * The license of this code is the same as for the D-Bus interface description 1161s # * it was derived from. Note that it links to GLib, so must comply with the 1161s # * LGPL linking clauses. 1161s # */ 1161s # 1161s # #ifdef HAVE_CONFIG_H 1161s # # include "config.h" 1161s # #endif 1161s # 1161s # #include 1161s # #ifdef G_OS_UNIX 1161s # # include 1161s # #endif 1161s # 1161s # #ifdef G_ENABLE_DEBUG 1161s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 1161s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 1161s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 1161s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 1161s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 1161s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 1161s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 1161s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 1161s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 1161s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 1161s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 1161s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 1161s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 1161s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 1161s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 1161s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 1161s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 1161s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 1161s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 1161s # #else /* !G_ENABLE_DEBUG */ 1161s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 1161s # * Do not access GValues directly in your code. Instead, use the 1161s # * g_value_get_*() functions 1161s # */ 1161s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 1161s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 1161s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 1161s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 1161s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 1161s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 1161s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 1161s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 1161s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 1161s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 1161s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 1161s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 1161s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 1161s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 1161s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 1161s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 1161s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 1161s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 1161s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 1161s # #endif /* !G_ENABLE_DEBUG */ 1161s # 1161s # typedef struct 1161s # { 1161s # GDBusArgInfo parent_struct; 1161s # gboolean use_gvariant; 1161s # } _ExtendedGDBusArgInfo; 1161s # 1161s # typedef struct 1161s # { 1161s # GDBusMethodInfo parent_struct; 1161s # const gchar *signal_name; 1161s # gboolean pass_fdlist; 1161s # } _ExtendedGDBusMethodInfo; 1161s # 1161s # typedef struct 1161s # { 1161s # GDBusSignalInfo parent_struct; 1161s # const gchar *signal_name; 1161s # } _ExtendedGDBusSignalInfo; 1161s # 1161s # typedef struct 1161s # { 1161s # GDBusPropertyInfo parent_struct; 1161s # const gchar *hyphen_name; 1161s # guint use_gvariant : 1; 1161s # guint emits_changed_signal : 1; 1161s # } _ExtendedGDBusPropertyInfo; 1161s # 1161s # typedef struct 1161s # { 1161s # GDBusInterfaceInfo parent_struct; 1161s # const gchar *hyphen_name; 1161s # } _ExtendedGDBusInterfaceInfo; 1161s # 1161s # typedef struct 1161s # { 1161s # const _ExtendedGDBusPropertyInfo *info; 1161s # guint prop_id; 1161s # GValue orig_value; /* the value before the change */ 1161s # } ChangedProperty; 1161s # 1161s # static void 1161s # _changed_property_free (ChangedProperty *data) 1161s # { 1161s # g_value_unset (&data->orig_value); 1161s # g_free (data); 1161s # } 1161s # 1161s # static gboolean 1161s # _g_strv_equal0 (gchar **a, gchar **b) 1161s # { 1161s # gboolean ret = FALSE; 1161s # guint n; 1161s # if (a == NULL && b == NULL) 1161s # { 1161s # ret = TRUE; 1161s # goto out; 1161s # } 1161s # if (a == NULL || b == NULL) 1161s # goto out; 1161s # if (g_strv_length (a) != g_strv_length (b)) 1161s # goto out; 1161s # for (n = 0; a[n] != NULL; n++) 1161s # if (g_strcmp0 (a[n], b[n]) != 0) 1161s # goto out; 1161s # ret = TRUE; 1161s # out: 1161s # return ret; 1161s # } 1161s # 1161s # static gboolean 1161s # _g_variant_equal0 (GVariant *a, GVariant *b) 1161s # { 1161s # gboolean ret = FALSE; 1161s # if (a == NULL && b == NULL) 1161s # { 1161s # ret = TRUE; 1161s # goto out; 1161s # } 1161s # if (a == NULL || b == NULL) 1161s # goto out; 1161s # ret = g_variant_equal (a, b); 1161s # out: 1161s # return ret; 1161s # } 1161s # 1161s # G_GNUC_UNUSED static gboolean 1161s # _g_value_equal (const GValue *a, const GValue *b) 1161s # { 1161s # gboolean ret = FALSE; 1161s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 1161s # switch (G_VALUE_TYPE (a)) 1161s # { 1161s # case G_TYPE_BOOLEAN: 1161s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 1161s # break; 1161s # case G_TYPE_UCHAR: 1161s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 1161s # break; 1161s # case G_TYPE_INT: 1161s # ret = (g_value_get_int (a) == g_value_get_int (b)); 1161s # break; 1161s # case G_TYPE_UINT: 1161s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 1161s # break; 1161s # case G_TYPE_INT64: 1161s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 1161s # break; 1161s # case G_TYPE_UINT64: 1161s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 1161s # break; 1161s # case G_TYPE_DOUBLE: 1161s # { 1161s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 1161s # gdouble da = g_value_get_double (a); 1161s # gdouble db = g_value_get_double (b); 1161s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 1161s # } 1161s # break; 1161s # case G_TYPE_STRING: 1161s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 1161s # break; 1161s # case G_TYPE_VARIANT: 1161s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 1161s # break; 1161s # default: 1161s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 1161s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 1161s # else 1161s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 1161s # break; 1161s # } 1161s # return ret; 1161s # } 1161s # 1161s # /* ------------------------------------------------------------------------ 1161s # * Code for interface org.project.SignalingIface 1161s # * ------------------------------------------------------------------------ 1161s # */ 1161s # 1161s # /** 1161s # * SECTION:OrgProjectSignalingIface 1161s # * @title: OrgProjectSignalingIface 1161s # * @short_description: Generated C code for the org.project.SignalingIface D-Bus interface 1161s # * 1161s # * This section contains code for working with the org.project.SignalingIface D-Bus interface in C. 1161s # */ 1161s # 1161s # enum 1161s # { 1161s # _ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL, 1161s # _ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_U, 1161s # }; 1161s # 1161s # static unsigned _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[2] = { 0 }; 1161s # 1161s # /* ---- Introspection data for org.project.SignalingIface ---- */ 1161s # 1161s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_simple_signal = 1161s # { 1161s # { 1161s # -1, 1161s # (gchar *) "SimpleSignal", 1161s # NULL, 1161s # NULL 1161s # }, 1161s # "simple-signal" 1161s # }; 1161s # 1161s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_single_arg_signal_u_ARG_arg_u = 1161s # { 1161s # { 1161s # -1, 1161s # (gchar *) "arg_u", 1161s # (gchar *) "u", 1161s # NULL 1161s # }, 1161s # FALSE 1161s # }; 1161s # 1161s # static const GDBusArgInfo * const _org_project_signaling_iface_signal_info_single_arg_signal_u_ARG_pointers[] = 1161s # { 1161s # &_org_project_signaling_iface_signal_info_single_arg_signal_u_ARG_arg_u.parent_struct, 1161s # NULL 1161s # }; 1161s # 1161s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_single_arg_signal_u = 1161s # { 1161s # { 1161s # -1, 1161s # (gchar *) "SingleArgSignalU", 1161s # (GDBusArgInfo **) &_org_project_signaling_iface_signal_info_single_arg_signal_u_ARG_pointers, 1161s # NULL 1161s # }, 1161s # "single-arg-signal-u" 1161s # }; 1161s # 1161s # static const GDBusSignalInfo * const _org_project_signaling_iface_signal_info_pointers[] = 1161s # { 1161s # &_org_project_signaling_iface_signal_info_simple_signal.parent_struct, 1161s # &_org_project_signaling_iface_signal_info_single_arg_signal_u.parent_struct, 1161s # NULL 1161s # }; 1161s # 1161s # static const _ExtendedGDBusInterfaceInfo _org_project_signaling_iface_interface_info = 1161s # { 1161s # { 1161s # -1, 1161s # (gchar *) "org.project.SignalingIface", 1161s # NULL, 1161s # (GDBusSignalInfo **) &_org_project_signaling_iface_signal_info_pointers, 1161s # NULL, 1161s # NULL 1161s # }, 1161s # "org-project-signaling-iface", 1161s # }; 1161s # 1161s # 1161s # /** 1161s # * org_project_signaling_iface_interface_info: 1161s # * 1161s # * Gets a machine-readable description of the org.project.SignalingIface D-Bus interface. 1161s # * 1161s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 1161s # */ 1161s # GDBusInterfaceInfo * 1161s # org_project_signaling_iface_interface_info (void) 1161s # { 1161s # return (GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct; 1161s # } 1161s # 1161s # /** 1161s # * org_project_signaling_iface_override_properties: 1161s # * @klass: The class structure for a #GObject derived class. 1161s # * @property_id_begin: The property id to assign to the first overridden property. 1161s # * 1161s # * Overrides all #GObject properties in the #OrgProjectSignalingIface interface for a concrete class. 1161s # * The properties are overridden in the order they are defined. 1161s # * 1161s # * Returns: The last property id. 1161s # */ 1161s # guint 1161s # org_project_signaling_iface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 1161s # { 1161s # return property_id_begin - 1; 1161s # } 1161s # 1161s # 1161s # inline static void 1161s # org_project_signaling_iface_signal_marshal_simple_signal ( 1161s # GClosure *closure, 1161s # GValue *return_value, 1161s # unsigned int n_param_values, 1161s # const GValue *param_values, 1161s # void *invocation_hint, 1161s # void *marshal_data) 1161s # { 1161s # g_cclosure_marshal_VOID__VOID (closure, 1161s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1161s # } 1161s # 1161s # inline static void 1161s # org_project_signaling_iface_signal_marshal_single_arg_signal_u ( 1161s # GClosure *closure, 1161s # GValue *return_value, 1161s # unsigned int n_param_values, 1161s # const GValue *param_values, 1161s # void *invocation_hint, 1161s # void *marshal_data) 1161s # { 1161s # g_cclosure_marshal_VOID__UINT (closure, 1161s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1161s # } 1161s # 1161s # 1161s # /** 1161s # * OrgProjectSignalingIface: 1161s # * 1161s # * Abstract interface type for the D-Bus interface org.project.SignalingIface. 1161s # */ 1161s # 1161s # /** 1161s # * OrgProjectSignalingIfaceIface: 1161s # * @parent_iface: The parent interface. 1161s # * @simple_signal: Handler for the #OrgProjectSignalingIface::simple-signal signal. 1161s # * @single_arg_signal_u: Handler for the #OrgProjectSignalingIface::single-arg-signal-u signal. 1161s # * 1161s # * Virtual table for the D-Bus interface org.project.SignalingIface. 1161s # */ 1161s # 1161s # typedef OrgProjectSignalingIfaceIface OrgProjectSignalingIfaceInterface; 1161s # G_DEFINE_INTERFACE (OrgProjectSignalingIface, org_project_signaling_iface, G_TYPE_OBJECT) 1161s # 1161s # static void 1161s # org_project_signaling_iface_default_init (OrgProjectSignalingIfaceIface *iface) 1161s # { 1161s # /* GObject signals for received D-Bus signals: */ 1161s # /** 1161s # * OrgProjectSignalingIface::simple-signal: 1161s # * @object: A #OrgProjectSignalingIface. 1161s # * 1161s # * On the client-side, this signal is emitted whenever the D-Bus signal "SimpleSignal" is received. 1161s # * 1161s # * 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. 1161s # */ 1161s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL] = 1161s # g_signal_new ("simple-signal", 1161s # G_TYPE_FROM_INTERFACE (iface), 1161s # G_SIGNAL_RUN_LAST, 1161s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, simple_signal), 1161s # NULL, 1161s # NULL, 1161s # org_project_signaling_iface_signal_marshal_simple_signal, 1161s # G_TYPE_NONE, 1161s # 0); 1161s # 1161s # /** 1161s # * OrgProjectSignalingIface::single-arg-signal-u: 1161s # * @object: A #OrgProjectSignalingIface. 1161s # * @arg_arg_u: Argument. 1161s # * 1161s # * On the client-side, this signal is emitted whenever the D-Bus signal "SingleArgSignalU" is received. 1161s # * 1161s # * 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. 1161s # */ 1161s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_U] = 1161s # g_signal_new ("single-arg-signal-u", 1161s # G_TYPE_FROM_INTERFACE (iface), 1161s # G_SIGNAL_RUN_LAST, 1161s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, single_arg_signal_u), 1161s # NULL, 1161s # NULL, 1161s # org_project_signaling_iface_signal_marshal_single_arg_signal_u, 1161s # G_TYPE_NONE, 1161s # 1, G_TYPE_UINT); 1161s # 1161s # } 1161s # 1161s # /** 1161s # * org_project_signaling_iface_emit_simple_signal: 1161s # * @object: A #OrgProjectSignalingIface. 1161s # * 1161s # * Emits the "SimpleSignal" D-Bus signal. 1161s # */ 1161s # void 1161s # org_project_signaling_iface_emit_simple_signal ( 1161s # OrgProjectSignalingIface *object) 1161s # { 1161s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL], 0); 1161s # } 1161s # 1161s # /** 1161s # * org_project_signaling_iface_emit_single_arg_signal_u: 1161s # * @object: A #OrgProjectSignalingIface. 1161s # * @arg_arg_u: Argument to pass with the signal. 1161s # * 1161s # * Emits the "SingleArgSignalU" D-Bus signal. 1161s # */ 1161s # void 1161s # org_project_signaling_iface_emit_single_arg_signal_u ( 1161s # OrgProjectSignalingIface *object, 1161s # guint arg_arg_u) 1161s # { 1161s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_U], 0, arg_arg_u); 1161s # } 1161s # 1161s # /* ------------------------------------------------------------------------ */ 1161s # 1161s # /** 1161s # * OrgProjectSignalingIfaceProxy: 1161s # * 1161s # * The #OrgProjectSignalingIfaceProxy structure contains only private data and should only be accessed using the provided API. 1161s # */ 1161s # 1161s # /** 1161s # * OrgProjectSignalingIfaceProxyClass: 1161s # * @parent_class: The parent class. 1161s # * 1161s # * Class structure for #OrgProjectSignalingIfaceProxy. 1161s # */ 1161s # 1161s # struct _OrgProjectSignalingIfaceProxyPrivate 1161s # { 1161s # GData *qdata; 1161s # }; 1161s # 1161s # static void org_project_signaling_iface_proxy_iface_init (OrgProjectSignalingIfaceIface *iface); 1161s # 1161s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1161s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceProxy, org_project_signaling_iface_proxy, G_TYPE_DBUS_PROXY, 1161s # G_ADD_PRIVATE (OrgProjectSignalingIfaceProxy) 1161s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_proxy_iface_init)) 1161s # 1161s # #else 1161s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceProxy, org_project_signaling_iface_proxy, G_TYPE_DBUS_PROXY, 1161s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_proxy_iface_init)) 1161s # 1161s # #endif 1161s # static void 1161s # org_project_signaling_iface_proxy_finalize (GObject *object) 1161s # { 1161s # OrgProjectSignalingIfaceProxy *proxy = ORG_PROJECT_SIGNALING_IFACE_PROXY (object); 1161s # g_datalist_clear (&proxy->priv->qdata); 1161s # G_OBJECT_CLASS (org_project_signaling_iface_proxy_parent_class)->finalize (object); 1161s # } 1161s # 1161s # static void 1161s # org_project_signaling_iface_proxy_get_property (GObject *object G_GNUC_UNUSED, 1161s # guint prop_id G_GNUC_UNUSED, 1161s # GValue *value G_GNUC_UNUSED, 1161s # GParamSpec *pspec G_GNUC_UNUSED) 1161s # { 1161s # } 1161s # 1161s # static void 1161s # org_project_signaling_iface_proxy_set_property (GObject *object G_GNUC_UNUSED, 1161s # guint prop_id G_GNUC_UNUSED, 1161s # const GValue *value G_GNUC_UNUSED, 1161s # GParamSpec *pspec G_GNUC_UNUSED) 1161s # { 1161s # } 1161s # 1161s # static void 1161s # org_project_signaling_iface_proxy_g_signal (GDBusProxy *proxy, 1161s # const gchar *sender_name G_GNUC_UNUSED, 1161s # const gchar *signal_name, 1161s # GVariant *parameters) 1161s # { 1161s # _ExtendedGDBusSignalInfo *info; 1161s # GVariantIter iter; 1161s # GVariant *child; 1161s # GValue *paramv; 1161s # gsize num_params; 1161s # gsize n; 1161s # guint signal_id; 1161s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, signal_name); 1161s # if (info == NULL) 1161s # return; 1161s # num_params = g_variant_n_children (parameters); 1161s # paramv = g_new0 (GValue, num_params + 1); 1161s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_SIGNALING_IFACE); 1161s # g_value_set_object (¶mv[0], proxy); 1161s # g_variant_iter_init (&iter, parameters); 1161s # n = 1; 1161s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1161s # { 1161s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 1161s # if (arg_info->use_gvariant) 1161s # { 1161s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1161s # g_value_set_variant (¶mv[n], child); 1161s # n++; 1161s # } 1161s # else 1161s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1161s # g_variant_unref (child); 1161s # } 1161s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_SIGNALING_IFACE); 1161s # g_signal_emitv (paramv, signal_id, 0, NULL); 1161s # for (n = 0; n < num_params + 1; n++) 1161s # g_value_unset (¶mv[n]); 1161s # g_free (paramv); 1161s # } 1161s # 1161s # static void 1161s # org_project_signaling_iface_proxy_g_properties_changed (GDBusProxy *_proxy, 1161s # GVariant *changed_properties, 1161s # const gchar *const *invalidated_properties) 1161s # { 1161s # OrgProjectSignalingIfaceProxy *proxy = ORG_PROJECT_SIGNALING_IFACE_PROXY (_proxy); 1161s # guint n; 1161s # const gchar *key; 1161s # GVariantIter *iter; 1161s # _ExtendedGDBusPropertyInfo *info; 1161s # g_variant_get (changed_properties, "a{sv}", &iter); 1161s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 1161s # { 1161s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, key); 1161s # g_datalist_remove_data (&proxy->priv->qdata, key); 1161s # if (info != NULL) 1161s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1161s # } 1161s # g_variant_iter_free (iter); 1161s # for (n = 0; invalidated_properties[n] != NULL; n++) 1161s # { 1161s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, invalidated_properties[n]); 1161s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 1161s # if (info != NULL) 1161s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1161s # } 1161s # } 1161s # 1161s # static void 1161s # org_project_signaling_iface_proxy_init (OrgProjectSignalingIfaceProxy *proxy) 1161s # { 1161s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1161s # proxy->priv = org_project_signaling_iface_proxy_get_instance_private (proxy); 1161s # #else 1161s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_SIGNALING_IFACE_PROXY, OrgProjectSignalingIfaceProxyPrivate); 1161s # #endif 1161s # 1161s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_signaling_iface_interface_info ()); 1161s # } 1161s # 1161s # static void 1161s # org_project_signaling_iface_proxy_class_init (OrgProjectSignalingIfaceProxyClass *klass) 1161s # { 1161s # GObjectClass *gobject_class; 1161s # GDBusProxyClass *proxy_class; 1161s # 1161s # gobject_class = G_OBJECT_CLASS (klass); 1161s # gobject_class->finalize = org_project_signaling_iface_proxy_finalize; 1161s # gobject_class->get_property = org_project_signaling_iface_proxy_get_property; 1161s # gobject_class->set_property = org_project_signaling_iface_proxy_set_property; 1161s # 1161s # proxy_class = G_DBUS_PROXY_CLASS (klass); 1161s # proxy_class->g_signal = org_project_signaling_iface_proxy_g_signal; 1161s # proxy_class->g_properties_changed = org_project_signaling_iface_proxy_g_properties_changed; 1161s # 1161s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1161s # g_type_class_add_private (klass, sizeof (OrgProjectSignalingIfaceProxyPrivate)); 1161s # #endif 1161s # } 1161s # 1161s # static void 1161s # org_project_signaling_iface_proxy_iface_init (OrgProjectSignalingIfaceIface *iface G_GNUC_UNUSED) 1161s # { 1161s # } 1161s # 1161s # /** 1161s # * org_project_signaling_iface_proxy_new: 1161s # * @connection: A #GDBusConnection. 1161s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1161s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1161s # * @object_path: An object path. 1161s # * @cancellable: (nullable): A #GCancellable or %NULL. 1161s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1161s # * @user_data: User data to pass to @callback. 1161s # * 1161s # * Asynchronously creates a proxy for the D-Bus interface org.project.SignalingIface. See g_dbus_proxy_new() for more details. 1161s # * 1161s # * 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()). 1161s # * You can then call org_project_signaling_iface_proxy_new_finish() to get the result of the operation. 1161s # * 1161s # * See org_project_signaling_iface_proxy_new_sync() for the synchronous, blocking version of this constructor. 1161s # */ 1161s # void 1161s # org_project_signaling_iface_proxy_new ( 1161s # GDBusConnection *connection, 1161s # GDBusProxyFlags flags, 1161s # const gchar *name, 1161s # const gchar *object_path, 1161s # GCancellable *cancellable, 1161s # GAsyncReadyCallback callback, 1161s # gpointer user_data) 1161s # { 1161s # 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); 1161s # } 1161s # 1161s # /** 1161s # * org_project_signaling_iface_proxy_new_finish: 1161s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_signaling_iface_proxy_new(). 1161s # * @error: Return location for error or %NULL 1161s # * 1161s # * Finishes an operation started with org_project_signaling_iface_proxy_new(). 1161s # * 1161s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 1161s # */ 1161s # OrgProjectSignalingIface * 1161s # org_project_signaling_iface_proxy_new_finish ( 1161s # GAsyncResult *res, 1161s # GError **error) 1161s # { 1161s # GObject *ret; 1161s # GObject *source_object; 1161s # source_object = g_async_result_get_source_object (res); 1161s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1161s # g_object_unref (source_object); 1161s # if (ret != NULL) 1161s # return ORG_PROJECT_SIGNALING_IFACE (ret); 1161s # else 1161s # return NULL; 1161s # } 1161s # 1161s # /** 1161s # * org_project_signaling_iface_proxy_new_sync: 1161s # * @connection: A #GDBusConnection. 1161s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1161s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1161s # * @object_path: An object path. 1161s # * @cancellable: (nullable): A #GCancellable or %NULL. 1161s # * @error: Return location for error or %NULL 1161s # * 1161s # * Synchronously creates a proxy for the D-Bus interface org.project.SignalingIface. See g_dbus_proxy_new_sync() for more details. 1161s # * 1161s # * The calling thread is blocked until a reply is received. 1161s # * 1161s # * See org_project_signaling_iface_proxy_new() for the asynchronous version of this constructor. 1161s # * 1161s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 1161s # */ 1161s # OrgProjectSignalingIface * 1161s # org_project_signaling_iface_proxy_new_sync ( 1161s # GDBusConnection *connection, 1161s # GDBusProxyFlags flags, 1161s # const gchar *name, 1161s # const gchar *object_path, 1161s # GCancellable *cancellable, 1161s # GError **error) 1161s # { 1161s # GInitable *ret; 1161s # 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); 1161s # if (ret != NULL) 1161s # return ORG_PROJECT_SIGNALING_IFACE (ret); 1161s # else 1161s # return NULL; 1161s # } 1161s # 1161s # 1161s # /** 1161s # * org_project_signaling_iface_proxy_new_for_bus: 1161s # * @bus_type: A #GBusType. 1161s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1161s # * @name: A bus name (well-known or unique). 1161s # * @object_path: An object path. 1161s # * @cancellable: (nullable): A #GCancellable or %NULL. 1161s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1161s # * @user_data: User data to pass to @callback. 1161s # * 1161s # * Like org_project_signaling_iface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 1161s # * 1161s # * 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()). 1161s # * You can then call org_project_signaling_iface_proxy_new_for_bus_finish() to get the result of the operation. 1161s # * 1161s # * See org_project_signaling_iface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 1161s # */ 1161s # void 1161s # org_project_signaling_iface_proxy_new_for_bus ( 1161s # GBusType bus_type, 1161s # GDBusProxyFlags flags, 1161s # const gchar *name, 1161s # const gchar *object_path, 1161s # GCancellable *cancellable, 1161s # GAsyncReadyCallback callback, 1161s # gpointer user_data) 1161s # { 1161s # 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); 1161s # } 1161s # 1161s # /** 1161s # * org_project_signaling_iface_proxy_new_for_bus_finish: 1161s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_signaling_iface_proxy_new_for_bus(). 1161s # * @error: Return location for error or %NULL 1161s # * 1161s # * Finishes an operation started with org_project_signaling_iface_proxy_new_for_bus(). 1161s # * 1161s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 1161s # */ 1161s # OrgProjectSignalingIface * 1161s # org_project_signaling_iface_proxy_new_for_bus_finish ( 1161s # GAsyncResult *res, 1161s # GError **error) 1161s # { 1161s # GObject *ret; 1161s # GObject *source_object; 1161s # source_object = g_async_result_get_source_object (res); 1161s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1161s # g_object_unref (source_object); 1161s # if (ret != NULL) 1161s # return ORG_PROJECT_SIGNALING_IFACE (ret); 1161s # else 1161s # return NULL; 1161s # } 1161s # 1161s # /** 1161s # * org_project_signaling_iface_proxy_new_for_bus_sync: 1161s # * @bus_type: A #GBusType. 1161s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1161s # * @name: A bus name (well-known or unique). 1161s # * @object_path: An object path. 1161s # * @cancellable: (nullable): A #GCancellable or %NULL. 1161s # * @error: Return location for error or %NULL 1161s # * 1161s # * Like org_project_signaling_iface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 1161s # * 1161s # * The calling thread is blocked until a reply is received. 1161s # * 1161s # * See org_project_signaling_iface_proxy_new_for_bus() for the asynchronous version of this constructor. 1161s # * 1161s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 1161s # */ 1161s # OrgProjectSignalingIface * 1161s # org_project_signaling_iface_proxy_new_for_bus_sync ( 1161s # GBusType bus_type, 1161s # GDBusProxyFlags flags, 1161s # const gchar *name, 1161s # const gchar *object_path, 1161s # GCancellable *cancellable, 1161s # GError **error) 1161s # { 1161s # GInitable *ret; 1161s # 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); 1161s # if (ret != NULL) 1161s # return ORG_PROJECT_SIGNALING_IFACE (ret); 1161s # else 1161s # return NULL; 1161s # } 1161s # 1161s # 1161s # /* ------------------------------------------------------------------------ */ 1161s # 1161s # /** 1161s # * OrgProjectSignalingIfaceSkeleton: 1161s # * 1161s # * The #OrgProjectSignalingIfaceSkeleton structure contains only private data and should only be accessed using the provided API. 1161s # */ 1161s # 1161s # /** 1161s # * OrgProjectSignalingIfaceSkeletonClass: 1161s # * @parent_class: The parent class. 1161s # * 1161s # * Class structure for #OrgProjectSignalingIfaceSkeleton. 1161s # */ 1161s # 1161s # struct _OrgProjectSignalingIfaceSkeletonPrivate 1161s # { 1161s # GValue *properties; 1161s # GList *changed_properties; 1161s # GSource *changed_properties_idle_source; 1161s # GMainContext *context; 1161s # GMutex lock; 1161s # }; 1161s # 1161s # static void 1161s # _org_project_signaling_iface_skeleton_handle_method_call ( 1161s # GDBusConnection *connection G_GNUC_UNUSED, 1161s # const gchar *sender G_GNUC_UNUSED, 1161s # const gchar *object_path G_GNUC_UNUSED, 1161s # const gchar *interface_name, 1161s # const gchar *method_name, 1161s # GVariant *parameters, 1161s # GDBusMethodInvocation *invocation, 1161s # gpointer user_data) 1161s # { 1161s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 1161s # _ExtendedGDBusMethodInfo *info; 1161s # GVariantIter iter; 1161s # GVariant *child; 1161s # GValue *paramv; 1161s # gsize num_params; 1161s # guint num_extra; 1161s # gsize n; 1161s # guint signal_id; 1161s # GValue return_value = G_VALUE_INIT; 1161s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 1161s # g_assert (info != NULL); 1161s # num_params = g_variant_n_children (parameters); 1161s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 1161s # n = 0; 1161s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_SIGNALING_IFACE); 1161s # g_value_set_object (¶mv[n++], skeleton); 1161s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 1161s # g_value_set_object (¶mv[n++], invocation); 1161s # if (info->pass_fdlist) 1161s # { 1161s # #ifdef G_OS_UNIX 1161s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 1161s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 1161s # #else 1161s # g_assert_not_reached (); 1161s # #endif 1161s # } 1161s # g_variant_iter_init (&iter, parameters); 1161s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1161s # { 1161s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 1161s # if (arg_info->use_gvariant) 1161s # { 1161s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1161s # g_value_set_variant (¶mv[n], child); 1161s # n++; 1161s # } 1161s # else 1161s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1161s # g_variant_unref (child); 1161s # } 1161s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_SIGNALING_IFACE); 1161s # g_value_init (&return_value, G_TYPE_BOOLEAN); 1161s # g_signal_emitv (paramv, signal_id, 0, &return_value); 1161s # if (!g_value_get_boolean (&return_value)) 1161s # 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); 1161s # g_value_unset (&return_value); 1161s # for (n = 0; n < num_params + num_extra; n++) 1161s # g_value_unset (¶mv[n]); 1161s # g_free (paramv); 1161s # } 1161s # 1161s # static GVariant * 1161s # _org_project_signaling_iface_skeleton_handle_get_property ( 1161s # GDBusConnection *connection G_GNUC_UNUSED, 1161s # const gchar *sender G_GNUC_UNUSED, 1161s # const gchar *object_path G_GNUC_UNUSED, 1161s # const gchar *interface_name G_GNUC_UNUSED, 1161s # const gchar *property_name, 1161s # GError **error, 1161s # gpointer user_data) 1161s # { 1161s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 1161s # GValue value = G_VALUE_INIT; 1161s # GParamSpec *pspec; 1161s # _ExtendedGDBusPropertyInfo *info; 1161s # GVariant *ret; 1161s # ret = NULL; 1161s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, property_name); 1161s # g_assert (info != NULL); 1161s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1161s # if (pspec == NULL) 1161s # { 1161s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1161s # } 1161s # else 1161s # { 1161s # g_value_init (&value, pspec->value_type); 1161s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1161s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 1161s # g_value_unset (&value); 1161s # } 1161s # return ret; 1161s # } 1161s # 1161s # static gboolean 1161s # _org_project_signaling_iface_skeleton_handle_set_property ( 1161s # GDBusConnection *connection G_GNUC_UNUSED, 1161s # const gchar *sender G_GNUC_UNUSED, 1161s # const gchar *object_path G_GNUC_UNUSED, 1161s # const gchar *interface_name G_GNUC_UNUSED, 1161s # const gchar *property_name, 1161s # GVariant *variant, 1161s # GError **error, 1161s # gpointer user_data) 1161s # { 1161s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 1161s # GValue value = G_VALUE_INIT; 1161s # GParamSpec *pspec; 1161s # _ExtendedGDBusPropertyInfo *info; 1161s # gboolean ret; 1161s # ret = FALSE; 1161s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, property_name); 1161s # g_assert (info != NULL); 1161s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1161s # if (pspec == NULL) 1161s # { 1161s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1161s # } 1161s # else 1161s # { 1161s # if (info->use_gvariant) 1161s # g_value_set_variant (&value, variant); 1161s # else 1161s # g_dbus_gvariant_to_gvalue (variant, &value); 1161s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1161s # g_value_unset (&value); 1161s # ret = TRUE; 1161s # } 1161s # return ret; 1161s # } 1161s # 1161s # static const GDBusInterfaceVTable _org_project_signaling_iface_skeleton_vtable = 1161s # { 1161s # _org_project_signaling_iface_skeleton_handle_method_call, 1161s # _org_project_signaling_iface_skeleton_handle_get_property, 1161s # _org_project_signaling_iface_skeleton_handle_set_property, 1161s # {NULL} 1161s # }; 1161s # 1161s # static GDBusInterfaceInfo * 1161s # org_project_signaling_iface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1161s # { 1161s # return org_project_signaling_iface_interface_info (); 1161s # } 1161s # 1161s # static GDBusInterfaceVTable * 1161s # org_project_signaling_iface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1161s # { 1161s # return (GDBusInterfaceVTable *) &_org_project_signaling_iface_skeleton_vtable; 1161s # } 1161s # 1161s # static GVariant * 1161s # org_project_signaling_iface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 1161s # { 1161s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (_skeleton); 1161s # 1161s # GVariantBuilder builder; 1161s # guint n; 1161s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 1161s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 1161s # #else 1161s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 1161s # #endif 1161s # if (_org_project_signaling_iface_interface_info.parent_struct.properties == NULL) 1161s # goto out; 1161s # for (n = 0; _org_project_signaling_iface_interface_info.parent_struct.properties[n] != NULL; n++) 1161s # { 1161s # GDBusPropertyInfo *info = _org_project_signaling_iface_interface_info.parent_struct.properties[n]; 1161s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 1161s # { 1161s # GVariant *value; 1161s # 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); 1161s # if (value != NULL) 1161s # { 1161s # g_variant_take_ref (value); 1161s # g_variant_builder_add (&builder, "{sv}", info->name, value); 1161s # g_variant_unref (value); 1161s # } 1161s # } 1161s # } 1161s # out: 1161s # return g_variant_builder_end (&builder); 1161s # } 1161s # 1161s # static void 1161s # org_project_signaling_iface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 1161s # { 1161s # } 1161s # 1161s # static void 1161s # _org_project_signaling_iface_on_signal_simple_signal ( 1161s # OrgProjectSignalingIface *object) 1161s # { 1161s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 1161s # 1161s # GList *connections, *l; 1161s # GVariant *signal_variant; 1161s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 1161s # 1161s # signal_variant = g_variant_ref_sink (g_variant_new ("()")); 1161s # for (l = connections; l != NULL; l = l->next) 1161s # { 1161s # GDBusConnection *connection = l->data; 1161s # g_dbus_connection_emit_signal (connection, 1161s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SimpleSignal", 1161s # signal_variant, NULL); 1161s # } 1161s # g_variant_unref (signal_variant); 1161s # g_list_free_full (connections, g_object_unref); 1161s # } 1161s # 1161s # static void 1161s # _org_project_signaling_iface_on_signal_single_arg_signal_u ( 1161s # OrgProjectSignalingIface *object, 1161s # guint arg_arg_u) 1161s # { 1161s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 1161s # 1161s # GList *connections, *l; 1161s # GVariant *signal_variant; 1161s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 1161s # 1161s # signal_variant = g_variant_ref_sink (g_variant_new ("(u)", 1161s # arg_arg_u)); 1161s # for (l = connections; l != NULL; l = l->next) 1161s # { 1161s # GDBusConnection *connection = l->data; 1161s # g_dbus_connection_emit_signal (connection, 1161s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SingleArgSignalU", 1161s # signal_variant, NULL); 1161s # } 1161s # g_variant_unref (signal_variant); 1161s # g_list_free_full (connections, g_object_unref); 1161s # } 1161s # 1161s # static void org_project_signaling_iface_skeleton_iface_init (OrgProjectSignalingIfaceIface *iface); 1161s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1161s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceSkeleton, org_project_signaling_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1161s # G_ADD_PRIVATE (OrgProjectSignalingIfaceSkeleton) 1161s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_skeleton_iface_init)) 1161s # 1161s # #else 1161s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceSkeleton, org_project_signaling_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1161s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_skeleton_iface_init)) 1161s # 1161s # #endif 1161s # static void 1161s # org_project_signaling_iface_skeleton_finalize (GObject *object) 1161s # { 1161s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 1161s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 1161s # if (skeleton->priv->changed_properties_idle_source != NULL) 1161s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 1161s # g_main_context_unref (skeleton->priv->context); 1161s # g_mutex_clear (&skeleton->priv->lock); 1161s # G_OBJECT_CLASS (org_project_signaling_iface_skeleton_parent_class)->finalize (object); 1161s # } 1161s # 1161s # static void 1161s # org_project_signaling_iface_skeleton_init (OrgProjectSignalingIfaceSkeleton *skeleton) 1161s # { 1161s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1161s # skeleton->priv = org_project_signaling_iface_skeleton_get_instance_private (skeleton); 1161s # #else 1161s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_SIGNALING_IFACE_SKELETON, OrgProjectSignalingIfaceSkeletonPrivate); 1161s # #endif 1161s # 1161s # g_mutex_init (&skeleton->priv->lock); 1161s # skeleton->priv->context = g_main_context_ref_thread_default (); 1161s # } 1161s # 1161s # static void 1161s # org_project_signaling_iface_skeleton_class_init (OrgProjectSignalingIfaceSkeletonClass *klass) 1161s # { 1161s # GObjectClass *gobject_class; 1161s # GDBusInterfaceSkeletonClass *skeleton_class; 1161s # 1161s # gobject_class = G_OBJECT_CLASS (klass); 1161s # gobject_class->finalize = org_project_signaling_iface_skeleton_finalize; 1161s # 1161s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 1161s # skeleton_class->get_info = org_project_signaling_iface_skeleton_dbus_interface_get_info; 1161s # skeleton_class->get_properties = org_project_signaling_iface_skeleton_dbus_interface_get_properties; 1161s # skeleton_class->flush = org_project_signaling_iface_skeleton_dbus_interface_flush; 1161s # skeleton_class->get_vtable = org_project_signaling_iface_skeleton_dbus_interface_get_vtable; 1161s # 1161s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1161s # g_type_class_add_private (klass, sizeof (OrgProjectSignalingIfaceSkeletonPrivate)); 1161s # #endif 1161s # } 1161s # 1161s # static void 1161s # org_project_signaling_iface_skeleton_iface_init (OrgProjectSignalingIfaceIface *iface) 1161s # { 1161s # iface->simple_signal = _org_project_signaling_iface_on_signal_simple_signal; 1161s # iface->single_arg_signal_u = _org_project_signaling_iface_on_signal_single_arg_signal_u; 1161s # } 1161s # 1161s # /** 1161s # * org_project_signaling_iface_skeleton_new: 1161s # * 1161s # * Creates a skeleton object for the D-Bus interface org.project.SignalingIface. 1161s # * 1161s # * Returns: (transfer full) (type OrgProjectSignalingIfaceSkeleton): The skeleton object. 1161s # */ 1161s # OrgProjectSignalingIface * 1161s # org_project_signaling_iface_skeleton_new (void) 1161s # { 1161s # return ORG_PROJECT_SIGNALING_IFACE (g_object_new (TYPE_ORG_PROJECT_SIGNALING_IFACE_SKELETON, NULL)); 1161s # } 1161s # Error: 1161s # 1161s # /tmp/tmpjwrvmpd2/tmpzujnrfal.xml: 1161s # 1161s # 1161s # 1161s # 1161s # 1161s # 1161s # 1161s # 1161s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpjwrvmpd2/tmpzujnrfal.xml', '--output', '-', '--body'] 1161s # Return code: 0 1161s # Output: 1161s # /* 1161s # * This file is generated by gdbus-codegen, do not modify it. 1161s # * 1161s # * The license of this code is the same as for the D-Bus interface description 1161s # * it was derived from. Note that it links to GLib, so must comply with the 1161s # * LGPL linking clauses. 1161s # */ 1161s # 1161s # #ifdef HAVE_CONFIG_H 1161s # # include "config.h" 1161s # #endif 1161s # 1161s # #include 1161s # #ifdef G_OS_UNIX 1161s # # include 1161s # #endif 1161s # 1161s # #ifdef G_ENABLE_DEBUG 1161s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 1161s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 1161s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 1161s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 1161s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 1161s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 1161s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 1161s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 1161s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 1161s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 1161s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 1161s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 1161s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 1161s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 1161s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 1161s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 1161s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 1161s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 1161s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 1161s # #else /* !G_ENABLE_DEBUG */ 1161s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 1161s # * Do not access GValues directly in your code. Instead, use the 1161s # * g_value_get_*() functions 1161s # */ 1161s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 1161s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 1161s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 1161s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 1161s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 1161s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 1161s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 1161s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 1161s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 1161s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 1161s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 1161s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 1161s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 1161s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 1161s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 1161s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 1161s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 1161s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 1161s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 1161s # #endif /* !G_ENABLE_DEBUG */ 1161s # 1161s # typedef struct 1161s # { 1161s # GDBusArgInfo parent_struct; 1161s # gboolean use_gvariant; 1161s # } _ExtendedGDBusArgInfo; 1161s # 1161s # typedef struct 1161s # { 1161s # GDBusMethodInfo parent_struct; 1161s # const gchar *signal_name; 1161s # gboolean pass_fdlist; 1161s # } _ExtendedGDBusMethodInfo; 1161s # 1161s # typedef struct 1161s # { 1161s # GDBusSignalInfo parent_struct; 1161s # const gchar *signal_name; 1161s # } _ExtendedGDBusSignalInfo; 1161s # 1161s # typedef struct 1161s # { 1161s # GDBusPropertyInfo parent_struct; 1161s # const gchar *hyphen_name; 1161s # guint use_gvariant : 1; 1161s # guint emits_changed_signal : 1; 1161s # } _ExtendedGDBusPropertyInfo; 1161s # 1161s # typedef struct 1161s # { 1161s # GDBusInterfaceInfo parent_struct; 1161s # const gchar *hyphen_name; 1161s # } _ExtendedGDBusInterfaceInfo; 1161s # 1161s # typedef struct 1161s # { 1161s # const _ExtendedGDBusPropertyInfo *info; 1161s # guint prop_id; 1161s # GValue orig_value; /* the value before the change */ 1161s # } ChangedProperty; 1161s # 1161s # static void 1161s # _changed_property_free (ChangedProperty *data) 1161s # { 1161s # g_value_unset (&data->orig_value); 1161s # g_free (data); 1161s # } 1161s # 1161s # static gboolean 1161s # _g_strv_equal0 (gchar **a, gchar **b) 1161s # { 1161s # gboolean ret = FALSE; 1161s # guint n; 1161s # if (a == NULL && b == NULL) 1161s # { 1161s # ret = TRUE; 1161s # goto out; 1161s # } 1161s # if (a == NULL || b == NULL) 1161s # goto out; 1161s # if (g_strv_length (a) != g_strv_length (b)) 1161s # goto out; 1161s # for (n = 0; a[n] != NULL; n++) 1161s # if (g_strcmp0 (a[n], b[n]) != 0) 1161s # goto out; 1161s # ret = TRUE; 1161s # out: 1161s # return ret; 1161s # } 1161s # 1161s # static gboolean 1161s # _g_variant_equal0 (GVariant *a, GVariant *b) 1161s # { 1161s # gboolean ret = FALSE; 1161s # if (a == NULL && b == NULL) 1161s # { 1161s # ret = TRUE; 1161s # goto out; 1161s # } 1161s # if (a == NULL || b == NULL) 1161s # goto out; 1161s # ret = g_variant_equal (a, b); 1161s # out: 1161s # return ret; 1161s # } 1161s # 1161s # G_GNUC_UNUSED static gboolean 1161s # _g_value_equal (const GValue *a, const GValue *b) 1161s # { 1161s # gboolean ret = FALSE; 1161s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 1161s # switch (G_VALUE_TYPE (a)) 1161s # { 1161s # case G_TYPE_BOOLEAN: 1161s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 1161s # break; 1161s # case G_TYPE_UCHAR: 1161s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 1161s # break; 1161s # case G_TYPE_INT: 1161s # ret = (g_value_get_int (a) == g_value_get_int (b)); 1161s # break; 1161s # case G_TYPE_UINT: 1161s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 1161s # break; 1161s # case G_TYPE_INT64: 1161s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 1161s # break; 1161s # case G_TYPE_UINT64: 1161s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 1161s # break; 1161s # case G_TYPE_DOUBLE: 1161s # { 1161s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 1161s # gdouble da = g_value_get_double (a); 1161s # gdouble db = g_value_get_double (b); 1161s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 1161s # } 1161s # break; 1161s # case G_TYPE_STRING: 1161s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 1161s # break; 1161s # case G_TYPE_VARIANT: 1161s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 1161s # break; 1161s # default: 1161s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 1161s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 1161s # else 1161s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 1161s # break; 1161s # } 1161s # return ret; 1161s # } 1161s # 1161s # static void 1161s # _g_dbus_codegen_marshal_VOID__INT64 ( 1161s # GClosure *closure, 1161s # GValue *return_value G_GNUC_UNUSED, 1161s # unsigned int n_param_values, 1161s # const GValue *param_values, 1161s # void *invocation_hint G_GNUC_UNUSED, 1161s # void *marshal_data) 1161s # { 1161s # typedef void (*_GDbusCodegenMarshalVoid_Int64Func) 1161s # (void *data1, 1161s # gint64 arg_arg_x, 1161s # void *data2); 1161s # _GDbusCodegenMarshalVoid_Int64Func callback; 1161s # GCClosure *cc = (GCClosure*) closure; 1161s # void *data1, *data2; 1161s # 1161s # g_return_if_fail (n_param_values == 2); 1161s # 1161s # if (G_CCLOSURE_SWAP_DATA (closure)) 1161s # { 1161s # data1 = closure->data; 1161s # data2 = g_value_peek_pointer (param_values + 0); 1161s # } 1161s # else 1161s # { 1161s # data1 = g_value_peek_pointer (param_values + 0); 1161s # data2 = closure->data; 1161s # } 1161s # 1161s # callback = (_GDbusCodegenMarshalVoid_Int64Func) 1161s # (marshal_data ? marshal_data : cc->callback); 1161s # 1161s # callback (data1, 1161s # g_marshal_value_peek_int64 (param_values + 1), 1161s # data2); 1161s # } 1161s # 1161s # /* ------------------------------------------------------------------------ 1161s # * Code for interface org.project.SignalingIface 1161s # * ------------------------------------------------------------------------ 1161s # */ 1161s # 1161s # /** 1161s # * SECTION:OrgProjectSignalingIface 1161s # * @title: OrgProjectSignalingIface 1161s # * @short_description: Generated C code for the org.project.SignalingIface D-Bus interface 1161s # * 1161s # * This section contains code for working with the org.project.SignalingIface D-Bus interface in C. 1161s # */ 1161s # 1161s # enum 1161s # { 1161s # _ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL, 1161s # _ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_X, 1161s # }; 1161s # 1161s # static unsigned _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[2] = { 0 }; 1161s # 1161s # /* ---- Introspection data for org.project.SignalingIface ---- */ 1161s # 1161s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_simple_signal = 1161s # { 1161s # { 1161s # -1, 1161s # (gchar *) "SimpleSignal", 1161s # NULL, 1161s # NULL 1161s # }, 1161s # "simple-signal" 1161s # }; 1161s # 1161s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_single_arg_signal_x_ARG_arg_x = 1161s # { 1161s # { 1161s # -1, 1161s # (gchar *) "arg_x", 1161s # (gchar *) "x", 1161s # NULL 1161s # }, 1161s # FALSE 1161s # }; 1161s # 1161s # static const GDBusArgInfo * const _org_project_signaling_iface_signal_info_single_arg_signal_x_ARG_pointers[] = 1161s # { 1161s # &_org_project_signaling_iface_signal_info_single_arg_signal_x_ARG_arg_x.parent_struct, 1161s # NULL 1161s # }; 1161s # 1161s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_single_arg_signal_x = 1161s # { 1161s # { 1161s # -1, 1161s # (gchar *) "SingleArgSignalX", 1161s # (GDBusArgInfo **) &_org_project_signaling_iface_signal_info_single_arg_signal_x_ARG_pointers, 1161s # NULL 1161s # }, 1161s # "single-arg-signal-x" 1161s # }; 1161s # 1161s # static const GDBusSignalInfo * const _org_project_signaling_iface_signal_info_pointers[] = 1161s # { 1161s # &_org_project_signaling_iface_signal_info_simple_signal.parent_struct, 1161s # &_org_project_signaling_iface_signal_info_single_arg_signal_x.parent_struct, 1161s # NULL 1161s # }; 1161s # 1161s # static const _ExtendedGDBusInterfaceInfo _org_project_signaling_iface_interface_info = 1161s # { 1161s # { 1161s # -1, 1161s # (gchar *) "org.project.SignalingIface", 1161s # NULL, 1161s # (GDBusSignalInfo **) &_org_project_signaling_iface_signal_info_pointers, 1161s # NULL, 1161s # NULL 1161s # }, 1161s # "org-project-signaling-iface", 1161s # }; 1161s # 1161s # 1161s # /** 1161s # * org_project_signaling_iface_interface_info: 1161s # * 1161s # * Gets a machine-readable description of the org.project.SignalingIface D-Bus interface. 1161s # * 1161s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 1161s # */ 1161s # GDBusInterfaceInfo * 1161s # org_project_signaling_iface_interface_info (void) 1161s # { 1161s # return (GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct; 1161s # } 1161s # 1161s # /** 1161s # * org_project_signaling_iface_override_properties: 1161s # * @klass: The class structure for a #GObject derived class. 1161s # * @property_id_begin: The property id to assign to the first overridden property. 1161s # * 1161s # * Overrides all #GObject properties in the #OrgProjectSignalingIface interface for a concrete class. 1161s # * The properties are overridden in the order they are defined. 1161s # * 1161s # * Returns: The last property id. 1161s # */ 1161s # guint 1161s # org_project_signaling_iface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 1161s # { 1161s # return property_id_begin - 1; 1161s # } 1161s # 1161s # 1161s # inline static void 1161s # org_project_signaling_iface_signal_marshal_simple_signal ( 1161s # GClosure *closure, 1161s # GValue *return_value, 1161s # unsigned int n_param_values, 1161s # const GValue *param_values, 1161s # void *invocation_hint, 1161s # void *marshal_data) 1161s # { 1161s # g_cclosure_marshal_VOID__VOID (closure, 1161s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1161s # } 1161s # 1161s # inline static void 1161s # org_project_signaling_iface_signal_marshal_single_arg_signal_x ( 1161s # GClosure *closure, 1161s # GValue *return_value, 1161s # unsigned int n_param_values, 1161s # const GValue *param_values, 1161s # void *invocation_hint, 1161s # void *marshal_data) 1161s # { 1161s # _g_dbus_codegen_marshal_VOID__INT64 (closure, 1161s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1161s # } 1161s # 1161s # 1161s # /** 1161s # * OrgProjectSignalingIface: 1161s # * 1161s # * Abstract interface type for the D-Bus interface org.project.SignalingIface. 1161s # */ 1161s # 1161s # /** 1161s # * OrgProjectSignalingIfaceIface: 1161s # * @parent_iface: The parent interface. 1161s # * @simple_signal: Handler for the #OrgProjectSignalingIface::simple-signal signal. 1161s # * @single_arg_signal_x: Handler for the #OrgProjectSignalingIface::single-arg-signal-x signal. 1161s # * 1161s # * Virtual table for the D-Bus interface org.project.SignalingIface. 1161s # */ 1161s # 1161s # typedef OrgProjectSignalingIfaceIface OrgProjectSignalingIfaceInterface; 1161s # G_DEFINE_INTERFACE (OrgProjectSignalingIface, org_project_signaling_iface, G_TYPE_OBJECT) 1161s # 1161s # static void 1161s # org_project_signaling_iface_default_init (OrgProjectSignalingIfaceIface *iface) 1161s # { 1161s # /* GObject signals for received D-Bus signals: */ 1161s # /** 1161s # * OrgProjectSignalingIface::simple-signal: 1161s # * @object: A #OrgProjectSignalingIface. 1161s # * 1161s # * On the client-side, this signal is emitted whenever the D-Bus signal "SimpleSignal" is received. 1161s # * 1161s # * 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. 1161s # */ 1161s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL] = 1161s # g_signal_new ("simple-signal", 1161s # G_TYPE_FROM_INTERFACE (iface), 1161s # G_SIGNAL_RUN_LAST, 1161s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, simple_signal), 1161s # NULL, 1161s # NULL, 1161s # org_project_signaling_iface_signal_marshal_simple_signal, 1161s # G_TYPE_NONE, 1161s # 0); 1161s # 1161s # /** 1161s # * OrgProjectSignalingIface::single-arg-signal-x: 1161s # * @object: A #OrgProjectSignalingIface. 1161s # * @arg_arg_x: Argument. 1161s # * 1161s # * On the client-side, this signal is emitted whenever the D-Bus signal "SingleArgSignalX" is received. 1161s # * 1161s # * 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. 1161s # */ 1161s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_X] = 1161s # g_signal_new ("single-arg-signal-x", 1161s # G_TYPE_FROM_INTERFACE (iface), 1161s # G_SIGNAL_RUN_LAST, 1161s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, single_arg_signal_x), 1161s # NULL, 1161s # NULL, 1161s # org_project_signaling_iface_signal_marshal_single_arg_signal_x, 1161s # G_TYPE_NONE, 1161s # 1, G_TYPE_INT64); 1161s # 1161s # } 1161s # 1161s # /** 1161s # * org_project_signaling_iface_emit_simple_signal: 1161s # * @object: A #OrgProjectSignalingIface. 1161s # * 1161s # * Emits the "SimpleSignal" D-Bus signal. 1161s # */ 1161s # void 1161s # org_project_signaling_iface_emit_simple_signal ( 1161s # OrgProjectSignalingIface *object) 1161s # { 1161s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL], 0); 1161s # } 1161s # 1161s # /** 1161s # * org_project_signaling_iface_emit_single_arg_signal_x: 1161s # * @object: A #OrgProjectSignalingIface. 1161s # * @arg_arg_x: Argument to pass with the signal. 1161s # * 1161s # * Emits the "SingleArgSignalX" D-Bus signal. 1161s # */ 1161s # void 1161s # org_project_signaling_iface_emit_single_arg_signal_x ( 1161s # OrgProjectSignalingIface *object, 1161s # gint64 arg_arg_x) 1161s # { 1161s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_X], 0, arg_arg_x); 1161s # } 1161s # 1161s # /* ------------------------------------------------------------------------ */ 1161s # 1161s # /** 1161s # * OrgProjectSignalingIfaceProxy: 1161s # * 1161s # * The #OrgProjectSignalingIfaceProxy structure contains only private data and should only be accessed using the provided API. 1161s # */ 1161s # 1161s # /** 1161s # * OrgProjectSignalingIfaceProxyClass: 1161s # * @parent_class: The parent class. 1161s # * 1161s # * Class structure for #OrgProjectSignalingIfaceProxy. 1161s # */ 1161s # 1161s # struct _OrgProjectSignalingIfaceProxyPrivate 1161s # { 1161s # GData *qdata; 1161s # }; 1161s # 1161s # static void org_project_signaling_iface_proxy_iface_init (OrgProjectSignalingIfaceIface *iface); 1161s # 1161s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1161s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceProxy, org_project_signaling_iface_proxy, G_TYPE_DBUS_PROXY, 1161s # G_ADD_PRIVATE (OrgProjectSignalingIfaceProxy) 1161s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_proxy_iface_init)) 1161s # 1161s # #else 1161s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceProxy, org_project_signaling_iface_proxy, G_TYPE_DBUS_PROXY, 1161s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_proxy_iface_init)) 1161s # 1161s # #endif 1161s # static void 1161s # org_project_signaling_iface_proxy_finalize (GObject *object) 1161s # { 1161s # OrgProjectSignalingIfaceProxy *proxy = ORG_PROJECT_SIGNALING_IFACE_PROXY (object); 1161s # g_datalist_clear (&proxy->priv->qdata); 1161s # G_OBJECT_CLASS (org_project_signaling_iface_proxy_parent_class)->finalize (object); 1161s # } 1161s # 1161s # static void 1161s # org_project_signaling_iface_proxy_get_property (GObject *object G_GNUC_UNUSED, 1161s # guint prop_id G_GNUC_UNUSED, 1161s # GValue *value G_GNUC_UNUSED, 1161s # GParamSpec *pspec G_GNUC_UNUSED) 1161s # { 1161s # } 1161s # 1161s # static void 1161s # org_project_signaling_iface_proxy_set_property (GObject *object G_GNUC_UNUSED, 1161s # guint prop_id G_GNUC_UNUSED, 1161s # const GValue *value G_GNUC_UNUSED, 1161s # GParamSpec *pspec G_GNUC_UNUSED) 1161s # { 1161s # } 1161s # 1161s # static void 1161s # org_project_signaling_iface_proxy_g_signal (GDBusProxy *proxy, 1161s # const gchar *sender_name G_GNUC_UNUSED, 1161s # const gchar *signal_name, 1161s # GVariant *parameters) 1161s # { 1161s # _ExtendedGDBusSignalInfo *info; 1161s # GVariantIter iter; 1161s # GVariant *child; 1161s # GValue *paramv; 1161s # gsize num_params; 1161s # gsize n; 1161s # guint signal_id; 1161s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, signal_name); 1161s # if (info == NULL) 1161s # return; 1161s # num_params = g_variant_n_children (parameters); 1161s # paramv = g_new0 (GValue, num_params + 1); 1161s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_SIGNALING_IFACE); 1161s # g_value_set_object (¶mv[0], proxy); 1161s # g_variant_iter_init (&iter, parameters); 1161s # n = 1; 1161s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1161s # { 1161s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 1161s # if (arg_info->use_gvariant) 1161s # { 1161s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1161s # g_value_set_variant (¶mv[n], child); 1161s # n++; 1161s # } 1161s # else 1161s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1161s # g_variant_unref (child); 1161s # } 1161s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_SIGNALING_IFACE); 1161s # g_signal_emitv (paramv, signal_id, 0, NULL); 1161s # for (n = 0; n < num_params + 1; n++) 1161s # g_value_unset (¶mv[n]); 1161s # g_free (paramv); 1161s # } 1161s # 1161s # static void 1161s # org_project_signaling_iface_proxy_g_properties_changed (GDBusProxy *_proxy, 1161s # GVariant *changed_properties, 1161s # const gchar *const *invalidated_properties) 1161s # { 1161s # OrgProjectSignalingIfaceProxy *proxy = ORG_PROJECT_SIGNALING_IFACE_PROXY (_proxy); 1161s # guint n; 1161s # const gchar *key; 1161s # GVariantIter *iter; 1161s # _ExtendedGDBusPropertyInfo *info; 1161s # g_variant_get (changed_properties, "a{sv}", &iter); 1161s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 1161s # { 1161s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, key); 1161s # g_datalist_remove_data (&proxy->priv->qdata, key); 1161s # if (info != NULL) 1161s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1161s # } 1161s # g_variant_iter_free (iter); 1161s # for (n = 0; invalidated_properties[n] != NULL; n++) 1161s # { 1161s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, invalidated_properties[n]); 1161s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 1161s # if (info != NULL) 1161s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1161s # } 1161s # } 1161s # 1161s # static void 1161s # org_project_signaling_iface_proxy_init (OrgProjectSignalingIfaceProxy *proxy) 1161s # { 1161s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1161s # proxy->priv = org_project_signaling_iface_proxy_get_instance_private (proxy); 1161s # #else 1161s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_SIGNALING_IFACE_PROXY, OrgProjectSignalingIfaceProxyPrivate); 1161s # #endif 1161s # 1161s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_signaling_iface_interface_info ()); 1161s # } 1161s # 1161s # static void 1161s # org_project_signaling_iface_proxy_class_init (OrgProjectSignalingIfaceProxyClass *klass) 1161s # { 1161s # GObjectClass *gobject_class; 1161s # GDBusProxyClass *proxy_class; 1161s # 1161s # gobject_class = G_OBJECT_CLASS (klass); 1161s # gobject_class->finalize = org_project_signaling_iface_proxy_finalize; 1161s # gobject_class->get_property = org_project_signaling_iface_proxy_get_property; 1161s # gobject_class->set_property = org_project_signaling_iface_proxy_set_property; 1161s # 1161s # proxy_class = G_DBUS_PROXY_CLASS (klass); 1161s # proxy_class->g_signal = org_project_signaling_iface_proxy_g_signal; 1161s # proxy_class->g_properties_changed = org_project_signaling_iface_proxy_g_properties_changed; 1161s # 1161s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1161s # g_type_class_add_private (klass, sizeof (OrgProjectSignalingIfaceProxyPrivate)); 1161s # #endif 1161s # } 1161s # 1161s # static void 1161s # org_project_signaling_iface_proxy_iface_init (OrgProjectSignalingIfaceIface *iface G_GNUC_UNUSED) 1161s # { 1161s # } 1161s # 1161s # /** 1161s # * org_project_signaling_iface_proxy_new: 1161s # * @connection: A #GDBusConnection. 1161s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1161s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1161s # * @object_path: An object path. 1161s # * @cancellable: (nullable): A #GCancellable or %NULL. 1161s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1161s # * @user_data: User data to pass to @callback. 1161s # * 1161s # * Asynchronously creates a proxy for the D-Bus interface org.project.SignalingIface. See g_dbus_proxy_new() for more details. 1161s # * 1161s # * 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()). 1161s # * You can then call org_project_signaling_iface_proxy_new_finish() to get the result of the operation. 1161s # * 1161s # * See org_project_signaling_iface_proxy_new_sync() for the synchronous, blocking version of this constructor. 1161s # */ 1161s # void 1161s # org_project_signaling_iface_proxy_new ( 1161s # GDBusConnection *connection, 1161s # GDBusProxyFlags flags, 1161s # const gchar *name, 1161s # const gchar *object_path, 1161s # GCancellable *cancellable, 1161s # GAsyncReadyCallback callback, 1161s # gpointer user_data) 1161s # { 1161s # 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); 1161s # } 1161s # 1161s # /** 1161s # * org_project_signaling_iface_proxy_new_finish: 1161s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_signaling_iface_proxy_new(). 1161s # * @error: Return location for error or %NULL 1161s # * 1161s # * Finishes an operation started with org_project_signaling_iface_proxy_new(). 1161s # * 1161s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 1161s # */ 1161s # OrgProjectSignalingIface * 1161s # org_project_signaling_iface_proxy_new_finish ( 1161s # GAsyncResult *res, 1161s # GError **error) 1161s # { 1161s # GObject *ret; 1161s # GObject *source_object; 1161s # source_object = g_async_result_get_source_object (res); 1161s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1161s # g_object_unref (source_object); 1161s # if (ret != NULL) 1161s # return ORG_PROJECT_SIGNALING_IFACE (ret); 1161s # else 1161s # return NULL; 1161s # } 1161s # 1161s # /** 1161s # * org_project_signaling_iface_proxy_new_sync: 1161s # * @connection: A #GDBusConnection. 1161s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1161s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1161s # * @object_path: An object path. 1161s # * @cancellable: (nullable): A #GCancellable or %NULL. 1161s # * @error: Return location for error or %NULL 1161s # * 1161s # * Synchronously creates a proxy for the D-Bus interface org.project.SignalingIface. See g_dbus_proxy_new_sync() for more details. 1161s # * 1161s # * The calling thread is blocked until a reply is received. 1161s # * 1161s # * See org_project_signaling_iface_proxy_new() for the asynchronous version of this constructor. 1161s # * 1161s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 1161s # */ 1161s # OrgProjectSignalingIface * 1161s # org_project_signaling_iface_proxy_new_sync ( 1161s # GDBusConnection *connection, 1161s # GDBusProxyFlags flags, 1161s # const gchar *name, 1161s # const gchar *object_path, 1161s # GCancellable *cancellable, 1161s # GError **error) 1161s # { 1161s # GInitable *ret; 1161s # 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); 1161s # if (ret != NULL) 1161s # return ORG_PROJECT_SIGNALING_IFACE (ret); 1161s # else 1161s # return NULL; 1161s # } 1161s # 1161s # 1161s # /** 1161s # * org_project_signaling_iface_proxy_new_for_bus: 1161s # * @bus_type: A #GBusType. 1161s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1161s # * @name: A bus name (well-known or unique). 1161s # * @object_path: An object path. 1161s # * @cancellable: (nullable): A #GCancellable or %NULL. 1161s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1161s # * @user_data: User data to pass to @callback. 1161s # * 1161s # * Like org_project_signaling_iface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 1161s # * 1161s # * 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()). 1161s # * You can then call org_project_signaling_iface_proxy_new_for_bus_finish() to get the result of the operation. 1161s # * 1161s # * See org_project_signaling_iface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 1161s # */ 1161s # void 1161s # org_project_signaling_iface_proxy_new_for_bus ( 1161s # GBusType bus_type, 1161s # GDBusProxyFlags flags, 1161s # const gchar *name, 1161s # const gchar *object_path, 1161s # GCancellable *cancellable, 1161s # GAsyncReadyCallback callback, 1161s # gpointer user_data) 1161s # { 1161s # 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); 1161s # } 1161s # 1161s # /** 1161s # * org_project_signaling_iface_proxy_new_for_bus_finish: 1161s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_signaling_iface_proxy_new_for_bus(). 1161s # * @error: Return location for error or %NULL 1161s # * 1161s # * Finishes an operation started with org_project_signaling_iface_proxy_new_for_bus(). 1161s # * 1161s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 1161s # */ 1161s # OrgProjectSignalingIface * 1161s # org_project_signaling_iface_proxy_new_for_bus_finish ( 1161s # GAsyncResult *res, 1161s # GError **error) 1161s # { 1161s # GObject *ret; 1161s # GObject *source_object; 1161s # source_object = g_async_result_get_source_object (res); 1161s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1161s # g_object_unref (source_object); 1161s # if (ret != NULL) 1161s # return ORG_PROJECT_SIGNALING_IFACE (ret); 1161s # else 1161s # return NULL; 1161s # } 1161s # 1161s # /** 1161s # * org_project_signaling_iface_proxy_new_for_bus_sync: 1161s # * @bus_type: A #GBusType. 1161s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1161s # * @name: A bus name (well-known or unique). 1161s # * @object_path: An object path. 1161s # * @cancellable: (nullable): A #GCancellable or %NULL. 1161s # * @error: Return location for error or %NULL 1161s # * 1161s # * Like org_project_signaling_iface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 1161s # * 1161s # * The calling thread is blocked until a reply is received. 1161s # * 1161s # * See org_project_signaling_iface_proxy_new_for_bus() for the asynchronous version of this constructor. 1161s # * 1161s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 1161s # */ 1161s # OrgProjectSignalingIface * 1161s # org_project_signaling_iface_proxy_new_for_bus_sync ( 1161s # GBusType bus_type, 1161s # GDBusProxyFlags flags, 1161s # const gchar *name, 1161s # const gchar *object_path, 1161s # GCancellable *cancellable, 1161s # GError **error) 1161s # { 1161s # GInitable *ret; 1161s # 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); 1161s # if (ret != NULL) 1161s # return ORG_PROJECT_SIGNALING_IFACE (ret); 1161s # else 1161s # return NULL; 1161s # } 1161s # 1161s # 1161s # /* ------------------------------------------------------------------------ */ 1161s # 1161s # /** 1161s # * OrgProjectSignalingIfaceSkeleton: 1161s # * 1161s # * The #OrgProjectSignalingIfaceSkeleton structure contains only private data and should only be accessed using the provided API. 1161s # */ 1161s # 1161s # /** 1161s # * OrgProjectSignalingIfaceSkeletonClass: 1161s # * @parent_class: The parent class. 1161s # * 1161s # * Class structure for #OrgProjectSignalingIfaceSkeleton. 1161s # */ 1161s # 1161s # struct _OrgProjectSignalingIfaceSkeletonPrivate 1161s # { 1161s # GValue *properties; 1161s # GList *changed_properties; 1161s # GSource *changed_properties_idle_source; 1161s # GMainContext *context; 1161s # GMutex lock; 1161s # }; 1161s # 1161s # static void 1161s # _org_project_signaling_iface_skeleton_handle_method_call ( 1161s # GDBusConnection *connection G_GNUC_UNUSED, 1161s # const gchar *sender G_GNUC_UNUSED, 1161s # const gchar *object_path G_GNUC_UNUSED, 1161s # const gchar *interface_name, 1161s # const gchar *method_name, 1161s # GVariant *parameters, 1161s # GDBusMethodInvocation *invocation, 1161s # gpointer user_data) 1161s # { 1161s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 1161s # _ExtendedGDBusMethodInfo *info; 1161s # GVariantIter iter; 1161s # GVariant *child; 1161s # GValue *paramv; 1161s # gsize num_params; 1161s # guint num_extra; 1161s # gsize n; 1161s # guint signal_id; 1161s # GValue return_value = G_VALUE_INIT; 1161s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 1161s # g_assert (info != NULL); 1161s # num_params = g_variant_n_children (parameters); 1161s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 1161s # n = 0; 1161s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_SIGNALING_IFACE); 1161s # g_value_set_object (¶mv[n++], skeleton); 1161s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 1161s # g_value_set_object (¶mv[n++], invocation); 1161s # if (info->pass_fdlist) 1161s # { 1161s # #ifdef G_OS_UNIX 1161s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 1161s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 1161s # #else 1161s # g_assert_not_reached (); 1161s # #endif 1161s # } 1161s # g_variant_iter_init (&iter, parameters); 1161s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1161s # { 1161s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 1161s # if (arg_info->use_gvariant) 1161s # { 1161s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1161s # g_value_set_variant (¶mv[n], child); 1161s # n++; 1161s # } 1161s # else 1161s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1161s # g_variant_unref (child); 1161s # } 1161s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_SIGNALING_IFACE); 1161s # g_value_init (&return_value, G_TYPE_BOOLEAN); 1161s # g_signal_emitv (paramv, signal_id, 0, &return_value); 1161s # if (!g_value_get_boolean (&return_value)) 1161s # 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); 1161s # g_value_unset (&return_value); 1161s # for (n = 0; n < num_params + num_extra; n++) 1161s # g_value_unset (¶mv[n]); 1161s # g_free (paramv); 1161s # } 1161s # 1161s # static GVariant * 1161s # _org_project_signaling_iface_skeleton_handle_get_property ( 1161s # GDBusConnection *connection G_GNUC_UNUSED, 1161s # const gchar *sender G_GNUC_UNUSED, 1161s # const gchar *object_path G_GNUC_UNUSED, 1161s # const gchar *interface_name G_GNUC_UNUSED, 1161s # const gchar *property_name, 1161s # GError **error, 1161s # gpointer user_data) 1161s # { 1161s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 1161s # GValue value = G_VALUE_INIT; 1161s # GParamSpec *pspec; 1161s # _ExtendedGDBusPropertyInfo *info; 1161s # GVariant *ret; 1161s # ret = NULL; 1161s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, property_name); 1161s # g_assert (info != NULL); 1161s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1161s # if (pspec == NULL) 1161s # { 1161s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1161s # } 1161s # else 1161s # { 1161s # g_value_init (&value, pspec->value_type); 1161s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1161s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 1161s # g_value_unset (&value); 1161s # } 1161s # return ret; 1161s # } 1161s # 1161s # static gboolean 1161s # _org_project_signaling_iface_skeleton_handle_set_property ( 1161s # GDBusConnection *connection G_GNUC_UNUSED, 1161s # const gchar *sender G_GNUC_UNUSED, 1161s # const gchar *object_path G_GNUC_UNUSED, 1161s # const gchar *interface_name G_GNUC_UNUSED, 1161s # const gchar *property_name, 1161s # GVariant *variant, 1161s # GError **error, 1161s # gpointer user_data) 1161s # { 1161s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 1161s # GValue value = G_VALUE_INIT; 1161s # GParamSpec *pspec; 1161s # _ExtendedGDBusPropertyInfo *info; 1161s # gboolean ret; 1161s # ret = FALSE; 1161s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, property_name); 1161s # g_assert (info != NULL); 1161s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1161s # if (pspec == NULL) 1161s # { 1161s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1161s # } 1161s # else 1161s # { 1161s # if (info->use_gvariant) 1161s # g_value_set_variant (&value, variant); 1161s # else 1161s # g_dbus_gvariant_to_gvalue (variant, &value); 1161s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1161s # g_value_unset (&value); 1161s # ret = TRUE; 1161s # } 1161s # return ret; 1161s # } 1161s # 1161s # static const GDBusInterfaceVTable _org_project_signaling_iface_skeleton_vtable = 1161s # { 1161s # _org_project_signaling_iface_skeleton_handle_method_call, 1161s # _org_project_signaling_iface_skeleton_handle_get_property, 1161s # _org_project_signaling_iface_skeleton_handle_set_property, 1161s # {NULL} 1161s # }; 1161s # 1161s # static GDBusInterfaceInfo * 1161s # org_project_signaling_iface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1161s # { 1161s # return org_project_signaling_iface_interface_info (); 1161s # } 1161s # 1161s # static GDBusInterfaceVTable * 1161s # org_project_signaling_iface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1161s # { 1161s # return (GDBusInterfaceVTable *) &_org_project_signaling_iface_skeleton_vtable; 1161s # } 1161s # 1161s # static GVariant * 1161s # org_project_signaling_iface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 1161s # { 1161s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (_skeleton); 1161s # 1161s # GVariantBuilder builder; 1161s # guint n; 1161s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 1161s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 1161s # #else 1161s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 1161s # #endif 1161s # if (_org_project_signaling_iface_interface_info.parent_struct.properties == NULL) 1161s # goto out; 1161s # for (n = 0; _org_project_signaling_iface_interface_info.parent_struct.properties[n] != NULL; n++) 1161s # { 1161s # GDBusPropertyInfo *info = _org_project_signaling_iface_interface_info.parent_struct.properties[n]; 1161s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 1161s # { 1161s # GVariant *value; 1161s # 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); 1161s # if (value != NULL) 1161s # { 1161s # g_variant_take_ref (value); 1161s # g_variant_builder_add (&builder, "{sv}", info->name, value); 1161s # g_variant_unref (value); 1161s # } 1161s # } 1161s # } 1161s # out: 1161s # return g_variant_builder_end (&builder); 1161s # } 1161s # 1161s # static void 1161s # org_project_signaling_iface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 1161s # { 1161s # } 1161s # 1161s # static void 1161s # _org_project_signaling_iface_on_signal_simple_signal ( 1161s # OrgProjectSignalingIface *object) 1161s # { 1161s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 1161s # 1161s # GList *connections, *l; 1161s # GVariant *signal_variant; 1161s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 1161s # 1161s # signal_variant = g_variant_ref_sink (g_variant_new ("()")); 1161s # for (l = connections; l != NULL; l = l->next) 1161s # { 1161s # GDBusConnection *connection = l->data; 1161s # g_dbus_connection_emit_signal (connection, 1161s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SimpleSignal", 1161s # signal_variant, NULL); 1161s # } 1161s # g_variant_unref (signal_variant); 1161s # g_list_free_full (connections, g_object_unref); 1161s # } 1161s # 1161s # static void 1161s # _org_project_signaling_iface_on_signal_single_arg_signal_x ( 1161s # OrgProjectSignalingIface *object, 1161s # gint64 arg_arg_x) 1161s # { 1161s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 1161s # 1161s # GList *connections, *l; 1161s # GVariant *signal_variant; 1161s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 1161s # 1161s # signal_variant = g_variant_ref_sink (g_variant_new ("(x)", 1161s # arg_arg_x)); 1161s # for (l = connections; l != NULL; l = l->next) 1161s # { 1161s # GDBusConnection *connection = l->data; 1161s # g_dbus_connection_emit_signal (connection, 1161s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SingleArgSignalX", 1161s # signal_variant, NULL); 1161s # } 1161s # g_variant_unref (signal_variant); 1161s # g_list_free_full (connections, g_object_unref); 1161s # } 1161s # 1161s # static void org_project_signaling_iface_skeleton_iface_init (OrgProjectSignalingIfaceIface *iface); 1161s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1161s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceSkeleton, org_project_signaling_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1161s # G_ADD_PRIVATE (OrgProjectSignalingIfaceSkeleton) 1161s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_skeleton_iface_init)) 1161s # 1161s # #else 1161s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceSkeleton, org_project_signaling_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1161s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_skeleton_iface_init)) 1161s # 1161s # #endif 1161s # static void 1161s # org_project_signaling_iface_skeleton_finalize (GObject *object) 1161s # { 1161s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 1161s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 1161s # if (skeleton->priv->changed_properties_idle_source != NULL) 1161s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 1161s # g_main_context_unref (skeleton->priv->context); 1161s # g_mutex_clear (&skeleton->priv->lock); 1161s # G_OBJECT_CLASS (org_project_signaling_iface_skeleton_parent_class)->finalize (object); 1161s # } 1161s # 1161s # static void 1161s # org_project_signaling_iface_skeleton_init (OrgProjectSignalingIfaceSkeleton *skeleton) 1161s # { 1161s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1161s # skeleton->priv = org_project_signaling_iface_skeleton_get_instance_private (skeleton); 1161s # #else 1161s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_SIGNALING_IFACE_SKELETON, OrgProjectSignalingIfaceSkeletonPrivate); 1161s # #endif 1161s # 1161s # g_mutex_init (&skeleton->priv->lock); 1161s # skeleton->priv->context = g_main_context_ref_thread_default (); 1161s # } 1161s # 1161s # static void 1161s # org_project_signaling_iface_skeleton_class_init (OrgProjectSignalingIfaceSkeletonClass *klass) 1161s # { 1161s # GObjectClass *gobject_class; 1161s # GDBusInterfaceSkeletonClass *skeleton_class; 1161s # 1161s # gobject_class = G_OBJECT_CLASS (klass); 1161s # gobject_class->finalize = org_project_signaling_iface_skeleton_finalize; 1161s # 1161s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 1161s # skeleton_class->get_info = org_project_signaling_iface_skeleton_dbus_interface_get_info; 1161s # skeleton_class->get_properties = org_project_signaling_iface_skeleton_dbus_interface_get_properties; 1161s # skeleton_class->flush = org_project_signaling_iface_skeleton_dbus_interface_flush; 1161s # skeleton_class->get_vtable = org_project_signaling_iface_skeleton_dbus_interface_get_vtable; 1161s # 1161s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1161s # g_type_class_add_private (klass, sizeof (OrgProjectSignalingIfaceSkeletonPrivate)); 1161s # #endif 1161s # } 1161s # 1161s # static void 1161s # org_project_signaling_iface_skeleton_iface_init (OrgProjectSignalingIfaceIface *iface) 1161s # { 1161s # iface->simple_signal = _org_project_signaling_iface_on_signal_simple_signal; 1161s # iface->single_arg_signal_x = _org_project_signaling_iface_on_signal_single_arg_signal_x; 1161s # } 1161s # 1161s # /** 1161s # * org_project_signaling_iface_skeleton_new: 1161s # * 1161s # * Creates a skeleton object for the D-Bus interface org.project.SignalingIface. 1161s # * 1161s # * Returns: (transfer full) (type OrgProjectSignalingIfaceSkeleton): The skeleton object. 1161s # */ 1161s # OrgProjectSignalingIface * 1161s # org_project_signaling_iface_skeleton_new (void) 1161s # { 1161s # return ORG_PROJECT_SIGNALING_IFACE (g_object_new (TYPE_ORG_PROJECT_SIGNALING_IFACE_SKELETON, NULL)); 1161s # } 1161s # Error: 1161s # 1161s # /tmp/tmpjwrvmpd2/tmpnij_jb55.xml: 1161s # 1161s # 1161s # 1161s # 1161s # 1161s # 1161s # 1161s # 1161s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpjwrvmpd2/tmpnij_jb55.xml', '--output', '-', '--body'] 1161s # Return code: 0 1161s # Output: 1161s # /* 1161s # * This file is generated by gdbus-codegen, do not modify it. 1161s # * 1161s # * The license of this code is the same as for the D-Bus interface description 1161s # * it was derived from. Note that it links to GLib, so must comply with the 1161s # * LGPL linking clauses. 1161s # */ 1161s # 1161s # #ifdef HAVE_CONFIG_H 1161s # # include "config.h" 1161s # #endif 1161s # 1161s # #include 1161s # #ifdef G_OS_UNIX 1161s # # include 1161s # #endif 1161s # 1161s # #ifdef G_ENABLE_DEBUG 1161s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 1161s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 1161s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 1161s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 1161s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 1161s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 1161s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 1161s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 1161s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 1161s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 1161s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 1161s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 1161s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 1161s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 1161s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 1161s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 1161s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 1161s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 1161s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 1161s # #else /* !G_ENABLE_DEBUG */ 1161s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 1161s # * Do not access GValues directly in your code. Instead, use the 1161s # * g_value_get_*() functions 1161s # */ 1161s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 1161s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 1161s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 1161s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 1161s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 1161s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 1161s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 1161s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 1161s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 1161s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 1161s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 1161s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 1161s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 1161s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 1161s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 1161s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 1161s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 1161s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 1161s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 1161s # #endif /* !G_ENABLE_DEBUG */ 1161s # 1161s # typedef struct 1161s # { 1161s # GDBusArgInfo parent_struct; 1161s # gboolean use_gvariant; 1161s # } _ExtendedGDBusArgInfo; 1161s # 1161s # typedef struct 1161s # { 1161s # GDBusMethodInfo parent_struct; 1161s # const gchar *signal_name; 1161s # gboolean pass_fdlist; 1161s # } _ExtendedGDBusMethodInfo; 1161s # 1161s # typedef struct 1161s # { 1161s # GDBusSignalInfo parent_struct; 1161s # const gchar *signal_name; 1161s # } _ExtendedGDBusSignalInfo; 1161s # 1161s # typedef struct 1161s # { 1161s # GDBusPropertyInfo parent_struct; 1161s # const gchar *hyphen_name; 1161s # guint use_gvariant : 1; 1161s # guint emits_changed_signal : 1; 1161s # } _ExtendedGDBusPropertyInfo; 1161s # 1161s # typedef struct 1161s # { 1161s # GDBusInterfaceInfo parent_struct; 1161s # const gchar *hyphen_name; 1161s # } _ExtendedGDBusInterfaceInfo; 1161s # 1161s # typedef struct 1161s # { 1161s # const _ExtendedGDBusPropertyInfo *info; 1161s # guint prop_id; 1161s # GValue orig_value; /* the value before the change */ 1161s # } ChangedProperty; 1161s # 1161s # static void 1161s # _changed_property_free (ChangedProperty *data) 1161s # { 1161s # g_value_unset (&data->orig_value); 1161s # g_free (data); 1161s # } 1161s # 1161s # static gboolean 1161s # _g_strv_equal0 (gchar **a, gchar **b) 1161s # { 1161s # gboolean ret = FALSE; 1161s # guint n; 1161s # if (a == NULL && b == NULL) 1161s # { 1161s # ret = TRUE; 1161s # goto out; 1161s # } 1161s # if (a == NULL || b == NULL) 1161s # goto out; 1161s # if (g_strv_length (a) != g_strv_length (b)) 1161s # goto out; 1161s # for (n = 0; a[n] != NULL; n++) 1161s # if (g_strcmp0 (a[n], b[n]) != 0) 1161s # goto out; 1161s # ret = TRUE; 1161s # out: 1161s # return ret; 1161s # } 1161s # 1161s # static gboolean 1161s # _g_variant_equal0 (GVariant *a, GVariant *b) 1161s # { 1161s # gboolean ret = FALSE; 1161s # if (a == NULL && b == NULL) 1161s # { 1161s # ret = TRUE; 1161s # goto out; 1161s # } 1161s # if (a == NULL || b == NULL) 1161s # goto out; 1161s # ret = g_variant_equal (a, b); 1161s # out: 1161s # return ret; 1161s # } 1161s # 1161s # G_GNUC_UNUSED static gboolean 1161s # _g_value_equal (const GValue *a, const GValue *b) 1161s # { 1161s # gboolean ret = FALSE; 1161s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 1161s # switch (G_VALUE_TYPE (a)) 1161s # { 1161s # case G_TYPE_BOOLEAN: 1161s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 1161s # break; 1161s # case G_TYPE_UCHAR: 1161s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 1161s # break; 1161s # case G_TYPE_INT: 1161s # ret = (g_value_get_int (a) == g_value_get_int (b)); 1161s # break; 1161s # case G_TYPE_UINT: 1161s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 1161s # break; 1161s # case G_TYPE_INT64: 1161s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 1161s # break; 1161s # case G_TYPE_UINT64: 1161s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 1161s # break; 1161s # case G_TYPE_DOUBLE: 1161s # { 1161s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 1161s # gdouble da = g_value_get_double (a); 1161s # gdouble db = g_value_get_double (b); 1161s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 1161s # } 1161s # break; 1161s # case G_TYPE_STRING: 1161s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 1161s # break; 1161s # case G_TYPE_VARIANT: 1161s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 1161s # break; 1161s # default: 1161s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 1161s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 1161s # else 1161s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 1161s # break; 1161s # } 1161s # return ret; 1161s # } 1161s # 1161s # static void 1161s # _g_dbus_codegen_marshal_VOID__UINT64 ( 1161s # GClosure *closure, 1161s # GValue *return_value G_GNUC_UNUSED, 1161s # unsigned int n_param_values, 1161s # const GValue *param_values, 1161s # void *invocation_hint G_GNUC_UNUSED, 1161s # void *marshal_data) 1161s # { 1161s # typedef void (*_GDbusCodegenMarshalVoid_Uint64Func) 1161s # (void *data1, 1161s # guint64 arg_arg_t, 1161s # void *data2); 1161s # _GDbusCodegenMarshalVoid_Uint64Func callback; 1161s # GCClosure *cc = (GCClosure*) closure; 1161s # void *data1, *data2; 1161s # 1161s # g_return_if_fail (n_param_values == 2); 1161s # 1161s # if (G_CCLOSURE_SWAP_DATA (closure)) 1161s # { 1161s # data1 = closure->data; 1161s # data2 = g_value_peek_pointer (param_values + 0); 1161s # } 1161s # else 1161s # { 1161s # data1 = g_value_peek_pointer (param_values + 0); 1161s # data2 = closure->data; 1161s # } 1161s # 1161s # callback = (_GDbusCodegenMarshalVoid_Uint64Func) 1161s # (marshal_data ? marshal_data : cc->callback); 1161s # 1161s # callback (data1, 1161s # g_marshal_value_peek_uint64 (param_values + 1), 1161s # data2); 1161s # } 1161s # 1161s # /* ------------------------------------------------------------------------ 1161s # * Code for interface org.project.SignalingIface 1161s # * ------------------------------------------------------------------------ 1161s # */ 1161s # 1161s # /** 1161s # * SECTION:OrgProjectSignalingIface 1161s # * @title: OrgProjectSignalingIface 1161s # * @short_description: Generated C code for the org.project.SignalingIface D-Bus interface 1161s # * 1161s # * This section contains code for working with the org.project.SignalingIface D-Bus interface in C. 1161s # */ 1161s # 1161s # enum 1161s # { 1161s # _ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL, 1161s # _ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_T, 1161s # }; 1161s # 1161s # static unsigned _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[2] = { 0 }; 1161s # 1161s # /* ---- Introspection data for org.project.SignalingIface ---- */ 1161s # 1161s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_simple_signal = 1161s # { 1161s # { 1161s # -1, 1161s # (gchar *) "SimpleSignal", 1161s # NULL, 1161s # NULL 1161s # }, 1161s # "simple-signal" 1161s # }; 1161s # 1161s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_single_arg_signal_t_ARG_arg_t = 1161s # { 1161s # { 1161s # -1, 1161s # (gchar *) "arg_t", 1161s # (gchar *) "t", 1161s # NULL 1161s # }, 1161s # FALSE 1161s # }; 1161s # 1161s # static const GDBusArgInfo * const _org_project_signaling_iface_signal_info_single_arg_signal_t_ARG_pointers[] = 1161s # { 1161s # &_org_project_signaling_iface_signal_info_single_arg_signal_t_ARG_arg_t.parent_struct, 1161s # NULL 1161s # }; 1161s # 1161s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_single_arg_signal_t = 1161s # { 1161s # { 1161s # -1, 1161s # (gchar *) "SingleArgSignalT", 1161s # (GDBusArgInfo **) &_org_project_signaling_iface_signal_info_single_arg_signal_t_ARG_pointers, 1161s # NULL 1161s # }, 1161s # "single-arg-signal-t" 1161s # }; 1161s # 1161s # static const GDBusSignalInfo * const _org_project_signaling_iface_signal_info_pointers[] = 1161s # { 1161s # &_org_project_signaling_iface_signal_info_simple_signal.parent_struct, 1161s # &_org_project_signaling_iface_signal_info_single_arg_signal_t.parent_struct, 1161s # NULL 1161s # }; 1161s # 1161s # static const _ExtendedGDBusInterfaceInfo _org_project_signaling_iface_interface_info = 1161s # { 1161s # { 1161s # -1, 1161s # (gchar *) "org.project.SignalingIface", 1161s # NULL, 1161s # (GDBusSignalInfo **) &_org_project_signaling_iface_signal_info_pointers, 1161s # NULL, 1161s # NULL 1161s # }, 1161s # "org-project-signaling-iface", 1161s # }; 1161s # 1161s # 1161s # /** 1161s # * org_project_signaling_iface_interface_info: 1161s # * 1161s # * Gets a machine-readable description of the org.project.SignalingIface D-Bus interface. 1161s # * 1161s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 1161s # */ 1161s # GDBusInterfaceInfo * 1161s # org_project_signaling_iface_interface_info (void) 1161s # { 1161s # return (GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct; 1161s # } 1161s # 1161s # /** 1161s # * org_project_signaling_iface_override_properties: 1161s # * @klass: The class structure for a #GObject derived class. 1161s # * @property_id_begin: The property id to assign to the first overridden property. 1161s # * 1161s # * Overrides all #GObject properties in the #OrgProjectSignalingIface interface for a concrete class. 1161s # * The properties are overridden in the order they are defined. 1161s # * 1161s # * Returns: The last property id. 1161s # */ 1161s # guint 1161s # org_project_signaling_iface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 1161s # { 1161s # return property_id_begin - 1; 1161s # } 1161s # 1161s # 1161s # inline static void 1161s # org_project_signaling_iface_signal_marshal_simple_signal ( 1161s # GClosure *closure, 1161s # GValue *return_value, 1161s # unsigned int n_param_values, 1161s # const GValue *param_values, 1161s # void *invocation_hint, 1161s # void *marshal_data) 1161s # { 1161s # g_cclosure_marshal_VOID__VOID (closure, 1161s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1161s # } 1161s # 1161s # inline static void 1161s # org_project_signaling_iface_signal_marshal_single_arg_signal_t ( 1161s # GClosure *closure, 1161s # GValue *return_value, 1161s # unsigned int n_param_values, 1161s # const GValue *param_values, 1161s # void *invocation_hint, 1161s # void *marshal_data) 1161s # { 1161s # _g_dbus_codegen_marshal_VOID__UINT64 (closure, 1161s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1161s # } 1161s # 1161s # 1161s # /** 1161s # * OrgProjectSignalingIface: 1161s # * 1161s # * Abstract interface type for the D-Bus interface org.project.SignalingIface. 1161s # */ 1161s # 1161s # /** 1161s # * OrgProjectSignalingIfaceIface: 1161s # * @parent_iface: The parent interface. 1161s # * @simple_signal: Handler for the #OrgProjectSignalingIface::simple-signal signal. 1161s # * @single_arg_signal_t: Handler for the #OrgProjectSignalingIface::single-arg-signal-t signal. 1161s # * 1161s # * Virtual table for the D-Bus interface org.project.SignalingIface. 1161s # */ 1161s # 1161s # typedef OrgProjectSignalingIfaceIface OrgProjectSignalingIfaceInterface; 1161s # G_DEFINE_INTERFACE (OrgProjectSignalingIface, org_project_signaling_iface, G_TYPE_OBJECT) 1161s # 1161s # static void 1161s # org_project_signaling_iface_default_init (OrgProjectSignalingIfaceIface *iface) 1161s # { 1161s # /* GObject signals for received D-Bus signals: */ 1161s # /** 1161s # * OrgProjectSignalingIface::simple-signal: 1161s # * @object: A #OrgProjectSignalingIface. 1161s # * 1161s # * On the client-side, this signal is emitted whenever the D-Bus signal "SimpleSignal" is received. 1161s # * 1161s # * 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. 1161s # */ 1161s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL] = 1161s # g_signal_new ("simple-signal", 1161s # G_TYPE_FROM_INTERFACE (iface), 1161s # G_SIGNAL_RUN_LAST, 1161s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, simple_signal), 1161s # NULL, 1161s # NULL, 1161s # org_project_signaling_iface_signal_marshal_simple_signal, 1161s # G_TYPE_NONE, 1161s # 0); 1161s # 1161s # /** 1161s # * OrgProjectSignalingIface::single-arg-signal-t: 1161s # * @object: A #OrgProjectSignalingIface. 1161s # * @arg_arg_t: Argument. 1161s # * 1161s # * On the client-side, this signal is emitted whenever the D-Bus signal "SingleArgSignalT" is received. 1161s # * 1161s # * 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. 1161s # */ 1161s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_T] = 1161s # g_signal_new ("single-arg-signal-t", 1161s # G_TYPE_FROM_INTERFACE (iface), 1161s # G_SIGNAL_RUN_LAST, 1161s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, single_arg_signal_t), 1161s # NULL, 1161s # NULL, 1161s # org_project_signaling_iface_signal_marshal_single_arg_signal_t, 1161s # G_TYPE_NONE, 1161s # 1, G_TYPE_UINT64); 1161s # 1161s # } 1161s # 1161s # /** 1161s # * org_project_signaling_iface_emit_simple_signal: 1161s # * @object: A #OrgProjectSignalingIface. 1161s # * 1161s # * Emits the "SimpleSignal" D-Bus signal. 1161s # */ 1161s # void 1161s # org_project_signaling_iface_emit_simple_signal ( 1161s # OrgProjectSignalingIface *object) 1161s # { 1161s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL], 0); 1161s # } 1161s # 1161s # /** 1161s # * org_project_signaling_iface_emit_single_arg_signal_t: 1161s # * @object: A #OrgProjectSignalingIface. 1161s # * @arg_arg_t: Argument to pass with the signal. 1161s # * 1161s # * Emits the "SingleArgSignalT" D-Bus signal. 1161s # */ 1161s # void 1161s # org_project_signaling_iface_emit_single_arg_signal_t ( 1161s # OrgProjectSignalingIface *object, 1161s # guint64 arg_arg_t) 1161s # { 1161s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_T], 0, arg_arg_t); 1161s # } 1161s # 1161s # /* ------------------------------------------------------------------------ */ 1161s # 1161s # /** 1161s # * OrgProjectSignalingIfaceProxy: 1161s # * 1161s # * The #OrgProjectSignalingIfaceProxy structure contains only private data and should only be accessed using the provided API. 1161s # */ 1161s # 1161s # /** 1161s # * OrgProjectSignalingIfaceProxyClass: 1161s # * @parent_class: The parent class. 1161s # * 1161s # * Class structure for #OrgProjectSignalingIfaceProxy. 1161s # */ 1161s # 1161s # struct _OrgProjectSignalingIfaceProxyPrivate 1161s # { 1161s # GData *qdata; 1161s # }; 1161s # 1161s # static void org_project_signaling_iface_proxy_iface_init (OrgProjectSignalingIfaceIface *iface); 1161s # 1161s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1161s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceProxy, org_project_signaling_iface_proxy, G_TYPE_DBUS_PROXY, 1161s # G_ADD_PRIVATE (OrgProjectSignalingIfaceProxy) 1161s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_proxy_iface_init)) 1161s # 1161s # #else 1161s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceProxy, org_project_signaling_iface_proxy, G_TYPE_DBUS_PROXY, 1161s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_proxy_iface_init)) 1161s # 1161s # #endif 1161s # static void 1161s # org_project_signaling_iface_proxy_finalize (GObject *object) 1161s # { 1161s # OrgProjectSignalingIfaceProxy *proxy = ORG_PROJECT_SIGNALING_IFACE_PROXY (object); 1161s # g_datalist_clear (&proxy->priv->qdata); 1161s # G_OBJECT_CLASS (org_project_signaling_iface_proxy_parent_class)->finalize (object); 1161s # } 1161s # 1161s # static void 1161s # org_project_signaling_iface_proxy_get_property (GObject *object G_GNUC_UNUSED, 1161s # guint prop_id G_GNUC_UNUSED, 1161s # GValue *value G_GNUC_UNUSED, 1161s # GParamSpec *pspec G_GNUC_UNUSED) 1161s # { 1161s # } 1161s # 1161s # static void 1161s # org_project_signaling_iface_proxy_set_property (GObject *object G_GNUC_UNUSED, 1161s # guint prop_id G_GNUC_UNUSED, 1161s # const GValue *value G_GNUC_UNUSED, 1161s # GParamSpec *pspec G_GNUC_UNUSED) 1161s # { 1161s # } 1161s # 1161s # static void 1161s # org_project_signaling_iface_proxy_g_signal (GDBusProxy *proxy, 1161s # const gchar *sender_name G_GNUC_UNUSED, 1161s # const gchar *signal_name, 1161s # GVariant *parameters) 1161s # { 1161s # _ExtendedGDBusSignalInfo *info; 1161s # GVariantIter iter; 1161s # GVariant *child; 1161s # GValue *paramv; 1161s # gsize num_params; 1161s # gsize n; 1161s # guint signal_id; 1161s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, signal_name); 1161s # if (info == NULL) 1161s # return; 1161s # num_params = g_variant_n_children (parameters); 1161s # paramv = g_new0 (GValue, num_params + 1); 1161s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_SIGNALING_IFACE); 1161s # g_value_set_object (¶mv[0], proxy); 1161s # g_variant_iter_init (&iter, parameters); 1161s # n = 1; 1161s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1161s # { 1161s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 1161s # if (arg_info->use_gvariant) 1161s # { 1161s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1161s # g_value_set_variant (¶mv[n], child); 1161s # n++; 1161s # } 1161s # else 1161s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1161s # g_variant_unref (child); 1161s # } 1161s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_SIGNALING_IFACE); 1161s # g_signal_emitv (paramv, signal_id, 0, NULL); 1161s # for (n = 0; n < num_params + 1; n++) 1161s # g_value_unset (¶mv[n]); 1161s # g_free (paramv); 1161s # } 1161s # 1161s # static void 1161s # org_project_signaling_iface_proxy_g_properties_changed (GDBusProxy *_proxy, 1161s # GVariant *changed_properties, 1161s # const gchar *const *invalidated_properties) 1161s # { 1161s # OrgProjectSignalingIfaceProxy *proxy = ORG_PROJECT_SIGNALING_IFACE_PROXY (_proxy); 1161s # guint n; 1161s # const gchar *key; 1161s # GVariantIter *iter; 1161s # _ExtendedGDBusPropertyInfo *info; 1161s # g_variant_get (changed_properties, "a{sv}", &iter); 1161s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 1161s # { 1161s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, key); 1161s # g_datalist_remove_data (&proxy->priv->qdata, key); 1161s # if (info != NULL) 1161s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1161s # } 1161s # g_variant_iter_free (iter); 1161s # for (n = 0; invalidated_properties[n] != NULL; n++) 1161s # { 1161s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, invalidated_properties[n]); 1161s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 1161s # if (info != NULL) 1161s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1161s # } 1161s # } 1161s # 1161s # static void 1161s # org_project_signaling_iface_proxy_init (OrgProjectSignalingIfaceProxy *proxy) 1161s # { 1161s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1161s # proxy->priv = org_project_signaling_iface_proxy_get_instance_private (proxy); 1161s # #else 1161s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_SIGNALING_IFACE_PROXY, OrgProjectSignalingIfaceProxyPrivate); 1161s # #endif 1161s # 1161s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_signaling_iface_interface_info ()); 1161s # } 1161s # 1161s # static void 1161s # org_project_signaling_iface_proxy_class_init (OrgProjectSignalingIfaceProxyClass *klass) 1161s # { 1161s # GObjectClass *gobject_class; 1161s # GDBusProxyClass *proxy_class; 1161s # 1161s # gobject_class = G_OBJECT_CLASS (klass); 1161s # gobject_class->finalize = org_project_signaling_iface_proxy_finalize; 1161s # gobject_class->get_property = org_project_signaling_iface_proxy_get_property; 1161s # gobject_class->set_property = org_project_signaling_iface_proxy_set_property; 1161s # 1161s # proxy_class = G_DBUS_PROXY_CLASS (klass); 1161s # proxy_class->g_signal = org_project_signaling_iface_proxy_g_signal; 1161s # proxy_class->g_properties_changed = org_project_signaling_iface_proxy_g_properties_changed; 1161s # 1161s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1161s # g_type_class_add_private (klass, sizeof (OrgProjectSignalingIfaceProxyPrivate)); 1161s # #endif 1161s # } 1161s # 1161s # static void 1161s # org_project_signaling_iface_proxy_iface_init (OrgProjectSignalingIfaceIface *iface G_GNUC_UNUSED) 1161s # { 1161s # } 1161s # 1161s # /** 1161s # * org_project_signaling_iface_proxy_new: 1161s # * @connection: A #GDBusConnection. 1161s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1161s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1161s # * @object_path: An object path. 1161s # * @cancellable: (nullable): A #GCancellable or %NULL. 1161s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1161s # * @user_data: User data to pass to @callback. 1161s # * 1161s # * Asynchronously creates a proxy for the D-Bus interface org.project.SignalingIface. See g_dbus_proxy_new() for more details. 1161s # * 1161s # * 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()). 1161s # * You can then call org_project_signaling_iface_proxy_new_finish() to get the result of the operation. 1161s # * 1161s # * See org_project_signaling_iface_proxy_new_sync() for the synchronous, blocking version of this constructor. 1161s # */ 1161s # void 1161s # org_project_signaling_iface_proxy_new ( 1161s # GDBusConnection *connection, 1161s # GDBusProxyFlags flags, 1161s # const gchar *name, 1161s # const gchar *object_path, 1161s # GCancellable *cancellable, 1161s # GAsyncReadyCallback callback, 1161s # gpointer user_data) 1161s # { 1161s # 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); 1161s # } 1161s # 1161s # /** 1161s # * org_project_signaling_iface_proxy_new_finish: 1161s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_signaling_iface_proxy_new(). 1161s # * @error: Return location for error or %NULL 1161s # * 1161s # * Finishes an operation started with org_project_signaling_iface_proxy_new(). 1161s # * 1161s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 1161s # */ 1161s # OrgProjectSignalingIface * 1161s # org_project_signaling_iface_proxy_new_finish ( 1161s # GAsyncResult *res, 1161s # GError **error) 1161s # { 1161s # GObject *ret; 1161s # GObject *source_object; 1161s # source_object = g_async_result_get_source_object (res); 1161s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1161s # g_object_unref (source_object); 1161s # if (ret != NULL) 1161s # return ORG_PROJECT_SIGNALING_IFACE (ret); 1161s # else 1161s # return NULL; 1161s # } 1161s # 1161s # /** 1161s # * org_project_signaling_iface_proxy_new_sync: 1161s # * @connection: A #GDBusConnection. 1161s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1161s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1161s # * @object_path: An object path. 1161s # * @cancellable: (nullable): A #GCancellable or %NULL. 1161s # * @error: Return location for error or %NULL 1161s # * 1161s # * Synchronously creates a proxy for the D-Bus interface org.project.SignalingIface. See g_dbus_proxy_new_sync() for more details. 1161s # * 1161s # * The calling thread is blocked until a reply is received. 1161s # * 1161s # * See org_project_signaling_iface_proxy_new() for the asynchronous version of this constructor. 1161s # * 1161s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 1161s # */ 1161s # OrgProjectSignalingIface * 1161s # org_project_signaling_iface_proxy_new_sync ( 1161s # GDBusConnection *connection, 1161s # GDBusProxyFlags flags, 1161s # const gchar *name, 1161s # const gchar *object_path, 1161s # GCancellable *cancellable, 1161s # GError **error) 1161s # { 1161s # GInitable *ret; 1161s # 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); 1161s # if (ret != NULL) 1161s # return ORG_PROJECT_SIGNALING_IFACE (ret); 1161s # else 1161s # return NULL; 1161s # } 1161s # 1161s # 1161s # /** 1161s # * org_project_signaling_iface_proxy_new_for_bus: 1161s # * @bus_type: A #GBusType. 1161s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1161s # * @name: A bus name (well-known or unique). 1161s # * @object_path: An object path. 1161s # * @cancellable: (nullable): A #GCancellable or %NULL. 1161s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1161s # * @user_data: User data to pass to @callback. 1161s # * 1161s # * Like org_project_signaling_iface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 1161s # * 1161s # * 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()). 1161s # * You can then call org_project_signaling_iface_proxy_new_for_bus_finish() to get the result of the operation. 1161s # * 1161s # * See org_project_signaling_iface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 1161s # */ 1161s # void 1161s # org_project_signaling_iface_proxy_new_for_bus ( 1161s # GBusType bus_type, 1161s # GDBusProxyFlags flags, 1161s # const gchar *name, 1161s # const gchar *object_path, 1161s # GCancellable *cancellable, 1161s # GAsyncReadyCallback callback, 1161s # gpointer user_data) 1161s # { 1161s # 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); 1161s # } 1161s # 1161s # /** 1161s # * org_project_signaling_iface_proxy_new_for_bus_finish: 1161s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_signaling_iface_proxy_new_for_bus(). 1161s # * @error: Return location for error or %NULL 1161s # * 1161s # * Finishes an operation started with org_project_signaling_iface_proxy_new_for_bus(). 1161s # * 1161s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 1161s # */ 1161s # OrgProjectSignalingIface * 1161s # org_project_signaling_iface_proxy_new_for_bus_finish ( 1161s # GAsyncResult *res, 1161s # GError **error) 1161s # { 1161s # GObject *ret; 1161s # GObject *source_object; 1161s # source_object = g_async_result_get_source_object (res); 1161s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1161s # g_object_unref (source_object); 1161s # if (ret != NULL) 1161s # return ORG_PROJECT_SIGNALING_IFACE (ret); 1161s # else 1161s # return NULL; 1161s # } 1161s # 1161s # /** 1161s # * org_project_signaling_iface_proxy_new_for_bus_sync: 1161s # * @bus_type: A #GBusType. 1161s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1161s # * @name: A bus name (well-known or unique). 1161s # * @object_path: An object path. 1161s # * @cancellable: (nullable): A #GCancellable or %NULL. 1161s # * @error: Return location for error or %NULL 1161s # * 1161s # * Like org_project_signaling_iface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 1161s # * 1161s # * The calling thread is blocked until a reply is received. 1161s # * 1161s # * See org_project_signaling_iface_proxy_new_for_bus() for the asynchronous version of this constructor. 1161s # * 1161s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 1161s # */ 1161s # OrgProjectSignalingIface * 1161s # org_project_signaling_iface_proxy_new_for_bus_sync ( 1161s # GBusType bus_type, 1161s # GDBusProxyFlags flags, 1161s # const gchar *name, 1161s # const gchar *object_path, 1161s # GCancellable *cancellable, 1161s # GError **error) 1161s # { 1161s # GInitable *ret; 1161s # 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); 1161s # if (ret != NULL) 1161s # return ORG_PROJECT_SIGNALING_IFACE (ret); 1161s # else 1161s # return NULL; 1161s # } 1161s # 1161s # 1161s # /* ------------------------------------------------------------------------ */ 1161s # 1161s # /** 1161s # * OrgProjectSignalingIfaceSkeleton: 1161s # * 1161s # * The #OrgProjectSignalingIfaceSkeleton structure contains only private data and should only be accessed using the provided API. 1161s # */ 1161s # 1161s # /** 1161s # * OrgProjectSignalingIfaceSkeletonClass: 1161s # * @parent_class: The parent class. 1161s # * 1161s # * Class structure for #OrgProjectSignalingIfaceSkeleton. 1161s # */ 1161s # 1161s # struct _OrgProjectSignalingIfaceSkeletonPrivate 1161s # { 1161s # GValue *properties; 1161s # GList *changed_properties; 1161s # GSource *changed_properties_idle_source; 1161s # GMainContext *context; 1161s # GMutex lock; 1161s # }; 1161s # 1161s # static void 1161s # _org_project_signaling_iface_skeleton_handle_method_call ( 1161s # GDBusConnection *connection G_GNUC_UNUSED, 1161s # const gchar *sender G_GNUC_UNUSED, 1161s # const gchar *object_path G_GNUC_UNUSED, 1161s # const gchar *interface_name, 1161s # const gchar *method_name, 1161s # GVariant *parameters, 1161s # GDBusMethodInvocation *invocation, 1161s # gpointer user_data) 1161s # { 1161s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 1161s # _ExtendedGDBusMethodInfo *info; 1161s # GVariantIter iter; 1161s # GVariant *child; 1161s # GValue *paramv; 1161s # gsize num_params; 1161s # guint num_extra; 1161s # gsize n; 1161s # guint signal_id; 1161s # GValue return_value = G_VALUE_INIT; 1161s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 1161s # g_assert (info != NULL); 1161s # num_params = g_variant_n_children (parameters); 1161s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 1161s # n = 0; 1161s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_SIGNALING_IFACE); 1161s # g_value_set_object (¶mv[n++], skeleton); 1161s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 1161s # g_value_set_object (¶mv[n++], invocation); 1161s # if (info->pass_fdlist) 1161s # { 1161s # #ifdef G_OS_UNIX 1161s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 1161s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 1161s # #else 1161s # g_assert_not_reached (); 1161s # #endif 1161s # } 1161s # g_variant_iter_init (&iter, parameters); 1161s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1161s # { 1161s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 1161s # if (arg_info->use_gvariant) 1161s # { 1161s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1161s # g_value_set_variant (¶mv[n], child); 1161s # n++; 1161s # } 1161s # else 1161s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1161s # g_variant_unref (child); 1161s # } 1161s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_SIGNALING_IFACE); 1161s # g_value_init (&return_value, G_TYPE_BOOLEAN); 1161s # g_signal_emitv (paramv, signal_id, 0, &return_value); 1161s # if (!g_value_get_boolean (&return_value)) 1161s # 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); 1161s # g_value_unset (&return_value); 1161s # for (n = 0; n < num_params + num_extra; n++) 1161s # g_value_unset (¶mv[n]); 1161s # g_free (paramv); 1161s # } 1161s # 1161s # static GVariant * 1161s # _org_project_signaling_iface_skeleton_handle_get_property ( 1161s # GDBusConnection *connection G_GNUC_UNUSED, 1161s # const gchar *sender G_GNUC_UNUSED, 1161s # const gchar *object_path G_GNUC_UNUSED, 1161s # const gchar *interface_name G_GNUC_UNUSED, 1161s # const gchar *property_name, 1161s # GError **error, 1161s # gpointer user_data) 1161s # { 1161s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 1161s # GValue value = G_VALUE_INIT; 1161s # GParamSpec *pspec; 1161s # _ExtendedGDBusPropertyInfo *info; 1161s # GVariant *ret; 1161s # ret = NULL; 1161s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, property_name); 1161s # g_assert (info != NULL); 1161s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1161s # if (pspec == NULL) 1161s # { 1161s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1161s # } 1161s # else 1161s # { 1161s # g_value_init (&value, pspec->value_type); 1161s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1161s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 1161s # g_value_unset (&value); 1161s # } 1161s # return ret; 1161s # } 1161s # 1161s # static gboolean 1161s # _org_project_signaling_iface_skeleton_handle_set_property ( 1161s # GDBusConnection *connection G_GNUC_UNUSED, 1161s # const gchar *sender G_GNUC_UNUSED, 1161s # const gchar *object_path G_GNUC_UNUSED, 1161s # const gchar *interface_name G_GNUC_UNUSED, 1161s # const gchar *property_name, 1161s # GVariant *variant, 1161s # GError **error, 1161s # gpointer user_data) 1161s # { 1161s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 1161s # GValue value = G_VALUE_INIT; 1161s # GParamSpec *pspec; 1161s # _ExtendedGDBusPropertyInfo *info; 1161s # gboolean ret; 1161s # ret = FALSE; 1161s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, property_name); 1161s # g_assert (info != NULL); 1161s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1161s # if (pspec == NULL) 1161s # { 1161s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1161s # } 1161s # else 1161s # { 1161s # if (info->use_gvariant) 1161s # g_value_set_variant (&value, variant); 1161s # else 1161s # g_dbus_gvariant_to_gvalue (variant, &value); 1161s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1161s # g_value_unset (&value); 1161s # ret = TRUE; 1161s # } 1161s # return ret; 1161s # } 1161s # 1161s # static const GDBusInterfaceVTable _org_project_signaling_iface_skeleton_vtable = 1161s # { 1161s # _org_project_signaling_iface_skeleton_handle_method_call, 1161s # _org_project_signaling_iface_skeleton_handle_get_property, 1161s # _org_project_signaling_iface_skeleton_handle_set_property, 1161s # {NULL} 1161s # }; 1161s # 1161s # static GDBusInterfaceInfo * 1161s # org_project_signaling_iface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1161s # { 1161s # return org_project_signaling_iface_interface_info (); 1161s # } 1161s # 1161s # static GDBusInterfaceVTable * 1161s # org_project_signaling_iface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1161s # { 1161s # return (GDBusInterfaceVTable *) &_org_project_signaling_iface_skeleton_vtable; 1161s # } 1161s # 1161s # static GVariant * 1161s # org_project_signaling_iface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 1161s # { 1161s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (_skeleton); 1161s # 1161s # GVariantBuilder builder; 1161s # guint n; 1161s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 1161s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 1161s # #else 1161s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 1161s # #endif 1161s # if (_org_project_signaling_iface_interface_info.parent_struct.properties == NULL) 1161s # goto out; 1161s # for (n = 0; _org_project_signaling_iface_interface_info.parent_struct.properties[n] != NULL; n++) 1161s # { 1161s # GDBusPropertyInfo *info = _org_project_signaling_iface_interface_info.parent_struct.properties[n]; 1161s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 1161s # { 1161s # GVariant *value; 1161s # 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); 1161s # if (value != NULL) 1161s # { 1161s # g_variant_take_ref (value); 1161s # g_variant_builder_add (&builder, "{sv}", info->name, value); 1161s # g_variant_unref (value); 1161s # } 1161s # } 1161s # } 1161s # out: 1161s # return g_variant_builder_end (&builder); 1161s # } 1161s # 1161s # static void 1161s # org_project_signaling_iface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 1161s # { 1161s # } 1161s # 1161s # static void 1161s # _org_project_signaling_iface_on_signal_simple_signal ( 1161s # OrgProjectSignalingIface *object) 1161s # { 1161s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 1161s # 1161s # GList *connections, *l; 1161s # GVariant *signal_variant; 1161s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 1161s # 1161s # signal_variant = g_variant_ref_sink (g_variant_new ("()")); 1161s # for (l = connections; l != NULL; l = l->next) 1161s # { 1161s # GDBusConnection *connection = l->data; 1161s # g_dbus_connection_emit_signal (connection, 1161s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SimpleSignal", 1161s # signal_variant, NULL); 1161s # } 1161s # g_variant_unref (signal_variant); 1161s # g_list_free_full (connections, g_object_unref); 1161s # } 1161s # 1161s # static void 1161s # _org_project_signaling_iface_on_signal_single_arg_signal_t ( 1161s # OrgProjectSignalingIface *object, 1161s # guint64 arg_arg_t) 1161s # { 1161s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 1161s # 1161s # GList *connections, *l; 1161s # GVariant *signal_variant; 1161s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 1161s # 1161s # signal_variant = g_variant_ref_sink (g_variant_new ("(t)", 1161s # arg_arg_t)); 1161s # for (l = connections; l != NULL; l = l->next) 1161s # { 1161s # GDBusConnection *connection = l->data; 1161s # g_dbus_connection_emit_signal (connection, 1161s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SingleArgSignalT", 1161s # signal_variant, NULL); 1161s # } 1161s # g_variant_unref (signal_variant); 1161s # g_list_free_full (connections, g_object_unref); 1161s # } 1161s # 1161s # static void org_project_signaling_iface_skeleton_iface_init (OrgProjectSignalingIfaceIface *iface); 1161s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1161s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceSkeleton, org_project_signaling_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1161s # G_ADD_PRIVATE (OrgProjectSignalingIfaceSkeleton) 1161s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_skeleton_iface_init)) 1161s # 1161s # #else 1161s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceSkeleton, org_project_signaling_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1161s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_skeleton_iface_init)) 1161s # 1161s # #endif 1161s # static void 1161s # org_project_signaling_iface_skeleton_finalize (GObject *object) 1161s # { 1161s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 1161s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 1161s # if (skeleton->priv->changed_properties_idle_source != NULL) 1161s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 1161s # g_main_context_unref (skeleton->priv->context); 1161s # g_mutex_clear (&skeleton->priv->lock); 1161s # G_OBJECT_CLASS (org_project_signaling_iface_skeleton_parent_class)->finalize (object); 1161s # } 1161s # 1161s # static void 1161s # org_project_signaling_iface_skeleton_init (OrgProjectSignalingIfaceSkeleton *skeleton) 1161s # { 1161s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1161s # skeleton->priv = org_project_signaling_iface_skeleton_get_instance_private (skeleton); 1161s # #else 1161s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_SIGNALING_IFACE_SKELETON, OrgProjectSignalingIfaceSkeletonPrivate); 1161s # #endif 1161s # 1161s # g_mutex_init (&skeleton->priv->lock); 1161s # skeleton->priv->context = g_main_context_ref_thread_default (); 1161s # } 1161s # 1161s # static void 1161s # org_project_signaling_iface_skeleton_class_init (OrgProjectSignalingIfaceSkeletonClass *klass) 1161s # { 1161s # GObjectClass *gobject_class; 1161s # GDBusInterfaceSkeletonClass *skeleton_class; 1161s # 1161s # gobject_class = G_OBJECT_CLASS (klass); 1161s # gobject_class->finalize = org_project_signaling_iface_skeleton_finalize; 1161s # 1161s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 1161s # skeleton_class->get_info = org_project_signaling_iface_skeleton_dbus_interface_get_info; 1161s # skeleton_class->get_properties = org_project_signaling_iface_skeleton_dbus_interface_get_properties; 1161s # skeleton_class->flush = org_project_signaling_iface_skeleton_dbus_interface_flush; 1161s # skeleton_class->get_vtable = org_project_signaling_iface_skeleton_dbus_interface_get_vtable; 1161s # 1161s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1161s # g_type_class_add_private (klass, sizeof (OrgProjectSignalingIfaceSkeletonPrivate)); 1161s # #endif 1161s # } 1161s # 1161s # static void 1161s # org_project_signaling_iface_skeleton_iface_init (OrgProjectSignalingIfaceIface *iface) 1161s # { 1161s # iface->simple_signal = _org_project_signaling_iface_on_signal_simple_signal; 1161s # iface->single_arg_signal_t = _org_project_signaling_iface_on_signal_single_arg_signal_t; 1161s # } 1161s # 1161s # /** 1161s # * org_project_signaling_iface_skeleton_new: 1161s # * 1161s # * Creates a skeleton object for the D-Bus interface org.project.SignalingIface. 1161s # * 1161s # * Returns: (transfer full) (type OrgProjectSignalingIfaceSkeleton): The skeleton object. 1161s # */ 1161s # OrgProjectSignalingIface * 1161s # org_project_signaling_iface_skeleton_new (void) 1161s # { 1161s # return ORG_PROJECT_SIGNALING_IFACE (g_object_new (TYPE_ORG_PROJECT_SIGNALING_IFACE_SKELETON, NULL)); 1161s # } 1161s # Error: 1161s # 1161s # /tmp/tmpjwrvmpd2/tmpnnwca596.xml: 1161s # 1161s # 1161s # 1161s # 1161s # 1161s # 1161s # 1161s # 1161s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpjwrvmpd2/tmpnnwca596.xml', '--output', '-', '--body'] 1161s # Return code: 0 1161s # Output: 1161s # /* 1161s # * This file is generated by gdbus-codegen, do not modify it. 1161s # * 1161s # * The license of this code is the same as for the D-Bus interface description 1161s # * it was derived from. Note that it links to GLib, so must comply with the 1161s # * LGPL linking clauses. 1161s # */ 1161s # 1161s # #ifdef HAVE_CONFIG_H 1161s # # include "config.h" 1161s # #endif 1161s # 1161s # #include 1161s # #ifdef G_OS_UNIX 1161s # # include 1161s # #endif 1161s # 1161s # #ifdef G_ENABLE_DEBUG 1161s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 1161s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 1161s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 1161s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 1161s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 1161s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 1161s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 1161s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 1161s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 1161s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 1161s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 1161s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 1161s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 1161s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 1161s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 1161s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 1161s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 1161s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 1161s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 1161s # #else /* !G_ENABLE_DEBUG */ 1161s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 1161s # * Do not access GValues directly in your code. Instead, use the 1161s # * g_value_get_*() functions 1161s # */ 1161s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 1161s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 1161s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 1161s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 1161s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 1161s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 1161s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 1161s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 1161s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 1161s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 1161s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 1161s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 1161s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 1161s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 1161s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 1161s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 1161s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 1161s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 1161s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 1161s # #endif /* !G_ENABLE_DEBUG */ 1161s # 1161s # typedef struct 1161s # { 1161s # GDBusArgInfo parent_struct; 1161s # gboolean use_gvariant; 1161s # } _ExtendedGDBusArgInfo; 1161s # 1161s # typedef struct 1161s # { 1161s # GDBusMethodInfo parent_struct; 1161s # const gchar *signal_name; 1161s # gboolean pass_fdlist; 1161s # } _ExtendedGDBusMethodInfo; 1161s # 1161s # typedef struct 1161s # { 1161s # GDBusSignalInfo parent_struct; 1161s # const gchar *signal_name; 1161s # } _ExtendedGDBusSignalInfo; 1161s # 1161s # typedef struct 1161s # { 1161s # GDBusPropertyInfo parent_struct; 1161s # const gchar *hyphen_name; 1161s # guint use_gvariant : 1; 1161s # guint emits_changed_signal : 1; 1161s # } _ExtendedGDBusPropertyInfo; 1161s # 1161s # typedef struct 1161s # { 1161s # GDBusInterfaceInfo parent_struct; 1161s # const gchar *hyphen_name; 1161s # } _ExtendedGDBusInterfaceInfo; 1161s # 1161s # typedef struct 1161s # { 1161s # const _ExtendedGDBusPropertyInfo *info; 1161s # guint prop_id; 1161s # GValue orig_value; /* the value before the change */ 1161s # } ChangedProperty; 1161s # 1161s # static void 1161s # _changed_property_free (ChangedProperty *data) 1161s # { 1161s # g_value_unset (&data->orig_value); 1161s # g_free (data); 1161s # } 1161s # 1161s # static gboolean 1161s # _g_strv_equal0 (gchar **a, gchar **b) 1161s # { 1161s # gboolean ret = FALSE; 1161s # guint n; 1161s # if (a == NULL && b == NULL) 1161s # { 1161s # ret = TRUE; 1161s # goto out; 1161s # } 1161s # if (a == NULL || b == NULL) 1161s # goto out; 1161s # if (g_strv_length (a) != g_strv_length (b)) 1161s # goto out; 1161s # for (n = 0; a[n] != NULL; n++) 1161s # if (g_strcmp0 (a[n], b[n]) != 0) 1161s # goto out; 1161s # ret = TRUE; 1161s # out: 1161s # return ret; 1161s # } 1161s # 1161s # static gboolean 1161s # _g_variant_equal0 (GVariant *a, GVariant *b) 1161s # { 1161s # gboolean ret = FALSE; 1161s # if (a == NULL && b == NULL) 1161s # { 1161s # ret = TRUE; 1161s # goto out; 1161s # } 1161s # if (a == NULL || b == NULL) 1161s # goto out; 1161s # ret = g_variant_equal (a, b); 1161s # out: 1161s # return ret; 1161s # } 1161s # 1161s # G_GNUC_UNUSED static gboolean 1161s # _g_value_equal (const GValue *a, const GValue *b) 1161s # { 1161s # gboolean ret = FALSE; 1161s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 1161s # switch (G_VALUE_TYPE (a)) 1161s # { 1161s # case G_TYPE_BOOLEAN: 1161s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 1161s # break; 1161s # case G_TYPE_UCHAR: 1161s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 1161s # break; 1161s # case G_TYPE_INT: 1161s # ret = (g_value_get_int (a) == g_value_get_int (b)); 1161s # break; 1161s # case G_TYPE_UINT: 1161s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 1161s # break; 1161s # case G_TYPE_INT64: 1161s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 1161s # break; 1161s # case G_TYPE_UINT64: 1161s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 1161s # break; 1161s # case G_TYPE_DOUBLE: 1161s # { 1161s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 1161s # gdouble da = g_value_get_double (a); 1161s # gdouble db = g_value_get_double (b); 1161s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 1161s # } 1161s # break; 1161s # case G_TYPE_STRING: 1161s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 1161s # break; 1161s # case G_TYPE_VARIANT: 1161s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 1161s # break; 1161s # default: 1161s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 1161s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 1161s # else 1161s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 1161s # break; 1161s # } 1161s # return ret; 1161s # } 1161s # 1161s # /* ------------------------------------------------------------------------ 1161s # * Code for interface org.project.SignalingIface 1161s # * ------------------------------------------------------------------------ 1161s # */ 1161s # 1161s # /** 1161s # * SECTION:OrgProjectSignalingIface 1161s # * @title: OrgProjectSignalingIface 1161s # * @short_description: Generated C code for the org.project.SignalingIface D-Bus interface 1161s # * 1161s # * This section contains code for working with the org.project.SignalingIface D-Bus interface in C. 1161s # */ 1161s # 1161s # enum 1161s # { 1161s # _ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL, 1161s # _ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_D, 1161s # }; 1161s # 1161s # static unsigned _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[2] = { 0 }; 1161s # 1161s # /* ---- Introspection data for org.project.SignalingIface ---- */ 1161s # 1161s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_simple_signal = 1161s # { 1161s # { 1161s # -1, 1161s # (gchar *) "SimpleSignal", 1161s # NULL, 1161s # NULL 1161s # }, 1161s # "simple-signal" 1161s # }; 1161s # 1161s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_single_arg_signal_d_ARG_arg_d = 1161s # { 1161s # { 1161s # -1, 1161s # (gchar *) "arg_d", 1161s # (gchar *) "d", 1161s # NULL 1161s # }, 1161s # FALSE 1161s # }; 1161s # 1161s # static const GDBusArgInfo * const _org_project_signaling_iface_signal_info_single_arg_signal_d_ARG_pointers[] = 1161s # { 1161s # &_org_project_signaling_iface_signal_info_single_arg_signal_d_ARG_arg_d.parent_struct, 1161s # NULL 1161s # }; 1161s # 1161s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_single_arg_signal_d = 1161s # { 1161s # { 1161s # -1, 1161s # (gchar *) "SingleArgSignalD", 1161s # (GDBusArgInfo **) &_org_project_signaling_iface_signal_info_single_arg_signal_d_ARG_pointers, 1161s # NULL 1161s # }, 1161s # "single-arg-signal-d" 1161s # }; 1161s # 1161s # static const GDBusSignalInfo * const _org_project_signaling_iface_signal_info_pointers[] = 1161s # { 1161s # &_org_project_signaling_iface_signal_info_simple_signal.parent_struct, 1161s # &_org_project_signaling_iface_signal_info_single_arg_signal_d.parent_struct, 1161s # NULL 1161s # }; 1161s # 1161s # static const _ExtendedGDBusInterfaceInfo _org_project_signaling_iface_interface_info = 1161s # { 1161s # { 1161s # -1, 1161s # (gchar *) "org.project.SignalingIface", 1161s # NULL, 1161s # (GDBusSignalInfo **) &_org_project_signaling_iface_signal_info_pointers, 1161s # NULL, 1161s # NULL 1161s # }, 1161s # "org-project-signaling-iface", 1161s # }; 1161s # 1161s # 1161s # /** 1161s # * org_project_signaling_iface_interface_info: 1161s # * 1161s # * Gets a machine-readable description of the org.project.SignalingIface D-Bus interface. 1161s # * 1161s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 1161s # */ 1161s # GDBusInterfaceInfo * 1161s # org_project_signaling_iface_interface_info (void) 1161s # { 1161s # return (GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct; 1161s # } 1161s # 1161s # /** 1161s # * org_project_signaling_iface_override_properties: 1161s # * @klass: The class structure for a #GObject derived class. 1161s # * @property_id_begin: The property id to assign to the first overridden property. 1161s # * 1161s # * Overrides all #GObject properties in the #OrgProjectSignalingIface interface for a concrete class. 1161s # * The properties are overridden in the order they are defined. 1161s # * 1161s # * Returns: The last property id. 1161s # */ 1161s # guint 1161s # org_project_signaling_iface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 1161s # { 1161s # return property_id_begin - 1; 1161s # } 1161s # 1161s # 1161s # inline static void 1161s # org_project_signaling_iface_signal_marshal_simple_signal ( 1161s # GClosure *closure, 1161s # GValue *return_value, 1161s # unsigned int n_param_values, 1161s # const GValue *param_values, 1161s # void *invocation_hint, 1161s # void *marshal_data) 1161s # { 1161s # g_cclosure_marshal_VOID__VOID (closure, 1161s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1161s # } 1161s # 1161s # inline static void 1161s # org_project_signaling_iface_signal_marshal_single_arg_signal_d ( 1161s # GClosure *closure, 1161s # GValue *return_value, 1161s # unsigned int n_param_values, 1161s # const GValue *param_values, 1161s # void *invocation_hint, 1161s # void *marshal_data) 1161s # { 1161s # g_cclosure_marshal_VOID__DOUBLE (closure, 1161s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1161s # } 1161s # 1161s # 1161s # /** 1161s # * OrgProjectSignalingIface: 1161s # * 1161s # * Abstract interface type for the D-Bus interface org.project.SignalingIface. 1161s # */ 1161s # 1161s # /** 1161s # * OrgProjectSignalingIfaceIface: 1161s # * @parent_iface: The parent interface. 1161s # * @simple_signal: Handler for the #OrgProjectSignalingIface::simple-signal signal. 1161s # * @single_arg_signal_d: Handler for the #OrgProjectSignalingIface::single-arg-signal-d signal. 1161s # * 1161s # * Virtual table for the D-Bus interface org.project.SignalingIface. 1161s # */ 1161s # 1161s # typedef OrgProjectSignalingIfaceIface OrgProjectSignalingIfaceInterface; 1161s # G_DEFINE_INTERFACE (OrgProjectSignalingIface, org_project_signaling_iface, G_TYPE_OBJECT) 1161s # 1161s # static void 1161s # org_project_signaling_iface_default_init (OrgProjectSignalingIfaceIface *iface) 1161s # { 1161s # /* GObject signals for received D-Bus signals: */ 1161s # /** 1161s # * OrgProjectSignalingIface::simple-signal: 1161s # * @object: A #OrgProjectSignalingIface. 1161s # * 1161s # * On the client-side, this signal is emitted whenever the D-Bus signal "SimpleSignal" is received. 1161s # * 1161s # * 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. 1161s # */ 1161s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL] = 1161s # g_signal_new ("simple-signal", 1161s # G_TYPE_FROM_INTERFACE (iface), 1161s # G_SIGNAL_RUN_LAST, 1161s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, simple_signal), 1161s # NULL, 1161s # NULL, 1161s # org_project_signaling_iface_signal_marshal_simple_signal, 1161s # G_TYPE_NONE, 1161s # 0); 1161s # 1161s # /** 1161s # * OrgProjectSignalingIface::single-arg-signal-d: 1161s # * @object: A #OrgProjectSignalingIface. 1161s # * @arg_arg_d: Argument. 1161s # * 1161s # * On the client-side, this signal is emitted whenever the D-Bus signal "SingleArgSignalD" is received. 1161s # * 1161s # * 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. 1161s # */ 1161s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_D] = 1161s # g_signal_new ("single-arg-signal-d", 1161s # G_TYPE_FROM_INTERFACE (iface), 1161s # G_SIGNAL_RUN_LAST, 1161s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, single_arg_signal_d), 1161s # NULL, 1161s # NULL, 1161s # org_project_signaling_iface_signal_marshal_single_arg_signal_d, 1161s # G_TYPE_NONE, 1161s # 1, G_TYPE_DOUBLE); 1161s # 1161s # } 1161s # 1161s # /** 1161s # * org_project_signaling_iface_emit_simple_signal: 1161s # * @object: A #OrgProjectSignalingIface. 1161s # * 1161s # * Emits the "SimpleSignal" D-Bus signal. 1161s # */ 1161s # void 1161s # org_project_signaling_iface_emit_simple_signal ( 1161s # OrgProjectSignalingIface *object) 1161s # { 1161s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL], 0); 1161s # } 1161s # 1161s # /** 1161s # * org_project_signaling_iface_emit_single_arg_signal_d: 1161s # * @object: A #OrgProjectSignalingIface. 1161s # * @arg_arg_d: Argument to pass with the signal. 1161s # * 1161s # * Emits the "SingleArgSignalD" D-Bus signal. 1161s # */ 1161s # void 1161s # org_project_signaling_iface_emit_single_arg_signal_d ( 1161s # OrgProjectSignalingIface *object, 1161s # gdouble arg_arg_d) 1161s # { 1161s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_D], 0, arg_arg_d); 1161s # } 1161s # 1161s # /* ------------------------------------------------------------------------ */ 1161s # 1161s # /** 1161s # * OrgProjectSignalingIfaceProxy: 1161s # * 1161s # * The #OrgProjectSignalingIfaceProxy structure contains only private data and should only be accessed using the provided API. 1161s # */ 1161s # 1161s # /** 1161s # * OrgProjectSignalingIfaceProxyClass: 1161s # * @parent_class: The parent class. 1161s # * 1161s # * Class structure for #OrgProjectSignalingIfaceProxy. 1161s # */ 1161s # 1161s # struct _OrgProjectSignalingIfaceProxyPrivate 1161s # { 1161s # GData *qdata; 1161s # }; 1161s # 1161s # static void org_project_signaling_iface_proxy_iface_init (OrgProjectSignalingIfaceIface *iface); 1161s # 1161s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1161s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceProxy, org_project_signaling_iface_proxy, G_TYPE_DBUS_PROXY, 1161s # G_ADD_PRIVATE (OrgProjectSignalingIfaceProxy) 1161s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_proxy_iface_init)) 1161s # 1161s # #else 1161s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceProxy, org_project_signaling_iface_proxy, G_TYPE_DBUS_PROXY, 1161s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_proxy_iface_init)) 1161s # 1161s # #endif 1161s # static void 1161s # org_project_signaling_iface_proxy_finalize (GObject *object) 1161s # { 1161s # OrgProjectSignalingIfaceProxy *proxy = ORG_PROJECT_SIGNALING_IFACE_PROXY (object); 1161s # g_datalist_clear (&proxy->priv->qdata); 1161s # G_OBJECT_CLASS (org_project_signaling_iface_proxy_parent_class)->finalize (object); 1161s # } 1161s # 1161s # static void 1161s # org_project_signaling_iface_proxy_get_property (GObject *object G_GNUC_UNUSED, 1161s # guint prop_id G_GNUC_UNUSED, 1161s # GValue *value G_GNUC_UNUSED, 1161s # GParamSpec *pspec G_GNUC_UNUSED) 1161s # { 1161s # } 1161s # 1161s # static void 1161s # org_project_signaling_iface_proxy_set_property (GObject *object G_GNUC_UNUSED, 1161s # guint prop_id G_GNUC_UNUSED, 1161s # const GValue *value G_GNUC_UNUSED, 1161s # GParamSpec *pspec G_GNUC_UNUSED) 1161s # { 1161s # } 1161s # 1161s # static void 1161s # org_project_signaling_iface_proxy_g_signal (GDBusProxy *proxy, 1161s # const gchar *sender_name G_GNUC_UNUSED, 1161s # const gchar *signal_name, 1161s # GVariant *parameters) 1161s # { 1161s # _ExtendedGDBusSignalInfo *info; 1161s # GVariantIter iter; 1161s # GVariant *child; 1161s # GValue *paramv; 1161s # gsize num_params; 1161s # gsize n; 1161s # guint signal_id; 1161s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, signal_name); 1161s # if (info == NULL) 1161s # return; 1161s # num_params = g_variant_n_children (parameters); 1161s # paramv = g_new0 (GValue, num_params + 1); 1161s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_SIGNALING_IFACE); 1161s # g_value_set_object (¶mv[0], proxy); 1161s # g_variant_iter_init (&iter, parameters); 1161s # n = 1; 1161s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1161s # { 1161s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 1161s # if (arg_info->use_gvariant) 1161s # { 1161s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1161s # g_value_set_variant (¶mv[n], child); 1161s # n++; 1161s # } 1161s # else 1161s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1161s # g_variant_unref (child); 1161s # } 1161s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_SIGNALING_IFACE); 1161s # g_signal_emitv (paramv, signal_id, 0, NULL); 1161s # for (n = 0; n < num_params + 1; n++) 1161s # g_value_unset (¶mv[n]); 1161s # g_free (paramv); 1161s # } 1161s # 1161s # static void 1161s # org_project_signaling_iface_proxy_g_properties_changed (GDBusProxy *_proxy, 1161s # GVariant *changed_properties, 1161s # const gchar *const *invalidated_properties) 1161s # { 1161s # OrgProjectSignalingIfaceProxy *proxy = ORG_PROJECT_SIGNALING_IFACE_PROXY (_proxy); 1161s # guint n; 1161s # const gchar *key; 1161s # GVariantIter *iter; 1161s # _ExtendedGDBusPropertyInfo *info; 1161s # g_variant_get (changed_properties, "a{sv}", &iter); 1161s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 1161s # { 1161s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, key); 1161s # g_datalist_remove_data (&proxy->priv->qdata, key); 1161s # if (info != NULL) 1161s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1161s # } 1161s # g_variant_iter_free (iter); 1161s # for (n = 0; invalidated_properties[n] != NULL; n++) 1161s # { 1161s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, invalidated_properties[n]); 1161s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 1161s # if (info != NULL) 1161s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1161s # } 1161s # } 1161s # 1161s # static void 1161s # org_project_signaling_iface_proxy_init (OrgProjectSignalingIfaceProxy *proxy) 1161s # { 1161s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1161s # proxy->priv = org_project_signaling_iface_proxy_get_instance_private (proxy); 1161s # #else 1161s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_SIGNALING_IFACE_PROXY, OrgProjectSignalingIfaceProxyPrivate); 1161s # #endif 1161s # 1161s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_signaling_iface_interface_info ()); 1161s # } 1161s # 1161s # static void 1161s # org_project_signaling_iface_proxy_class_init (OrgProjectSignalingIfaceProxyClass *klass) 1161s # { 1161s # GObjectClass *gobject_class; 1161s # GDBusProxyClass *proxy_class; 1161s # 1161s # gobject_class = G_OBJECT_CLASS (klass); 1161s # gobject_class->finalize = org_project_signaling_iface_proxy_finalize; 1161s # gobject_class->get_property = org_project_signaling_iface_proxy_get_property; 1161s # gobject_class->set_property = org_project_signaling_iface_proxy_set_property; 1161s # 1161s # proxy_class = G_DBUS_PROXY_CLASS (klass); 1161s # proxy_class->g_signal = org_project_signaling_iface_proxy_g_signal; 1161s # proxy_class->g_properties_changed = org_project_signaling_iface_proxy_g_properties_changed; 1161s # 1161s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1161s # g_type_class_add_private (klass, sizeof (OrgProjectSignalingIfaceProxyPrivate)); 1161s # #endif 1161s # } 1161s # 1161s # static void 1161s # org_project_signaling_iface_proxy_iface_init (OrgProjectSignalingIfaceIface *iface G_GNUC_UNUSED) 1161s # { 1161s # } 1161s # 1161s # /** 1161s # * org_project_signaling_iface_proxy_new: 1161s # * @connection: A #GDBusConnection. 1161s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1161s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1161s # * @object_path: An object path. 1161s # * @cancellable: (nullable): A #GCancellable or %NULL. 1161s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1161s # * @user_data: User data to pass to @callback. 1161s # * 1161s # * Asynchronously creates a proxy for the D-Bus interface org.project.SignalingIface. See g_dbus_proxy_new() for more details. 1161s # * 1161s # * 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()). 1161s # * You can then call org_project_signaling_iface_proxy_new_finish() to get the result of the operation. 1161s # * 1161s # * See org_project_signaling_iface_proxy_new_sync() for the synchronous, blocking version of this constructor. 1161s # */ 1161s # void 1161s # org_project_signaling_iface_proxy_new ( 1161s # GDBusConnection *connection, 1161s # GDBusProxyFlags flags, 1161s # const gchar *name, 1161s # const gchar *object_path, 1161s # GCancellable *cancellable, 1161s # GAsyncReadyCallback callback, 1161s # gpointer user_data) 1161s # { 1161s # 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); 1161s # } 1161s # 1161s # /** 1161s # * org_project_signaling_iface_proxy_new_finish: 1161s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_signaling_iface_proxy_new(). 1161s # * @error: Return location for error or %NULL 1161s # * 1161s # * Finishes an operation started with org_project_signaling_iface_proxy_new(). 1161s # * 1161s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 1161s # */ 1161s # OrgProjectSignalingIface * 1161s # org_project_signaling_iface_proxy_new_finish ( 1161s # GAsyncResult *res, 1161s # GError **error) 1161s # { 1161s # GObject *ret; 1161s # GObject *source_object; 1161s # source_object = g_async_result_get_source_object (res); 1161s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1161s # g_object_unref (source_object); 1161s # if (ret != NULL) 1161s # return ORG_PROJECT_SIGNALING_IFACE (ret); 1161s # else 1161s # return NULL; 1161s # } 1161s # 1161s # /** 1161s # * org_project_signaling_iface_proxy_new_sync: 1161s # * @connection: A #GDBusConnection. 1161s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1161s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1161s # * @object_path: An object path. 1161s # * @cancellable: (nullable): A #GCancellable or %NULL. 1161s # * @error: Return location for error or %NULL 1161s # * 1161s # * Synchronously creates a proxy for the D-Bus interface org.project.SignalingIface. See g_dbus_proxy_new_sync() for more details. 1161s # * 1161s # * The calling thread is blocked until a reply is received. 1161s # * 1161s # * See org_project_signaling_iface_proxy_new() for the asynchronous version of this constructor. 1161s # * 1161s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 1161s # */ 1161s # OrgProjectSignalingIface * 1161s # org_project_signaling_iface_proxy_new_sync ( 1161s # GDBusConnection *connection, 1161s # GDBusProxyFlags flags, 1161s # const gchar *name, 1161s # const gchar *object_path, 1161s # GCancellable *cancellable, 1161s # GError **error) 1161s # { 1161s # GInitable *ret; 1161s # 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); 1161s # if (ret != NULL) 1161s # return ORG_PROJECT_SIGNALING_IFACE (ret); 1161s # else 1161s # return NULL; 1161s # } 1161s # 1161s # 1161s # /** 1161s # * org_project_signaling_iface_proxy_new_for_bus: 1161s # * @bus_type: A #GBusType. 1161s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1161s # * @name: A bus name (well-known or unique). 1161s # * @object_path: An object path. 1161s # * @cancellable: (nullable): A #GCancellable or %NULL. 1161s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1161s # * @user_data: User data to pass to @callback. 1161s # * 1161s # * Like org_project_signaling_iface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 1161s # * 1161s # * 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()). 1161s # * You can then call org_project_signaling_iface_proxy_new_for_bus_finish() to get the result of the operation. 1161s # * 1161s # * See org_project_signaling_iface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 1161s # */ 1161s # void 1161s # org_project_signaling_iface_proxy_new_for_bus ( 1161s # GBusType bus_type, 1161s # GDBusProxyFlags flags, 1161s # const gchar *name, 1161s # const gchar *object_path, 1161s # GCancellable *cancellable, 1161s # GAsyncReadyCallback callback, 1161s # gpointer user_data) 1161s # { 1161s # 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); 1161s # } 1161s # 1161s # /** 1161s # * org_project_signaling_iface_proxy_new_for_bus_finish: 1161s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_signaling_iface_proxy_new_for_bus(). 1161s # * @error: Return location for error or %NULL 1161s # * 1161s # * Finishes an operation started with org_project_signaling_iface_proxy_new_for_bus(). 1161s # * 1161s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 1161s # */ 1161s # OrgProjectSignalingIface * 1161s # org_project_signaling_iface_proxy_new_for_bus_finish ( 1161s # GAsyncResult *res, 1161s # GError **error) 1161s # { 1161s # GObject *ret; 1161s # GObject *source_object; 1161s # source_object = g_async_result_get_source_object (res); 1161s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1161s # g_object_unref (source_object); 1161s # if (ret != NULL) 1161s # return ORG_PROJECT_SIGNALING_IFACE (ret); 1161s # else 1161s # return NULL; 1161s # } 1161s # 1161s # /** 1161s # * org_project_signaling_iface_proxy_new_for_bus_sync: 1161s # * @bus_type: A #GBusType. 1161s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1161s # * @name: A bus name (well-known or unique). 1161s # * @object_path: An object path. 1161s # * @cancellable: (nullable): A #GCancellable or %NULL. 1161s # * @error: Return location for error or %NULL 1161s # * 1161s # * Like org_project_signaling_iface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 1161s # * 1161s # * The calling thread is blocked until a reply is received. 1161s # * 1161s # * See org_project_signaling_iface_proxy_new_for_bus() for the asynchronous version of this constructor. 1161s # * 1161s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 1161s # */ 1161s # OrgProjectSignalingIface * 1161s # org_project_signaling_iface_proxy_new_for_bus_sync ( 1161s # GBusType bus_type, 1161s # GDBusProxyFlags flags, 1161s # const gchar *name, 1161s # const gchar *object_path, 1161s # GCancellable *cancellable, 1161s # GError **error) 1161s # { 1161s # GInitable *ret; 1161s # 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); 1161s # if (ret != NULL) 1161s # return ORG_PROJECT_SIGNALING_IFACE (ret); 1161s # else 1161s # return NULL; 1161s # } 1161s # 1161s # 1161s # /* ------------------------------------------------------------------------ */ 1161s # 1161s # /** 1161s # * OrgProjectSignalingIfaceSkeleton: 1161s # * 1161s # * The #OrgProjectSignalingIfaceSkeleton structure contains only private data and should only be accessed using the provided API. 1161s # */ 1161s # 1161s # /** 1161s # * OrgProjectSignalingIfaceSkeletonClass: 1161s # * @parent_class: The parent class. 1161s # * 1161s # * Class structure for #OrgProjectSignalingIfaceSkeleton. 1161s # */ 1161s # 1161s # struct _OrgProjectSignalingIfaceSkeletonPrivate 1161s # { 1161s # GValue *properties; 1161s # GList *changed_properties; 1161s # GSource *changed_properties_idle_source; 1161s # GMainContext *context; 1161s # GMutex lock; 1161s # }; 1161s # 1161s # static void 1161s # _org_project_signaling_iface_skeleton_handle_method_call ( 1161s # GDBusConnection *connection G_GNUC_UNUSED, 1161s # const gchar *sender G_GNUC_UNUSED, 1161s # const gchar *object_path G_GNUC_UNUSED, 1161s # const gchar *interface_name, 1161s # const gchar *method_name, 1161s # GVariant *parameters, 1161s # GDBusMethodInvocation *invocation, 1161s # gpointer user_data) 1161s # { 1161s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 1161s # _ExtendedGDBusMethodInfo *info; 1161s # GVariantIter iter; 1161s # GVariant *child; 1161s # GValue *paramv; 1161s # gsize num_params; 1161s # guint num_extra; 1161s # gsize n; 1161s # guint signal_id; 1161s # GValue return_value = G_VALUE_INIT; 1161s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 1161s # g_assert (info != NULL); 1161s # num_params = g_variant_n_children (parameters); 1161s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 1161s # n = 0; 1161s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_SIGNALING_IFACE); 1161s # g_value_set_object (¶mv[n++], skeleton); 1161s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 1161s # g_value_set_object (¶mv[n++], invocation); 1161s # if (info->pass_fdlist) 1161s # { 1161s # #ifdef G_OS_UNIX 1161s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 1161s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 1161s # #else 1161s # g_assert_not_reached (); 1161s # #endif 1161s # } 1161s # g_variant_iter_init (&iter, parameters); 1161s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1161s # { 1161s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 1161s # if (arg_info->use_gvariant) 1161s # { 1161s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1161s # g_value_set_variant (¶mv[n], child); 1161s # n++; 1161s # } 1161s # else 1161s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1161s # g_variant_unref (child); 1161s # } 1161s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_SIGNALING_IFACE); 1161s # g_value_init (&return_value, G_TYPE_BOOLEAN); 1161s # g_signal_emitv (paramv, signal_id, 0, &return_value); 1161s # if (!g_value_get_boolean (&return_value)) 1161s # 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); 1161s # g_value_unset (&return_value); 1161s # for (n = 0; n < num_params + num_extra; n++) 1161s # g_value_unset (¶mv[n]); 1161s # g_free (paramv); 1161s # } 1161s # 1161s # static GVariant * 1161s # _org_project_signaling_iface_skeleton_handle_get_property ( 1161s # GDBusConnection *connection G_GNUC_UNUSED, 1161s # const gchar *sender G_GNUC_UNUSED, 1161s # const gchar *object_path G_GNUC_UNUSED, 1161s # const gchar *interface_name G_GNUC_UNUSED, 1161s # const gchar *property_name, 1161s # GError **error, 1161s # gpointer user_data) 1161s # { 1161s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 1161s # GValue value = G_VALUE_INIT; 1161s # GParamSpec *pspec; 1161s # _ExtendedGDBusPropertyInfo *info; 1161s # GVariant *ret; 1161s # ret = NULL; 1161s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, property_name); 1161s # g_assert (info != NULL); 1161s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1161s # if (pspec == NULL) 1161s # { 1161s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1161s # } 1161s # else 1161s # { 1161s # g_value_init (&value, pspec->value_type); 1161s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1161s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 1161s # g_value_unset (&value); 1161s # } 1161s # return ret; 1161s # } 1161s # 1161s # static gboolean 1161s # _org_project_signaling_iface_skeleton_handle_set_property ( 1161s # GDBusConnection *connection G_GNUC_UNUSED, 1161s # const gchar *sender G_GNUC_UNUSED, 1161s # const gchar *object_path G_GNUC_UNUSED, 1161s # const gchar *interface_name G_GNUC_UNUSED, 1161s # const gchar *property_name, 1161s # GVariant *variant, 1161s # GError **error, 1161s # gpointer user_data) 1161s # { 1161s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 1161s # GValue value = G_VALUE_INIT; 1161s # GParamSpec *pspec; 1161s # _ExtendedGDBusPropertyInfo *info; 1161s # gboolean ret; 1161s # ret = FALSE; 1161s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, property_name); 1161s # g_assert (info != NULL); 1161s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1161s # if (pspec == NULL) 1161s # { 1161s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1161s # } 1161s # else 1161s # { 1161s # if (info->use_gvariant) 1161s # g_value_set_variant (&value, variant); 1161s # else 1161s # g_dbus_gvariant_to_gvalue (variant, &value); 1161s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1161s # g_value_unset (&value); 1161s # ret = TRUE; 1161s # } 1161s # return ret; 1161s # } 1161s # 1161s # static const GDBusInterfaceVTable _org_project_signaling_iface_skeleton_vtable = 1161s # { 1161s # _org_project_signaling_iface_skeleton_handle_method_call, 1161s # _org_project_signaling_iface_skeleton_handle_get_property, 1161s # _org_project_signaling_iface_skeleton_handle_set_property, 1161s # {NULL} 1161s # }; 1161s # 1161s # static GDBusInterfaceInfo * 1161s # org_project_signaling_iface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1161s # { 1161s # return org_project_signaling_iface_interface_info (); 1161s # } 1161s # 1161s # static GDBusInterfaceVTable * 1161s # org_project_signaling_iface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1161s # { 1161s # return (GDBusInterfaceVTable *) &_org_project_signaling_iface_skeleton_vtable; 1161s # } 1161s # 1161s # static GVariant * 1161s # org_project_signaling_iface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 1161s # { 1161s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (_skeleton); 1161s # 1161s # GVariantBuilder builder; 1161s # guint n; 1161s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 1161s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 1161s # #else 1161s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 1161s # #endif 1161s # if (_org_project_signaling_iface_interface_info.parent_struct.properties == NULL) 1161s # goto out; 1161s # for (n = 0; _org_project_signaling_iface_interface_info.parent_struct.properties[n] != NULL; n++) 1161s # { 1161s # GDBusPropertyInfo *info = _org_project_signaling_iface_interface_info.parent_struct.properties[n]; 1161s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 1161s # { 1161s # GVariant *value; 1161s # 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); 1161s # if (value != NULL) 1161s # { 1161s # g_variant_take_ref (value); 1161s # g_variant_builder_add (&builder, "{sv}", info->name, value); 1161s # g_variant_unref (value); 1161s # } 1161s # } 1161s # } 1161s # out: 1161s # return g_variant_builder_end (&builder); 1161s # } 1161s # 1161s # static void 1161s # org_project_signaling_iface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 1161s # { 1161s # } 1161s # 1161s # static void 1161s # _org_project_signaling_iface_on_signal_simple_signal ( 1161s # OrgProjectSignalingIface *object) 1161s # { 1161s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 1161s # 1161s # GList *connections, *l; 1161s # GVariant *signal_variant; 1161s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 1161s # 1161s # signal_variant = g_variant_ref_sink (g_variant_new ("()")); 1161s # for (l = connections; l != NULL; l = l->next) 1161s # { 1161s # GDBusConnection *connection = l->data; 1161s # g_dbus_connection_emit_signal (connection, 1161s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SimpleSignal", 1161s # signal_variant, NULL); 1161s # } 1161s # g_variant_unref (signal_variant); 1161s # g_list_free_full (connections, g_object_unref); 1161s # } 1161s # 1161s # static void 1161s # _org_project_signaling_iface_on_signal_single_arg_signal_d ( 1161s # OrgProjectSignalingIface *object, 1161s # gdouble arg_arg_d) 1161s # { 1161s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 1161s # 1161s # GList *connections, *l; 1161s # GVariant *signal_variant; 1161s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 1161s # 1161s # signal_variant = g_variant_ref_sink (g_variant_new ("(d)", 1161s # arg_arg_d)); 1161s # for (l = connections; l != NULL; l = l->next) 1161s # { 1161s # GDBusConnection *connection = l->data; 1161s # g_dbus_connection_emit_signal (connection, 1161s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SingleArgSignalD", 1161s # signal_variant, NULL); 1161s # } 1161s # g_variant_unref (signal_variant); 1161s # g_list_free_full (connections, g_object_unref); 1161s # } 1161s # 1161s # static void org_project_signaling_iface_skeleton_iface_init (OrgProjectSignalingIfaceIface *iface); 1161s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1161s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceSkeleton, org_project_signaling_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1161s # G_ADD_PRIVATE (OrgProjectSignalingIfaceSkeleton) 1161s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_skeleton_iface_init)) 1161s # 1161s # #else 1161s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceSkeleton, org_project_signaling_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1161s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_skeleton_iface_init)) 1161s # 1161s # #endif 1161s # static void 1161s # org_project_signaling_iface_skeleton_finalize (GObject *object) 1161s # { 1161s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 1161s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 1161s # if (skeleton->priv->changed_properties_idle_source != NULL) 1161s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 1161s # g_main_context_unref (skeleton->priv->context); 1161s # g_mutex_clear (&skeleton->priv->lock); 1161s # G_OBJECT_CLASS (org_project_signaling_iface_skeleton_parent_class)->finalize (object); 1161s # } 1161s # 1161s # static void 1161s # org_project_signaling_iface_skeleton_init (OrgProjectSignalingIfaceSkeleton *skeleton) 1161s # { 1161s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1161s # skeleton->priv = org_project_signaling_iface_skeleton_get_instance_private (skeleton); 1161s # #else 1161s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_SIGNALING_IFACE_SKELETON, OrgProjectSignalingIfaceSkeletonPrivate); 1161s # #endif 1161s # 1161s # g_mutex_init (&skeleton->priv->lock); 1161s # skeleton->priv->context = g_main_context_ref_thread_default (); 1161s # } 1161s # 1161s # static void 1161s # org_project_signaling_iface_skeleton_class_init (OrgProjectSignalingIfaceSkeletonClass *klass) 1161s # { 1161s # GObjectClass *gobject_class; 1161s # GDBusInterfaceSkeletonClass *skeleton_class; 1161s # 1161s # gobject_class = G_OBJECT_CLASS (klass); 1161s # gobject_class->finalize = org_project_signaling_iface_skeleton_finalize; 1161s # 1161s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 1161s # skeleton_class->get_info = org_project_signaling_iface_skeleton_dbus_interface_get_info; 1161s # skeleton_class->get_properties = org_project_signaling_iface_skeleton_dbus_interface_get_properties; 1161s # skeleton_class->flush = org_project_signaling_iface_skeleton_dbus_interface_flush; 1161s # skeleton_class->get_vtable = org_project_signaling_iface_skeleton_dbus_interface_get_vtable; 1161s # 1161s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1161s # g_type_class_add_private (klass, sizeof (OrgProjectSignalingIfaceSkeletonPrivate)); 1161s # #endif 1161s # } 1161s # 1161s # static void 1161s # org_project_signaling_iface_skeleton_iface_init (OrgProjectSignalingIfaceIface *iface) 1161s # { 1161s # iface->simple_signal = _org_project_signaling_iface_on_signal_simple_signal; 1161s # iface->single_arg_signal_d = _org_project_signaling_iface_on_signal_single_arg_signal_d; 1161s # } 1161s # 1161s # /** 1161s # * org_project_signaling_iface_skeleton_new: 1161s # * 1161s # * Creates a skeleton object for the D-Bus interface org.project.SignalingIface. 1161s # * 1161s # * Returns: (transfer full) (type OrgProjectSignalingIfaceSkeleton): The skeleton object. 1161s # */ 1161s # OrgProjectSignalingIface * 1161s # org_project_signaling_iface_skeleton_new (void) 1161s # { 1161s # return ORG_PROJECT_SIGNALING_IFACE (g_object_new (TYPE_ORG_PROJECT_SIGNALING_IFACE_SKELETON, NULL)); 1161s # } 1161s # Error: 1161s # 1161s # /tmp/tmpjwrvmpd2/tmpf7ukov0z.xml: 1161s # 1161s # 1161s # 1161s # 1161s # 1161s # 1161s # 1161s # 1161s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpjwrvmpd2/tmpf7ukov0z.xml', '--output', '-', '--body'] 1161s # Return code: 0 1161s # Output: 1161s # /* 1161s # * This file is generated by gdbus-codegen, do not modify it. 1161s # * 1161s # * The license of this code is the same as for the D-Bus interface description 1161s # * it was derived from. Note that it links to GLib, so must comply with the 1161s # * LGPL linking clauses. 1161s # */ 1161s # 1161s # #ifdef HAVE_CONFIG_H 1161s # # include "config.h" 1161s # #endif 1161s # 1161s # #include 1161s # #ifdef G_OS_UNIX 1161s # # include 1161s # #endif 1161s # 1161s # #ifdef G_ENABLE_DEBUG 1161s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 1161s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 1161s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 1161s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 1161s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 1161s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 1161s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 1161s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 1161s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 1161s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 1161s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 1161s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 1161s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 1161s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 1161s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 1161s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 1161s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 1161s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 1161s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 1161s # #else /* !G_ENABLE_DEBUG */ 1161s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 1161s # * Do not access GValues directly in your code. Instead, use the 1161s # * g_value_get_*() functions 1161s # */ 1161s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 1161s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 1161s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 1161s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 1161s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 1161s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 1161s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 1161s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 1161s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 1161s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 1161s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 1161s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 1161s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 1161s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 1161s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 1161s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 1161s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 1161s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 1161s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 1161s # #endif /* !G_ENABLE_DEBUG */ 1161s # 1161s # typedef struct 1161s # { 1161s # GDBusArgInfo parent_struct; 1161s # gboolean use_gvariant; 1161s # } _ExtendedGDBusArgInfo; 1161s # 1161s # typedef struct 1161s # { 1161s # GDBusMethodInfo parent_struct; 1161s # const gchar *signal_name; 1161s # gboolean pass_fdlist; 1161s # } _ExtendedGDBusMethodInfo; 1161s # 1161s # typedef struct 1161s # { 1161s # GDBusSignalInfo parent_struct; 1161s # const gchar *signal_name; 1161s # } _ExtendedGDBusSignalInfo; 1161s # 1161s # typedef struct 1161s # { 1161s # GDBusPropertyInfo parent_struct; 1161s # const gchar *hyphen_name; 1161s # guint use_gvariant : 1; 1161s # guint emits_changed_signal : 1; 1161s # } _ExtendedGDBusPropertyInfo; 1161s # 1161s # typedef struct 1161s # { 1161s # GDBusInterfaceInfo parent_struct; 1161s # const gchar *hyphen_name; 1161s # } _ExtendedGDBusInterfaceInfo; 1161s # 1161s # typedef struct 1161s # { 1161s # const _ExtendedGDBusPropertyInfo *info; 1161s # guint prop_id; 1161s # GValue orig_value; /* the value before the change */ 1161s # } ChangedProperty; 1161s # 1161s # static void 1161s # _changed_property_free (ChangedProperty *data) 1161s # { 1161s # g_value_unset (&data->orig_value); 1161s # g_free (data); 1161s # } 1161s # 1161s # static gboolean 1161s # _g_strv_equal0 (gchar **a, gchar **b) 1161s # { 1161s # gboolean ret = FALSE; 1161s # guint n; 1161s # if (a == NULL && b == NULL) 1161s # { 1161s # ret = TRUE; 1161s # goto out; 1161s # } 1161s # if (a == NULL || b == NULL) 1161s # goto out; 1161s # if (g_strv_length (a) != g_strv_length (b)) 1161s # goto out; 1161s # for (n = 0; a[n] != NULL; n++) 1161s # if (g_strcmp0 (a[n], b[n]) != 0) 1161s # goto out; 1161s # ret = TRUE; 1161s # out: 1161s # return ret; 1161s # } 1161s # 1161s # static gboolean 1161s # _g_variant_equal0 (GVariant *a, GVariant *b) 1161s # { 1161s # gboolean ret = FALSE; 1161s # if (a == NULL && b == NULL) 1161s # { 1161s # ret = TRUE; 1161s # goto out; 1161s # } 1161s # if (a == NULL || b == NULL) 1161s # goto out; 1161s # ret = g_variant_equal (a, b); 1161s # out: 1161s # return ret; 1161s # } 1161s # 1161s # G_GNUC_UNUSED static gboolean 1161s # _g_value_equal (const GValue *a, const GValue *b) 1161s # { 1161s # gboolean ret = FALSE; 1161s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 1161s # switch (G_VALUE_TYPE (a)) 1161s # { 1161s # case G_TYPE_BOOLEAN: 1161s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 1161s # break; 1161s # case G_TYPE_UCHAR: 1161s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 1161s # break; 1161s # case G_TYPE_INT: 1161s # ret = (g_value_get_int (a) == g_value_get_int (b)); 1161s # break; 1161s # case G_TYPE_UINT: 1161s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 1161s # break; 1161s # case G_TYPE_INT64: 1161s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 1161s # break; 1161s # case G_TYPE_UINT64: 1161s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 1161s # break; 1161s # case G_TYPE_DOUBLE: 1161s # { 1161s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 1161s # gdouble da = g_value_get_double (a); 1161s # gdouble db = g_value_get_double (b); 1161s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 1161s # } 1161s # break; 1161s # case G_TYPE_STRING: 1161s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 1161s # break; 1161s # case G_TYPE_VARIANT: 1161s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 1161s # break; 1161s # default: 1161s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 1161s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 1161s # else 1161s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 1161s # break; 1161s # } 1161s # return ret; 1161s # } 1161s # 1161s # /* ------------------------------------------------------------------------ 1161s # * Code for interface org.project.SignalingIface 1161s # * ------------------------------------------------------------------------ 1161s # */ 1161s # 1161s # /** 1161s # * SECTION:OrgProjectSignalingIface 1161s # * @title: OrgProjectSignalingIface 1161s # * @short_description: Generated C code for the org.project.SignalingIface D-Bus interface 1161s # * 1161s # * This section contains code for working with the org.project.SignalingIface D-Bus interface in C. 1161s # */ 1161s # 1161s # enum 1161s # { 1161s # _ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL, 1161s # _ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_S, 1161s # }; 1161s # 1161s # static unsigned _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[2] = { 0 }; 1161s # 1161s # /* ---- Introspection data for org.project.SignalingIface ---- */ 1161s # 1161s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_simple_signal = 1161s # { 1161s # { 1161s # -1, 1161s # (gchar *) "SimpleSignal", 1161s # NULL, 1161s # NULL 1161s # }, 1161s # "simple-signal" 1161s # }; 1161s # 1161s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_single_arg_signal_s_ARG_arg_s = 1161s # { 1161s # { 1161s # -1, 1161s # (gchar *) "arg_s", 1161s # (gchar *) "s", 1161s # NULL 1161s # }, 1161s # FALSE 1161s # }; 1161s # 1161s # static const GDBusArgInfo * const _org_project_signaling_iface_signal_info_single_arg_signal_s_ARG_pointers[] = 1161s # { 1161s # &_org_project_signaling_iface_signal_info_single_arg_signal_s_ARG_arg_s.parent_struct, 1161s # NULL 1161s # }; 1161s # 1161s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_single_arg_signal_s = 1161s # { 1161s # { 1161s # -1, 1161s # (gchar *) "SingleArgSignalS", 1161s # (GDBusArgInfo **) &_org_project_signaling_iface_signal_info_single_arg_signal_s_ARG_pointers, 1161s # NULL 1161s # }, 1161s # "single-arg-signal-s" 1161s # }; 1161s # 1161s # static const GDBusSignalInfo * const _org_project_signaling_iface_signal_info_pointers[] = 1161s # { 1161s # &_org_project_signaling_iface_signal_info_simple_signal.parent_struct, 1161s # &_org_project_signaling_iface_signal_info_single_arg_signal_s.parent_struct, 1161s # NULL 1161s # }; 1161s # 1161s # static const _ExtendedGDBusInterfaceInfo _org_project_signaling_iface_interface_info = 1161s # { 1161s # { 1161s # -1, 1161s # (gchar *) "org.project.SignalingIface", 1161s # NULL, 1161s # (GDBusSignalInfo **) &_org_project_signaling_iface_signal_info_pointers, 1161s # NULL, 1161s # NULL 1161s # }, 1161s # "org-project-signaling-iface", 1161s # }; 1161s # 1161s # 1161s # /** 1161s # * org_project_signaling_iface_interface_info: 1161s # * 1161s # * Gets a machine-readable description of the org.project.SignalingIface D-Bus interface. 1161s # * 1161s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 1161s # */ 1161s # GDBusInterfaceInfo * 1161s # org_project_signaling_iface_interface_info (void) 1161s # { 1161s # return (GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct; 1161s # } 1161s # 1161s # /** 1161s # * org_project_signaling_iface_override_properties: 1161s # * @klass: The class structure for a #GObject derived class. 1161s # * @property_id_begin: The property id to assign to the first overridden property. 1161s # * 1161s # * Overrides all #GObject properties in the #OrgProjectSignalingIface interface for a concrete class. 1161s # * The properties are overridden in the order they are defined. 1161s # * 1161s # * Returns: The last property id. 1161s # */ 1161s # guint 1161s # org_project_signaling_iface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 1161s # { 1161s # return property_id_begin - 1; 1161s # } 1161s # 1161s # 1161s # inline static void 1161s # org_project_signaling_iface_signal_marshal_simple_signal ( 1161s # GClosure *closure, 1161s # GValue *return_value, 1161s # unsigned int n_param_values, 1161s # const GValue *param_values, 1161s # void *invocation_hint, 1161s # void *marshal_data) 1161s # { 1161s # g_cclosure_marshal_VOID__VOID (closure, 1161s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1161s # } 1161s # 1161s # inline static void 1161s # org_project_signaling_iface_signal_marshal_single_arg_signal_s ( 1161s # GClosure *closure, 1161s # GValue *return_value, 1161s # unsigned int n_param_values, 1161s # const GValue *param_values, 1161s # void *invocation_hint, 1161s # void *marshal_data) 1161s # { 1161s # g_cclosure_marshal_VOID__STRING (closure, 1161s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1161s # } 1161s # 1161s # 1161s # /** 1161s # * OrgProjectSignalingIface: 1161s # * 1161s # * Abstract interface type for the D-Bus interface org.project.SignalingIface. 1161s # */ 1161s # 1161s # /** 1161s # * OrgProjectSignalingIfaceIface: 1161s # * @parent_iface: The parent interface. 1161s # * @simple_signal: Handler for the #OrgProjectSignalingIface::simple-signal signal. 1161s # * @single_arg_signal_s: Handler for the #OrgProjectSignalingIface::single-arg-signal-s signal. 1161s # * 1161s # * Virtual table for the D-Bus interface org.project.SignalingIface. 1161s # */ 1161s # 1161s # typedef OrgProjectSignalingIfaceIface OrgProjectSignalingIfaceInterface; 1161s # G_DEFINE_INTERFACE (OrgProjectSignalingIface, org_project_signaling_iface, G_TYPE_OBJECT) 1161s # 1161s # static void 1161s # org_project_signaling_iface_default_init (OrgProjectSignalingIfaceIface *iface) 1161s # { 1161s # /* GObject signals for received D-Bus signals: */ 1161s # /** 1161s # * OrgProjectSignalingIface::simple-signal: 1161s # * @object: A #OrgProjectSignalingIface. 1161s # * 1161s # * On the client-side, this signal is emitted whenever the D-Bus signal "SimpleSignal" is received. 1161s # * 1161s # * 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. 1161s # */ 1161s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL] = 1161s # g_signal_new ("simple-signal", 1161s # G_TYPE_FROM_INTERFACE (iface), 1161s # G_SIGNAL_RUN_LAST, 1161s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, simple_signal), 1161s # NULL, 1161s # NULL, 1161s # org_project_signaling_iface_signal_marshal_simple_signal, 1161s # G_TYPE_NONE, 1161s # 0); 1161s # 1161s # /** 1161s # * OrgProjectSignalingIface::single-arg-signal-s: 1161s # * @object: A #OrgProjectSignalingIface. 1161s # * @arg_arg_s: Argument. 1161s # * 1161s # * On the client-side, this signal is emitted whenever the D-Bus signal "SingleArgSignalS" is received. 1161s # * 1161s # * 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. 1161s # */ 1161s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_S] = 1161s # g_signal_new ("single-arg-signal-s", 1161s # G_TYPE_FROM_INTERFACE (iface), 1161s # G_SIGNAL_RUN_LAST, 1161s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, single_arg_signal_s), 1161s # NULL, 1161s # NULL, 1161s # org_project_signaling_iface_signal_marshal_single_arg_signal_s, 1161s # G_TYPE_NONE, 1161s # 1, G_TYPE_STRING); 1161s # 1161s # } 1161s # 1161s # /** 1161s # * org_project_signaling_iface_emit_simple_signal: 1161s # * @object: A #OrgProjectSignalingIface. 1161s # * 1161s # * Emits the "SimpleSignal" D-Bus signal. 1161s # */ 1161s # void 1161s # org_project_signaling_iface_emit_simple_signal ( 1161s # OrgProjectSignalingIface *object) 1161s # { 1161s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL], 0); 1161s # } 1161s # 1161s # /** 1161s # * org_project_signaling_iface_emit_single_arg_signal_s: 1161s # * @object: A #OrgProjectSignalingIface. 1161s # * @arg_arg_s: Argument to pass with the signal. 1161s # * 1161s # * Emits the "SingleArgSignalS" D-Bus signal. 1161s # */ 1161s # void 1161s # org_project_signaling_iface_emit_single_arg_signal_s ( 1161s # OrgProjectSignalingIface *object, 1161s # const gchar *arg_arg_s) 1161s # { 1161s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_S], 0, arg_arg_s); 1161s # } 1161s # 1161s # /* ------------------------------------------------------------------------ */ 1161s # 1161s # /** 1161s # * OrgProjectSignalingIfaceProxy: 1161s # * 1161s # * The #OrgProjectSignalingIfaceProxy structure contains only private data and should only be accessed using the provided API. 1161s # */ 1161s # 1161s # /** 1161s # * OrgProjectSignalingIfaceProxyClass: 1161s # * @parent_class: The parent class. 1161s # * 1161s # * Class structure for #OrgProjectSignalingIfaceProxy. 1161s # */ 1161s # 1161s # struct _OrgProjectSignalingIfaceProxyPrivate 1161s # { 1161s # GData *qdata; 1161s # }; 1161s # 1161s # static void org_project_signaling_iface_proxy_iface_init (OrgProjectSignalingIfaceIface *iface); 1161s # 1161s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1161s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceProxy, org_project_signaling_iface_proxy, G_TYPE_DBUS_PROXY, 1161s # G_ADD_PRIVATE (OrgProjectSignalingIfaceProxy) 1161s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_proxy_iface_init)) 1161s # 1161s # #else 1161s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceProxy, org_project_signaling_iface_proxy, G_TYPE_DBUS_PROXY, 1161s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_proxy_iface_init)) 1161s # 1161s # #endif 1161s # static void 1161s # org_project_signaling_iface_proxy_finalize (GObject *object) 1161s # { 1161s # OrgProjectSignalingIfaceProxy *proxy = ORG_PROJECT_SIGNALING_IFACE_PROXY (object); 1161s # g_datalist_clear (&proxy->priv->qdata); 1161s # G_OBJECT_CLASS (org_project_signaling_iface_proxy_parent_class)->finalize (object); 1161s # } 1161s # 1161s # static void 1161s # org_project_signaling_iface_proxy_get_property (GObject *object G_GNUC_UNUSED, 1161s # guint prop_id G_GNUC_UNUSED, 1161s # GValue *value G_GNUC_UNUSED, 1161s # GParamSpec *pspec G_GNUC_UNUSED) 1161s # { 1161s # } 1161s # 1161s # static void 1161s # org_project_signaling_iface_proxy_set_property (GObject *object G_GNUC_UNUSED, 1161s # guint prop_id G_GNUC_UNUSED, 1161s # const GValue *value G_GNUC_UNUSED, 1161s # GParamSpec *pspec G_GNUC_UNUSED) 1161s # { 1161s # } 1161s # 1161s # static void 1161s # org_project_signaling_iface_proxy_g_signal (GDBusProxy *proxy, 1161s # const gchar *sender_name G_GNUC_UNUSED, 1161s # const gchar *signal_name, 1161s # GVariant *parameters) 1161s # { 1161s # _ExtendedGDBusSignalInfo *info; 1161s # GVariantIter iter; 1161s # GVariant *child; 1161s # GValue *paramv; 1161s # gsize num_params; 1161s # gsize n; 1161s # guint signal_id; 1161s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, signal_name); 1161s # if (info == NULL) 1161s # return; 1161s # num_params = g_variant_n_children (parameters); 1161s # paramv = g_new0 (GValue, num_params + 1); 1161s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_SIGNALING_IFACE); 1161s # g_value_set_object (¶mv[0], proxy); 1161s # g_variant_iter_init (&iter, parameters); 1161s # n = 1; 1161s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1161s # { 1161s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 1161s # if (arg_info->use_gvariant) 1161s # { 1161s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1161s # g_value_set_variant (¶mv[n], child); 1161s # n++; 1161s # } 1161s # else 1161s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1161s # g_variant_unref (child); 1161s # } 1161s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_SIGNALING_IFACE); 1161s # g_signal_emitv (paramv, signal_id, 0, NULL); 1161s # for (n = 0; n < num_params + 1; n++) 1161s # g_value_unset (¶mv[n]); 1161s # g_free (paramv); 1161s # } 1161s # 1161s # static void 1161s # org_project_signaling_iface_proxy_g_properties_changed (GDBusProxy *_proxy, 1161s # GVariant *changed_properties, 1161s # const gchar *const *invalidated_properties) 1161s # { 1161s # OrgProjectSignalingIfaceProxy *proxy = ORG_PROJECT_SIGNALING_IFACE_PROXY (_proxy); 1161s # guint n; 1161s # const gchar *key; 1161s # GVariantIter *iter; 1161s # _ExtendedGDBusPropertyInfo *info; 1161s # g_variant_get (changed_properties, "a{sv}", &iter); 1161s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 1161s # { 1161s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, key); 1161s # g_datalist_remove_data (&proxy->priv->qdata, key); 1161s # if (info != NULL) 1161s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1161s # } 1161s # g_variant_iter_free (iter); 1161s # for (n = 0; invalidated_properties[n] != NULL; n++) 1161s # { 1161s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, invalidated_properties[n]); 1161s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 1161s # if (info != NULL) 1161s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1161s # } 1161s # } 1161s # 1161s # static void 1161s # org_project_signaling_iface_proxy_init (OrgProjectSignalingIfaceProxy *proxy) 1161s # { 1161s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1161s # proxy->priv = org_project_signaling_iface_proxy_get_instance_private (proxy); 1161s # #else 1161s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_SIGNALING_IFACE_PROXY, OrgProjectSignalingIfaceProxyPrivate); 1161s # #endif 1161s # 1161s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_signaling_iface_interface_info ()); 1161s # } 1161s # 1161s # static void 1161s # org_project_signaling_iface_proxy_class_init (OrgProjectSignalingIfaceProxyClass *klass) 1161s # { 1161s # GObjectClass *gobject_class; 1161s # GDBusProxyClass *proxy_class; 1161s # 1161s # gobject_class = G_OBJECT_CLASS (klass); 1161s # gobject_class->finalize = org_project_signaling_iface_proxy_finalize; 1161s # gobject_class->get_property = org_project_signaling_iface_proxy_get_property; 1161s # gobject_class->set_property = org_project_signaling_iface_proxy_set_property; 1161s # 1161s # proxy_class = G_DBUS_PROXY_CLASS (klass); 1161s # proxy_class->g_signal = org_project_signaling_iface_proxy_g_signal; 1161s # proxy_class->g_properties_changed = org_project_signaling_iface_proxy_g_properties_changed; 1161s # 1161s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1161s # g_type_class_add_private (klass, sizeof (OrgProjectSignalingIfaceProxyPrivate)); 1161s # #endif 1161s # } 1161s # 1161s # static void 1161s # org_project_signaling_iface_proxy_iface_init (OrgProjectSignalingIfaceIface *iface G_GNUC_UNUSED) 1161s # { 1161s # } 1161s # 1161s # /** 1161s # * org_project_signaling_iface_proxy_new: 1161s # * @connection: A #GDBusConnection. 1161s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1161s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1161s # * @object_path: An object path. 1161s # * @cancellable: (nullable): A #GCancellable or %NULL. 1161s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1161s # * @user_data: User data to pass to @callback. 1161s # * 1161s # * Asynchronously creates a proxy for the D-Bus interface org.project.SignalingIface. See g_dbus_proxy_new() for more details. 1161s # * 1161s # * 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()). 1161s # * You can then call org_project_signaling_iface_proxy_new_finish() to get the result of the operation. 1161s # * 1161s # * See org_project_signaling_iface_proxy_new_sync() for the synchronous, blocking version of this constructor. 1161s # */ 1161s # void 1161s # org_project_signaling_iface_proxy_new ( 1161s # GDBusConnection *connection, 1161s # GDBusProxyFlags flags, 1161s # const gchar *name, 1161s # const gchar *object_path, 1161s # GCancellable *cancellable, 1161s # GAsyncReadyCallback callback, 1161s # gpointer user_data) 1161s # { 1161s # 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); 1161s # } 1161s # 1161s # /** 1161s # * org_project_signaling_iface_proxy_new_finish: 1161s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_signaling_iface_proxy_new(). 1161s # * @error: Return location for error or %NULL 1161s # * 1161s # * Finishes an operation started with org_project_signaling_iface_proxy_new(). 1161s # * 1161s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 1161s # */ 1161s # OrgProjectSignalingIface * 1161s # org_project_signaling_iface_proxy_new_finish ( 1161s # GAsyncResult *res, 1161s # GError **error) 1161s # { 1161s # GObject *ret; 1161s # GObject *source_object; 1161s # source_object = g_async_result_get_source_object (res); 1161s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1161s # g_object_unref (source_object); 1161s # if (ret != NULL) 1161s # return ORG_PROJECT_SIGNALING_IFACE (ret); 1161s # else 1161s # return NULL; 1161s # } 1161s # 1161s # /** 1161s # * org_project_signaling_iface_proxy_new_sync: 1161s # * @connection: A #GDBusConnection. 1161s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1161s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1161s # * @object_path: An object path. 1161s # * @cancellable: (nullable): A #GCancellable or %NULL. 1161s # * @error: Return location for error or %NULL 1161s # * 1161s # * Synchronously creates a proxy for the D-Bus interface org.project.SignalingIface. See g_dbus_proxy_new_sync() for more details. 1161s # * 1161s # * The calling thread is blocked until a reply is received. 1161s # * 1161s # * See org_project_signaling_iface_proxy_new() for the asynchronous version of this constructor. 1161s # * 1161s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 1161s # */ 1161s # OrgProjectSignalingIface * 1161s # org_project_signaling_iface_proxy_new_sync ( 1161s # GDBusConnection *connection, 1161s # GDBusProxyFlags flags, 1161s # const gchar *name, 1161s # const gchar *object_path, 1161s # GCancellable *cancellable, 1161s # GError **error) 1161s # { 1161s # GInitable *ret; 1161s # 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); 1161s # if (ret != NULL) 1161s # return ORG_PROJECT_SIGNALING_IFACE (ret); 1161s # else 1161s # return NULL; 1161s # } 1161s # 1161s # 1161s # /** 1161s # * org_project_signaling_iface_proxy_new_for_bus: 1161s # * @bus_type: A #GBusType. 1161s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1161s # * @name: A bus name (well-known or unique). 1161s # * @object_path: An object path. 1161s # * @cancellable: (nullable): A #GCancellable or %NULL. 1161s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1161s # * @user_data: User data to pass to @callback. 1161s # * 1161s # * Like org_project_signaling_iface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 1161s # * 1161s # * 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()). 1161s # * You can then call org_project_signaling_iface_proxy_new_for_bus_finish() to get the result of the operation. 1161s # * 1161s # * See org_project_signaling_iface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 1161s # */ 1161s # void 1161s # org_project_signaling_iface_proxy_new_for_bus ( 1161s # GBusType bus_type, 1161s # GDBusProxyFlags flags, 1161s # const gchar *name, 1161s # const gchar *object_path, 1161s # GCancellable *cancellable, 1161s # GAsyncReadyCallback callback, 1161s # gpointer user_data) 1161s # { 1161s # 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); 1161s # } 1161s # 1161s # /** 1161s # * org_project_signaling_iface_proxy_new_for_bus_finish: 1161s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_signaling_iface_proxy_new_for_bus(). 1161s # * @error: Return location for error or %NULL 1161s # * 1161s # * Finishes an operation started with org_project_signaling_iface_proxy_new_for_bus(). 1161s # * 1161s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 1161s # */ 1161s # OrgProjectSignalingIface * 1161s # org_project_signaling_iface_proxy_new_for_bus_finish ( 1161s # GAsyncResult *res, 1161s # GError **error) 1161s # { 1161s # GObject *ret; 1161s # GObject *source_object; 1161s # source_object = g_async_result_get_source_object (res); 1161s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1161s # g_object_unref (source_object); 1161s # if (ret != NULL) 1161s # return ORG_PROJECT_SIGNALING_IFACE (ret); 1161s # else 1161s # return NULL; 1161s # } 1161s # 1161s # /** 1161s # * org_project_signaling_iface_proxy_new_for_bus_sync: 1161s # * @bus_type: A #GBusType. 1161s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1161s # * @name: A bus name (well-known or unique). 1161s # * @object_path: An object path. 1161s # * @cancellable: (nullable): A #GCancellable or %NULL. 1161s # * @error: Return location for error or %NULL 1161s # * 1161s # * Like org_project_signaling_iface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 1161s # * 1161s # * The calling thread is blocked until a reply is received. 1161s # * 1161s # * See org_project_signaling_iface_proxy_new_for_bus() for the asynchronous version of this constructor. 1161s # * 1161s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 1161s # */ 1161s # OrgProjectSignalingIface * 1161s # org_project_signaling_iface_proxy_new_for_bus_sync ( 1161s # GBusType bus_type, 1161s # GDBusProxyFlags flags, 1161s # const gchar *name, 1161s # const gchar *object_path, 1161s # GCancellable *cancellable, 1161s # GError **error) 1161s # { 1161s # GInitable *ret; 1161s # 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); 1161s # if (ret != NULL) 1161s # return ORG_PROJECT_SIGNALING_IFACE (ret); 1161s # else 1161s # return NULL; 1161s # } 1161s # 1161s # 1161s # /* ------------------------------------------------------------------------ */ 1161s # 1161s # /** 1161s # * OrgProjectSignalingIfaceSkeleton: 1161s # * 1161s # * The #OrgProjectSignalingIfaceSkeleton structure contains only private data and should only be accessed using the provided API. 1161s # */ 1161s # 1161s # /** 1161s # * OrgProjectSignalingIfaceSkeletonClass: 1161s # * @parent_class: The parent class. 1161s # * 1161s # * Class structure for #OrgProjectSignalingIfaceSkeleton. 1161s # */ 1161s # 1161s # struct _OrgProjectSignalingIfaceSkeletonPrivate 1161s # { 1161s # GValue *properties; 1161s # GList *changed_properties; 1161s # GSource *changed_properties_idle_source; 1161s # GMainContext *context; 1161s # GMutex lock; 1161s # }; 1161s # 1161s # static void 1161s # _org_project_signaling_iface_skeleton_handle_method_call ( 1161s # GDBusConnection *connection G_GNUC_UNUSED, 1161s # const gchar *sender G_GNUC_UNUSED, 1161s # const gchar *object_path G_GNUC_UNUSED, 1161s # const gchar *interface_name, 1161s # const gchar *method_name, 1161s # GVariant *parameters, 1161s # GDBusMethodInvocation *invocation, 1161s # gpointer user_data) 1161s # { 1161s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 1161s # _ExtendedGDBusMethodInfo *info; 1161s # GVariantIter iter; 1161s # GVariant *child; 1161s # GValue *paramv; 1161s # gsize num_params; 1161s # guint num_extra; 1161s # gsize n; 1161s # guint signal_id; 1161s # GValue return_value = G_VALUE_INIT; 1161s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 1161s # g_assert (info != NULL); 1161s # num_params = g_variant_n_children (parameters); 1161s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 1161s # n = 0; 1161s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_SIGNALING_IFACE); 1161s # g_value_set_object (¶mv[n++], skeleton); 1161s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 1161s # g_value_set_object (¶mv[n++], invocation); 1161s # if (info->pass_fdlist) 1161s # { 1161s # #ifdef G_OS_UNIX 1161s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 1161s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 1161s # #else 1161s # g_assert_not_reached (); 1161s # #endif 1161s # } 1161s # g_variant_iter_init (&iter, parameters); 1161s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1161s # { 1161s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 1161s # if (arg_info->use_gvariant) 1161s # { 1161s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1161s # g_value_set_variant (¶mv[n], child); 1161s # n++; 1161s # } 1161s # else 1161s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1161s # g_variant_unref (child); 1161s # } 1161s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_SIGNALING_IFACE); 1161s # g_value_init (&return_value, G_TYPE_BOOLEAN); 1161s # g_signal_emitv (paramv, signal_id, 0, &return_value); 1161s # if (!g_value_get_boolean (&return_value)) 1161s # 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); 1161s # g_value_unset (&return_value); 1161s # for (n = 0; n < num_params + num_extra; n++) 1161s # g_value_unset (¶mv[n]); 1161s # g_free (paramv); 1161s # } 1161s # 1161s # static GVariant * 1161s # _org_project_signaling_iface_skeleton_handle_get_property ( 1161s # GDBusConnection *connection G_GNUC_UNUSED, 1161s # const gchar *sender G_GNUC_UNUSED, 1161s # const gchar *object_path G_GNUC_UNUSED, 1161s # const gchar *interface_name G_GNUC_UNUSED, 1161s # const gchar *property_name, 1161s # GError **error, 1161s # gpointer user_data) 1161s # { 1161s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 1161s # GValue value = G_VALUE_INIT; 1161s # GParamSpec *pspec; 1161s # _ExtendedGDBusPropertyInfo *info; 1161s # GVariant *ret; 1161s # ret = NULL; 1161s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, property_name); 1161s # g_assert (info != NULL); 1161s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1161s # if (pspec == NULL) 1161s # { 1161s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1161s # } 1161s # else 1161s # { 1161s # g_value_init (&value, pspec->value_type); 1161s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1161s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 1161s # g_value_unset (&value); 1161s # } 1161s # return ret; 1161s # } 1161s # 1161s # static gboolean 1161s # _org_project_signaling_iface_skeleton_handle_set_property ( 1161s # GDBusConnection *connection G_GNUC_UNUSED, 1161s # const gchar *sender G_GNUC_UNUSED, 1161s # const gchar *object_path G_GNUC_UNUSED, 1161s # const gchar *interface_name G_GNUC_UNUSED, 1161s # const gchar *property_name, 1161s # GVariant *variant, 1161s # GError **error, 1161s # gpointer user_data) 1161s # { 1161s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 1161s # GValue value = G_VALUE_INIT; 1161s # GParamSpec *pspec; 1161s # _ExtendedGDBusPropertyInfo *info; 1161s # gboolean ret; 1161s # ret = FALSE; 1161s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, property_name); 1161s # g_assert (info != NULL); 1161s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1161s # if (pspec == NULL) 1161s # { 1161s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1161s # } 1161s # else 1161s # { 1161s # if (info->use_gvariant) 1161s # g_value_set_variant (&value, variant); 1161s # else 1161s # g_dbus_gvariant_to_gvalue (variant, &value); 1161s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1161s # g_value_unset (&value); 1161s # ret = TRUE; 1161s # } 1161s # return ret; 1161s # } 1161s # 1161s # static const GDBusInterfaceVTable _org_project_signaling_iface_skeleton_vtable = 1161s # { 1161s # _org_project_signaling_iface_skeleton_handle_method_call, 1161s # _org_project_signaling_iface_skeleton_handle_get_property, 1161s # _org_project_signaling_iface_skeleton_handle_set_property, 1161s # {NULL} 1161s # }; 1161s # 1161s # static GDBusInterfaceInfo * 1161s # org_project_signaling_iface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1161s # { 1161s # return org_project_signaling_iface_interface_info (); 1161s # } 1161s # 1161s # static GDBusInterfaceVTable * 1161s # org_project_signaling_iface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1161s # { 1161s # return (GDBusInterfaceVTable *) &_org_project_signaling_iface_skeleton_vtable; 1161s # } 1161s # 1161s # static GVariant * 1161s # org_project_signaling_iface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 1161s # { 1161s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (_skeleton); 1161s # 1161s # GVariantBuilder builder; 1161s # guint n; 1161s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 1161s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 1161s # #else 1161s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 1161s # #endif 1161s # if (_org_project_signaling_iface_interface_info.parent_struct.properties == NULL) 1161s # goto out; 1161s # for (n = 0; _org_project_signaling_iface_interface_info.parent_struct.properties[n] != NULL; n++) 1161s # { 1161s # GDBusPropertyInfo *info = _org_project_signaling_iface_interface_info.parent_struct.properties[n]; 1161s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 1161s # { 1161s # GVariant *value; 1161s # 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); 1161s # if (value != NULL) 1161s # { 1161s # g_variant_take_ref (value); 1161s # g_variant_builder_add (&builder, "{sv}", info->name, value); 1161s # g_variant_unref (value); 1161s # } 1161s # } 1161s # } 1161s # out: 1161s # return g_variant_builder_end (&builder); 1161s # } 1161s # 1161s # static void 1161s # org_project_signaling_iface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 1161s # { 1161s # } 1161s # 1161s # static void 1161s # _org_project_signaling_iface_on_signal_simple_signal ( 1161s # OrgProjectSignalingIface *object) 1161s # { 1161s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 1161s # 1161s # GList *connections, *l; 1161s # GVariant *signal_variant; 1161s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 1161s # 1161s # signal_variant = g_variant_ref_sink (g_variant_new ("()")); 1161s # for (l = connections; l != NULL; l = l->next) 1161s # { 1161s # GDBusConnection *connection = l->data; 1161s # g_dbus_connection_emit_signal (connection, 1161s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SimpleSignal", 1161s # signal_variant, NULL); 1161s # } 1161s # g_variant_unref (signal_variant); 1161s # g_list_free_full (connections, g_object_unref); 1161s # } 1161s # 1161s # static void 1161s # _org_project_signaling_iface_on_signal_single_arg_signal_s ( 1161s # OrgProjectSignalingIface *object, 1161s # const gchar *arg_arg_s) 1161s # { 1161s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 1161s # 1161s # GList *connections, *l; 1161s # GVariant *signal_variant; 1161s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 1161s # 1161s # signal_variant = g_variant_ref_sink (g_variant_new ("(s)", 1161s # arg_arg_s)); 1161s # for (l = connections; l != NULL; l = l->next) 1161s # { 1161s # GDBusConnection *connection = l->data; 1161s # g_dbus_connection_emit_signal (connection, 1161s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SingleArgSignalS", 1161s # signal_variant, NULL); 1161s # } 1161s # g_variant_unref (signal_variant); 1161s # g_list_free_full (connections, g_object_unref); 1161s # } 1161s # 1161s # static void org_project_signaling_iface_skeleton_iface_init (OrgProjectSignalingIfaceIface *iface); 1161s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1161s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceSkeleton, org_project_signaling_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1161s # G_ADD_PRIVATE (OrgProjectSignalingIfaceSkeleton) 1161s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_skeleton_iface_init)) 1161s # 1161s # #else 1161s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceSkeleton, org_project_signaling_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1161s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_skeleton_iface_init)) 1161s # 1161s # #endif 1161s # static void 1161s # org_project_signaling_iface_skeleton_finalize (GObject *object) 1161s # { 1161s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 1161s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 1161s # if (skeleton->priv->changed_properties_idle_source != NULL) 1161s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 1161s # g_main_context_unref (skeleton->priv->context); 1161s # g_mutex_clear (&skeleton->priv->lock); 1161s # G_OBJECT_CLASS (org_project_signaling_iface_skeleton_parent_class)->finalize (object); 1161s # } 1161s # 1161s # static void 1161s # org_project_signaling_iface_skeleton_init (OrgProjectSignalingIfaceSkeleton *skeleton) 1161s # { 1161s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1161s # skeleton->priv = org_project_signaling_iface_skeleton_get_instance_private (skeleton); 1161s # #else 1161s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_SIGNALING_IFACE_SKELETON, OrgProjectSignalingIfaceSkeletonPrivate); 1161s # #endif 1161s # 1161s # g_mutex_init (&skeleton->priv->lock); 1161s # skeleton->priv->context = g_main_context_ref_thread_default (); 1161s # } 1161s # 1161s # static void 1161s # org_project_signaling_iface_skeleton_class_init (OrgProjectSignalingIfaceSkeletonClass *klass) 1161s # { 1161s # GObjectClass *gobject_class; 1161s # GDBusInterfaceSkeletonClass *skeleton_class; 1161s # 1161s # gobject_class = G_OBJECT_CLASS (klass); 1161s # gobject_class->finalize = org_project_signaling_iface_skeleton_finalize; 1161s # 1161s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 1161s # skeleton_class->get_info = org_project_signaling_iface_skeleton_dbus_interface_get_info; 1161s # skeleton_class->get_properties = org_project_signaling_iface_skeleton_dbus_interface_get_properties; 1161s # skeleton_class->flush = org_project_signaling_iface_skeleton_dbus_interface_flush; 1161s # skeleton_class->get_vtable = org_project_signaling_iface_skeleton_dbus_interface_get_vtable; 1161s # 1161s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1161s # g_type_class_add_private (klass, sizeof (OrgProjectSignalingIfaceSkeletonPrivate)); 1161s # #endif 1161s # } 1161s # 1161s # static void 1161s # org_project_signaling_iface_skeleton_iface_init (OrgProjectSignalingIfaceIface *iface) 1161s # { 1161s # iface->simple_signal = _org_project_signaling_iface_on_signal_simple_signal; 1161s # iface->single_arg_signal_s = _org_project_signaling_iface_on_signal_single_arg_signal_s; 1161s # } 1161s # 1161s # /** 1161s # * org_project_signaling_iface_skeleton_new: 1161s # * 1161s # * Creates a skeleton object for the D-Bus interface org.project.SignalingIface. 1161s # * 1161s # * Returns: (transfer full) (type OrgProjectSignalingIfaceSkeleton): The skeleton object. 1161s # */ 1161s # OrgProjectSignalingIface * 1161s # org_project_signaling_iface_skeleton_new (void) 1161s # { 1161s # return ORG_PROJECT_SIGNALING_IFACE (g_object_new (TYPE_ORG_PROJECT_SIGNALING_IFACE_SKELETON, NULL)); 1161s # } 1161s # Error: 1161s # 1161s # /tmp/tmpjwrvmpd2/tmpf6m6p3ab.xml: 1161s # 1161s # 1161s # 1161s # 1161s # 1161s # 1161s # 1161s # 1161s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpjwrvmpd2/tmpf6m6p3ab.xml', '--output', '-', '--body'] 1161s # Return code: 0 1161s # Output: 1161s # /* 1161s # * This file is generated by gdbus-codegen, do not modify it. 1161s # * 1161s # * The license of this code is the same as for the D-Bus interface description 1161s # * it was derived from. Note that it links to GLib, so must comply with the 1161s # * LGPL linking clauses. 1161s # */ 1161s # 1161s # #ifdef HAVE_CONFIG_H 1161s # # include "config.h" 1161s # #endif 1161s # 1161s # #include 1161s # #ifdef G_OS_UNIX 1161s # # include 1161s # #endif 1161s # 1161s # #ifdef G_ENABLE_DEBUG 1161s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 1161s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 1161s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 1161s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 1161s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 1161s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 1161s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 1161s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 1161s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 1161s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 1161s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 1161s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 1161s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 1161s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 1161s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 1161s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 1161s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 1161s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 1161s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 1161s # #else /* !G_ENABLE_DEBUG */ 1161s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 1161s # * Do not access GValues directly in your code. Instead, use the 1161s # * g_value_get_*() functions 1161s # */ 1161s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 1161s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 1161s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 1161s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 1161s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 1161s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 1161s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 1161s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 1161s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 1161s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 1161s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 1161s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 1161s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 1161s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 1161s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 1161s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 1161s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 1161s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 1161s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 1161s # #endif /* !G_ENABLE_DEBUG */ 1161s # 1161s # typedef struct 1161s # { 1161s # GDBusArgInfo parent_struct; 1161s # gboolean use_gvariant; 1161s # } _ExtendedGDBusArgInfo; 1161s # 1161s # typedef struct 1161s # { 1161s # GDBusMethodInfo parent_struct; 1161s # const gchar *signal_name; 1161s # gboolean pass_fdlist; 1161s # } _ExtendedGDBusMethodInfo; 1161s # 1161s # typedef struct 1161s # { 1161s # GDBusSignalInfo parent_struct; 1161s # const gchar *signal_name; 1161s # } _ExtendedGDBusSignalInfo; 1161s # 1161s # typedef struct 1161s # { 1161s # GDBusPropertyInfo parent_struct; 1161s # const gchar *hyphen_name; 1161s # guint use_gvariant : 1; 1161s # guint emits_changed_signal : 1; 1161s # } _ExtendedGDBusPropertyInfo; 1161s # 1161s # typedef struct 1161s # { 1161s # GDBusInterfaceInfo parent_struct; 1161s # const gchar *hyphen_name; 1161s # } _ExtendedGDBusInterfaceInfo; 1161s # 1161s # typedef struct 1161s # { 1161s # const _ExtendedGDBusPropertyInfo *info; 1161s # guint prop_id; 1161s # GValue orig_value; /* the value before the change */ 1161s # } ChangedProperty; 1161s # 1161s # static void 1161s # _changed_property_free (ChangedProperty *data) 1161s # { 1161s # g_value_unset (&data->orig_value); 1161s # g_free (data); 1161s # } 1161s # 1161s # static gboolean 1161s # _g_strv_equal0 (gchar **a, gchar **b) 1161s # { 1161s # gboolean ret = FALSE; 1161s # guint n; 1161s # if (a == NULL && b == NULL) 1161s # { 1161s # ret = TRUE; 1161s # goto out; 1161s # } 1161s # if (a == NULL || b == NULL) 1161s # goto out; 1161s # if (g_strv_length (a) != g_strv_length (b)) 1161s # goto out; 1161s # for (n = 0; a[n] != NULL; n++) 1161s # if (g_strcmp0 (a[n], b[n]) != 0) 1161s # goto out; 1161s # ret = TRUE; 1161s # out: 1161s # return ret; 1161s # } 1161s # 1161s # static gboolean 1161s # _g_variant_equal0 (GVariant *a, GVariant *b) 1161s # { 1161s # gboolean ret = FALSE; 1161s # if (a == NULL && b == NULL) 1161s # { 1161s # ret = TRUE; 1161s # goto out; 1161s # } 1161s # if (a == NULL || b == NULL) 1161s # goto out; 1161s # ret = g_variant_equal (a, b); 1161s # out: 1161s # return ret; 1161s # } 1161s # 1161s # G_GNUC_UNUSED static gboolean 1161s # _g_value_equal (const GValue *a, const GValue *b) 1161s # { 1161s # gboolean ret = FALSE; 1161s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 1161s # switch (G_VALUE_TYPE (a)) 1161s # { 1161s # case G_TYPE_BOOLEAN: 1161s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 1161s # break; 1161s # case G_TYPE_UCHAR: 1161s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 1161s # break; 1161s # case G_TYPE_INT: 1161s # ret = (g_value_get_int (a) == g_value_get_int (b)); 1161s # break; 1161s # case G_TYPE_UINT: 1161s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 1161s # break; 1161s # case G_TYPE_INT64: 1161s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 1161s # break; 1161s # case G_TYPE_UINT64: 1161s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 1161s # break; 1161s # case G_TYPE_DOUBLE: 1161s # { 1161s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 1161s # gdouble da = g_value_get_double (a); 1161s # gdouble db = g_value_get_double (b); 1161s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 1161s # } 1161s # break; 1161s # case G_TYPE_STRING: 1161s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 1161s # break; 1161s # case G_TYPE_VARIANT: 1161s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 1161s # break; 1161s # default: 1161s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 1161s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 1161s # else 1161s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 1161s # break; 1161s # } 1161s # return ret; 1161s # } 1161s # 1161s # /* ------------------------------------------------------------------------ 1161s # * Code for interface org.project.SignalingIface 1161s # * ------------------------------------------------------------------------ 1161s # */ 1161s # 1161s # /** 1161s # * SECTION:OrgProjectSignalingIface 1161s # * @title: OrgProjectSignalingIface 1161s # * @short_description: Generated C code for the org.project.SignalingIface D-Bus interface 1161s # * 1161s # * This section contains code for working with the org.project.SignalingIface D-Bus interface in C. 1161s # */ 1161s # 1161s # enum 1161s # { 1161s # _ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL, 1161s # _ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_O, 1161s # }; 1161s # 1161s # static unsigned _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[2] = { 0 }; 1161s # 1161s # /* ---- Introspection data for org.project.SignalingIface ---- */ 1161s # 1161s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_simple_signal = 1161s # { 1161s # { 1161s # -1, 1161s # (gchar *) "SimpleSignal", 1161s # NULL, 1161s # NULL 1161s # }, 1161s # "simple-signal" 1161s # }; 1161s # 1161s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_single_arg_signal_o_ARG_arg_o = 1161s # { 1161s # { 1161s # -1, 1161s # (gchar *) "arg_o", 1161s # (gchar *) "o", 1161s # NULL 1161s # }, 1161s # FALSE 1161s # }; 1161s # 1161s # static const GDBusArgInfo * const _org_project_signaling_iface_signal_info_single_arg_signal_o_ARG_pointers[] = 1161s # { 1161s # &_org_project_signaling_iface_signal_info_single_arg_signal_o_ARG_arg_o.parent_struct, 1161s # NULL 1161s # }; 1161s # 1161s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_single_arg_signal_o = 1161s # { 1161s # { 1161s # -1, 1161s # (gchar *) "SingleArgSignalO", 1161s # (GDBusArgInfo **) &_org_project_signaling_iface_signal_info_single_arg_signal_o_ARG_pointers, 1161s # NULL 1161s # }, 1161s # "single-arg-signal-o" 1161s # }; 1161s # 1161s # static const GDBusSignalInfo * const _org_project_signaling_iface_signal_info_pointers[] = 1161s # { 1161s # &_org_project_signaling_iface_signal_info_simple_signal.parent_struct, 1161s # &_org_project_signaling_iface_signal_info_single_arg_signal_o.parent_struct, 1161s # NULL 1161s # }; 1161s # 1161s # static const _ExtendedGDBusInterfaceInfo _org_project_signaling_iface_interface_info = 1161s # { 1161s # { 1161s # -1, 1161s # (gchar *) "org.project.SignalingIface", 1161s # NULL, 1161s # (GDBusSignalInfo **) &_org_project_signaling_iface_signal_info_pointers, 1161s # NULL, 1161s # NULL 1161s # }, 1161s # "org-project-signaling-iface", 1161s # }; 1161s # 1161s # 1161s # /** 1161s # * org_project_signaling_iface_interface_info: 1161s # * 1161s # * Gets a machine-readable description of the org.project.SignalingIface D-Bus interface. 1161s # * 1161s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 1161s # */ 1161s # GDBusInterfaceInfo * 1161s # org_project_signaling_iface_interface_info (void) 1161s # { 1161s # return (GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct; 1161s # } 1161s # 1161s # /** 1161s # * org_project_signaling_iface_override_properties: 1161s # * @klass: The class structure for a #GObject derived class. 1161s # * @property_id_begin: The property id to assign to the first overridden property. 1161s # * 1161s # * Overrides all #GObject properties in the #OrgProjectSignalingIface interface for a concrete class. 1161s # * The properties are overridden in the order they are defined. 1161s # * 1161s # * Returns: The last property id. 1161s # */ 1161s # guint 1161s # org_project_signaling_iface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 1161s # { 1161s # return property_id_begin - 1; 1161s # } 1161s # 1161s # 1161s # inline static void 1161s # org_project_signaling_iface_signal_marshal_simple_signal ( 1161s # GClosure *closure, 1161s # GValue *return_value, 1161s # unsigned int n_param_values, 1161s # const GValue *param_values, 1161s # void *invocation_hint, 1161s # void *marshal_data) 1161s # { 1161s # g_cclosure_marshal_VOID__VOID (closure, 1161s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1161s # } 1161s # 1161s # inline static void 1161s # org_project_signaling_iface_signal_marshal_single_arg_signal_o ( 1161s # GClosure *closure, 1161s # GValue *return_value, 1161s # unsigned int n_param_values, 1161s # const GValue *param_values, 1161s # void *invocation_hint, 1161s # void *marshal_data) 1161s # { 1161s # g_cclosure_marshal_VOID__STRING (closure, 1161s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1161s # } 1161s # 1161s # 1161s # /** 1161s # * OrgProjectSignalingIface: 1161s # * 1161s # * Abstract interface type for the D-Bus interface org.project.SignalingIface. 1161s # */ 1161s # 1161s # /** 1161s # * OrgProjectSignalingIfaceIface: 1161s # * @parent_iface: The parent interface. 1161s # * @simple_signal: Handler for the #OrgProjectSignalingIface::simple-signal signal. 1161s # * @single_arg_signal_o: Handler for the #OrgProjectSignalingIface::single-arg-signal-o signal. 1161s # * 1161s # * Virtual table for the D-Bus interface org.project.SignalingIface. 1161s # */ 1161s # 1161s # typedef OrgProjectSignalingIfaceIface OrgProjectSignalingIfaceInterface; 1161s # G_DEFINE_INTERFACE (OrgProjectSignalingIface, org_project_signaling_iface, G_TYPE_OBJECT) 1161s # 1161s # static void 1161s # org_project_signaling_iface_default_init (OrgProjectSignalingIfaceIface *iface) 1161s # { 1161s # /* GObject signals for received D-Bus signals: */ 1161s # /** 1161s # * OrgProjectSignalingIface::simple-signal: 1161s # * @object: A #OrgProjectSignalingIface. 1161s # * 1161s # * On the client-side, this signal is emitted whenever the D-Bus signal "SimpleSignal" is received. 1161s # * 1161s # * 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. 1161s # */ 1161s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL] = 1161s # g_signal_new ("simple-signal", 1161s # G_TYPE_FROM_INTERFACE (iface), 1161s # G_SIGNAL_RUN_LAST, 1161s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, simple_signal), 1161s # NULL, 1161s # NULL, 1161s # org_project_signaling_iface_signal_marshal_simple_signal, 1161s # G_TYPE_NONE, 1161s # 0); 1161s # 1161s # /** 1161s # * OrgProjectSignalingIface::single-arg-signal-o: 1161s # * @object: A #OrgProjectSignalingIface. 1161s # * @arg_arg_o: Argument. 1161s # * 1161s # * On the client-side, this signal is emitted whenever the D-Bus signal "SingleArgSignalO" is received. 1161s # * 1161s # * 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. 1161s # */ 1161s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_O] = 1161s # g_signal_new ("single-arg-signal-o", 1161s # G_TYPE_FROM_INTERFACE (iface), 1161s # G_SIGNAL_RUN_LAST, 1161s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, single_arg_signal_o), 1161s # NULL, 1161s # NULL, 1161s # org_project_signaling_iface_signal_marshal_single_arg_signal_o, 1161s # G_TYPE_NONE, 1161s # 1, G_TYPE_STRING); 1161s # 1161s # } 1161s # 1161s # /** 1161s # * org_project_signaling_iface_emit_simple_signal: 1161s # * @object: A #OrgProjectSignalingIface. 1161s # * 1161s # * Emits the "SimpleSignal" D-Bus signal. 1161s # */ 1161s # void 1161s # org_project_signaling_iface_emit_simple_signal ( 1161s # OrgProjectSignalingIface *object) 1161s # { 1161s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL], 0); 1161s # } 1161s # 1161s # /** 1161s # * org_project_signaling_iface_emit_single_arg_signal_o: 1161s # * @object: A #OrgProjectSignalingIface. 1161s # * @arg_arg_o: Argument to pass with the signal. 1161s # * 1161s # * Emits the "SingleArgSignalO" D-Bus signal. 1161s # */ 1161s # void 1161s # org_project_signaling_iface_emit_single_arg_signal_o ( 1161s # OrgProjectSignalingIface *object, 1161s # const gchar *arg_arg_o) 1161s # { 1161s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_O], 0, arg_arg_o); 1161s # } 1161s # 1161s # /* ------------------------------------------------------------------------ */ 1161s # 1161s # /** 1161s # * OrgProjectSignalingIfaceProxy: 1161s # * 1161s # * The #OrgProjectSignalingIfaceProxy structure contains only private data and should only be accessed using the provided API. 1161s # */ 1161s # 1161s # /** 1161s # * OrgProjectSignalingIfaceProxyClass: 1161s # * @parent_class: The parent class. 1161s # * 1161s # * Class structure for #OrgProjectSignalingIfaceProxy. 1161s # */ 1161s # 1161s # struct _OrgProjectSignalingIfaceProxyPrivate 1161s # { 1161s # GData *qdata; 1161s # }; 1161s # 1161s # static void org_project_signaling_iface_proxy_iface_init (OrgProjectSignalingIfaceIface *iface); 1161s # 1161s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1161s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceProxy, org_project_signaling_iface_proxy, G_TYPE_DBUS_PROXY, 1161s # G_ADD_PRIVATE (OrgProjectSignalingIfaceProxy) 1161s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_proxy_iface_init)) 1161s # 1161s # #else 1161s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceProxy, org_project_signaling_iface_proxy, G_TYPE_DBUS_PROXY, 1161s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_proxy_iface_init)) 1161s # 1161s # #endif 1161s # static void 1161s # org_project_signaling_iface_proxy_finalize (GObject *object) 1161s # { 1161s # OrgProjectSignalingIfaceProxy *proxy = ORG_PROJECT_SIGNALING_IFACE_PROXY (object); 1161s # g_datalist_clear (&proxy->priv->qdata); 1161s # G_OBJECT_CLASS (org_project_signaling_iface_proxy_parent_class)->finalize (object); 1161s # } 1161s # 1161s # static void 1161s # org_project_signaling_iface_proxy_get_property (GObject *object G_GNUC_UNUSED, 1161s # guint prop_id G_GNUC_UNUSED, 1161s # GValue *value G_GNUC_UNUSED, 1161s # GParamSpec *pspec G_GNUC_UNUSED) 1161s # { 1161s # } 1161s # 1161s # static void 1161s # org_project_signaling_iface_proxy_set_property (GObject *object G_GNUC_UNUSED, 1161s # guint prop_id G_GNUC_UNUSED, 1161s # const GValue *value G_GNUC_UNUSED, 1161s # GParamSpec *pspec G_GNUC_UNUSED) 1161s # { 1161s # } 1161s # 1161s # static void 1161s # org_project_signaling_iface_proxy_g_signal (GDBusProxy *proxy, 1161s # const gchar *sender_name G_GNUC_UNUSED, 1161s # const gchar *signal_name, 1161s # GVariant *parameters) 1161s # { 1161s # _ExtendedGDBusSignalInfo *info; 1161s # GVariantIter iter; 1161s # GVariant *child; 1161s # GValue *paramv; 1161s # gsize num_params; 1161s # gsize n; 1161s # guint signal_id; 1161s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, signal_name); 1161s # if (info == NULL) 1161s # return; 1161s # num_params = g_variant_n_children (parameters); 1161s # paramv = g_new0 (GValue, num_params + 1); 1161s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_SIGNALING_IFACE); 1161s # g_value_set_object (¶mv[0], proxy); 1161s # g_variant_iter_init (&iter, parameters); 1161s # n = 1; 1161s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1161s # { 1161s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 1161s # if (arg_info->use_gvariant) 1161s # { 1161s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1161s # g_value_set_variant (¶mv[n], child); 1161s # n++; 1161s # } 1161s # else 1161s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1161s # g_variant_unref (child); 1161s # } 1161s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_SIGNALING_IFACE); 1161s # g_signal_emitv (paramv, signal_id, 0, NULL); 1161s # for (n = 0; n < num_params + 1; n++) 1161s # g_value_unset (¶mv[n]); 1161s # g_free (paramv); 1161s # } 1161s # 1161s # static void 1161s # org_project_signaling_iface_proxy_g_properties_changed (GDBusProxy *_proxy, 1161s # GVariant *changed_properties, 1161s # const gchar *const *invalidated_properties) 1161s # { 1161s # OrgProjectSignalingIfaceProxy *proxy = ORG_PROJECT_SIGNALING_IFACE_PROXY (_proxy); 1161s # guint n; 1161s # const gchar *key; 1161s # GVariantIter *iter; 1161s # _ExtendedGDBusPropertyInfo *info; 1161s # g_variant_get (changed_properties, "a{sv}", &iter); 1161s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 1161s # { 1161s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, key); 1161s # g_datalist_remove_data (&proxy->priv->qdata, key); 1161s # if (info != NULL) 1161s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1161s # } 1161s # g_variant_iter_free (iter); 1161s # for (n = 0; invalidated_properties[n] != NULL; n++) 1161s # { 1161s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, invalidated_properties[n]); 1161s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 1161s # if (info != NULL) 1161s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1161s # } 1161s # } 1161s # 1161s # static void 1161s # org_project_signaling_iface_proxy_init (OrgProjectSignalingIfaceProxy *proxy) 1161s # { 1161s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1161s # proxy->priv = org_project_signaling_iface_proxy_get_instance_private (proxy); 1161s # #else 1161s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_SIGNALING_IFACE_PROXY, OrgProjectSignalingIfaceProxyPrivate); 1161s # #endif 1161s # 1161s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_signaling_iface_interface_info ()); 1161s # } 1161s # 1161s # static void 1161s # org_project_signaling_iface_proxy_class_init (OrgProjectSignalingIfaceProxyClass *klass) 1161s # { 1161s # GObjectClass *gobject_class; 1161s # GDBusProxyClass *proxy_class; 1161s # 1161s # gobject_class = G_OBJECT_CLASS (klass); 1161s # gobject_class->finalize = org_project_signaling_iface_proxy_finalize; 1161s # gobject_class->get_property = org_project_signaling_iface_proxy_get_property; 1161s # gobject_class->set_property = org_project_signaling_iface_proxy_set_property; 1161s # 1161s # proxy_class = G_DBUS_PROXY_CLASS (klass); 1161s # proxy_class->g_signal = org_project_signaling_iface_proxy_g_signal; 1161s # proxy_class->g_properties_changed = org_project_signaling_iface_proxy_g_properties_changed; 1161s # 1161s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1161s # g_type_class_add_private (klass, sizeof (OrgProjectSignalingIfaceProxyPrivate)); 1161s # #endif 1161s # } 1161s # 1161s # static void 1161s # org_project_signaling_iface_proxy_iface_init (OrgProjectSignalingIfaceIface *iface G_GNUC_UNUSED) 1161s # { 1161s # } 1161s # 1161s # /** 1161s # * org_project_signaling_iface_proxy_new: 1161s # * @connection: A #GDBusConnection. 1161s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1161s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1161s # * @object_path: An object path. 1161s # * @cancellable: (nullable): A #GCancellable or %NULL. 1161s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1161s # * @user_data: User data to pass to @callback. 1161s # * 1161s # * Asynchronously creates a proxy for the D-Bus interface org.project.SignalingIface. See g_dbus_proxy_new() for more details. 1161s # * 1161s # * 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()). 1161s # * You can then call org_project_signaling_iface_proxy_new_finish() to get the result of the operation. 1161s # * 1161s # * See org_project_signaling_iface_proxy_new_sync() for the synchronous, blocking version of this constructor. 1161s # */ 1161s # void 1161s # org_project_signaling_iface_proxy_new ( 1161s # GDBusConnection *connection, 1161s # GDBusProxyFlags flags, 1161s # const gchar *name, 1161s # const gchar *object_path, 1161s # GCancellable *cancellable, 1161s # GAsyncReadyCallback callback, 1161s # gpointer user_data) 1161s # { 1161s # 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); 1161s # } 1161s # 1161s # /** 1161s # * org_project_signaling_iface_proxy_new_finish: 1161s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_signaling_iface_proxy_new(). 1161s # * @error: Return location for error or %NULL 1161s # * 1161s # * Finishes an operation started with org_project_signaling_iface_proxy_new(). 1161s # * 1161s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 1161s # */ 1161s # OrgProjectSignalingIface * 1161s # org_project_signaling_iface_proxy_new_finish ( 1161s # GAsyncResult *res, 1161s # GError **error) 1161s # { 1161s # GObject *ret; 1161s # GObject *source_object; 1161s # source_object = g_async_result_get_source_object (res); 1161s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1161s # g_object_unref (source_object); 1161s # if (ret != NULL) 1161s # return ORG_PROJECT_SIGNALING_IFACE (ret); 1161s # else 1161s # return NULL; 1161s # } 1161s # 1161s # /** 1161s # * org_project_signaling_iface_proxy_new_sync: 1161s # * @connection: A #GDBusConnection. 1161s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1161s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1161s # * @object_path: An object path. 1161s # * @cancellable: (nullable): A #GCancellable or %NULL. 1161s # * @error: Return location for error or %NULL 1161s # * 1161s # * Synchronously creates a proxy for the D-Bus interface org.project.SignalingIface. See g_dbus_proxy_new_sync() for more details. 1161s # * 1161s # * The calling thread is blocked until a reply is received. 1161s # * 1161s # * See org_project_signaling_iface_proxy_new() for the asynchronous version of this constructor. 1161s # * 1161s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 1161s # */ 1161s # OrgProjectSignalingIface * 1161s # org_project_signaling_iface_proxy_new_sync ( 1161s # GDBusConnection *connection, 1161s # GDBusProxyFlags flags, 1161s # const gchar *name, 1161s # const gchar *object_path, 1161s # GCancellable *cancellable, 1161s # GError **error) 1161s # { 1161s # GInitable *ret; 1161s # 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); 1161s # if (ret != NULL) 1161s # return ORG_PROJECT_SIGNALING_IFACE (ret); 1161s # else 1161s # return NULL; 1161s # } 1161s # 1161s # 1161s # /** 1161s # * org_project_signaling_iface_proxy_new_for_bus: 1161s # * @bus_type: A #GBusType. 1161s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1161s # * @name: A bus name (well-known or unique). 1161s # * @object_path: An object path. 1161s # * @cancellable: (nullable): A #GCancellable or %NULL. 1161s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1161s # * @user_data: User data to pass to @callback. 1161s # * 1161s # * Like org_project_signaling_iface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 1161s # * 1161s # * 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()). 1161s # * You can then call org_project_signaling_iface_proxy_new_for_bus_finish() to get the result of the operation. 1161s # * 1161s # * See org_project_signaling_iface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 1161s # */ 1161s # void 1161s # org_project_signaling_iface_proxy_new_for_bus ( 1161s # GBusType bus_type, 1161s # GDBusProxyFlags flags, 1161s # const gchar *name, 1161s # const gchar *object_path, 1161s # GCancellable *cancellable, 1161s # GAsyncReadyCallback callback, 1161s # gpointer user_data) 1161s # { 1161s # 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); 1161s # } 1161s # 1161s # /** 1161s # * org_project_signaling_iface_proxy_new_for_bus_finish: 1161s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_signaling_iface_proxy_new_for_bus(). 1161s # * @error: Return location for error or %NULL 1161s # * 1161s # * Finishes an operation started with org_project_signaling_iface_proxy_new_for_bus(). 1161s # * 1161s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 1161s # */ 1161s # OrgProjectSignalingIface * 1161s # org_project_signaling_iface_proxy_new_for_bus_finish ( 1161s # GAsyncResult *res, 1161s # GError **error) 1161s # { 1161s # GObject *ret; 1161s # GObject *source_object; 1161s # source_object = g_async_result_get_source_object (res); 1161s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1161s # g_object_unref (source_object); 1161s # if (ret != NULL) 1161s # return ORG_PROJECT_SIGNALING_IFACE (ret); 1161s # else 1161s # return NULL; 1161s # } 1161s # 1161s # /** 1161s # * org_project_signaling_iface_proxy_new_for_bus_sync: 1161s # * @bus_type: A #GBusType. 1161s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1161s # * @name: A bus name (well-known or unique). 1161s # * @object_path: An object path. 1161s # * @cancellable: (nullable): A #GCancellable or %NULL. 1161s # * @error: Return location for error or %NULL 1161s # * 1161s # * Like org_project_signaling_iface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 1161s # * 1161s # * The calling thread is blocked until a reply is received. 1161s # * 1161s # * See org_project_signaling_iface_proxy_new_for_bus() for the asynchronous version of this constructor. 1161s # * 1161s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 1161s # */ 1161s # OrgProjectSignalingIface * 1161s # org_project_signaling_iface_proxy_new_for_bus_sync ( 1161s # GBusType bus_type, 1161s # GDBusProxyFlags flags, 1161s # const gchar *name, 1161s # const gchar *object_path, 1161s # GCancellable *cancellable, 1161s # GError **error) 1161s # { 1161s # GInitable *ret; 1161s # 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); 1161s # if (ret != NULL) 1161s # return ORG_PROJECT_SIGNALING_IFACE (ret); 1161s # else 1161s # return NULL; 1161s # } 1161s # 1161s # 1161s # /* ------------------------------------------------------------------------ */ 1161s # 1161s # /** 1161s # * OrgProjectSignalingIfaceSkeleton: 1161s # * 1161s # * The #OrgProjectSignalingIfaceSkeleton structure contains only private data and should only be accessed using the provided API. 1161s # */ 1161s # 1161s # /** 1161s # * OrgProjectSignalingIfaceSkeletonClass: 1161s # * @parent_class: The parent class. 1161s # * 1161s # * Class structure for #OrgProjectSignalingIfaceSkeleton. 1161s # */ 1161s # 1161s # struct _OrgProjectSignalingIfaceSkeletonPrivate 1161s # { 1161s # GValue *properties; 1161s # GList *changed_properties; 1161s # GSource *changed_properties_idle_source; 1161s # GMainContext *context; 1161s # GMutex lock; 1161s # }; 1161s # 1161s # static void 1161s # _org_project_signaling_iface_skeleton_handle_method_call ( 1161s # GDBusConnection *connection G_GNUC_UNUSED, 1161s # const gchar *sender G_GNUC_UNUSED, 1161s # const gchar *object_path G_GNUC_UNUSED, 1161s # const gchar *interface_name, 1161s # const gchar *method_name, 1161s # GVariant *parameters, 1161s # GDBusMethodInvocation *invocation, 1161s # gpointer user_data) 1161s # { 1161s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 1161s # _ExtendedGDBusMethodInfo *info; 1161s # GVariantIter iter; 1161s # GVariant *child; 1161s # GValue *paramv; 1161s # gsize num_params; 1161s # guint num_extra; 1161s # gsize n; 1161s # guint signal_id; 1161s # GValue return_value = G_VALUE_INIT; 1161s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 1161s # g_assert (info != NULL); 1161s # num_params = g_variant_n_children (parameters); 1161s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 1161s # n = 0; 1161s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_SIGNALING_IFACE); 1161s # g_value_set_object (¶mv[n++], skeleton); 1161s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 1161s # g_value_set_object (¶mv[n++], invocation); 1161s # if (info->pass_fdlist) 1161s # { 1161s # #ifdef G_OS_UNIX 1161s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 1161s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 1161s # #else 1161s # g_assert_not_reached (); 1161s # #endif 1161s # } 1161s # g_variant_iter_init (&iter, parameters); 1161s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1161s # { 1161s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 1161s # if (arg_info->use_gvariant) 1161s # { 1161s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1161s # g_value_set_variant (¶mv[n], child); 1161s # n++; 1161s # } 1161s # else 1161s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1161s # g_variant_unref (child); 1161s # } 1161s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_SIGNALING_IFACE); 1161s # g_value_init (&return_value, G_TYPE_BOOLEAN); 1161s # g_signal_emitv (paramv, signal_id, 0, &return_value); 1161s # if (!g_value_get_boolean (&return_value)) 1161s # 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); 1161s # g_value_unset (&return_value); 1161s # for (n = 0; n < num_params + num_extra; n++) 1161s # g_value_unset (¶mv[n]); 1161s # g_free (paramv); 1161s # } 1161s # 1161s # static GVariant * 1161s # _org_project_signaling_iface_skeleton_handle_get_property ( 1161s # GDBusConnection *connection G_GNUC_UNUSED, 1161s # const gchar *sender G_GNUC_UNUSED, 1161s # const gchar *object_path G_GNUC_UNUSED, 1161s # const gchar *interface_name G_GNUC_UNUSED, 1161s # const gchar *property_name, 1161s # GError **error, 1161s # gpointer user_data) 1161s # { 1161s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 1161s # GValue value = G_VALUE_INIT; 1161s # GParamSpec *pspec; 1161s # _ExtendedGDBusPropertyInfo *info; 1161s # GVariant *ret; 1161s # ret = NULL; 1161s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, property_name); 1161s # g_assert (info != NULL); 1161s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1161s # if (pspec == NULL) 1161s # { 1161s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1161s # } 1161s # else 1161s # { 1161s # g_value_init (&value, pspec->value_type); 1161s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1161s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 1161s # g_value_unset (&value); 1161s # } 1161s # return ret; 1161s # } 1161s # 1161s # static gboolean 1161s # _org_project_signaling_iface_skeleton_handle_set_property ( 1161s # GDBusConnection *connection G_GNUC_UNUSED, 1161s # const gchar *sender G_GNUC_UNUSED, 1161s # const gchar *object_path G_GNUC_UNUSED, 1161s # const gchar *interface_name G_GNUC_UNUSED, 1161s # const gchar *property_name, 1161s # GVariant *variant, 1161s # GError **error, 1161s # gpointer user_data) 1161s # { 1161s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 1161s # GValue value = G_VALUE_INIT; 1161s # GParamSpec *pspec; 1161s # _ExtendedGDBusPropertyInfo *info; 1161s # gboolean ret; 1161s # ret = FALSE; 1161s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, property_name); 1161s # g_assert (info != NULL); 1161s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1161s # if (pspec == NULL) 1161s # { 1161s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1161s # } 1161s # else 1161s # { 1161s # if (info->use_gvariant) 1161s # g_value_set_variant (&value, variant); 1161s # else 1161s # g_dbus_gvariant_to_gvalue (variant, &value); 1161s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1161s # g_value_unset (&value); 1161s # ret = TRUE; 1161s # } 1161s # return ret; 1161s # } 1161s # 1161s # static const GDBusInterfaceVTable _org_project_signaling_iface_skeleton_vtable = 1161s # { 1161s # _org_project_signaling_iface_skeleton_handle_method_call, 1161s # _org_project_signaling_iface_skeleton_handle_get_property, 1161s # _org_project_signaling_iface_skeleton_handle_set_property, 1161s # {NULL} 1161s # }; 1161s # 1161s # static GDBusInterfaceInfo * 1161s # org_project_signaling_iface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1161s # { 1161s # return org_project_signaling_iface_interface_info (); 1161s # } 1161s # 1161s # static GDBusInterfaceVTable * 1161s # org_project_signaling_iface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1161s # { 1161s # return (GDBusInterfaceVTable *) &_org_project_signaling_iface_skeleton_vtable; 1161s # } 1161s # 1161s # static GVariant * 1161s # org_project_signaling_iface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 1161s # { 1161s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (_skeleton); 1161s # 1161s # GVariantBuilder builder; 1161s # guint n; 1161s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 1161s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 1161s # #else 1161s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 1161s # #endif 1161s # if (_org_project_signaling_iface_interface_info.parent_struct.properties == NULL) 1161s # goto out; 1161s # for (n = 0; _org_project_signaling_iface_interface_info.parent_struct.properties[n] != NULL; n++) 1161s # { 1161s # GDBusPropertyInfo *info = _org_project_signaling_iface_interface_info.parent_struct.properties[n]; 1161s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 1161s # { 1161s # GVariant *value; 1161s # 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); 1161s # if (value != NULL) 1161s # { 1161s # g_variant_take_ref (value); 1161s # g_variant_builder_add (&builder, "{sv}", info->name, value); 1161s # g_variant_unref (value); 1161s # } 1161s # } 1161s # } 1161s # out: 1161s # return g_variant_builder_end (&builder); 1161s # } 1161s # 1161s # static void 1161s # org_project_signaling_iface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 1161s # { 1161s # } 1161s # 1161s # static void 1161s # _org_project_signaling_iface_on_signal_simple_signal ( 1161s # OrgProjectSignalingIface *object) 1161s # { 1161s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 1161s # 1161s # GList *connections, *l; 1161s # GVariant *signal_variant; 1161s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 1161s # 1161s # signal_variant = g_variant_ref_sink (g_variant_new ("()")); 1161s # for (l = connections; l != NULL; l = l->next) 1161s # { 1161s # GDBusConnection *connection = l->data; 1161s # g_dbus_connection_emit_signal (connection, 1161s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SimpleSignal", 1161s # signal_variant, NULL); 1161s # } 1161s # g_variant_unref (signal_variant); 1161s # g_list_free_full (connections, g_object_unref); 1161s # } 1161s # 1161s # static void 1161s # _org_project_signaling_iface_on_signal_single_arg_signal_o ( 1161s # OrgProjectSignalingIface *object, 1161s # const gchar *arg_arg_o) 1161s # { 1161s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 1161s # 1161s # GList *connections, *l; 1161s # GVariant *signal_variant; 1161s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 1161s # 1161s # signal_variant = g_variant_ref_sink (g_variant_new ("(o)", 1161s # arg_arg_o)); 1161s # for (l = connections; l != NULL; l = l->next) 1161s # { 1161s # GDBusConnection *connection = l->data; 1161s # g_dbus_connection_emit_signal (connection, 1161s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SingleArgSignalO", 1161s # signal_variant, NULL); 1161s # } 1161s # g_variant_unref (signal_variant); 1161s # g_list_free_full (connections, g_object_unref); 1161s # } 1161s # 1161s # static void org_project_signaling_iface_skeleton_iface_init (OrgProjectSignalingIfaceIface *iface); 1161s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1161s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceSkeleton, org_project_signaling_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1161s # G_ADD_PRIVATE (OrgProjectSignalingIfaceSkeleton) 1161s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_skeleton_iface_init)) 1161s # 1161s # #else 1161s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceSkeleton, org_project_signaling_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1161s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_skeleton_iface_init)) 1161s # 1161s # #endif 1161s # static void 1161s # org_project_signaling_iface_skeleton_finalize (GObject *object) 1161s # { 1161s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 1161s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 1161s # if (skeleton->priv->changed_properties_idle_source != NULL) 1161s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 1161s # g_main_context_unref (skeleton->priv->context); 1161s # g_mutex_clear (&skeleton->priv->lock); 1161s # G_OBJECT_CLASS (org_project_signaling_iface_skeleton_parent_class)->finalize (object); 1161s # } 1161s # 1161s # static void 1161s # org_project_signaling_iface_skeleton_init (OrgProjectSignalingIfaceSkeleton *skeleton) 1161s # { 1161s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1161s # skeleton->priv = org_project_signaling_iface_skeleton_get_instance_private (skeleton); 1161s # #else 1161s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_SIGNALING_IFACE_SKELETON, OrgProjectSignalingIfaceSkeletonPrivate); 1161s # #endif 1161s # 1161s # g_mutex_init (&skeleton->priv->lock); 1161s # skeleton->priv->context = g_main_context_ref_thread_default (); 1161s # } 1161s # 1161s # static void 1161s # org_project_signaling_iface_skeleton_class_init (OrgProjectSignalingIfaceSkeletonClass *klass) 1161s # { 1161s # GObjectClass *gobject_class; 1161s # GDBusInterfaceSkeletonClass *skeleton_class; 1161s # 1161s # gobject_class = G_OBJECT_CLASS (klass); 1161s # gobject_class->finalize = org_project_signaling_iface_skeleton_finalize; 1161s # 1161s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 1161s # skeleton_class->get_info = org_project_signaling_iface_skeleton_dbus_interface_get_info; 1161s # skeleton_class->get_properties = org_project_signaling_iface_skeleton_dbus_interface_get_properties; 1161s # skeleton_class->flush = org_project_signaling_iface_skeleton_dbus_interface_flush; 1161s # skeleton_class->get_vtable = org_project_signaling_iface_skeleton_dbus_interface_get_vtable; 1161s # 1161s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1161s # g_type_class_add_private (klass, sizeof (OrgProjectSignalingIfaceSkeletonPrivate)); 1161s # #endif 1161s # } 1161s # 1161s # static void 1161s # org_project_signaling_iface_skeleton_iface_init (OrgProjectSignalingIfaceIface *iface) 1161s # { 1161s # iface->simple_signal = _org_project_signaling_iface_on_signal_simple_signal; 1161s # iface->single_arg_signal_o = _org_project_signaling_iface_on_signal_single_arg_signal_o; 1161s # } 1161s # 1161s # /** 1161s # * org_project_signaling_iface_skeleton_new: 1161s # * 1161s # * Creates a skeleton object for the D-Bus interface org.project.SignalingIface. 1161s # * 1161s # * Returns: (transfer full) (type OrgProjectSignalingIfaceSkeleton): The skeleton object. 1161s # */ 1161s # OrgProjectSignalingIface * 1161s # org_project_signaling_iface_skeleton_new (void) 1161s # { 1161s # return ORG_PROJECT_SIGNALING_IFACE (g_object_new (TYPE_ORG_PROJECT_SIGNALING_IFACE_SKELETON, NULL)); 1161s # } 1161s # Error: 1161s # 1161s # /tmp/tmpjwrvmpd2/tmpfnehllm9.xml: 1161s # 1161s # 1161s # 1161s # 1161s # 1161s # 1161s # 1161s # 1161s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpjwrvmpd2/tmpfnehllm9.xml', '--output', '-', '--body'] 1161s # Return code: 0 1161s # Output: 1161s # /* 1161s # * This file is generated by gdbus-codegen, do not modify it. 1161s # * 1161s # * The license of this code is the same as for the D-Bus interface description 1161s # * it was derived from. Note that it links to GLib, so must comply with the 1161s # * LGPL linking clauses. 1161s # */ 1161s # 1161s # #ifdef HAVE_CONFIG_H 1161s # # include "config.h" 1161s # #endif 1161s # 1161s # #include 1161s # #ifdef G_OS_UNIX 1161s # # include 1161s # #endif 1161s # 1161s # #ifdef G_ENABLE_DEBUG 1161s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 1161s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 1161s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 1161s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 1161s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 1161s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 1161s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 1161s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 1161s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 1161s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 1161s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 1161s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 1161s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 1161s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 1161s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 1161s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 1161s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 1161s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 1161s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 1161s # #else /* !G_ENABLE_DEBUG */ 1161s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 1161s # * Do not access GValues directly in your code. Instead, use the 1161s # * g_value_get_*() functions 1161s # */ 1161s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 1161s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 1161s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 1161s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 1161s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 1161s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 1161s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 1161s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 1161s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 1161s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 1161s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 1161s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 1161s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 1161s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 1161s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 1161s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 1161s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 1161s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 1161s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 1161s # #endif /* !G_ENABLE_DEBUG */ 1161s # 1161s # typedef struct 1161s # { 1161s # GDBusArgInfo parent_struct; 1161s # gboolean use_gvariant; 1161s # } _ExtendedGDBusArgInfo; 1161s # 1161s # typedef struct 1161s # { 1161s # GDBusMethodInfo parent_struct; 1161s # const gchar *signal_name; 1161s # gboolean pass_fdlist; 1161s # } _ExtendedGDBusMethodInfo; 1161s # 1161s # typedef struct 1161s # { 1161s # GDBusSignalInfo parent_struct; 1161s # const gchar *signal_name; 1161s # } _ExtendedGDBusSignalInfo; 1161s # 1161s # typedef struct 1161s # { 1161s # GDBusPropertyInfo parent_struct; 1161s # const gchar *hyphen_name; 1161s # guint use_gvariant : 1; 1161s # guint emits_changed_signal : 1; 1161s # } _ExtendedGDBusPropertyInfo; 1161s # 1161s # typedef struct 1161s # { 1161s # GDBusInterfaceInfo parent_struct; 1161s # const gchar *hyphen_name; 1161s # } _ExtendedGDBusInterfaceInfo; 1161s # 1161s # typedef struct 1161s # { 1161s # const _ExtendedGDBusPropertyInfo *info; 1161s # guint prop_id; 1161s # GValue orig_value; /* the value before the change */ 1161s # } ChangedProperty; 1161s # 1161s # static void 1161s # _changed_property_free (ChangedProperty *data) 1161s # { 1161s # g_value_unset (&data->orig_value); 1161s # g_free (data); 1161s # } 1161s # 1161s # static gboolean 1161s # _g_strv_equal0 (gchar **a, gchar **b) 1161s # { 1161s # gboolean ret = FALSE; 1161s # guint n; 1161s # if (a == NULL && b == NULL) 1161s # { 1161s # ret = TRUE; 1161s # goto out; 1161s # } 1161s # if (a == NULL || b == NULL) 1161s # goto out; 1161s # if (g_strv_length (a) != g_strv_length (b)) 1161s # goto out; 1161s # for (n = 0; a[n] != NULL; n++) 1161s # if (g_strcmp0 (a[n], b[n]) != 0) 1161s # goto out; 1161s # ret = TRUE; 1161s # out: 1161s # return ret; 1161s # } 1161s # 1161s # static gboolean 1161s # _g_variant_equal0 (GVariant *a, GVariant *b) 1161s # { 1161s # gboolean ret = FALSE; 1161s # if (a == NULL && b == NULL) 1161s # { 1161s # ret = TRUE; 1161s # goto out; 1161s # } 1161s # if (a == NULL || b == NULL) 1161s # goto out; 1161s # ret = g_variant_equal (a, b); 1161s # out: 1161s # return ret; 1161s # } 1161s # 1161s # G_GNUC_UNUSED static gboolean 1161s # _g_value_equal (const GValue *a, const GValue *b) 1161s # { 1161s # gboolean ret = FALSE; 1161s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 1161s # switch (G_VALUE_TYPE (a)) 1161s # { 1161s # case G_TYPE_BOOLEAN: 1161s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 1161s # break; 1161s # case G_TYPE_UCHAR: 1161s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 1161s # break; 1161s # case G_TYPE_INT: 1161s # ret = (g_value_get_int (a) == g_value_get_int (b)); 1161s # break; 1161s # case G_TYPE_UINT: 1161s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 1161s # break; 1161s # case G_TYPE_INT64: 1161s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 1161s # break; 1161s # case G_TYPE_UINT64: 1161s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 1161s # break; 1161s # case G_TYPE_DOUBLE: 1161s # { 1161s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 1161s # gdouble da = g_value_get_double (a); 1161s # gdouble db = g_value_get_double (b); 1161s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 1161s # } 1161s # break; 1161s # case G_TYPE_STRING: 1161s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 1161s # break; 1161s # case G_TYPE_VARIANT: 1161s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 1161s # break; 1161s # default: 1161s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 1161s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 1161s # else 1161s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 1161s # break; 1161s # } 1161s # return ret; 1161s # } 1161s # 1161s # /* ------------------------------------------------------------------------ 1161s # * Code for interface org.project.SignalingIface 1161s # * ------------------------------------------------------------------------ 1161s # */ 1161s # 1161s # /** 1161s # * SECTION:OrgProjectSignalingIface 1161s # * @title: OrgProjectSignalingIface 1161s # * @short_description: Generated C code for the org.project.SignalingIface D-Bus interface 1161s # * 1161s # * This section contains code for working with the org.project.SignalingIface D-Bus interface in C. 1161s # */ 1161s # 1161s # enum 1161s # { 1161s # _ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL, 1161s # _ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_G, 1161s # }; 1161s # 1161s # static unsigned _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[2] = { 0 }; 1161s # 1161s # /* ---- Introspection data for org.project.SignalingIface ---- */ 1161s # 1161s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_simple_signal = 1161s # { 1161s # { 1161s # -1, 1161s # (gchar *) "SimpleSignal", 1161s # NULL, 1161s # NULL 1161s # }, 1161s # "simple-signal" 1161s # }; 1161s # 1161s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_single_arg_signal_g_ARG_arg_g = 1161s # { 1161s # { 1161s # -1, 1161s # (gchar *) "arg_g", 1161s # (gchar *) "g", 1161s # NULL 1161s # }, 1161s # FALSE 1161s # }; 1161s # 1161s # static const GDBusArgInfo * const _org_project_signaling_iface_signal_info_single_arg_signal_g_ARG_pointers[] = 1161s # { 1161s # &_org_project_signaling_iface_signal_info_single_arg_signal_g_ARG_arg_g.parent_struct, 1161s # NULL 1161s # }; 1161s # 1161s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_single_arg_signal_g = 1161s # { 1161s # { 1161s # -1, 1161s # (gchar *) "SingleArgSignalG", 1161s # (GDBusArgInfo **) &_org_project_signaling_iface_signal_info_single_arg_signal_g_ARG_pointers, 1161s # NULL 1161s # }, 1161s # "single-arg-signal-g" 1161s # }; 1161s # 1161s # static const GDBusSignalInfo * const _org_project_signaling_iface_signal_info_pointers[] = 1161s # { 1161s # &_org_project_signaling_iface_signal_info_simple_signal.parent_struct, 1161s # &_org_project_signaling_iface_signal_info_single_arg_signal_g.parent_struct, 1161s # NULL 1161s # }; 1161s # 1161s # static const _ExtendedGDBusInterfaceInfo _org_project_signaling_iface_interface_info = 1161s # { 1161s # { 1161s # -1, 1161s # (gchar *) "org.project.SignalingIface", 1161s # NULL, 1161s # (GDBusSignalInfo **) &_org_project_signaling_iface_signal_info_pointers, 1161s # NULL, 1161s # NULL 1161s # }, 1161s # "org-project-signaling-iface", 1161s # }; 1161s # 1161s # 1161s # /** 1161s # * org_project_signaling_iface_interface_info: 1161s # * 1161s # * Gets a machine-readable description of the org.project.SignalingIface D-Bus interface. 1161s # * 1161s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 1161s # */ 1161s # GDBusInterfaceInfo * 1161s # org_project_signaling_iface_interface_info (void) 1161s # { 1161s # return (GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct; 1161s # } 1161s # 1161s # /** 1161s # * org_project_signaling_iface_override_properties: 1161s # * @klass: The class structure for a #GObject derived class. 1161s # * @property_id_begin: The property id to assign to the first overridden property. 1161s # * 1161s # * Overrides all #GObject properties in the #OrgProjectSignalingIface interface for a concrete class. 1161s # * The properties are overridden in the order they are defined. 1161s # * 1161s # * Returns: The last property id. 1161s # */ 1161s # guint 1161s # org_project_signaling_iface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 1161s # { 1161s # return property_id_begin - 1; 1161s # } 1161s # 1161s # 1161s # inline static void 1161s # org_project_signaling_iface_signal_marshal_simple_signal ( 1161s # GClosure *closure, 1161s # GValue *return_value, 1161s # unsigned int n_param_values, 1161s # const GValue *param_values, 1161s # void *invocation_hint, 1161s # void *marshal_data) 1161s # { 1161s # g_cclosure_marshal_VOID__VOID (closure, 1161s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1161s # } 1161s # 1161s # inline static void 1161s # org_project_signaling_iface_signal_marshal_single_arg_signal_g ( 1161s # GClosure *closure, 1161s # GValue *return_value, 1161s # unsigned int n_param_values, 1161s # const GValue *param_values, 1161s # void *invocation_hint, 1161s # void *marshal_data) 1161s # { 1161s # g_cclosure_marshal_VOID__STRING (closure, 1161s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1161s # } 1161s # 1161s # 1161s # /** 1161s # * OrgProjectSignalingIface: 1161s # * 1161s # * Abstract interface type for the D-Bus interface org.project.SignalingIface. 1161s # */ 1161s # 1161s # /** 1161s # * OrgProjectSignalingIfaceIface: 1161s # * @parent_iface: The parent interface. 1161s # * @simple_signal: Handler for the #OrgProjectSignalingIface::simple-signal signal. 1161s # * @single_arg_signal_g: Handler for the #OrgProjectSignalingIface::single-arg-signal-g signal. 1161s # * 1161s # * Virtual table for the D-Bus interface org.project.SignalingIface. 1161s # */ 1161s # 1161s # typedef OrgProjectSignalingIfaceIface OrgProjectSignalingIfaceInterface; 1161s # G_DEFINE_INTERFACE (OrgProjectSignalingIface, org_project_signaling_iface, G_TYPE_OBJECT) 1161s # 1161s # static void 1161s # org_project_signaling_iface_default_init (OrgProjectSignalingIfaceIface *iface) 1161s # { 1161s # /* GObject signals for received D-Bus signals: */ 1161s # /** 1161s # * OrgProjectSignalingIface::simple-signal: 1161s # * @object: A #OrgProjectSignalingIface. 1161s # * 1161s # * On the client-side, this signal is emitted whenever the D-Bus signal "SimpleSignal" is received. 1161s # * 1161s # * 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. 1161s # */ 1161s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL] = 1161s # g_signal_new ("simple-signal", 1161s # G_TYPE_FROM_INTERFACE (iface), 1161s # G_SIGNAL_RUN_LAST, 1161s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, simple_signal), 1161s # NULL, 1161s # NULL, 1161s # org_project_signaling_iface_signal_marshal_simple_signal, 1161s # G_TYPE_NONE, 1161s # 0); 1161s # 1161s # /** 1161s # * OrgProjectSignalingIface::single-arg-signal-g: 1161s # * @object: A #OrgProjectSignalingIface. 1161s # * @arg_arg_g: Argument. 1161s # * 1161s # * On the client-side, this signal is emitted whenever the D-Bus signal "SingleArgSignalG" is received. 1161s # * 1161s # * 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. 1161s # */ 1161s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_G] = 1161s # g_signal_new ("single-arg-signal-g", 1161s # G_TYPE_FROM_INTERFACE (iface), 1161s # G_SIGNAL_RUN_LAST, 1161s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, single_arg_signal_g), 1161s # NULL, 1161s # NULL, 1161s # org_project_signaling_iface_signal_marshal_single_arg_signal_g, 1161s # G_TYPE_NONE, 1161s # 1, G_TYPE_STRING); 1161s # 1161s # } 1161s # 1161s # /** 1161s # * org_project_signaling_iface_emit_simple_signal: 1161s # * @object: A #OrgProjectSignalingIface. 1161s # * 1161s # * Emits the "SimpleSignal" D-Bus signal. 1161s # */ 1161s # void 1161s # org_project_signaling_iface_emit_simple_signal ( 1161s # OrgProjectSignalingIface *object) 1161s # { 1161s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL], 0); 1161s # } 1161s # 1161s # /** 1161s # * org_project_signaling_iface_emit_single_arg_signal_g: 1161s # * @object: A #OrgProjectSignalingIface. 1161s # * @arg_arg_g: Argument to pass with the signal. 1161s # * 1161s # * Emits the "SingleArgSignalG" D-Bus signal. 1161s # */ 1161s # void 1161s # org_project_signaling_iface_emit_single_arg_signal_g ( 1161s # OrgProjectSignalingIface *object, 1161s # const gchar *arg_arg_g) 1161s # { 1161s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_G], 0, arg_arg_g); 1161s # } 1161s # 1161s # /* ------------------------------------------------------------------------ */ 1161s # 1161s # /** 1161s # * OrgProjectSignalingIfaceProxy: 1161s # * 1161s # * The #OrgProjectSignalingIfaceProxy structure contains only private data and should only be accessed using the provided API. 1161s # */ 1161s # 1161s # /** 1161s # * OrgProjectSignalingIfaceProxyClass: 1161s # * @parent_class: The parent class. 1161s # * 1161s # * Class structure for #OrgProjectSignalingIfaceProxy. 1161s # */ 1161s # 1161s # struct _OrgProjectSignalingIfaceProxyPrivate 1161s # { 1161s # GData *qdata; 1161s # }; 1161s # 1161s # static void org_project_signaling_iface_proxy_iface_init (OrgProjectSignalingIfaceIface *iface); 1161s # 1161s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1161s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceProxy, org_project_signaling_iface_proxy, G_TYPE_DBUS_PROXY, 1161s # G_ADD_PRIVATE (OrgProjectSignalingIfaceProxy) 1161s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_proxy_iface_init)) 1161s # 1161s # #else 1161s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceProxy, org_project_signaling_iface_proxy, G_TYPE_DBUS_PROXY, 1161s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_proxy_iface_init)) 1161s # 1161s # #endif 1161s # static void 1161s # org_project_signaling_iface_proxy_finalize (GObject *object) 1161s # { 1161s # OrgProjectSignalingIfaceProxy *proxy = ORG_PROJECT_SIGNALING_IFACE_PROXY (object); 1161s # g_datalist_clear (&proxy->priv->qdata); 1161s # G_OBJECT_CLASS (org_project_signaling_iface_proxy_parent_class)->finalize (object); 1161s # } 1161s # 1161s # static void 1161s # org_project_signaling_iface_proxy_get_property (GObject *object G_GNUC_UNUSED, 1161s # guint prop_id G_GNUC_UNUSED, 1161s # GValue *value G_GNUC_UNUSED, 1161s # GParamSpec *pspec G_GNUC_UNUSED) 1161s # { 1161s # } 1161s # 1161s # static void 1161s # org_project_signaling_iface_proxy_set_property (GObject *object G_GNUC_UNUSED, 1161s # guint prop_id G_GNUC_UNUSED, 1161s # const GValue *value G_GNUC_UNUSED, 1161s # GParamSpec *pspec G_GNUC_UNUSED) 1161s # { 1161s # } 1161s # 1161s # static void 1161s # org_project_signaling_iface_proxy_g_signal (GDBusProxy *proxy, 1161s # const gchar *sender_name G_GNUC_UNUSED, 1161s # const gchar *signal_name, 1161s # GVariant *parameters) 1161s # { 1161s # _ExtendedGDBusSignalInfo *info; 1161s # GVariantIter iter; 1161s # GVariant *child; 1161s # GValue *paramv; 1161s # gsize num_params; 1161s # gsize n; 1161s # guint signal_id; 1161s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, signal_name); 1161s # if (info == NULL) 1161s # return; 1161s # num_params = g_variant_n_children (parameters); 1161s # paramv = g_new0 (GValue, num_params + 1); 1161s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_SIGNALING_IFACE); 1161s # g_value_set_object (¶mv[0], proxy); 1161s # g_variant_iter_init (&iter, parameters); 1161s # n = 1; 1161s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1161s # { 1161s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 1161s # if (arg_info->use_gvariant) 1161s # { 1161s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1161s # g_value_set_variant (¶mv[n], child); 1161s # n++; 1161s # } 1161s # else 1161s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1161s # g_variant_unref (child); 1161s # } 1161s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_SIGNALING_IFACE); 1161s # g_signal_emitv (paramv, signal_id, 0, NULL); 1161s # for (n = 0; n < num_params + 1; n++) 1161s # g_value_unset (¶mv[n]); 1161s # g_free (paramv); 1161s # } 1161s # 1161s # static void 1161s # org_project_signaling_iface_proxy_g_properties_changed (GDBusProxy *_proxy, 1161s # GVariant *changed_properties, 1161s # const gchar *const *invalidated_properties) 1161s # { 1161s # OrgProjectSignalingIfaceProxy *proxy = ORG_PROJECT_SIGNALING_IFACE_PROXY (_proxy); 1161s # guint n; 1161s # const gchar *key; 1161s # GVariantIter *iter; 1161s # _ExtendedGDBusPropertyInfo *info; 1161s # g_variant_get (changed_properties, "a{sv}", &iter); 1161s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 1161s # { 1161s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, key); 1161s # g_datalist_remove_data (&proxy->priv->qdata, key); 1161s # if (info != NULL) 1161s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1161s # } 1161s # g_variant_iter_free (iter); 1161s # for (n = 0; invalidated_properties[n] != NULL; n++) 1161s # { 1161s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, invalidated_properties[n]); 1161s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 1161s # if (info != NULL) 1161s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1161s # } 1161s # } 1161s # 1161s # static void 1161s # org_project_signaling_iface_proxy_init (OrgProjectSignalingIfaceProxy *proxy) 1161s # { 1161s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1161s # proxy->priv = org_project_signaling_iface_proxy_get_instance_private (proxy); 1161s # #else 1161s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_SIGNALING_IFACE_PROXY, OrgProjectSignalingIfaceProxyPrivate); 1161s # #endif 1161s # 1161s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_signaling_iface_interface_info ()); 1161s # } 1161s # 1161s # static void 1161s # org_project_signaling_iface_proxy_class_init (OrgProjectSignalingIfaceProxyClass *klass) 1161s # { 1161s # GObjectClass *gobject_class; 1161s # GDBusProxyClass *proxy_class; 1161s # 1161s # gobject_class = G_OBJECT_CLASS (klass); 1161s # gobject_class->finalize = org_project_signaling_iface_proxy_finalize; 1161s # gobject_class->get_property = org_project_signaling_iface_proxy_get_property; 1161s # gobject_class->set_property = org_project_signaling_iface_proxy_set_property; 1161s # 1161s # proxy_class = G_DBUS_PROXY_CLASS (klass); 1161s # proxy_class->g_signal = org_project_signaling_iface_proxy_g_signal; 1161s # proxy_class->g_properties_changed = org_project_signaling_iface_proxy_g_properties_changed; 1161s # 1161s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1161s # g_type_class_add_private (klass, sizeof (OrgProjectSignalingIfaceProxyPrivate)); 1161s # #endif 1161s # } 1161s # 1161s # static void 1161s # org_project_signaling_iface_proxy_iface_init (OrgProjectSignalingIfaceIface *iface G_GNUC_UNUSED) 1161s # { 1161s # } 1161s # 1161s # /** 1161s # * org_project_signaling_iface_proxy_new: 1161s # * @connection: A #GDBusConnection. 1161s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1161s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1161s # * @object_path: An object path. 1161s # * @cancellable: (nullable): A #GCancellable or %NULL. 1161s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1161s # * @user_data: User data to pass to @callback. 1161s # * 1161s # * Asynchronously creates a proxy for the D-Bus interface org.project.SignalingIface. See g_dbus_proxy_new() for more details. 1161s # * 1161s # * 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()). 1161s # * You can then call org_project_signaling_iface_proxy_new_finish() to get the result of the operation. 1161s # * 1161s # * See org_project_signaling_iface_proxy_new_sync() for the synchronous, blocking version of this constructor. 1161s # */ 1161s # void 1161s # org_project_signaling_iface_proxy_new ( 1161s # GDBusConnection *connection, 1161s # GDBusProxyFlags flags, 1161s # const gchar *name, 1161s # const gchar *object_path, 1161s # GCancellable *cancellable, 1161s # GAsyncReadyCallback callback, 1161s # gpointer user_data) 1161s # { 1161s # 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); 1161s # } 1161s # 1161s # /** 1161s # * org_project_signaling_iface_proxy_new_finish: 1161s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_signaling_iface_proxy_new(). 1161s # * @error: Return location for error or %NULL 1161s # * 1161s # * Finishes an operation started with org_project_signaling_iface_proxy_new(). 1161s # * 1161s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 1161s # */ 1161s # OrgProjectSignalingIface * 1161s # org_project_signaling_iface_proxy_new_finish ( 1161s # GAsyncResult *res, 1161s # GError **error) 1161s # { 1161s # GObject *ret; 1161s # GObject *source_object; 1161s # source_object = g_async_result_get_source_object (res); 1161s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1161s # g_object_unref (source_object); 1161s # if (ret != NULL) 1161s # return ORG_PROJECT_SIGNALING_IFACE (ret); 1161s # else 1161s # return NULL; 1161s # } 1161s # 1161s # /** 1161s # * org_project_signaling_iface_proxy_new_sync: 1161s # * @connection: A #GDBusConnection. 1161s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1161s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1161s # * @object_path: An object path. 1161s # * @cancellable: (nullable): A #GCancellable or %NULL. 1161s # * @error: Return location for error or %NULL 1161s # * 1161s # * Synchronously creates a proxy for the D-Bus interface org.project.SignalingIface. See g_dbus_proxy_new_sync() for more details. 1161s # * 1161s # * The calling thread is blocked until a reply is received. 1161s # * 1161s # * See org_project_signaling_iface_proxy_new() for the asynchronous version of this constructor. 1161s # * 1161s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 1161s # */ 1161s # OrgProjectSignalingIface * 1161s # org_project_signaling_iface_proxy_new_sync ( 1161s # GDBusConnection *connection, 1161s # GDBusProxyFlags flags, 1161s # const gchar *name, 1161s # const gchar *object_path, 1161s # GCancellable *cancellable, 1161s # GError **error) 1161s # { 1161s # GInitable *ret; 1161s # 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); 1161s # if (ret != NULL) 1161s # return ORG_PROJECT_SIGNALING_IFACE (ret); 1161s # else 1161s # return NULL; 1161s # } 1161s # 1161s # 1161s # /** 1161s # * org_project_signaling_iface_proxy_new_for_bus: 1161s # * @bus_type: A #GBusType. 1161s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1161s # * @name: A bus name (well-known or unique). 1161s # * @object_path: An object path. 1161s # * @cancellable: (nullable): A #GCancellable or %NULL. 1161s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1161s # * @user_data: User data to pass to @callback. 1161s # * 1161s # * Like org_project_signaling_iface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 1161s # * 1161s # * 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()). 1161s # * You can then call org_project_signaling_iface_proxy_new_for_bus_finish() to get the result of the operation. 1161s # * 1161s # * See org_project_signaling_iface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 1161s # */ 1161s # void 1161s # org_project_signaling_iface_proxy_new_for_bus ( 1161s # GBusType bus_type, 1161s # GDBusProxyFlags flags, 1161s # const gchar *name, 1161s # const gchar *object_path, 1161s # GCancellable *cancellable, 1161s # GAsyncReadyCallback callback, 1161s # gpointer user_data) 1161s # { 1161s # 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); 1161s # } 1161s # 1161s # /** 1161s # * org_project_signaling_iface_proxy_new_for_bus_finish: 1161s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_signaling_iface_proxy_new_for_bus(). 1161s # * @error: Return location for error or %NULL 1161s # * 1161s # * Finishes an operation started with org_project_signaling_iface_proxy_new_for_bus(). 1161s # * 1161s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 1161s # */ 1161s # OrgProjectSignalingIface * 1161s # org_project_signaling_iface_proxy_new_for_bus_finish ( 1161s # GAsyncResult *res, 1161s # GError **error) 1161s # { 1161s # GObject *ret; 1161s # GObject *source_object; 1161s # source_object = g_async_result_get_source_object (res); 1161s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1161s # g_object_unref (source_object); 1161s # if (ret != NULL) 1161s # return ORG_PROJECT_SIGNALING_IFACE (ret); 1161s # else 1161s # return NULL; 1161s # } 1161s # 1161s # /** 1161s # * org_project_signaling_iface_proxy_new_for_bus_sync: 1161s # * @bus_type: A #GBusType. 1161s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1161s # * @name: A bus name (well-known or unique). 1161s # * @object_path: An object path. 1161s # * @cancellable: (nullable): A #GCancellable or %NULL. 1161s # * @error: Return location for error or %NULL 1161s # * 1161s # * Like org_project_signaling_iface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 1161s # * 1161s # * The calling thread is blocked until a reply is received. 1161s # * 1161s # * See org_project_signaling_iface_proxy_new_for_bus() for the asynchronous version of this constructor. 1161s # * 1161s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 1161s # */ 1161s # OrgProjectSignalingIface * 1161s # org_project_signaling_iface_proxy_new_for_bus_sync ( 1161s # GBusType bus_type, 1161s # GDBusProxyFlags flags, 1161s # const gchar *name, 1161s # const gchar *object_path, 1161s # GCancellable *cancellable, 1161s # GError **error) 1161s # { 1161s # GInitable *ret; 1161s # 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); 1161s # if (ret != NULL) 1161s # return ORG_PROJECT_SIGNALING_IFACE (ret); 1161s # else 1161s # return NULL; 1161s # } 1161s # 1161s # 1161s # /* ------------------------------------------------------------------------ */ 1161s # 1161s # /** 1161s # * OrgProjectSignalingIfaceSkeleton: 1161s # * 1161s # * The #OrgProjectSignalingIfaceSkeleton structure contains only private data and should only be accessed using the provided API. 1161s # */ 1161s # 1161s # /** 1161s # * OrgProjectSignalingIfaceSkeletonClass: 1161s # * @parent_class: The parent class. 1161s # * 1161s # * Class structure for #OrgProjectSignalingIfaceSkeleton. 1161s # */ 1161s # 1161s # struct _OrgProjectSignalingIfaceSkeletonPrivate 1161s # { 1161s # GValue *properties; 1161s # GList *changed_properties; 1161s # GSource *changed_properties_idle_source; 1161s # GMainContext *context; 1161s # GMutex lock; 1161s # }; 1161s # 1161s # static void 1161s # _org_project_signaling_iface_skeleton_handle_method_call ( 1161s # GDBusConnection *connection G_GNUC_UNUSED, 1161s # const gchar *sender G_GNUC_UNUSED, 1161s # const gchar *object_path G_GNUC_UNUSED, 1161s # const gchar *interface_name, 1161s # const gchar *method_name, 1161s # GVariant *parameters, 1161s # GDBusMethodInvocation *invocation, 1161s # gpointer user_data) 1161s # { 1161s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 1161s # _ExtendedGDBusMethodInfo *info; 1161s # GVariantIter iter; 1161s # GVariant *child; 1161s # GValue *paramv; 1161s # gsize num_params; 1161s # guint num_extra; 1161s # gsize n; 1161s # guint signal_id; 1161s # GValue return_value = G_VALUE_INIT; 1161s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 1161s # g_assert (info != NULL); 1161s # num_params = g_variant_n_children (parameters); 1161s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 1161s # n = 0; 1161s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_SIGNALING_IFACE); 1161s # g_value_set_object (¶mv[n++], skeleton); 1161s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 1161s # g_value_set_object (¶mv[n++], invocation); 1161s # if (info->pass_fdlist) 1161s # { 1161s # #ifdef G_OS_UNIX 1161s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 1161s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 1161s # #else 1161s # g_assert_not_reached (); 1161s # #endif 1161s # } 1161s # g_variant_iter_init (&iter, parameters); 1161s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1161s # { 1161s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 1161s # if (arg_info->use_gvariant) 1161s # { 1161s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1161s # g_value_set_variant (¶mv[n], child); 1161s # n++; 1161s # } 1161s # else 1161s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1161s # g_variant_unref (child); 1161s # } 1161s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_SIGNALING_IFACE); 1161s # g_value_init (&return_value, G_TYPE_BOOLEAN); 1161s # g_signal_emitv (paramv, signal_id, 0, &return_value); 1161s # if (!g_value_get_boolean (&return_value)) 1161s # 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); 1161s # g_value_unset (&return_value); 1161s # for (n = 0; n < num_params + num_extra; n++) 1161s # g_value_unset (¶mv[n]); 1161s # g_free (paramv); 1161s # } 1161s # 1161s # static GVariant * 1161s # _org_project_signaling_iface_skeleton_handle_get_property ( 1161s # GDBusConnection *connection G_GNUC_UNUSED, 1161s # const gchar *sender G_GNUC_UNUSED, 1161s # const gchar *object_path G_GNUC_UNUSED, 1161s # const gchar *interface_name G_GNUC_UNUSED, 1161s # const gchar *property_name, 1161s # GError **error, 1161s # gpointer user_data) 1161s # { 1161s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 1161s # GValue value = G_VALUE_INIT; 1161s # GParamSpec *pspec; 1161s # _ExtendedGDBusPropertyInfo *info; 1161s # GVariant *ret; 1161s # ret = NULL; 1161s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, property_name); 1161s # g_assert (info != NULL); 1161s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1161s # if (pspec == NULL) 1161s # { 1161s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1161s # } 1161s # else 1161s # { 1161s # g_value_init (&value, pspec->value_type); 1161s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1161s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 1161s # g_value_unset (&value); 1161s # } 1161s # return ret; 1161s # } 1161s # 1161s # static gboolean 1161s # _org_project_signaling_iface_skeleton_handle_set_property ( 1161s # GDBusConnection *connection G_GNUC_UNUSED, 1161s # const gchar *sender G_GNUC_UNUSED, 1161s # const gchar *object_path G_GNUC_UNUSED, 1161s # const gchar *interface_name G_GNUC_UNUSED, 1161s # const gchar *property_name, 1161s # GVariant *variant, 1161s # GError **error, 1161s # gpointer user_data) 1161s # { 1161s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 1161s # GValue value = G_VALUE_INIT; 1161s # GParamSpec *pspec; 1161s # _ExtendedGDBusPropertyInfo *info; 1161s # gboolean ret; 1161s # ret = FALSE; 1161s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, property_name); 1161s # g_assert (info != NULL); 1161s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1161s # if (pspec == NULL) 1161s # { 1161s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1161s # } 1161s # else 1161s # { 1161s # if (info->use_gvariant) 1161s # g_value_set_variant (&value, variant); 1161s # else 1161s # g_dbus_gvariant_to_gvalue (variant, &value); 1161s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1161s # g_value_unset (&value); 1161s # ret = TRUE; 1161s # } 1161s # return ret; 1161s # } 1161s # 1161s # static const GDBusInterfaceVTable _org_project_signaling_iface_skeleton_vtable = 1161s # { 1161s # _org_project_signaling_iface_skeleton_handle_method_call, 1161s # _org_project_signaling_iface_skeleton_handle_get_property, 1161s # _org_project_signaling_iface_skeleton_handle_set_property, 1161s # {NULL} 1161s # }; 1161s # 1161s # static GDBusInterfaceInfo * 1161s # org_project_signaling_iface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1161s # { 1161s # return org_project_signaling_iface_interface_info (); 1161s # } 1161s # 1161s # static GDBusInterfaceVTable * 1161s # org_project_signaling_iface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1161s # { 1161s # return (GDBusInterfaceVTable *) &_org_project_signaling_iface_skeleton_vtable; 1161s # } 1161s # 1161s # static GVariant * 1161s # org_project_signaling_iface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 1161s # { 1161s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (_skeleton); 1161s # 1161s # GVariantBuilder builder; 1161s # guint n; 1161s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 1161s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 1161s # #else 1161s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 1161s # #endif 1161s # if (_org_project_signaling_iface_interface_info.parent_struct.properties == NULL) 1161s # goto out; 1161s # for (n = 0; _org_project_signaling_iface_interface_info.parent_struct.properties[n] != NULL; n++) 1161s # { 1161s # GDBusPropertyInfo *info = _org_project_signaling_iface_interface_info.parent_struct.properties[n]; 1161s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 1161s # { 1161s # GVariant *value; 1161s # 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); 1161s # if (value != NULL) 1161s # { 1161s # g_variant_take_ref (value); 1161s # g_variant_builder_add (&builder, "{sv}", info->name, value); 1161s # g_variant_unref (value); 1161s # } 1161s # } 1161s # } 1161s # out: 1161s # return g_variant_builder_end (&builder); 1161s # } 1161s # 1161s # static void 1161s # org_project_signaling_iface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 1161s # { 1161s # } 1161s # 1161s # static void 1161s # _org_project_signaling_iface_on_signal_simple_signal ( 1161s # OrgProjectSignalingIface *object) 1161s # { 1161s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 1161s # 1161s # GList *connections, *l; 1161s # GVariant *signal_variant; 1161s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 1161s # 1161s # signal_variant = g_variant_ref_sink (g_variant_new ("()")); 1161s # for (l = connections; l != NULL; l = l->next) 1161s # { 1161s # GDBusConnection *connection = l->data; 1161s # g_dbus_connection_emit_signal (connection, 1161s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SimpleSignal", 1161s # signal_variant, NULL); 1161s # } 1161s # g_variant_unref (signal_variant); 1161s # g_list_free_full (connections, g_object_unref); 1161s # } 1161s # 1161s # static void 1161s # _org_project_signaling_iface_on_signal_single_arg_signal_g ( 1161s # OrgProjectSignalingIface *object, 1161s # const gchar *arg_arg_g) 1161s # { 1161s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 1161s # 1161s # GList *connections, *l; 1161s # GVariant *signal_variant; 1161s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 1161s # 1161s # signal_variant = g_variant_ref_sink (g_variant_new ("(g)", 1161s # arg_arg_g)); 1161s # for (l = connections; l != NULL; l = l->next) 1161s # { 1161s # GDBusConnection *connection = l->data; 1161s # g_dbus_connection_emit_signal (connection, 1161s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SingleArgSignalG", 1161s # signal_variant, NULL); 1161s # } 1161s # g_variant_unref (signal_variant); 1161s # g_list_free_full (connections, g_object_unref); 1161s # } 1161s # 1161s # static void org_project_signaling_iface_skeleton_iface_init (OrgProjectSignalingIfaceIface *iface); 1161s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1161s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceSkeleton, org_project_signaling_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1161s # G_ADD_PRIVATE (OrgProjectSignalingIfaceSkeleton) 1161s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_skeleton_iface_init)) 1161s # 1161s # #else 1161s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceSkeleton, org_project_signaling_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1161s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_skeleton_iface_init)) 1161s # 1161s # #endif 1161s # static void 1161s # org_project_signaling_iface_skeleton_finalize (GObject *object) 1161s # { 1161s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 1161s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 1161s # if (skeleton->priv->changed_properties_idle_source != NULL) 1161s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 1161s # g_main_context_unref (skeleton->priv->context); 1161s # g_mutex_clear (&skeleton->priv->lock); 1161s # G_OBJECT_CLASS (org_project_signaling_iface_skeleton_parent_class)->finalize (object); 1161s # } 1161s # 1161s # static void 1161s # org_project_signaling_iface_skeleton_init (OrgProjectSignalingIfaceSkeleton *skeleton) 1161s # { 1161s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1161s # skeleton->priv = org_project_signaling_iface_skeleton_get_instance_private (skeleton); 1161s # #else 1161s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_SIGNALING_IFACE_SKELETON, OrgProjectSignalingIfaceSkeletonPrivate); 1161s # #endif 1161s # 1161s # g_mutex_init (&skeleton->priv->lock); 1161s # skeleton->priv->context = g_main_context_ref_thread_default (); 1161s # } 1161s # 1161s # static void 1161s # org_project_signaling_iface_skeleton_class_init (OrgProjectSignalingIfaceSkeletonClass *klass) 1161s # { 1161s # GObjectClass *gobject_class; 1161s # GDBusInterfaceSkeletonClass *skeleton_class; 1161s # 1161s # gobject_class = G_OBJECT_CLASS (klass); 1161s # gobject_class->finalize = org_project_signaling_iface_skeleton_finalize; 1161s # 1161s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 1161s # skeleton_class->get_info = org_project_signaling_iface_skeleton_dbus_interface_get_info; 1161s # skeleton_class->get_properties = org_project_signaling_iface_skeleton_dbus_interface_get_properties; 1161s # skeleton_class->flush = org_project_signaling_iface_skeleton_dbus_interface_flush; 1161s # skeleton_class->get_vtable = org_project_signaling_iface_skeleton_dbus_interface_get_vtable; 1161s # 1161s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1161s # g_type_class_add_private (klass, sizeof (OrgProjectSignalingIfaceSkeletonPrivate)); 1161s # #endif 1161s # } 1161s # 1161s # static void 1161s # org_project_signaling_iface_skeleton_iface_init (OrgProjectSignalingIfaceIface *iface) 1161s # { 1161s # iface->simple_signal = _org_project_signaling_iface_on_signal_simple_signal; 1161s # iface->single_arg_signal_g = _org_project_signaling_iface_on_signal_single_arg_signal_g; 1161s # } 1161s # 1161s # /** 1161s # * org_project_signaling_iface_skeleton_new: 1161s # * 1161s # * Creates a skeleton object for the D-Bus interface org.project.SignalingIface. 1161s # * 1161s # * Returns: (transfer full) (type OrgProjectSignalingIfaceSkeleton): The skeleton object. 1161s # */ 1161s # OrgProjectSignalingIface * 1161s # org_project_signaling_iface_skeleton_new (void) 1161s # { 1161s # return ORG_PROJECT_SIGNALING_IFACE (g_object_new (TYPE_ORG_PROJECT_SIGNALING_IFACE_SKELETON, NULL)); 1161s # } 1161s # Error: 1161s # 1161s # /tmp/tmpjwrvmpd2/tmpspyg1q1w.xml: 1161s # 1161s # 1161s # 1161s # 1161s # 1161s # 1161s # 1161s # 1161s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpjwrvmpd2/tmpspyg1q1w.xml', '--output', '-', '--body'] 1161s # Return code: 0 1161s # Output: 1161s # /* 1161s # * This file is generated by gdbus-codegen, do not modify it. 1161s # * 1161s # * The license of this code is the same as for the D-Bus interface description 1161s # * it was derived from. Note that it links to GLib, so must comply with the 1161s # * LGPL linking clauses. 1161s # */ 1161s # 1161s # #ifdef HAVE_CONFIG_H 1161s # # include "config.h" 1161s # #endif 1161s # 1161s # #include 1161s # #ifdef G_OS_UNIX 1161s # # include 1161s # #endif 1161s # 1161s # #ifdef G_ENABLE_DEBUG 1161s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 1161s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 1161s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 1161s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 1161s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 1161s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 1161s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 1161s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 1161s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 1161s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 1161s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 1161s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 1161s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 1161s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 1161s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 1161s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 1161s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 1161s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 1161s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 1161s # #else /* !G_ENABLE_DEBUG */ 1161s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 1161s # * Do not access GValues directly in your code. Instead, use the 1161s # * g_value_get_*() functions 1161s # */ 1161s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 1161s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 1161s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 1161s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 1161s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 1161s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 1161s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 1161s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 1161s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 1161s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 1161s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 1161s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 1161s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 1161s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 1161s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 1161s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 1161s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 1161s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 1161s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 1161s # #endif /* !G_ENABLE_DEBUG */ 1161s # 1161s # typedef struct 1161s # { 1161s # GDBusArgInfo parent_struct; 1161s # gboolean use_gvariant; 1161s # } _ExtendedGDBusArgInfo; 1161s # 1161s # typedef struct 1161s # { 1161s # GDBusMethodInfo parent_struct; 1161s # const gchar *signal_name; 1161s # gboolean pass_fdlist; 1161s # } _ExtendedGDBusMethodInfo; 1161s # 1161s # typedef struct 1161s # { 1161s # GDBusSignalInfo parent_struct; 1161s # const gchar *signal_name; 1161s # } _ExtendedGDBusSignalInfo; 1161s # 1161s # typedef struct 1161s # { 1161s # GDBusPropertyInfo parent_struct; 1161s # const gchar *hyphen_name; 1161s # guint use_gvariant : 1; 1161s # guint emits_changed_signal : 1; 1161s # } _ExtendedGDBusPropertyInfo; 1161s # 1161s # typedef struct 1161s # { 1161s # GDBusInterfaceInfo parent_struct; 1161s # const gchar *hyphen_name; 1161s # } _ExtendedGDBusInterfaceInfo; 1161s # 1161s # typedef struct 1161s # { 1161s # const _ExtendedGDBusPropertyInfo *info; 1161s # guint prop_id; 1161s # GValue orig_value; /* the value before the change */ 1161s # } ChangedProperty; 1161s # 1161s # static void 1161s # _changed_property_free (ChangedProperty *data) 1161s # { 1161s # g_value_unset (&data->orig_value); 1161s # g_free (data); 1161s # } 1161s # 1161s # static gboolean 1161s # _g_strv_equal0 (gchar **a, gchar **b) 1161s # { 1161s # gboolean ret = FALSE; 1161s # guint n; 1161s # if (a == NULL && b == NULL) 1161s # { 1161s # ret = TRUE; 1161s # goto out; 1161s # } 1161s # if (a == NULL || b == NULL) 1161s # goto out; 1161s # if (g_strv_length (a) != g_strv_length (b)) 1161s # goto out; 1161s # for (n = 0; a[n] != NULL; n++) 1161s # if (g_strcmp0 (a[n], b[n]) != 0) 1161s # goto out; 1161s # ret = TRUE; 1161s # out: 1161s # return ret; 1161s # } 1161s # 1161s # static gboolean 1161s # _g_variant_equal0 (GVariant *a, GVariant *b) 1161s # { 1161s # gboolean ret = FALSE; 1161s # if (a == NULL && b == NULL) 1161s # { 1161s # ret = TRUE; 1161s # goto out; 1161s # } 1161s # if (a == NULL || b == NULL) 1161s # goto out; 1161s # ret = g_variant_equal (a, b); 1161s # out: 1161s # return ret; 1161s # } 1161s # 1161s # G_GNUC_UNUSED static gboolean 1161s # _g_value_equal (const GValue *a, const GValue *b) 1161s # { 1161s # gboolean ret = FALSE; 1161s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 1161s # switch (G_VALUE_TYPE (a)) 1161s # { 1161s # case G_TYPE_BOOLEAN: 1161s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 1161s # break; 1161s # case G_TYPE_UCHAR: 1161s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 1161s # break; 1161s # case G_TYPE_INT: 1161s # ret = (g_value_get_int (a) == g_value_get_int (b)); 1161s # break; 1161s # case G_TYPE_UINT: 1161s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 1161s # break; 1161s # case G_TYPE_INT64: 1161s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 1161s # break; 1161s # case G_TYPE_UINT64: 1161s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 1161s # break; 1161s # case G_TYPE_DOUBLE: 1161s # { 1161s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 1161s # gdouble da = g_value_get_double (a); 1161s # gdouble db = g_value_get_double (b); 1161s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 1161s # } 1161s # break; 1161s # case G_TYPE_STRING: 1161s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 1161s # break; 1161s # case G_TYPE_VARIANT: 1161s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 1161s # break; 1161s # default: 1161s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 1161s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 1161s # else 1161s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 1161s # break; 1161s # } 1161s # return ret; 1161s # } 1161s # 1161s # /* ------------------------------------------------------------------------ 1161s # * Code for interface org.project.SignalingIface 1161s # * ------------------------------------------------------------------------ 1161s # */ 1161s # 1161s # /** 1161s # * SECTION:OrgProjectSignalingIface 1161s # * @title: OrgProjectSignalingIface 1161s # * @short_description: Generated C code for the org.project.SignalingIface D-Bus interface 1161s # * 1161s # * This section contains code for working with the org.project.SignalingIface D-Bus interface in C. 1161s # */ 1161s # 1161s # enum 1161s # { 1161s # _ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL, 1161s # _ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_H, 1161s # }; 1161s # 1161s # static unsigned _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[2] = { 0 }; 1161s # 1161s # /* ---- Introspection data for org.project.SignalingIface ---- */ 1161s # 1161s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_simple_signal = 1161s # { 1161s # { 1161s # -1, 1161s # (gchar *) "SimpleSignal", 1161s # NULL, 1161s # NULL 1161s # }, 1161s # "simple-signal" 1161s # }; 1161s # 1161s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_single_arg_signal_h_ARG_arg_h = 1161s # { 1161s # { 1161s # -1, 1161s # (gchar *) "arg_h", 1161s # (gchar *) "h", 1161s # NULL 1161s # }, 1161s # FALSE 1161s # }; 1161s # 1161s # static const GDBusArgInfo * const _org_project_signaling_iface_signal_info_single_arg_signal_h_ARG_pointers[] = 1161s # { 1161s # &_org_project_signaling_iface_signal_info_single_arg_signal_h_ARG_arg_h.parent_struct, 1161s # NULL 1161s # }; 1161s # 1161s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_single_arg_signal_h = 1161s # { 1161s # { 1161s # -1, 1161s # (gchar *) "SingleArgSignalH", 1161s # (GDBusArgInfo **) &_org_project_signaling_iface_signal_info_single_arg_signal_h_ARG_pointers, 1161s # NULL 1161s # }, 1161s # "single-arg-signal-h" 1161s # }; 1161s # 1161s # static const GDBusSignalInfo * const _org_project_signaling_iface_signal_info_pointers[] = 1161s # { 1161s # &_org_project_signaling_iface_signal_info_simple_signal.parent_struct, 1161s # &_org_project_signaling_iface_signal_info_single_arg_signal_h.parent_struct, 1161s # NULL 1161s # }; 1161s # 1161s # static const _ExtendedGDBusInterfaceInfo _org_project_signaling_iface_interface_info = 1161s # { 1161s # { 1161s # -1, 1161s # (gchar *) "org.project.SignalingIface", 1161s # NULL, 1161s # (GDBusSignalInfo **) &_org_project_signaling_iface_signal_info_pointers, 1161s # NULL, 1161s # NULL 1161s # }, 1161s # "org-project-signaling-iface", 1161s # }; 1161s # 1161s # 1161s # /** 1161s # * org_project_signaling_iface_interface_info: 1161s # * 1161s # * Gets a machine-readable description of the org.project.SignalingIface D-Bus interface. 1161s # * 1161s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 1161s # */ 1161s # GDBusInterfaceInfo * 1161s # org_project_signaling_iface_interface_info (void) 1161s # { 1161s # return (GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct; 1161s # } 1161s # 1161s # /** 1161s # * org_project_signaling_iface_override_properties: 1161s # * @klass: The class structure for a #GObject derived class. 1161s # * @property_id_begin: The property id to assign to the first overridden property. 1161s # * 1161s # * Overrides all #GObject properties in the #OrgProjectSignalingIface interface for a concrete class. 1161s # * The properties are overridden in the order they are defined. 1161s # * 1161s # * Returns: The last property id. 1161s # */ 1161s # guint 1161s # org_project_signaling_iface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 1161s # { 1161s # return property_id_begin - 1; 1161s # } 1161s # 1161s # 1161s # inline static void 1161s # org_project_signaling_iface_signal_marshal_simple_signal ( 1161s # GClosure *closure, 1161s # GValue *return_value, 1161s # unsigned int n_param_values, 1161s # const GValue *param_values, 1161s # void *invocation_hint, 1161s # void *marshal_data) 1161s # { 1161s # g_cclosure_marshal_VOID__VOID (closure, 1161s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1161s # } 1161s # 1161s # inline static void 1161s # org_project_signaling_iface_signal_marshal_single_arg_signal_h ( 1161s # GClosure *closure, 1161s # GValue *return_value, 1161s # unsigned int n_param_values, 1161s # const GValue *param_values, 1161s # void *invocation_hint, 1161s # void *marshal_data) 1161s # { 1161s # g_cclosure_marshal_VOID__VARIANT (closure, 1161s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1161s # } 1161s # 1161s # 1161s # /** 1161s # * OrgProjectSignalingIface: 1161s # * 1161s # * Abstract interface type for the D-Bus interface org.project.SignalingIface. 1161s # */ 1161s # 1161s # /** 1161s # * OrgProjectSignalingIfaceIface: 1161s # * @parent_iface: The parent interface. 1161s # * @simple_signal: Handler for the #OrgProjectSignalingIface::simple-signal signal. 1161s # * @single_arg_signal_h: Handler for the #OrgProjectSignalingIface::single-arg-signal-h signal. 1161s # * 1161s # * Virtual table for the D-Bus interface org.project.SignalingIface. 1161s # */ 1161s # 1161s # typedef OrgProjectSignalingIfaceIface OrgProjectSignalingIfaceInterface; 1161s # G_DEFINE_INTERFACE (OrgProjectSignalingIface, org_project_signaling_iface, G_TYPE_OBJECT) 1161s # 1161s # static void 1161s # org_project_signaling_iface_default_init (OrgProjectSignalingIfaceIface *iface) 1161s # { 1161s # /* GObject signals for received D-Bus signals: */ 1161s # /** 1161s # * OrgProjectSignalingIface::simple-signal: 1161s # * @object: A #OrgProjectSignalingIface. 1161s # * 1161s # * On the client-side, this signal is emitted whenever the D-Bus signal "SimpleSignal" is received. 1161s # * 1161s # * 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. 1161s # */ 1161s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL] = 1161s # g_signal_new ("simple-signal", 1161s # G_TYPE_FROM_INTERFACE (iface), 1161s # G_SIGNAL_RUN_LAST, 1161s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, simple_signal), 1161s # NULL, 1161s # NULL, 1161s # org_project_signaling_iface_signal_marshal_simple_signal, 1161s # G_TYPE_NONE, 1161s # 0); 1161s # 1161s # /** 1161s # * OrgProjectSignalingIface::single-arg-signal-h: 1161s # * @object: A #OrgProjectSignalingIface. 1161s # * @arg_arg_h: Argument. 1161s # * 1161s # * On the client-side, this signal is emitted whenever the D-Bus signal "SingleArgSignalH" is received. 1161s # * 1161s # * 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. 1161s # */ 1161s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_H] = 1161s # g_signal_new ("single-arg-signal-h", 1161s # G_TYPE_FROM_INTERFACE (iface), 1161s # G_SIGNAL_RUN_LAST, 1161s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, single_arg_signal_h), 1161s # NULL, 1161s # NULL, 1161s # org_project_signaling_iface_signal_marshal_single_arg_signal_h, 1161s # G_TYPE_NONE, 1161s # 1, G_TYPE_VARIANT); 1161s # 1161s # } 1161s # 1161s # /** 1161s # * org_project_signaling_iface_emit_simple_signal: 1161s # * @object: A #OrgProjectSignalingIface. 1161s # * 1161s # * Emits the "SimpleSignal" D-Bus signal. 1161s # */ 1161s # void 1161s # org_project_signaling_iface_emit_simple_signal ( 1161s # OrgProjectSignalingIface *object) 1161s # { 1161s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL], 0); 1161s # } 1161s # 1161s # /** 1161s # * org_project_signaling_iface_emit_single_arg_signal_h: 1161s # * @object: A #OrgProjectSignalingIface. 1161s # * @arg_arg_h: Argument to pass with the signal. 1161s # * 1161s # * Emits the "SingleArgSignalH" D-Bus signal. 1161s # */ 1161s # void 1161s # org_project_signaling_iface_emit_single_arg_signal_h ( 1161s # OrgProjectSignalingIface *object, 1161s # GVariant *arg_arg_h) 1161s # { 1161s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_H], 0, arg_arg_h); 1161s # } 1161s # 1161s # /* ------------------------------------------------------------------------ */ 1161s # 1161s # /** 1161s # * OrgProjectSignalingIfaceProxy: 1161s # * 1161s # * The #OrgProjectSignalingIfaceProxy structure contains only private data and should only be accessed using the provided API. 1161s # */ 1161s # 1161s # /** 1161s # * OrgProjectSignalingIfaceProxyClass: 1161s # * @parent_class: The parent class. 1161s # * 1161s # * Class structure for #OrgProjectSignalingIfaceProxy. 1161s # */ 1161s # 1161s # struct _OrgProjectSignalingIfaceProxyPrivate 1161s # { 1161s # GData *qdata; 1161s # }; 1161s # 1161s # static void org_project_signaling_iface_proxy_iface_init (OrgProjectSignalingIfaceIface *iface); 1161s # 1161s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1161s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceProxy, org_project_signaling_iface_proxy, G_TYPE_DBUS_PROXY, 1161s # G_ADD_PRIVATE (OrgProjectSignalingIfaceProxy) 1161s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_proxy_iface_init)) 1161s # 1161s # #else 1161s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceProxy, org_project_signaling_iface_proxy, G_TYPE_DBUS_PROXY, 1161s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_proxy_iface_init)) 1161s # 1161s # #endif 1161s # static void 1161s # org_project_signaling_iface_proxy_finalize (GObject *object) 1161s # { 1161s # OrgProjectSignalingIfaceProxy *proxy = ORG_PROJECT_SIGNALING_IFACE_PROXY (object); 1161s # g_datalist_clear (&proxy->priv->qdata); 1161s # G_OBJECT_CLASS (org_project_signaling_iface_proxy_parent_class)->finalize (object); 1161s # } 1161s # 1161s # static void 1161s # org_project_signaling_iface_proxy_get_property (GObject *object G_GNUC_UNUSED, 1161s # guint prop_id G_GNUC_UNUSED, 1161s # GValue *value G_GNUC_UNUSED, 1161s # GParamSpec *pspec G_GNUC_UNUSED) 1161s # { 1161s # } 1161s # 1161s # static void 1161s # org_project_signaling_iface_proxy_set_property (GObject *object G_GNUC_UNUSED, 1161s # guint prop_id G_GNUC_UNUSED, 1161s # const GValue *value G_GNUC_UNUSED, 1161s # GParamSpec *pspec G_GNUC_UNUSED) 1161s # { 1161s # } 1161s # 1161s # static void 1161s # org_project_signaling_iface_proxy_g_signal (GDBusProxy *proxy, 1161s # const gchar *sender_name G_GNUC_UNUSED, 1161s # const gchar *signal_name, 1161s # GVariant *parameters) 1161s # { 1161s # _ExtendedGDBusSignalInfo *info; 1161s # GVariantIter iter; 1161s # GVariant *child; 1161s # GValue *paramv; 1161s # gsize num_params; 1161s # gsize n; 1161s # guint signal_id; 1161s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, signal_name); 1161s # if (info == NULL) 1161s # return; 1161s # num_params = g_variant_n_children (parameters); 1161s # paramv = g_new0 (GValue, num_params + 1); 1161s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_SIGNALING_IFACE); 1161s # g_value_set_object (¶mv[0], proxy); 1161s # g_variant_iter_init (&iter, parameters); 1161s # n = 1; 1161s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1161s # { 1161s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 1161s # if (arg_info->use_gvariant) 1161s # { 1161s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1161s # g_value_set_variant (¶mv[n], child); 1161s # n++; 1161s # } 1161s # else 1161s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1161s # g_variant_unref (child); 1161s # } 1161s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_SIGNALING_IFACE); 1161s # g_signal_emitv (paramv, signal_id, 0, NULL); 1161s # for (n = 0; n < num_params + 1; n++) 1161s # g_value_unset (¶mv[n]); 1161s # g_free (paramv); 1161s # } 1161s # 1161s # static void 1161s # org_project_signaling_iface_proxy_g_properties_changed (GDBusProxy *_proxy, 1161s # GVariant *changed_properties, 1161s # const gchar *const *invalidated_properties) 1161s # { 1161s # OrgProjectSignalingIfaceProxy *proxy = ORG_PROJECT_SIGNALING_IFACE_PROXY (_proxy); 1161s # guint n; 1161s # const gchar *key; 1161s # GVariantIter *iter; 1161s # _ExtendedGDBusPropertyInfo *info; 1161s # g_variant_get (changed_properties, "a{sv}", &iter); 1161s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 1161s # { 1161s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, key); 1161s # g_datalist_remove_data (&proxy->priv->qdata, key); 1161s # if (info != NULL) 1161s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1161s # } 1161s # g_variant_iter_free (iter); 1161s # for (n = 0; invalidated_properties[n] != NULL; n++) 1161s # { 1161s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, invalidated_properties[n]); 1161s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 1161s # if (info != NULL) 1161s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1161s # } 1161s # } 1161s # 1161s # static void 1161s # org_project_signaling_iface_proxy_init (OrgProjectSignalingIfaceProxy *proxy) 1161s # { 1161s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1161s # proxy->priv = org_project_signaling_iface_proxy_get_instance_private (proxy); 1161s # #else 1161s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_SIGNALING_IFACE_PROXY, OrgProjectSignalingIfaceProxyPrivate); 1161s # #endif 1161s # 1161s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_signaling_iface_interface_info ()); 1161s # } 1161s # 1161s # static void 1161s # org_project_signaling_iface_proxy_class_init (OrgProjectSignalingIfaceProxyClass *klass) 1161s # { 1161s # GObjectClass *gobject_class; 1161s # GDBusProxyClass *proxy_class; 1161s # 1161s # gobject_class = G_OBJECT_CLASS (klass); 1161s # gobject_class->finalize = org_project_signaling_iface_proxy_finalize; 1161s # gobject_class->get_property = org_project_signaling_iface_proxy_get_property; 1161s # gobject_class->set_property = org_project_signaling_iface_proxy_set_property; 1161s # 1161s # proxy_class = G_DBUS_PROXY_CLASS (klass); 1161s # proxy_class->g_signal = org_project_signaling_iface_proxy_g_signal; 1161s # proxy_class->g_properties_changed = org_project_signaling_iface_proxy_g_properties_changed; 1161s # 1161s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1161s # g_type_class_add_private (klass, sizeof (OrgProjectSignalingIfaceProxyPrivate)); 1161s # #endif 1161s # } 1161s # 1161s # static void 1161s # org_project_signaling_iface_proxy_iface_init (OrgProjectSignalingIfaceIface *iface G_GNUC_UNUSED) 1161s # { 1161s # } 1161s # 1161s # /** 1161s # * org_project_signaling_iface_proxy_new: 1161s # * @connection: A #GDBusConnection. 1161s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1161s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1161s # * @object_path: An object path. 1161s # * @cancellable: (nullable): A #GCancellable or %NULL. 1161s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1161s # * @user_data: User data to pass to @callback. 1161s # * 1161s # * Asynchronously creates a proxy for the D-Bus interface org.project.SignalingIface. See g_dbus_proxy_new() for more details. 1161s # * 1161s # * 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()). 1161s # * You can then call org_project_signaling_iface_proxy_new_finish() to get the result of the operation. 1161s # * 1161s # * See org_project_signaling_iface_proxy_new_sync() for the synchronous, blocking version of this constructor. 1161s # */ 1161s # void 1161s # org_project_signaling_iface_proxy_new ( 1161s # GDBusConnection *connection, 1161s # GDBusProxyFlags flags, 1161s # const gchar *name, 1161s # const gchar *object_path, 1161s # GCancellable *cancellable, 1161s # GAsyncReadyCallback callback, 1161s # gpointer user_data) 1161s # { 1161s # 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); 1161s # } 1161s # 1161s # /** 1161s # * org_project_signaling_iface_proxy_new_finish: 1161s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_signaling_iface_proxy_new(). 1161s # * @error: Return location for error or %NULL 1161s # * 1161s # * Finishes an operation started with org_project_signaling_iface_proxy_new(). 1161s # * 1161s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 1161s # */ 1161s # OrgProjectSignalingIface * 1161s # org_project_signaling_iface_proxy_new_finish ( 1161s # GAsyncResult *res, 1161s # GError **error) 1161s # { 1161s # GObject *ret; 1161s # GObject *source_object; 1161s # source_object = g_async_result_get_source_object (res); 1161s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1161s # g_object_unref (source_object); 1161s # if (ret != NULL) 1161s # return ORG_PROJECT_SIGNALING_IFACE (ret); 1161s # else 1161s # return NULL; 1161s # } 1161s # 1161s # /** 1161s # * org_project_signaling_iface_proxy_new_sync: 1161s # * @connection: A #GDBusConnection. 1161s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1161s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1161s # * @object_path: An object path. 1161s # * @cancellable: (nullable): A #GCancellable or %NULL. 1161s # * @error: Return location for error or %NULL 1161s # * 1161s # * Synchronously creates a proxy for the D-Bus interface org.project.SignalingIface. See g_dbus_proxy_new_sync() for more details. 1161s # * 1161s # * The calling thread is blocked until a reply is received. 1161s # * 1161s # * See org_project_signaling_iface_proxy_new() for the asynchronous version of this constructor. 1161s # * 1161s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 1161s # */ 1161s # OrgProjectSignalingIface * 1161s # org_project_signaling_iface_proxy_new_sync ( 1161s # GDBusConnection *connection, 1161s # GDBusProxyFlags flags, 1161s # const gchar *name, 1161s # const gchar *object_path, 1161s # GCancellable *cancellable, 1161s # GError **error) 1161s # { 1161s # GInitable *ret; 1161s # 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); 1161s # if (ret != NULL) 1161s # return ORG_PROJECT_SIGNALING_IFACE (ret); 1161s # else 1161s # return NULL; 1161s # } 1161s # 1161s # 1161s # /** 1161s # * org_project_signaling_iface_proxy_new_for_bus: 1161s # * @bus_type: A #GBusType. 1161s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1161s # * @name: A bus name (well-known or unique). 1161s # * @object_path: An object path. 1161s # * @cancellable: (nullable): A #GCancellable or %NULL. 1161s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1161s # * @user_data: User data to pass to @callback. 1161s # * 1161s # * Like org_project_signaling_iface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 1161s # * 1161s # * 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()). 1161s # * You can then call org_project_signaling_iface_proxy_new_for_bus_finish() to get the result of the operation. 1161s # * 1161s # * See org_project_signaling_iface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 1161s # */ 1161s # void 1161s # org_project_signaling_iface_proxy_new_for_bus ( 1161s # GBusType bus_type, 1161s # GDBusProxyFlags flags, 1161s # const gchar *name, 1161s # const gchar *object_path, 1161s # GCancellable *cancellable, 1161s # GAsyncReadyCallback callback, 1161s # gpointer user_data) 1161s # { 1161s # 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); 1161s # } 1161s # 1161s # /** 1161s # * org_project_signaling_iface_proxy_new_for_bus_finish: 1161s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_signaling_iface_proxy_new_for_bus(). 1161s # * @error: Return location for error or %NULL 1161s # * 1161s # * Finishes an operation started with org_project_signaling_iface_proxy_new_for_bus(). 1161s # * 1161s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 1161s # */ 1161s # OrgProjectSignalingIface * 1161s # org_project_signaling_iface_proxy_new_for_bus_finish ( 1161s # GAsyncResult *res, 1161s # GError **error) 1161s # { 1161s # GObject *ret; 1161s # GObject *source_object; 1161s # source_object = g_async_result_get_source_object (res); 1161s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1161s # g_object_unref (source_object); 1161s # if (ret != NULL) 1161s # return ORG_PROJECT_SIGNALING_IFACE (ret); 1161s # else 1161s # return NULL; 1161s # } 1161s # 1161s # /** 1161s # * org_project_signaling_iface_proxy_new_for_bus_sync: 1161s # * @bus_type: A #GBusType. 1161s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1161s # * @name: A bus name (well-known or unique). 1161s # * @object_path: An object path. 1161s # * @cancellable: (nullable): A #GCancellable or %NULL. 1161s # * @error: Return location for error or %NULL 1161s # * 1161s # * Like org_project_signaling_iface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 1161s # * 1161s # * The calling thread is blocked until a reply is received. 1161s # * 1161s # * See org_project_signaling_iface_proxy_new_for_bus() for the asynchronous version of this constructor. 1161s # * 1161s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 1161s # */ 1161s # OrgProjectSignalingIface * 1161s # org_project_signaling_iface_proxy_new_for_bus_sync ( 1161s # GBusType bus_type, 1161s # GDBusProxyFlags flags, 1161s # const gchar *name, 1161s # const gchar *object_path, 1161s # GCancellable *cancellable, 1161s # GError **error) 1161s # { 1161s # GInitable *ret; 1161s # 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); 1161s # if (ret != NULL) 1161s # return ORG_PROJECT_SIGNALING_IFACE (ret); 1161s # else 1161s # return NULL; 1161s # } 1161s # 1161s # 1161s # /* ------------------------------------------------------------------------ */ 1161s # 1161s # /** 1161s # * OrgProjectSignalingIfaceSkeleton: 1161s # * 1161s # * The #OrgProjectSignalingIfaceSkeleton structure contains only private data and should only be accessed using the provided API. 1161s # */ 1161s # 1161s # /** 1161s # * OrgProjectSignalingIfaceSkeletonClass: 1161s # * @parent_class: The parent class. 1161s # * 1161s # * Class structure for #OrgProjectSignalingIfaceSkeleton. 1161s # */ 1161s # 1161s # struct _OrgProjectSignalingIfaceSkeletonPrivate 1161s # { 1161s # GValue *properties; 1161s # GList *changed_properties; 1161s # GSource *changed_properties_idle_source; 1161s # GMainContext *context; 1161s # GMutex lock; 1161s # }; 1161s # 1161s # static void 1161s # _org_project_signaling_iface_skeleton_handle_method_call ( 1161s # GDBusConnection *connection G_GNUC_UNUSED, 1161s # const gchar *sender G_GNUC_UNUSED, 1161s # const gchar *object_path G_GNUC_UNUSED, 1161s # const gchar *interface_name, 1161s # const gchar *method_name, 1161s # GVariant *parameters, 1161s # GDBusMethodInvocation *invocation, 1161s # gpointer user_data) 1161s # { 1161s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 1161s # _ExtendedGDBusMethodInfo *info; 1161s # GVariantIter iter; 1161s # GVariant *child; 1161s # GValue *paramv; 1161s # gsize num_params; 1161s # guint num_extra; 1161s # gsize n; 1161s # guint signal_id; 1161s # GValue return_value = G_VALUE_INIT; 1161s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 1161s # g_assert (info != NULL); 1161s # num_params = g_variant_n_children (parameters); 1161s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 1161s # n = 0; 1161s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_SIGNALING_IFACE); 1161s # g_value_set_object (¶mv[n++], skeleton); 1161s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 1161s # g_value_set_object (¶mv[n++], invocation); 1161s # if (info->pass_fdlist) 1161s # { 1161s # #ifdef G_OS_UNIX 1161s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 1161s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 1161s # #else 1161s # g_assert_not_reached (); 1161s # #endif 1161s # } 1161s # g_variant_iter_init (&iter, parameters); 1161s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1161s # { 1161s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 1161s # if (arg_info->use_gvariant) 1161s # { 1161s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1161s # g_value_set_variant (¶mv[n], child); 1161s # n++; 1161s # } 1161s # else 1161s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1161s # g_variant_unref (child); 1161s # } 1161s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_SIGNALING_IFACE); 1161s # g_value_init (&return_value, G_TYPE_BOOLEAN); 1161s # g_signal_emitv (paramv, signal_id, 0, &return_value); 1161s # if (!g_value_get_boolean (&return_value)) 1161s # 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); 1161s # g_value_unset (&return_value); 1161s # for (n = 0; n < num_params + num_extra; n++) 1161s # g_value_unset (¶mv[n]); 1161s # g_free (paramv); 1161s # } 1161s # 1161s # static GVariant * 1161s # _org_project_signaling_iface_skeleton_handle_get_property ( 1161s # GDBusConnection *connection G_GNUC_UNUSED, 1161s # const gchar *sender G_GNUC_UNUSED, 1161s # const gchar *object_path G_GNUC_UNUSED, 1161s # const gchar *interface_name G_GNUC_UNUSED, 1161s # const gchar *property_name, 1161s # GError **error, 1161s # gpointer user_data) 1161s # { 1161s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 1161s # GValue value = G_VALUE_INIT; 1161s # GParamSpec *pspec; 1161s # _ExtendedGDBusPropertyInfo *info; 1161s # GVariant *ret; 1161s # ret = NULL; 1161s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, property_name); 1161s # g_assert (info != NULL); 1161s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1161s # if (pspec == NULL) 1161s # { 1161s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1161s # } 1161s # else 1161s # { 1161s # g_value_init (&value, pspec->value_type); 1161s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1161s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 1161s # g_value_unset (&value); 1161s # } 1161s # return ret; 1161s # } 1161s # 1161s # static gboolean 1161s # _org_project_signaling_iface_skeleton_handle_set_property ( 1161s # GDBusConnection *connection G_GNUC_UNUSED, 1161s # const gchar *sender G_GNUC_UNUSED, 1161s # const gchar *object_path G_GNUC_UNUSED, 1161s # const gchar *interface_name G_GNUC_UNUSED, 1161s # const gchar *property_name, 1161s # GVariant *variant, 1161s # GError **error, 1161s # gpointer user_data) 1161s # { 1161s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 1161s # GValue value = G_VALUE_INIT; 1161s # GParamSpec *pspec; 1161s # _ExtendedGDBusPropertyInfo *info; 1161s # gboolean ret; 1161s # ret = FALSE; 1161s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, property_name); 1161s # g_assert (info != NULL); 1161s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1161s # if (pspec == NULL) 1161s # { 1161s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1161s # } 1161s # else 1161s # { 1161s # if (info->use_gvariant) 1161s # g_value_set_variant (&value, variant); 1161s # else 1161s # g_dbus_gvariant_to_gvalue (variant, &value); 1161s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1161s # g_value_unset (&value); 1161s # ret = TRUE; 1161s # } 1161s # return ret; 1161s # } 1161s # 1161s # static const GDBusInterfaceVTable _org_project_signaling_iface_skeleton_vtable = 1161s # { 1161s # _org_project_signaling_iface_skeleton_handle_method_call, 1161s # _org_project_signaling_iface_skeleton_handle_get_property, 1161s # _org_project_signaling_iface_skeleton_handle_set_property, 1161s # {NULL} 1161s # }; 1161s # 1161s # static GDBusInterfaceInfo * 1161s # org_project_signaling_iface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1161s # { 1161s # return org_project_signaling_iface_interface_info (); 1161s # } 1161s # 1161s # static GDBusInterfaceVTable * 1161s # org_project_signaling_iface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1161s # { 1161s # return (GDBusInterfaceVTable *) &_org_project_signaling_iface_skeleton_vtable; 1161s # } 1161s # 1161s # static GVariant * 1161s # org_project_signaling_iface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 1161s # { 1161s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (_skeleton); 1161s # 1161s # GVariantBuilder builder; 1161s # guint n; 1161s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 1161s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 1161s # #else 1161s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 1161s # #endif 1161s # if (_org_project_signaling_iface_interface_info.parent_struct.properties == NULL) 1161s # goto out; 1161s # for (n = 0; _org_project_signaling_iface_interface_info.parent_struct.properties[n] != NULL; n++) 1161s # { 1161s # GDBusPropertyInfo *info = _org_project_signaling_iface_interface_info.parent_struct.properties[n]; 1161s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 1161s # { 1161s # GVariant *value; 1161s # 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); 1161s # if (value != NULL) 1161s # { 1161s # g_variant_take_ref (value); 1161s # g_variant_builder_add (&builder, "{sv}", info->name, value); 1161s # g_variant_unref (value); 1161s # } 1161s # } 1161s # } 1161s # out: 1161s # return g_variant_builder_end (&builder); 1161s # } 1161s # 1161s # static void 1161s # org_project_signaling_iface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 1161s # { 1161s # } 1161s # 1161s # static void 1161s # _org_project_signaling_iface_on_signal_simple_signal ( 1161s # OrgProjectSignalingIface *object) 1161s # { 1161s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 1161s # 1161s # GList *connections, *l; 1161s # GVariant *signal_variant; 1161s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 1161s # 1161s # signal_variant = g_variant_ref_sink (g_variant_new ("()")); 1161s # for (l = connections; l != NULL; l = l->next) 1161s # { 1161s # GDBusConnection *connection = l->data; 1161s # g_dbus_connection_emit_signal (connection, 1161s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SimpleSignal", 1161s # signal_variant, NULL); 1161s # } 1161s # g_variant_unref (signal_variant); 1161s # g_list_free_full (connections, g_object_unref); 1161s # } 1161s # 1161s # static void 1161s # _org_project_signaling_iface_on_signal_single_arg_signal_h ( 1161s # OrgProjectSignalingIface *object, 1161s # GVariant *arg_arg_h) 1161s # { 1161s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 1161s # 1161s # GList *connections, *l; 1161s # GVariant *signal_variant; 1161s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 1161s # 1161s # signal_variant = g_variant_ref_sink (g_variant_new ("(@h)", 1161s # arg_arg_h)); 1161s # for (l = connections; l != NULL; l = l->next) 1161s # { 1161s # GDBusConnection *connection = l->data; 1161s # g_dbus_connection_emit_signal (connection, 1161s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SingleArgSignalH", 1161s # signal_variant, NULL); 1161s # } 1161s # g_variant_unref (signal_variant); 1161s # g_list_free_full (connections, g_object_unref); 1161s # } 1161s # 1161s # static void org_project_signaling_iface_skeleton_iface_init (OrgProjectSignalingIfaceIface *iface); 1161s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1161s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceSkeleton, org_project_signaling_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1161s # G_ADD_PRIVATE (OrgProjectSignalingIfaceSkeleton) 1161s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_skeleton_iface_init)) 1161s # 1161s # #else 1161s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceSkeleton, org_project_signaling_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1161s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_skeleton_iface_init)) 1161s # 1161s # #endif 1161s # static void 1161s # org_project_signaling_iface_skeleton_finalize (GObject *object) 1161s # { 1161s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 1161s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 1161s # if (skeleton->priv->changed_properties_idle_source != NULL) 1161s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 1161s # g_main_context_unref (skeleton->priv->context); 1161s # g_mutex_clear (&skeleton->priv->lock); 1161s # G_OBJECT_CLASS (org_project_signaling_iface_skeleton_parent_class)->finalize (object); 1161s # } 1161s # 1161s # static void 1161s # org_project_signaling_iface_skeleton_init (OrgProjectSignalingIfaceSkeleton *skeleton) 1161s # { 1161s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1161s # skeleton->priv = org_project_signaling_iface_skeleton_get_instance_private (skeleton); 1161s # #else 1161s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_SIGNALING_IFACE_SKELETON, OrgProjectSignalingIfaceSkeletonPrivate); 1161s # #endif 1161s # 1161s # g_mutex_init (&skeleton->priv->lock); 1161s # skeleton->priv->context = g_main_context_ref_thread_default (); 1161s # } 1161s # 1161s # static void 1161s # org_project_signaling_iface_skeleton_class_init (OrgProjectSignalingIfaceSkeletonClass *klass) 1161s # { 1161s # GObjectClass *gobject_class; 1161s # GDBusInterfaceSkeletonClass *skeleton_class; 1161s # 1161s # gobject_class = G_OBJECT_CLASS (klass); 1161s # gobject_class->finalize = org_project_signaling_iface_skeleton_finalize; 1161s # 1161s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 1161s # skeleton_class->get_info = org_project_signaling_iface_skeleton_dbus_interface_get_info; 1161s # skeleton_class->get_properties = org_project_signaling_iface_skeleton_dbus_interface_get_properties; 1161s # skeleton_class->flush = org_project_signaling_iface_skeleton_dbus_interface_flush; 1161s # skeleton_class->get_vtable = org_project_signaling_iface_skeleton_dbus_interface_get_vtable; 1161s # 1161s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1161s # g_type_class_add_private (klass, sizeof (OrgProjectSignalingIfaceSkeletonPrivate)); 1161s # #endif 1161s # } 1161s # 1161s # static void 1161s # org_project_signaling_iface_skeleton_iface_init (OrgProjectSignalingIfaceIface *iface) 1161s # { 1161s # iface->simple_signal = _org_project_signaling_iface_on_signal_simple_signal; 1161s # iface->single_arg_signal_h = _org_project_signaling_iface_on_signal_single_arg_signal_h; 1161s # } 1161s # 1161s # /** 1161s # * org_project_signaling_iface_skeleton_new: 1161s # * 1161s # * Creates a skeleton object for the D-Bus interface org.project.SignalingIface. 1161s # * 1161s # * Returns: (transfer full) (type OrgProjectSignalingIfaceSkeleton): The skeleton object. 1161s # */ 1161s # OrgProjectSignalingIface * 1161s # org_project_signaling_iface_skeleton_new (void) 1161s # { 1161s # return ORG_PROJECT_SIGNALING_IFACE (g_object_new (TYPE_ORG_PROJECT_SIGNALING_IFACE_SKELETON, NULL)); 1161s # } 1161s # Error: 1161s # 1161s # /tmp/tmpjwrvmpd2/tmp3rhpo9_7.xml: 1161s # 1161s # 1161s # 1161s # 1161s # 1161s # 1161s # 1161s # 1161s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpjwrvmpd2/tmp3rhpo9_7.xml', '--output', '-', '--body'] 1161s # Return code: 0 1161s # Output: 1161s # /* 1161s # * This file is generated by gdbus-codegen, do not modify it. 1161s # * 1161s # * The license of this code is the same as for the D-Bus interface description 1161s # * it was derived from. Note that it links to GLib, so must comply with the 1161s # * LGPL linking clauses. 1161s # */ 1161s # 1161s # #ifdef HAVE_CONFIG_H 1161s # # include "config.h" 1161s # #endif 1161s # 1161s # #include 1161s # #ifdef G_OS_UNIX 1161s # # include 1161s # #endif 1161s # 1161s # #ifdef G_ENABLE_DEBUG 1161s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 1161s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 1161s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 1161s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 1161s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 1161s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 1161s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 1161s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 1161s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 1161s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 1161s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 1161s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 1161s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 1161s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 1161s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 1161s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 1161s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 1161s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 1161s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 1161s # #else /* !G_ENABLE_DEBUG */ 1161s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 1161s # * Do not access GValues directly in your code. Instead, use the 1161s # * g_value_get_*() functions 1161s # */ 1161s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 1161s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 1161s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 1161s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 1161s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 1161s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 1161s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 1161s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 1161s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 1161s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 1161s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 1161s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 1161s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 1161s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 1161s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 1161s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 1161s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 1161s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 1161s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 1161s # #endif /* !G_ENABLE_DEBUG */ 1161s # 1161s # typedef struct 1161s # { 1161s # GDBusArgInfo parent_struct; 1161s # gboolean use_gvariant; 1161s # } _ExtendedGDBusArgInfo; 1161s # 1161s # typedef struct 1161s # { 1161s # GDBusMethodInfo parent_struct; 1161s # const gchar *signal_name; 1161s # gboolean pass_fdlist; 1161s # } _ExtendedGDBusMethodInfo; 1161s # 1161s # typedef struct 1161s # { 1161s # GDBusSignalInfo parent_struct; 1161s # const gchar *signal_name; 1161s # } _ExtendedGDBusSignalInfo; 1161s # 1161s # typedef struct 1161s # { 1161s # GDBusPropertyInfo parent_struct; 1161s # const gchar *hyphen_name; 1161s # guint use_gvariant : 1; 1161s # guint emits_changed_signal : 1; 1161s # } _ExtendedGDBusPropertyInfo; 1161s # 1161s # typedef struct 1161s # { 1161s # GDBusInterfaceInfo parent_struct; 1161s # const gchar *hyphen_name; 1161s # } _ExtendedGDBusInterfaceInfo; 1161s # 1161s # typedef struct 1161s # { 1161s # const _ExtendedGDBusPropertyInfo *info; 1161s # guint prop_id; 1161s # GValue orig_value; /* the value before the change */ 1161s # } ChangedProperty; 1161s # 1161s # static void 1161s # _changed_property_free (ChangedProperty *data) 1161s # { 1161s # g_value_unset (&data->orig_value); 1161s # g_free (data); 1161s # } 1161s # 1161s # static gboolean 1161s # _g_strv_equal0 (gchar **a, gchar **b) 1161s # { 1161s # gboolean ret = FALSE; 1161s # guint n; 1161s # if (a == NULL && b == NULL) 1161s # { 1161s # ret = TRUE; 1161s # goto out; 1161s # } 1161s # if (a == NULL || b == NULL) 1161s # goto out; 1161s # if (g_strv_length (a) != g_strv_length (b)) 1161s # goto out; 1161s # for (n = 0; a[n] != NULL; n++) 1161s # if (g_strcmp0 (a[n], b[n]) != 0) 1161s # goto out; 1161s # ret = TRUE; 1161s # out: 1161s # return ret; 1161s # } 1161s # 1161s # static gboolean 1161s # _g_variant_equal0 (GVariant *a, GVariant *b) 1161s # { 1161s # gboolean ret = FALSE; 1161s # if (a == NULL && b == NULL) 1161s # { 1161s # ret = TRUE; 1161s # goto out; 1161s # } 1161s # if (a == NULL || b == NULL) 1161s # goto out; 1161s # ret = g_variant_equal (a, b); 1161s # out: 1161s # return ret; 1161s # } 1161s # 1161s # G_GNUC_UNUSED static gboolean 1161s # _g_value_equal (const GValue *a, const GValue *b) 1161s # { 1161s # gboolean ret = FALSE; 1161s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 1161s # switch (G_VALUE_TYPE (a)) 1161s # { 1161s # case G_TYPE_BOOLEAN: 1161s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 1161s # break; 1161s # case G_TYPE_UCHAR: 1161s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 1161s # break; 1161s # case G_TYPE_INT: 1161s # ret = (g_value_get_int (a) == g_value_get_int (b)); 1161s # break; 1161s # case G_TYPE_UINT: 1161s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 1161s # break; 1161s # case G_TYPE_INT64: 1161s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 1161s # break; 1161s # case G_TYPE_UINT64: 1161s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 1161s # break; 1161s # case G_TYPE_DOUBLE: 1161s # { 1161s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 1161s # gdouble da = g_value_get_double (a); 1161s # gdouble db = g_value_get_double (b); 1161s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 1161s # } 1161s # break; 1161s # case G_TYPE_STRING: 1161s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 1161s # break; 1161s # case G_TYPE_VARIANT: 1161s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 1161s # break; 1161s # default: 1161s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 1161s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 1161s # else 1161s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 1161s # break; 1161s # } 1161s # return ret; 1161s # } 1161s # 1161s # /* ------------------------------------------------------------------------ 1161s # * Code for interface org.project.SignalingIface 1161s # * ------------------------------------------------------------------------ 1161s # */ 1161s # 1161s # /** 1161s # * SECTION:OrgProjectSignalingIface 1161s # * @title: OrgProjectSignalingIface 1161s # * @short_description: Generated C code for the org.project.SignalingIface D-Bus interface 1161s # * 1161s # * This section contains code for working with the org.project.SignalingIface D-Bus interface in C. 1161s # */ 1161s # 1161s # enum 1161s # { 1161s # _ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL, 1161s # _ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_AY, 1161s # }; 1161s # 1161s # static unsigned _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[2] = { 0 }; 1161s # 1161s # /* ---- Introspection data for org.project.SignalingIface ---- */ 1161s # 1161s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_simple_signal = 1161s # { 1161s # { 1161s # -1, 1161s # (gchar *) "SimpleSignal", 1161s # NULL, 1161s # NULL 1161s # }, 1161s # "simple-signal" 1161s # }; 1161s # 1161s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_single_arg_signal_ay_ARG_arg_ay = 1161s # { 1161s # { 1161s # -1, 1161s # (gchar *) "arg_ay", 1161s # (gchar *) "ay", 1161s # NULL 1161s # }, 1161s # FALSE 1161s # }; 1161s # 1161s # static const GDBusArgInfo * const _org_project_signaling_iface_signal_info_single_arg_signal_ay_ARG_pointers[] = 1161s # { 1161s # &_org_project_signaling_iface_signal_info_single_arg_signal_ay_ARG_arg_ay.parent_struct, 1161s # NULL 1161s # }; 1161s # 1161s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_single_arg_signal_ay = 1161s # { 1161s # { 1161s # -1, 1161s # (gchar *) "SingleArgSignalAy", 1161s # (GDBusArgInfo **) &_org_project_signaling_iface_signal_info_single_arg_signal_ay_ARG_pointers, 1161s # NULL 1161s # }, 1161s # "single-arg-signal-ay" 1161s # }; 1161s # 1161s # static const GDBusSignalInfo * const _org_project_signaling_iface_signal_info_pointers[] = 1161s # { 1161s # &_org_project_signaling_iface_signal_info_simple_signal.parent_struct, 1161s # &_org_project_signaling_iface_signal_info_single_arg_signal_ay.parent_struct, 1161s # NULL 1161s # }; 1161s # 1161s # static const _ExtendedGDBusInterfaceInfo _org_project_signaling_iface_interface_info = 1161s # { 1161s # { 1161s # -1, 1161s # (gchar *) "org.project.SignalingIface", 1161s # NULL, 1161s # (GDBusSignalInfo **) &_org_project_signaling_iface_signal_info_pointers, 1161s # NULL, 1161s # NULL 1161s # }, 1161s # "org-project-signaling-iface", 1161s # }; 1161s # 1161s # 1161s # /** 1161s # * org_project_signaling_iface_interface_info: 1161s # * 1161s # * Gets a machine-readable description of the org.project.SignalingIface D-Bus interface. 1161s # * 1161s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 1161s # */ 1161s # GDBusInterfaceInfo * 1161s # org_project_signaling_iface_interface_info (void) 1161s # { 1161s # return (GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct; 1161s # } 1161s # 1161s # /** 1161s # * org_project_signaling_iface_override_properties: 1161s # * @klass: The class structure for a #GObject derived class. 1161s # * @property_id_begin: The property id to assign to the first overridden property. 1161s # * 1161s # * Overrides all #GObject properties in the #OrgProjectSignalingIface interface for a concrete class. 1161s # * The properties are overridden in the order they are defined. 1161s # * 1161s # * Returns: The last property id. 1161s # */ 1161s # guint 1161s # org_project_signaling_iface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 1161s # { 1161s # return property_id_begin - 1; 1161s # } 1161s # 1161s # 1161s # inline static void 1161s # org_project_signaling_iface_signal_marshal_simple_signal ( 1161s # GClosure *closure, 1161s # GValue *return_value, 1161s # unsigned int n_param_values, 1161s # const GValue *param_values, 1161s # void *invocation_hint, 1161s # void *marshal_data) 1161s # { 1161s # g_cclosure_marshal_VOID__VOID (closure, 1161s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1161s # } 1161s # 1161s # inline static void 1161s # org_project_signaling_iface_signal_marshal_single_arg_signal_ay ( 1161s # GClosure *closure, 1161s # GValue *return_value, 1161s # unsigned int n_param_values, 1161s # const GValue *param_values, 1161s # void *invocation_hint, 1161s # void *marshal_data) 1161s # { 1161s # g_cclosure_marshal_VOID__STRING (closure, 1161s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1161s # } 1161s # 1161s # 1161s # /** 1161s # * OrgProjectSignalingIface: 1161s # * 1161s # * Abstract interface type for the D-Bus interface org.project.SignalingIface. 1161s # */ 1161s # 1161s # /** 1161s # * OrgProjectSignalingIfaceIface: 1161s # * @parent_iface: The parent interface. 1161s # * @simple_signal: Handler for the #OrgProjectSignalingIface::simple-signal signal. 1161s # * @single_arg_signal_ay: Handler for the #OrgProjectSignalingIface::single-arg-signal-ay signal. 1161s # * 1161s # * Virtual table for the D-Bus interface org.project.SignalingIface. 1161s # */ 1161s # 1161s # typedef OrgProjectSignalingIfaceIface OrgProjectSignalingIfaceInterface; 1161s # G_DEFINE_INTERFACE (OrgProjectSignalingIface, org_project_signaling_iface, G_TYPE_OBJECT) 1161s # 1161s # static void 1161s # org_project_signaling_iface_default_init (OrgProjectSignalingIfaceIface *iface) 1161s # { 1161s # /* GObject signals for received D-Bus signals: */ 1161s # /** 1161s # * OrgProjectSignalingIface::simple-signal: 1161s # * @object: A #OrgProjectSignalingIface. 1161s # * 1161s # * On the client-side, this signal is emitted whenever the D-Bus signal "SimpleSignal" is received. 1161s # * 1161s # * 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. 1161s # */ 1161s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL] = 1161s # g_signal_new ("simple-signal", 1161s # G_TYPE_FROM_INTERFACE (iface), 1161s # G_SIGNAL_RUN_LAST, 1161s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, simple_signal), 1161s # NULL, 1161s # NULL, 1161s # org_project_signaling_iface_signal_marshal_simple_signal, 1161s # G_TYPE_NONE, 1161s # 0); 1161s # 1161s # /** 1161s # * OrgProjectSignalingIface::single-arg-signal-ay: 1161s # * @object: A #OrgProjectSignalingIface. 1161s # * @arg_arg_ay: Argument. 1161s # * 1161s # * On the client-side, this signal is emitted whenever the D-Bus signal "SingleArgSignalAy" is received. 1161s # * 1161s # * 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. 1161s # */ 1161s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_AY] = 1161s # g_signal_new ("single-arg-signal-ay", 1161s # G_TYPE_FROM_INTERFACE (iface), 1161s # G_SIGNAL_RUN_LAST, 1161s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, single_arg_signal_ay), 1161s # NULL, 1161s # NULL, 1161s # org_project_signaling_iface_signal_marshal_single_arg_signal_ay, 1161s # G_TYPE_NONE, 1161s # 1, G_TYPE_STRING); 1161s # 1161s # } 1161s # 1161s # /** 1161s # * org_project_signaling_iface_emit_simple_signal: 1161s # * @object: A #OrgProjectSignalingIface. 1161s # * 1161s # * Emits the "SimpleSignal" D-Bus signal. 1161s # */ 1161s # void 1161s # org_project_signaling_iface_emit_simple_signal ( 1161s # OrgProjectSignalingIface *object) 1161s # { 1161s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL], 0); 1161s # } 1161s # 1161s # /** 1161s # * org_project_signaling_iface_emit_single_arg_signal_ay: 1161s # * @object: A #OrgProjectSignalingIface. 1161s # * @arg_arg_ay: Argument to pass with the signal. 1161s # * 1161s # * Emits the "SingleArgSignalAy" D-Bus signal. 1161s # */ 1161s # void 1161s # org_project_signaling_iface_emit_single_arg_signal_ay ( 1161s # OrgProjectSignalingIface *object, 1161s # const gchar *arg_arg_ay) 1161s # { 1161s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_AY], 0, arg_arg_ay); 1161s # } 1161s # 1161s # /* ------------------------------------------------------------------------ */ 1161s # 1161s # /** 1161s # * OrgProjectSignalingIfaceProxy: 1161s # * 1161s # * The #OrgProjectSignalingIfaceProxy structure contains only private data and should only be accessed using the provided API. 1161s # */ 1161s # 1161s # /** 1161s # * OrgProjectSignalingIfaceProxyClass: 1161s # * @parent_class: The parent class. 1161s # * 1161s # * Class structure for #OrgProjectSignalingIfaceProxy. 1161s # */ 1161s # 1161s # struct _OrgProjectSignalingIfaceProxyPrivate 1161s # { 1161s # GData *qdata; 1161s # }; 1161s # 1161s # static void org_project_signaling_iface_proxy_iface_init (OrgProjectSignalingIfaceIface *iface); 1161s # 1161s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1161s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceProxy, org_project_signaling_iface_proxy, G_TYPE_DBUS_PROXY, 1161s # G_ADD_PRIVATE (OrgProjectSignalingIfaceProxy) 1161s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_proxy_iface_init)) 1161s # 1161s # #else 1161s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceProxy, org_project_signaling_iface_proxy, G_TYPE_DBUS_PROXY, 1161s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_proxy_iface_init)) 1161s # 1161s # #endif 1161s # static void 1161s # org_project_signaling_iface_proxy_finalize (GObject *object) 1161s # { 1161s # OrgProjectSignalingIfaceProxy *proxy = ORG_PROJECT_SIGNALING_IFACE_PROXY (object); 1161s # g_datalist_clear (&proxy->priv->qdata); 1161s # G_OBJECT_CLASS (org_project_signaling_iface_proxy_parent_class)->finalize (object); 1161s # } 1161s # 1161s # static void 1161s # org_project_signaling_iface_proxy_get_property (GObject *object G_GNUC_UNUSED, 1161s # guint prop_id G_GNUC_UNUSED, 1161s # GValue *value G_GNUC_UNUSED, 1161s # GParamSpec *pspec G_GNUC_UNUSED) 1161s # { 1161s # } 1161s # 1161s # static void 1161s # org_project_signaling_iface_proxy_set_property (GObject *object G_GNUC_UNUSED, 1161s # guint prop_id G_GNUC_UNUSED, 1161s # const GValue *value G_GNUC_UNUSED, 1161s # GParamSpec *pspec G_GNUC_UNUSED) 1161s # { 1161s # } 1161s # 1161s # static void 1161s # org_project_signaling_iface_proxy_g_signal (GDBusProxy *proxy, 1161s # const gchar *sender_name G_GNUC_UNUSED, 1161s # const gchar *signal_name, 1161s # GVariant *parameters) 1161s # { 1161s # _ExtendedGDBusSignalInfo *info; 1161s # GVariantIter iter; 1161s # GVariant *child; 1161s # GValue *paramv; 1161s # gsize num_params; 1161s # gsize n; 1161s # guint signal_id; 1161s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, signal_name); 1161s # if (info == NULL) 1161s # return; 1161s # num_params = g_variant_n_children (parameters); 1161s # paramv = g_new0 (GValue, num_params + 1); 1161s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_SIGNALING_IFACE); 1161s # g_value_set_object (¶mv[0], proxy); 1161s # g_variant_iter_init (&iter, parameters); 1161s # n = 1; 1161s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1161s # { 1161s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 1161s # if (arg_info->use_gvariant) 1161s # { 1161s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1161s # g_value_set_variant (¶mv[n], child); 1161s # n++; 1161s # } 1161s # else 1161s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1161s # g_variant_unref (child); 1161s # } 1161s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_SIGNALING_IFACE); 1161s # g_signal_emitv (paramv, signal_id, 0, NULL); 1161s # for (n = 0; n < num_params + 1; n++) 1161s # g_value_unset (¶mv[n]); 1161s # g_free (paramv); 1161s # } 1161s # 1161s # static void 1161s # org_project_signaling_iface_proxy_g_properties_changed (GDBusProxy *_proxy, 1161s # GVariant *changed_properties, 1161s # const gchar *const *invalidated_properties) 1161s # { 1161s # OrgProjectSignalingIfaceProxy *proxy = ORG_PROJECT_SIGNALING_IFACE_PROXY (_proxy); 1161s # guint n; 1161s # const gchar *key; 1161s # GVariantIter *iter; 1161s # _ExtendedGDBusPropertyInfo *info; 1161s # g_variant_get (changed_properties, "a{sv}", &iter); 1161s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 1161s # { 1161s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, key); 1161s # g_datalist_remove_data (&proxy->priv->qdata, key); 1161s # if (info != NULL) 1161s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1161s # } 1161s # g_variant_iter_free (iter); 1161s # for (n = 0; invalidated_properties[n] != NULL; n++) 1161s # { 1161s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, invalidated_properties[n]); 1161s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 1161s # if (info != NULL) 1161s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1161s # } 1161s # } 1161s # 1161s # static void 1161s # org_project_signaling_iface_proxy_init (OrgProjectSignalingIfaceProxy *proxy) 1161s # { 1161s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1161s # proxy->priv = org_project_signaling_iface_proxy_get_instance_private (proxy); 1161s # #else 1161s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_SIGNALING_IFACE_PROXY, OrgProjectSignalingIfaceProxyPrivate); 1161s # #endif 1161s # 1161s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_signaling_iface_interface_info ()); 1161s # } 1161s # 1161s # static void 1161s # org_project_signaling_iface_proxy_class_init (OrgProjectSignalingIfaceProxyClass *klass) 1161s # { 1161s # GObjectClass *gobject_class; 1161s # GDBusProxyClass *proxy_class; 1161s # 1161s # gobject_class = G_OBJECT_CLASS (klass); 1161s # gobject_class->finalize = org_project_signaling_iface_proxy_finalize; 1161s # gobject_class->get_property = org_project_signaling_iface_proxy_get_property; 1161s # gobject_class->set_property = org_project_signaling_iface_proxy_set_property; 1161s # 1161s # proxy_class = G_DBUS_PROXY_CLASS (klass); 1161s # proxy_class->g_signal = org_project_signaling_iface_proxy_g_signal; 1161s # proxy_class->g_properties_changed = org_project_signaling_iface_proxy_g_properties_changed; 1161s # 1161s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1161s # g_type_class_add_private (klass, sizeof (OrgProjectSignalingIfaceProxyPrivate)); 1161s # #endif 1161s # } 1161s # 1161s # static void 1161s # org_project_signaling_iface_proxy_iface_init (OrgProjectSignalingIfaceIface *iface G_GNUC_UNUSED) 1161s # { 1161s # } 1161s # 1161s # /** 1161s # * org_project_signaling_iface_proxy_new: 1161s # * @connection: A #GDBusConnection. 1161s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1161s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1161s # * @object_path: An object path. 1161s # * @cancellable: (nullable): A #GCancellable or %NULL. 1161s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1161s # * @user_data: User data to pass to @callback. 1161s # * 1161s # * Asynchronously creates a proxy for the D-Bus interface org.project.SignalingIface. See g_dbus_proxy_new() for more details. 1161s # * 1161s # * 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()). 1161s # * You can then call org_project_signaling_iface_proxy_new_finish() to get the result of the operation. 1161s # * 1161s # * See org_project_signaling_iface_proxy_new_sync() for the synchronous, blocking version of this constructor. 1161s # */ 1161s # void 1161s # org_project_signaling_iface_proxy_new ( 1161s # GDBusConnection *connection, 1161s # GDBusProxyFlags flags, 1161s # const gchar *name, 1161s # const gchar *object_path, 1161s # GCancellable *cancellable, 1161s # GAsyncReadyCallback callback, 1161s # gpointer user_data) 1161s # { 1161s # 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); 1161s # } 1161s # 1161s # /** 1161s # * org_project_signaling_iface_proxy_new_finish: 1161s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_signaling_iface_proxy_new(). 1161s # * @error: Return location for error or %NULL 1161s # * 1161s # * Finishes an operation started with org_project_signaling_iface_proxy_new(). 1161s # * 1161s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 1161s # */ 1161s # OrgProjectSignalingIface * 1161s # org_project_signaling_iface_proxy_new_finish ( 1161s # GAsyncResult *res, 1161s # GError **error) 1161s # { 1161s # GObject *ret; 1161s # GObject *source_object; 1161s # source_object = g_async_result_get_source_object (res); 1161s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1161s # g_object_unref (source_object); 1161s # if (ret != NULL) 1161s # return ORG_PROJECT_SIGNALING_IFACE (ret); 1161s # else 1161s # return NULL; 1161s # } 1161s # 1161s # /** 1161s # * org_project_signaling_iface_proxy_new_sync: 1161s # * @connection: A #GDBusConnection. 1161s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1161s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1161s # * @object_path: An object path. 1161s # * @cancellable: (nullable): A #GCancellable or %NULL. 1161s # * @error: Return location for error or %NULL 1161s # * 1161s # * Synchronously creates a proxy for the D-Bus interface org.project.SignalingIface. See g_dbus_proxy_new_sync() for more details. 1161s # * 1161s # * The calling thread is blocked until a reply is received. 1161s # * 1161s # * See org_project_signaling_iface_proxy_new() for the asynchronous version of this constructor. 1161s # * 1161s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 1161s # */ 1161s # OrgProjectSignalingIface * 1161s # org_project_signaling_iface_proxy_new_sync ( 1161s # GDBusConnection *connection, 1161s # GDBusProxyFlags flags, 1161s # const gchar *name, 1161s # const gchar *object_path, 1161s # GCancellable *cancellable, 1161s # GError **error) 1161s # { 1161s # GInitable *ret; 1161s # 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); 1161s # if (ret != NULL) 1161s # return ORG_PROJECT_SIGNALING_IFACE (ret); 1161s # else 1161s # return NULL; 1161s # } 1161s # 1161s # 1161s # /** 1161s # * org_project_signaling_iface_proxy_new_for_bus: 1161s # * @bus_type: A #GBusType. 1161s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1161s # * @name: A bus name (well-known or unique). 1161s # * @object_path: An object path. 1161s # * @cancellable: (nullable): A #GCancellable or %NULL. 1161s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1161s # * @user_data: User data to pass to @callback. 1161s # * 1161s # * Like org_project_signaling_iface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 1161s # * 1161s # * 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()). 1161s # * You can then call org_project_signaling_iface_proxy_new_for_bus_finish() to get the result of the operation. 1161s # * 1161s # * See org_project_signaling_iface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 1161s # */ 1161s # void 1161s # org_project_signaling_iface_proxy_new_for_bus ( 1161s # GBusType bus_type, 1161s # GDBusProxyFlags flags, 1161s # const gchar *name, 1161s # const gchar *object_path, 1161s # GCancellable *cancellable, 1161s # GAsyncReadyCallback callback, 1161s # gpointer user_data) 1161s # { 1161s # 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); 1161s # } 1161s # 1161s # /** 1161s # * org_project_signaling_iface_proxy_new_for_bus_finish: 1161s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_signaling_iface_proxy_new_for_bus(). 1161s # * @error: Return location for error or %NULL 1161s # * 1161s # * Finishes an operation started with org_project_signaling_iface_proxy_new_for_bus(). 1161s # * 1161s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 1161s # */ 1161s # OrgProjectSignalingIface * 1161s # org_project_signaling_iface_proxy_new_for_bus_finish ( 1161s # GAsyncResult *res, 1161s # GError **error) 1161s # { 1161s # GObject *ret; 1161s # GObject *source_object; 1161s # source_object = g_async_result_get_source_object (res); 1161s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1161s # g_object_unref (source_object); 1161s # if (ret != NULL) 1161s # return ORG_PROJECT_SIGNALING_IFACE (ret); 1161s # else 1161s # return NULL; 1161s # } 1161s # 1161s # /** 1161s # * org_project_signaling_iface_proxy_new_for_bus_sync: 1161s # * @bus_type: A #GBusType. 1161s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1161s # * @name: A bus name (well-known or unique). 1161s # * @object_path: An object path. 1161s # * @cancellable: (nullable): A #GCancellable or %NULL. 1161s # * @error: Return location for error or %NULL 1161s # * 1161s # * Like org_project_signaling_iface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 1161s # * 1161s # * The calling thread is blocked until a reply is received. 1161s # * 1161s # * See org_project_signaling_iface_proxy_new_for_bus() for the asynchronous version of this constructor. 1161s # * 1161s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 1161s # */ 1161s # OrgProjectSignalingIface * 1161s # org_project_signaling_iface_proxy_new_for_bus_sync ( 1161s # GBusType bus_type, 1161s # GDBusProxyFlags flags, 1161s # const gchar *name, 1161s # const gchar *object_path, 1161s # GCancellable *cancellable, 1161s # GError **error) 1161s # { 1161s # GInitable *ret; 1161s # 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); 1161s # if (ret != NULL) 1161s # return ORG_PROJECT_SIGNALING_IFACE (ret); 1161s # else 1161s # return NULL; 1161s # } 1161s # 1161s # 1161s # /* ------------------------------------------------------------------------ */ 1161s # 1161s # /** 1161s # * OrgProjectSignalingIfaceSkeleton: 1161s # * 1161s # * The #OrgProjectSignalingIfaceSkeleton structure contains only private data and should only be accessed using the provided API. 1161s # */ 1161s # 1161s # /** 1161s # * OrgProjectSignalingIfaceSkeletonClass: 1161s # * @parent_class: The parent class. 1161s # * 1161s # * Class structure for #OrgProjectSignalingIfaceSkeleton. 1161s # */ 1161s # 1161s # struct _OrgProjectSignalingIfaceSkeletonPrivate 1161s # { 1161s # GValue *properties; 1161s # GList *changed_properties; 1161s # GSource *changed_properties_idle_source; 1161s # GMainContext *context; 1161s # GMutex lock; 1161s # }; 1161s # 1161s # static void 1161s # _org_project_signaling_iface_skeleton_handle_method_call ( 1161s # GDBusConnection *connection G_GNUC_UNUSED, 1161s # const gchar *sender G_GNUC_UNUSED, 1161s # const gchar *object_path G_GNUC_UNUSED, 1161s # const gchar *interface_name, 1161s # const gchar *method_name, 1161s # GVariant *parameters, 1161s # GDBusMethodInvocation *invocation, 1161s # gpointer user_data) 1161s # { 1161s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 1161s # _ExtendedGDBusMethodInfo *info; 1161s # GVariantIter iter; 1161s # GVariant *child; 1161s # GValue *paramv; 1161s # gsize num_params; 1161s # guint num_extra; 1161s # gsize n; 1161s # guint signal_id; 1161s # GValue return_value = G_VALUE_INIT; 1161s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 1161s # g_assert (info != NULL); 1161s # num_params = g_variant_n_children (parameters); 1161s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 1161s # n = 0; 1161s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_SIGNALING_IFACE); 1161s # g_value_set_object (¶mv[n++], skeleton); 1161s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 1161s # g_value_set_object (¶mv[n++], invocation); 1161s # if (info->pass_fdlist) 1161s # { 1161s # #ifdef G_OS_UNIX 1161s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 1161s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 1161s # #else 1161s # g_assert_not_reached (); 1161s # #endif 1161s # } 1161s # g_variant_iter_init (&iter, parameters); 1161s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1161s # { 1161s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 1161s # if (arg_info->use_gvariant) 1161s # { 1161s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1161s # g_value_set_variant (¶mv[n], child); 1161s # n++; 1161s # } 1161s # else 1161s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1161s # g_variant_unref (child); 1161s # } 1161s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_SIGNALING_IFACE); 1161s # g_value_init (&return_value, G_TYPE_BOOLEAN); 1161s # g_signal_emitv (paramv, signal_id, 0, &return_value); 1161s # if (!g_value_get_boolean (&return_value)) 1161s # 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); 1161s # g_value_unset (&return_value); 1161s # for (n = 0; n < num_params + num_extra; n++) 1161s # g_value_unset (¶mv[n]); 1161s # g_free (paramv); 1161s # } 1161s # 1161s # static GVariant * 1161s # _org_project_signaling_iface_skeleton_handle_get_property ( 1161s # GDBusConnection *connection G_GNUC_UNUSED, 1161s # const gchar *sender G_GNUC_UNUSED, 1161s # const gchar *object_path G_GNUC_UNUSED, 1161s # const gchar *interface_name G_GNUC_UNUSED, 1161s # const gchar *property_name, 1161s # GError **error, 1161s # gpointer user_data) 1161s # { 1161s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 1161s # GValue value = G_VALUE_INIT; 1161s # GParamSpec *pspec; 1161s # _ExtendedGDBusPropertyInfo *info; 1161s # GVariant *ret; 1161s # ret = NULL; 1161s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, property_name); 1161s # g_assert (info != NULL); 1161s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1161s # if (pspec == NULL) 1161s # { 1161s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1161s # } 1161s # else 1161s # { 1161s # g_value_init (&value, pspec->value_type); 1161s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1161s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 1161s # g_value_unset (&value); 1161s # } 1161s # return ret; 1161s # } 1161s # 1161s # static gboolean 1161s # _org_project_signaling_iface_skeleton_handle_set_property ( 1161s # GDBusConnection *connection G_GNUC_UNUSED, 1161s # const gchar *sender G_GNUC_UNUSED, 1161s # const gchar *object_path G_GNUC_UNUSED, 1161s # const gchar *interface_name G_GNUC_UNUSED, 1161s # const gchar *property_name, 1161s # GVariant *variant, 1161s # GError **error, 1161s # gpointer user_data) 1161s # { 1161s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 1161s # GValue value = G_VALUE_INIT; 1161s # GParamSpec *pspec; 1161s # _ExtendedGDBusPropertyInfo *info; 1161s # gboolean ret; 1161s # ret = FALSE; 1161s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, property_name); 1161s # g_assert (info != NULL); 1161s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1161s # if (pspec == NULL) 1161s # { 1161s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1161s # } 1161s # else 1161s # { 1161s # if (info->use_gvariant) 1161s # g_value_set_variant (&value, variant); 1161s # else 1161s # g_dbus_gvariant_to_gvalue (variant, &value); 1161s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1161s # g_value_unset (&value); 1161s # ret = TRUE; 1161s # } 1161s # return ret; 1161s # } 1161s # 1161s # static const GDBusInterfaceVTable _org_project_signaling_iface_skeleton_vtable = 1161s # { 1161s # _org_project_signaling_iface_skeleton_handle_method_call, 1161s # _org_project_signaling_iface_skeleton_handle_get_property, 1161s # _org_project_signaling_iface_skeleton_handle_set_property, 1161s # {NULL} 1161s # }; 1161s # 1161s # static GDBusInterfaceInfo * 1161s # org_project_signaling_iface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1161s # { 1161s # return org_project_signaling_iface_interface_info (); 1161s # } 1161s # 1161s # static GDBusInterfaceVTable * 1161s # org_project_signaling_iface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1161s # { 1161s # return (GDBusInterfaceVTable *) &_org_project_signaling_iface_skeleton_vtable; 1161s # } 1161s # 1161s # static GVariant * 1161s # org_project_signaling_iface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 1161s # { 1161s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (_skeleton); 1161s # 1161s # GVariantBuilder builder; 1161s # guint n; 1161s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 1161s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 1161s # #else 1161s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 1161s # #endif 1161s # if (_org_project_signaling_iface_interface_info.parent_struct.properties == NULL) 1161s # goto out; 1161s # for (n = 0; _org_project_signaling_iface_interface_info.parent_struct.properties[n] != NULL; n++) 1161s # { 1161s # GDBusPropertyInfo *info = _org_project_signaling_iface_interface_info.parent_struct.properties[n]; 1161s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 1161s # { 1161s # GVariant *value; 1161s # 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); 1161s # if (value != NULL) 1161s # { 1161s # g_variant_take_ref (value); 1161s # g_variant_builder_add (&builder, "{sv}", info->name, value); 1161s # g_variant_unref (value); 1161s # } 1161s # } 1161s # } 1161s # out: 1161s # return g_variant_builder_end (&builder); 1161s # } 1161s # 1161s # static void 1161s # org_project_signaling_iface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 1161s # { 1161s # } 1161s # 1161s # static void 1161s # _org_project_signaling_iface_on_signal_simple_signal ( 1161s # OrgProjectSignalingIface *object) 1161s # { 1161s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 1161s # 1161s # GList *connections, *l; 1161s # GVariant *signal_variant; 1161s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 1161s # 1161s # signal_variant = g_variant_ref_sink (g_variant_new ("()")); 1161s # for (l = connections; l != NULL; l = l->next) 1161s # { 1161s # GDBusConnection *connection = l->data; 1161s # g_dbus_connection_emit_signal (connection, 1161s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SimpleSignal", 1161s # signal_variant, NULL); 1161s # } 1161s # g_variant_unref (signal_variant); 1161s # g_list_free_full (connections, g_object_unref); 1161s # } 1161s # 1161s # static void 1161s # _org_project_signaling_iface_on_signal_single_arg_signal_ay ( 1161s # OrgProjectSignalingIface *object, 1161s # const gchar *arg_arg_ay) 1161s # { 1161s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 1161s # 1161s # GList *connections, *l; 1161s # GVariant *signal_variant; 1161s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 1161s # 1161s # signal_variant = g_variant_ref_sink (g_variant_new ("(^ay)", 1161s # arg_arg_ay)); 1161s # for (l = connections; l != NULL; l = l->next) 1161s # { 1161s # GDBusConnection *connection = l->data; 1161s # g_dbus_connection_emit_signal (connection, 1161s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SingleArgSignalAy", 1161s # signal_variant, NULL); 1161s # } 1161s # g_variant_unref (signal_variant); 1161s # g_list_free_full (connections, g_object_unref); 1161s # } 1161s # 1161s # static void org_project_signaling_iface_skeleton_iface_init (OrgProjectSignalingIfaceIface *iface); 1161s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1161s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceSkeleton, org_project_signaling_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1161s # G_ADD_PRIVATE (OrgProjectSignalingIfaceSkeleton) 1161s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_skeleton_iface_init)) 1161s # 1161s # #else 1161s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceSkeleton, org_project_signaling_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1161s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_skeleton_iface_init)) 1161s # 1161s # #endif 1161s # static void 1161s # org_project_signaling_iface_skeleton_finalize (GObject *object) 1161s # { 1161s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 1161s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 1161s # if (skeleton->priv->changed_properties_idle_source != NULL) 1161s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 1161s # g_main_context_unref (skeleton->priv->context); 1161s # g_mutex_clear (&skeleton->priv->lock); 1161s # G_OBJECT_CLASS (org_project_signaling_iface_skeleton_parent_class)->finalize (object); 1161s # } 1161s # 1161s # static void 1161s # org_project_signaling_iface_skeleton_init (OrgProjectSignalingIfaceSkeleton *skeleton) 1161s # { 1161s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1161s # skeleton->priv = org_project_signaling_iface_skeleton_get_instance_private (skeleton); 1161s # #else 1161s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_SIGNALING_IFACE_SKELETON, OrgProjectSignalingIfaceSkeletonPrivate); 1161s # #endif 1161s # 1161s # g_mutex_init (&skeleton->priv->lock); 1161s # skeleton->priv->context = g_main_context_ref_thread_default (); 1161s # } 1161s # 1161s # static void 1161s # org_project_signaling_iface_skeleton_class_init (OrgProjectSignalingIfaceSkeletonClass *klass) 1161s # { 1161s # GObjectClass *gobject_class; 1161s # GDBusInterfaceSkeletonClass *skeleton_class; 1161s # 1161s # gobject_class = G_OBJECT_CLASS (klass); 1161s # gobject_class->finalize = org_project_signaling_iface_skeleton_finalize; 1161s # 1161s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 1161s # skeleton_class->get_info = org_project_signaling_iface_skeleton_dbus_interface_get_info; 1161s # skeleton_class->get_properties = org_project_signaling_iface_skeleton_dbus_interface_get_properties; 1161s # skeleton_class->flush = org_project_signaling_iface_skeleton_dbus_interface_flush; 1161s # skeleton_class->get_vtable = org_project_signaling_iface_skeleton_dbus_interface_get_vtable; 1161s # 1161s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1161s # g_type_class_add_private (klass, sizeof (OrgProjectSignalingIfaceSkeletonPrivate)); 1161s # #endif 1161s # } 1161s # 1161s # static void 1161s # org_project_signaling_iface_skeleton_iface_init (OrgProjectSignalingIfaceIface *iface) 1161s # { 1161s # iface->simple_signal = _org_project_signaling_iface_on_signal_simple_signal; 1161s # iface->single_arg_signal_ay = _org_project_signaling_iface_on_signal_single_arg_signal_ay; 1161s # } 1161s # 1161s # /** 1161s # * org_project_signaling_iface_skeleton_new: 1161s # * 1161s # * Creates a skeleton object for the D-Bus interface org.project.SignalingIface. 1161s # * 1161s # * Returns: (transfer full) (type OrgProjectSignalingIfaceSkeleton): The skeleton object. 1161s # */ 1161s # OrgProjectSignalingIface * 1161s # org_project_signaling_iface_skeleton_new (void) 1161s # { 1161s # return ORG_PROJECT_SIGNALING_IFACE (g_object_new (TYPE_ORG_PROJECT_SIGNALING_IFACE_SKELETON, NULL)); 1161s # } 1161s # Error: 1161s # 1161s # /tmp/tmpjwrvmpd2/tmp0di8lq4h.xml: 1161s # 1161s # 1161s # 1161s # 1161s # 1161s # 1161s # 1161s # 1161s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpjwrvmpd2/tmp0di8lq4h.xml', '--output', '-', '--body'] 1161s # Return code: 0 1161s # Output: 1161s # /* 1161s # * This file is generated by gdbus-codegen, do not modify it. 1161s # * 1161s # * The license of this code is the same as for the D-Bus interface description 1161s # * it was derived from. Note that it links to GLib, so must comply with the 1161s # * LGPL linking clauses. 1161s # */ 1161s # 1161s # #ifdef HAVE_CONFIG_H 1161s # # include "config.h" 1161s # #endif 1161s # 1161s # #include 1161s # #ifdef G_OS_UNIX 1161s # # include 1161s # #endif 1161s # 1161s # #ifdef G_ENABLE_DEBUG 1161s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 1161s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 1161s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 1161s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 1161s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 1161s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 1161s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 1161s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 1161s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 1161s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 1161s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 1161s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 1161s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 1161s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 1161s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 1161s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 1161s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 1161s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 1161s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 1161s # #else /* !G_ENABLE_DEBUG */ 1161s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 1161s # * Do not access GValues directly in your code. Instead, use the 1161s # * g_value_get_*() functions 1161s # */ 1161s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 1161s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 1161s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 1161s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 1161s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 1161s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 1161s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 1161s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 1161s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 1161s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 1161s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 1161s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 1161s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 1161s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 1161s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 1161s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 1161s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 1161s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 1161s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 1161s # #endif /* !G_ENABLE_DEBUG */ 1161s # 1161s # typedef struct 1161s # { 1161s # GDBusArgInfo parent_struct; 1161s # gboolean use_gvariant; 1161s # } _ExtendedGDBusArgInfo; 1161s # 1161s # typedef struct 1161s # { 1161s # GDBusMethodInfo parent_struct; 1161s # const gchar *signal_name; 1161s # gboolean pass_fdlist; 1161s # } _ExtendedGDBusMethodInfo; 1161s # 1161s # typedef struct 1161s # { 1161s # GDBusSignalInfo parent_struct; 1161s # const gchar *signal_name; 1161s # } _ExtendedGDBusSignalInfo; 1161s # 1161s # typedef struct 1161s # { 1161s # GDBusPropertyInfo parent_struct; 1161s # const gchar *hyphen_name; 1161s # guint use_gvariant : 1; 1161s # guint emits_changed_signal : 1; 1161s # } _ExtendedGDBusPropertyInfo; 1161s # 1161s # typedef struct 1161s # { 1161s # GDBusInterfaceInfo parent_struct; 1161s # const gchar *hyphen_name; 1161s # } _ExtendedGDBusInterfaceInfo; 1161s # 1161s # typedef struct 1161s # { 1161s # const _ExtendedGDBusPropertyInfo *info; 1161s # guint prop_id; 1161s # GValue orig_value; /* the value before the change */ 1161s # } ChangedProperty; 1161s # 1161s # static void 1161s # _changed_property_free (ChangedProperty *data) 1161s # { 1161s # g_value_unset (&data->orig_value); 1161s # g_free (data); 1161s # } 1161s # 1161s # static gboolean 1161s # _g_strv_equal0 (gchar **a, gchar **b) 1161s # { 1161s # gboolean ret = FALSE; 1161s # guint n; 1161s # if (a == NULL && b == NULL) 1161s # { 1161s # ret = TRUE; 1161s # goto out; 1161s # } 1161s # if (a == NULL || b == NULL) 1161s # goto out; 1161s # if (g_strv_length (a) != g_strv_length (b)) 1161s # goto out; 1161s # for (n = 0; a[n] != NULL; n++) 1161s # if (g_strcmp0 (a[n], b[n]) != 0) 1161s # goto out; 1161s # ret = TRUE; 1161s # out: 1161s # return ret; 1161s # } 1161s # 1161s # static gboolean 1161s # _g_variant_equal0 (GVariant *a, GVariant *b) 1161s # { 1161s # gboolean ret = FALSE; 1161s # if (a == NULL && b == NULL) 1161s # { 1161s # ret = TRUE; 1161s # goto out; 1161s # } 1161s # if (a == NULL || b == NULL) 1161s # goto out; 1161s # ret = g_variant_equal (a, b); 1161s # out: 1161s # return ret; 1161s # } 1161s # 1161s # G_GNUC_UNUSED static gboolean 1161s # _g_value_equal (const GValue *a, const GValue *b) 1161s # { 1161s # gboolean ret = FALSE; 1161s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 1161s # switch (G_VALUE_TYPE (a)) 1161s # { 1161s # case G_TYPE_BOOLEAN: 1161s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 1161s # break; 1161s # case G_TYPE_UCHAR: 1161s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 1161s # break; 1161s # case G_TYPE_INT: 1161s # ret = (g_value_get_int (a) == g_value_get_int (b)); 1161s # break; 1161s # case G_TYPE_UINT: 1161s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 1161s # break; 1161s # case G_TYPE_INT64: 1161s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 1161s # break; 1161s # case G_TYPE_UINT64: 1161s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 1161s # break; 1161s # case G_TYPE_DOUBLE: 1161s # { 1161s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 1161s # gdouble da = g_value_get_double (a); 1161s # gdouble db = g_value_get_double (b); 1161s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 1161s # } 1161s # break; 1161s # case G_TYPE_STRING: 1161s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 1161s # break; 1161s # case G_TYPE_VARIANT: 1161s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 1161s # break; 1161s # default: 1161s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 1161s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 1161s # else 1161s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 1161s # break; 1161s # } 1161s # return ret; 1161s # } 1161s # 1161s # /* ------------------------------------------------------------------------ 1161s # * Code for interface org.project.SignalingIface 1161s # * ------------------------------------------------------------------------ 1161s # */ 1161s # 1161s # /** 1161s # * SECTION:OrgProjectSignalingIface 1161s # * @title: OrgProjectSignalingIface 1161s # * @short_description: Generated C code for the org.project.SignalingIface D-Bus interface 1161s # * 1161s # * This section contains code for working with the org.project.SignalingIface D-Bus interface in C. 1161s # */ 1161s # 1161s # enum 1161s # { 1161s # _ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL, 1161s # _ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_AS, 1161s # }; 1161s # 1161s # static unsigned _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[2] = { 0 }; 1161s # 1161s # /* ---- Introspection data for org.project.SignalingIface ---- */ 1161s # 1161s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_simple_signal = 1161s # { 1161s # { 1161s # -1, 1161s # (gchar *) "SimpleSignal", 1161s # NULL, 1161s # NULL 1161s # }, 1161s # "simple-signal" 1161s # }; 1161s # 1161s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_single_arg_signal_as_ARG_arg_as = 1161s # { 1161s # { 1161s # -1, 1161s # (gchar *) "arg_as", 1161s # (gchar *) "as", 1161s # NULL 1161s # }, 1161s # FALSE 1161s # }; 1161s # 1161s # static const GDBusArgInfo * const _org_project_signaling_iface_signal_info_single_arg_signal_as_ARG_pointers[] = 1161s # { 1161s # &_org_project_signaling_iface_signal_info_single_arg_signal_as_ARG_arg_as.parent_struct, 1161s # NULL 1161s # }; 1161s # 1161s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_single_arg_signal_as = 1161s # { 1161s # { 1161s # -1, 1161s # (gchar *) "SingleArgSignalAs", 1161s # (GDBusArgInfo **) &_org_project_signaling_iface_signal_info_single_arg_signal_as_ARG_pointers, 1161s # NULL 1161s # }, 1161s # "single-arg-signal-as" 1161s # }; 1161s # 1161s # static const GDBusSignalInfo * const _org_project_signaling_iface_signal_info_pointers[] = 1161s # { 1161s # &_org_project_signaling_iface_signal_info_simple_signal.parent_struct, 1161s # &_org_project_signaling_iface_signal_info_single_arg_signal_as.parent_struct, 1161s # NULL 1161s # }; 1161s # 1161s # static const _ExtendedGDBusInterfaceInfo _org_project_signaling_iface_interface_info = 1161s # { 1161s # { 1161s # -1, 1161s # (gchar *) "org.project.SignalingIface", 1161s # NULL, 1161s # (GDBusSignalInfo **) &_org_project_signaling_iface_signal_info_pointers, 1161s # NULL, 1161s # NULL 1161s # }, 1161s # "org-project-signaling-iface", 1161s # }; 1161s # 1161s # 1161s # /** 1161s # * org_project_signaling_iface_interface_info: 1161s # * 1161s # * Gets a machine-readable description of the org.project.SignalingIface D-Bus interface. 1161s # * 1161s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 1161s # */ 1161s # GDBusInterfaceInfo * 1161s # org_project_signaling_iface_interface_info (void) 1161s # { 1161s # return (GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct; 1161s # } 1161s # 1161s # /** 1161s # * org_project_signaling_iface_override_properties: 1161s # * @klass: The class structure for a #GObject derived class. 1161s # * @property_id_begin: The property id to assign to the first overridden property. 1161s # * 1161s # * Overrides all #GObject properties in the #OrgProjectSignalingIface interface for a concrete class. 1161s # * The properties are overridden in the order they are defined. 1161s # * 1161s # * Returns: The last property id. 1161s # */ 1161s # guint 1161s # org_project_signaling_iface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 1161s # { 1161s # return property_id_begin - 1; 1161s # } 1161s # 1161s # 1161s # inline static void 1161s # org_project_signaling_iface_signal_marshal_simple_signal ( 1161s # GClosure *closure, 1161s # GValue *return_value, 1161s # unsigned int n_param_values, 1161s # const GValue *param_values, 1161s # void *invocation_hint, 1161s # void *marshal_data) 1161s # { 1161s # g_cclosure_marshal_VOID__VOID (closure, 1161s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1161s # } 1161s # 1161s # inline static void 1161s # org_project_signaling_iface_signal_marshal_single_arg_signal_as ( 1161s # GClosure *closure, 1161s # GValue *return_value, 1161s # unsigned int n_param_values, 1161s # const GValue *param_values, 1161s # void *invocation_hint, 1161s # void *marshal_data) 1161s # { 1161s # g_cclosure_marshal_VOID__BOXED (closure, 1161s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1161s # } 1161s # 1161s # 1161s # /** 1161s # * OrgProjectSignalingIface: 1161s # * 1161s # * Abstract interface type for the D-Bus interface org.project.SignalingIface. 1161s # */ 1161s # 1161s # /** 1161s # * OrgProjectSignalingIfaceIface: 1161s # * @parent_iface: The parent interface. 1161s # * @simple_signal: Handler for the #OrgProjectSignalingIface::simple-signal signal. 1161s # * @single_arg_signal_as: Handler for the #OrgProjectSignalingIface::single-arg-signal-as signal. 1161s # * 1161s # * Virtual table for the D-Bus interface org.project.SignalingIface. 1161s # */ 1161s # 1161s # typedef OrgProjectSignalingIfaceIface OrgProjectSignalingIfaceInterface; 1161s # G_DEFINE_INTERFACE (OrgProjectSignalingIface, org_project_signaling_iface, G_TYPE_OBJECT) 1161s # 1161s # static void 1161s # org_project_signaling_iface_default_init (OrgProjectSignalingIfaceIface *iface) 1161s # { 1161s # /* GObject signals for received D-Bus signals: */ 1161s # /** 1161s # * OrgProjectSignalingIface::simple-signal: 1161s # * @object: A #OrgProjectSignalingIface. 1161s # * 1161s # * On the client-side, this signal is emitted whenever the D-Bus signal "SimpleSignal" is received. 1161s # * 1161s # * 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. 1161s # */ 1161s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL] = 1161s # g_signal_new ("simple-signal", 1161s # G_TYPE_FROM_INTERFACE (iface), 1161s # G_SIGNAL_RUN_LAST, 1161s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, simple_signal), 1161s # NULL, 1161s # NULL, 1161s # org_project_signaling_iface_signal_marshal_simple_signal, 1161s # G_TYPE_NONE, 1161s # 0); 1161s # 1161s # /** 1161s # * OrgProjectSignalingIface::single-arg-signal-as: 1161s # * @object: A #OrgProjectSignalingIface. 1161s # * @arg_arg_as: Argument. 1161s # * 1161s # * On the client-side, this signal is emitted whenever the D-Bus signal "SingleArgSignalAs" is received. 1161s # * 1161s # * 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. 1161s # */ 1161s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_AS] = 1161s # g_signal_new ("single-arg-signal-as", 1161s # G_TYPE_FROM_INTERFACE (iface), 1161s # G_SIGNAL_RUN_LAST, 1161s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, single_arg_signal_as), 1161s # NULL, 1161s # NULL, 1161s # org_project_signaling_iface_signal_marshal_single_arg_signal_as, 1161s # G_TYPE_NONE, 1161s # 1, G_TYPE_STRV); 1161s # 1161s # } 1161s # 1161s # /** 1161s # * org_project_signaling_iface_emit_simple_signal: 1161s # * @object: A #OrgProjectSignalingIface. 1161s # * 1161s # * Emits the "SimpleSignal" D-Bus signal. 1161s # */ 1161s # void 1161s # org_project_signaling_iface_emit_simple_signal ( 1161s # OrgProjectSignalingIface *object) 1161s # { 1161s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL], 0); 1161s # } 1161s # 1161s # /** 1161s # * org_project_signaling_iface_emit_single_arg_signal_as: 1161s # * @object: A #OrgProjectSignalingIface. 1161s # * @arg_arg_as: Argument to pass with the signal. 1161s # * 1161s # * Emits the "SingleArgSignalAs" D-Bus signal. 1161s # */ 1161s # void 1161s # org_project_signaling_iface_emit_single_arg_signal_as ( 1161s # OrgProjectSignalingIface *object, 1161s # const gchar *const *arg_arg_as) 1161s # { 1161s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_AS], 0, arg_arg_as); 1161s # } 1161s # 1161s # /* ------------------------------------------------------------------------ */ 1161s # 1161s # /** 1161s # * OrgProjectSignalingIfaceProxy: 1161s # * 1161s # * The #OrgProjectSignalingIfaceProxy structure contains only private data and should only be accessed using the provided API. 1161s # */ 1161s # 1161s # /** 1161s # * OrgProjectSignalingIfaceProxyClass: 1161s # * @parent_class: The parent class. 1161s # * 1161s # * Class structure for #OrgProjectSignalingIfaceProxy. 1161s # */ 1161s # 1161s # struct _OrgProjectSignalingIfaceProxyPrivate 1161s # { 1161s # GData *qdata; 1161s # }; 1161s # 1161s # static void org_project_signaling_iface_proxy_iface_init (OrgProjectSignalingIfaceIface *iface); 1161s # 1161s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1161s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceProxy, org_project_signaling_iface_proxy, G_TYPE_DBUS_PROXY, 1161s # G_ADD_PRIVATE (OrgProjectSignalingIfaceProxy) 1161s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_proxy_iface_init)) 1161s # 1161s # #else 1161s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceProxy, org_project_signaling_iface_proxy, G_TYPE_DBUS_PROXY, 1161s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_proxy_iface_init)) 1161s # 1161s # #endif 1161s # static void 1161s # org_project_signaling_iface_proxy_finalize (GObject *object) 1161s # { 1161s # OrgProjectSignalingIfaceProxy *proxy = ORG_PROJECT_SIGNALING_IFACE_PROXY (object); 1161s # g_datalist_clear (&proxy->priv->qdata); 1161s # G_OBJECT_CLASS (org_project_signaling_iface_proxy_parent_class)->finalize (object); 1161s # } 1161s # 1161s # static void 1161s # org_project_signaling_iface_proxy_get_property (GObject *object G_GNUC_UNUSED, 1161s # guint prop_id G_GNUC_UNUSED, 1161s # GValue *value G_GNUC_UNUSED, 1161s # GParamSpec *pspec G_GNUC_UNUSED) 1161s # { 1161s # } 1161s # 1161s # static void 1161s # org_project_signaling_iface_proxy_set_property (GObject *object G_GNUC_UNUSED, 1161s # guint prop_id G_GNUC_UNUSED, 1161s # const GValue *value G_GNUC_UNUSED, 1161s # GParamSpec *pspec G_GNUC_UNUSED) 1161s # { 1161s # } 1161s # 1161s # static void 1161s # org_project_signaling_iface_proxy_g_signal (GDBusProxy *proxy, 1161s # const gchar *sender_name G_GNUC_UNUSED, 1161s # const gchar *signal_name, 1161s # GVariant *parameters) 1161s # { 1161s # _ExtendedGDBusSignalInfo *info; 1161s # GVariantIter iter; 1161s # GVariant *child; 1161s # GValue *paramv; 1161s # gsize num_params; 1161s # gsize n; 1161s # guint signal_id; 1161s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, signal_name); 1161s # if (info == NULL) 1161s # return; 1161s # num_params = g_variant_n_children (parameters); 1161s # paramv = g_new0 (GValue, num_params + 1); 1161s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_SIGNALING_IFACE); 1161s # g_value_set_object (¶mv[0], proxy); 1161s # g_variant_iter_init (&iter, parameters); 1161s # n = 1; 1161s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1161s # { 1161s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 1161s # if (arg_info->use_gvariant) 1161s # { 1161s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1161s # g_value_set_variant (¶mv[n], child); 1161s # n++; 1161s # } 1161s # else 1161s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1161s # g_variant_unref (child); 1161s # } 1161s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_SIGNALING_IFACE); 1161s # g_signal_emitv (paramv, signal_id, 0, NULL); 1161s # for (n = 0; n < num_params + 1; n++) 1161s # g_value_unset (¶mv[n]); 1161s # g_free (paramv); 1161s # } 1161s # 1161s # static void 1161s # org_project_signaling_iface_proxy_g_properties_changed (GDBusProxy *_proxy, 1161s # GVariant *changed_properties, 1161s # const gchar *const *invalidated_properties) 1161s # { 1161s # OrgProjectSignalingIfaceProxy *proxy = ORG_PROJECT_SIGNALING_IFACE_PROXY (_proxy); 1161s # guint n; 1161s # const gchar *key; 1161s # GVariantIter *iter; 1161s # _ExtendedGDBusPropertyInfo *info; 1161s # g_variant_get (changed_properties, "a{sv}", &iter); 1161s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 1161s # { 1161s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, key); 1161s # g_datalist_remove_data (&proxy->priv->qdata, key); 1161s # if (info != NULL) 1161s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1161s # } 1161s # g_variant_iter_free (iter); 1161s # for (n = 0; invalidated_properties[n] != NULL; n++) 1161s # { 1161s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, invalidated_properties[n]); 1161s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 1161s # if (info != NULL) 1161s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1161s # } 1161s # } 1161s # 1161s # static void 1161s # org_project_signaling_iface_proxy_init (OrgProjectSignalingIfaceProxy *proxy) 1161s # { 1161s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1161s # proxy->priv = org_project_signaling_iface_proxy_get_instance_private (proxy); 1161s # #else 1161s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_SIGNALING_IFACE_PROXY, OrgProjectSignalingIfaceProxyPrivate); 1161s # #endif 1161s # 1161s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_signaling_iface_interface_info ()); 1161s # } 1161s # 1161s # static void 1161s # org_project_signaling_iface_proxy_class_init (OrgProjectSignalingIfaceProxyClass *klass) 1161s # { 1161s # GObjectClass *gobject_class; 1161s # GDBusProxyClass *proxy_class; 1161s # 1161s # gobject_class = G_OBJECT_CLASS (klass); 1161s # gobject_class->finalize = org_project_signaling_iface_proxy_finalize; 1161s # gobject_class->get_property = org_project_signaling_iface_proxy_get_property; 1161s # gobject_class->set_property = org_project_signaling_iface_proxy_set_property; 1161s # 1161s # proxy_class = G_DBUS_PROXY_CLASS (klass); 1161s # proxy_class->g_signal = org_project_signaling_iface_proxy_g_signal; 1161s # proxy_class->g_properties_changed = org_project_signaling_iface_proxy_g_properties_changed; 1161s # 1161s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1161s # g_type_class_add_private (klass, sizeof (OrgProjectSignalingIfaceProxyPrivate)); 1161s # #endif 1161s # } 1161s # 1161s # static void 1161s # org_project_signaling_iface_proxy_iface_init (OrgProjectSignalingIfaceIface *iface G_GNUC_UNUSED) 1161s # { 1161s # } 1161s # 1161s # /** 1161s # * org_project_signaling_iface_proxy_new: 1161s # * @connection: A #GDBusConnection. 1161s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1161s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1161s # * @object_path: An object path. 1161s # * @cancellable: (nullable): A #GCancellable or %NULL. 1161s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1161s # * @user_data: User data to pass to @callback. 1161s # * 1161s # * Asynchronously creates a proxy for the D-Bus interface org.project.SignalingIface. See g_dbus_proxy_new() for more details. 1161s # * 1161s # * 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()). 1161s # * You can then call org_project_signaling_iface_proxy_new_finish() to get the result of the operation. 1161s # * 1161s # * See org_project_signaling_iface_proxy_new_sync() for the synchronous, blocking version of this constructor. 1161s # */ 1161s # void 1161s # org_project_signaling_iface_proxy_new ( 1161s # GDBusConnection *connection, 1161s # GDBusProxyFlags flags, 1161s # const gchar *name, 1161s # const gchar *object_path, 1161s # GCancellable *cancellable, 1161s # GAsyncReadyCallback callback, 1161s # gpointer user_data) 1161s # { 1161s # 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); 1161s # } 1161s # 1161s # /** 1161s # * org_project_signaling_iface_proxy_new_finish: 1161s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_signaling_iface_proxy_new(). 1161s # * @error: Return location for error or %NULL 1161s # * 1161s # * Finishes an operation started with org_project_signaling_iface_proxy_new(). 1161s # * 1161s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 1161s # */ 1161s # OrgProjectSignalingIface * 1161s # org_project_signaling_iface_proxy_new_finish ( 1161s # GAsyncResult *res, 1161s # GError **error) 1161s # { 1161s # GObject *ret; 1161s # GObject *source_object; 1161s # source_object = g_async_result_get_source_object (res); 1161s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1161s # g_object_unref (source_object); 1161s # if (ret != NULL) 1161s # return ORG_PROJECT_SIGNALING_IFACE (ret); 1161s # else 1161s # return NULL; 1161s # } 1161s # 1161s # /** 1161s # * org_project_signaling_iface_proxy_new_sync: 1161s # * @connection: A #GDBusConnection. 1161s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1161s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1161s # * @object_path: An object path. 1161s # * @cancellable: (nullable): A #GCancellable or %NULL. 1161s # * @error: Return location for error or %NULL 1161s # * 1161s # * Synchronously creates a proxy for the D-Bus interface org.project.SignalingIface. See g_dbus_proxy_new_sync() for more details. 1161s # * 1161s # * The calling thread is blocked until a reply is received. 1161s # * 1161s # * See org_project_signaling_iface_proxy_new() for the asynchronous version of this constructor. 1161s # * 1161s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 1161s # */ 1161s # OrgProjectSignalingIface * 1161s # org_project_signaling_iface_proxy_new_sync ( 1161s # GDBusConnection *connection, 1161s # GDBusProxyFlags flags, 1161s # const gchar *name, 1161s # const gchar *object_path, 1161s # GCancellable *cancellable, 1161s # GError **error) 1161s # { 1161s # GInitable *ret; 1161s # 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); 1161s # if (ret != NULL) 1161s # return ORG_PROJECT_SIGNALING_IFACE (ret); 1161s # else 1161s # return NULL; 1161s # } 1161s # 1161s # 1161s # /** 1161s # * org_project_signaling_iface_proxy_new_for_bus: 1161s # * @bus_type: A #GBusType. 1161s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1161s # * @name: A bus name (well-known or unique). 1161s # * @object_path: An object path. 1161s # * @cancellable: (nullable): A #GCancellable or %NULL. 1161s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1161s # * @user_data: User data to pass to @callback. 1161s # * 1161s # * Like org_project_signaling_iface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 1161s # * 1161s # * 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()). 1161s # * You can then call org_project_signaling_iface_proxy_new_for_bus_finish() to get the result of the operation. 1161s # * 1161s # * See org_project_signaling_iface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 1161s # */ 1161s # void 1161s # org_project_signaling_iface_proxy_new_for_bus ( 1161s # GBusType bus_type, 1161s # GDBusProxyFlags flags, 1161s # const gchar *name, 1161s # const gchar *object_path, 1161s # GCancellable *cancellable, 1161s # GAsyncReadyCallback callback, 1161s # gpointer user_data) 1161s # { 1161s # 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); 1161s # } 1161s # 1161s # /** 1161s # * org_project_signaling_iface_proxy_new_for_bus_finish: 1161s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_signaling_iface_proxy_new_for_bus(). 1161s # * @error: Return location for error or %NULL 1161s # * 1161s # * Finishes an operation started with org_project_signaling_iface_proxy_new_for_bus(). 1161s # * 1161s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 1161s # */ 1161s # OrgProjectSignalingIface * 1161s # org_project_signaling_iface_proxy_new_for_bus_finish ( 1161s # GAsyncResult *res, 1161s # GError **error) 1161s # { 1161s # GObject *ret; 1161s # GObject *source_object; 1161s # source_object = g_async_result_get_source_object (res); 1161s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1161s # g_object_unref (source_object); 1161s # if (ret != NULL) 1161s # return ORG_PROJECT_SIGNALING_IFACE (ret); 1161s # else 1161s # return NULL; 1161s # } 1161s # 1161s # /** 1161s # * org_project_signaling_iface_proxy_new_for_bus_sync: 1161s # * @bus_type: A #GBusType. 1161s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1161s # * @name: A bus name (well-known or unique). 1161s # * @object_path: An object path. 1161s # * @cancellable: (nullable): A #GCancellable or %NULL. 1161s # * @error: Return location for error or %NULL 1161s # * 1161s # * Like org_project_signaling_iface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 1161s # * 1161s # * The calling thread is blocked until a reply is received. 1161s # * 1161s # * See org_project_signaling_iface_proxy_new_for_bus() for the asynchronous version of this constructor. 1161s # * 1161s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 1161s # */ 1161s # OrgProjectSignalingIface * 1161s # org_project_signaling_iface_proxy_new_for_bus_sync ( 1161s # GBusType bus_type, 1161s # GDBusProxyFlags flags, 1161s # const gchar *name, 1161s # const gchar *object_path, 1161s # GCancellable *cancellable, 1161s # GError **error) 1161s # { 1161s # GInitable *ret; 1161s # 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); 1161s # if (ret != NULL) 1161s # return ORG_PROJECT_SIGNALING_IFACE (ret); 1161s # else 1161s # return NULL; 1161s # } 1161s # 1161s # 1161s # /* ------------------------------------------------------------------------ */ 1161s # 1161s # /** 1161s # * OrgProjectSignalingIfaceSkeleton: 1161s # * 1161s # * The #OrgProjectSignalingIfaceSkeleton structure contains only private data and should only be accessed using the provided API. 1161s # */ 1161s # 1161s # /** 1161s # * OrgProjectSignalingIfaceSkeletonClass: 1161s # * @parent_class: The parent class. 1161s # * 1161s # * Class structure for #OrgProjectSignalingIfaceSkeleton. 1161s # */ 1161s # 1161s # struct _OrgProjectSignalingIfaceSkeletonPrivate 1161s # { 1161s # GValue *properties; 1161s # GList *changed_properties; 1161s # GSource *changed_properties_idle_source; 1161s # GMainContext *context; 1161s # GMutex lock; 1161s # }; 1161s # 1161s # static void 1161s # _org_project_signaling_iface_skeleton_handle_method_call ( 1161s # GDBusConnection *connection G_GNUC_UNUSED, 1161s # const gchar *sender G_GNUC_UNUSED, 1161s # const gchar *object_path G_GNUC_UNUSED, 1161s # const gchar *interface_name, 1161s # const gchar *method_name, 1161s # GVariant *parameters, 1161s # GDBusMethodInvocation *invocation, 1161s # gpointer user_data) 1161s # { 1161s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 1161s # _ExtendedGDBusMethodInfo *info; 1161s # GVariantIter iter; 1161s # GVariant *child; 1161s # GValue *paramv; 1161s # gsize num_params; 1161s # guint num_extra; 1161s # gsize n; 1161s # guint signal_id; 1161s # GValue return_value = G_VALUE_INIT; 1161s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 1161s # g_assert (info != NULL); 1161s # num_params = g_variant_n_children (parameters); 1161s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 1161s # n = 0; 1161s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_SIGNALING_IFACE); 1161s # g_value_set_object (¶mv[n++], skeleton); 1161s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 1161s # g_value_set_object (¶mv[n++], invocation); 1161s # if (info->pass_fdlist) 1161s # { 1161s # #ifdef G_OS_UNIX 1161s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 1161s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 1161s # #else 1161s # g_assert_not_reached (); 1161s # #endif 1161s # } 1161s # g_variant_iter_init (&iter, parameters); 1161s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1161s # { 1161s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 1161s # if (arg_info->use_gvariant) 1161s # { 1161s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1161s # g_value_set_variant (¶mv[n], child); 1161s # n++; 1161s # } 1161s # else 1161s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1161s # g_variant_unref (child); 1161s # } 1161s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_SIGNALING_IFACE); 1161s # g_value_init (&return_value, G_TYPE_BOOLEAN); 1161s # g_signal_emitv (paramv, signal_id, 0, &return_value); 1161s # if (!g_value_get_boolean (&return_value)) 1161s # 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); 1161s # g_value_unset (&return_value); 1161s # for (n = 0; n < num_params + num_extra; n++) 1161s # g_value_unset (¶mv[n]); 1161s # g_free (paramv); 1161s # } 1161s # 1161s # static GVariant * 1161s # _org_project_signaling_iface_skeleton_handle_get_property ( 1161s # GDBusConnection *connection G_GNUC_UNUSED, 1161s # const gchar *sender G_GNUC_UNUSED, 1161s # const gchar *object_path G_GNUC_UNUSED, 1161s # const gchar *interface_name G_GNUC_UNUSED, 1161s # const gchar *property_name, 1161s # GError **error, 1161s # gpointer user_data) 1161s # { 1161s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 1161s # GValue value = G_VALUE_INIT; 1161s # GParamSpec *pspec; 1161s # _ExtendedGDBusPropertyInfo *info; 1161s # GVariant *ret; 1161s # ret = NULL; 1161s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, property_name); 1161s # g_assert (info != NULL); 1161s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1161s # if (pspec == NULL) 1161s # { 1161s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1161s # } 1161s # else 1161s # { 1161s # g_value_init (&value, pspec->value_type); 1161s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1161s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 1161s # g_value_unset (&value); 1161s # } 1161s # return ret; 1161s # } 1161s # 1161s # static gboolean 1161s # _org_project_signaling_iface_skeleton_handle_set_property ( 1161s # GDBusConnection *connection G_GNUC_UNUSED, 1161s # const gchar *sender G_GNUC_UNUSED, 1161s # const gchar *object_path G_GNUC_UNUSED, 1161s # const gchar *interface_name G_GNUC_UNUSED, 1161s # const gchar *property_name, 1161s # GVariant *variant, 1161s # GError **error, 1161s # gpointer user_data) 1161s # { 1161s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 1161s # GValue value = G_VALUE_INIT; 1161s # GParamSpec *pspec; 1161s # _ExtendedGDBusPropertyInfo *info; 1161s # gboolean ret; 1161s # ret = FALSE; 1161s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, property_name); 1161s # g_assert (info != NULL); 1161s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1161s # if (pspec == NULL) 1161s # { 1161s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1161s # } 1161s # else 1161s # { 1161s # if (info->use_gvariant) 1161s # g_value_set_variant (&value, variant); 1161s # else 1161s # g_dbus_gvariant_to_gvalue (variant, &value); 1161s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1161s # g_value_unset (&value); 1161s # ret = TRUE; 1161s # } 1161s # return ret; 1161s # } 1161s # 1161s # static const GDBusInterfaceVTable _org_project_signaling_iface_skeleton_vtable = 1161s # { 1161s # _org_project_signaling_iface_skeleton_handle_method_call, 1161s # _org_project_signaling_iface_skeleton_handle_get_property, 1161s # _org_project_signaling_iface_skeleton_handle_set_property, 1161s # {NULL} 1161s # }; 1161s # 1161s # static GDBusInterfaceInfo * 1161s # org_project_signaling_iface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1161s # { 1161s # return org_project_signaling_iface_interface_info (); 1161s # } 1161s # 1161s # static GDBusInterfaceVTable * 1161s # org_project_signaling_iface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1161s # { 1161s # return (GDBusInterfaceVTable *) &_org_project_signaling_iface_skeleton_vtable; 1161s # } 1161s # 1161s # static GVariant * 1161s # org_project_signaling_iface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 1161s # { 1161s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (_skeleton); 1161s # 1161s # GVariantBuilder builder; 1161s # guint n; 1161s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 1161s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 1161s # #else 1161s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 1161s # #endif 1161s # if (_org_project_signaling_iface_interface_info.parent_struct.properties == NULL) 1161s # goto out; 1161s # for (n = 0; _org_project_signaling_iface_interface_info.parent_struct.properties[n] != NULL; n++) 1161s # { 1161s # GDBusPropertyInfo *info = _org_project_signaling_iface_interface_info.parent_struct.properties[n]; 1161s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 1161s # { 1161s # GVariant *value; 1161s # 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); 1161s # if (value != NULL) 1161s # { 1161s # g_variant_take_ref (value); 1161s # g_variant_builder_add (&builder, "{sv}", info->name, value); 1161s # g_variant_unref (value); 1161s # } 1161s # } 1161s # } 1161s # out: 1161s # return g_variant_builder_end (&builder); 1161s # } 1161s # 1161s # static void 1161s # org_project_signaling_iface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 1161s # { 1161s # } 1161s # 1161s # static void 1161s # _org_project_signaling_iface_on_signal_simple_signal ( 1161s # OrgProjectSignalingIface *object) 1161s # { 1161s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 1161s # 1161s # GList *connections, *l; 1161s # GVariant *signal_variant; 1161s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 1161s # 1161s # signal_variant = g_variant_ref_sink (g_variant_new ("()")); 1161s # for (l = connections; l != NULL; l = l->next) 1161s # { 1161s # GDBusConnection *connection = l->data; 1161s # g_dbus_connection_emit_signal (connection, 1161s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SimpleSignal", 1161s # signal_variant, NULL); 1161s # } 1161s # g_variant_unref (signal_variant); 1161s # g_list_free_full (connections, g_object_unref); 1161s # } 1161s # 1161s # static void 1161s # _org_project_signaling_iface_on_signal_single_arg_signal_as ( 1161s # OrgProjectSignalingIface *object, 1161s # const gchar *const *arg_arg_as) 1161s # { 1161s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 1161s # 1161s # GList *connections, *l; 1161s # GVariant *signal_variant; 1161s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 1161s # 1161s # signal_variant = g_variant_ref_sink (g_variant_new ("(^as)", 1161s # arg_arg_as)); 1161s # for (l = connections; l != NULL; l = l->next) 1161s # { 1161s # GDBusConnection *connection = l->data; 1161s # g_dbus_connection_emit_signal (connection, 1161s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SingleArgSignalAs", 1161s # signal_variant, NULL); 1161s # } 1161s # g_variant_unref (signal_variant); 1161s # g_list_free_full (connections, g_object_unref); 1161s # } 1161s # 1161s # static void org_project_signaling_iface_skeleton_iface_init (OrgProjectSignalingIfaceIface *iface); 1161s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1161s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceSkeleton, org_project_signaling_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1161s # G_ADD_PRIVATE (OrgProjectSignalingIfaceSkeleton) 1161s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_skeleton_iface_init)) 1161s # 1161s # #else 1161s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceSkeleton, org_project_signaling_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1161s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_skeleton_iface_init)) 1161s # 1161s # #endif 1161s # static void 1161s # org_project_signaling_iface_skeleton_finalize (GObject *object) 1161s # { 1161s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 1161s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 1161s # if (skeleton->priv->changed_properties_idle_source != NULL) 1161s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 1161s # g_main_context_unref (skeleton->priv->context); 1161s # g_mutex_clear (&skeleton->priv->lock); 1161s # G_OBJECT_CLASS (org_project_signaling_iface_skeleton_parent_class)->finalize (object); 1161s # } 1161s # 1161s # static void 1161s # org_project_signaling_iface_skeleton_init (OrgProjectSignalingIfaceSkeleton *skeleton) 1161s # { 1161s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1161s # skeleton->priv = org_project_signaling_iface_skeleton_get_instance_private (skeleton); 1161s # #else 1161s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_SIGNALING_IFACE_SKELETON, OrgProjectSignalingIfaceSkeletonPrivate); 1161s # #endif 1161s # 1161s # g_mutex_init (&skeleton->priv->lock); 1161s # skeleton->priv->context = g_main_context_ref_thread_default (); 1161s # } 1161s # 1161s # static void 1161s # org_project_signaling_iface_skeleton_class_init (OrgProjectSignalingIfaceSkeletonClass *klass) 1161s # { 1161s # GObjectClass *gobject_class; 1161s # GDBusInterfaceSkeletonClass *skeleton_class; 1161s # 1161s # gobject_class = G_OBJECT_CLASS (klass); 1161s # gobject_class->finalize = org_project_signaling_iface_skeleton_finalize; 1161s # 1161s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 1161s # skeleton_class->get_info = org_project_signaling_iface_skeleton_dbus_interface_get_info; 1161s # skeleton_class->get_properties = org_project_signaling_iface_skeleton_dbus_interface_get_properties; 1161s # skeleton_class->flush = org_project_signaling_iface_skeleton_dbus_interface_flush; 1161s # skeleton_class->get_vtable = org_project_signaling_iface_skeleton_dbus_interface_get_vtable; 1161s # 1161s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1161s # g_type_class_add_private (klass, sizeof (OrgProjectSignalingIfaceSkeletonPrivate)); 1161s # #endif 1161s # } 1161s # 1161s # static void 1161s # org_project_signaling_iface_skeleton_iface_init (OrgProjectSignalingIfaceIface *iface) 1161s # { 1161s # iface->simple_signal = _org_project_signaling_iface_on_signal_simple_signal; 1161s # iface->single_arg_signal_as = _org_project_signaling_iface_on_signal_single_arg_signal_as; 1161s # } 1161s # 1161s # /** 1161s # * org_project_signaling_iface_skeleton_new: 1161s # * 1161s # * Creates a skeleton object for the D-Bus interface org.project.SignalingIface. 1161s # * 1161s # * Returns: (transfer full) (type OrgProjectSignalingIfaceSkeleton): The skeleton object. 1161s # */ 1161s # OrgProjectSignalingIface * 1161s # org_project_signaling_iface_skeleton_new (void) 1161s # { 1161s # return ORG_PROJECT_SIGNALING_IFACE (g_object_new (TYPE_ORG_PROJECT_SIGNALING_IFACE_SKELETON, NULL)); 1161s # } 1161s # Error: 1161s # 1161s # /tmp/tmpjwrvmpd2/tmpmhjgl9f7.xml: 1161s # 1161s # 1161s # 1161s # 1161s # 1161s # 1161s # 1161s # 1161s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpjwrvmpd2/tmpmhjgl9f7.xml', '--output', '-', '--body'] 1161s # Return code: 0 1161s # Output: 1161s # /* 1161s # * This file is generated by gdbus-codegen, do not modify it. 1161s # * 1161s # * The license of this code is the same as for the D-Bus interface description 1161s # * it was derived from. Note that it links to GLib, so must comply with the 1161s # * LGPL linking clauses. 1161s # */ 1161s # 1161s # #ifdef HAVE_CONFIG_H 1161s # # include "config.h" 1161s # #endif 1161s # 1161s # #include 1161s # #ifdef G_OS_UNIX 1161s # # include 1161s # #endif 1161s # 1161s # #ifdef G_ENABLE_DEBUG 1161s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 1161s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 1161s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 1161s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 1161s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 1161s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 1161s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 1161s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 1161s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 1161s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 1161s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 1161s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 1161s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 1161s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 1161s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 1161s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 1161s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 1161s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 1161s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 1161s # #else /* !G_ENABLE_DEBUG */ 1161s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 1161s # * Do not access GValues directly in your code. Instead, use the 1161s # * g_value_get_*() functions 1161s # */ 1161s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 1161s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 1161s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 1161s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 1161s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 1161s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 1161s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 1161s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 1161s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 1161s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 1161s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 1161s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 1161s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 1161s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 1161s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 1161s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 1161s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 1161s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 1161s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 1161s # #endif /* !G_ENABLE_DEBUG */ 1161s # 1161s # typedef struct 1161s # { 1161s # GDBusArgInfo parent_struct; 1161s # gboolean use_gvariant; 1161s # } _ExtendedGDBusArgInfo; 1161s # 1161s # typedef struct 1161s # { 1161s # GDBusMethodInfo parent_struct; 1161s # const gchar *signal_name; 1161s # gboolean pass_fdlist; 1161s # } _ExtendedGDBusMethodInfo; 1161s # 1161s # typedef struct 1161s # { 1161s # GDBusSignalInfo parent_struct; 1161s # const gchar *signal_name; 1161s # } _ExtendedGDBusSignalInfo; 1161s # 1161s # typedef struct 1161s # { 1161s # GDBusPropertyInfo parent_struct; 1161s # const gchar *hyphen_name; 1161s # guint use_gvariant : 1; 1161s # guint emits_changed_signal : 1; 1161s # } _ExtendedGDBusPropertyInfo; 1161s # 1161s # typedef struct 1161s # { 1161s # GDBusInterfaceInfo parent_struct; 1161s # const gchar *hyphen_name; 1161s # } _ExtendedGDBusInterfaceInfo; 1161s # 1161s # typedef struct 1161s # { 1161s # const _ExtendedGDBusPropertyInfo *info; 1161s # guint prop_id; 1161s # GValue orig_value; /* the value before the change */ 1161s # } ChangedProperty; 1161s # 1161s # static void 1161s # _changed_property_free (ChangedProperty *data) 1161s # { 1161s # g_value_unset (&data->orig_value); 1161s # g_free (data); 1161s # } 1161s # 1161s # static gboolean 1161s # _g_strv_equal0 (gchar **a, gchar **b) 1161s # { 1161s # gboolean ret = FALSE; 1161s # guint n; 1161s # if (a == NULL && b == NULL) 1161s # { 1161s # ret = TRUE; 1161s # goto out; 1161s # } 1161s # if (a == NULL || b == NULL) 1161s # goto out; 1161s # if (g_strv_length (a) != g_strv_length (b)) 1161s # goto out; 1161s # for (n = 0; a[n] != NULL; n++) 1161s # if (g_strcmp0 (a[n], b[n]) != 0) 1161s # goto out; 1161s # ret = TRUE; 1161s # out: 1161s # return ret; 1161s # } 1161s # 1161s # static gboolean 1161s # _g_variant_equal0 (GVariant *a, GVariant *b) 1161s # { 1161s # gboolean ret = FALSE; 1161s # if (a == NULL && b == NULL) 1161s # { 1161s # ret = TRUE; 1161s # goto out; 1161s # } 1161s # if (a == NULL || b == NULL) 1161s # goto out; 1161s # ret = g_variant_equal (a, b); 1161s # out: 1161s # return ret; 1161s # } 1161s # 1161s # G_GNUC_UNUSED static gboolean 1161s # _g_value_equal (const GValue *a, const GValue *b) 1161s # { 1161s # gboolean ret = FALSE; 1161s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 1161s # switch (G_VALUE_TYPE (a)) 1161s # { 1161s # case G_TYPE_BOOLEAN: 1161s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 1161s # break; 1161s # case G_TYPE_UCHAR: 1161s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 1161s # break; 1161s # case G_TYPE_INT: 1161s # ret = (g_value_get_int (a) == g_value_get_int (b)); 1161s # break; 1161s # case G_TYPE_UINT: 1161s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 1161s # break; 1161s # case G_TYPE_INT64: 1161s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 1161s # break; 1161s # case G_TYPE_UINT64: 1161s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 1161s # break; 1161s # case G_TYPE_DOUBLE: 1161s # { 1161s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 1161s # gdouble da = g_value_get_double (a); 1161s # gdouble db = g_value_get_double (b); 1161s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 1161s # } 1161s # break; 1161s # case G_TYPE_STRING: 1161s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 1161s # break; 1161s # case G_TYPE_VARIANT: 1161s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 1161s # break; 1161s # default: 1161s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 1161s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 1161s # else 1161s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 1161s # break; 1161s # } 1161s # return ret; 1161s # } 1161s # 1161s # /* ------------------------------------------------------------------------ 1161s # * Code for interface org.project.SignalingIface 1161s # * ------------------------------------------------------------------------ 1161s # */ 1161s # 1161s # /** 1161s # * SECTION:OrgProjectSignalingIface 1161s # * @title: OrgProjectSignalingIface 1161s # * @short_description: Generated C code for the org.project.SignalingIface D-Bus interface 1161s # * 1161s # * This section contains code for working with the org.project.SignalingIface D-Bus interface in C. 1161s # */ 1161s # 1161s # enum 1161s # { 1161s # _ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL, 1161s # _ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_AO, 1161s # }; 1161s # 1161s # static unsigned _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[2] = { 0 }; 1161s # 1161s # /* ---- Introspection data for org.project.SignalingIface ---- */ 1161s # 1161s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_simple_signal = 1161s # { 1161s # { 1161s # -1, 1161s # (gchar *) "SimpleSignal", 1161s # NULL, 1161s # NULL 1161s # }, 1161s # "simple-signal" 1161s # }; 1161s # 1161s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_single_arg_signal_ao_ARG_arg_ao = 1161s # { 1161s # { 1161s # -1, 1161s # (gchar *) "arg_ao", 1161s # (gchar *) "ao", 1161s # NULL 1161s # }, 1161s # FALSE 1161s # }; 1161s # 1161s # static const GDBusArgInfo * const _org_project_signaling_iface_signal_info_single_arg_signal_ao_ARG_pointers[] = 1161s # { 1161s # &_org_project_signaling_iface_signal_info_single_arg_signal_ao_ARG_arg_ao.parent_struct, 1161s # NULL 1161s # }; 1161s # 1161s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_single_arg_signal_ao = 1161s # { 1161s # { 1161s # -1, 1161s # (gchar *) "SingleArgSignalAo", 1161s # (GDBusArgInfo **) &_org_project_signaling_iface_signal_info_single_arg_signal_ao_ARG_pointers, 1161s # NULL 1161s # }, 1161s # "single-arg-signal-ao" 1161s # }; 1161s # 1161s # static const GDBusSignalInfo * const _org_project_signaling_iface_signal_info_pointers[] = 1161s # { 1161s # &_org_project_signaling_iface_signal_info_simple_signal.parent_struct, 1161s # &_org_project_signaling_iface_signal_info_single_arg_signal_ao.parent_struct, 1161s # NULL 1161s # }; 1161s # 1161s # static const _ExtendedGDBusInterfaceInfo _org_project_signaling_iface_interface_info = 1161s # { 1161s # { 1161s # -1, 1161s # (gchar *) "org.project.SignalingIface", 1161s # NULL, 1161s # (GDBusSignalInfo **) &_org_project_signaling_iface_signal_info_pointers, 1161s # NULL, 1161s # NULL 1161s # }, 1161s # "org-project-signaling-iface", 1161s # }; 1161s # 1161s # 1161s # /** 1161s # * org_project_signaling_iface_interface_info: 1161s # * 1161s # * Gets a machine-readable description of the org.project.SignalingIface D-Bus interface. 1161s # * 1161s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 1161s # */ 1161s # GDBusInterfaceInfo * 1161s # org_project_signaling_iface_interface_info (void) 1161s # { 1161s # return (GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct; 1161s # } 1161s # 1161s # /** 1161s # * org_project_signaling_iface_override_properties: 1161s # * @klass: The class structure for a #GObject derived class. 1161s # * @property_id_begin: The property id to assign to the first overridden property. 1161s # * 1161s # * Overrides all #GObject properties in the #OrgProjectSignalingIface interface for a concrete class. 1161s # * The properties are overridden in the order they are defined. 1161s # * 1161s # * Returns: The last property id. 1161s # */ 1161s # guint 1161s # org_project_signaling_iface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 1161s # { 1161s # return property_id_begin - 1; 1161s # } 1161s # 1161s # 1161s # inline static void 1161s # org_project_signaling_iface_signal_marshal_simple_signal ( 1161s # GClosure *closure, 1161s # GValue *return_value, 1161s # unsigned int n_param_values, 1161s # const GValue *param_values, 1161s # void *invocation_hint, 1161s # void *marshal_data) 1161s # { 1161s # g_cclosure_marshal_VOID__VOID (closure, 1161s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1161s # } 1161s # 1161s # inline static void 1161s # org_project_signaling_iface_signal_marshal_single_arg_signal_ao ( 1161s # GClosure *closure, 1161s # GValue *return_value, 1161s # unsigned int n_param_values, 1161s # const GValue *param_values, 1161s # void *invocation_hint, 1161s # void *marshal_data) 1161s # { 1161s # g_cclosure_marshal_VOID__BOXED (closure, 1161s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1161s # } 1161s # 1161s # 1161s # /** 1161s # * OrgProjectSignalingIface: 1161s # * 1161s # * Abstract interface type for the D-Bus interface org.project.SignalingIface. 1161s # */ 1161s # 1161s # /** 1161s # * OrgProjectSignalingIfaceIface: 1161s # * @parent_iface: The parent interface. 1161s # * @simple_signal: Handler for the #OrgProjectSignalingIface::simple-signal signal. 1161s # * @single_arg_signal_ao: Handler for the #OrgProjectSignalingIface::single-arg-signal-ao signal. 1161s # * 1161s # * Virtual table for the D-Bus interface org.project.SignalingIface. 1161s # */ 1161s # 1161s # typedef OrgProjectSignalingIfaceIface OrgProjectSignalingIfaceInterface; 1161s # G_DEFINE_INTERFACE (OrgProjectSignalingIface, org_project_signaling_iface, G_TYPE_OBJECT) 1161s # 1161s # static void 1161s # org_project_signaling_iface_default_init (OrgProjectSignalingIfaceIface *iface) 1161s # { 1161s # /* GObject signals for received D-Bus signals: */ 1161s # /** 1161s # * OrgProjectSignalingIface::simple-signal: 1161s # * @object: A #OrgProjectSignalingIface. 1161s # * 1161s # * On the client-side, this signal is emitted whenever the D-Bus signal "SimpleSignal" is received. 1161s # * 1161s # * 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. 1161s # */ 1161s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL] = 1161s # g_signal_new ("simple-signal", 1161s # G_TYPE_FROM_INTERFACE (iface), 1161s # G_SIGNAL_RUN_LAST, 1161s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, simple_signal), 1161s # NULL, 1161s # NULL, 1161s # org_project_signaling_iface_signal_marshal_simple_signal, 1161s # G_TYPE_NONE, 1161s # 0); 1161s # 1161s # /** 1161s # * OrgProjectSignalingIface::single-arg-signal-ao: 1161s # * @object: A #OrgProjectSignalingIface. 1161s # * @arg_arg_ao: Argument. 1161s # * 1161s # * On the client-side, this signal is emitted whenever the D-Bus signal "SingleArgSignalAo" is received. 1161s # * 1161s # * 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. 1161s # */ 1161s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_AO] = 1161s # g_signal_new ("single-arg-signal-ao", 1161s # G_TYPE_FROM_INTERFACE (iface), 1161s # G_SIGNAL_RUN_LAST, 1161s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, single_arg_signal_ao), 1161s # NULL, 1161s # NULL, 1161s # org_project_signaling_iface_signal_marshal_single_arg_signal_ao, 1161s # G_TYPE_NONE, 1161s # 1, G_TYPE_STRV); 1161s # 1161s # } 1161s # 1161s # /** 1161s # * org_project_signaling_iface_emit_simple_signal: 1161s # * @object: A #OrgProjectSignalingIface. 1161s # * 1161s # * Emits the "SimpleSignal" D-Bus signal. 1161s # */ 1161s # void 1161s # org_project_signaling_iface_emit_simple_signal ( 1161s # OrgProjectSignalingIface *object) 1161s # { 1161s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL], 0); 1161s # } 1161s # 1161s # /** 1161s # * org_project_signaling_iface_emit_single_arg_signal_ao: 1161s # * @object: A #OrgProjectSignalingIface. 1161s # * @arg_arg_ao: Argument to pass with the signal. 1161s # * 1161s # * Emits the "SingleArgSignalAo" D-Bus signal. 1161s # */ 1161s # void 1161s # org_project_signaling_iface_emit_single_arg_signal_ao ( 1161s # OrgProjectSignalingIface *object, 1161s # const gchar *const *arg_arg_ao) 1161s # { 1161s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_AO], 0, arg_arg_ao); 1161s # } 1161s # 1161s # /* ------------------------------------------------------------------------ */ 1161s # 1161s # /** 1161s # * OrgProjectSignalingIfaceProxy: 1161s # * 1161s # * The #OrgProjectSignalingIfaceProxy structure contains only private data and should only be accessed using the provided API. 1161s # */ 1161s # 1161s # /** 1161s # * OrgProjectSignalingIfaceProxyClass: 1161s # * @parent_class: The parent class. 1161s # * 1161s # * Class structure for #OrgProjectSignalingIfaceProxy. 1161s # */ 1161s # 1161s # struct _OrgProjectSignalingIfaceProxyPrivate 1161s # { 1161s # GData *qdata; 1161s # }; 1161s # 1161s # static void org_project_signaling_iface_proxy_iface_init (OrgProjectSignalingIfaceIface *iface); 1161s # 1161s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1161s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceProxy, org_project_signaling_iface_proxy, G_TYPE_DBUS_PROXY, 1161s # G_ADD_PRIVATE (OrgProjectSignalingIfaceProxy) 1161s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_proxy_iface_init)) 1161s # 1161s # #else 1161s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceProxy, org_project_signaling_iface_proxy, G_TYPE_DBUS_PROXY, 1161s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_proxy_iface_init)) 1161s # 1161s # #endif 1161s # static void 1161s # org_project_signaling_iface_proxy_finalize (GObject *object) 1161s # { 1161s # OrgProjectSignalingIfaceProxy *proxy = ORG_PROJECT_SIGNALING_IFACE_PROXY (object); 1161s # g_datalist_clear (&proxy->priv->qdata); 1161s # G_OBJECT_CLASS (org_project_signaling_iface_proxy_parent_class)->finalize (object); 1161s # } 1161s # 1161s # static void 1161s # org_project_signaling_iface_proxy_get_property (GObject *object G_GNUC_UNUSED, 1161s # guint prop_id G_GNUC_UNUSED, 1161s # GValue *value G_GNUC_UNUSED, 1161s # GParamSpec *pspec G_GNUC_UNUSED) 1161s # { 1161s # } 1161s # 1161s # static void 1161s # org_project_signaling_iface_proxy_set_property (GObject *object G_GNUC_UNUSED, 1161s # guint prop_id G_GNUC_UNUSED, 1161s # const GValue *value G_GNUC_UNUSED, 1161s # GParamSpec *pspec G_GNUC_UNUSED) 1161s # { 1161s # } 1161s # 1161s # static void 1161s # org_project_signaling_iface_proxy_g_signal (GDBusProxy *proxy, 1161s # const gchar *sender_name G_GNUC_UNUSED, 1161s # const gchar *signal_name, 1161s # GVariant *parameters) 1161s # { 1161s # _ExtendedGDBusSignalInfo *info; 1161s # GVariantIter iter; 1161s # GVariant *child; 1161s # GValue *paramv; 1161s # gsize num_params; 1161s # gsize n; 1161s # guint signal_id; 1161s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, signal_name); 1161s # if (info == NULL) 1161s # return; 1161s # num_params = g_variant_n_children (parameters); 1161s # paramv = g_new0 (GValue, num_params + 1); 1161s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_SIGNALING_IFACE); 1161s # g_value_set_object (¶mv[0], proxy); 1161s # g_variant_iter_init (&iter, parameters); 1161s # n = 1; 1161s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1161s # { 1161s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 1161s # if (arg_info->use_gvariant) 1161s # { 1161s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1161s # g_value_set_variant (¶mv[n], child); 1161s # n++; 1161s # } 1161s # else 1161s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1161s # g_variant_unref (child); 1161s # } 1161s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_SIGNALING_IFACE); 1161s # g_signal_emitv (paramv, signal_id, 0, NULL); 1161s # for (n = 0; n < num_params + 1; n++) 1161s # g_value_unset (¶mv[n]); 1161s # g_free (paramv); 1161s # } 1161s # 1161s # static void 1161s # org_project_signaling_iface_proxy_g_properties_changed (GDBusProxy *_proxy, 1161s # GVariant *changed_properties, 1161s # const gchar *const *invalidated_properties) 1161s # { 1161s # OrgProjectSignalingIfaceProxy *proxy = ORG_PROJECT_SIGNALING_IFACE_PROXY (_proxy); 1161s # guint n; 1161s # const gchar *key; 1161s # GVariantIter *iter; 1161s # _ExtendedGDBusPropertyInfo *info; 1161s # g_variant_get (changed_properties, "a{sv}", &iter); 1161s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 1161s # { 1161s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, key); 1161s # g_datalist_remove_data (&proxy->priv->qdata, key); 1161s # if (info != NULL) 1161s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1161s # } 1161s # g_variant_iter_free (iter); 1161s # for (n = 0; invalidated_properties[n] != NULL; n++) 1161s # { 1161s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, invalidated_properties[n]); 1161s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 1161s # if (info != NULL) 1161s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1161s # } 1161s # } 1161s # 1161s # static void 1161s # org_project_signaling_iface_proxy_init (OrgProjectSignalingIfaceProxy *proxy) 1161s # { 1161s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1161s # proxy->priv = org_project_signaling_iface_proxy_get_instance_private (proxy); 1161s # #else 1161s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_SIGNALING_IFACE_PROXY, OrgProjectSignalingIfaceProxyPrivate); 1161s # #endif 1161s # 1161s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_signaling_iface_interface_info ()); 1161s # } 1161s # 1161s # static void 1161s # org_project_signaling_iface_proxy_class_init (OrgProjectSignalingIfaceProxyClass *klass) 1161s # { 1161s # GObjectClass *gobject_class; 1161s # GDBusProxyClass *proxy_class; 1161s # 1161s # gobject_class = G_OBJECT_CLASS (klass); 1161s # gobject_class->finalize = org_project_signaling_iface_proxy_finalize; 1161s # gobject_class->get_property = org_project_signaling_iface_proxy_get_property; 1161s # gobject_class->set_property = org_project_signaling_iface_proxy_set_property; 1161s # 1161s # proxy_class = G_DBUS_PROXY_CLASS (klass); 1161s # proxy_class->g_signal = org_project_signaling_iface_proxy_g_signal; 1161s # proxy_class->g_properties_changed = org_project_signaling_iface_proxy_g_properties_changed; 1161s # 1161s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1161s # g_type_class_add_private (klass, sizeof (OrgProjectSignalingIfaceProxyPrivate)); 1161s # #endif 1161s # } 1161s # 1161s # static void 1161s # org_project_signaling_iface_proxy_iface_init (OrgProjectSignalingIfaceIface *iface G_GNUC_UNUSED) 1161s # { 1161s # } 1161s # 1161s # /** 1161s # * org_project_signaling_iface_proxy_new: 1161s # * @connection: A #GDBusConnection. 1161s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1161s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1161s # * @object_path: An object path. 1161s # * @cancellable: (nullable): A #GCancellable or %NULL. 1161s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1161s # * @user_data: User data to pass to @callback. 1161s # * 1161s # * Asynchronously creates a proxy for the D-Bus interface org.project.SignalingIface. See g_dbus_proxy_new() for more details. 1161s # * 1161s # * 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()). 1161s # * You can then call org_project_signaling_iface_proxy_new_finish() to get the result of the operation. 1161s # * 1161s # * See org_project_signaling_iface_proxy_new_sync() for the synchronous, blocking version of this constructor. 1161s # */ 1161s # void 1161s # org_project_signaling_iface_proxy_new ( 1161s # GDBusConnection *connection, 1161s # GDBusProxyFlags flags, 1161s # const gchar *name, 1161s # const gchar *object_path, 1161s # GCancellable *cancellable, 1161s # GAsyncReadyCallback callback, 1161s # gpointer user_data) 1161s # { 1161s # 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); 1161s # } 1161s # 1161s # /** 1161s # * org_project_signaling_iface_proxy_new_finish: 1161s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_signaling_iface_proxy_new(). 1161s # * @error: Return location for error or %NULL 1161s # * 1161s # * Finishes an operation started with org_project_signaling_iface_proxy_new(). 1161s # * 1161s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 1161s # */ 1161s # OrgProjectSignalingIface * 1161s # org_project_signaling_iface_proxy_new_finish ( 1161s # GAsyncResult *res, 1161s # GError **error) 1161s # { 1161s # GObject *ret; 1161s # GObject *source_object; 1161s # source_object = g_async_result_get_source_object (res); 1161s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1161s # g_object_unref (source_object); 1161s # if (ret != NULL) 1161s # return ORG_PROJECT_SIGNALING_IFACE (ret); 1161s # else 1161s # return NULL; 1161s # } 1161s # 1161s # /** 1161s # * org_project_signaling_iface_proxy_new_sync: 1161s # * @connection: A #GDBusConnection. 1161s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1161s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1161s # * @object_path: An object path. 1161s # * @cancellable: (nullable): A #GCancellable or %NULL. 1161s # * @error: Return location for error or %NULL 1161s # * 1161s # * Synchronously creates a proxy for the D-Bus interface org.project.SignalingIface. See g_dbus_proxy_new_sync() for more details. 1161s # * 1161s # * The calling thread is blocked until a reply is received. 1161s # * 1161s # * See org_project_signaling_iface_proxy_new() for the asynchronous version of this constructor. 1161s # * 1161s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 1161s # */ 1161s # OrgProjectSignalingIface * 1161s # org_project_signaling_iface_proxy_new_sync ( 1161s # GDBusConnection *connection, 1161s # GDBusProxyFlags flags, 1161s # const gchar *name, 1161s # const gchar *object_path, 1161s # GCancellable *cancellable, 1161s # GError **error) 1161s # { 1161s # GInitable *ret; 1161s # 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); 1161s # if (ret != NULL) 1161s # return ORG_PROJECT_SIGNALING_IFACE (ret); 1161s # else 1161s # return NULL; 1161s # } 1161s # 1161s # 1161s # /** 1161s # * org_project_signaling_iface_proxy_new_for_bus: 1161s # * @bus_type: A #GBusType. 1161s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1161s # * @name: A bus name (well-known or unique). 1161s # * @object_path: An object path. 1161s # * @cancellable: (nullable): A #GCancellable or %NULL. 1161s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1161s # * @user_data: User data to pass to @callback. 1161s # * 1161s # * Like org_project_signaling_iface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 1161s # * 1161s # * 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()). 1161s # * You can then call org_project_signaling_iface_proxy_new_for_bus_finish() to get the result of the operation. 1161s # * 1161s # * See org_project_signaling_iface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 1161s # */ 1161s # void 1161s # org_project_signaling_iface_proxy_new_for_bus ( 1161s # GBusType bus_type, 1161s # GDBusProxyFlags flags, 1161s # const gchar *name, 1161s # const gchar *object_path, 1161s # GCancellable *cancellable, 1161s # GAsyncReadyCallback callback, 1161s # gpointer user_data) 1161s # { 1161s # 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); 1161s # } 1161s # 1161s # /** 1161s # * org_project_signaling_iface_proxy_new_for_bus_finish: 1161s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_signaling_iface_proxy_new_for_bus(). 1161s # * @error: Return location for error or %NULL 1161s # * 1161s # * Finishes an operation started with org_project_signaling_iface_proxy_new_for_bus(). 1161s # * 1161s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 1161s # */ 1161s # OrgProjectSignalingIface * 1161s # org_project_signaling_iface_proxy_new_for_bus_finish ( 1161s # GAsyncResult *res, 1161s # GError **error) 1161s # { 1161s # GObject *ret; 1161s # GObject *source_object; 1161s # source_object = g_async_result_get_source_object (res); 1161s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1161s # g_object_unref (source_object); 1161s # if (ret != NULL) 1161s # return ORG_PROJECT_SIGNALING_IFACE (ret); 1161s # else 1161s # return NULL; 1161s # } 1161s # 1161s # /** 1161s # * org_project_signaling_iface_proxy_new_for_bus_sync: 1161s # * @bus_type: A #GBusType. 1161s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1161s # * @name: A bus name (well-known or unique). 1161s # * @object_path: An object path. 1161s # * @cancellable: (nullable): A #GCancellable or %NULL. 1161s # * @error: Return location for error or %NULL 1161s # * 1161s # * Like org_project_signaling_iface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 1161s # * 1161s # * The calling thread is blocked until a reply is received. 1161s # * 1161s # * See org_project_signaling_iface_proxy_new_for_bus() for the asynchronous version of this constructor. 1161s # * 1161s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 1161s # */ 1161s # OrgProjectSignalingIface * 1161s # org_project_signaling_iface_proxy_new_for_bus_sync ( 1161s # GBusType bus_type, 1161s # GDBusProxyFlags flags, 1161s # const gchar *name, 1161s # const gchar *object_path, 1161s # GCancellable *cancellable, 1161s # GError **error) 1161s # { 1161s # GInitable *ret; 1161s # 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); 1161s # if (ret != NULL) 1161s # return ORG_PROJECT_SIGNALING_IFACE (ret); 1161s # else 1161s # return NULL; 1161s # } 1161s # 1161s # 1161s # /* ------------------------------------------------------------------------ */ 1161s # 1161s # /** 1161s # * OrgProjectSignalingIfaceSkeleton: 1161s # * 1161s # * The #OrgProjectSignalingIfaceSkeleton structure contains only private data and should only be accessed using the provided API. 1161s # */ 1161s # 1161s # /** 1161s # * OrgProjectSignalingIfaceSkeletonClass: 1161s # * @parent_class: The parent class. 1161s # * 1161s # * Class structure for #OrgProjectSignalingIfaceSkeleton. 1161s # */ 1161s # 1161s # struct _OrgProjectSignalingIfaceSkeletonPrivate 1161s # { 1161s # GValue *properties; 1161s # GList *changed_properties; 1161s # GSource *changed_properties_idle_source; 1161s # GMainContext *context; 1161s # GMutex lock; 1161s # }; 1161s # 1161s # static void 1161s # _org_project_signaling_iface_skeleton_handle_method_call ( 1161s # GDBusConnection *connection G_GNUC_UNUSED, 1161s # const gchar *sender G_GNUC_UNUSED, 1161s # const gchar *object_path G_GNUC_UNUSED, 1161s # const gchar *interface_name, 1161s # const gchar *method_name, 1161s # GVariant *parameters, 1161s # GDBusMethodInvocation *invocation, 1161s # gpointer user_data) 1161s # { 1161s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 1161s # _ExtendedGDBusMethodInfo *info; 1161s # GVariantIter iter; 1161s # GVariant *child; 1161s # GValue *paramv; 1161s # gsize num_params; 1161s # guint num_extra; 1161s # gsize n; 1161s # guint signal_id; 1161s # GValue return_value = G_VALUE_INIT; 1161s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 1161s # g_assert (info != NULL); 1161s # num_params = g_variant_n_children (parameters); 1161s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 1161s # n = 0; 1161s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_SIGNALING_IFACE); 1161s # g_value_set_object (¶mv[n++], skeleton); 1161s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 1161s # g_value_set_object (¶mv[n++], invocation); 1161s # if (info->pass_fdlist) 1161s # { 1161s # #ifdef G_OS_UNIX 1161s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 1161s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 1161s # #else 1161s # g_assert_not_reached (); 1161s # #endif 1161s # } 1161s # g_variant_iter_init (&iter, parameters); 1161s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1161s # { 1161s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 1161s # if (arg_info->use_gvariant) 1161s # { 1161s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1161s # g_value_set_variant (¶mv[n], child); 1161s # n++; 1161s # } 1161s # else 1161s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1161s # g_variant_unref (child); 1161s # } 1161s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_SIGNALING_IFACE); 1161s # g_value_init (&return_value, G_TYPE_BOOLEAN); 1161s # g_signal_emitv (paramv, signal_id, 0, &return_value); 1161s # if (!g_value_get_boolean (&return_value)) 1161s # 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); 1161s # g_value_unset (&return_value); 1161s # for (n = 0; n < num_params + num_extra; n++) 1161s # g_value_unset (¶mv[n]); 1161s # g_free (paramv); 1161s # } 1161s # 1161s # static GVariant * 1161s # _org_project_signaling_iface_skeleton_handle_get_property ( 1161s # GDBusConnection *connection G_GNUC_UNUSED, 1161s # const gchar *sender G_GNUC_UNUSED, 1161s # const gchar *object_path G_GNUC_UNUSED, 1161s # const gchar *interface_name G_GNUC_UNUSED, 1161s # const gchar *property_name, 1161s # GError **error, 1161s # gpointer user_data) 1161s # { 1161s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 1161s # GValue value = G_VALUE_INIT; 1161s # GParamSpec *pspec; 1161s # _ExtendedGDBusPropertyInfo *info; 1161s # GVariant *ret; 1161s # ret = NULL; 1161s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, property_name); 1161s # g_assert (info != NULL); 1161s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1161s # if (pspec == NULL) 1161s # { 1161s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1161s # } 1161s # else 1161s # { 1161s # g_value_init (&value, pspec->value_type); 1161s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1161s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 1161s # g_value_unset (&value); 1161s # } 1161s # return ret; 1161s # } 1161s # 1161s # static gboolean 1161s # _org_project_signaling_iface_skeleton_handle_set_property ( 1161s # GDBusConnection *connection G_GNUC_UNUSED, 1161s # const gchar *sender G_GNUC_UNUSED, 1161s # const gchar *object_path G_GNUC_UNUSED, 1161s # const gchar *interface_name G_GNUC_UNUSED, 1161s # const gchar *property_name, 1161s # GVariant *variant, 1161s # GError **error, 1161s # gpointer user_data) 1161s # { 1161s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 1161s # GValue value = G_VALUE_INIT; 1161s # GParamSpec *pspec; 1161s # _ExtendedGDBusPropertyInfo *info; 1161s # gboolean ret; 1161s # ret = FALSE; 1161s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, property_name); 1161s # g_assert (info != NULL); 1161s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1161s # if (pspec == NULL) 1161s # { 1161s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1161s # } 1161s # else 1161s # { 1161s # if (info->use_gvariant) 1161s # g_value_set_variant (&value, variant); 1161s # else 1161s # g_dbus_gvariant_to_gvalue (variant, &value); 1161s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1161s # g_value_unset (&value); 1161s # ret = TRUE; 1161s # } 1161s # return ret; 1161s # } 1161s # 1161s # static const GDBusInterfaceVTable _org_project_signaling_iface_skeleton_vtable = 1161s # { 1161s # _org_project_signaling_iface_skeleton_handle_method_call, 1161s # _org_project_signaling_iface_skeleton_handle_get_property, 1161s # _org_project_signaling_iface_skeleton_handle_set_property, 1161s # {NULL} 1161s # }; 1161s # 1161s # static GDBusInterfaceInfo * 1161s # org_project_signaling_iface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1161s # { 1161s # return org_project_signaling_iface_interface_info (); 1161s # } 1161s # 1161s # static GDBusInterfaceVTable * 1161s # org_project_signaling_iface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1161s # { 1161s # return (GDBusInterfaceVTable *) &_org_project_signaling_iface_skeleton_vtable; 1161s # } 1161s # 1161s # static GVariant * 1161s # org_project_signaling_iface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 1161s # { 1161s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (_skeleton); 1161s # 1161s # GVariantBuilder builder; 1161s # guint n; 1161s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 1161s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 1161s # #else 1161s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 1161s # #endif 1161s # if (_org_project_signaling_iface_interface_info.parent_struct.properties == NULL) 1161s # goto out; 1161s # for (n = 0; _org_project_signaling_iface_interface_info.parent_struct.properties[n] != NULL; n++) 1161s # { 1161s # GDBusPropertyInfo *info = _org_project_signaling_iface_interface_info.parent_struct.properties[n]; 1161s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 1161s # { 1161s # GVariant *value; 1161s # 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); 1161s # if (value != NULL) 1161s # { 1161s # g_variant_take_ref (value); 1161s # g_variant_builder_add (&builder, "{sv}", info->name, value); 1161s # g_variant_unref (value); 1161s # } 1161s # } 1161s # } 1161s # out: 1161s # return g_variant_builder_end (&builder); 1161s # } 1161s # 1161s # static void 1161s # org_project_signaling_iface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 1161s # { 1161s # } 1161s # 1161s # static void 1161s # _org_project_signaling_iface_on_signal_simple_signal ( 1161s # OrgProjectSignalingIface *object) 1161s # { 1161s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 1161s # 1161s # GList *connections, *l; 1161s # GVariant *signal_variant; 1161s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 1161s # 1161s # signal_variant = g_variant_ref_sink (g_variant_new ("()")); 1161s # for (l = connections; l != NULL; l = l->next) 1161s # { 1161s # GDBusConnection *connection = l->data; 1161s # g_dbus_connection_emit_signal (connection, 1161s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SimpleSignal", 1161s # signal_variant, NULL); 1161s # } 1161s # g_variant_unref (signal_variant); 1161s # g_list_free_full (connections, g_object_unref); 1161s # } 1161s # 1161s # static void 1161s # _org_project_signaling_iface_on_signal_single_arg_signal_ao ( 1161s # OrgProjectSignalingIface *object, 1161s # const gchar *const *arg_arg_ao) 1161s # { 1161s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 1161s # 1161s # GList *connections, *l; 1161s # GVariant *signal_variant; 1161s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 1161s # 1161s # signal_variant = g_variant_ref_sink (g_variant_new ("(^ao)", 1161s # arg_arg_ao)); 1161s # for (l = connections; l != NULL; l = l->next) 1161s # { 1161s # GDBusConnection *connection = l->data; 1161s # g_dbus_connection_emit_signal (connection, 1161s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SingleArgSignalAo", 1161s # signal_variant, NULL); 1161s # } 1161s # g_variant_unref (signal_variant); 1161s # g_list_free_full (connections, g_object_unref); 1161s # } 1161s # 1161s # static void org_project_signaling_iface_skeleton_iface_init (OrgProjectSignalingIfaceIface *iface); 1161s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1161s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceSkeleton, org_project_signaling_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1161s # G_ADD_PRIVATE (OrgProjectSignalingIfaceSkeleton) 1161s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_skeleton_iface_init)) 1161s # 1161s # #else 1161s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceSkeleton, org_project_signaling_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1161s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_skeleton_iface_init)) 1161s # 1161s # #endif 1161s # static void 1161s # org_project_signaling_iface_skeleton_finalize (GObject *object) 1161s # { 1161s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 1161s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 1161s # if (skeleton->priv->changed_properties_idle_source != NULL) 1161s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 1161s # g_main_context_unref (skeleton->priv->context); 1161s # g_mutex_clear (&skeleton->priv->lock); 1161s # G_OBJECT_CLASS (org_project_signaling_iface_skeleton_parent_class)->finalize (object); 1161s # } 1161s # 1161s # static void 1161s # org_project_signaling_iface_skeleton_init (OrgProjectSignalingIfaceSkeleton *skeleton) 1161s # { 1161s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1161s # skeleton->priv = org_project_signaling_iface_skeleton_get_instance_private (skeleton); 1161s # #else 1161s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_SIGNALING_IFACE_SKELETON, OrgProjectSignalingIfaceSkeletonPrivate); 1161s # #endif 1161s # 1161s # g_mutex_init (&skeleton->priv->lock); 1161s # skeleton->priv->context = g_main_context_ref_thread_default (); 1161s # } 1161s # 1161s # static void 1161s # org_project_signaling_iface_skeleton_class_init (OrgProjectSignalingIfaceSkeletonClass *klass) 1161s # { 1161s # GObjectClass *gobject_class; 1161s # GDBusInterfaceSkeletonClass *skeleton_class; 1161s # 1161s # gobject_class = G_OBJECT_CLASS (klass); 1161s # gobject_class->finalize = org_project_signaling_iface_skeleton_finalize; 1161s # 1161s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 1161s # skeleton_class->get_info = org_project_signaling_iface_skeleton_dbus_interface_get_info; 1161s # skeleton_class->get_properties = org_project_signaling_iface_skeleton_dbus_interface_get_properties; 1161s # skeleton_class->flush = org_project_signaling_iface_skeleton_dbus_interface_flush; 1161s # skeleton_class->get_vtable = org_project_signaling_iface_skeleton_dbus_interface_get_vtable; 1161s # 1161s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1161s # g_type_class_add_private (klass, sizeof (OrgProjectSignalingIfaceSkeletonPrivate)); 1161s # #endif 1161s # } 1161s # 1161s # static void 1161s # org_project_signaling_iface_skeleton_iface_init (OrgProjectSignalingIfaceIface *iface) 1161s # { 1161s # iface->simple_signal = _org_project_signaling_iface_on_signal_simple_signal; 1161s # iface->single_arg_signal_ao = _org_project_signaling_iface_on_signal_single_arg_signal_ao; 1161s # } 1161s # 1161s # /** 1161s # * org_project_signaling_iface_skeleton_new: 1161s # * 1161s # * Creates a skeleton object for the D-Bus interface org.project.SignalingIface. 1161s # * 1161s # * Returns: (transfer full) (type OrgProjectSignalingIfaceSkeleton): The skeleton object. 1161s # */ 1161s # OrgProjectSignalingIface * 1161s # org_project_signaling_iface_skeleton_new (void) 1161s # { 1161s # return ORG_PROJECT_SIGNALING_IFACE (g_object_new (TYPE_ORG_PROJECT_SIGNALING_IFACE_SKELETON, NULL)); 1161s # } 1161s # Error: 1161s # 1161s # /tmp/tmpjwrvmpd2/tmp1_ddtf2o.xml: 1161s # 1161s # 1161s # 1161s # 1161s # 1161s # 1161s # 1161s # 1161s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpjwrvmpd2/tmp1_ddtf2o.xml', '--output', '-', '--body'] 1161s # Return code: 0 1161s # Output: 1161s # /* 1161s # * This file is generated by gdbus-codegen, do not modify it. 1161s # * 1161s # * The license of this code is the same as for the D-Bus interface description 1161s # * it was derived from. Note that it links to GLib, so must comply with the 1161s # * LGPL linking clauses. 1161s # */ 1161s # 1161s # #ifdef HAVE_CONFIG_H 1161s # # include "config.h" 1161s # #endif 1161s # 1161s # #include 1161s # #ifdef G_OS_UNIX 1161s # # include 1161s # #endif 1161s # 1161s # #ifdef G_ENABLE_DEBUG 1161s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 1161s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 1161s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 1161s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 1161s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 1161s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 1161s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 1161s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 1161s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 1161s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 1161s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 1161s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 1161s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 1161s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 1161s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 1161s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 1161s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 1161s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 1161s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 1161s # #else /* !G_ENABLE_DEBUG */ 1161s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 1161s # * Do not access GValues directly in your code. Instead, use the 1161s # * g_value_get_*() functions 1161s # */ 1161s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 1161s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 1161s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 1161s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 1161s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 1161s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 1161s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 1161s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 1161s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 1161s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 1161s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 1161s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 1161s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 1161s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 1161s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 1161s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 1161s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 1161s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 1161s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 1161s # #endif /* !G_ENABLE_DEBUG */ 1161s # 1161s # typedef struct 1161s # { 1161s # GDBusArgInfo parent_struct; 1161s # gboolean use_gvariant; 1161s # } _ExtendedGDBusArgInfo; 1161s # 1161s # typedef struct 1161s # { 1161s # GDBusMethodInfo parent_struct; 1161s # const gchar *signal_name; 1161s # gboolean pass_fdlist; 1161s # } _ExtendedGDBusMethodInfo; 1161s # 1161s # typedef struct 1161s # { 1161s # GDBusSignalInfo parent_struct; 1161s # const gchar *signal_name; 1161s # } _ExtendedGDBusSignalInfo; 1161s # 1161s # typedef struct 1161s # { 1161s # GDBusPropertyInfo parent_struct; 1161s # const gchar *hyphen_name; 1161s # guint use_gvariant : 1; 1161s # guint emits_changed_signal : 1; 1161s # } _ExtendedGDBusPropertyInfo; 1161s # 1161s # typedef struct 1161s # { 1161s # GDBusInterfaceInfo parent_struct; 1161s # const gchar *hyphen_name; 1161s # } _ExtendedGDBusInterfaceInfo; 1161s # 1161s # typedef struct 1161s # { 1161s # const _ExtendedGDBusPropertyInfo *info; 1161s # guint prop_id; 1161s # GValue orig_value; /* the value before the change */ 1161s # } ChangedProperty; 1161s # 1161s # static void 1161s # _changed_property_free (ChangedProperty *data) 1161s # { 1161s # g_value_unset (&data->orig_value); 1161s # g_free (data); 1161s # } 1161s # 1161s # static gboolean 1161s # _g_strv_equal0 (gchar **a, gchar **b) 1161s # { 1161s # gboolean ret = FALSE; 1161s # guint n; 1161s # if (a == NULL && b == NULL) 1161s # { 1161s # ret = TRUE; 1161s # goto out; 1161s # } 1161s # if (a == NULL || b == NULL) 1161s # goto out; 1161s # if (g_strv_length (a) != g_strv_length (b)) 1161s # goto out; 1161s # for (n = 0; a[n] != NULL; n++) 1161s # if (g_strcmp0 (a[n], b[n]) != 0) 1161s # goto out; 1161s # ret = TRUE; 1161s # out: 1161s # return ret; 1161s # } 1161s # 1161s # static gboolean 1161s # _g_variant_equal0 (GVariant *a, GVariant *b) 1161s # { 1161s # gboolean ret = FALSE; 1161s # if (a == NULL && b == NULL) 1161s # { 1161s # ret = TRUE; 1161s # goto out; 1161s # } 1161s # if (a == NULL || b == NULL) 1161s # goto out; 1161s # ret = g_variant_equal (a, b); 1161s # out: 1161s # return ret; 1161s # } 1161s # 1161s # G_GNUC_UNUSED static gboolean 1161s # _g_value_equal (const GValue *a, const GValue *b) 1161s # { 1161s # gboolean ret = FALSE; 1161s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 1161s # switch (G_VALUE_TYPE (a)) 1161s # { 1161s # case G_TYPE_BOOLEAN: 1161s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 1161s # break; 1161s # case G_TYPE_UCHAR: 1161s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 1161s # break; 1161s # case G_TYPE_INT: 1161s # ret = (g_value_get_int (a) == g_value_get_int (b)); 1161s # break; 1161s # case G_TYPE_UINT: 1161s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 1161s # break; 1161s # case G_TYPE_INT64: 1161s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 1161s # break; 1161s # case G_TYPE_UINT64: 1161s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 1161s # break; 1161s # case G_TYPE_DOUBLE: 1161s # { 1161s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 1161s # gdouble da = g_value_get_double (a); 1161s # gdouble db = g_value_get_double (b); 1161s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 1161s # } 1161s # break; 1161s # case G_TYPE_STRING: 1161s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 1161s # break; 1161s # case G_TYPE_VARIANT: 1161s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 1161s # break; 1161s # default: 1161s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 1161s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 1161s # else 1161s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 1161s # break; 1161s # } 1161s # return ret; 1161s # } 1161s # 1161s # /* ------------------------------------------------------------------------ 1161s # * Code for interface org.project.SignalingIface 1161s # * ------------------------------------------------------------------------ 1161s # */ 1161s # 1161s # /** 1161s # * SECTION:OrgProjectSignalingIface 1161s # * @title: OrgProjectSignalingIface 1161s # * @short_description: Generated C code for the org.project.SignalingIface D-Bus interface 1161s # * 1161s # * This section contains code for working with the org.project.SignalingIface D-Bus interface in C. 1161s # */ 1161s # 1161s # enum 1161s # { 1161s # _ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL, 1161s # _ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_AAY, 1161s # }; 1161s # 1161s # static unsigned _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[2] = { 0 }; 1161s # 1161s # /* ---- Introspection data for org.project.SignalingIface ---- */ 1161s # 1161s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_simple_signal = 1161s # { 1161s # { 1161s # -1, 1161s # (gchar *) "SimpleSignal", 1161s # NULL, 1161s # NULL 1161s # }, 1161s # "simple-signal" 1161s # }; 1161s # 1161s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_single_arg_signal_aay_ARG_arg_aay = 1161s # { 1161s # { 1161s # -1, 1161s # (gchar *) "arg_aay", 1161s # (gchar *) "aay", 1161s # NULL 1161s # }, 1161s # FALSE 1161s # }; 1161s # 1161s # static const GDBusArgInfo * const _org_project_signaling_iface_signal_info_single_arg_signal_aay_ARG_pointers[] = 1161s # { 1161s # &_org_project_signaling_iface_signal_info_single_arg_signal_aay_ARG_arg_aay.parent_struct, 1161s # NULL 1161s # }; 1161s # 1161s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_single_arg_signal_aay = 1161s # { 1161s # { 1161s # -1, 1161s # (gchar *) "SingleArgSignalAay", 1161s # (GDBusArgInfo **) &_org_project_signaling_iface_signal_info_single_arg_signal_aay_ARG_pointers, 1161s # NULL 1161s # }, 1161s # "single-arg-signal-aay" 1161s # }; 1161s # 1161s # static const GDBusSignalInfo * const _org_project_signaling_iface_signal_info_pointers[] = 1161s # { 1161s # &_org_project_signaling_iface_signal_info_simple_signal.parent_struct, 1161s # &_org_project_signaling_iface_signal_info_single_arg_signal_aay.parent_struct, 1161s # NULL 1161s # }; 1161s # 1161s # static const _ExtendedGDBusInterfaceInfo _org_project_signaling_iface_interface_info = 1161s # { 1161s # { 1161s # -1, 1161s # (gchar *) "org.project.SignalingIface", 1161s # NULL, 1161s # (GDBusSignalInfo **) &_org_project_signaling_iface_signal_info_pointers, 1161s # NULL, 1161s # NULL 1161s # }, 1161s # "org-project-signaling-iface", 1161s # }; 1161s # 1161s # 1161s # /** 1161s # * org_project_signaling_iface_interface_info: 1161s # * 1161s # * Gets a machine-readable description of the org.project.SignalingIface D-Bus interface. 1161s # * 1161s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 1161s # */ 1161s # GDBusInterfaceInfo * 1161s # org_project_signaling_iface_interface_info (void) 1161s # { 1161s # return (GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct; 1161s # } 1161s # 1161s # /** 1161s # * org_project_signaling_iface_override_properties: 1161s # * @klass: The class structure for a #GObject derived class. 1161s # * @property_id_begin: The property id to assign to the first overridden property. 1161s # * 1161s # * Overrides all #GObject properties in the #OrgProjectSignalingIface interface for a concrete class. 1161s # * The properties are overridden in the order they are defined. 1161s # * 1161s # * Returns: The last property id. 1161s # */ 1161s # guint 1161s # org_project_signaling_iface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 1161s # { 1161s # return property_id_begin - 1; 1161s # } 1161s # 1161s # 1161s # inline static void 1161s # org_project_signaling_iface_signal_marshal_simple_signal ( 1161s # GClosure *closure, 1161s # GValue *return_value, 1161s # unsigned int n_param_values, 1161s # const GValue *param_values, 1161s # void *invocation_hint, 1161s # void *marshal_data) 1161s # { 1161s # g_cclosure_marshal_VOID__VOID (closure, 1161s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1161s # } 1161s # 1161s # inline static void 1161s # org_project_signaling_iface_signal_marshal_single_arg_signal_aay ( 1161s # GClosure *closure, 1161s # GValue *return_value, 1161s # unsigned int n_param_values, 1161s # const GValue *param_values, 1161s # void *invocation_hint, 1161s # void *marshal_data) 1161s # { 1161s # g_cclosure_marshal_VOID__BOXED (closure, 1161s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1161s # } 1161s # 1161s # 1161s # /** 1161s # * OrgProjectSignalingIface: 1161s # * 1161s # * Abstract interface type for the D-Bus interface org.project.SignalingIface. 1161s # */ 1161s # 1161s # /** 1161s # * OrgProjectSignalingIfaceIface: 1161s # * @parent_iface: The parent interface. 1161s # * @simple_signal: Handler for the #OrgProjectSignalingIface::simple-signal signal. 1161s # * @single_arg_signal_aay: Handler for the #OrgProjectSignalingIface::single-arg-signal-aay signal. 1161s # * 1161s # * Virtual table for the D-Bus interface org.project.SignalingIface. 1161s # */ 1161s # 1161s # typedef OrgProjectSignalingIfaceIface OrgProjectSignalingIfaceInterface; 1161s # G_DEFINE_INTERFACE (OrgProjectSignalingIface, org_project_signaling_iface, G_TYPE_OBJECT) 1161s # 1161s # static void 1161s # org_project_signaling_iface_default_init (OrgProjectSignalingIfaceIface *iface) 1161s # { 1161s # /* GObject signals for received D-Bus signals: */ 1161s # /** 1161s # * OrgProjectSignalingIface::simple-signal: 1161s # * @object: A #OrgProjectSignalingIface. 1161s # * 1161s # * On the client-side, this signal is emitted whenever the D-Bus signal "SimpleSignal" is received. 1161s # * 1161s # * 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. 1161s # */ 1161s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL] = 1161s # g_signal_new ("simple-signal", 1161s # G_TYPE_FROM_INTERFACE (iface), 1161s # G_SIGNAL_RUN_LAST, 1161s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, simple_signal), 1161s # NULL, 1161s # NULL, 1161s # org_project_signaling_iface_signal_marshal_simple_signal, 1161s # G_TYPE_NONE, 1161s # 0); 1161s # 1161s # /** 1161s # * OrgProjectSignalingIface::single-arg-signal-aay: 1161s # * @object: A #OrgProjectSignalingIface. 1161s # * @arg_arg_aay: Argument. 1161s # * 1161s # * On the client-side, this signal is emitted whenever the D-Bus signal "SingleArgSignalAay" is received. 1161s # * 1161s # * 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. 1161s # */ 1161s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_AAY] = 1161s # g_signal_new ("single-arg-signal-aay", 1161s # G_TYPE_FROM_INTERFACE (iface), 1161s # G_SIGNAL_RUN_LAST, 1161s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, single_arg_signal_aay), 1161s # NULL, 1161s # NULL, 1161s # org_project_signaling_iface_signal_marshal_single_arg_signal_aay, 1161s # G_TYPE_NONE, 1161s # 1, G_TYPE_STRV); 1161s # 1161s # } 1161s # 1161s # /** 1161s # * org_project_signaling_iface_emit_simple_signal: 1161s # * @object: A #OrgProjectSignalingIface. 1161s # * 1161s # * Emits the "SimpleSignal" D-Bus signal. 1161s # */ 1161s # void 1161s # org_project_signaling_iface_emit_simple_signal ( 1161s # OrgProjectSignalingIface *object) 1161s # { 1161s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL], 0); 1161s # } 1161s # 1161s # /** 1161s # * org_project_signaling_iface_emit_single_arg_signal_aay: 1161s # * @object: A #OrgProjectSignalingIface. 1161s # * @arg_arg_aay: Argument to pass with the signal. 1161s # * 1161s # * Emits the "SingleArgSignalAay" D-Bus signal. 1161s # */ 1161s # void 1161s # org_project_signaling_iface_emit_single_arg_signal_aay ( 1161s # OrgProjectSignalingIface *object, 1161s # const gchar *const *arg_arg_aay) 1161s # { 1161s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_AAY], 0, arg_arg_aay); 1161s # } 1161s # 1161s # /* ------------------------------------------------------------------------ */ 1161s # 1161s # /** 1161s # * OrgProjectSignalingIfaceProxy: 1161s # * 1161s # * The #OrgProjectSignalingIfaceProxy structure contains only private data and should only be accessed using the provided API. 1161s # */ 1161s # 1161s # /** 1161s # * OrgProjectSignalingIfaceProxyClass: 1161s # * @parent_class: The parent class. 1161s # * 1161s # * Class structure for #OrgProjectSignalingIfaceProxy. 1161s # */ 1161s # 1161s # struct _OrgProjectSignalingIfaceProxyPrivate 1161s # { 1161s # GData *qdata; 1161s # }; 1161s # 1161s # static void org_project_signaling_iface_proxy_iface_init (OrgProjectSignalingIfaceIface *iface); 1161s # 1161s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1161s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceProxy, org_project_signaling_iface_proxy, G_TYPE_DBUS_PROXY, 1161s # G_ADD_PRIVATE (OrgProjectSignalingIfaceProxy) 1161s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_proxy_iface_init)) 1161s # 1161s # #else 1161s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceProxy, org_project_signaling_iface_proxy, G_TYPE_DBUS_PROXY, 1161s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_proxy_iface_init)) 1161s # 1161s # #endif 1161s # static void 1161s # org_project_signaling_iface_proxy_finalize (GObject *object) 1161s # { 1161s # OrgProjectSignalingIfaceProxy *proxy = ORG_PROJECT_SIGNALING_IFACE_PROXY (object); 1161s # g_datalist_clear (&proxy->priv->qdata); 1161s # G_OBJECT_CLASS (org_project_signaling_iface_proxy_parent_class)->finalize (object); 1161s # } 1161s # 1161s # static void 1161s # org_project_signaling_iface_proxy_get_property (GObject *object G_GNUC_UNUSED, 1161s # guint prop_id G_GNUC_UNUSED, 1161s # GValue *value G_GNUC_UNUSED, 1161s # GParamSpec *pspec G_GNUC_UNUSED) 1161s # { 1161s # } 1161s # 1161s # static void 1161s # org_project_signaling_iface_proxy_set_property (GObject *object G_GNUC_UNUSED, 1161s # guint prop_id G_GNUC_UNUSED, 1161s # const GValue *value G_GNUC_UNUSED, 1161s # GParamSpec *pspec G_GNUC_UNUSED) 1161s # { 1161s # } 1161s # 1161s # static void 1161s # org_project_signaling_iface_proxy_g_signal (GDBusProxy *proxy, 1161s # const gchar *sender_name G_GNUC_UNUSED, 1161s # const gchar *signal_name, 1161s # GVariant *parameters) 1161s # { 1161s # _ExtendedGDBusSignalInfo *info; 1161s # GVariantIter iter; 1161s # GVariant *child; 1161s # GValue *paramv; 1161s # gsize num_params; 1161s # gsize n; 1161s # guint signal_id; 1161s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, signal_name); 1161s # if (info == NULL) 1161s # return; 1161s # num_params = g_variant_n_children (parameters); 1161s # paramv = g_new0 (GValue, num_params + 1); 1161s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_SIGNALING_IFACE); 1161s # g_value_set_object (¶mv[0], proxy); 1161s # g_variant_iter_init (&iter, parameters); 1161s # n = 1; 1161s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1161s # { 1161s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 1161s # if (arg_info->use_gvariant) 1161s # { 1161s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1161s # g_value_set_variant (¶mv[n], child); 1161s # n++; 1161s # } 1161s # else 1161s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1161s # g_variant_unref (child); 1161s # } 1161s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_SIGNALING_IFACE); 1161s # g_signal_emitv (paramv, signal_id, 0, NULL); 1161s # for (n = 0; n < num_params + 1; n++) 1161s # g_value_unset (¶mv[n]); 1161s # g_free (paramv); 1161s # } 1161s # 1161s # static void 1161s # org_project_signaling_iface_proxy_g_properties_changed (GDBusProxy *_proxy, 1161s # GVariant *changed_properties, 1161s # const gchar *const *invalidated_properties) 1161s # { 1161s # OrgProjectSignalingIfaceProxy *proxy = ORG_PROJECT_SIGNALING_IFACE_PROXY (_proxy); 1161s # guint n; 1161s # const gchar *key; 1161s # GVariantIter *iter; 1161s # _ExtendedGDBusPropertyInfo *info; 1161s # g_variant_get (changed_properties, "a{sv}", &iter); 1161s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 1161s # { 1161s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, key); 1161s # g_datalist_remove_data (&proxy->priv->qdata, key); 1161s # if (info != NULL) 1161s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1161s # } 1161s # g_variant_iter_free (iter); 1161s # for (n = 0; invalidated_properties[n] != NULL; n++) 1161s # { 1161s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, invalidated_properties[n]); 1161s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 1161s # if (info != NULL) 1161s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1161s # } 1161s # } 1161s # 1161s # static void 1161s # org_project_signaling_iface_proxy_init (OrgProjectSignalingIfaceProxy *proxy) 1161s # { 1161s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1161s # proxy->priv = org_project_signaling_iface_proxy_get_instance_private (proxy); 1161s # #else 1161s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_SIGNALING_IFACE_PROXY, OrgProjectSignalingIfaceProxyPrivate); 1161s # #endif 1161s # 1161s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_signaling_iface_interface_info ()); 1161s # } 1161s # 1161s # static void 1161s # org_project_signaling_iface_proxy_class_init (OrgProjectSignalingIfaceProxyClass *klass) 1161s # { 1161s # GObjectClass *gobject_class; 1161s # GDBusProxyClass *proxy_class; 1161s # 1161s # gobject_class = G_OBJECT_CLASS (klass); 1161s # gobject_class->finalize = org_project_signaling_iface_proxy_finalize; 1161s # gobject_class->get_property = org_project_signaling_iface_proxy_get_property; 1161s # gobject_class->set_property = org_project_signaling_iface_proxy_set_property; 1161s # 1161s # proxy_class = G_DBUS_PROXY_CLASS (klass); 1161s # proxy_class->g_signal = org_project_signaling_iface_proxy_g_signal; 1161s # proxy_class->g_properties_changed = org_project_signaling_iface_proxy_g_properties_changed; 1161s # 1161s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1161s # g_type_class_add_private (klass, sizeof (OrgProjectSignalingIfaceProxyPrivate)); 1161s # #endif 1161s # } 1161s # 1161s # static void 1161s # org_project_signaling_iface_proxy_iface_init (OrgProjectSignalingIfaceIface *iface G_GNUC_UNUSED) 1161s # { 1161s # } 1161s # 1161s # /** 1161s # * org_project_signaling_iface_proxy_new: 1161s # * @connection: A #GDBusConnection. 1161s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1161s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1161s # * @object_path: An object path. 1161s # * @cancellable: (nullable): A #GCancellable or %NULL. 1161s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1161s # * @user_data: User data to pass to @callback. 1161s # * 1161s # * Asynchronously creates a proxy for the D-Bus interface org.project.SignalingIface. See g_dbus_proxy_new() for more details. 1161s # * 1161s # * 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()). 1161s # * You can then call org_project_signaling_iface_proxy_new_finish() to get the result of the operation. 1161s # * 1161s # * See org_project_signaling_iface_proxy_new_sync() for the synchronous, blocking version of this constructor. 1161s # */ 1161s # void 1161s # org_project_signaling_iface_proxy_new ( 1161s # GDBusConnection *connection, 1161s # GDBusProxyFlags flags, 1161s # const gchar *name, 1161s # const gchar *object_path, 1161s # GCancellable *cancellable, 1161s # GAsyncReadyCallback callback, 1161s # gpointer user_data) 1161s # { 1161s # 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); 1161s # } 1161s # 1161s # /** 1161s # * org_project_signaling_iface_proxy_new_finish: 1161s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_signaling_iface_proxy_new(). 1161s # * @error: Return location for error or %NULL 1161s # * 1161s # * Finishes an operation started with org_project_signaling_iface_proxy_new(). 1161s # * 1161s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 1161s # */ 1161s # OrgProjectSignalingIface * 1161s # org_project_signaling_iface_proxy_new_finish ( 1161s # GAsyncResult *res, 1161s # GError **error) 1161s # { 1161s # GObject *ret; 1161s # GObject *source_object; 1161s # source_object = g_async_result_get_source_object (res); 1161s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1161s # g_object_unref (source_object); 1161s # if (ret != NULL) 1161s # return ORG_PROJECT_SIGNALING_IFACE (ret); 1161s # else 1161s # return NULL; 1161s # } 1161s # 1161s # /** 1161s # * org_project_signaling_iface_proxy_new_sync: 1161s # * @connection: A #GDBusConnection. 1161s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1161s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1161s # * @object_path: An object path. 1161s # * @cancellable: (nullable): A #GCancellable or %NULL. 1161s # * @error: Return location for error or %NULL 1161s # * 1161s # * Synchronously creates a proxy for the D-Bus interface org.project.SignalingIface. See g_dbus_proxy_new_sync() for more details. 1161s # * 1161s # * The calling thread is blocked until a reply is received. 1161s # * 1161s # * See org_project_signaling_iface_proxy_new() for the asynchronous version of this constructor. 1161s # * 1161s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 1161s # */ 1161s # OrgProjectSignalingIface * 1161s # org_project_signaling_iface_proxy_new_sync ( 1161s # GDBusConnection *connection, 1161s # GDBusProxyFlags flags, 1161s # const gchar *name, 1161s # const gchar *object_path, 1161s # GCancellable *cancellable, 1161s # GError **error) 1161s # { 1161s # GInitable *ret; 1161s # 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); 1161s # if (ret != NULL) 1161s # return ORG_PROJECT_SIGNALING_IFACE (ret); 1161s # else 1161s # return NULL; 1161s # } 1161s # 1161s # 1161s # /** 1161s # * org_project_signaling_iface_proxy_new_for_bus: 1161s # * @bus_type: A #GBusType. 1161s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1161s # * @name: A bus name (well-known or unique). 1161s # * @object_path: An object path. 1161s # * @cancellable: (nullable): A #GCancellable or %NULL. 1161s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1161s # * @user_data: User data to pass to @callback. 1161s # * 1161s # * Like org_project_signaling_iface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 1161s # * 1161s # * 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()). 1161s # * You can then call org_project_signaling_iface_proxy_new_for_bus_finish() to get the result of the operation. 1161s # * 1161s # * See org_project_signaling_iface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 1161s # */ 1161s # void 1161s # org_project_signaling_iface_proxy_new_for_bus ( 1161s # GBusType bus_type, 1161s # GDBusProxyFlags flags, 1161s # const gchar *name, 1161s # const gchar *object_path, 1161s # GCancellable *cancellable, 1161s # GAsyncReadyCallback callback, 1161s # gpointer user_data) 1161s # { 1161s # 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); 1161s # } 1161s # 1161s # /** 1161s # * org_project_signaling_iface_proxy_new_for_bus_finish: 1161s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_signaling_iface_proxy_new_for_bus(). 1161s # * @error: Return location for error or %NULL 1161s # * 1161s # * Finishes an operation started with org_project_signaling_iface_proxy_new_for_bus(). 1161s # * 1161s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 1161s # */ 1161s # OrgProjectSignalingIface * 1161s # org_project_signaling_iface_proxy_new_for_bus_finish ( 1161s # GAsyncResult *res, 1161s # GError **error) 1161s # { 1161s # GObject *ret; 1161s # GObject *source_object; 1161s # source_object = g_async_result_get_source_object (res); 1161s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1161s # g_object_unref (source_object); 1161s # if (ret != NULL) 1161s # return ORG_PROJECT_SIGNALING_IFACE (ret); 1161s # else 1161s # return NULL; 1161s # } 1161s # 1161s # /** 1161s # * org_project_signaling_iface_proxy_new_for_bus_sync: 1161s # * @bus_type: A #GBusType. 1161s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1161s # * @name: A bus name (well-known or unique). 1161s # * @object_path: An object path. 1161s # * @cancellable: (nullable): A #GCancellable or %NULL. 1161s # * @error: Return location for error or %NULL 1161s # * 1161s # * Like org_project_signaling_iface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 1161s # * 1161s # * The calling thread is blocked until a reply is received. 1161s # * 1161s # * See org_project_signaling_iface_proxy_new_for_bus() for the asynchronous version of this constructor. 1161s # * 1161s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 1161s # */ 1161s # OrgProjectSignalingIface * 1161s # org_project_signaling_iface_proxy_new_for_bus_sync ( 1161s # GBusType bus_type, 1161s # GDBusProxyFlags flags, 1161s # const gchar *name, 1161s # const gchar *object_path, 1161s # GCancellable *cancellable, 1161s # GError **error) 1161s # { 1161s # GInitable *ret; 1161s # 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); 1161s # if (ret != NULL) 1161s # return ORG_PROJECT_SIGNALING_IFACE (ret); 1161s # else 1161s # return NULL; 1161s # } 1161s # 1161s # 1161s # /* ------------------------------------------------------------------------ */ 1161s # 1161s # /** 1161s # * OrgProjectSignalingIfaceSkeleton: 1161s # * 1161s # * The #OrgProjectSignalingIfaceSkeleton structure contains only private data and should only be accessed using the provided API. 1161s # */ 1161s # 1161s # /** 1161s # * OrgProjectSignalingIfaceSkeletonClass: 1161s # * @parent_class: The parent class. 1161s # * 1161s # * Class structure for #OrgProjectSignalingIfaceSkeleton. 1161s # */ 1161s # 1161s # struct _OrgProjectSignalingIfaceSkeletonPrivate 1161s # { 1161s # GValue *properties; 1161s # GList *changed_properties; 1161s # GSource *changed_properties_idle_source; 1161s # GMainContext *context; 1161s # GMutex lock; 1161s # }; 1161s # 1161s # static void 1161s # _org_project_signaling_iface_skeleton_handle_method_call ( 1161s # GDBusConnection *connection G_GNUC_UNUSED, 1161s # const gchar *sender G_GNUC_UNUSED, 1161s # const gchar *object_path G_GNUC_UNUSED, 1161s # const gchar *interface_name, 1161s # const gchar *method_name, 1161s # GVariant *parameters, 1161s # GDBusMethodInvocation *invocation, 1161s # gpointer user_data) 1161s # { 1161s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 1161s # _ExtendedGDBusMethodInfo *info; 1161s # GVariantIter iter; 1161s # GVariant *child; 1161s # GValue *paramv; 1161s # gsize num_params; 1161s # guint num_extra; 1161s # gsize n; 1161s # guint signal_id; 1161s # GValue return_value = G_VALUE_INIT; 1161s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 1161s # g_assert (info != NULL); 1161s # num_params = g_variant_n_children (parameters); 1161s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 1161s # n = 0; 1161s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_SIGNALING_IFACE); 1161s # g_value_set_object (¶mv[n++], skeleton); 1161s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 1161s # g_value_set_object (¶mv[n++], invocation); 1161s # if (info->pass_fdlist) 1161s # { 1161s # #ifdef G_OS_UNIX 1161s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 1161s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 1161s # #else 1161s # g_assert_not_reached (); 1161s # #endif 1161s # } 1161s # g_variant_iter_init (&iter, parameters); 1161s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1161s # { 1161s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 1161s # if (arg_info->use_gvariant) 1161s # { 1161s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1161s # g_value_set_variant (¶mv[n], child); 1161s # n++; 1161s # } 1161s # else 1161s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1161s # g_variant_unref (child); 1161s # } 1161s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_SIGNALING_IFACE); 1161s # g_value_init (&return_value, G_TYPE_BOOLEAN); 1161s # g_signal_emitv (paramv, signal_id, 0, &return_value); 1161s # if (!g_value_get_boolean (&return_value)) 1161s # 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); 1161s # g_value_unset (&return_value); 1161s # for (n = 0; n < num_params + num_extra; n++) 1161s # g_value_unset (¶mv[n]); 1161s # g_free (paramv); 1161s # } 1161s # 1161s # static GVariant * 1161s # _org_project_signaling_iface_skeleton_handle_get_property ( 1161s # GDBusConnection *connection G_GNUC_UNUSED, 1161s # const gchar *sender G_GNUC_UNUSED, 1161s # const gchar *object_path G_GNUC_UNUSED, 1161s # const gchar *interface_name G_GNUC_UNUSED, 1161s # const gchar *property_name, 1161s # GError **error, 1161s # gpointer user_data) 1161s # { 1161s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 1161s # GValue value = G_VALUE_INIT; 1161s # GParamSpec *pspec; 1161s # _ExtendedGDBusPropertyInfo *info; 1161s # GVariant *ret; 1161s # ret = NULL; 1161s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, property_name); 1161s # g_assert (info != NULL); 1161s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1161s # if (pspec == NULL) 1161s # { 1161s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1161s # } 1161s # else 1161s # { 1161s # g_value_init (&value, pspec->value_type); 1161s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1161s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 1161s # g_value_unset (&value); 1161s # } 1161s # return ret; 1161s # } 1161s # 1161s # static gboolean 1161s # _org_project_signaling_iface_skeleton_handle_set_property ( 1161s # GDBusConnection *connection G_GNUC_UNUSED, 1161s # const gchar *sender G_GNUC_UNUSED, 1161s # const gchar *object_path G_GNUC_UNUSED, 1161s # const gchar *interface_name G_GNUC_UNUSED, 1161s # const gchar *property_name, 1161s # GVariant *variant, 1161s # GError **error, 1161s # gpointer user_data) 1161s # { 1161s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 1161s # GValue value = G_VALUE_INIT; 1161s # GParamSpec *pspec; 1161s # _ExtendedGDBusPropertyInfo *info; 1161s # gboolean ret; 1161s # ret = FALSE; 1161s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, property_name); 1161s # g_assert (info != NULL); 1161s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1161s # if (pspec == NULL) 1161s # { 1161s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1161s # } 1161s # else 1161s # { 1161s # if (info->use_gvariant) 1161s # g_value_set_variant (&value, variant); 1161s # else 1161s # g_dbus_gvariant_to_gvalue (variant, &value); 1161s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1161s # g_value_unset (&value); 1161s # ret = TRUE; 1161s # } 1161s # return ret; 1161s # } 1161s # 1161s # static const GDBusInterfaceVTable _org_project_signaling_iface_skeleton_vtable = 1161s # { 1161s # _org_project_signaling_iface_skeleton_handle_method_call, 1161s # _org_project_signaling_iface_skeleton_handle_get_property, 1161s # _org_project_signaling_iface_skeleton_handle_set_property, 1161s # {NULL} 1161s # }; 1161s # 1161s # static GDBusInterfaceInfo * 1161s # org_project_signaling_iface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1161s # { 1161s # return org_project_signaling_iface_interface_info (); 1161s # } 1161s # 1161s # static GDBusInterfaceVTable * 1161s # org_project_signaling_iface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1161s # { 1161s # return (GDBusInterfaceVTable *) &_org_project_signaling_iface_skeleton_vtable; 1161s # } 1161s # 1161s # static GVariant * 1161s # org_project_signaling_iface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 1161s # { 1161s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (_skeleton); 1161s # 1161s # GVariantBuilder builder; 1161s # guint n; 1161s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 1161s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 1161s # #else 1161s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 1161s # #endif 1161s # if (_org_project_signaling_iface_interface_info.parent_struct.properties == NULL) 1161s # goto out; 1161s # for (n = 0; _org_project_signaling_iface_interface_info.parent_struct.properties[n] != NULL; n++) 1161s # { 1161s # GDBusPropertyInfo *info = _org_project_signaling_iface_interface_info.parent_struct.properties[n]; 1161s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 1161s # { 1161s # GVariant *value; 1161s # 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); 1161s # if (value != NULL) 1161s # { 1161s # g_variant_take_ref (value); 1161s # g_variant_builder_add (&builder, "{sv}", info->name, value); 1161s # g_variant_unref (value); 1161s # } 1161s # } 1161s # } 1161s # out: 1161s # return g_variant_builder_end (&builder); 1161s # } 1161s # 1161s # static void 1161s # org_project_signaling_iface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 1161s # { 1161s # } 1161s # 1161s # static void 1161s # _org_project_signaling_iface_on_signal_simple_signal ( 1161s # OrgProjectSignalingIface *object) 1161s # { 1161s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 1161s # 1161s # GList *connections, *l; 1161s # GVariant *signal_variant; 1161s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 1161s # 1161s # signal_variant = g_variant_ref_sink (g_variant_new ("()")); 1161s # for (l = connections; l != NULL; l = l->next) 1161s # { 1161s # GDBusConnection *connection = l->data; 1161s # g_dbus_connection_emit_signal (connection, 1161s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SimpleSignal", 1161s # signal_variant, NULL); 1161s # } 1161s # g_variant_unref (signal_variant); 1161s # g_list_free_full (connections, g_object_unref); 1161s # } 1161s # 1161s # static void 1161s # _org_project_signaling_iface_on_signal_single_arg_signal_aay ( 1161s # OrgProjectSignalingIface *object, 1161s # const gchar *const *arg_arg_aay) 1161s # { 1161s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 1161s # 1161s # GList *connections, *l; 1161s # GVariant *signal_variant; 1161s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 1161s # 1161s # signal_variant = g_variant_ref_sink (g_variant_new ("(^aay)", 1161s # arg_arg_aay)); 1161s # for (l = connections; l != NULL; l = l->next) 1161s # { 1161s # GDBusConnection *connection = l->data; 1161s # g_dbus_connection_emit_signal (connection, 1161s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SingleArgSignalAay", 1161s # signal_variant, NULL); 1161s # } 1161s # g_variant_unref (signal_variant); 1161s # g_list_free_full (connections, g_object_unref); 1161s # } 1161s # 1161s # static void org_project_signaling_iface_skeleton_iface_init (OrgProjectSignalingIfaceIface *iface); 1161s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1161s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceSkeleton, org_project_signaling_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1161s # G_ADD_PRIVATE (OrgProjectSignalingIfaceSkeleton) 1161s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_skeleton_iface_init)) 1161s # 1161s # #else 1161s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceSkeleton, org_project_signaling_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1161s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_skeleton_iface_init)) 1161s # 1161s # #endif 1161s # static void 1161s # org_project_signaling_iface_skeleton_finalize (GObject *object) 1161s # { 1161s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 1161s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 1161s # if (skeleton->priv->changed_properties_idle_source != NULL) 1161s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 1161s # g_main_context_unref (skeleton->priv->context); 1161s # g_mutex_clear (&skeleton->priv->lock); 1161s # G_OBJECT_CLASS (org_project_signaling_iface_skeleton_parent_class)->finalize (object); 1161s # } 1161s # 1161s # static void 1161s # org_project_signaling_iface_skeleton_init (OrgProjectSignalingIfaceSkeleton *skeleton) 1161s # { 1161s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1161s # skeleton->priv = org_project_signaling_iface_skeleton_get_instance_private (skeleton); 1161s # #else 1161s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_SIGNALING_IFACE_SKELETON, OrgProjectSignalingIfaceSkeletonPrivate); 1161s # #endif 1161s # 1161s # g_mutex_init (&skeleton->priv->lock); 1161s # skeleton->priv->context = g_main_context_ref_thread_default (); 1161s # } 1161s # 1161s # static void 1161s # org_project_signaling_iface_skeleton_class_init (OrgProjectSignalingIfaceSkeletonClass *klass) 1161s # { 1161s # GObjectClass *gobject_class; 1161s # GDBusInterfaceSkeletonClass *skeleton_class; 1161s # 1161s # gobject_class = G_OBJECT_CLASS (klass); 1161s # gobject_class->finalize = org_project_signaling_iface_skeleton_finalize; 1161s # 1161s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 1161s # skeleton_class->get_info = org_project_signaling_iface_skeleton_dbus_interface_get_info; 1161s # skeleton_class->get_properties = org_project_signaling_iface_skeleton_dbus_interface_get_properties; 1161s # skeleton_class->flush = org_project_signaling_iface_skeleton_dbus_interface_flush; 1161s # skeleton_class->get_vtable = org_project_signaling_iface_skeleton_dbus_interface_get_vtable; 1161s # 1161s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1161s # g_type_class_add_private (klass, sizeof (OrgProjectSignalingIfaceSkeletonPrivate)); 1161s # #endif 1161s # } 1161s # 1161s # static void 1161s # org_project_signaling_iface_skeleton_iface_init (OrgProjectSignalingIfaceIface *iface) 1161s # { 1161s # iface->simple_signal = _org_project_signaling_iface_on_signal_simple_signal; 1161s # iface->single_arg_signal_aay = _org_project_signaling_iface_on_signal_single_arg_signal_aay; 1161s # } 1161s # 1161s # /** 1161s # * org_project_signaling_iface_skeleton_new: 1161s # * 1161s # * Creates a skeleton object for the D-Bus interface org.project.SignalingIface. 1161s # * 1161s # * Returns: (transfer full) (type OrgProjectSignalingIfaceSkeleton): The skeleton object. 1161s # */ 1161s # OrgProjectSignalingIface * 1161s # org_project_signaling_iface_skeleton_new (void) 1161s # { 1161s # return ORG_PROJECT_SIGNALING_IFACE (g_object_new (TYPE_ORG_PROJECT_SIGNALING_IFACE_SKELETON, NULL)); 1161s # } 1161s # Error: 1161s # 1161s # /tmp/tmpjwrvmpd2/tmp3sxtnelh.xml: 1161s # 1161s # 1161s # 1161s # 1161s # 1161s # 1161s # 1161s # 1161s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpjwrvmpd2/tmp3sxtnelh.xml', '--output', '-', '--body'] 1161s # Return code: 0 1161s # Output: 1161s # /* 1161s # * This file is generated by gdbus-codegen, do not modify it. 1161s # * 1161s # * The license of this code is the same as for the D-Bus interface description 1161s # * it was derived from. Note that it links to GLib, so must comply with the 1161s # * LGPL linking clauses. 1161s # */ 1161s # 1161s # #ifdef HAVE_CONFIG_H 1161s # # include "config.h" 1161s # #endif 1161s # 1161s # #include 1161s # #ifdef G_OS_UNIX 1161s # # include 1161s # #endif 1161s # 1161s # #ifdef G_ENABLE_DEBUG 1161s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 1161s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 1161s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 1161s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 1161s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 1161s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 1161s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 1161s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 1161s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 1161s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 1161s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 1161s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 1161s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 1161s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 1161s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 1161s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 1161s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 1161s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 1161s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 1161s # #else /* !G_ENABLE_DEBUG */ 1161s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 1161s # * Do not access GValues directly in your code. Instead, use the 1161s # * g_value_get_*() functions 1161s # */ 1161s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 1161s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 1161s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 1161s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 1161s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 1161s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 1161s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 1161s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 1161s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 1161s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 1161s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 1161s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 1161s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 1161s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 1161s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 1161s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 1161s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 1161s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 1161s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 1161s # #endif /* !G_ENABLE_DEBUG */ 1161s # 1161s # typedef struct 1161s # { 1161s # GDBusArgInfo parent_struct; 1161s # gboolean use_gvariant; 1161s # } _ExtendedGDBusArgInfo; 1161s # 1161s # typedef struct 1161s # { 1161s # GDBusMethodInfo parent_struct; 1161s # const gchar *signal_name; 1161s # gboolean pass_fdlist; 1161s # } _ExtendedGDBusMethodInfo; 1161s # 1161s # typedef struct 1161s # { 1161s # GDBusSignalInfo parent_struct; 1161s # const gchar *signal_name; 1161s # } _ExtendedGDBusSignalInfo; 1161s # 1161s # typedef struct 1161s # { 1161s # GDBusPropertyInfo parent_struct; 1161s # const gchar *hyphen_name; 1161s # guint use_gvariant : 1; 1161s # guint emits_changed_signal : 1; 1161s # } _ExtendedGDBusPropertyInfo; 1161s # 1161s # typedef struct 1161s # { 1161s # GDBusInterfaceInfo parent_struct; 1161s # const gchar *hyphen_name; 1161s # } _ExtendedGDBusInterfaceInfo; 1161s # 1161s # typedef struct 1161s # { 1161s # const _ExtendedGDBusPropertyInfo *info; 1161s # guint prop_id; 1161s # GValue orig_value; /* the value before the change */ 1161s # } ChangedProperty; 1161s # 1161s # static void 1161s # _changed_property_free (ChangedProperty *data) 1161s # { 1161s # g_value_unset (&data->orig_value); 1161s # g_free (data); 1161s # } 1161s # 1161s # static gboolean 1161s # _g_strv_equal0 (gchar **a, gchar **b) 1161s # { 1161s # gboolean ret = FALSE; 1161s # guint n; 1161s # if (a == NULL && b == NULL) 1161s # { 1161s # ret = TRUE; 1161s # goto out; 1161s # } 1161s # if (a == NULL || b == NULL) 1161s # goto out; 1161s # if (g_strv_length (a) != g_strv_length (b)) 1161s # goto out; 1161s # for (n = 0; a[n] != NULL; n++) 1161s # if (g_strcmp0 (a[n], b[n]) != 0) 1161s # goto out; 1161s # ret = TRUE; 1161s # out: 1161s # return ret; 1161s # } 1161s # 1161s # static gboolean 1161s # _g_variant_equal0 (GVariant *a, GVariant *b) 1161s # { 1161s # gboolean ret = FALSE; 1161s # if (a == NULL && b == NULL) 1161s # { 1161s # ret = TRUE; 1161s # goto out; 1161s # } 1161s # if (a == NULL || b == NULL) 1161s # goto out; 1161s # ret = g_variant_equal (a, b); 1161s # out: 1161s # return ret; 1161s # } 1161s # 1161s # G_GNUC_UNUSED static gboolean 1161s # _g_value_equal (const GValue *a, const GValue *b) 1161s # { 1161s # gboolean ret = FALSE; 1161s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 1161s # switch (G_VALUE_TYPE (a)) 1161s # { 1161s # case G_TYPE_BOOLEAN: 1161s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 1161s # break; 1161s # case G_TYPE_UCHAR: 1161s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 1161s # break; 1161s # case G_TYPE_INT: 1161s # ret = (g_value_get_int (a) == g_value_get_int (b)); 1161s # break; 1161s # case G_TYPE_UINT: 1161s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 1161s # break; 1161s # case G_TYPE_INT64: 1161s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 1161s # break; 1161s # case G_TYPE_UINT64: 1161s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 1161s # break; 1161s # case G_TYPE_DOUBLE: 1161s # { 1161s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 1161s # gdouble da = g_value_get_double (a); 1161s # gdouble db = g_value_get_double (b); 1161s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 1161s # } 1161s # break; 1161s # case G_TYPE_STRING: 1161s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 1161s # break; 1161s # case G_TYPE_VARIANT: 1161s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 1161s # break; 1161s # default: 1161s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 1161s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 1161s # else 1161s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 1161s # break; 1161s # } 1161s # return ret; 1161s # } 1161s # 1161s # /* ------------------------------------------------------------------------ 1161s # * Code for interface org.project.SignalingIface 1161s # * ------------------------------------------------------------------------ 1161s # */ 1161s # 1161s # /** 1161s # * SECTION:OrgProjectSignalingIface 1161s # * @title: OrgProjectSignalingIface 1161s # * @short_description: Generated C code for the org.project.SignalingIface D-Bus interface 1161s # * 1161s # * This section contains code for working with the org.project.SignalingIface D-Bus interface in C. 1161s # */ 1161s # 1161s # enum 1161s # { 1161s # _ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL, 1161s # _ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_ASV, 1161s # }; 1161s # 1161s # static unsigned _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[2] = { 0 }; 1161s # 1161s # /* ---- Introspection data for org.project.SignalingIface ---- */ 1161s # 1161s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_simple_signal = 1161s # { 1161s # { 1161s # -1, 1161s # (gchar *) "SimpleSignal", 1161s # NULL, 1161s # NULL 1161s # }, 1161s # "simple-signal" 1161s # }; 1161s # 1161s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_single_arg_signal_asv_ARG_arg_asv = 1161s # { 1161s # { 1161s # -1, 1161s # (gchar *) "arg_asv", 1161s # (gchar *) "a{sv}", 1161s # NULL 1161s # }, 1161s # FALSE 1161s # }; 1161s # 1161s # static const GDBusArgInfo * const _org_project_signaling_iface_signal_info_single_arg_signal_asv_ARG_pointers[] = 1161s # { 1161s # &_org_project_signaling_iface_signal_info_single_arg_signal_asv_ARG_arg_asv.parent_struct, 1161s # NULL 1161s # }; 1161s # 1161s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_single_arg_signal_asv = 1161s # { 1161s # { 1161s # -1, 1161s # (gchar *) "SingleArgSignalAsv", 1161s # (GDBusArgInfo **) &_org_project_signaling_iface_signal_info_single_arg_signal_asv_ARG_pointers, 1161s # NULL 1161s # }, 1161s # "single-arg-signal-asv" 1161s # }; 1161s # 1161s # static const GDBusSignalInfo * const _org_project_signaling_iface_signal_info_pointers[] = 1161s # { 1161s # &_org_project_signaling_iface_signal_info_simple_signal.parent_struct, 1161s # &_org_project_signaling_iface_signal_info_single_arg_signal_asv.parent_struct, 1161s # NULL 1161s # }; 1161s # 1161s # static const _ExtendedGDBusInterfaceInfo _org_project_signaling_iface_interface_info = 1161s # { 1161s # { 1161s # -1, 1161s # (gchar *) "org.project.SignalingIface", 1161s # NULL, 1161s # (GDBusSignalInfo **) &_org_project_signaling_iface_signal_info_pointers, 1161s # NULL, 1161s # NULL 1161s # }, 1161s # "org-project-signaling-iface", 1161s # }; 1161s # 1161s # 1161s # /** 1161s # * org_project_signaling_iface_interface_info: 1161s # * 1161s # * Gets a machine-readable description of the org.project.SignalingIface D-Bus interface. 1161s # * 1161s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 1161s # */ 1161s # GDBusInterfaceInfo * 1161s # org_project_signaling_iface_interface_info (void) 1161s # { 1161s # return (GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct; 1161s # } 1161s # 1161s # /** 1161s # * org_project_signaling_iface_override_properties: 1161s # * @klass: The class structure for a #GObject derived class. 1161s # * @property_id_begin: The property id to assign to the first overridden property. 1161s # * 1161s # * Overrides all #GObject properties in the #OrgProjectSignalingIface interface for a concrete class. 1161s # * The properties are overridden in the order they are defined. 1161s # * 1161s # * Returns: The last property id. 1161s # */ 1161s # guint 1161s # org_project_signaling_iface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 1161s # { 1161s # return property_id_begin - 1; 1161s # } 1161s # 1161s # 1161s # inline static void 1161s # org_project_signaling_iface_signal_marshal_simple_signal ( 1161s # GClosure *closure, 1161s # GValue *return_value, 1161s # unsigned int n_param_values, 1161s # const GValue *param_values, 1161s # void *invocation_hint, 1161s # void *marshal_data) 1161s # { 1161s # g_cclosure_marshal_VOID__VOID (closure, 1161s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1161s # } 1161s # 1161s # inline static void 1161s # org_project_signaling_iface_signal_marshal_single_arg_signal_asv ( 1161s # GClosure *closure, 1161s # GValue *return_value, 1161s # unsigned int n_param_values, 1161s # const GValue *param_values, 1161s # void *invocation_hint, 1161s # void *marshal_data) 1161s # { 1161s # g_cclosure_marshal_VOID__VARIANT (closure, 1161s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1161s # } 1161s # 1161s # 1161s # /** 1161s # * OrgProjectSignalingIface: 1161s # * 1161s # * Abstract interface type for the D-Bus interface org.project.SignalingIface. 1161s # */ 1161s # 1161s # /** 1161s # * OrgProjectSignalingIfaceIface: 1161s # * @parent_iface: The parent interface. 1161s # * @simple_signal: Handler for the #OrgProjectSignalingIface::simple-signal signal. 1161s # * @single_arg_signal_asv: Handler for the #OrgProjectSignalingIface::single-arg-signal-asv signal. 1161s # * 1161s # * Virtual table for the D-Bus interface org.project.SignalingIface. 1161s # */ 1161s # 1161s # typedef OrgProjectSignalingIfaceIface OrgProjectSignalingIfaceInterface; 1161s # G_DEFINE_INTERFACE (OrgProjectSignalingIface, org_project_signaling_iface, G_TYPE_OBJECT) 1161s # 1161s # static void 1161s # org_project_signaling_iface_default_init (OrgProjectSignalingIfaceIface *iface) 1161s # { 1161s # /* GObject signals for received D-Bus signals: */ 1161s # /** 1161s # * OrgProjectSignalingIface::simple-signal: 1161s # * @object: A #OrgProjectSignalingIface. 1161s # * 1161s # * On the client-side, this signal is emitted whenever the D-Bus signal "SimpleSignal" is received. 1161s # * 1161s # * 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. 1161s # */ 1161s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL] = 1161s # g_signal_new ("simple-signal", 1161s # G_TYPE_FROM_INTERFACE (iface), 1161s # G_SIGNAL_RUN_LAST, 1161s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, simple_signal), 1161s # NULL, 1161s # NULL, 1161s # org_project_signaling_iface_signal_marshal_simple_signal, 1161s # G_TYPE_NONE, 1161s # 0); 1161s # 1161s # /** 1161s # * OrgProjectSignalingIface::single-arg-signal-asv: 1161s # * @object: A #OrgProjectSignalingIface. 1161s # * @arg_arg_asv: Argument. 1161s # * 1161s # * On the client-side, this signal is emitted whenever the D-Bus signal "SingleArgSignalAsv" is received. 1161s # * 1161s # * 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. 1161s # */ 1161s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_ASV] = 1161s # g_signal_new ("single-arg-signal-asv", 1161s # G_TYPE_FROM_INTERFACE (iface), 1161s # G_SIGNAL_RUN_LAST, 1161s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, single_arg_signal_asv), 1161s # NULL, 1161s # NULL, 1161s # org_project_signaling_iface_signal_marshal_single_arg_signal_asv, 1161s # G_TYPE_NONE, 1161s # 1, G_TYPE_VARIANT); 1161s # 1161s # } 1161s # 1161s # /** 1161s # * org_project_signaling_iface_emit_simple_signal: 1161s # * @object: A #OrgProjectSignalingIface. 1161s # * 1161s # * Emits the "SimpleSignal" D-Bus signal. 1161s # */ 1161s # void 1161s # org_project_signaling_iface_emit_simple_signal ( 1161s # OrgProjectSignalingIface *object) 1161s # { 1161s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL], 0); 1161s # } 1161s # 1161s # /** 1161s # * org_project_signaling_iface_emit_single_arg_signal_asv: 1161s # * @object: A #OrgProjectSignalingIface. 1161s # * @arg_arg_asv: Argument to pass with the signal. 1161s # * 1161s # * Emits the "SingleArgSignalAsv" D-Bus signal. 1161s # */ 1161s # void 1161s # org_project_signaling_iface_emit_single_arg_signal_asv ( 1161s # OrgProjectSignalingIface *object, 1161s # GVariant *arg_arg_asv) 1161s # { 1161s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_ASV], 0, arg_arg_asv); 1161s # } 1161s # 1161s # /* ------------------------------------------------------------------------ */ 1161s # 1161s # /** 1161s # * OrgProjectSignalingIfaceProxy: 1161s # * 1161s # * The #OrgProjectSignalingIfaceProxy structure contains only private data and should only be accessed using the provided API. 1161s # */ 1161s # 1161s # /** 1161s # * OrgProjectSignalingIfaceProxyClass: 1161s # * @parent_class: The parent class. 1161s # * 1161s # * Class structure for #OrgProjectSignalingIfaceProxy. 1161s # */ 1161s # 1161s # struct _OrgProjectSignalingIfaceProxyPrivate 1161s # { 1161s # GData *qdata; 1161s # }; 1161s # 1161s # static void org_project_signaling_iface_proxy_iface_init (OrgProjectSignalingIfaceIface *iface); 1161s # 1161s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1161s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceProxy, org_project_signaling_iface_proxy, G_TYPE_DBUS_PROXY, 1161s # G_ADD_PRIVATE (OrgProjectSignalingIfaceProxy) 1161s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_proxy_iface_init)) 1161s # 1161s # #else 1161s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceProxy, org_project_signaling_iface_proxy, G_TYPE_DBUS_PROXY, 1161s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_proxy_iface_init)) 1161s # 1161s # #endif 1161s # static void 1161s # org_project_signaling_iface_proxy_finalize (GObject *object) 1161s # { 1161s # OrgProjectSignalingIfaceProxy *proxy = ORG_PROJECT_SIGNALING_IFACE_PROXY (object); 1161s # g_datalist_clear (&proxy->priv->qdata); 1161s # G_OBJECT_CLASS (org_project_signaling_iface_proxy_parent_class)->finalize (object); 1161s # } 1161s # 1161s # static void 1161s # org_project_signaling_iface_proxy_get_property (GObject *object G_GNUC_UNUSED, 1161s # guint prop_id G_GNUC_UNUSED, 1161s # GValue *value G_GNUC_UNUSED, 1161s # GParamSpec *pspec G_GNUC_UNUSED) 1161s # { 1161s # } 1161s # 1161s # static void 1161s # org_project_signaling_iface_proxy_set_property (GObject *object G_GNUC_UNUSED, 1161s # guint prop_id G_GNUC_UNUSED, 1161s # const GValue *value G_GNUC_UNUSED, 1161s # GParamSpec *pspec G_GNUC_UNUSED) 1161s # { 1161s # } 1161s # 1161s # static void 1161s # org_project_signaling_iface_proxy_g_signal (GDBusProxy *proxy, 1161s # const gchar *sender_name G_GNUC_UNUSED, 1161s # const gchar *signal_name, 1161s # GVariant *parameters) 1161s # { 1161s # _ExtendedGDBusSignalInfo *info; 1161s # GVariantIter iter; 1161s # GVariant *child; 1161s # GValue *paramv; 1161s # gsize num_params; 1161s # gsize n; 1161s # guint signal_id; 1161s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, signal_name); 1161s # if (info == NULL) 1161s # return; 1161s # num_params = g_variant_n_children (parameters); 1161s # paramv = g_new0 (GValue, num_params + 1); 1161s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_SIGNALING_IFACE); 1161s # g_value_set_object (¶mv[0], proxy); 1161s # g_variant_iter_init (&iter, parameters); 1161s # n = 1; 1161s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1161s # { 1161s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 1161s # if (arg_info->use_gvariant) 1161s # { 1161s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1161s # g_value_set_variant (¶mv[n], child); 1161s # n++; 1161s # } 1161s # else 1161s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1161s # g_variant_unref (child); 1161s # } 1161s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_SIGNALING_IFACE); 1161s # g_signal_emitv (paramv, signal_id, 0, NULL); 1161s # for (n = 0; n < num_params + 1; n++) 1161s # g_value_unset (¶mv[n]); 1161s # g_free (paramv); 1161s # } 1161s # 1161s # static void 1161s # org_project_signaling_iface_proxy_g_properties_changed (GDBusProxy *_proxy, 1161s # GVariant *changed_properties, 1161s # const gchar *const *invalidated_properties) 1161s # { 1161s # OrgProjectSignalingIfaceProxy *proxy = ORG_PROJECT_SIGNALING_IFACE_PROXY (_proxy); 1161s # guint n; 1161s # const gchar *key; 1161s # GVariantIter *iter; 1161s # _ExtendedGDBusPropertyInfo *info; 1161s # g_variant_get (changed_properties, "a{sv}", &iter); 1161s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 1161s # { 1161s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, key); 1161s # g_datalist_remove_data (&proxy->priv->qdata, key); 1161s # if (info != NULL) 1161s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1161s # } 1161s # g_variant_iter_free (iter); 1161s # for (n = 0; invalidated_properties[n] != NULL; n++) 1161s # { 1161s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, invalidated_properties[n]); 1161s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 1161s # if (info != NULL) 1161s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1161s # } 1161s # } 1161s # 1161s # static void 1161s # org_project_signaling_iface_proxy_init (OrgProjectSignalingIfaceProxy *proxy) 1161s # { 1161s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1161s # proxy->priv = org_project_signaling_iface_proxy_get_instance_private (proxy); 1161s # #else 1161s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_SIGNALING_IFACE_PROXY, OrgProjectSignalingIfaceProxyPrivate); 1161s # #endif 1161s # 1161s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_signaling_iface_interface_info ()); 1161s # } 1161s # 1161s # static void 1161s # org_project_signaling_iface_proxy_class_init (OrgProjectSignalingIfaceProxyClass *klass) 1161s # { 1161s # GObjectClass *gobject_class; 1161s # GDBusProxyClass *proxy_class; 1161s # 1161s # gobject_class = G_OBJECT_CLASS (klass); 1161s # gobject_class->finalize = org_project_signaling_iface_proxy_finalize; 1161s # gobject_class->get_property = org_project_signaling_iface_proxy_get_property; 1161s # gobject_class->set_property = org_project_signaling_iface_proxy_set_property; 1161s # 1161s # proxy_class = G_DBUS_PROXY_CLASS (klass); 1161s # proxy_class->g_signal = org_project_signaling_iface_proxy_g_signal; 1161s # proxy_class->g_properties_changed = org_project_signaling_iface_proxy_g_properties_changed; 1161s # 1161s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1161s # g_type_class_add_private (klass, sizeof (OrgProjectSignalingIfaceProxyPrivate)); 1161s # #endif 1161s # } 1161s # 1161s # static void 1161s # org_project_signaling_iface_proxy_iface_init (OrgProjectSignalingIfaceIface *iface G_GNUC_UNUSED) 1161s # { 1161s # } 1161s # 1161s # /** 1161s # * org_project_signaling_iface_proxy_new: 1161s # * @connection: A #GDBusConnection. 1161s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1161s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1161s # * @object_path: An object path. 1161s # * @cancellable: (nullable): A #GCancellable or %NULL. 1161s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1161s # * @user_data: User data to pass to @callback. 1161s # * 1161s # * Asynchronously creates a proxy for the D-Bus interface org.project.SignalingIface. See g_dbus_proxy_new() for more details. 1161s # * 1161s # * 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()). 1161s # * You can then call org_project_signaling_iface_proxy_new_finish() to get the result of the operation. 1161s # * 1161s # * See org_project_signaling_iface_proxy_new_sync() for the synchronous, blocking version of this constructor. 1161s # */ 1161s # void 1161s # org_project_signaling_iface_proxy_new ( 1161s # GDBusConnection *connection, 1161s # GDBusProxyFlags flags, 1161s # const gchar *name, 1161s # const gchar *object_path, 1161s # GCancellable *cancellable, 1161s # GAsyncReadyCallback callback, 1161s # gpointer user_data) 1161s # { 1161s # 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); 1161s # } 1161s # 1161s # /** 1161s # * org_project_signaling_iface_proxy_new_finish: 1161s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_signaling_iface_proxy_new(). 1161s # * @error: Return location for error or %NULL 1161s # * 1161s # * Finishes an operation started with org_project_signaling_iface_proxy_new(). 1161s # * 1161s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 1161s # */ 1161s # OrgProjectSignalingIface * 1161s # org_project_signaling_iface_proxy_new_finish ( 1161s # GAsyncResult *res, 1161s # GError **error) 1161s # { 1161s # GObject *ret; 1161s # GObject *source_object; 1161s # source_object = g_async_result_get_source_object (res); 1161s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1161s # g_object_unref (source_object); 1161s # if (ret != NULL) 1161s # return ORG_PROJECT_SIGNALING_IFACE (ret); 1161s # else 1161s # return NULL; 1161s # } 1161s # 1161s # /** 1161s # * org_project_signaling_iface_proxy_new_sync: 1161s # * @connection: A #GDBusConnection. 1161s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1161s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1161s # * @object_path: An object path. 1161s # * @cancellable: (nullable): A #GCancellable or %NULL. 1161s # * @error: Return location for error or %NULL 1161s # * 1161s # * Synchronously creates a proxy for the D-Bus interface org.project.SignalingIface. See g_dbus_proxy_new_sync() for more details. 1161s # * 1161s # * The calling thread is blocked until a reply is received. 1161s # * 1161s # * See org_project_signaling_iface_proxy_new() for the asynchronous version of this constructor. 1161s # * 1161s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 1161s # */ 1161s # OrgProjectSignalingIface * 1161s # org_project_signaling_iface_proxy_new_sync ( 1161s # GDBusConnection *connection, 1161s # GDBusProxyFlags flags, 1161s # const gchar *name, 1161s # const gchar *object_path, 1161s # GCancellable *cancellable, 1161s # GError **error) 1161s # { 1161s # GInitable *ret; 1161s # 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); 1161s # if (ret != NULL) 1161s # return ORG_PROJECT_SIGNALING_IFACE (ret); 1161s # else 1161s # return NULL; 1161s # } 1161s # 1161s # 1161s # /** 1161s # * org_project_signaling_iface_proxy_new_for_bus: 1161s # * @bus_type: A #GBusType. 1161s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1161s # * @name: A bus name (well-known or unique). 1161s # * @object_path: An object path. 1161s # * @cancellable: (nullable): A #GCancellable or %NULL. 1161s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1161s # * @user_data: User data to pass to @callback. 1161s # * 1161s # * Like org_project_signaling_iface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 1161s # * 1161s # * 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()). 1161s # * You can then call org_project_signaling_iface_proxy_new_for_bus_finish() to get the result of the operation. 1161s # * 1161s # * See org_project_signaling_iface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 1161s # */ 1161s # void 1161s # org_project_signaling_iface_proxy_new_for_bus ( 1161s # GBusType bus_type, 1161s # GDBusProxyFlags flags, 1161s # const gchar *name, 1161s # const gchar *object_path, 1161s # GCancellable *cancellable, 1161s # GAsyncReadyCallback callback, 1161s # gpointer user_data) 1161s # { 1161s # 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); 1161s # } 1161s # 1161s # /** 1161s # * org_project_signaling_iface_proxy_new_for_bus_finish: 1161s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_signaling_iface_proxy_new_for_bus(). 1161s # * @error: Return location for error or %NULL 1161s # * 1161s # * Finishes an operation started with org_project_signaling_iface_proxy_new_for_bus(). 1161s # * 1161s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 1161s # */ 1161s # OrgProjectSignalingIface * 1161s # org_project_signaling_iface_proxy_new_for_bus_finish ( 1161s # GAsyncResult *res, 1161s # GError **error) 1161s # { 1161s # GObject *ret; 1161s # GObject *source_object; 1161s # source_object = g_async_result_get_source_object (res); 1161s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1161s # g_object_unref (source_object); 1161s # if (ret != NULL) 1161s # return ORG_PROJECT_SIGNALING_IFACE (ret); 1161s # else 1161s # return NULL; 1161s # } 1161s # 1161s # /** 1161s # * org_project_signaling_iface_proxy_new_for_bus_sync: 1161s # * @bus_type: A #GBusType. 1161s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1161s # * @name: A bus name (well-known or unique). 1161s # * @object_path: An object path. 1161s # * @cancellable: (nullable): A #GCancellable or %NULL. 1161s # * @error: Return location for error or %NULL 1161s # * 1161s # * Like org_project_signaling_iface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 1161s # * 1161s # * The calling thread is blocked until a reply is received. 1161s # * 1161s # * See org_project_signaling_iface_proxy_new_for_bus() for the asynchronous version of this constructor. 1161s # * 1161s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 1161s # */ 1161s # OrgProjectSignalingIface * 1161s # org_project_signaling_iface_proxy_new_for_bus_sync ( 1161s # GBusType bus_type, 1161s # GDBusProxyFlags flags, 1161s # const gchar *name, 1161s # const gchar *object_path, 1161s # GCancellable *cancellable, 1161s # GError **error) 1161s # { 1161s # GInitable *ret; 1161s # 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); 1161s # if (ret != NULL) 1161s # return ORG_PROJECT_SIGNALING_IFACE (ret); 1161s # else 1161s # return NULL; 1161s # } 1161s # 1161s # 1161s # /* ------------------------------------------------------------------------ */ 1161s # 1161s # /** 1161s # * OrgProjectSignalingIfaceSkeleton: 1161s # * 1161s # * The #OrgProjectSignalingIfaceSkeleton structure contains only private data and should only be accessed using the provided API. 1161s # */ 1161s # 1161s # /** 1161s # * OrgProjectSignalingIfaceSkeletonClass: 1161s # * @parent_class: The parent class. 1161s # * 1161s # * Class structure for #OrgProjectSignalingIfaceSkeleton. 1161s # */ 1161s # 1161s # struct _OrgProjectSignalingIfaceSkeletonPrivate 1161s # { 1161s # GValue *properties; 1161s # GList *changed_properties; 1161s # GSource *changed_properties_idle_source; 1161s # GMainContext *context; 1161s # GMutex lock; 1161s # }; 1161s # 1161s # static void 1161s # _org_project_signaling_iface_skeleton_handle_method_call ( 1161s # GDBusConnection *connection G_GNUC_UNUSED, 1161s # const gchar *sender G_GNUC_UNUSED, 1161s # const gchar *object_path G_GNUC_UNUSED, 1161s # const gchar *interface_name, 1161s # const gchar *method_name, 1161s # GVariant *parameters, 1161s # GDBusMethodInvocation *invocation, 1161s # gpointer user_data) 1161s # { 1161s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 1161s # _ExtendedGDBusMethodInfo *info; 1161s # GVariantIter iter; 1161s # GVariant *child; 1161s # GValue *paramv; 1161s # gsize num_params; 1161s # guint num_extra; 1161s # gsize n; 1161s # guint signal_id; 1161s # GValue return_value = G_VALUE_INIT; 1161s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 1161s # g_assert (info != NULL); 1161s # num_params = g_variant_n_children (parameters); 1161s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 1161s # n = 0; 1161s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_SIGNALING_IFACE); 1161s # g_value_set_object (¶mv[n++], skeleton); 1161s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 1161s # g_value_set_object (¶mv[n++], invocation); 1161s # if (info->pass_fdlist) 1161s # { 1161s # #ifdef G_OS_UNIX 1161s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 1161s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 1161s # #else 1161s # g_assert_not_reached (); 1161s # #endif 1161s # } 1161s # g_variant_iter_init (&iter, parameters); 1161s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1161s # { 1161s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 1161s # if (arg_info->use_gvariant) 1161s # { 1161s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1161s # g_value_set_variant (¶mv[n], child); 1161s # n++; 1161s # } 1161s # else 1161s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1161s # g_variant_unref (child); 1161s # } 1161s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_SIGNALING_IFACE); 1161s # g_value_init (&return_value, G_TYPE_BOOLEAN); 1161s # g_signal_emitv (paramv, signal_id, 0, &return_value); 1161s # if (!g_value_get_boolean (&return_value)) 1161s # 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); 1161s # g_value_unset (&return_value); 1161s # for (n = 0; n < num_params + num_extra; n++) 1161s # g_value_unset (¶mv[n]); 1161s # g_free (paramv); 1161s # } 1161s # 1161s # static GVariant * 1161s # _org_project_signaling_iface_skeleton_handle_get_property ( 1161s # GDBusConnection *connection G_GNUC_UNUSED, 1161s # const gchar *sender G_GNUC_UNUSED, 1161s # const gchar *object_path G_GNUC_UNUSED, 1161s # const gchar *interface_name G_GNUC_UNUSED, 1161s # const gchar *property_name, 1161s # GError **error, 1161s # gpointer user_data) 1161s # { 1161s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 1161s # GValue value = G_VALUE_INIT; 1161s # GParamSpec *pspec; 1161s # _ExtendedGDBusPropertyInfo *info; 1161s # GVariant *ret; 1161s # ret = NULL; 1161s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, property_name); 1161s # g_assert (info != NULL); 1161s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1161s # if (pspec == NULL) 1161s # { 1161s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1161s # } 1161s # else 1161s # { 1161s # g_value_init (&value, pspec->value_type); 1161s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1161s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 1161s # g_value_unset (&value); 1161s # } 1161s # return ret; 1161s # } 1161s # 1161s # static gboolean 1161s # _org_project_signaling_iface_skeleton_handle_set_property ( 1161s # GDBusConnection *connection G_GNUC_UNUSED, 1161s # const gchar *sender G_GNUC_UNUSED, 1161s # const gchar *object_path G_GNUC_UNUSED, 1161s # const gchar *interface_name G_GNUC_UNUSED, 1161s # const gchar *property_name, 1161s # GVariant *variant, 1161s # GError **error, 1161s # gpointer user_data) 1161s # { 1161s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 1161s # GValue value = G_VALUE_INIT; 1161s # GParamSpec *pspec; 1161s # _ExtendedGDBusPropertyInfo *info; 1161s # gboolean ret; 1161s # ret = FALSE; 1161s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, property_name); 1161s # g_assert (info != NULL); 1161s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1161s # if (pspec == NULL) 1161s # { 1161s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1161s # } 1161s # else 1161s # { 1161s # if (info->use_gvariant) 1161s # g_value_set_variant (&value, variant); 1161s # else 1161s # g_dbus_gvariant_to_gvalue (variant, &value); 1161s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1161s # g_value_unset (&value); 1161s # ret = TRUE; 1161s # } 1161s # return ret; 1161s # } 1161s # 1161s # static const GDBusInterfaceVTable _org_project_signaling_iface_skeleton_vtable = 1161s # { 1161s # _org_project_signaling_iface_skeleton_handle_method_call, 1161s # _org_project_signaling_iface_skeleton_handle_get_property, 1161s # _org_project_signaling_iface_skeleton_handle_set_property, 1161s # {NULL} 1161s # }; 1161s # 1161s # static GDBusInterfaceInfo * 1161s # org_project_signaling_iface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1161s # { 1161s # return org_project_signaling_iface_interface_info (); 1161s # } 1161s # 1161s # static GDBusInterfaceVTable * 1161s # org_project_signaling_iface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1161s # { 1161s # return (GDBusInterfaceVTable *) &_org_project_signaling_iface_skeleton_vtable; 1161s # } 1161s # 1161s # static GVariant * 1161s # org_project_signaling_iface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 1161s # { 1161s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (_skeleton); 1161s # 1161s # GVariantBuilder builder; 1161s # guint n; 1161s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 1161s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 1161s # #else 1161s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 1161s # #endif 1161s # if (_org_project_signaling_iface_interface_info.parent_struct.properties == NULL) 1161s # goto out; 1161s # for (n = 0; _org_project_signaling_iface_interface_info.parent_struct.properties[n] != NULL; n++) 1161s # { 1161s # GDBusPropertyInfo *info = _org_project_signaling_iface_interface_info.parent_struct.properties[n]; 1161s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 1161s # { 1161s # GVariant *value; 1161s # 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); 1161s # if (value != NULL) 1161s # { 1161s # g_variant_take_ref (value); 1161s # g_variant_builder_add (&builder, "{sv}", info->name, value); 1161s # g_variant_unref (value); 1161s # } 1161s # } 1161s # } 1161s # out: 1161s # return g_variant_builder_end (&builder); 1161s # } 1161s # 1161s # static void 1161s # org_project_signaling_iface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 1161s # { 1161s # } 1161s # 1161s # static void 1161s # _org_project_signaling_iface_on_signal_simple_signal ( 1161s # OrgProjectSignalingIface *object) 1161s # { 1161s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 1161s # 1161s # GList *connections, *l; 1161s # GVariant *signal_variant; 1161s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 1161s # 1161s # signal_variant = g_variant_ref_sink (g_variant_new ("()")); 1161s # for (l = connections; l != NULL; l = l->next) 1161s # { 1161s # GDBusConnection *connection = l->data; 1161s # g_dbus_connection_emit_signal (connection, 1161s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SimpleSignal", 1161s # signal_variant, NULL); 1161s # } 1161s # g_variant_unref (signal_variant); 1161s # g_list_free_full (connections, g_object_unref); 1161s # } 1161s # 1161s # static void 1161s # _org_project_signaling_iface_on_signal_single_arg_signal_asv ( 1161s # OrgProjectSignalingIface *object, 1161s # GVariant *arg_arg_asv) 1161s # { 1161s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 1161s # 1161s # GList *connections, *l; 1161s # GVariant *signal_variant; 1161s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 1161s # 1161s # signal_variant = g_variant_ref_sink (g_variant_new ("(@a{sv})", 1161s # arg_arg_asv)); 1161s # for (l = connections; l != NULL; l = l->next) 1161s # { 1161s # GDBusConnection *connection = l->data; 1161s # g_dbus_connection_emit_signal (connection, 1161s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SingleArgSignalAsv", 1161s # signal_variant, NULL); 1161s # } 1161s # g_variant_unref (signal_variant); 1161s # g_list_free_full (connections, g_object_unref); 1161s # } 1161s # 1161s # static void org_project_signaling_iface_skeleton_iface_init (OrgProjectSignalingIfaceIface *iface); 1161s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1161s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceSkeleton, org_project_signaling_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1161s # G_ADD_PRIVATE (OrgProjectSignalingIfaceSkeleton) 1161s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_skeleton_iface_init)) 1161s # 1161s # #else 1161s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceSkeleton, org_project_signaling_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1161s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_skeleton_iface_init)) 1161s # 1161s # #endif 1161s # static void 1161s # org_project_signaling_iface_skeleton_finalize (GObject *object) 1161s # { 1161s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 1161s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 1161s # if (skeleton->priv->changed_properties_idle_source != NULL) 1161s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 1161s # g_main_context_unref (skeleton->priv->context); 1161s # g_mutex_clear (&skeleton->priv->lock); 1161s # G_OBJECT_CLASS (org_project_signaling_iface_skeleton_parent_class)->finalize (object); 1161s # } 1161s # 1161s # static void 1161s # org_project_signaling_iface_skeleton_init (OrgProjectSignalingIfaceSkeleton *skeleton) 1161s # { 1161s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1161s # skeleton->priv = org_project_signaling_iface_skeleton_get_instance_private (skeleton); 1161s # #else 1161s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_SIGNALING_IFACE_SKELETON, OrgProjectSignalingIfaceSkeletonPrivate); 1161s # #endif 1161s # 1161s # g_mutex_init (&skeleton->priv->lock); 1161s # skeleton->priv->context = g_main_context_ref_thread_default (); 1161s # } 1161s # 1161s # static void 1161s # org_project_signaling_iface_skeleton_class_init (OrgProjectSignalingIfaceSkeletonClass *klass) 1161s # { 1161s # GObjectClass *gobject_class; 1161s # GDBusInterfaceSkeletonClass *skeleton_class; 1161s # 1161s # gobject_class = G_OBJECT_CLASS (klass); 1161s # gobject_class->finalize = org_project_signaling_iface_skeleton_finalize; 1161s # 1161s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 1161s # skeleton_class->get_info = org_project_signaling_iface_skeleton_dbus_interface_get_info; 1161s # skeleton_class->get_properties = org_project_signaling_iface_skeleton_dbus_interface_get_properties; 1161s # skeleton_class->flush = org_project_signaling_iface_skeleton_dbus_interface_flush; 1161s # skeleton_class->get_vtable = org_project_signaling_iface_skeleton_dbus_interface_get_vtable; 1161s # 1161s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1161s # g_type_class_add_private (klass, sizeof (OrgProjectSignalingIfaceSkeletonPrivate)); 1161s # #endif 1161s # } 1161s # 1161s # static void 1161s # org_project_signaling_iface_skeleton_iface_init (OrgProjectSignalingIfaceIface *iface) 1161s # { 1161s # iface->simple_signal = _org_project_signaling_iface_on_signal_simple_signal; 1161s # iface->single_arg_signal_asv = _org_project_signaling_iface_on_signal_single_arg_signal_asv; 1161s # } 1161s # 1161s # /** 1161s # * org_project_signaling_iface_skeleton_new: 1161s # * 1161s # * Creates a skeleton object for the D-Bus interface org.project.SignalingIface. 1161s # * 1161s # * Returns: (transfer full) (type OrgProjectSignalingIfaceSkeleton): The skeleton object. 1161s # */ 1161s # OrgProjectSignalingIface * 1161s # org_project_signaling_iface_skeleton_new (void) 1161s # { 1161s # return ORG_PROJECT_SIGNALING_IFACE (g_object_new (TYPE_ORG_PROJECT_SIGNALING_IFACE_SKELETON, NULL)); 1161s # } 1161s # Error: 1161s ok 24 __main__.TestCodegen.test_generate_signals_marshallers_multiple_args 1161s # gdbus-codegen: /usr/bin/gdbus-codegen 1161s # tmpdir: /tmp/tmpe2yzir4s 1161s # /tmp/tmpe2yzir4s/tmpd9upyvsg.xml: 1161s # 1161s # 1161s # 1161s # 1161s # 1161s # 1161s # 1161s # 1161s # 1161s # 1161s # 1161s # 1161s # 1161s # 1161s # 1161s # 1161s # 1161s # 1161s # 1161s # 1161s # 1161s # 1161s # 1161s # 1161s # 1161s # 1161s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpe2yzir4s/tmpd9upyvsg.xml', '--output', '-', '--body'] 1161s # Return code: 0 1161s # Output: 1161s # /* 1161s # * This file is generated by gdbus-codegen, do not modify it. 1161s # * 1161s # * The license of this code is the same as for the D-Bus interface description 1161s # * it was derived from. Note that it links to GLib, so must comply with the 1161s # * LGPL linking clauses. 1161s # */ 1161s # 1161s # #ifdef HAVE_CONFIG_H 1161s # # include "config.h" 1161s # #endif 1161s # 1161s # #include 1161s # #ifdef G_OS_UNIX 1161s # # include 1161s # #endif 1161s # 1161s # #ifdef G_ENABLE_DEBUG 1161s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 1161s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 1161s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 1161s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 1161s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 1161s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 1161s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 1161s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 1161s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 1161s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 1161s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 1161s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 1161s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 1161s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 1161s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 1161s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 1161s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 1161s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 1161s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 1161s # #else /* !G_ENABLE_DEBUG */ 1161s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 1161s # * Do not access GValues directly in your code. Instead, use the 1161s # * g_value_get_*() functions 1161s # */ 1161s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 1161s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 1161s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 1161s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 1161s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 1161s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 1161s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 1161s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 1161s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 1161s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 1161s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 1161s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 1161s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 1161s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 1161s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 1161s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 1161s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 1161s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 1161s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 1161s # #endif /* !G_ENABLE_DEBUG */ 1161s # 1161s # typedef struct 1161s # { 1161s # GDBusArgInfo parent_struct; 1161s # gboolean use_gvariant; 1161s # } _ExtendedGDBusArgInfo; 1161s # 1161s # typedef struct 1161s # { 1161s # GDBusMethodInfo parent_struct; 1161s # const gchar *signal_name; 1161s # gboolean pass_fdlist; 1161s # } _ExtendedGDBusMethodInfo; 1161s # 1161s # typedef struct 1161s # { 1161s # GDBusSignalInfo parent_struct; 1161s # const gchar *signal_name; 1161s # } _ExtendedGDBusSignalInfo; 1161s # 1161s # typedef struct 1161s # { 1161s # GDBusPropertyInfo parent_struct; 1161s # const gchar *hyphen_name; 1161s # guint use_gvariant : 1; 1161s # guint emits_changed_signal : 1; 1161s # } _ExtendedGDBusPropertyInfo; 1161s # 1161s # typedef struct 1161s # { 1161s # GDBusInterfaceInfo parent_struct; 1161s # const gchar *hyphen_name; 1161s # } _ExtendedGDBusInterfaceInfo; 1161s # 1161s # typedef struct 1161s # { 1161s # const _ExtendedGDBusPropertyInfo *info; 1161s # guint prop_id; 1161s # GValue orig_value; /* the value before the change */ 1161s # } ChangedProperty; 1161s # 1161s # static void 1161s # _changed_property_free (ChangedProperty *data) 1161s # { 1161s # g_value_unset (&data->orig_value); 1161s # g_free (data); 1161s # } 1161s # 1161s # static gboolean 1161s # _g_strv_equal0 (gchar **a, gchar **b) 1161s # { 1161s # gboolean ret = FALSE; 1161s # guint n; 1161s # if (a == NULL && b == NULL) 1161s # { 1161s # ret = TRUE; 1161s # goto out; 1161s # } 1161s # if (a == NULL || b == NULL) 1161s # goto out; 1161s # if (g_strv_length (a) != g_strv_length (b)) 1161s # goto out; 1161s # for (n = 0; a[n] != NULL; n++) 1161s # if (g_strcmp0 (a[n], b[n]) != 0) 1161s # goto out; 1161s # ret = TRUE; 1161s # out: 1161s # return ret; 1161s # } 1161s # 1161s # static gboolean 1161s # _g_variant_equal0 (GVariant *a, GVariant *b) 1161s # { 1161s # gboolean ret = FALSE; 1161s # if (a == NULL && b == NULL) 1161s # { 1161s # ret = TRUE; 1161s # goto out; 1161s # } 1161s # if (a == NULL || b == NULL) 1161s # goto out; 1161s # ret = g_variant_equal (a, b); 1161s # out: 1161s # return ret; 1161s # } 1161s # 1161s # G_GNUC_UNUSED static gboolean 1161s # _g_value_equal (const GValue *a, const GValue *b) 1161s # { 1161s # gboolean ret = FALSE; 1161s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 1161s # switch (G_VALUE_TYPE (a)) 1161s # { 1161s # case G_TYPE_BOOLEAN: 1161s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 1161s # break; 1161s # case G_TYPE_UCHAR: 1161s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 1161s # break; 1161s # case G_TYPE_INT: 1161s # ret = (g_value_get_int (a) == g_value_get_int (b)); 1161s # break; 1161s # case G_TYPE_UINT: 1161s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 1161s # break; 1161s # case G_TYPE_INT64: 1161s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 1161s # break; 1161s # case G_TYPE_UINT64: 1161s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 1161s # break; 1161s # case G_TYPE_DOUBLE: 1161s # { 1161s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 1161s # gdouble da = g_value_get_double (a); 1161s # gdouble db = g_value_get_double (b); 1161s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 1161s # } 1161s # break; 1161s # case G_TYPE_STRING: 1161s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 1161s # break; 1161s # case G_TYPE_VARIANT: 1161s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 1161s # break; 1161s # default: 1161s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 1161s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 1161s # else 1161s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 1161s # break; 1161s # } 1161s # return ret; 1161s # } 1161s # 1161s # static void 1161s # _g_dbus_codegen_marshal_VOID__BOOLEAN_UCHAR_INT_UINT_INT_UINT_INT64_UINT64_DOUBLE_STRING_STRING_STRING_VARIANT_STRING_BOXED_BOXED_BOXED_VARIANT ( 1161s # GClosure *closure, 1161s # GValue *return_value G_GNUC_UNUSED, 1161s # unsigned int n_param_values, 1161s # const GValue *param_values, 1161s # void *invocation_hint G_GNUC_UNUSED, 1161s # void *marshal_data) 1161s # { 1161s # typedef void (*_GDbusCodegenMarshalVoid_BooleanUcharIntUintIntUintInt64Uint64DoubleStringStringStringVariantStringBoxedBoxedBoxedVariantFunc) 1161s # (void *data1, 1161s # gboolean arg_an_b, 1161s # guchar arg_an_y, 1161s # gint16 arg_an_n, 1161s # guint16 arg_an_q, 1161s # gint arg_an_i, 1161s # guint arg_an_u, 1161s # gint64 arg_an_x, 1161s # guint64 arg_an_t, 1161s # gdouble arg_an_d, 1161s # const gchar *arg_an_s, 1161s # const gchar *arg_an_o, 1161s # const gchar *arg_an_g, 1161s # GVariant *arg_an_h, 1161s # const gchar *arg_an_ay, 1161s # const gchar *const *arg_an_as, 1161s # const gchar *const *arg_an_ao, 1161s # const gchar *const *arg_an_aay, 1161s # GVariant *arg_an_asv, 1161s # void *data2); 1161s # _GDbusCodegenMarshalVoid_BooleanUcharIntUintIntUintInt64Uint64DoubleStringStringStringVariantStringBoxedBoxedBoxedVariantFunc callback; 1161s # GCClosure *cc = (GCClosure*) closure; 1161s # void *data1, *data2; 1161s # 1161s # g_return_if_fail (n_param_values == 19); 1161s # 1161s # if (G_CCLOSURE_SWAP_DATA (closure)) 1161s # { 1161s # data1 = closure->data; 1161s # data2 = g_value_peek_pointer (param_values + 0); 1161s # } 1161s # else 1161s # { 1161s # data1 = g_value_peek_pointer (param_values + 0); 1161s # data2 = closure->data; 1161s # } 1161s # 1161s # callback = (_GDbusCodegenMarshalVoid_BooleanUcharIntUintIntUintInt64Uint64DoubleStringStringStringVariantStringBoxedBoxedBoxedVariantFunc) 1161s # (marshal_data ? marshal_data : cc->callback); 1161s # 1161s # callback (data1, 1161s # g_marshal_value_peek_boolean (param_values + 1), 1161s # g_marshal_value_peek_uchar (param_values + 2), 1161s # g_marshal_value_peek_int (param_values + 3), 1161s # g_marshal_value_peek_uint (param_values + 4), 1161s # g_marshal_value_peek_int (param_values + 5), 1161s # g_marshal_value_peek_uint (param_values + 6), 1161s # g_marshal_value_peek_int64 (param_values + 7), 1161s # g_marshal_value_peek_uint64 (param_values + 8), 1161s # g_marshal_value_peek_double (param_values + 9), 1161s # g_marshal_value_peek_string (param_values + 10), 1161s # g_marshal_value_peek_string (param_values + 11), 1161s # g_marshal_value_peek_string (param_values + 12), 1161s # g_marshal_value_peek_variant (param_values + 13), 1161s # g_marshal_value_peek_string (param_values + 14), 1161s # g_marshal_value_peek_boxed (param_values + 15), 1161s # g_marshal_value_peek_boxed (param_values + 16), 1161s # g_marshal_value_peek_boxed (param_values + 17), 1161s # g_marshal_value_peek_variant (param_values + 18), 1161s # data2); 1161s # } 1161s # 1161s # /* ------------------------------------------------------------------------ 1161s # * Code for interface org.project.SignalingIface 1161s # * ------------------------------------------------------------------------ 1161s # */ 1161s # 1161s # /** 1161s # * SECTION:OrgProjectSignalingIface 1161s # * @title: OrgProjectSignalingIface 1161s # * @short_description: Generated C code for the org.project.SignalingIface D-Bus interface 1161s # * 1161s # * This section contains code for working with the org.project.SignalingIface D-Bus interface in C. 1161s # */ 1161s # 1161s # enum 1161s # { 1161s # _ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL, 1161s # _ORG_PROJECT_SIGNALING_IFACE_SIGNAL_WITH_MANY_ARGS, 1161s # }; 1161s # 1161s # static unsigned _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[2] = { 0 }; 1161s # 1161s # /* ---- Introspection data for org.project.SignalingIface ---- */ 1161s # 1161s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_simple_signal = 1161s # { 1161s # { 1161s # -1, 1161s # (gchar *) "SimpleSignal", 1161s # NULL, 1161s # NULL 1161s # }, 1161s # "simple-signal" 1161s # }; 1161s # 1161s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_b = 1161s # { 1161s # { 1161s # -1, 1161s # (gchar *) "an_b", 1161s # (gchar *) "b", 1161s # NULL 1161s # }, 1161s # FALSE 1161s # }; 1161s # 1161s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_y = 1161s # { 1161s # { 1161s # -1, 1161s # (gchar *) "an_y", 1161s # (gchar *) "y", 1161s # NULL 1161s # }, 1161s # FALSE 1161s # }; 1161s # 1161s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_n = 1161s # { 1161s # { 1161s # -1, 1161s # (gchar *) "an_n", 1161s # (gchar *) "n", 1161s # NULL 1161s # }, 1161s # FALSE 1161s # }; 1161s # 1161s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_q = 1161s # { 1161s # { 1161s # -1, 1161s # (gchar *) "an_q", 1161s # (gchar *) "q", 1161s # NULL 1161s # }, 1161s # FALSE 1161s # }; 1161s # 1161s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_i = 1161s # { 1161s # { 1161s # -1, 1161s # (gchar *) "an_i", 1161s # (gchar *) "i", 1161s # NULL 1161s # }, 1161s # FALSE 1161s # }; 1161s # 1161s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_u = 1161s # { 1161s # { 1161s # -1, 1161s # (gchar *) "an_u", 1161s # (gchar *) "u", 1161s # NULL 1161s # }, 1161s # FALSE 1161s # }; 1161s # 1161s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_x = 1161s # { 1161s # { 1161s # -1, 1161s # (gchar *) "an_x", 1161s # (gchar *) "x", 1161s # NULL 1161s # }, 1161s # FALSE 1161s # }; 1161s # 1161s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_t = 1161s # { 1161s # { 1161s # -1, 1161s # (gchar *) "an_t", 1161s # (gchar *) "t", 1161s # NULL 1161s # }, 1161s # FALSE 1161s # }; 1161s # 1161s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_d = 1161s # { 1161s # { 1161s # -1, 1161s # (gchar *) "an_d", 1161s # (gchar *) "d", 1161s # NULL 1161s # }, 1161s # FALSE 1161s # }; 1161s # 1161s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_s = 1161s # { 1161s # { 1161s # -1, 1161s # (gchar *) "an_s", 1161s # (gchar *) "s", 1161s # NULL 1161s # }, 1161s # FALSE 1161s # }; 1161s # 1161s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_o = 1161s # { 1161s # { 1161s # -1, 1161s # (gchar *) "an_o", 1161s # (gchar *) "o", 1161s # NULL 1161s # }, 1161s # FALSE 1161s # }; 1161s # 1161s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_g = 1161s # { 1161s # { 1161s # -1, 1161s # (gchar *) "an_g", 1161s # (gchar *) "g", 1161s # NULL 1161s # }, 1161s # FALSE 1161s # }; 1161s # 1161s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_h = 1161s # { 1161s # { 1161s # -1, 1161s # (gchar *) "an_h", 1161s # (gchar *) "h", 1161s # NULL 1161s # }, 1161s # FALSE 1161s # }; 1161s # 1161s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_ay = 1161s # { 1161s # { 1161s # -1, 1161s # (gchar *) "an_ay", 1161s # (gchar *) "ay", 1161s # NULL 1161s # }, 1161s # FALSE 1161s # }; 1161s # 1161s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_as = 1161s # { 1161s # { 1161s # -1, 1161s # (gchar *) "an_as", 1161s # (gchar *) "as", 1161s # NULL 1161s # }, 1161s # FALSE 1161s # }; 1161s # 1161s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_ao = 1161s # { 1161s # { 1161s # -1, 1161s # (gchar *) "an_ao", 1161s # (gchar *) "ao", 1161s # NULL 1161s # }, 1161s # FALSE 1161s # }; 1161s # 1161s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_aay = 1161s # { 1161s # { 1161s # -1, 1161s # (gchar *) "an_aay", 1161s # (gchar *) "aay", 1161s # NULL 1161s # }, 1161s # FALSE 1161s # }; 1161s # 1161s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_asv = 1161s # { 1161s # { 1161s # -1, 1161s # (gchar *) "an_asv", 1161s # (gchar *) "a{sv}", 1161s # NULL 1161s # }, 1161s # FALSE 1161s # }; 1161s # 1161s # static const GDBusArgInfo * const _org_project_signaling_iface_signal_info_signal_with_many_args_ARG_pointers[] = 1161s # { 1161s # &_org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_b.parent_struct, 1161s # &_org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_y.parent_struct, 1161s # &_org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_n.parent_struct, 1161s # &_org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_q.parent_struct, 1161s # &_org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_i.parent_struct, 1161s # &_org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_u.parent_struct, 1161s # &_org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_x.parent_struct, 1161s # &_org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_t.parent_struct, 1161s # &_org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_d.parent_struct, 1161s # &_org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_s.parent_struct, 1161s # &_org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_o.parent_struct, 1161s # &_org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_g.parent_struct, 1161s # &_org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_h.parent_struct, 1161s # &_org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_ay.parent_struct, 1161s # &_org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_as.parent_struct, 1161s # &_org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_ao.parent_struct, 1161s # &_org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_aay.parent_struct, 1161s # &_org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_asv.parent_struct, 1161s # NULL 1161s # }; 1161s # 1161s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_signal_with_many_args = 1161s # { 1161s # { 1161s # -1, 1161s # (gchar *) "SignalWithManyArgs", 1161s # (GDBusArgInfo **) &_org_project_signaling_iface_signal_info_signal_with_many_args_ARG_pointers, 1161s # NULL 1161s # }, 1161s # "signal-with-many-args" 1161s # }; 1161s # 1161s # static const GDBusSignalInfo * const _org_project_signaling_iface_signal_info_pointers[] = 1161s # { 1161s # &_org_project_signaling_iface_signal_info_simple_signal.parent_struct, 1161s # &_org_project_signaling_iface_signal_info_signal_with_many_args.parent_struct, 1161s # NULL 1161s # }; 1161s # 1161s # static const _ExtendedGDBusInterfaceInfo _org_project_signaling_iface_interface_info = 1161s # { 1161s # { 1161s # -1, 1161s # (gchar *) "org.project.SignalingIface", 1161s # NULL, 1161s # (GDBusSignalInfo **) &_org_project_signaling_iface_signal_info_pointers, 1161s # NULL, 1161s # NULL 1161s # }, 1161s # "org-project-signaling-iface", 1161s # }; 1161s # 1161s # 1161s # /** 1161s # * org_project_signaling_iface_interface_info: 1161s # * 1161s # * Gets a machine-readable description of the org.project.SignalingIface D-Bus interface. 1161s # * 1161s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 1161s # */ 1161s # GDBusInterfaceInfo * 1161s # org_project_signaling_iface_interface_info (void) 1161s # { 1161s # return (GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct; 1161s # } 1161s # 1161s # /** 1161s # * org_project_signaling_iface_override_properties: 1161s # * @klass: The class structure for a #GObject derived class. 1161s # * @property_id_begin: The property id to assign to the first overridden property. 1161s # * 1161s # * Overrides all #GObject properties in the #OrgProjectSignalingIface interface for a concrete class. 1161s # * The properties are overridden in the order they are defined. 1161s # * 1161s # * Returns: The last property id. 1161s # */ 1161s # guint 1161s # org_project_signaling_iface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 1161s # { 1161s # return property_id_begin - 1; 1161s # } 1161s # 1161s # 1161s # inline static void 1161s # org_project_signaling_iface_signal_marshal_simple_signal ( 1161s # GClosure *closure, 1161s # GValue *return_value, 1161s # unsigned int n_param_values, 1161s # const GValue *param_values, 1161s # void *invocation_hint, 1161s # void *marshal_data) 1161s # { 1161s # g_cclosure_marshal_VOID__VOID (closure, 1161s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1161s # } 1161s # 1161s # inline static void 1161s # org_project_signaling_iface_signal_marshal_signal_with_many_args ( 1161s # GClosure *closure, 1161s # GValue *return_value, 1161s # unsigned int n_param_values, 1161s # const GValue *param_values, 1161s # void *invocation_hint, 1161s # void *marshal_data) 1161s # { 1161s # _g_dbus_codegen_marshal_VOID__BOOLEAN_UCHAR_INT_UINT_INT_UINT_INT64_UINT64_DOUBLE_STRING_STRING_STRING_VARIANT_STRING_BOXED_BOXED_BOXED_VARIANT (closure, 1161s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1161s # } 1161s # 1161s # 1161s # /** 1161s # * OrgProjectSignalingIface: 1161s # * 1161s # * Abstract interface type for the D-Bus interface org.project.SignalingIface. 1161s # */ 1161s # 1161s # /** 1161s # * OrgProjectSignalingIfaceIface: 1161s # * @parent_iface: The parent interface. 1161s # * @signal_with_many_args: Handler for the #OrgProjectSignalingIface::signal-with-many-args signal. 1161s # * @simple_signal: Handler for the #OrgProjectSignalingIface::simple-signal signal. 1161s # * 1161s # * Virtual table for the D-Bus interface org.project.SignalingIface. 1161s # */ 1161s # 1161s # typedef OrgProjectSignalingIfaceIface OrgProjectSignalingIfaceInterface; 1161s # G_DEFINE_INTERFACE (OrgProjectSignalingIface, org_project_signaling_iface, G_TYPE_OBJECT) 1161s # 1161s # static void 1161s # org_project_signaling_iface_default_init (OrgProjectSignalingIfaceIface *iface) 1161s # { 1161s # /* GObject signals for received D-Bus signals: */ 1161s # /** 1161s # * OrgProjectSignalingIface::simple-signal: 1161s # * @object: A #OrgProjectSignalingIface. 1161s # * 1161s # * On the client-side, this signal is emitted whenever the D-Bus signal "SimpleSignal" is received. 1161s # * 1161s # * 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. 1161s # */ 1161s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL] = 1161s # g_signal_new ("simple-signal", 1161s # G_TYPE_FROM_INTERFACE (iface), 1161s # G_SIGNAL_RUN_LAST, 1161s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, simple_signal), 1161s # NULL, 1161s # NULL, 1161s # org_project_signaling_iface_signal_marshal_simple_signal, 1161s # G_TYPE_NONE, 1161s # 0); 1161s # 1161s # /** 1161s # * OrgProjectSignalingIface::signal-with-many-args: 1161s # * @object: A #OrgProjectSignalingIface. 1161s # * @arg_an_b: Argument. 1161s # * @arg_an_y: Argument. 1161s # * @arg_an_n: Argument. 1161s # * @arg_an_q: Argument. 1161s # * @arg_an_i: Argument. 1161s # * @arg_an_u: Argument. 1161s # * @arg_an_x: Argument. 1161s # * @arg_an_t: Argument. 1161s # * @arg_an_d: Argument. 1161s # * @arg_an_s: Argument. 1161s # * @arg_an_o: Argument. 1161s # * @arg_an_g: Argument. 1161s # * @arg_an_h: Argument. 1161s # * @arg_an_ay: Argument. 1161s # * @arg_an_as: Argument. 1161s # * @arg_an_ao: Argument. 1161s # * @arg_an_aay: Argument. 1161s # * @arg_an_asv: Argument. 1161s # * 1161s # * On the client-side, this signal is emitted whenever the D-Bus signal "SignalWithManyArgs" is received. 1161s # * 1161s # * 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. 1161s # */ 1161s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SIGNAL_WITH_MANY_ARGS] = 1161s # g_signal_new ("signal-with-many-args", 1161s # G_TYPE_FROM_INTERFACE (iface), 1161s # G_SIGNAL_RUN_LAST, 1161s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, signal_with_many_args), 1161s # NULL, 1161s # NULL, 1161s # org_project_signaling_iface_signal_marshal_signal_with_many_args, 1161s # G_TYPE_NONE, 1161s # 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); 1161s # 1161s # } 1161s # 1161s # /** 1161s # * org_project_signaling_iface_emit_simple_signal: 1161s # * @object: A #OrgProjectSignalingIface. 1161s # * 1161s # * Emits the "SimpleSignal" D-Bus signal. 1161s # */ 1161s # void 1161s # org_project_signaling_iface_emit_simple_signal ( 1161s # OrgProjectSignalingIface *object) 1161s # { 1161s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL], 0); 1161s # } 1161s # 1161s # /** 1161s # * org_project_signaling_iface_emit_signal_with_many_args: 1161s # * @object: A #OrgProjectSignalingIface. 1161s # * @arg_an_b: Argument to pass with the signal. 1161s # * @arg_an_y: Argument to pass with the signal. 1161s # * @arg_an_n: Argument to pass with the signal. 1161s # * @arg_an_q: Argument to pass with the signal. 1161s # * @arg_an_i: Argument to pass with the signal. 1161s # * @arg_an_u: Argument to pass with the signal. 1161s # * @arg_an_x: Argument to pass with the signal. 1161s # * @arg_an_t: Argument to pass with the signal. 1161s # * @arg_an_d: Argument to pass with the signal. 1161s # * @arg_an_s: Argument to pass with the signal. 1161s # * @arg_an_o: Argument to pass with the signal. 1161s # * @arg_an_g: Argument to pass with the signal. 1161s # * @arg_an_h: Argument to pass with the signal. 1161s # * @arg_an_ay: Argument to pass with the signal. 1161s # * @arg_an_as: Argument to pass with the signal. 1161s # * @arg_an_ao: Argument to pass with the signal. 1161s # * @arg_an_aay: Argument to pass with the signal. 1161s # * @arg_an_asv: Argument to pass with the signal. 1161s # * 1161s # * Emits the "SignalWithManyArgs" D-Bus signal. 1161s # */ 1161s # void 1161s # org_project_signaling_iface_emit_signal_with_many_args ( 1161s # OrgProjectSignalingIface *object, 1161s # gboolean arg_an_b, 1161s # guchar arg_an_y, 1161s # gint16 arg_an_n, 1161s # guint16 arg_an_q, 1161s # gint arg_an_i, 1161s # guint arg_an_u, 1161s # gint64 arg_an_x, 1161s # guint64 arg_an_t, 1161s # gdouble arg_an_d, 1161s # const gchar *arg_an_s, 1161s # const gchar *arg_an_o, 1161s # const gchar *arg_an_g, 1161s # GVariant *arg_an_h, 1161s # const gchar *arg_an_ay, 1161s # const gchar *const *arg_an_as, 1161s # const gchar *const *arg_an_ao, 1161s # const gchar *const *arg_an_aay, 1161s # GVariant *arg_an_asv) 1161s # { 1161s # 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); 1161s # } 1161s # 1161s # /* ------------------------------------------------------------------------ */ 1161s # 1161s # /** 1161s # * OrgProjectSignalingIfaceProxy: 1161s # * 1161s # * The #OrgProjectSignalingIfaceProxy structure contains only private data and should only be accessed using the provided API. 1161s # */ 1161s # 1161s # /** 1161s # * OrgProjectSignalingIfaceProxyClass: 1161s # * @parent_class: The parent class. 1161s # * 1161s # * Class structure for #OrgProjectSignalingIfaceProxy. 1161s # */ 1161s # 1161s # struct _OrgProjectSignalingIfaceProxyPrivate 1161s # { 1161s # GData *qdata; 1161s # }; 1161s # 1161s # static void org_project_signaling_iface_proxy_iface_init (OrgProjectSignalingIfaceIface *iface); 1161s # 1161s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1161s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceProxy, org_project_signaling_iface_proxy, G_TYPE_DBUS_PROXY, 1161s # G_ADD_PRIVATE (OrgProjectSignalingIfaceProxy) 1161s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_proxy_iface_init)) 1161s # 1161s # #else 1161s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceProxy, org_project_signaling_iface_proxy, G_TYPE_DBUS_PROXY, 1161s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_proxy_iface_init)) 1161s # 1161s # #endif 1161s # static void 1161s # org_project_signaling_iface_proxy_finalize (GObject *object) 1161s # { 1161s # OrgProjectSignalingIfaceProxy *proxy = ORG_PROJECT_SIGNALING_IFACE_PROXY (object); 1161s # g_datalist_clear (&proxy->priv->qdata); 1161s # G_OBJECT_CLASS (org_project_signaling_iface_proxy_parent_class)->finalize (object); 1161s # } 1161s # 1161s # static void 1161s # org_project_signaling_iface_proxy_get_property (GObject *object G_GNUC_UNUSED, 1161s # guint prop_id G_GNUC_UNUSED, 1161s # GValue *value G_GNUC_UNUSED, 1161s # GParamSpec *pspec G_GNUC_UNUSED) 1161s # { 1161s # } 1161s # 1161s # static void 1161s # org_project_signaling_iface_proxy_set_property (GObject *object G_GNUC_UNUSED, 1161s # guint prop_id G_GNUC_UNUSED, 1161s # const GValue *value G_GNUC_UNUSED, 1161s # GParamSpec *pspec G_GNUC_UNUSED) 1161s # { 1161s # } 1161s # 1161s # static void 1161s # org_project_signaling_iface_proxy_g_signal (GDBusProxy *proxy, 1161s # const gchar *sender_name G_GNUC_UNUSED, 1161s # const gchar *signal_name, 1161s # GVariant *parameters) 1161s # { 1161s # _ExtendedGDBusSignalInfo *info; 1161s # GVariantIter iter; 1161s # GVariant *child; 1161s # GValue *paramv; 1161s # gsize num_params; 1161s # gsize n; 1161s # guint signal_id; 1161s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, signal_name); 1161s # if (info == NULL) 1161s # return; 1161s # num_params = g_variant_n_children (parameters); 1161s # paramv = g_new0 (GValue, num_params + 1); 1161s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_SIGNALING_IFACE); 1161s # g_value_set_object (¶mv[0], proxy); 1161s # g_variant_iter_init (&iter, parameters); 1161s # n = 1; 1161s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1161s # { 1161s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 1161s # if (arg_info->use_gvariant) 1161s # { 1161s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1161s # g_value_set_variant (¶mv[n], child); 1161s # n++; 1161s # } 1161s # else 1161s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1161s # g_variant_unref (child); 1161s # } 1161s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_SIGNALING_IFACE); 1161s # g_signal_emitv (paramv, signal_id, 0, NULL); 1161s # for (n = 0; n < num_params + 1; n++) 1161s # g_value_unset (¶mv[n]); 1161s # g_free (paramv); 1161s # } 1161s # 1161s # static void 1161s # org_project_signaling_iface_proxy_g_properties_changed (GDBusProxy *_proxy, 1161s # GVariant *changed_properties, 1161s # const gchar *const *invalidated_properties) 1161s # { 1161s # OrgProjectSignalingIfaceProxy *proxy = ORG_PROJECT_SIGNALING_IFACE_PROXY (_proxy); 1161s # guint n; 1161s # const gchar *key; 1161s # GVariantIter *iter; 1161s # _ExtendedGDBusPropertyInfo *info; 1161s # g_variant_get (changed_properties, "a{sv}", &iter); 1161s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 1161s # { 1161s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, key); 1161s # g_datalist_remove_data (&proxy->priv->qdata, key); 1161s # if (info != NULL) 1161s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1161s # } 1161s # g_variant_iter_free (iter); 1161s # for (n = 0; invalidated_properties[n] != NULL; n++) 1161s # { 1161s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, invalidated_properties[n]); 1161s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 1161s # if (info != NULL) 1161s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1161s # } 1161s # } 1161s # 1161s # static void 1161s # org_project_signaling_iface_proxy_init (OrgProjectSignalingIfaceProxy *proxy) 1161s # { 1161s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1161s # proxy->priv = org_project_signaling_iface_proxy_get_instance_private (proxy); 1161s # #else 1161s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_SIGNALING_IFACE_PROXY, OrgProjectSignalingIfaceProxyPrivate); 1161s # #endif 1161s # 1161s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_signaling_iface_interface_info ()); 1161s # } 1161s # 1161s # static void 1161s # org_project_signaling_iface_proxy_class_init (OrgProjectSignalingIfaceProxyClass *klass) 1161s # { 1161s # GObjectClass *gobject_class; 1161s # GDBusProxyClass *proxy_class; 1161s # 1161s # gobject_class = G_OBJECT_CLASS (klass); 1161s # gobject_class->finalize = org_project_signaling_iface_proxy_finalize; 1161s # gobject_class->get_property = org_project_signaling_iface_proxy_get_property; 1161s # gobject_class->set_property = org_project_signaling_iface_proxy_set_property; 1161s # 1161s # proxy_class = G_DBUS_PROXY_CLASS (klass); 1161s # proxy_class->g_signal = org_project_signaling_iface_proxy_g_signal; 1161s # proxy_class->g_properties_changed = org_project_signaling_iface_proxy_g_properties_changed; 1161s # 1161s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1161s # g_type_class_add_private (klass, sizeof (OrgProjectSignalingIfaceProxyPrivate)); 1161s # #endif 1161s # } 1161s # 1161s # static void 1161s # org_project_signaling_iface_proxy_iface_init (OrgProjectSignalingIfaceIface *iface G_GNUC_UNUSED) 1161s # { 1161s # } 1161s # 1161s # /** 1161s # * org_project_signaling_iface_proxy_new: 1161s # * @connection: A #GDBusConnection. 1161s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1161s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1161s # * @object_path: An object path. 1161s # * @cancellable: (nullable): A #GCancellable or %NULL. 1161s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1161s # * @user_data: User data to pass to @callback. 1161s # * 1161s # * Asynchronously creates a proxy for the D-Bus interface org.project.SignalingIface. See g_dbus_proxy_new() for more details. 1161s # * 1161s # * 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()). 1161s # * You can then call org_project_signaling_iface_proxy_new_finish() to get the result of the operation. 1161s # * 1161s # * See org_project_signaling_iface_proxy_new_sync() for the synchronous, blocking version of this constructor. 1161s # */ 1161s # void 1161s # org_project_signaling_iface_proxy_new ( 1161s # GDBusConnection *connection, 1161s # GDBusProxyFlags flags, 1161s # const gchar *name, 1161s # const gchar *object_path, 1161s # GCancellable *cancellable, 1161s # GAsyncReadyCallback callback, 1161s # gpointer user_data) 1161s # { 1161s # 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); 1161s # } 1161s # 1161s # /** 1161s # * org_project_signaling_iface_proxy_new_finish: 1161s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_signaling_iface_proxy_new(). 1161s # * @error: Return location for error or %NULL 1161s # * 1161s # * Finishes an operation started with org_project_signaling_iface_proxy_new(). 1161s # * 1161s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 1161s # */ 1161s # OrgProjectSignalingIface * 1161s # org_project_signaling_iface_proxy_new_finish ( 1161s # GAsyncResult *res, 1161s # GError **error) 1161s # { 1161s # GObject *ret; 1161s # GObject *source_object; 1161s # source_object = g_async_result_get_source_object (res); 1161s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1161s # g_object_unref (source_object); 1161s # if (ret != NULL) 1161s # return ORG_PROJECT_SIGNALING_IFACE (ret); 1161s # else 1161s # return NULL; 1161s # } 1161s # 1161s # /** 1161s # * org_project_signaling_iface_proxy_new_sync: 1161s # * @connection: A #GDBusConnection. 1161s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1161s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1161s # * @object_path: An object path. 1161s # * @cancellable: (nullable): A #GCancellable or %NULL. 1161s # * @error: Return location for error or %NULL 1161s # * 1161s # * Synchronously creates a proxy for the D-Bus interface org.project.SignalingIface. See g_dbus_proxy_new_sync() for more details. 1161s # * 1161s # * The calling thread is blocked until a reply is received. 1161s # * 1161s # * See org_project_signaling_iface_proxy_new() for the asynchronous version of this constructor. 1161s # * 1161s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 1161s # */ 1161s # OrgProjectSignalingIface * 1161s # org_project_signaling_iface_proxy_new_sync ( 1161s # GDBusConnection *connection, 1161s # GDBusProxyFlags flags, 1161s # const gchar *name, 1161s # const gchar *object_path, 1161s # GCancellable *cancellable, 1161s # GError **error) 1161s # { 1161s # GInitable *ret; 1161s # 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); 1161s # if (ret != NULL) 1161s # return ORG_PROJECT_SIGNALING_IFACE (ret); 1161s # else 1161s # return NULL; 1161s # } 1161s # 1161s # 1161s # /** 1161s # * org_project_signaling_iface_proxy_new_for_bus: 1161s # * @bus_type: A #GBusType. 1161s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1161s # * @name: A bus name (well-known or unique). 1161s # * @object_path: An object path. 1161s # * @cancellable: (nullable): A #GCancellable or %NULL. 1161s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1161s # * @user_data: User data to pass to @callback. 1161s # * 1161s # * Like org_project_signaling_iface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 1161s # * 1161s # * 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()). 1161s # * You can then call org_project_signaling_iface_proxy_new_for_bus_finish() to get the result of the operation. 1161s # * 1161s # * See org_project_signaling_iface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 1161s # */ 1161s # void 1161s # org_project_signaling_iface_proxy_new_for_bus ( 1161s # GBusType bus_type, 1161s # GDBusProxyFlags flags, 1161s # const gchar *name, 1161s # const gchar *object_path, 1161s # GCancellable *cancellable, 1161s # GAsyncReadyCallback callback, 1161s # gpointer user_data) 1161s # { 1161s # 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); 1161s # } 1161s # 1161s # /** 1161s # * org_project_signaling_iface_proxy_new_for_bus_finish: 1161s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_signaling_iface_proxy_new_for_bus(). 1161s # * @error: Return location for error or %NULL 1161s # * 1161s # * Finishes an operation started with org_project_signaling_iface_proxy_new_for_bus(). 1161s # * 1161s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 1161s # */ 1161s # OrgProjectSignalingIface * 1161s # org_project_signaling_iface_proxy_new_for_bus_finish ( 1161s # GAsyncResult *res, 1161s # GError **error) 1161s # { 1161s # GObject *ret; 1161s # GObject *source_object; 1161s # source_object = g_async_result_get_source_object (res); 1161s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1161s # g_object_unref (source_object); 1161s # if (ret != NULL) 1161s # return ORG_PROJECT_SIGNALING_IFACE (ret); 1161s # else 1161s # return NULL; 1161s # } 1161s # 1161s # /** 1161s # * org_project_signaling_iface_proxy_new_for_bus_sync: 1161s # * @bus_type: A #GBusType. 1161s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1161s # * @name: A bus name (well-known or unique). 1161s # * @object_path: An object path. 1161s # * @cancellable: (nullable): A #GCancellable or %NULL. 1161s # * @error: Return location for error or %NULL 1161s # * 1161s # * Like org_project_signaling_iface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 1161s # * 1161s # * The calling thread is blocked until a reply is received. 1161s # * 1161s # * See org_project_signaling_iface_proxy_new_for_bus() for the asynchronous version of this constructor. 1161s # * 1161s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 1161s # */ 1161s # OrgProjectSignalingIface * 1161s # org_project_signaling_iface_proxy_new_for_bus_sync ( 1161s # GBusType bus_type, 1161s # GDBusProxyFlags flags, 1161s # const gchar *name, 1161s # const gchar *object_path, 1161s # GCancellable *cancellable, 1161s # GError **error) 1161s # { 1161s # GInitable *ret; 1161s # 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); 1161s # if (ret != NULL) 1161s # return ORG_PROJECT_SIGNALING_IFACE (ret); 1161s # else 1161s # return NULL; 1161s # } 1161s # 1161s # 1161s # /* ------------------------------------------------------------------------ */ 1161s # 1161s # /** 1161s # * OrgProjectSignalingIfaceSkeleton: 1161s # * 1161s # * The #OrgProjectSignalingIfaceSkeleton structure contains only private data and should only be accessed using the provided API. 1161s # */ 1161s # 1161s # /** 1161s # * OrgProjectSignalingIfaceSkeletonClass: 1161s # * @parent_class: The parent class. 1161s # * 1161s # * Class structure for #OrgProjectSignalingIfaceSkeleton. 1161s # */ 1161s # 1161s # struct _OrgProjectSignalingIfaceSkeletonPrivate 1161s # { 1161s # GValue *properties; 1161s # GList *changed_properties; 1161s # GSource *changed_properties_idle_source; 1161s # GMainContext *context; 1161s # GMutex lock; 1161s # }; 1161s # 1161s # static void 1161s # _org_project_signaling_iface_skeleton_handle_method_call ( 1161s # GDBusConnection *connection G_GNUC_UNUSED, 1161s # const gchar *sender G_GNUC_UNUSED, 1161s # const gchar *object_path G_GNUC_UNUSED, 1161s # const gchar *interface_name, 1161s # const gchar *method_name, 1161s # GVariant *parameters, 1161s # GDBusMethodInvocation *invocation, 1161s # gpointer user_data) 1161s # { 1161s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 1161s # _ExtendedGDBusMethodInfo *info; 1161s # GVariantIter iter; 1161s # GVariant *child; 1161s # GValue *paramv; 1161s # gsize num_params; 1161s # guint num_extra; 1161s # gsize n; 1161s # guint signal_id; 1161s # GValue return_value = G_VALUE_INIT; 1161s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 1161s # g_assert (info != NULL); 1161s # num_params = g_variant_n_children (parameters); 1161s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 1161s # n = 0; 1161s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_SIGNALING_IFACE); 1161s # g_value_set_object (¶mv[n++], skeleton); 1161s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 1161s # g_value_set_object (¶mv[n++], invocation); 1161s # if (info->pass_fdlist) 1161s # { 1161s # #ifdef G_OS_UNIX 1161s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 1161s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 1161s # #else 1161s # g_assert_not_reached (); 1161s # #endif 1161s # } 1161s # g_variant_iter_init (&iter, parameters); 1161s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1161s # { 1161s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 1161s # if (arg_info->use_gvariant) 1161s # { 1161s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1161s # g_value_set_variant (¶mv[n], child); 1161s # n++; 1161s # } 1161s # else 1161s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1161s # g_variant_unref (child); 1161s # } 1161s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_SIGNALING_IFACE); 1161s # g_value_init (&return_value, G_TYPE_BOOLEAN); 1161s # g_signal_emitv (paramv, signal_id, 0, &return_value); 1161s # if (!g_value_get_boolean (&return_value)) 1161s # 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); 1161s # g_value_unset (&return_value); 1161s # for (n = 0; n < num_params + num_extra; n++) 1161s # g_value_unset (¶mv[n]); 1161s # g_free (paramv); 1161s # } 1161s # 1161s # static GVariant * 1161s # _org_project_signaling_iface_skeleton_handle_get_property ( 1161s # GDBusConnection *connection G_GNUC_UNUSED, 1161s # const gchar *sender G_GNUC_UNUSED, 1161s # const gchar *object_path G_GNUC_UNUSED, 1161s # const gchar *interface_name G_GNUC_UNUSED, 1161s # const gchar *property_name, 1161s # GError **error, 1161s # gpointer user_data) 1161s # { 1161s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 1161s # GValue value = G_VALUE_INIT; 1161s # GParamSpec *pspec; 1161s # _ExtendedGDBusPropertyInfo *info; 1161s # GVariant *ret; 1161s # ret = NULL; 1161s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, property_name); 1161s # g_assert (info != NULL); 1161s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1161s # if (pspec == NULL) 1161s # { 1161s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1161s # } 1161s # else 1161s # { 1161s # g_value_init (&value, pspec->value_type); 1161s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1161s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 1161s # g_value_unset (&value); 1161s # } 1161s # return ret; 1161s # } 1161s # 1161s # static gboolean 1161s # _org_project_signaling_iface_skeleton_handle_set_property ( 1161s # GDBusConnection *connection G_GNUC_UNUSED, 1161s # const gchar *sender G_GNUC_UNUSED, 1161s # const gchar *object_path G_GNUC_UNUSED, 1161s # const gchar *interface_name G_GNUC_UNUSED, 1161s # const gchar *property_name, 1161s # GVariant *variant, 1161s # GError **error, 1161s # gpointer user_data) 1161s # { 1161s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 1161s # GValue value = G_VALUE_INIT; 1161s # GParamSpec *pspec; 1161s # _ExtendedGDBusPropertyInfo *info; 1161s # gboolean ret; 1161s # ret = FALSE; 1161s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, property_name); 1161s # g_assert (info != NULL); 1161s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1161s # if (pspec == NULL) 1161s # { 1161s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1161s # } 1161s # else 1161s # { 1161s # if (info->use_gvariant) 1161s # g_value_set_variant (&value, variant); 1161s # else 1161s # g_dbus_gvariant_to_gvalue (variant, &value); 1161s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1161s # g_value_unset (&value); 1161s # ret = TRUE; 1161s # } 1161s # return ret; 1161s # } 1161s # 1161s # static const GDBusInterfaceVTable _org_project_signaling_iface_skeleton_vtable = 1161s # { 1161s # _org_project_signaling_iface_skeleton_handle_method_call, 1161s # _org_project_signaling_iface_skeleton_handle_get_property, 1161s # _org_project_signaling_iface_skeleton_handle_set_property, 1161s # {NULL} 1161s # }; 1161s # 1161s # static GDBusInterfaceInfo * 1161s # org_project_signaling_iface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1161s # { 1161s # return org_project_signaling_iface_interface_info (); 1161s # } 1161s # 1161s # static GDBusInterfaceVTable * 1161s # org_project_signaling_iface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1161s # { 1161s # return (GDBusInterfaceVTable *) &_org_project_signaling_iface_skeleton_vtable; 1161s # } 1161s # 1161s # static GVariant * 1161s # org_project_signaling_iface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 1161s # { 1161s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (_skeleton); 1161s # 1161s # GVariantBuilder builder; 1161s # guint n; 1161s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 1161s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 1161s # #else 1161s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 1161s # #endif 1161s # if (_org_project_signaling_iface_interface_info.parent_struct.properties == NULL) 1161s # goto out; 1161s # for (n = 0; _org_project_signaling_iface_interface_info.parent_struct.properties[n] != NULL; n++) 1161s # { 1161s # GDBusPropertyInfo *info = _org_project_signaling_iface_interface_info.parent_struct.properties[n]; 1161s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 1161s # { 1161s # GVariant *value; 1161s # 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); 1161s # if (value != NULL) 1161s # { 1161s # g_variant_take_ref (value); 1161s # g_variant_builder_add (&builder, "{sv}", info->name, value); 1161s # g_variant_unref (value); 1161s # } 1161s # } 1161s # } 1161s # out: 1161s # return g_variant_builder_end (&builder); 1161s # } 1161s # 1161s # static void 1161s # org_project_signaling_iface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 1161s # { 1161s # } 1161s # 1161s # static void 1161s # _org_project_signaling_iface_on_signal_simple_signal ( 1161s # OrgProjectSignalingIface *object) 1161s # { 1161s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 1161s # 1161s # GList *connections, *l; 1161s # GVariant *signal_variant; 1161s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 1161s # 1161s # signal_variant = g_variant_ref_sink (g_variant_new ("()")); 1161s # for (l = connections; l != NULL; l = l->next) 1161s # { 1161s # GDBusConnection *connection = l->data; 1161s # g_dbus_connection_emit_signal (connection, 1161s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SimpleSignal", 1161s # signal_variant, NULL); 1161s # } 1161s # g_variant_unref (signal_variant); 1161s # g_list_free_full (connections, g_object_unref); 1161s # } 1161s # 1161s # static void 1161s # _org_project_signaling_iface_on_signal_signal_with_many_args ( 1161s # OrgProjectSignalingIface *object, 1161s # gboolean arg_an_b, 1161s # guchar arg_an_y, 1161s # gint16 arg_an_n, 1161s # guint16 arg_an_q, 1161s # gint arg_an_i, 1161s # guint arg_an_u, 1161s # gint64 arg_an_x, 1161s # guint64 arg_an_t, 1161s # gdouble arg_an_d, 1161s # const gchar *arg_an_s, 1161s # const gchar *arg_an_o, 1161s # const gchar *arg_an_g, 1161s # GVariant *arg_an_h, 1161s # const gchar *arg_an_ay, 1161s # const gchar *const *arg_an_as, 1161s # const gchar *const *arg_an_ao, 1161s # const gchar *const *arg_an_aay, 1161s # GVariant *arg_an_asv) 1161s # { 1161s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 1161s # 1161s # GList *connections, *l; 1161s # GVariant *signal_variant; 1161s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 1161s # 1161s # signal_variant = g_variant_ref_sink (g_variant_new ("(bynqiuxtdsog@h^ay^as^ao^aay@a{sv})", 1161s # arg_an_b, 1161s # arg_an_y, 1161s # arg_an_n, 1161s # arg_an_q, 1161s # arg_an_i, 1161s # arg_an_u, 1161s # arg_an_x, 1161s # arg_an_t, 1161s # arg_an_d, 1161s # arg_an_s, 1161s # arg_an_o, 1161s # arg_an_g, 1161s # arg_an_h, 1161s # arg_an_ay, 1161s # arg_an_as, 1161s # arg_an_ao, 1161s # arg_an_aay, 1161s # arg_an_asv)); 1161s # for (l = connections; l != NULL; l = l->next) 1161s # { 1161s # GDBusConnection *connection = l->data; 1161s # g_dbus_connection_emit_signal (connection, 1161s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SignalWithManyArgs", 1161s # signal_variant, NULL); 1161s # } 1161s # g_variant_unref (signal_variant); 1161s # g_list_free_full (connections, g_object_unref); 1161s # } 1161s # 1161s # static void org_project_signaling_iface_skeleton_iface_init (OrgProjectSignalingIfaceIface *iface); 1161s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1161s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceSkeleton, org_project_signaling_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1161s # G_ADD_PRIVATE (OrgProjectSignalingIfaceSkeleton) 1161s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_skeleton_iface_init)) 1161s # 1161s # #else 1161s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceSkeleton, org_project_signaling_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1161s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_skeleton_iface_init)) 1161s # 1161s # #endif 1161s # static void 1161s # org_project_signaling_iface_skeleton_finalize (GObject *object) 1161s # { 1161s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 1161s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 1161s # if (skeleton->priv->changed_properties_idle_source != NULL) 1161s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 1161s # g_main_context_unref (skeleton->priv->context); 1161s # g_mutex_clear (&skeleton->priv->lock); 1161s # G_OBJECT_CLASS (org_project_signaling_iface_skeleton_parent_class)->finalize (object); 1161s # } 1161s # 1161s # static void 1161s # org_project_signaling_iface_skeleton_init (OrgProjectSignalingIfaceSkeleton *skeleton) 1161s # { 1161s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1161s # skeleton->priv = org_project_signaling_iface_skeleton_get_instance_private (skeleton); 1161s # #else 1161s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_SIGNALING_IFACE_SKELETON, OrgProjectSignalingIfaceSkeletonPrivate); 1161s # #endif 1161s # 1161s # g_mutex_init (&skeleton->priv->lock); 1161s # skeleton->priv->context = g_main_context_ref_thread_default (); 1161s # } 1161s # 1161s # static void 1161s # org_project_signaling_iface_skeleton_class_init (OrgProjectSignalingIfaceSkeletonClass *klass) 1161s # { 1161s # GObjectClass *gobject_class; 1161s # GDBusInterfaceSkeletonClass *skeleton_class; 1161s # 1161s # gobject_class = G_OBJECT_CLASS (klass); 1161s # gobject_class->finalize = org_project_signaling_iface_skeleton_finalize; 1161s # 1161s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 1161s # skeleton_class->get_info = org_project_signaling_iface_skeleton_dbus_interface_get_info; 1161s # skeleton_class->get_properties = org_project_signaling_iface_skeleton_dbus_interface_get_properties; 1161s # skeleton_class->flush = org_project_signaling_iface_skeleton_dbus_interface_flush; 1161s # skeleton_class->get_vtable = org_project_signaling_iface_skeleton_dbus_interface_get_vtable; 1161s # 1161s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1161s # g_type_class_add_private (klass, sizeof (OrgProjectSignalingIfaceSkeletonPrivate)); 1161s # #endif 1161s # } 1161s # 1161s # static void 1161s # org_project_signaling_iface_skeleton_iface_init (OrgProjectSignalingIfaceIface *iface) 1161s # { 1161s # iface->simple_signal = _org_project_signaling_iface_on_signal_simple_signal; 1161s # iface->signal_with_many_args = _org_project_signaling_iface_on_signal_signal_with_many_args; 1161s # } 1161s # 1161s # /** 1161s # * org_project_signaling_iface_skeleton_new: 1161s # * 1161s # * Creates a skeleton object for the D-Bus interface org.project.SignalingIface. 1161s # * 1161s # * Returns: (transfer full) (type OrgProjectSignalingIfaceSkeleton): The skeleton object. 1161s # */ 1161s # OrgProjectSignalingIface * 1161s # org_project_signaling_iface_skeleton_new (void) 1161s # { 1161s # return ORG_PROJECT_SIGNALING_IFACE (g_object_new (TYPE_ORG_PROJECT_SIGNALING_IFACE_SKELETON, NULL)); 1161s # } 1161s # Error: 1161s ok 25 __main__.TestCodegen.test_generate_valid_docbook 1161s # gdbus-codegen: /usr/bin/gdbus-codegen 1161s # tmpdir: /tmp/tmpa6xq33m7 1161s # /tmp/tmpa6xq33m7/tmpwpa8cxf_.xml: 1161s # 1161s # 1161s # 1161s # 1161s # 1161s # 1161s # 1161s # 1161s # 1161s # 1161s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpa6xq33m7/tmpwpa8cxf_.xml', '--generate-docbook', 'test'] 1161s # Return code: 0 1161s # Output: 1161s # 1161s # Error: 1161s ok 26 __main__.TestCodegen.test_glib_max_allowed_less_than_min_required 1161s # gdbus-codegen: /usr/bin/gdbus-codegen 1161s # tmpdir: /tmp/tmphicgp0g5 1161s # /tmp/tmphicgp0g5/tmpt5rmo5a5.xml: 1161s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmphicgp0g5/tmpt5rmo5a5.xml', '--output', '-', '--body', '--glib-max-allowed', '2.62', '--glib-min-required', '2.64'] 1161s # Return code: 1 1161s # Output: 1161s # 1161s # Error: 1161s # ERROR: Invalid versions: --glib-min-required ((2, 64)) must be less than or equal to --glib-max-allowed ((2, 62)) 1161s ok 27 __main__.TestCodegen.test_glib_max_allowed_major_only 1161s # gdbus-codegen: /usr/bin/gdbus-codegen 1161s # tmpdir: /tmp/tmp59pwozm5 1161s # /tmp/tmp59pwozm5/tmph8f3odm6.xml: 1161s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmp59pwozm5/tmph8f3odm6.xml', '--output', '-', '--header', '--glib-max-allowed', '3'] 1161s # Return code: 0 1161s # Output: 1161s # /* 1161s # * This file is generated by gdbus-codegen, do not modify it. 1161s # * 1161s # * The license of this code is the same as for the D-Bus interface description 1161s # * it was derived from. Note that it links to GLib, so must comply with the 1161s # * LGPL linking clauses. 1161s # */ 1161s # 1161s # #ifndef __STDOUT__ 1161s # #define __STDOUT__ 1161s # 1161s # #include 1161s # 1161s # G_BEGIN_DECLS 1161s # 1161s # 1161s # G_END_DECLS 1161s # 1161s # #endif /* __STDOUT__ */ 1161s # Error: 1161s ok 28 __main__.TestCodegen.test_glib_max_allowed_too_low 1161s # gdbus-codegen: /usr/bin/gdbus-codegen 1161s # tmpdir: /tmp/tmpvq69rx1x 1161s # /tmp/tmpvq69rx1x/tmpxtx88ay3.xml: 1161s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpvq69rx1x/tmpxtx88ay3.xml', '--output', '-', '--body', '--glib-max-allowed', '2.6'] 1161s # Return code: 1 1161s # Output: 1161s # 1161s # Error: 1161s # ERROR: Invalid versions: --glib-min-required ((2, 30)) must be less than or equal to --glib-max-allowed ((2, 6)) 1161s ok 29 __main__.TestCodegen.test_glib_max_allowed_unstable 1161s # gdbus-codegen: /usr/bin/gdbus-codegen 1161s # tmpdir: /tmp/tmpx91wtf_h 1161s # /tmp/tmpx91wtf_h/tmpmpi0y3nt.xml: 1161s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpx91wtf_h/tmpmpi0y3nt.xml', '--output', '-', '--header', '--glib-max-allowed', '2.63', '--glib-min-required', '2.64'] 1161s # Return code: 0 1161s # Output: 1161s # /* 1161s # * This file is generated by gdbus-codegen, do not modify it. 1161s # * 1161s # * The license of this code is the same as for the D-Bus interface description 1161s # * it was derived from. Note that it links to GLib, so must comply with the 1161s # * LGPL linking clauses. 1161s # */ 1161s # 1161s # #ifndef __STDOUT__ 1161s # #define __STDOUT__ 1161s # 1161s # #include 1161s # 1161s # G_BEGIN_DECLS 1161s # 1161s # 1161s # G_END_DECLS 1161s # 1161s # #endif /* __STDOUT__ */ 1161s # Error: 1161s ok 30 __main__.TestCodegen.test_glib_max_allowed_with_micro 1161s # gdbus-codegen: /usr/bin/gdbus-codegen 1161s # tmpdir: /tmp/tmpko_pj1kb 1161s # /tmp/tmpko_pj1kb/tmpba7ceja0.xml: 1161s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpko_pj1kb/tmpba7ceja0.xml', '--output', '-', '--header', '--glib-max-allowed', '2.46.2'] 1161s # Return code: 0 1161s # Output: 1161s # /* 1161s # * This file is generated by gdbus-codegen, do not modify it. 1161s # * 1161s # * The license of this code is the same as for the D-Bus interface description 1161s # * it was derived from. Note that it links to GLib, so must comply with the 1161s # * LGPL linking clauses. 1161s # */ 1161s # 1161s # #ifndef __STDOUT__ 1161s # #define __STDOUT__ 1161s # 1161s # #include 1161s # 1161s # G_BEGIN_DECLS 1161s # 1161s # 1161s # G_END_DECLS 1161s # 1161s # #endif /* __STDOUT__ */ 1161s # Error: 1161s ok 31 __main__.TestCodegen.test_glib_min_required_invalid 1161s # gdbus-codegen: /usr/bin/gdbus-codegen 1161s # tmpdir: /tmp/tmp_db1hiuq 1161s # /tmp/tmp_db1hiuq/tmp622x5qml.xml: 1161s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmp_db1hiuq/tmp622x5qml.xml', '--output', '-', '--body', '--glib-min-required', 'hello mum'] 1161s # Return code: 1 1161s # Output: 1161s # 1161s # Error: 1161s # ERROR: Unrecognized --glib-min-required string ‘hello mum’ 1161s ok 32 __main__.TestCodegen.test_glib_min_required_major_only 1161s # gdbus-codegen: /usr/bin/gdbus-codegen 1161s # tmpdir: /tmp/tmptu96nz16 1161s # /tmp/tmptu96nz16/tmp6xiz47cp.xml: 1161s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmptu96nz16/tmp6xiz47cp.xml', '--output', '-', '--header', '--glib-min-required', '3', '--glib-max-allowed', '3.2'] 1161s # Return code: 0 1161s # Output: 1161s # /* 1161s # * This file is generated by gdbus-codegen, do not modify it. 1161s # * 1161s # * The license of this code is the same as for the D-Bus interface description 1161s # * it was derived from. Note that it links to GLib, so must comply with the 1161s # * LGPL linking clauses. 1161s # */ 1161s # 1161s # #ifndef __STDOUT__ 1161s # #define __STDOUT__ 1161s # 1161s # #include 1161s # 1161s # G_BEGIN_DECLS 1161s # 1161s # 1161s # G_END_DECLS 1161s # 1161s # #endif /* __STDOUT__ */ 1161s # Error: 1162s ok 33 __main__.TestCodegen.test_glib_min_required_too_low 1162s # gdbus-codegen: /usr/bin/gdbus-codegen 1162s # tmpdir: /tmp/tmphqld31oa 1162s # /tmp/tmphqld31oa/tmpepyx8u4e.xml: 1162s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmphqld31oa/tmpepyx8u4e.xml', '--output', '-', '--body', '--glib-min-required', '2.6'] 1162s # Return code: 1 1162s # Output: 1162s # 1162s # Error: 1162s # ERROR: Invalid --glib-min-required string ‘2.6’: minimum version is 2.30 1162s ok 34 __main__.TestCodegen.test_glib_min_required_with_micro 1162s # gdbus-codegen: /usr/bin/gdbus-codegen 1162s # tmpdir: /tmp/tmp5bypj373 1162s # /tmp/tmp5bypj373/tmpvfxru_9x.xml: 1162s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmp5bypj373/tmpvfxru_9x.xml', '--output', '-', '--header', '--glib-min-required', '2.46.2'] 1162s # Return code: 0 1162s # Output: 1162s # /* 1162s # * This file is generated by gdbus-codegen, do not modify it. 1162s # * 1162s # * The license of this code is the same as for the D-Bus interface description 1162s # * it was derived from. Note that it links to GLib, so must comply with the 1162s # * LGPL linking clauses. 1162s # */ 1162s # 1162s # #ifndef __STDOUT__ 1162s # #define __STDOUT__ 1162s # 1162s # #include 1162s # 1162s # G_BEGIN_DECLS 1162s # 1162s # 1162s # G_END_DECLS 1162s # 1162s # #endif /* __STDOUT__ */ 1162s # Error: 1162s ok 35 __main__.TestCodegen.test_help 1162s # gdbus-codegen: /usr/bin/gdbus-codegen 1162s # tmpdir: /tmp/tmp8e07g86l 1162s # Running: ['/usr/bin/gdbus-codegen', '--help'] 1162s # Return code: 0 1162s # Output: 1162s # usage: gdbus-codegen [-h] [--interface-prefix PREFIX] 1162s # [--c-namespace NAMESPACE] [--c-generate-object-manager] 1162s # [--c-generate-autocleanup {none,objects,all}] 1162s # [--generate-docbook OUTFILES] [--generate-md OUTFILES] 1162s # [--generate-rst OUTFILES] [--pragma-once] 1162s # [--annotate WHAT KEY VALUE WHAT KEY VALUE WHAT KEY VALUE] 1162s # [--glib-min-required VERSION] 1162s # [--glib-max-allowed VERSION] 1162s # [--symbol-decorator SYMBOL_DECORATOR] 1162s # [--symbol-decorator-header SYMBOL_DECORATOR_HEADER] 1162s # [--symbol-decorator-define SYMBOL_DECORATOR_DEFINE] 1162s # [--generate-c-code OUTFILES | --header | --body | 1162s # --interface-info-header | --interface-info-body] 1162s # [--output FILE | --output-directory OUTDIR] 1162s # FILE [FILE ...] 1162s # 1162s # D-Bus code and documentation generator 1162s # 1162s # positional arguments: 1162s # FILE D-Bus introspection XML file 1162s # 1162s # options: 1162s # -h, --help show this help message and exit 1162s # --interface-prefix PREFIX 1162s # String to strip from D-Bus interface names for code 1162s # and docs 1162s # --c-namespace NAMESPACE 1162s # The namespace to use for generated C code 1162s # --c-generate-object-manager 1162s # Generate a GDBusObjectManagerClient subclass when 1162s # generating C code 1162s # --c-generate-autocleanup {none,objects,all} 1162s # Generate autocleanup support 1162s # --generate-docbook OUTFILES 1162s # Generate Docbook in OUTFILES-org.Project.IFace.xml 1162s # --generate-md OUTFILES 1162s # Generate Markdown in OUTFILES-org.Project.IFace.md 1162s # --generate-rst OUTFILES 1162s # Generate reStructuredText in OUTFILES- 1162s # org.Project.IFace.rst 1162s # --pragma-once Use "pragma once" as the inclusion guard 1162s # --annotate WHAT KEY VALUE WHAT KEY VALUE WHAT KEY VALUE 1162s # Add annotation (may be used several times) 1162s # --glib-min-required VERSION 1162s # Minimum version of GLib to be supported by the 1162s # outputted code (default: 2.30) 1162s # --glib-max-allowed VERSION 1162s # Maximum version of GLib to be used by the outputted 1162s # code (default: current GLib version) 1162s # --symbol-decorator SYMBOL_DECORATOR 1162s # Macro used to decorate a symbol in the outputted 1162s # header, possibly to export symbols 1162s # --symbol-decorator-header SYMBOL_DECORATOR_HEADER 1162s # Additional header required for decorator specified by 1162s # --symbol-decorator 1162s # --symbol-decorator-define SYMBOL_DECORATOR_DEFINE 1162s # Additional define required for decorator specified by 1162s # --symbol-decorator 1162s # --generate-c-code OUTFILES 1162s # Generate C code in OUTFILES.[ch] 1162s # --header Generate C headers 1162s # --body Generate C code 1162s # --interface-info-header 1162s # Generate GDBusInterfaceInfo C header 1162s # --interface-info-body 1162s # Generate GDBusInterfaceInfo C code 1162s # --output FILE Write output into the specified file 1162s # --output-directory OUTDIR 1162s # Location to output generated files 1162s # Error: 1162s ok 36 __main__.TestCodegen.test_indentation_preservation_in_comments 1162s # gdbus-codegen: /usr/bin/gdbus-codegen 1162s # tmpdir: /tmp/tmpm4xhnje1 1162s # /tmp/tmpm4xhnje1/tmptztrozp8.xml: 1162s # 1162s # 1162s # 1162s # 1162s # 1162s # 1162s # 1162s # 1162s # 1162s # 1162s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpm4xhnje1/tmptztrozp8.xml', '--generate-rst', 'test'] 1162s # Return code: 0 1162s # Output: 1162s # 1162s # Error: 1162s # 1162s # /tmp/tmpm4xhnje1/tmpwxn_9swx.xml: 1162s # 1162s # 1162s # 1162s # 1162s # 1162s # 1162s # 1162s # 1162s # 1162s # 1162s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpm4xhnje1/tmpwxn_9swx.xml', '--generate-md', 'test'] 1162s # Return code: 0 1162s # Output: 1162s # 1162s # Error: 1162s # 1162s # /tmp/tmpm4xhnje1/tmpgoxl7v15.xml: 1162s # 1162s # 1162s # 1162s # 1162s # 1162s # 1162s # 1162s # 1162s # 1162s # 1162s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpm4xhnje1/tmpgoxl7v15.xml', '--generate-docbook', 'test'] 1162s # Return code: 0 1162s # Output: 1162s # 1162s # Error: 1162s ok 37 __main__.TestCodegen.test_no_args 1162s # gdbus-codegen: /usr/bin/gdbus-codegen 1162s # tmpdir: /tmp/tmp4d8hpi44 1162s # Running: ['/usr/bin/gdbus-codegen'] 1162s # Return code: 2 1162s # Output: 1162s # 1162s # Error: 1162s # usage: gdbus-codegen [-h] [--interface-prefix PREFIX] 1162s # [--c-namespace NAMESPACE] [--c-generate-object-manager] 1162s # [--c-generate-autocleanup {none,objects,all}] 1162s # [--generate-docbook OUTFILES] [--generate-md OUTFILES] 1162s # [--generate-rst OUTFILES] [--pragma-once] 1162s # [--annotate WHAT KEY VALUE WHAT KEY VALUE WHAT KEY VALUE] 1162s # [--glib-min-required VERSION] 1162s # [--glib-max-allowed VERSION] 1162s # [--symbol-decorator SYMBOL_DECORATOR] 1162s # [--symbol-decorator-header SYMBOL_DECORATOR_HEADER] 1162s # [--symbol-decorator-define SYMBOL_DECORATOR_DEFINE] 1162s # [--generate-c-code OUTFILES | --header | --body | 1162s # --interface-info-header | --interface-info-body] 1162s # [--output FILE | --output-directory OUTDIR] 1162s # FILE [FILE ...] 1162s # gdbus-codegen: error: the following arguments are required: FILE 1162s ok 38 __main__.TestCodegen.test_reproducible 1162s # gdbus-codegen: /usr/bin/gdbus-codegen 1162s # tmpdir: /tmp/tmpzpf7uct6 1162s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpzpf7uct6/tmpdpni_6zb1.xml', '/tmp/tmpzpf7uct6/tmpr8peunsb2.xml', '--output', '-', '--header'] 1162s # Return code: 0 1162s # Output: 1162s # /* 1162s # * This file is generated by gdbus-codegen, do not modify it. 1162s # * 1162s # * The license of this code is the same as for the D-Bus interface description 1162s # * it was derived from. Note that it links to GLib, so must comply with the 1162s # * LGPL linking clauses. 1162s # */ 1162s # 1162s # #ifndef __STDOUT__ 1162s # #define __STDOUT__ 1162s # 1162s # #include 1162s # 1162s # G_BEGIN_DECLS 1162s # 1162s # 1162s # /* ------------------------------------------------------------------------ */ 1162s # /* Declarations for com.acme.Coyote */ 1162s # 1162s # #define TYPE_COM_ACME_COYOTE (com_acme_coyote_get_type ()) 1162s # #define COM_ACME_COYOTE(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_COM_ACME_COYOTE, ComAcmeCoyote)) 1162s # #define IS_COM_ACME_COYOTE(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_COM_ACME_COYOTE)) 1162s # #define COM_ACME_COYOTE_GET_IFACE(o) (G_TYPE_INSTANCE_GET_INTERFACE ((o), TYPE_COM_ACME_COYOTE, ComAcmeCoyoteIface)) 1162s # 1162s # struct _ComAcmeCoyote; 1162s # typedef struct _ComAcmeCoyote ComAcmeCoyote; 1162s # typedef struct _ComAcmeCoyoteIface ComAcmeCoyoteIface; 1162s # 1162s # struct _ComAcmeCoyoteIface 1162s # { 1162s # GTypeInterface parent_iface; 1162s # 1162s # 1162s # 1162s # gboolean (*handle_attack) ( 1162s # ComAcmeCoyote *object, 1162s # GDBusMethodInvocation *invocation); 1162s # 1162s # gboolean (*handle_run) ( 1162s # ComAcmeCoyote *object, 1162s # GDBusMethodInvocation *invocation); 1162s # 1162s # gboolean (*handle_sleep) ( 1162s # ComAcmeCoyote *object, 1162s # GDBusMethodInvocation *invocation); 1162s # 1162s # const gchar * (*get_mood) (ComAcmeCoyote *object); 1162s # 1162s # void (*surprised) ( 1162s # ComAcmeCoyote *object); 1162s # 1162s # }; 1162s # 1162s # GType com_acme_coyote_get_type (void) G_GNUC_CONST; 1162s # 1162s # GDBusInterfaceInfo *com_acme_coyote_interface_info (void); 1162s # guint com_acme_coyote_override_properties (GObjectClass *klass, guint property_id_begin); 1162s # 1162s # 1162s # /* D-Bus method call completion functions: */ 1162s # void com_acme_coyote_complete_run ( 1162s # ComAcmeCoyote *object, 1162s # GDBusMethodInvocation *invocation); 1162s # 1162s # void com_acme_coyote_complete_sleep ( 1162s # ComAcmeCoyote *object, 1162s # GDBusMethodInvocation *invocation); 1162s # 1162s # void com_acme_coyote_complete_attack ( 1162s # ComAcmeCoyote *object, 1162s # GDBusMethodInvocation *invocation); 1162s # 1162s # 1162s # 1162s # /* D-Bus signal emissions functions: */ 1162s # void com_acme_coyote_emit_surprised ( 1162s # ComAcmeCoyote *object); 1162s # 1162s # 1162s # 1162s # /* D-Bus method calls: */ 1162s # void com_acme_coyote_call_run ( 1162s # ComAcmeCoyote *proxy, 1162s # GCancellable *cancellable, 1162s # GAsyncReadyCallback callback, 1162s # gpointer user_data); 1162s # 1162s # gboolean com_acme_coyote_call_run_finish ( 1162s # ComAcmeCoyote *proxy, 1162s # GAsyncResult *res, 1162s # GError **error); 1162s # 1162s # gboolean com_acme_coyote_call_run_sync ( 1162s # ComAcmeCoyote *proxy, 1162s # GCancellable *cancellable, 1162s # GError **error); 1162s # 1162s # void com_acme_coyote_call_sleep ( 1162s # ComAcmeCoyote *proxy, 1162s # GCancellable *cancellable, 1162s # GAsyncReadyCallback callback, 1162s # gpointer user_data); 1162s # 1162s # gboolean com_acme_coyote_call_sleep_finish ( 1162s # ComAcmeCoyote *proxy, 1162s # GAsyncResult *res, 1162s # GError **error); 1162s # 1162s # gboolean com_acme_coyote_call_sleep_sync ( 1162s # ComAcmeCoyote *proxy, 1162s # GCancellable *cancellable, 1162s # GError **error); 1162s # 1162s # void com_acme_coyote_call_attack ( 1162s # ComAcmeCoyote *proxy, 1162s # GCancellable *cancellable, 1162s # GAsyncReadyCallback callback, 1162s # gpointer user_data); 1162s # 1162s # gboolean com_acme_coyote_call_attack_finish ( 1162s # ComAcmeCoyote *proxy, 1162s # GAsyncResult *res, 1162s # GError **error); 1162s # 1162s # gboolean com_acme_coyote_call_attack_sync ( 1162s # ComAcmeCoyote *proxy, 1162s # GCancellable *cancellable, 1162s # GError **error); 1162s # 1162s # 1162s # 1162s # /* D-Bus property accessors: */ 1162s # const gchar *com_acme_coyote_get_mood (ComAcmeCoyote *object); 1162s # gchar *com_acme_coyote_dup_mood (ComAcmeCoyote *object); 1162s # void com_acme_coyote_set_mood (ComAcmeCoyote *object, const gchar *value); 1162s # 1162s # 1162s # /* ---- */ 1162s # 1162s # #define TYPE_COM_ACME_COYOTE_PROXY (com_acme_coyote_proxy_get_type ()) 1162s # #define COM_ACME_COYOTE_PROXY(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_COM_ACME_COYOTE_PROXY, ComAcmeCoyoteProxy)) 1162s # #define COM_ACME_COYOTE_PROXY_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), TYPE_COM_ACME_COYOTE_PROXY, ComAcmeCoyoteProxyClass)) 1162s # #define COM_ACME_COYOTE_PROXY_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), TYPE_COM_ACME_COYOTE_PROXY, ComAcmeCoyoteProxyClass)) 1162s # #define IS_COM_ACME_COYOTE_PROXY(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_COM_ACME_COYOTE_PROXY)) 1162s # #define IS_COM_ACME_COYOTE_PROXY_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), TYPE_COM_ACME_COYOTE_PROXY)) 1162s # 1162s # typedef struct _ComAcmeCoyoteProxy ComAcmeCoyoteProxy; 1162s # typedef struct _ComAcmeCoyoteProxyClass ComAcmeCoyoteProxyClass; 1162s # typedef struct _ComAcmeCoyoteProxyPrivate ComAcmeCoyoteProxyPrivate; 1162s # 1162s # struct _ComAcmeCoyoteProxy 1162s # { 1162s # /*< private >*/ 1162s # GDBusProxy parent_instance; 1162s # ComAcmeCoyoteProxyPrivate *priv; 1162s # }; 1162s # 1162s # struct _ComAcmeCoyoteProxyClass 1162s # { 1162s # GDBusProxyClass parent_class; 1162s # }; 1162s # 1162s # GType com_acme_coyote_proxy_get_type (void) G_GNUC_CONST; 1162s # 1162s # #if GLIB_CHECK_VERSION(2, 44, 0) 1162s # G_DEFINE_AUTOPTR_CLEANUP_FUNC (ComAcmeCoyoteProxy, g_object_unref) 1162s # #endif 1162s # 1162s # void com_acme_coyote_proxy_new ( 1162s # GDBusConnection *connection, 1162s # GDBusProxyFlags flags, 1162s # const gchar *name, 1162s # const gchar *object_path, 1162s # GCancellable *cancellable, 1162s # GAsyncReadyCallback callback, 1162s # gpointer user_data); 1162s # ComAcmeCoyote *com_acme_coyote_proxy_new_finish ( 1162s # GAsyncResult *res, 1162s # GError **error); 1162s # ComAcmeCoyote *com_acme_coyote_proxy_new_sync ( 1162s # GDBusConnection *connection, 1162s # GDBusProxyFlags flags, 1162s # const gchar *name, 1162s # const gchar *object_path, 1162s # GCancellable *cancellable, 1162s # GError **error); 1162s # 1162s # void com_acme_coyote_proxy_new_for_bus ( 1162s # GBusType bus_type, 1162s # GDBusProxyFlags flags, 1162s # const gchar *name, 1162s # const gchar *object_path, 1162s # GCancellable *cancellable, 1162s # GAsyncReadyCallback callback, 1162s # gpointer user_data); 1162s # ComAcmeCoyote *com_acme_coyote_proxy_new_for_bus_finish ( 1162s # GAsyncResult *res, 1162s # GError **error); 1162s # ComAcmeCoyote *com_acme_coyote_proxy_new_for_bus_sync ( 1162s # GBusType bus_type, 1162s # GDBusProxyFlags flags, 1162s # const gchar *name, 1162s # const gchar *object_path, 1162s # GCancellable *cancellable, 1162s # GError **error); 1162s # 1162s # 1162s # /* ---- */ 1162s # 1162s # #define TYPE_COM_ACME_COYOTE_SKELETON (com_acme_coyote_skeleton_get_type ()) 1162s # #define COM_ACME_COYOTE_SKELETON(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_COM_ACME_COYOTE_SKELETON, ComAcmeCoyoteSkeleton)) 1162s # #define COM_ACME_COYOTE_SKELETON_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), TYPE_COM_ACME_COYOTE_SKELETON, ComAcmeCoyoteSkeletonClass)) 1162s # #define COM_ACME_COYOTE_SKELETON_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), TYPE_COM_ACME_COYOTE_SKELETON, ComAcmeCoyoteSkeletonClass)) 1162s # #define IS_COM_ACME_COYOTE_SKELETON(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_COM_ACME_COYOTE_SKELETON)) 1162s # #define IS_COM_ACME_COYOTE_SKELETON_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), TYPE_COM_ACME_COYOTE_SKELETON)) 1162s # 1162s # typedef struct _ComAcmeCoyoteSkeleton ComAcmeCoyoteSkeleton; 1162s # typedef struct _ComAcmeCoyoteSkeletonClass ComAcmeCoyoteSkeletonClass; 1162s # typedef struct _ComAcmeCoyoteSkeletonPrivate ComAcmeCoyoteSkeletonPrivate; 1162s # 1162s # struct _ComAcmeCoyoteSkeleton 1162s # { 1162s # /*< private >*/ 1162s # GDBusInterfaceSkeleton parent_instance; 1162s # ComAcmeCoyoteSkeletonPrivate *priv; 1162s # }; 1162s # 1162s # struct _ComAcmeCoyoteSkeletonClass 1162s # { 1162s # GDBusInterfaceSkeletonClass parent_class; 1162s # }; 1162s # 1162s # GType com_acme_coyote_skeleton_get_type (void) G_GNUC_CONST; 1162s # 1162s # #if GLIB_CHECK_VERSION(2, 44, 0) 1162s # G_DEFINE_AUTOPTR_CLEANUP_FUNC (ComAcmeCoyoteSkeleton, g_object_unref) 1162s # #endif 1162s # 1162s # ComAcmeCoyote *com_acme_coyote_skeleton_new (void); 1162s # 1162s # 1162s # /* ------------------------------------------------------------------------ */ 1162s # /* Declarations for org.project.Bar.Frobnicator */ 1162s # 1162s # #define TYPE_ORG_PROJECT_BAR_FROBNICATOR (org_project_bar_frobnicator_get_type ()) 1162s # #define ORG_PROJECT_BAR_FROBNICATOR(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_ORG_PROJECT_BAR_FROBNICATOR, OrgProjectBarFrobnicator)) 1162s # #define IS_ORG_PROJECT_BAR_FROBNICATOR(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_ORG_PROJECT_BAR_FROBNICATOR)) 1162s # #define ORG_PROJECT_BAR_FROBNICATOR_GET_IFACE(o) (G_TYPE_INSTANCE_GET_INTERFACE ((o), TYPE_ORG_PROJECT_BAR_FROBNICATOR, OrgProjectBarFrobnicatorIface)) 1162s # 1162s # struct _OrgProjectBarFrobnicator; 1162s # typedef struct _OrgProjectBarFrobnicator OrgProjectBarFrobnicator; 1162s # typedef struct _OrgProjectBarFrobnicatorIface OrgProjectBarFrobnicatorIface; 1162s # 1162s # struct _OrgProjectBarFrobnicatorIface 1162s # { 1162s # GTypeInterface parent_iface; 1162s # 1162s # gboolean (*handle_random_method) ( 1162s # OrgProjectBarFrobnicator *object, 1162s # GDBusMethodInvocation *invocation); 1162s # 1162s # }; 1162s # 1162s # GType org_project_bar_frobnicator_get_type (void) G_GNUC_CONST; 1162s # 1162s # GDBusInterfaceInfo *org_project_bar_frobnicator_interface_info (void); 1162s # guint org_project_bar_frobnicator_override_properties (GObjectClass *klass, guint property_id_begin); 1162s # 1162s # 1162s # /* D-Bus method call completion functions: */ 1162s # void org_project_bar_frobnicator_complete_random_method ( 1162s # OrgProjectBarFrobnicator *object, 1162s # GDBusMethodInvocation *invocation); 1162s # 1162s # 1162s # 1162s # /* D-Bus method calls: */ 1162s # void org_project_bar_frobnicator_call_random_method ( 1162s # OrgProjectBarFrobnicator *proxy, 1162s # GCancellable *cancellable, 1162s # GAsyncReadyCallback callback, 1162s # gpointer user_data); 1162s # 1162s # gboolean org_project_bar_frobnicator_call_random_method_finish ( 1162s # OrgProjectBarFrobnicator *proxy, 1162s # GAsyncResult *res, 1162s # GError **error); 1162s # 1162s # gboolean org_project_bar_frobnicator_call_random_method_sync ( 1162s # OrgProjectBarFrobnicator *proxy, 1162s # GCancellable *cancellable, 1162s # GError **error); 1162s # 1162s # 1162s # 1162s # /* ---- */ 1162s # 1162s # #define TYPE_ORG_PROJECT_BAR_FROBNICATOR_PROXY (org_project_bar_frobnicator_proxy_get_type ()) 1162s # #define ORG_PROJECT_BAR_FROBNICATOR_PROXY(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_ORG_PROJECT_BAR_FROBNICATOR_PROXY, OrgProjectBarFrobnicatorProxy)) 1162s # #define ORG_PROJECT_BAR_FROBNICATOR_PROXY_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), TYPE_ORG_PROJECT_BAR_FROBNICATOR_PROXY, OrgProjectBarFrobnicatorProxyClass)) 1162s # #define ORG_PROJECT_BAR_FROBNICATOR_PROXY_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), TYPE_ORG_PROJECT_BAR_FROBNICATOR_PROXY, OrgProjectBarFrobnicatorProxyClass)) 1162s # #define IS_ORG_PROJECT_BAR_FROBNICATOR_PROXY(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_ORG_PROJECT_BAR_FROBNICATOR_PROXY)) 1162s # #define IS_ORG_PROJECT_BAR_FROBNICATOR_PROXY_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), TYPE_ORG_PROJECT_BAR_FROBNICATOR_PROXY)) 1162s # 1162s # typedef struct _OrgProjectBarFrobnicatorProxy OrgProjectBarFrobnicatorProxy; 1162s # typedef struct _OrgProjectBarFrobnicatorProxyClass OrgProjectBarFrobnicatorProxyClass; 1162s # typedef struct _OrgProjectBarFrobnicatorProxyPrivate OrgProjectBarFrobnicatorProxyPrivate; 1162s # 1162s # struct _OrgProjectBarFrobnicatorProxy 1162s # { 1162s # /*< private >*/ 1162s # GDBusProxy parent_instance; 1162s # OrgProjectBarFrobnicatorProxyPrivate *priv; 1162s # }; 1162s # 1162s # struct _OrgProjectBarFrobnicatorProxyClass 1162s # { 1162s # GDBusProxyClass parent_class; 1162s # }; 1162s # 1162s # GType org_project_bar_frobnicator_proxy_get_type (void) G_GNUC_CONST; 1162s # 1162s # #if GLIB_CHECK_VERSION(2, 44, 0) 1162s # G_DEFINE_AUTOPTR_CLEANUP_FUNC (OrgProjectBarFrobnicatorProxy, g_object_unref) 1162s # #endif 1162s # 1162s # void org_project_bar_frobnicator_proxy_new ( 1162s # GDBusConnection *connection, 1162s # GDBusProxyFlags flags, 1162s # const gchar *name, 1162s # const gchar *object_path, 1162s # GCancellable *cancellable, 1162s # GAsyncReadyCallback callback, 1162s # gpointer user_data); 1162s # OrgProjectBarFrobnicator *org_project_bar_frobnicator_proxy_new_finish ( 1162s # GAsyncResult *res, 1162s # GError **error); 1162s # OrgProjectBarFrobnicator *org_project_bar_frobnicator_proxy_new_sync ( 1162s # GDBusConnection *connection, 1162s # GDBusProxyFlags flags, 1162s # const gchar *name, 1162s # const gchar *object_path, 1162s # GCancellable *cancellable, 1162s # GError **error); 1162s # 1162s # void org_project_bar_frobnicator_proxy_new_for_bus ( 1162s # GBusType bus_type, 1162s # GDBusProxyFlags flags, 1162s # const gchar *name, 1162s # const gchar *object_path, 1162s # GCancellable *cancellable, 1162s # GAsyncReadyCallback callback, 1162s # gpointer user_data); 1162s # OrgProjectBarFrobnicator *org_project_bar_frobnicator_proxy_new_for_bus_finish ( 1162s # GAsyncResult *res, 1162s # GError **error); 1162s # OrgProjectBarFrobnicator *org_project_bar_frobnicator_proxy_new_for_bus_sync ( 1162s # GBusType bus_type, 1162s # GDBusProxyFlags flags, 1162s # const gchar *name, 1162s # const gchar *object_path, 1162s # GCancellable *cancellable, 1162s # GError **error); 1162s # 1162s # 1162s # /* ---- */ 1162s # 1162s # #define TYPE_ORG_PROJECT_BAR_FROBNICATOR_SKELETON (org_project_bar_frobnicator_skeleton_get_type ()) 1162s # #define ORG_PROJECT_BAR_FROBNICATOR_SKELETON(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_ORG_PROJECT_BAR_FROBNICATOR_SKELETON, OrgProjectBarFrobnicatorSkeleton)) 1162s # #define ORG_PROJECT_BAR_FROBNICATOR_SKELETON_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), TYPE_ORG_PROJECT_BAR_FROBNICATOR_SKELETON, OrgProjectBarFrobnicatorSkeletonClass)) 1162s # #define ORG_PROJECT_BAR_FROBNICATOR_SKELETON_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), TYPE_ORG_PROJECT_BAR_FROBNICATOR_SKELETON, OrgProjectBarFrobnicatorSkeletonClass)) 1162s # #define IS_ORG_PROJECT_BAR_FROBNICATOR_SKELETON(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_ORG_PROJECT_BAR_FROBNICATOR_SKELETON)) 1162s # #define IS_ORG_PROJECT_BAR_FROBNICATOR_SKELETON_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), TYPE_ORG_PROJECT_BAR_FROBNICATOR_SKELETON)) 1162s # 1162s # typedef struct _OrgProjectBarFrobnicatorSkeleton OrgProjectBarFrobnicatorSkeleton; 1162s # typedef struct _OrgProjectBarFrobnicatorSkeletonClass OrgProjectBarFrobnicatorSkeletonClass; 1162s # typedef struct _OrgProjectBarFrobnicatorSkeletonPrivate OrgProjectBarFrobnicatorSkeletonPrivate; 1162s # 1162s # struct _OrgProjectBarFrobnicatorSkeleton 1162s # { 1162s # /*< private >*/ 1162s # GDBusInterfaceSkeleton parent_instance; 1162s # OrgProjectBarFrobnicatorSkeletonPrivate *priv; 1162s # }; 1162s # 1162s # struct _OrgProjectBarFrobnicatorSkeletonClass 1162s # { 1162s # GDBusInterfaceSkeletonClass parent_class; 1162s # }; 1162s # 1162s # GType org_project_bar_frobnicator_skeleton_get_type (void) G_GNUC_CONST; 1162s # 1162s # #if GLIB_CHECK_VERSION(2, 44, 0) 1162s # G_DEFINE_AUTOPTR_CLEANUP_FUNC (OrgProjectBarFrobnicatorSkeleton, g_object_unref) 1162s # #endif 1162s # 1162s # OrgProjectBarFrobnicator *org_project_bar_frobnicator_skeleton_new (void); 1162s # 1162s # 1162s # G_END_DECLS 1162s # 1162s # #endif /* __STDOUT__ */ 1162s # Error: 1162s # 1162s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpzpf7uct6/tmpr8peunsb2.xml', '/tmp/tmpzpf7uct6/tmpdpni_6zb1.xml', '--output', '-', '--header'] 1162s # Return code: 0 1162s # Output: 1162s # /* 1162s # * This file is generated by gdbus-codegen, do not modify it. 1162s # * 1162s # * The license of this code is the same as for the D-Bus interface description 1162s # * it was derived from. Note that it links to GLib, so must comply with the 1162s # * LGPL linking clauses. 1162s # */ 1162s # 1162s # #ifndef __STDOUT__ 1162s # #define __STDOUT__ 1162s # 1162s # #include 1162s # 1162s # G_BEGIN_DECLS 1162s # 1162s # 1162s # /* ------------------------------------------------------------------------ */ 1162s # /* Declarations for com.acme.Coyote */ 1162s # 1162s # #define TYPE_COM_ACME_COYOTE (com_acme_coyote_get_type ()) 1162s # #define COM_ACME_COYOTE(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_COM_ACME_COYOTE, ComAcmeCoyote)) 1162s # #define IS_COM_ACME_COYOTE(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_COM_ACME_COYOTE)) 1162s # #define COM_ACME_COYOTE_GET_IFACE(o) (G_TYPE_INSTANCE_GET_INTERFACE ((o), TYPE_COM_ACME_COYOTE, ComAcmeCoyoteIface)) 1162s # 1162s # struct _ComAcmeCoyote; 1162s # typedef struct _ComAcmeCoyote ComAcmeCoyote; 1162s # typedef struct _ComAcmeCoyoteIface ComAcmeCoyoteIface; 1162s # 1162s # struct _ComAcmeCoyoteIface 1162s # { 1162s # GTypeInterface parent_iface; 1162s # 1162s # 1162s # 1162s # gboolean (*handle_attack) ( 1162s # ComAcmeCoyote *object, 1162s # GDBusMethodInvocation *invocation); 1162s # 1162s # gboolean (*handle_run) ( 1162s # ComAcmeCoyote *object, 1162s # GDBusMethodInvocation *invocation); 1162s # 1162s # gboolean (*handle_sleep) ( 1162s # ComAcmeCoyote *object, 1162s # GDBusMethodInvocation *invocation); 1162s # 1162s # const gchar * (*get_mood) (ComAcmeCoyote *object); 1162s # 1162s # void (*surprised) ( 1162s # ComAcmeCoyote *object); 1162s # 1162s # }; 1162s # 1162s # GType com_acme_coyote_get_type (void) G_GNUC_CONST; 1162s # 1162s # GDBusInterfaceInfo *com_acme_coyote_interface_info (void); 1162s # guint com_acme_coyote_override_properties (GObjectClass *klass, guint property_id_begin); 1162s # 1162s # 1162s # /* D-Bus method call completion functions: */ 1162s # void com_acme_coyote_complete_run ( 1162s # ComAcmeCoyote *object, 1162s # GDBusMethodInvocation *invocation); 1162s # 1162s # void com_acme_coyote_complete_sleep ( 1162s # ComAcmeCoyote *object, 1162s # GDBusMethodInvocation *invocation); 1162s # 1162s # void com_acme_coyote_complete_attack ( 1162s # ComAcmeCoyote *object, 1162s # GDBusMethodInvocation *invocation); 1162s # 1162s # 1162s # 1162s # /* D-Bus signal emissions functions: */ 1162s # void com_acme_coyote_emit_surprised ( 1162s # ComAcmeCoyote *object); 1162s # 1162s # 1162s # 1162s # /* D-Bus method calls: */ 1162s # void com_acme_coyote_call_run ( 1162s # ComAcmeCoyote *proxy, 1162s # GCancellable *cancellable, 1162s # GAsyncReadyCallback callback, 1162s # gpointer user_data); 1162s # 1162s # gboolean com_acme_coyote_call_run_finish ( 1162s # ComAcmeCoyote *proxy, 1162s # GAsyncResult *res, 1162s # GError **error); 1162s # 1162s # gboolean com_acme_coyote_call_run_sync ( 1162s # ComAcmeCoyote *proxy, 1162s # GCancellable *cancellable, 1162s # GError **error); 1162s # 1162s # void com_acme_coyote_call_sleep ( 1162s # ComAcmeCoyote *proxy, 1162s # GCancellable *cancellable, 1162s # GAsyncReadyCallback callback, 1162s # gpointer user_data); 1162s # 1162s # gboolean com_acme_coyote_call_sleep_finish ( 1162s # ComAcmeCoyote *proxy, 1162s # GAsyncResult *res, 1162s # GError **error); 1162s # 1162s # gboolean com_acme_coyote_call_sleep_sync ( 1162s # ComAcmeCoyote *proxy, 1162s # GCancellable *cancellable, 1162s # GError **error); 1162s # 1162s # void com_acme_coyote_call_attack ( 1162s # ComAcmeCoyote *proxy, 1162s # GCancellable *cancellable, 1162s # GAsyncReadyCallback callback, 1162s # gpointer user_data); 1162s # 1162s # gboolean com_acme_coyote_call_attack_finish ( 1162s # ComAcmeCoyote *proxy, 1162s # GAsyncResult *res, 1162s # GError **error); 1162s # 1162s # gboolean com_acme_coyote_call_attack_sync ( 1162s # ComAcmeCoyote *proxy, 1162s # GCancellable *cancellable, 1162s # GError **error); 1162s # 1162s # 1162s # 1162s # /* D-Bus property accessors: */ 1162s # const gchar *com_acme_coyote_get_mood (ComAcmeCoyote *object); 1162s # gchar *com_acme_coyote_dup_mood (ComAcmeCoyote *object); 1162s # void com_acme_coyote_set_mood (ComAcmeCoyote *object, const gchar *value); 1162s # 1162s # 1162s # /* ---- */ 1162s # 1162s # #define TYPE_COM_ACME_COYOTE_PROXY (com_acme_coyote_proxy_get_type ()) 1162s # #define COM_ACME_COYOTE_PROXY(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_COM_ACME_COYOTE_PROXY, ComAcmeCoyoteProxy)) 1162s # #define COM_ACME_COYOTE_PROXY_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), TYPE_COM_ACME_COYOTE_PROXY, ComAcmeCoyoteProxyClass)) 1162s # #define COM_ACME_COYOTE_PROXY_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), TYPE_COM_ACME_COYOTE_PROXY, ComAcmeCoyoteProxyClass)) 1162s # #define IS_COM_ACME_COYOTE_PROXY(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_COM_ACME_COYOTE_PROXY)) 1162s # #define IS_COM_ACME_COYOTE_PROXY_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), TYPE_COM_ACME_COYOTE_PROXY)) 1162s # 1162s # typedef struct _ComAcmeCoyoteProxy ComAcmeCoyoteProxy; 1162s # typedef struct _ComAcmeCoyoteProxyClass ComAcmeCoyoteProxyClass; 1162s # typedef struct _ComAcmeCoyoteProxyPrivate ComAcmeCoyoteProxyPrivate; 1162s # 1162s # struct _ComAcmeCoyoteProxy 1162s # { 1162s # /*< private >*/ 1162s # GDBusProxy parent_instance; 1162s # ComAcmeCoyoteProxyPrivate *priv; 1162s # }; 1162s # 1162s # struct _ComAcmeCoyoteProxyClass 1162s # { 1162s # GDBusProxyClass parent_class; 1162s # }; 1162s # 1162s # GType com_acme_coyote_proxy_get_type (void) G_GNUC_CONST; 1162s # 1162s # #if GLIB_CHECK_VERSION(2, 44, 0) 1162s # G_DEFINE_AUTOPTR_CLEANUP_FUNC (ComAcmeCoyoteProxy, g_object_unref) 1162s # #endif 1162s # 1162s # void com_acme_coyote_proxy_new ( 1162s # GDBusConnection *connection, 1162s # GDBusProxyFlags flags, 1162s # const gchar *name, 1162s # const gchar *object_path, 1162s # GCancellable *cancellable, 1162s # GAsyncReadyCallback callback, 1162s # gpointer user_data); 1162s # ComAcmeCoyote *com_acme_coyote_proxy_new_finish ( 1162s # GAsyncResult *res, 1162s # GError **error); 1162s # ComAcmeCoyote *com_acme_coyote_proxy_new_sync ( 1162s # GDBusConnection *connection, 1162s # GDBusProxyFlags flags, 1162s # const gchar *name, 1162s # const gchar *object_path, 1162s # GCancellable *cancellable, 1162s # GError **error); 1162s # 1162s # void com_acme_coyote_proxy_new_for_bus ( 1162s # GBusType bus_type, 1162s # GDBusProxyFlags flags, 1162s # const gchar *name, 1162s # const gchar *object_path, 1162s # GCancellable *cancellable, 1162s # GAsyncReadyCallback callback, 1162s # gpointer user_data); 1162s # ComAcmeCoyote *com_acme_coyote_proxy_new_for_bus_finish ( 1162s # GAsyncResult *res, 1162s # GError **error); 1162s # ComAcmeCoyote *com_acme_coyote_proxy_new_for_bus_sync ( 1162s # GBusType bus_type, 1162s # GDBusProxyFlags flags, 1162s # const gchar *name, 1162s # const gchar *object_path, 1162s # GCancellable *cancellable, 1162s # GError **error); 1162s # 1162s # 1162s # /* ---- */ 1162s # 1162s # #define TYPE_COM_ACME_COYOTE_SKELETON (com_acme_coyote_skeleton_get_type ()) 1162s # #define COM_ACME_COYOTE_SKELETON(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_COM_ACME_COYOTE_SKELETON, ComAcmeCoyoteSkeleton)) 1162s # #define COM_ACME_COYOTE_SKELETON_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), TYPE_COM_ACME_COYOTE_SKELETON, ComAcmeCoyoteSkeletonClass)) 1162s # #define COM_ACME_COYOTE_SKELETON_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), TYPE_COM_ACME_COYOTE_SKELETON, ComAcmeCoyoteSkeletonClass)) 1162s # #define IS_COM_ACME_COYOTE_SKELETON(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_COM_ACME_COYOTE_SKELETON)) 1162s # #define IS_COM_ACME_COYOTE_SKELETON_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), TYPE_COM_ACME_COYOTE_SKELETON)) 1162s # 1162s # typedef struct _ComAcmeCoyoteSkeleton ComAcmeCoyoteSkeleton; 1162s # typedef struct _ComAcmeCoyoteSkeletonClass ComAcmeCoyoteSkeletonClass; 1162s # typedef struct _ComAcmeCoyoteSkeletonPrivate ComAcmeCoyoteSkeletonPrivate; 1162s # 1162s # struct _ComAcmeCoyoteSkeleton 1162s # { 1162s # /*< private >*/ 1162s # GDBusInterfaceSkeleton parent_instance; 1162s # ComAcmeCoyoteSkeletonPrivate *priv; 1162s # }; 1162s # 1162s # struct _ComAcmeCoyoteSkeletonClass 1162s # { 1162s # GDBusInterfaceSkeletonClass parent_class; 1162s # }; 1162s # 1162s # GType com_acme_coyote_skeleton_get_type (void) G_GNUC_CONST; 1162s # 1162s # #if GLIB_CHECK_VERSION(2, 44, 0) 1162s # G_DEFINE_AUTOPTR_CLEANUP_FUNC (ComAcmeCoyoteSkeleton, g_object_unref) 1162s # #endif 1162s # 1162s # ComAcmeCoyote *com_acme_coyote_skeleton_new (void); 1162s # 1162s # 1162s # /* ------------------------------------------------------------------------ */ 1162s # /* Declarations for org.project.Bar.Frobnicator */ 1162s # 1162s # #define TYPE_ORG_PROJECT_BAR_FROBNICATOR (org_project_bar_frobnicator_get_type ()) 1162s # #define ORG_PROJECT_BAR_FROBNICATOR(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_ORG_PROJECT_BAR_FROBNICATOR, OrgProjectBarFrobnicator)) 1162s # #define IS_ORG_PROJECT_BAR_FROBNICATOR(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_ORG_PROJECT_BAR_FROBNICATOR)) 1162s # #define ORG_PROJECT_BAR_FROBNICATOR_GET_IFACE(o) (G_TYPE_INSTANCE_GET_INTERFACE ((o), TYPE_ORG_PROJECT_BAR_FROBNICATOR, OrgProjectBarFrobnicatorIface)) 1162s # 1162s # struct _OrgProjectBarFrobnicator; 1162s # typedef struct _OrgProjectBarFrobnicator OrgProjectBarFrobnicator; 1162s # typedef struct _OrgProjectBarFrobnicatorIface OrgProjectBarFrobnicatorIface; 1162s # 1162s # struct _OrgProjectBarFrobnicatorIface 1162s # { 1162s # GTypeInterface parent_iface; 1162s # 1162s # gboolean (*handle_random_method) ( 1162s # OrgProjectBarFrobnicator *object, 1162s # GDBusMethodInvocation *invocation); 1162s # 1162s # }; 1162s # 1162s # GType org_project_bar_frobnicator_get_type (void) G_GNUC_CONST; 1162s # 1162s # GDBusInterfaceInfo *org_project_bar_frobnicator_interface_info (void); 1162s # guint org_project_bar_frobnicator_override_properties (GObjectClass *klass, guint property_id_begin); 1162s # 1162s # 1162s # /* D-Bus method call completion functions: */ 1162s # void org_project_bar_frobnicator_complete_random_method ( 1162s # OrgProjectBarFrobnicator *object, 1162s # GDBusMethodInvocation *invocation); 1162s # 1162s # 1162s # 1162s # /* D-Bus method calls: */ 1162s # void org_project_bar_frobnicator_call_random_method ( 1162s # OrgProjectBarFrobnicator *proxy, 1162s # GCancellable *cancellable, 1162s # GAsyncReadyCallback callback, 1162s # gpointer user_data); 1162s # 1162s # gboolean org_project_bar_frobnicator_call_random_method_finish ( 1162s # OrgProjectBarFrobnicator *proxy, 1162s # GAsyncResult *res, 1162s # GError **error); 1162s # 1162s # gboolean org_project_bar_frobnicator_call_random_method_sync ( 1162s # OrgProjectBarFrobnicator *proxy, 1162s # GCancellable *cancellable, 1162s # GError **error); 1162s # 1162s # 1162s # 1162s # /* ---- */ 1162s # 1162s # #define TYPE_ORG_PROJECT_BAR_FROBNICATOR_PROXY (org_project_bar_frobnicator_proxy_get_type ()) 1162s # #define ORG_PROJECT_BAR_FROBNICATOR_PROXY(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_ORG_PROJECT_BAR_FROBNICATOR_PROXY, OrgProjectBarFrobnicatorProxy)) 1162s # #define ORG_PROJECT_BAR_FROBNICATOR_PROXY_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), TYPE_ORG_PROJECT_BAR_FROBNICATOR_PROXY, OrgProjectBarFrobnicatorProxyClass)) 1162s # #define ORG_PROJECT_BAR_FROBNICATOR_PROXY_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), TYPE_ORG_PROJECT_BAR_FROBNICATOR_PROXY, OrgProjectBarFrobnicatorProxyClass)) 1162s # #define IS_ORG_PROJECT_BAR_FROBNICATOR_PROXY(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_ORG_PROJECT_BAR_FROBNICATOR_PROXY)) 1162s # #define IS_ORG_PROJECT_BAR_FROBNICATOR_PROXY_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), TYPE_ORG_PROJECT_BAR_FROBNICATOR_PROXY)) 1162s # 1162s # typedef struct _OrgProjectBarFrobnicatorProxy OrgProjectBarFrobnicatorProxy; 1162s # typedef struct _OrgProjectBarFrobnicatorProxyClass OrgProjectBarFrobnicatorProxyClass; 1162s # typedef struct _OrgProjectBarFrobnicatorProxyPrivate OrgProjectBarFrobnicatorProxyPrivate; 1162s # 1162s # struct _OrgProjectBarFrobnicatorProxy 1162s # { 1162s # /*< private >*/ 1162s # GDBusProxy parent_instance; 1162s # OrgProjectBarFrobnicatorProxyPrivate *priv; 1162s # }; 1162s # 1162s # struct _OrgProjectBarFrobnicatorProxyClass 1162s # { 1162s # GDBusProxyClass parent_class; 1162s # }; 1162s # 1162s # GType org_project_bar_frobnicator_proxy_get_type (void) G_GNUC_CONST; 1162s # 1162s # #if GLIB_CHECK_VERSION(2, 44, 0) 1162s # G_DEFINE_AUTOPTR_CLEANUP_FUNC (OrgProjectBarFrobnicatorProxy, g_object_unref) 1162s # #endif 1162s # 1162s # void org_project_bar_frobnicator_proxy_new ( 1162s # GDBusConnection *connection, 1162s # GDBusProxyFlags flags, 1162s # const gchar *name, 1162s # const gchar *object_path, 1162s # GCancellable *cancellable, 1162s # GAsyncReadyCallback callback, 1162s # gpointer user_data); 1162s # OrgProjectBarFrobnicator *org_project_bar_frobnicator_proxy_new_finish ( 1162s # GAsyncResult *res, 1162s # GError **error); 1162s # OrgProjectBarFrobnicator *org_project_bar_frobnicator_proxy_new_sync ( 1162s # GDBusConnection *connection, 1162s # GDBusProxyFlags flags, 1162s # const gchar *name, 1162s # const gchar *object_path, 1162s # GCancellable *cancellable, 1162s # GError **error); 1162s # 1162s # void org_project_bar_frobnicator_proxy_new_for_bus ( 1162s # GBusType bus_type, 1162s # GDBusProxyFlags flags, 1162s # const gchar *name, 1162s # const gchar *object_path, 1162s # GCancellable *cancellable, 1162s # GAsyncReadyCallback callback, 1162s # gpointer user_data); 1162s # OrgProjectBarFrobnicator *org_project_bar_frobnicator_proxy_new_for_bus_finish ( 1162s # GAsyncResult *res, 1162s # GError **error); 1162s # OrgProjectBarFrobnicator *org_project_bar_frobnicator_proxy_new_for_bus_sync ( 1162s # GBusType bus_type, 1162s # GDBusProxyFlags flags, 1162s # const gchar *name, 1162s # const gchar *object_path, 1162s # GCancellable *cancellable, 1162s # GError **error); 1162s # 1162s # 1162s # /* ---- */ 1162s # 1162s # #define TYPE_ORG_PROJECT_BAR_FROBNICATOR_SKELETON (org_project_bar_frobnicator_skeleton_get_type ()) 1162s # #define ORG_PROJECT_BAR_FROBNICATOR_SKELETON(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_ORG_PROJECT_BAR_FROBNICATOR_SKELETON, OrgProjectBarFrobnicatorSkeleton)) 1162s # #define ORG_PROJECT_BAR_FROBNICATOR_SKELETON_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), TYPE_ORG_PROJECT_BAR_FROBNICATOR_SKELETON, OrgProjectBarFrobnicatorSkeletonClass)) 1162s # #define ORG_PROJECT_BAR_FROBNICATOR_SKELETON_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), TYPE_ORG_PROJECT_BAR_FROBNICATOR_SKELETON, OrgProjectBarFrobnicatorSkeletonClass)) 1162s # #define IS_ORG_PROJECT_BAR_FROBNICATOR_SKELETON(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_ORG_PROJECT_BAR_FROBNICATOR_SKELETON)) 1162s # #define IS_ORG_PROJECT_BAR_FROBNICATOR_SKELETON_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), TYPE_ORG_PROJECT_BAR_FROBNICATOR_SKELETON)) 1162s # 1162s # typedef struct _OrgProjectBarFrobnicatorSkeleton OrgProjectBarFrobnicatorSkeleton; 1162s # typedef struct _OrgProjectBarFrobnicatorSkeletonClass OrgProjectBarFrobnicatorSkeletonClass; 1162s # typedef struct _OrgProjectBarFrobnicatorSkeletonPrivate OrgProjectBarFrobnicatorSkeletonPrivate; 1162s # 1162s # struct _OrgProjectBarFrobnicatorSkeleton 1162s # { 1162s # /*< private >*/ 1162s # GDBusInterfaceSkeleton parent_instance; 1162s # OrgProjectBarFrobnicatorSkeletonPrivate *priv; 1162s # }; 1162s # 1162s # struct _OrgProjectBarFrobnicatorSkeletonClass 1162s # { 1162s # GDBusInterfaceSkeletonClass parent_class; 1162s # }; 1162s # 1162s # GType org_project_bar_frobnicator_skeleton_get_type (void) G_GNUC_CONST; 1162s # 1162s # #if GLIB_CHECK_VERSION(2, 44, 0) 1162s # G_DEFINE_AUTOPTR_CLEANUP_FUNC (OrgProjectBarFrobnicatorSkeleton, g_object_unref) 1162s # #endif 1162s # 1162s # OrgProjectBarFrobnicator *org_project_bar_frobnicator_skeleton_new (void); 1162s # 1162s # 1162s # G_END_DECLS 1162s # 1162s # #endif /* __STDOUT__ */ 1162s # Error: 1162s # 1162s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpzpf7uct6/tmpdpni_6zb1.xml', '/tmp/tmpzpf7uct6/tmpr8peunsb2.xml', '--output', '-', '--body'] 1162s # Return code: 0 1162s # Output: 1162s # /* 1162s # * This file is generated by gdbus-codegen, do not modify it. 1162s # * 1162s # * The license of this code is the same as for the D-Bus interface description 1162s # * it was derived from. Note that it links to GLib, so must comply with the 1162s # * LGPL linking clauses. 1162s # */ 1162s # 1162s # #ifdef HAVE_CONFIG_H 1162s # # include "config.h" 1162s # #endif 1162s # 1162s # #include 1162s # #ifdef G_OS_UNIX 1162s # # include 1162s # #endif 1162s # 1162s # #ifdef G_ENABLE_DEBUG 1162s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 1162s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 1162s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 1162s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 1162s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 1162s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 1162s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 1162s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 1162s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 1162s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 1162s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 1162s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 1162s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 1162s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 1162s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 1162s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 1162s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 1162s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 1162s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 1162s # #else /* !G_ENABLE_DEBUG */ 1162s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 1162s # * Do not access GValues directly in your code. Instead, use the 1162s # * g_value_get_*() functions 1162s # */ 1162s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 1162s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 1162s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 1162s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 1162s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 1162s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 1162s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 1162s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 1162s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 1162s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 1162s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 1162s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 1162s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 1162s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 1162s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 1162s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 1162s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 1162s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 1162s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 1162s # #endif /* !G_ENABLE_DEBUG */ 1162s # 1162s # typedef struct 1162s # { 1162s # GDBusArgInfo parent_struct; 1162s # gboolean use_gvariant; 1162s # } _ExtendedGDBusArgInfo; 1162s # 1162s # typedef struct 1162s # { 1162s # GDBusMethodInfo parent_struct; 1162s # const gchar *signal_name; 1162s # gboolean pass_fdlist; 1162s # } _ExtendedGDBusMethodInfo; 1162s # 1162s # typedef struct 1162s # { 1162s # GDBusSignalInfo parent_struct; 1162s # const gchar *signal_name; 1162s # } _ExtendedGDBusSignalInfo; 1162s # 1162s # typedef struct 1162s # { 1162s # GDBusPropertyInfo parent_struct; 1162s # const gchar *hyphen_name; 1162s # guint use_gvariant : 1; 1162s # guint emits_changed_signal : 1; 1162s # } _ExtendedGDBusPropertyInfo; 1162s # 1162s # typedef struct 1162s # { 1162s # GDBusInterfaceInfo parent_struct; 1162s # const gchar *hyphen_name; 1162s # } _ExtendedGDBusInterfaceInfo; 1162s # 1162s # typedef struct 1162s # { 1162s # const _ExtendedGDBusPropertyInfo *info; 1162s # guint prop_id; 1162s # GValue orig_value; /* the value before the change */ 1162s # } ChangedProperty; 1162s # 1162s # static void 1162s # _changed_property_free (ChangedProperty *data) 1162s # { 1162s # g_value_unset (&data->orig_value); 1162s # g_free (data); 1162s # } 1162s # 1162s # static gboolean 1162s # _g_strv_equal0 (gchar **a, gchar **b) 1162s # { 1162s # gboolean ret = FALSE; 1162s # guint n; 1162s # if (a == NULL && b == NULL) 1162s # { 1162s # ret = TRUE; 1162s # goto out; 1162s # } 1162s # if (a == NULL || b == NULL) 1162s # goto out; 1162s # if (g_strv_length (a) != g_strv_length (b)) 1162s # goto out; 1162s # for (n = 0; a[n] != NULL; n++) 1162s # if (g_strcmp0 (a[n], b[n]) != 0) 1162s # goto out; 1162s # ret = TRUE; 1162s # out: 1162s # return ret; 1162s # } 1162s # 1162s # static gboolean 1162s # _g_variant_equal0 (GVariant *a, GVariant *b) 1162s # { 1162s # gboolean ret = FALSE; 1162s # if (a == NULL && b == NULL) 1162s # { 1162s # ret = TRUE; 1162s # goto out; 1162s # } 1162s # if (a == NULL || b == NULL) 1162s # goto out; 1162s # ret = g_variant_equal (a, b); 1162s # out: 1162s # return ret; 1162s # } 1162s # 1162s # G_GNUC_UNUSED static gboolean 1162s # _g_value_equal (const GValue *a, const GValue *b) 1162s # { 1162s # gboolean ret = FALSE; 1162s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 1162s # switch (G_VALUE_TYPE (a)) 1162s # { 1162s # case G_TYPE_BOOLEAN: 1162s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 1162s # break; 1162s # case G_TYPE_UCHAR: 1162s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 1162s # break; 1162s # case G_TYPE_INT: 1162s # ret = (g_value_get_int (a) == g_value_get_int (b)); 1162s # break; 1162s # case G_TYPE_UINT: 1162s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 1162s # break; 1162s # case G_TYPE_INT64: 1162s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 1162s # break; 1162s # case G_TYPE_UINT64: 1162s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 1162s # break; 1162s # case G_TYPE_DOUBLE: 1162s # { 1162s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 1162s # gdouble da = g_value_get_double (a); 1162s # gdouble db = g_value_get_double (b); 1162s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 1162s # } 1162s # break; 1162s # case G_TYPE_STRING: 1162s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 1162s # break; 1162s # case G_TYPE_VARIANT: 1162s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 1162s # break; 1162s # default: 1162s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 1162s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 1162s # else 1162s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 1162s # break; 1162s # } 1162s # return ret; 1162s # } 1162s # 1162s # static void 1162s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT ( 1162s # GClosure *closure, 1162s # GValue *return_value, 1162s # unsigned int n_param_values, 1162s # const GValue *param_values, 1162s # void *invocation_hint G_GNUC_UNUSED, 1162s # void *marshal_data) 1162s # { 1162s # typedef gboolean (*_GDbusCodegenMarshalBoolean_ObjectFunc) 1162s # (void *data1, 1162s # GDBusMethodInvocation *arg_method_invocation, 1162s # void *data2); 1162s # _GDbusCodegenMarshalBoolean_ObjectFunc callback; 1162s # GCClosure *cc = (GCClosure*) closure; 1162s # void *data1, *data2; 1162s # gboolean v_return; 1162s # 1162s # g_return_if_fail (return_value != NULL); 1162s # g_return_if_fail (n_param_values == 2); 1162s # 1162s # if (G_CCLOSURE_SWAP_DATA (closure)) 1162s # { 1162s # data1 = closure->data; 1162s # data2 = g_value_peek_pointer (param_values + 0); 1162s # } 1162s # else 1162s # { 1162s # data1 = g_value_peek_pointer (param_values + 0); 1162s # data2 = closure->data; 1162s # } 1162s # 1162s # callback = (_GDbusCodegenMarshalBoolean_ObjectFunc) 1162s # (marshal_data ? marshal_data : cc->callback); 1162s # 1162s # v_return = 1162s # callback (data1, 1162s # g_marshal_value_peek_object (param_values + 1), 1162s # data2); 1162s # 1162s # g_value_set_boolean (return_value, v_return); 1162s # } 1162s # 1162s # /* ------------------------------------------------------------------------ 1162s # * Code for interface com.acme.Coyote 1162s # * ------------------------------------------------------------------------ 1162s # */ 1162s # 1162s # /** 1162s # * SECTION:ComAcmeCoyote 1162s # * @title: ComAcmeCoyote 1162s # * @short_description: Generated C code for the com.acme.Coyote D-Bus interface 1162s # * 1162s # * This section contains code for working with the com.acme.Coyote D-Bus interface in C. 1162s # */ 1162s # 1162s # enum 1162s # { 1162s # _COM_ACME_COYOTE_SURPRISED, 1162s # }; 1162s # 1162s # static unsigned _COM_ACME_COYOTE_SIGNALS[1] = { 0 }; 1162s # 1162s # /* ---- Introspection data for com.acme.Coyote ---- */ 1162s # 1162s # static const _ExtendedGDBusMethodInfo _com_acme_coyote_method_info_run = 1162s # { 1162s # { 1162s # -1, 1162s # (gchar *) "Run", 1162s # NULL, 1162s # NULL, 1162s # NULL 1162s # }, 1162s # "handle-run", 1162s # FALSE 1162s # }; 1162s # 1162s # static const _ExtendedGDBusMethodInfo _com_acme_coyote_method_info_sleep = 1162s # { 1162s # { 1162s # -1, 1162s # (gchar *) "Sleep", 1162s # NULL, 1162s # NULL, 1162s # NULL 1162s # }, 1162s # "handle-sleep", 1162s # FALSE 1162s # }; 1162s # 1162s # static const _ExtendedGDBusMethodInfo _com_acme_coyote_method_info_attack = 1162s # { 1162s # { 1162s # -1, 1162s # (gchar *) "Attack", 1162s # NULL, 1162s # NULL, 1162s # NULL 1162s # }, 1162s # "handle-attack", 1162s # FALSE 1162s # }; 1162s # 1162s # static const GDBusMethodInfo * const _com_acme_coyote_method_info_pointers[] = 1162s # { 1162s # &_com_acme_coyote_method_info_run.parent_struct, 1162s # &_com_acme_coyote_method_info_sleep.parent_struct, 1162s # &_com_acme_coyote_method_info_attack.parent_struct, 1162s # NULL 1162s # }; 1162s # 1162s # static const _ExtendedGDBusSignalInfo _com_acme_coyote_signal_info_surprised = 1162s # { 1162s # { 1162s # -1, 1162s # (gchar *) "Surprised", 1162s # NULL, 1162s # NULL 1162s # }, 1162s # "surprised" 1162s # }; 1162s # 1162s # static const GDBusSignalInfo * const _com_acme_coyote_signal_info_pointers[] = 1162s # { 1162s # &_com_acme_coyote_signal_info_surprised.parent_struct, 1162s # NULL 1162s # }; 1162s # 1162s # static const _ExtendedGDBusPropertyInfo _com_acme_coyote_property_info_mood = 1162s # { 1162s # { 1162s # -1, 1162s # (gchar *) "Mood", 1162s # (gchar *) "s", 1162s # G_DBUS_PROPERTY_INFO_FLAGS_READABLE, 1162s # NULL 1162s # }, 1162s # "mood", 1162s # FALSE, 1162s # TRUE 1162s # }; 1162s # 1162s # static const GDBusPropertyInfo * const _com_acme_coyote_property_info_pointers[] = 1162s # { 1162s # &_com_acme_coyote_property_info_mood.parent_struct, 1162s # NULL 1162s # }; 1162s # 1162s # static const _ExtendedGDBusInterfaceInfo _com_acme_coyote_interface_info = 1162s # { 1162s # { 1162s # -1, 1162s # (gchar *) "com.acme.Coyote", 1162s # (GDBusMethodInfo **) &_com_acme_coyote_method_info_pointers, 1162s # (GDBusSignalInfo **) &_com_acme_coyote_signal_info_pointers, 1162s # (GDBusPropertyInfo **) &_com_acme_coyote_property_info_pointers, 1162s # NULL 1162s # }, 1162s # "com-acme-coyote", 1162s # }; 1162s # 1162s # 1162s # /** 1162s # * com_acme_coyote_interface_info: 1162s # * 1162s # * Gets a machine-readable description of the com.acme.Coyote D-Bus interface. 1162s # * 1162s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 1162s # */ 1162s # GDBusInterfaceInfo * 1162s # com_acme_coyote_interface_info (void) 1162s # { 1162s # return (GDBusInterfaceInfo *) &_com_acme_coyote_interface_info.parent_struct; 1162s # } 1162s # 1162s # /** 1162s # * com_acme_coyote_override_properties: 1162s # * @klass: The class structure for a #GObject derived class. 1162s # * @property_id_begin: The property id to assign to the first overridden property. 1162s # * 1162s # * Overrides all #GObject properties in the #ComAcmeCoyote interface for a concrete class. 1162s # * The properties are overridden in the order they are defined. 1162s # * 1162s # * Returns: The last property id. 1162s # */ 1162s # guint 1162s # com_acme_coyote_override_properties (GObjectClass *klass, guint property_id_begin) 1162s # { 1162s # g_object_class_override_property (klass, property_id_begin++, "mood"); 1162s # return property_id_begin - 1; 1162s # } 1162s # 1162s # 1162s # inline static void 1162s # com_acme_coyote_signal_marshal_surprised ( 1162s # GClosure *closure, 1162s # GValue *return_value, 1162s # unsigned int n_param_values, 1162s # const GValue *param_values, 1162s # void *invocation_hint, 1162s # void *marshal_data) 1162s # { 1162s # g_cclosure_marshal_VOID__VOID (closure, 1162s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1162s # } 1162s # 1162s # inline static void 1162s # com_acme_coyote_method_marshal_run ( 1162s # GClosure *closure, 1162s # GValue *return_value, 1162s # unsigned int n_param_values, 1162s # const GValue *param_values, 1162s # void *invocation_hint, 1162s # void *marshal_data) 1162s # { 1162s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT (closure, 1162s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1162s # } 1162s # 1162s # inline static void 1162s # com_acme_coyote_method_marshal_sleep ( 1162s # GClosure *closure, 1162s # GValue *return_value, 1162s # unsigned int n_param_values, 1162s # const GValue *param_values, 1162s # void *invocation_hint, 1162s # void *marshal_data) 1162s # { 1162s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT (closure, 1162s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1162s # } 1162s # 1162s # inline static void 1162s # com_acme_coyote_method_marshal_attack ( 1162s # GClosure *closure, 1162s # GValue *return_value, 1162s # unsigned int n_param_values, 1162s # const GValue *param_values, 1162s # void *invocation_hint, 1162s # void *marshal_data) 1162s # { 1162s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT (closure, 1162s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1162s # } 1162s # 1162s # 1162s # /** 1162s # * ComAcmeCoyote: 1162s # * 1162s # * Abstract interface type for the D-Bus interface com.acme.Coyote. 1162s # */ 1162s # 1162s # /** 1162s # * ComAcmeCoyoteIface: 1162s # * @parent_iface: The parent interface. 1162s # * @handle_attack: Handler for the #ComAcmeCoyote::handle-attack signal. 1162s # * @handle_run: Handler for the #ComAcmeCoyote::handle-run signal. 1162s # * @handle_sleep: Handler for the #ComAcmeCoyote::handle-sleep signal. 1162s # * @get_mood: Getter for the #ComAcmeCoyote:mood property. 1162s # * @surprised: Handler for the #ComAcmeCoyote::surprised signal. 1162s # * 1162s # * Virtual table for the D-Bus interface com.acme.Coyote. 1162s # */ 1162s # 1162s # typedef ComAcmeCoyoteIface ComAcmeCoyoteInterface; 1162s # G_DEFINE_INTERFACE (ComAcmeCoyote, com_acme_coyote, G_TYPE_OBJECT) 1162s # 1162s # static void 1162s # com_acme_coyote_default_init (ComAcmeCoyoteIface *iface) 1162s # { 1162s # /* GObject signals for incoming D-Bus method calls: */ 1162s # /** 1162s # * ComAcmeCoyote::handle-run: 1162s # * @object: A #ComAcmeCoyote. 1162s # * @invocation: A #GDBusMethodInvocation. 1162s # * 1162s # * Signal emitted when a remote caller is invoking the Run() D-Bus method. 1162s # * 1162s # * 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. 1162s # * 1162s # * 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. 1162s # */ 1162s # g_signal_new ("handle-run", 1162s # G_TYPE_FROM_INTERFACE (iface), 1162s # G_SIGNAL_RUN_LAST, 1162s # G_STRUCT_OFFSET (ComAcmeCoyoteIface, handle_run), 1162s # g_signal_accumulator_true_handled, 1162s # NULL, 1162s # com_acme_coyote_method_marshal_run, 1162s # G_TYPE_BOOLEAN, 1162s # 1, 1162s # G_TYPE_DBUS_METHOD_INVOCATION); 1162s # 1162s # /** 1162s # * ComAcmeCoyote::handle-sleep: 1162s # * @object: A #ComAcmeCoyote. 1162s # * @invocation: A #GDBusMethodInvocation. 1162s # * 1162s # * Signal emitted when a remote caller is invoking the Sleep() D-Bus method. 1162s # * 1162s # * 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. 1162s # * 1162s # * 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. 1162s # */ 1162s # g_signal_new ("handle-sleep", 1162s # G_TYPE_FROM_INTERFACE (iface), 1162s # G_SIGNAL_RUN_LAST, 1162s # G_STRUCT_OFFSET (ComAcmeCoyoteIface, handle_sleep), 1162s # g_signal_accumulator_true_handled, 1162s # NULL, 1162s # com_acme_coyote_method_marshal_sleep, 1162s # G_TYPE_BOOLEAN, 1162s # 1, 1162s # G_TYPE_DBUS_METHOD_INVOCATION); 1162s # 1162s # /** 1162s # * ComAcmeCoyote::handle-attack: 1162s # * @object: A #ComAcmeCoyote. 1162s # * @invocation: A #GDBusMethodInvocation. 1162s # * 1162s # * Signal emitted when a remote caller is invoking the Attack() D-Bus method. 1162s # * 1162s # * 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. 1162s # * 1162s # * 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. 1162s # */ 1162s # g_signal_new ("handle-attack", 1162s # G_TYPE_FROM_INTERFACE (iface), 1162s # G_SIGNAL_RUN_LAST, 1162s # G_STRUCT_OFFSET (ComAcmeCoyoteIface, handle_attack), 1162s # g_signal_accumulator_true_handled, 1162s # NULL, 1162s # com_acme_coyote_method_marshal_attack, 1162s # G_TYPE_BOOLEAN, 1162s # 1, 1162s # G_TYPE_DBUS_METHOD_INVOCATION); 1162s # 1162s # /* GObject signals for received D-Bus signals: */ 1162s # /** 1162s # * ComAcmeCoyote::surprised: 1162s # * @object: A #ComAcmeCoyote. 1162s # * 1162s # * On the client-side, this signal is emitted whenever the D-Bus signal "Surprised" is received. 1162s # * 1162s # * 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. 1162s # */ 1162s # _COM_ACME_COYOTE_SIGNALS[_COM_ACME_COYOTE_SURPRISED] = 1162s # g_signal_new ("surprised", 1162s # G_TYPE_FROM_INTERFACE (iface), 1162s # G_SIGNAL_RUN_LAST, 1162s # G_STRUCT_OFFSET (ComAcmeCoyoteIface, surprised), 1162s # NULL, 1162s # NULL, 1162s # com_acme_coyote_signal_marshal_surprised, 1162s # G_TYPE_NONE, 1162s # 0); 1162s # 1162s # /* GObject properties for D-Bus properties: */ 1162s # /** 1162s # * ComAcmeCoyote:mood: 1162s # * 1162s # * Represents the D-Bus property "Mood". 1162s # * 1162s # * 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. 1162s # */ 1162s # g_object_interface_install_property (iface, 1162s # g_param_spec_string ("mood", "Mood", "Mood", NULL, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS)); 1162s # } 1162s # 1162s # /** 1162s # * com_acme_coyote_get_mood: (skip) 1162s # * @object: A #ComAcmeCoyote. 1162s # * 1162s # * Gets the value of the "Mood" D-Bus property. 1162s # * 1162s # * Since this D-Bus property is readable, it is meaningful to use this function on both the client- and service-side. 1162s # * 1162s # * 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. 1162s # * 1162s # * 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. 1162s # */ 1162s # const gchar * 1162s # com_acme_coyote_get_mood (ComAcmeCoyote *object) 1162s # { 1162s # g_return_val_if_fail (IS_COM_ACME_COYOTE (object), NULL); 1162s # 1162s # return COM_ACME_COYOTE_GET_IFACE (object)->get_mood (object); 1162s # } 1162s # 1162s # /** 1162s # * com_acme_coyote_dup_mood: (skip) 1162s # * @object: A #ComAcmeCoyote. 1162s # * 1162s # * Gets a copy of the "Mood" D-Bus property. 1162s # * 1162s # * Since this D-Bus property is readable, it is meaningful to use this function on both the client- and service-side. 1162s # * 1162s # * Returns: (transfer full) (nullable): The property value or %NULL if the property is not set. The returned value should be freed with g_free(). 1162s # */ 1162s # gchar * 1162s # com_acme_coyote_dup_mood (ComAcmeCoyote *object) 1162s # { 1162s # gchar *value; 1162s # g_object_get (G_OBJECT (object), "mood", &value, NULL); 1162s # return value; 1162s # } 1162s # 1162s # /** 1162s # * com_acme_coyote_set_mood: (skip) 1162s # * @object: A #ComAcmeCoyote. 1162s # * @value: The value to set. 1162s # * 1162s # * Sets the "Mood" D-Bus property to @value. 1162s # * 1162s # * Since this D-Bus property is not writable, it is only meaningful to use this function on the service-side. 1162s # */ 1162s # void 1162s # com_acme_coyote_set_mood (ComAcmeCoyote *object, const gchar *value) 1162s # { 1162s # g_object_set (G_OBJECT (object), "mood", value, NULL); 1162s # } 1162s # 1162s # /** 1162s # * com_acme_coyote_emit_surprised: 1162s # * @object: A #ComAcmeCoyote. 1162s # * 1162s # * Emits the "Surprised" D-Bus signal. 1162s # */ 1162s # void 1162s # com_acme_coyote_emit_surprised ( 1162s # ComAcmeCoyote *object) 1162s # { 1162s # g_signal_emit (object, _COM_ACME_COYOTE_SIGNALS[_COM_ACME_COYOTE_SURPRISED], 0); 1162s # } 1162s # 1162s # /** 1162s # * com_acme_coyote_call_run: 1162s # * @proxy: A #ComAcmeCoyoteProxy. 1162s # * @cancellable: (nullable): A #GCancellable or %NULL. 1162s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL. 1162s # * @user_data: User data to pass to @callback. 1162s # * 1162s # * Asynchronously invokes the Run() D-Bus method on @proxy. 1162s # * 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()). 1162s # * You can then call com_acme_coyote_call_run_finish() to get the result of the operation. 1162s # * 1162s # * See com_acme_coyote_call_run_sync() for the synchronous, blocking version of this method. 1162s # */ 1162s # void 1162s # com_acme_coyote_call_run ( 1162s # ComAcmeCoyote *proxy, 1162s # GCancellable *cancellable, 1162s # GAsyncReadyCallback callback, 1162s # gpointer user_data) 1162s # { 1162s # g_dbus_proxy_call (G_DBUS_PROXY (proxy), 1162s # "Run", 1162s # g_variant_new ("()"), 1162s # G_DBUS_CALL_FLAGS_NONE, 1162s # -1, 1162s # cancellable, 1162s # callback, 1162s # user_data); 1162s # } 1162s # 1162s # /** 1162s # * com_acme_coyote_call_run_finish: 1162s # * @proxy: A #ComAcmeCoyoteProxy. 1162s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to com_acme_coyote_call_run(). 1162s # * @error: Return location for error or %NULL. 1162s # * 1162s # * Finishes an operation started with com_acme_coyote_call_run(). 1162s # * 1162s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1162s # */ 1162s # gboolean 1162s # com_acme_coyote_call_run_finish ( 1162s # ComAcmeCoyote *proxy, 1162s # GAsyncResult *res, 1162s # GError **error) 1162s # { 1162s # GVariant *_ret; 1162s # _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error); 1162s # if (_ret == NULL) 1162s # goto _out; 1162s # g_variant_get (_ret, 1162s # "()"); 1162s # g_variant_unref (_ret); 1162s # _out: 1162s # return _ret != NULL; 1162s # } 1162s # 1162s # /** 1162s # * com_acme_coyote_call_run_sync: 1162s # * @proxy: A #ComAcmeCoyoteProxy. 1162s # * @cancellable: (nullable): A #GCancellable or %NULL. 1162s # * @error: Return location for error or %NULL. 1162s # * 1162s # * Synchronously invokes the Run() D-Bus method on @proxy. The calling thread is blocked until a reply is received. 1162s # * 1162s # * See com_acme_coyote_call_run() for the asynchronous version of this method. 1162s # * 1162s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1162s # */ 1162s # gboolean 1162s # com_acme_coyote_call_run_sync ( 1162s # ComAcmeCoyote *proxy, 1162s # GCancellable *cancellable, 1162s # GError **error) 1162s # { 1162s # GVariant *_ret; 1162s # _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy), 1162s # "Run", 1162s # g_variant_new ("()"), 1162s # G_DBUS_CALL_FLAGS_NONE, 1162s # -1, 1162s # cancellable, 1162s # error); 1162s # if (_ret == NULL) 1162s # goto _out; 1162s # g_variant_get (_ret, 1162s # "()"); 1162s # g_variant_unref (_ret); 1162s # _out: 1162s # return _ret != NULL; 1162s # } 1162s # 1162s # /** 1162s # * com_acme_coyote_call_sleep: 1162s # * @proxy: A #ComAcmeCoyoteProxy. 1162s # * @cancellable: (nullable): A #GCancellable or %NULL. 1162s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL. 1162s # * @user_data: User data to pass to @callback. 1162s # * 1162s # * Asynchronously invokes the Sleep() D-Bus method on @proxy. 1162s # * 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()). 1162s # * You can then call com_acme_coyote_call_sleep_finish() to get the result of the operation. 1162s # * 1162s # * See com_acme_coyote_call_sleep_sync() for the synchronous, blocking version of this method. 1162s # */ 1162s # void 1162s # com_acme_coyote_call_sleep ( 1162s # ComAcmeCoyote *proxy, 1162s # GCancellable *cancellable, 1162s # GAsyncReadyCallback callback, 1162s # gpointer user_data) 1162s # { 1162s # g_dbus_proxy_call (G_DBUS_PROXY (proxy), 1162s # "Sleep", 1162s # g_variant_new ("()"), 1162s # G_DBUS_CALL_FLAGS_NONE, 1162s # -1, 1162s # cancellable, 1162s # callback, 1162s # user_data); 1162s # } 1162s # 1162s # /** 1162s # * com_acme_coyote_call_sleep_finish: 1162s # * @proxy: A #ComAcmeCoyoteProxy. 1162s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to com_acme_coyote_call_sleep(). 1162s # * @error: Return location for error or %NULL. 1162s # * 1162s # * Finishes an operation started with com_acme_coyote_call_sleep(). 1162s # * 1162s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1162s # */ 1162s # gboolean 1162s # com_acme_coyote_call_sleep_finish ( 1162s # ComAcmeCoyote *proxy, 1162s # GAsyncResult *res, 1162s # GError **error) 1162s # { 1162s # GVariant *_ret; 1162s # _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error); 1162s # if (_ret == NULL) 1162s # goto _out; 1162s # g_variant_get (_ret, 1162s # "()"); 1162s # g_variant_unref (_ret); 1162s # _out: 1162s # return _ret != NULL; 1162s # } 1162s # 1162s # /** 1162s # * com_acme_coyote_call_sleep_sync: 1162s # * @proxy: A #ComAcmeCoyoteProxy. 1162s # * @cancellable: (nullable): A #GCancellable or %NULL. 1162s # * @error: Return location for error or %NULL. 1162s # * 1162s # * Synchronously invokes the Sleep() D-Bus method on @proxy. The calling thread is blocked until a reply is received. 1162s # * 1162s # * See com_acme_coyote_call_sleep() for the asynchronous version of this method. 1162s # * 1162s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1162s # */ 1162s # gboolean 1162s # com_acme_coyote_call_sleep_sync ( 1162s # ComAcmeCoyote *proxy, 1162s # GCancellable *cancellable, 1162s # GError **error) 1162s # { 1162s # GVariant *_ret; 1162s # _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy), 1162s # "Sleep", 1162s # g_variant_new ("()"), 1162s # G_DBUS_CALL_FLAGS_NONE, 1162s # -1, 1162s # cancellable, 1162s # error); 1162s # if (_ret == NULL) 1162s # goto _out; 1162s # g_variant_get (_ret, 1162s # "()"); 1162s # g_variant_unref (_ret); 1162s # _out: 1162s # return _ret != NULL; 1162s # } 1162s # 1162s # /** 1162s # * com_acme_coyote_call_attack: 1162s # * @proxy: A #ComAcmeCoyoteProxy. 1162s # * @cancellable: (nullable): A #GCancellable or %NULL. 1162s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL. 1162s # * @user_data: User data to pass to @callback. 1162s # * 1162s # * Asynchronously invokes the Attack() D-Bus method on @proxy. 1162s # * 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()). 1162s # * You can then call com_acme_coyote_call_attack_finish() to get the result of the operation. 1162s # * 1162s # * See com_acme_coyote_call_attack_sync() for the synchronous, blocking version of this method. 1162s # */ 1162s # void 1162s # com_acme_coyote_call_attack ( 1162s # ComAcmeCoyote *proxy, 1162s # GCancellable *cancellable, 1162s # GAsyncReadyCallback callback, 1162s # gpointer user_data) 1162s # { 1162s # g_dbus_proxy_call (G_DBUS_PROXY (proxy), 1162s # "Attack", 1162s # g_variant_new ("()"), 1162s # G_DBUS_CALL_FLAGS_NONE, 1162s # -1, 1162s # cancellable, 1162s # callback, 1162s # user_data); 1162s # } 1162s # 1162s # /** 1162s # * com_acme_coyote_call_attack_finish: 1162s # * @proxy: A #ComAcmeCoyoteProxy. 1162s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to com_acme_coyote_call_attack(). 1162s # * @error: Return location for error or %NULL. 1162s # * 1162s # * Finishes an operation started with com_acme_coyote_call_attack(). 1162s # * 1162s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1162s # */ 1162s # gboolean 1162s # com_acme_coyote_call_attack_finish ( 1162s # ComAcmeCoyote *proxy, 1162s # GAsyncResult *res, 1162s # GError **error) 1162s # { 1162s # GVariant *_ret; 1162s # _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error); 1162s # if (_ret == NULL) 1162s # goto _out; 1162s # g_variant_get (_ret, 1162s # "()"); 1162s # g_variant_unref (_ret); 1162s # _out: 1162s # return _ret != NULL; 1162s # } 1162s # 1162s # /** 1162s # * com_acme_coyote_call_attack_sync: 1162s # * @proxy: A #ComAcmeCoyoteProxy. 1162s # * @cancellable: (nullable): A #GCancellable or %NULL. 1162s # * @error: Return location for error or %NULL. 1162s # * 1162s # * Synchronously invokes the Attack() D-Bus method on @proxy. The calling thread is blocked until a reply is received. 1162s # * 1162s # * See com_acme_coyote_call_attack() for the asynchronous version of this method. 1162s # * 1162s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1162s # */ 1162s # gboolean 1162s # com_acme_coyote_call_attack_sync ( 1162s # ComAcmeCoyote *proxy, 1162s # GCancellable *cancellable, 1162s # GError **error) 1162s # { 1162s # GVariant *_ret; 1162s # _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy), 1162s # "Attack", 1162s # g_variant_new ("()"), 1162s # G_DBUS_CALL_FLAGS_NONE, 1162s # -1, 1162s # cancellable, 1162s # error); 1162s # if (_ret == NULL) 1162s # goto _out; 1162s # g_variant_get (_ret, 1162s # "()"); 1162s # g_variant_unref (_ret); 1162s # _out: 1162s # return _ret != NULL; 1162s # } 1162s # 1162s # /** 1162s # * com_acme_coyote_complete_run: 1162s # * @object: A #ComAcmeCoyote. 1162s # * @invocation: (transfer full): A #GDBusMethodInvocation. 1162s # * 1162s # * 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. 1162s # * 1162s # * This method will free @invocation, you cannot use it afterwards. 1162s # */ 1162s # void 1162s # com_acme_coyote_complete_run ( 1162s # ComAcmeCoyote *object G_GNUC_UNUSED, 1162s # GDBusMethodInvocation *invocation) 1162s # { 1162s # g_dbus_method_invocation_return_value (invocation, 1162s # g_variant_new ("()")); 1162s # } 1162s # 1162s # /** 1162s # * com_acme_coyote_complete_sleep: 1162s # * @object: A #ComAcmeCoyote. 1162s # * @invocation: (transfer full): A #GDBusMethodInvocation. 1162s # * 1162s # * 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. 1162s # * 1162s # * This method will free @invocation, you cannot use it afterwards. 1162s # */ 1162s # void 1162s # com_acme_coyote_complete_sleep ( 1162s # ComAcmeCoyote *object G_GNUC_UNUSED, 1162s # GDBusMethodInvocation *invocation) 1162s # { 1162s # g_dbus_method_invocation_return_value (invocation, 1162s # g_variant_new ("()")); 1162s # } 1162s # 1162s # /** 1162s # * com_acme_coyote_complete_attack: 1162s # * @object: A #ComAcmeCoyote. 1162s # * @invocation: (transfer full): A #GDBusMethodInvocation. 1162s # * 1162s # * 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. 1162s # * 1162s # * This method will free @invocation, you cannot use it afterwards. 1162s # */ 1162s # void 1162s # com_acme_coyote_complete_attack ( 1162s # ComAcmeCoyote *object G_GNUC_UNUSED, 1162s # GDBusMethodInvocation *invocation) 1162s # { 1162s # g_dbus_method_invocation_return_value (invocation, 1162s # g_variant_new ("()")); 1162s # } 1162s # 1162s # /* ------------------------------------------------------------------------ */ 1162s # 1162s # /** 1162s # * ComAcmeCoyoteProxy: 1162s # * 1162s # * The #ComAcmeCoyoteProxy structure contains only private data and should only be accessed using the provided API. 1162s # */ 1162s # 1162s # /** 1162s # * ComAcmeCoyoteProxyClass: 1162s # * @parent_class: The parent class. 1162s # * 1162s # * Class structure for #ComAcmeCoyoteProxy. 1162s # */ 1162s # 1162s # struct _ComAcmeCoyoteProxyPrivate 1162s # { 1162s # GData *qdata; 1162s # }; 1162s # 1162s # static void com_acme_coyote_proxy_iface_init (ComAcmeCoyoteIface *iface); 1162s # 1162s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1162s # G_DEFINE_TYPE_WITH_CODE (ComAcmeCoyoteProxy, com_acme_coyote_proxy, G_TYPE_DBUS_PROXY, 1162s # G_ADD_PRIVATE (ComAcmeCoyoteProxy) 1162s # G_IMPLEMENT_INTERFACE (TYPE_COM_ACME_COYOTE, com_acme_coyote_proxy_iface_init)) 1162s # 1162s # #else 1162s # G_DEFINE_TYPE_WITH_CODE (ComAcmeCoyoteProxy, com_acme_coyote_proxy, G_TYPE_DBUS_PROXY, 1162s # G_IMPLEMENT_INTERFACE (TYPE_COM_ACME_COYOTE, com_acme_coyote_proxy_iface_init)) 1162s # 1162s # #endif 1162s # static void 1162s # com_acme_coyote_proxy_finalize (GObject *object) 1162s # { 1162s # ComAcmeCoyoteProxy *proxy = COM_ACME_COYOTE_PROXY (object); 1162s # g_datalist_clear (&proxy->priv->qdata); 1162s # G_OBJECT_CLASS (com_acme_coyote_proxy_parent_class)->finalize (object); 1162s # } 1162s # 1162s # static void 1162s # com_acme_coyote_proxy_get_property (GObject *object, 1162s # guint prop_id, 1162s # GValue *value, 1162s # GParamSpec *pspec G_GNUC_UNUSED) 1162s # { 1162s # const _ExtendedGDBusPropertyInfo *info; 1162s # GVariant *variant; 1162s # g_assert (prop_id != 0 && prop_id - 1 < 1); 1162s # info = (const _ExtendedGDBusPropertyInfo *) _com_acme_coyote_property_info_pointers[prop_id - 1]; 1162s # variant = g_dbus_proxy_get_cached_property (G_DBUS_PROXY (object), info->parent_struct.name); 1162s # if (info->use_gvariant) 1162s # { 1162s # g_value_set_variant (value, variant); 1162s # } 1162s # else 1162s # { 1162s # if (variant != NULL) 1162s # g_dbus_gvariant_to_gvalue (variant, value); 1162s # } 1162s # if (variant != NULL) 1162s # g_variant_unref (variant); 1162s # } 1162s # 1162s # static void 1162s # com_acme_coyote_proxy_set_property_cb (GDBusProxy *proxy, 1162s # GAsyncResult *res, 1162s # gpointer user_data) 1162s # { 1162s # const _ExtendedGDBusPropertyInfo *info = user_data; 1162s # GError *error; 1162s # GVariant *_ret; 1162s # error = NULL; 1162s # _ret = g_dbus_proxy_call_finish (proxy, res, &error); 1162s # if (!_ret) 1162s # { 1162s # g_warning ("Error setting property '%s' on interface com.acme.Coyote: %s (%s, %d)", 1162s # info->parent_struct.name, 1162s # error->message, g_quark_to_string (error->domain), error->code); 1162s # g_error_free (error); 1162s # } 1162s # else 1162s # { 1162s # g_variant_unref (_ret); 1162s # } 1162s # } 1162s # 1162s # static void 1162s # com_acme_coyote_proxy_set_property (GObject *object, 1162s # guint prop_id, 1162s # const GValue *value, 1162s # GParamSpec *pspec G_GNUC_UNUSED) 1162s # { 1162s # const _ExtendedGDBusPropertyInfo *info; 1162s # GVariant *variant; 1162s # g_assert (prop_id != 0 && prop_id - 1 < 1); 1162s # info = (const _ExtendedGDBusPropertyInfo *) _com_acme_coyote_property_info_pointers[prop_id - 1]; 1162s # variant = g_dbus_gvalue_to_gvariant (value, G_VARIANT_TYPE (info->parent_struct.signature)); 1162s # g_dbus_proxy_call (G_DBUS_PROXY (object), 1162s # "org.freedesktop.DBus.Properties.Set", 1162s # g_variant_new ("(ssv)", "com.acme.Coyote", info->parent_struct.name, variant), 1162s # G_DBUS_CALL_FLAGS_NONE, 1162s # -1, 1162s # NULL, (GAsyncReadyCallback) com_acme_coyote_proxy_set_property_cb, (GDBusPropertyInfo *) &info->parent_struct); 1162s # g_variant_unref (variant); 1162s # } 1162s # 1162s # static void 1162s # com_acme_coyote_proxy_g_signal (GDBusProxy *proxy, 1162s # const gchar *sender_name G_GNUC_UNUSED, 1162s # const gchar *signal_name, 1162s # GVariant *parameters) 1162s # { 1162s # _ExtendedGDBusSignalInfo *info; 1162s # GVariantIter iter; 1162s # GVariant *child; 1162s # GValue *paramv; 1162s # gsize num_params; 1162s # gsize n; 1162s # guint signal_id; 1162s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_com_acme_coyote_interface_info.parent_struct, signal_name); 1162s # if (info == NULL) 1162s # return; 1162s # num_params = g_variant_n_children (parameters); 1162s # paramv = g_new0 (GValue, num_params + 1); 1162s # g_value_init (¶mv[0], TYPE_COM_ACME_COYOTE); 1162s # g_value_set_object (¶mv[0], proxy); 1162s # g_variant_iter_init (&iter, parameters); 1162s # n = 1; 1162s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1162s # { 1162s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 1162s # if (arg_info->use_gvariant) 1162s # { 1162s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1162s # g_value_set_variant (¶mv[n], child); 1162s # n++; 1162s # } 1162s # else 1162s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1162s # g_variant_unref (child); 1162s # } 1162s # signal_id = g_signal_lookup (info->signal_name, TYPE_COM_ACME_COYOTE); 1162s # g_signal_emitv (paramv, signal_id, 0, NULL); 1162s # for (n = 0; n < num_params + 1; n++) 1162s # g_value_unset (¶mv[n]); 1162s # g_free (paramv); 1162s # } 1162s # 1162s # static void 1162s # com_acme_coyote_proxy_g_properties_changed (GDBusProxy *_proxy, 1162s # GVariant *changed_properties, 1162s # const gchar *const *invalidated_properties) 1162s # { 1162s # ComAcmeCoyoteProxy *proxy = COM_ACME_COYOTE_PROXY (_proxy); 1162s # guint n; 1162s # const gchar *key; 1162s # GVariantIter *iter; 1162s # _ExtendedGDBusPropertyInfo *info; 1162s # g_variant_get (changed_properties, "a{sv}", &iter); 1162s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 1162s # { 1162s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_com_acme_coyote_interface_info.parent_struct, key); 1162s # g_datalist_remove_data (&proxy->priv->qdata, key); 1162s # if (info != NULL) 1162s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1162s # } 1162s # g_variant_iter_free (iter); 1162s # for (n = 0; invalidated_properties[n] != NULL; n++) 1162s # { 1162s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_com_acme_coyote_interface_info.parent_struct, invalidated_properties[n]); 1162s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 1162s # if (info != NULL) 1162s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1162s # } 1162s # } 1162s # 1162s # static const gchar * 1162s # com_acme_coyote_proxy_get_mood (ComAcmeCoyote *object) 1162s # { 1162s # ComAcmeCoyoteProxy *proxy = COM_ACME_COYOTE_PROXY (object); 1162s # GVariant *variant; 1162s # const gchar *value = NULL; 1162s # variant = g_dbus_proxy_get_cached_property (G_DBUS_PROXY (proxy), "Mood"); 1162s # if (variant != NULL) 1162s # { 1162s # value = g_variant_get_string (variant, NULL); 1162s # g_variant_unref (variant); 1162s # } 1162s # return value; 1162s # } 1162s # 1162s # static void 1162s # com_acme_coyote_proxy_init (ComAcmeCoyoteProxy *proxy) 1162s # { 1162s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1162s # proxy->priv = com_acme_coyote_proxy_get_instance_private (proxy); 1162s # #else 1162s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_COM_ACME_COYOTE_PROXY, ComAcmeCoyoteProxyPrivate); 1162s # #endif 1162s # 1162s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), com_acme_coyote_interface_info ()); 1162s # } 1162s # 1162s # static void 1162s # com_acme_coyote_proxy_class_init (ComAcmeCoyoteProxyClass *klass) 1162s # { 1162s # GObjectClass *gobject_class; 1162s # GDBusProxyClass *proxy_class; 1162s # 1162s # gobject_class = G_OBJECT_CLASS (klass); 1162s # gobject_class->finalize = com_acme_coyote_proxy_finalize; 1162s # gobject_class->get_property = com_acme_coyote_proxy_get_property; 1162s # gobject_class->set_property = com_acme_coyote_proxy_set_property; 1162s # 1162s # proxy_class = G_DBUS_PROXY_CLASS (klass); 1162s # proxy_class->g_signal = com_acme_coyote_proxy_g_signal; 1162s # proxy_class->g_properties_changed = com_acme_coyote_proxy_g_properties_changed; 1162s # 1162s # com_acme_coyote_override_properties (gobject_class, 1); 1162s # 1162s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1162s # g_type_class_add_private (klass, sizeof (ComAcmeCoyoteProxyPrivate)); 1162s # #endif 1162s # } 1162s # 1162s # static void 1162s # com_acme_coyote_proxy_iface_init (ComAcmeCoyoteIface *iface) 1162s # { 1162s # iface->get_mood = com_acme_coyote_proxy_get_mood; 1162s # } 1162s # 1162s # /** 1162s # * com_acme_coyote_proxy_new: 1162s # * @connection: A #GDBusConnection. 1162s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1162s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1162s # * @object_path: An object path. 1162s # * @cancellable: (nullable): A #GCancellable or %NULL. 1162s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1162s # * @user_data: User data to pass to @callback. 1162s # * 1162s # * Asynchronously creates a proxy for the D-Bus interface com.acme.Coyote. See g_dbus_proxy_new() for more details. 1162s # * 1162s # * 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()). 1162s # * You can then call com_acme_coyote_proxy_new_finish() to get the result of the operation. 1162s # * 1162s # * See com_acme_coyote_proxy_new_sync() for the synchronous, blocking version of this constructor. 1162s # */ 1162s # void 1162s # com_acme_coyote_proxy_new ( 1162s # GDBusConnection *connection, 1162s # GDBusProxyFlags flags, 1162s # const gchar *name, 1162s # const gchar *object_path, 1162s # GCancellable *cancellable, 1162s # GAsyncReadyCallback callback, 1162s # gpointer user_data) 1162s # { 1162s # 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); 1162s # } 1162s # 1162s # /** 1162s # * com_acme_coyote_proxy_new_finish: 1162s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to com_acme_coyote_proxy_new(). 1162s # * @error: Return location for error or %NULL 1162s # * 1162s # * Finishes an operation started with com_acme_coyote_proxy_new(). 1162s # * 1162s # * Returns: (transfer full) (type ComAcmeCoyoteProxy): The constructed proxy object or %NULL if @error is set. 1162s # */ 1162s # ComAcmeCoyote * 1162s # com_acme_coyote_proxy_new_finish ( 1162s # GAsyncResult *res, 1162s # GError **error) 1162s # { 1162s # GObject *ret; 1162s # GObject *source_object; 1162s # source_object = g_async_result_get_source_object (res); 1162s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1162s # g_object_unref (source_object); 1162s # if (ret != NULL) 1162s # return COM_ACME_COYOTE (ret); 1162s # else 1162s # return NULL; 1162s # } 1162s # 1162s # /** 1162s # * com_acme_coyote_proxy_new_sync: 1162s # * @connection: A #GDBusConnection. 1162s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1162s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1162s # * @object_path: An object path. 1162s # * @cancellable: (nullable): A #GCancellable or %NULL. 1162s # * @error: Return location for error or %NULL 1162s # * 1162s # * Synchronously creates a proxy for the D-Bus interface com.acme.Coyote. See g_dbus_proxy_new_sync() for more details. 1162s # * 1162s # * The calling thread is blocked until a reply is received. 1162s # * 1162s # * See com_acme_coyote_proxy_new() for the asynchronous version of this constructor. 1162s # * 1162s # * Returns: (transfer full) (type ComAcmeCoyoteProxy): The constructed proxy object or %NULL if @error is set. 1162s # */ 1162s # ComAcmeCoyote * 1162s # com_acme_coyote_proxy_new_sync ( 1162s # GDBusConnection *connection, 1162s # GDBusProxyFlags flags, 1162s # const gchar *name, 1162s # const gchar *object_path, 1162s # GCancellable *cancellable, 1162s # GError **error) 1162s # { 1162s # GInitable *ret; 1162s # 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); 1162s # if (ret != NULL) 1162s # return COM_ACME_COYOTE (ret); 1162s # else 1162s # return NULL; 1162s # } 1162s # 1162s # 1162s # /** 1162s # * com_acme_coyote_proxy_new_for_bus: 1162s # * @bus_type: A #GBusType. 1162s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1162s # * @name: A bus name (well-known or unique). 1162s # * @object_path: An object path. 1162s # * @cancellable: (nullable): A #GCancellable or %NULL. 1162s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1162s # * @user_data: User data to pass to @callback. 1162s # * 1162s # * Like com_acme_coyote_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 1162s # * 1162s # * 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()). 1162s # * You can then call com_acme_coyote_proxy_new_for_bus_finish() to get the result of the operation. 1162s # * 1162s # * See com_acme_coyote_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 1162s # */ 1162s # void 1162s # com_acme_coyote_proxy_new_for_bus ( 1162s # GBusType bus_type, 1162s # GDBusProxyFlags flags, 1162s # const gchar *name, 1162s # const gchar *object_path, 1162s # GCancellable *cancellable, 1162s # GAsyncReadyCallback callback, 1162s # gpointer user_data) 1162s # { 1162s # 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); 1162s # } 1162s # 1162s # /** 1162s # * com_acme_coyote_proxy_new_for_bus_finish: 1162s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to com_acme_coyote_proxy_new_for_bus(). 1162s # * @error: Return location for error or %NULL 1162s # * 1162s # * Finishes an operation started with com_acme_coyote_proxy_new_for_bus(). 1162s # * 1162s # * Returns: (transfer full) (type ComAcmeCoyoteProxy): The constructed proxy object or %NULL if @error is set. 1162s # */ 1162s # ComAcmeCoyote * 1162s # com_acme_coyote_proxy_new_for_bus_finish ( 1162s # GAsyncResult *res, 1162s # GError **error) 1162s # { 1162s # GObject *ret; 1162s # GObject *source_object; 1162s # source_object = g_async_result_get_source_object (res); 1162s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1162s # g_object_unref (source_object); 1162s # if (ret != NULL) 1162s # return COM_ACME_COYOTE (ret); 1162s # else 1162s # return NULL; 1162s # } 1162s # 1162s # /** 1162s # * com_acme_coyote_proxy_new_for_bus_sync: 1162s # * @bus_type: A #GBusType. 1162s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1162s # * @name: A bus name (well-known or unique). 1162s # * @object_path: An object path. 1162s # * @cancellable: (nullable): A #GCancellable or %NULL. 1162s # * @error: Return location for error or %NULL 1162s # * 1162s # * Like com_acme_coyote_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 1162s # * 1162s # * The calling thread is blocked until a reply is received. 1162s # * 1162s # * See com_acme_coyote_proxy_new_for_bus() for the asynchronous version of this constructor. 1162s # * 1162s # * Returns: (transfer full) (type ComAcmeCoyoteProxy): The constructed proxy object or %NULL if @error is set. 1162s # */ 1162s # ComAcmeCoyote * 1162s # com_acme_coyote_proxy_new_for_bus_sync ( 1162s # GBusType bus_type, 1162s # GDBusProxyFlags flags, 1162s # const gchar *name, 1162s # const gchar *object_path, 1162s # GCancellable *cancellable, 1162s # GError **error) 1162s # { 1162s # GInitable *ret; 1162s # 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); 1162s # if (ret != NULL) 1162s # return COM_ACME_COYOTE (ret); 1162s # else 1162s # return NULL; 1162s # } 1162s # 1162s # 1162s # /* ------------------------------------------------------------------------ */ 1162s # 1162s # /** 1162s # * ComAcmeCoyoteSkeleton: 1162s # * 1162s # * The #ComAcmeCoyoteSkeleton structure contains only private data and should only be accessed using the provided API. 1162s # */ 1162s # 1162s # /** 1162s # * ComAcmeCoyoteSkeletonClass: 1162s # * @parent_class: The parent class. 1162s # * 1162s # * Class structure for #ComAcmeCoyoteSkeleton. 1162s # */ 1162s # 1162s # struct _ComAcmeCoyoteSkeletonPrivate 1162s # { 1162s # GValue *properties; 1162s # GList *changed_properties; 1162s # GSource *changed_properties_idle_source; 1162s # GMainContext *context; 1162s # GMutex lock; 1162s # }; 1162s # 1162s # static void 1162s # _com_acme_coyote_skeleton_handle_method_call ( 1162s # GDBusConnection *connection G_GNUC_UNUSED, 1162s # const gchar *sender G_GNUC_UNUSED, 1162s # const gchar *object_path G_GNUC_UNUSED, 1162s # const gchar *interface_name, 1162s # const gchar *method_name, 1162s # GVariant *parameters, 1162s # GDBusMethodInvocation *invocation, 1162s # gpointer user_data) 1162s # { 1162s # ComAcmeCoyoteSkeleton *skeleton = COM_ACME_COYOTE_SKELETON (user_data); 1162s # _ExtendedGDBusMethodInfo *info; 1162s # GVariantIter iter; 1162s # GVariant *child; 1162s # GValue *paramv; 1162s # gsize num_params; 1162s # guint num_extra; 1162s # gsize n; 1162s # guint signal_id; 1162s # GValue return_value = G_VALUE_INIT; 1162s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 1162s # g_assert (info != NULL); 1162s # num_params = g_variant_n_children (parameters); 1162s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 1162s # n = 0; 1162s # g_value_init (¶mv[n], TYPE_COM_ACME_COYOTE); 1162s # g_value_set_object (¶mv[n++], skeleton); 1162s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 1162s # g_value_set_object (¶mv[n++], invocation); 1162s # if (info->pass_fdlist) 1162s # { 1162s # #ifdef G_OS_UNIX 1162s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 1162s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 1162s # #else 1162s # g_assert_not_reached (); 1162s # #endif 1162s # } 1162s # g_variant_iter_init (&iter, parameters); 1162s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1162s # { 1162s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 1162s # if (arg_info->use_gvariant) 1162s # { 1162s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1162s # g_value_set_variant (¶mv[n], child); 1162s # n++; 1162s # } 1162s # else 1162s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1162s # g_variant_unref (child); 1162s # } 1162s # signal_id = g_signal_lookup (info->signal_name, TYPE_COM_ACME_COYOTE); 1162s # g_value_init (&return_value, G_TYPE_BOOLEAN); 1162s # g_signal_emitv (paramv, signal_id, 0, &return_value); 1162s # if (!g_value_get_boolean (&return_value)) 1162s # 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); 1162s # g_value_unset (&return_value); 1162s # for (n = 0; n < num_params + num_extra; n++) 1162s # g_value_unset (¶mv[n]); 1162s # g_free (paramv); 1162s # } 1162s # 1162s # static GVariant * 1162s # _com_acme_coyote_skeleton_handle_get_property ( 1162s # GDBusConnection *connection G_GNUC_UNUSED, 1162s # const gchar *sender G_GNUC_UNUSED, 1162s # const gchar *object_path G_GNUC_UNUSED, 1162s # const gchar *interface_name G_GNUC_UNUSED, 1162s # const gchar *property_name, 1162s # GError **error, 1162s # gpointer user_data) 1162s # { 1162s # ComAcmeCoyoteSkeleton *skeleton = COM_ACME_COYOTE_SKELETON (user_data); 1162s # GValue value = G_VALUE_INIT; 1162s # GParamSpec *pspec; 1162s # _ExtendedGDBusPropertyInfo *info; 1162s # GVariant *ret; 1162s # ret = NULL; 1162s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_com_acme_coyote_interface_info.parent_struct, property_name); 1162s # g_assert (info != NULL); 1162s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1162s # if (pspec == NULL) 1162s # { 1162s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1162s # } 1162s # else 1162s # { 1162s # g_value_init (&value, pspec->value_type); 1162s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1162s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 1162s # g_value_unset (&value); 1162s # } 1162s # return ret; 1162s # } 1162s # 1162s # static gboolean 1162s # _com_acme_coyote_skeleton_handle_set_property ( 1162s # GDBusConnection *connection G_GNUC_UNUSED, 1162s # const gchar *sender G_GNUC_UNUSED, 1162s # const gchar *object_path G_GNUC_UNUSED, 1162s # const gchar *interface_name G_GNUC_UNUSED, 1162s # const gchar *property_name, 1162s # GVariant *variant, 1162s # GError **error, 1162s # gpointer user_data) 1162s # { 1162s # ComAcmeCoyoteSkeleton *skeleton = COM_ACME_COYOTE_SKELETON (user_data); 1162s # GValue value = G_VALUE_INIT; 1162s # GParamSpec *pspec; 1162s # _ExtendedGDBusPropertyInfo *info; 1162s # gboolean ret; 1162s # ret = FALSE; 1162s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_com_acme_coyote_interface_info.parent_struct, property_name); 1162s # g_assert (info != NULL); 1162s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1162s # if (pspec == NULL) 1162s # { 1162s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1162s # } 1162s # else 1162s # { 1162s # if (info->use_gvariant) 1162s # g_value_set_variant (&value, variant); 1162s # else 1162s # g_dbus_gvariant_to_gvalue (variant, &value); 1162s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1162s # g_value_unset (&value); 1162s # ret = TRUE; 1162s # } 1162s # return ret; 1162s # } 1162s # 1162s # static const GDBusInterfaceVTable _com_acme_coyote_skeleton_vtable = 1162s # { 1162s # _com_acme_coyote_skeleton_handle_method_call, 1162s # _com_acme_coyote_skeleton_handle_get_property, 1162s # _com_acme_coyote_skeleton_handle_set_property, 1162s # {NULL} 1162s # }; 1162s # 1162s # static GDBusInterfaceInfo * 1162s # com_acme_coyote_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1162s # { 1162s # return com_acme_coyote_interface_info (); 1162s # } 1162s # 1162s # static GDBusInterfaceVTable * 1162s # com_acme_coyote_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1162s # { 1162s # return (GDBusInterfaceVTable *) &_com_acme_coyote_skeleton_vtable; 1162s # } 1162s # 1162s # static GVariant * 1162s # com_acme_coyote_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 1162s # { 1162s # ComAcmeCoyoteSkeleton *skeleton = COM_ACME_COYOTE_SKELETON (_skeleton); 1162s # 1162s # GVariantBuilder builder; 1162s # guint n; 1162s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 1162s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 1162s # #else 1162s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 1162s # #endif 1162s # if (_com_acme_coyote_interface_info.parent_struct.properties == NULL) 1162s # goto out; 1162s # for (n = 0; _com_acme_coyote_interface_info.parent_struct.properties[n] != NULL; n++) 1162s # { 1162s # GDBusPropertyInfo *info = _com_acme_coyote_interface_info.parent_struct.properties[n]; 1162s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 1162s # { 1162s # GVariant *value; 1162s # 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); 1162s # if (value != NULL) 1162s # { 1162s # g_variant_take_ref (value); 1162s # g_variant_builder_add (&builder, "{sv}", info->name, value); 1162s # g_variant_unref (value); 1162s # } 1162s # } 1162s # } 1162s # out: 1162s # return g_variant_builder_end (&builder); 1162s # } 1162s # 1162s # static gboolean _com_acme_coyote_emit_changed (gpointer user_data); 1162s # 1162s # static void 1162s # com_acme_coyote_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton) 1162s # { 1162s # ComAcmeCoyoteSkeleton *skeleton = COM_ACME_COYOTE_SKELETON (_skeleton); 1162s # gboolean emit_changed = FALSE; 1162s # 1162s # g_mutex_lock (&skeleton->priv->lock); 1162s # if (skeleton->priv->changed_properties_idle_source != NULL) 1162s # { 1162s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 1162s # skeleton->priv->changed_properties_idle_source = NULL; 1162s # emit_changed = TRUE; 1162s # } 1162s # g_mutex_unlock (&skeleton->priv->lock); 1162s # 1162s # if (emit_changed) 1162s # _com_acme_coyote_emit_changed (skeleton); 1162s # } 1162s # 1162s # static void 1162s # _com_acme_coyote_on_signal_surprised ( 1162s # ComAcmeCoyote *object) 1162s # { 1162s # ComAcmeCoyoteSkeleton *skeleton = COM_ACME_COYOTE_SKELETON (object); 1162s # 1162s # GList *connections, *l; 1162s # GVariant *signal_variant; 1162s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 1162s # 1162s # signal_variant = g_variant_ref_sink (g_variant_new ("()")); 1162s # for (l = connections; l != NULL; l = l->next) 1162s # { 1162s # GDBusConnection *connection = l->data; 1162s # g_dbus_connection_emit_signal (connection, 1162s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "com.acme.Coyote", "Surprised", 1162s # signal_variant, NULL); 1162s # } 1162s # g_variant_unref (signal_variant); 1162s # g_list_free_full (connections, g_object_unref); 1162s # } 1162s # 1162s # static void com_acme_coyote_skeleton_iface_init (ComAcmeCoyoteIface *iface); 1162s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1162s # G_DEFINE_TYPE_WITH_CODE (ComAcmeCoyoteSkeleton, com_acme_coyote_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1162s # G_ADD_PRIVATE (ComAcmeCoyoteSkeleton) 1162s # G_IMPLEMENT_INTERFACE (TYPE_COM_ACME_COYOTE, com_acme_coyote_skeleton_iface_init)) 1162s # 1162s # #else 1162s # G_DEFINE_TYPE_WITH_CODE (ComAcmeCoyoteSkeleton, com_acme_coyote_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1162s # G_IMPLEMENT_INTERFACE (TYPE_COM_ACME_COYOTE, com_acme_coyote_skeleton_iface_init)) 1162s # 1162s # #endif 1162s # static void 1162s # com_acme_coyote_skeleton_finalize (GObject *object) 1162s # { 1162s # ComAcmeCoyoteSkeleton *skeleton = COM_ACME_COYOTE_SKELETON (object); 1162s # guint n; 1162s # for (n = 0; n < 1; n++) 1162s # g_value_unset (&skeleton->priv->properties[n]); 1162s # g_free (skeleton->priv->properties); 1162s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 1162s # if (skeleton->priv->changed_properties_idle_source != NULL) 1162s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 1162s # g_main_context_unref (skeleton->priv->context); 1162s # g_mutex_clear (&skeleton->priv->lock); 1162s # G_OBJECT_CLASS (com_acme_coyote_skeleton_parent_class)->finalize (object); 1162s # } 1162s # 1162s # static void 1162s # com_acme_coyote_skeleton_get_property (GObject *object, 1162s # guint prop_id, 1162s # GValue *value, 1162s # GParamSpec *pspec G_GNUC_UNUSED) 1162s # { 1162s # ComAcmeCoyoteSkeleton *skeleton = COM_ACME_COYOTE_SKELETON (object); 1162s # g_assert (prop_id != 0 && prop_id - 1 < 1); 1162s # g_mutex_lock (&skeleton->priv->lock); 1162s # g_value_copy (&skeleton->priv->properties[prop_id - 1], value); 1162s # g_mutex_unlock (&skeleton->priv->lock); 1162s # } 1162s # 1162s # static gboolean 1162s # _com_acme_coyote_emit_changed (gpointer user_data) 1162s # { 1162s # ComAcmeCoyoteSkeleton *skeleton = COM_ACME_COYOTE_SKELETON (user_data); 1162s # GList *l; 1162s # GVariantBuilder builder; 1162s # GVariantBuilder invalidated_builder; 1162s # guint num_changes; 1162s # 1162s # g_mutex_lock (&skeleton->priv->lock); 1162s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 1162s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 1162s # g_variant_builder_init_static (&invalidated_builder, G_VARIANT_TYPE ("as")); 1162s # #else 1162s # g_variant_builder_init (&builder, G_VARIANT_TYPE ("a{sv}")); 1162s # g_variant_builder_init (&invalidated_builder, G_VARIANT_TYPE ("as")); 1162s # #endif 1162s # for (l = skeleton->priv->changed_properties, num_changes = 0; l != NULL; l = l->next) 1162s # { 1162s # ChangedProperty *cp = l->data; 1162s # GVariant *variant; 1162s # const GValue *cur_value; 1162s # 1162s # cur_value = &skeleton->priv->properties[cp->prop_id - 1]; 1162s # if (!_g_value_equal (cur_value, &cp->orig_value)) 1162s # { 1162s # variant = g_dbus_gvalue_to_gvariant (cur_value, G_VARIANT_TYPE (cp->info->parent_struct.signature)); 1162s # g_variant_builder_add (&builder, "{sv}", cp->info->parent_struct.name, variant); 1162s # g_variant_unref (variant); 1162s # num_changes++; 1162s # } 1162s # } 1162s # if (num_changes > 0) 1162s # { 1162s # GList *connections, *ll; 1162s # GVariant *signal_variant; 1162s # signal_variant = g_variant_ref_sink (g_variant_new ("(sa{sv}as)", "com.acme.Coyote", 1162s # &builder, &invalidated_builder)); 1162s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 1162s # for (ll = connections; ll != NULL; ll = ll->next) 1162s # { 1162s # GDBusConnection *connection = ll->data; 1162s # 1162s # g_dbus_connection_emit_signal (connection, 1162s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), 1162s # "org.freedesktop.DBus.Properties", 1162s # "PropertiesChanged", 1162s # signal_variant, 1162s # NULL); 1162s # } 1162s # g_variant_unref (signal_variant); 1162s # g_list_free_full (connections, g_object_unref); 1162s # } 1162s # else 1162s # { 1162s # g_variant_builder_clear (&builder); 1162s # g_variant_builder_clear (&invalidated_builder); 1162s # } 1162s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 1162s # skeleton->priv->changed_properties = NULL; 1162s # skeleton->priv->changed_properties_idle_source = NULL; 1162s # g_mutex_unlock (&skeleton->priv->lock); 1162s # return FALSE; 1162s # } 1162s # 1162s # static void 1162s # _com_acme_coyote_schedule_emit_changed (ComAcmeCoyoteSkeleton *skeleton, const _ExtendedGDBusPropertyInfo *info, guint prop_id, const GValue *orig_value) 1162s # { 1162s # ChangedProperty *cp; 1162s # GList *l; 1162s # cp = NULL; 1162s # for (l = skeleton->priv->changed_properties; l != NULL; l = l->next) 1162s # { 1162s # ChangedProperty *i_cp = l->data; 1162s # if (i_cp->info == info) 1162s # { 1162s # cp = i_cp; 1162s # break; 1162s # } 1162s # } 1162s # if (cp == NULL) 1162s # { 1162s # cp = g_new0 (ChangedProperty, 1); 1162s # cp->prop_id = prop_id; 1162s # cp->info = info; 1162s # skeleton->priv->changed_properties = g_list_prepend (skeleton->priv->changed_properties, cp); 1162s # g_value_init (&cp->orig_value, G_VALUE_TYPE (orig_value)); 1162s # g_value_copy (orig_value, &cp->orig_value); 1162s # } 1162s # } 1162s # 1162s # static void 1162s # com_acme_coyote_skeleton_notify (GObject *object, 1162s # GParamSpec *pspec G_GNUC_UNUSED) 1162s # { 1162s # ComAcmeCoyoteSkeleton *skeleton = COM_ACME_COYOTE_SKELETON (object); 1162s # g_mutex_lock (&skeleton->priv->lock); 1162s # if (skeleton->priv->changed_properties != NULL && 1162s # skeleton->priv->changed_properties_idle_source == NULL) 1162s # { 1162s # skeleton->priv->changed_properties_idle_source = g_idle_source_new (); 1162s # g_source_set_priority (skeleton->priv->changed_properties_idle_source, G_PRIORITY_DEFAULT); 1162s # g_source_set_callback (skeleton->priv->changed_properties_idle_source, _com_acme_coyote_emit_changed, g_object_ref (skeleton), (GDestroyNotify) g_object_unref); 1162s # g_source_set_name (skeleton->priv->changed_properties_idle_source, "[generated] _com_acme_coyote_emit_changed"); 1162s # g_source_attach (skeleton->priv->changed_properties_idle_source, skeleton->priv->context); 1162s # g_source_unref (skeleton->priv->changed_properties_idle_source); 1162s # } 1162s # g_mutex_unlock (&skeleton->priv->lock); 1162s # } 1162s # 1162s # static void 1162s # com_acme_coyote_skeleton_set_property (GObject *object, 1162s # guint prop_id, 1162s # const GValue *value, 1162s # GParamSpec *pspec) 1162s # { 1162s # const _ExtendedGDBusPropertyInfo *info; 1162s # ComAcmeCoyoteSkeleton *skeleton = COM_ACME_COYOTE_SKELETON (object); 1162s # g_assert (prop_id != 0 && prop_id - 1 < 1); 1162s # info = (const _ExtendedGDBusPropertyInfo *) _com_acme_coyote_property_info_pointers[prop_id - 1]; 1162s # g_mutex_lock (&skeleton->priv->lock); 1162s # g_object_freeze_notify (object); 1162s # if (!_g_value_equal (value, &skeleton->priv->properties[prop_id - 1])) 1162s # { 1162s # if (g_dbus_interface_skeleton_get_connection (G_DBUS_INTERFACE_SKELETON (skeleton)) != NULL && 1162s # info->emits_changed_signal) 1162s # _com_acme_coyote_schedule_emit_changed (skeleton, info, prop_id, &skeleton->priv->properties[prop_id - 1]); 1162s # g_value_copy (value, &skeleton->priv->properties[prop_id - 1]); 1162s # g_object_notify_by_pspec (object, pspec); 1162s # } 1162s # g_mutex_unlock (&skeleton->priv->lock); 1162s # g_object_thaw_notify (object); 1162s # } 1162s # 1162s # static void 1162s # com_acme_coyote_skeleton_init (ComAcmeCoyoteSkeleton *skeleton) 1162s # { 1162s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1162s # skeleton->priv = com_acme_coyote_skeleton_get_instance_private (skeleton); 1162s # #else 1162s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_COM_ACME_COYOTE_SKELETON, ComAcmeCoyoteSkeletonPrivate); 1162s # #endif 1162s # 1162s # g_mutex_init (&skeleton->priv->lock); 1162s # skeleton->priv->context = g_main_context_ref_thread_default (); 1162s # skeleton->priv->properties = g_new0 (GValue, 1); 1162s # g_value_init (&skeleton->priv->properties[0], G_TYPE_STRING); 1162s # } 1162s # 1162s # static const gchar * 1162s # com_acme_coyote_skeleton_get_mood (ComAcmeCoyote *object) 1162s # { 1162s # ComAcmeCoyoteSkeleton *skeleton = COM_ACME_COYOTE_SKELETON (object); 1162s # const gchar *value; 1162s # g_mutex_lock (&skeleton->priv->lock); 1162s # value = g_marshal_value_peek_string (&(skeleton->priv->properties[0])); 1162s # g_mutex_unlock (&skeleton->priv->lock); 1162s # return value; 1162s # } 1162s # 1162s # static void 1162s # com_acme_coyote_skeleton_class_init (ComAcmeCoyoteSkeletonClass *klass) 1162s # { 1162s # GObjectClass *gobject_class; 1162s # GDBusInterfaceSkeletonClass *skeleton_class; 1162s # 1162s # gobject_class = G_OBJECT_CLASS (klass); 1162s # gobject_class->finalize = com_acme_coyote_skeleton_finalize; 1162s # gobject_class->get_property = com_acme_coyote_skeleton_get_property; 1162s # gobject_class->set_property = com_acme_coyote_skeleton_set_property; 1162s # gobject_class->notify = com_acme_coyote_skeleton_notify; 1162s # 1162s # 1162s # com_acme_coyote_override_properties (gobject_class, 1); 1162s # 1162s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 1162s # skeleton_class->get_info = com_acme_coyote_skeleton_dbus_interface_get_info; 1162s # skeleton_class->get_properties = com_acme_coyote_skeleton_dbus_interface_get_properties; 1162s # skeleton_class->flush = com_acme_coyote_skeleton_dbus_interface_flush; 1162s # skeleton_class->get_vtable = com_acme_coyote_skeleton_dbus_interface_get_vtable; 1162s # 1162s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1162s # g_type_class_add_private (klass, sizeof (ComAcmeCoyoteSkeletonPrivate)); 1162s # #endif 1162s # } 1162s # 1162s # static void 1162s # com_acme_coyote_skeleton_iface_init (ComAcmeCoyoteIface *iface) 1162s # { 1162s # iface->surprised = _com_acme_coyote_on_signal_surprised; 1162s # iface->get_mood = com_acme_coyote_skeleton_get_mood; 1162s # } 1162s # 1162s # /** 1162s # * com_acme_coyote_skeleton_new: 1162s # * 1162s # * Creates a skeleton object for the D-Bus interface com.acme.Coyote. 1162s # * 1162s # * Returns: (transfer full) (type ComAcmeCoyoteSkeleton): The skeleton object. 1162s # */ 1162s # ComAcmeCoyote * 1162s # com_acme_coyote_skeleton_new (void) 1162s # { 1162s # return COM_ACME_COYOTE (g_object_new (TYPE_COM_ACME_COYOTE_SKELETON, NULL)); 1162s # } 1162s # 1162s # /* ------------------------------------------------------------------------ 1162s # * Code for interface org.project.Bar.Frobnicator 1162s # * ------------------------------------------------------------------------ 1162s # */ 1162s # 1162s # /** 1162s # * SECTION:OrgProjectBarFrobnicator 1162s # * @title: OrgProjectBarFrobnicator 1162s # * @short_description: Generated C code for the org.project.Bar.Frobnicator D-Bus interface 1162s # * 1162s # * This section contains code for working with the org.project.Bar.Frobnicator D-Bus interface in C. 1162s # */ 1162s # 1162s # /* ---- Introspection data for org.project.Bar.Frobnicator ---- */ 1162s # 1162s # static const _ExtendedGDBusMethodInfo _org_project_bar_frobnicator_method_info_random_method = 1162s # { 1162s # { 1162s # -1, 1162s # (gchar *) "RandomMethod", 1162s # NULL, 1162s # NULL, 1162s # NULL 1162s # }, 1162s # "handle-random-method", 1162s # FALSE 1162s # }; 1162s # 1162s # static const GDBusMethodInfo * const _org_project_bar_frobnicator_method_info_pointers[] = 1162s # { 1162s # &_org_project_bar_frobnicator_method_info_random_method.parent_struct, 1162s # NULL 1162s # }; 1162s # 1162s # static const _ExtendedGDBusInterfaceInfo _org_project_bar_frobnicator_interface_info = 1162s # { 1162s # { 1162s # -1, 1162s # (gchar *) "org.project.Bar.Frobnicator", 1162s # (GDBusMethodInfo **) &_org_project_bar_frobnicator_method_info_pointers, 1162s # NULL, 1162s # NULL, 1162s # NULL 1162s # }, 1162s # "org-project-bar-frobnicator", 1162s # }; 1162s # 1162s # 1162s # /** 1162s # * org_project_bar_frobnicator_interface_info: 1162s # * 1162s # * Gets a machine-readable description of the org.project.Bar.Frobnicator D-Bus interface. 1162s # * 1162s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 1162s # */ 1162s # GDBusInterfaceInfo * 1162s # org_project_bar_frobnicator_interface_info (void) 1162s # { 1162s # return (GDBusInterfaceInfo *) &_org_project_bar_frobnicator_interface_info.parent_struct; 1162s # } 1162s # 1162s # /** 1162s # * org_project_bar_frobnicator_override_properties: 1162s # * @klass: The class structure for a #GObject derived class. 1162s # * @property_id_begin: The property id to assign to the first overridden property. 1162s # * 1162s # * Overrides all #GObject properties in the #OrgProjectBarFrobnicator interface for a concrete class. 1162s # * The properties are overridden in the order they are defined. 1162s # * 1162s # * Returns: The last property id. 1162s # */ 1162s # guint 1162s # org_project_bar_frobnicator_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 1162s # { 1162s # return property_id_begin - 1; 1162s # } 1162s # 1162s # 1162s # inline static void 1162s # org_project_bar_frobnicator_method_marshal_random_method ( 1162s # GClosure *closure, 1162s # GValue *return_value, 1162s # unsigned int n_param_values, 1162s # const GValue *param_values, 1162s # void *invocation_hint, 1162s # void *marshal_data) 1162s # { 1162s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT (closure, 1162s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1162s # } 1162s # 1162s # 1162s # /** 1162s # * OrgProjectBarFrobnicator: 1162s # * 1162s # * Abstract interface type for the D-Bus interface org.project.Bar.Frobnicator. 1162s # */ 1162s # 1162s # /** 1162s # * OrgProjectBarFrobnicatorIface: 1162s # * @parent_iface: The parent interface. 1162s # * @handle_random_method: Handler for the #OrgProjectBarFrobnicator::handle-random-method signal. 1162s # * 1162s # * Virtual table for the D-Bus interface org.project.Bar.Frobnicator. 1162s # */ 1162s # 1162s # typedef OrgProjectBarFrobnicatorIface OrgProjectBarFrobnicatorInterface; 1162s # G_DEFINE_INTERFACE (OrgProjectBarFrobnicator, org_project_bar_frobnicator, G_TYPE_OBJECT) 1162s # 1162s # static void 1162s # org_project_bar_frobnicator_default_init (OrgProjectBarFrobnicatorIface *iface) 1162s # { 1162s # /* GObject signals for incoming D-Bus method calls: */ 1162s # /** 1162s # * OrgProjectBarFrobnicator::handle-random-method: 1162s # * @object: A #OrgProjectBarFrobnicator. 1162s # * @invocation: A #GDBusMethodInvocation. 1162s # * 1162s # * Signal emitted when a remote caller is invoking the RandomMethod() D-Bus method. 1162s # * 1162s # * 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. 1162s # * 1162s # * 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. 1162s # */ 1162s # g_signal_new ("handle-random-method", 1162s # G_TYPE_FROM_INTERFACE (iface), 1162s # G_SIGNAL_RUN_LAST, 1162s # G_STRUCT_OFFSET (OrgProjectBarFrobnicatorIface, handle_random_method), 1162s # g_signal_accumulator_true_handled, 1162s # NULL, 1162s # org_project_bar_frobnicator_method_marshal_random_method, 1162s # G_TYPE_BOOLEAN, 1162s # 1, 1162s # G_TYPE_DBUS_METHOD_INVOCATION); 1162s # 1162s # } 1162s # 1162s # /** 1162s # * org_project_bar_frobnicator_call_random_method: 1162s # * @proxy: A #OrgProjectBarFrobnicatorProxy. 1162s # * @cancellable: (nullable): A #GCancellable or %NULL. 1162s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL. 1162s # * @user_data: User data to pass to @callback. 1162s # * 1162s # * Asynchronously invokes the RandomMethod() D-Bus method on @proxy. 1162s # * 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()). 1162s # * You can then call org_project_bar_frobnicator_call_random_method_finish() to get the result of the operation. 1162s # * 1162s # * See org_project_bar_frobnicator_call_random_method_sync() for the synchronous, blocking version of this method. 1162s # */ 1162s # void 1162s # org_project_bar_frobnicator_call_random_method ( 1162s # OrgProjectBarFrobnicator *proxy, 1162s # GCancellable *cancellable, 1162s # GAsyncReadyCallback callback, 1162s # gpointer user_data) 1162s # { 1162s # g_dbus_proxy_call (G_DBUS_PROXY (proxy), 1162s # "RandomMethod", 1162s # g_variant_new ("()"), 1162s # G_DBUS_CALL_FLAGS_NONE, 1162s # -1, 1162s # cancellable, 1162s # callback, 1162s # user_data); 1162s # } 1162s # 1162s # /** 1162s # * org_project_bar_frobnicator_call_random_method_finish: 1162s # * @proxy: A #OrgProjectBarFrobnicatorProxy. 1162s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_bar_frobnicator_call_random_method(). 1162s # * @error: Return location for error or %NULL. 1162s # * 1162s # * Finishes an operation started with org_project_bar_frobnicator_call_random_method(). 1162s # * 1162s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1162s # */ 1162s # gboolean 1162s # org_project_bar_frobnicator_call_random_method_finish ( 1162s # OrgProjectBarFrobnicator *proxy, 1162s # GAsyncResult *res, 1162s # GError **error) 1162s # { 1162s # GVariant *_ret; 1162s # _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error); 1162s # if (_ret == NULL) 1162s # goto _out; 1162s # g_variant_get (_ret, 1162s # "()"); 1162s # g_variant_unref (_ret); 1162s # _out: 1162s # return _ret != NULL; 1162s # } 1162s # 1162s # /** 1162s # * org_project_bar_frobnicator_call_random_method_sync: 1162s # * @proxy: A #OrgProjectBarFrobnicatorProxy. 1162s # * @cancellable: (nullable): A #GCancellable or %NULL. 1162s # * @error: Return location for error or %NULL. 1162s # * 1162s # * Synchronously invokes the RandomMethod() D-Bus method on @proxy. The calling thread is blocked until a reply is received. 1162s # * 1162s # * See org_project_bar_frobnicator_call_random_method() for the asynchronous version of this method. 1162s # * 1162s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1162s # */ 1162s # gboolean 1162s # org_project_bar_frobnicator_call_random_method_sync ( 1162s # OrgProjectBarFrobnicator *proxy, 1162s # GCancellable *cancellable, 1162s # GError **error) 1162s # { 1162s # GVariant *_ret; 1162s # _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy), 1162s # "RandomMethod", 1162s # g_variant_new ("()"), 1162s # G_DBUS_CALL_FLAGS_NONE, 1162s # -1, 1162s # cancellable, 1162s # error); 1162s # if (_ret == NULL) 1162s # goto _out; 1162s # g_variant_get (_ret, 1162s # "()"); 1162s # g_variant_unref (_ret); 1162s # _out: 1162s # return _ret != NULL; 1162s # } 1162s # 1162s # /** 1162s # * org_project_bar_frobnicator_complete_random_method: 1162s # * @object: A #OrgProjectBarFrobnicator. 1162s # * @invocation: (transfer full): A #GDBusMethodInvocation. 1162s # * 1162s # * 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. 1162s # * 1162s # * This method will free @invocation, you cannot use it afterwards. 1162s # */ 1162s # void 1162s # org_project_bar_frobnicator_complete_random_method ( 1162s # OrgProjectBarFrobnicator *object G_GNUC_UNUSED, 1162s # GDBusMethodInvocation *invocation) 1162s # { 1162s # g_dbus_method_invocation_return_value (invocation, 1162s # g_variant_new ("()")); 1162s # } 1162s # 1162s # /* ------------------------------------------------------------------------ */ 1162s # 1162s # /** 1162s # * OrgProjectBarFrobnicatorProxy: 1162s # * 1162s # * The #OrgProjectBarFrobnicatorProxy structure contains only private data and should only be accessed using the provided API. 1162s # */ 1162s # 1162s # /** 1162s # * OrgProjectBarFrobnicatorProxyClass: 1162s # * @parent_class: The parent class. 1162s # * 1162s # * Class structure for #OrgProjectBarFrobnicatorProxy. 1162s # */ 1162s # 1162s # struct _OrgProjectBarFrobnicatorProxyPrivate 1162s # { 1162s # GData *qdata; 1162s # }; 1162s # 1162s # static void org_project_bar_frobnicator_proxy_iface_init (OrgProjectBarFrobnicatorIface *iface); 1162s # 1162s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1162s # G_DEFINE_TYPE_WITH_CODE (OrgProjectBarFrobnicatorProxy, org_project_bar_frobnicator_proxy, G_TYPE_DBUS_PROXY, 1162s # G_ADD_PRIVATE (OrgProjectBarFrobnicatorProxy) 1162s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_BAR_FROBNICATOR, org_project_bar_frobnicator_proxy_iface_init)) 1162s # 1162s # #else 1162s # G_DEFINE_TYPE_WITH_CODE (OrgProjectBarFrobnicatorProxy, org_project_bar_frobnicator_proxy, G_TYPE_DBUS_PROXY, 1162s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_BAR_FROBNICATOR, org_project_bar_frobnicator_proxy_iface_init)) 1162s # 1162s # #endif 1162s # static void 1162s # org_project_bar_frobnicator_proxy_finalize (GObject *object) 1162s # { 1162s # OrgProjectBarFrobnicatorProxy *proxy = ORG_PROJECT_BAR_FROBNICATOR_PROXY (object); 1162s # g_datalist_clear (&proxy->priv->qdata); 1162s # G_OBJECT_CLASS (org_project_bar_frobnicator_proxy_parent_class)->finalize (object); 1162s # } 1162s # 1162s # static void 1162s # org_project_bar_frobnicator_proxy_get_property (GObject *object G_GNUC_UNUSED, 1162s # guint prop_id G_GNUC_UNUSED, 1162s # GValue *value G_GNUC_UNUSED, 1162s # GParamSpec *pspec G_GNUC_UNUSED) 1162s # { 1162s # } 1162s # 1162s # static void 1162s # org_project_bar_frobnicator_proxy_set_property (GObject *object G_GNUC_UNUSED, 1162s # guint prop_id G_GNUC_UNUSED, 1162s # const GValue *value G_GNUC_UNUSED, 1162s # GParamSpec *pspec G_GNUC_UNUSED) 1162s # { 1162s # } 1162s # 1162s # static void 1162s # org_project_bar_frobnicator_proxy_g_signal (GDBusProxy *proxy, 1162s # const gchar *sender_name G_GNUC_UNUSED, 1162s # const gchar *signal_name, 1162s # GVariant *parameters) 1162s # { 1162s # _ExtendedGDBusSignalInfo *info; 1162s # GVariantIter iter; 1162s # GVariant *child; 1162s # GValue *paramv; 1162s # gsize num_params; 1162s # gsize n; 1162s # guint signal_id; 1162s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_bar_frobnicator_interface_info.parent_struct, signal_name); 1162s # if (info == NULL) 1162s # return; 1162s # num_params = g_variant_n_children (parameters); 1162s # paramv = g_new0 (GValue, num_params + 1); 1162s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_BAR_FROBNICATOR); 1162s # g_value_set_object (¶mv[0], proxy); 1162s # g_variant_iter_init (&iter, parameters); 1162s # n = 1; 1162s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1162s # { 1162s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 1162s # if (arg_info->use_gvariant) 1162s # { 1162s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1162s # g_value_set_variant (¶mv[n], child); 1162s # n++; 1162s # } 1162s # else 1162s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1162s # g_variant_unref (child); 1162s # } 1162s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_BAR_FROBNICATOR); 1162s # g_signal_emitv (paramv, signal_id, 0, NULL); 1162s # for (n = 0; n < num_params + 1; n++) 1162s # g_value_unset (¶mv[n]); 1162s # g_free (paramv); 1162s # } 1162s # 1162s # static void 1162s # org_project_bar_frobnicator_proxy_g_properties_changed (GDBusProxy *_proxy, 1162s # GVariant *changed_properties, 1162s # const gchar *const *invalidated_properties) 1162s # { 1162s # OrgProjectBarFrobnicatorProxy *proxy = ORG_PROJECT_BAR_FROBNICATOR_PROXY (_proxy); 1162s # guint n; 1162s # const gchar *key; 1162s # GVariantIter *iter; 1162s # _ExtendedGDBusPropertyInfo *info; 1162s # g_variant_get (changed_properties, "a{sv}", &iter); 1162s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 1162s # { 1162s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_bar_frobnicator_interface_info.parent_struct, key); 1162s # g_datalist_remove_data (&proxy->priv->qdata, key); 1162s # if (info != NULL) 1162s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1162s # } 1162s # g_variant_iter_free (iter); 1162s # for (n = 0; invalidated_properties[n] != NULL; n++) 1162s # { 1162s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_bar_frobnicator_interface_info.parent_struct, invalidated_properties[n]); 1162s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 1162s # if (info != NULL) 1162s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1162s # } 1162s # } 1162s # 1162s # static void 1162s # org_project_bar_frobnicator_proxy_init (OrgProjectBarFrobnicatorProxy *proxy) 1162s # { 1162s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1162s # proxy->priv = org_project_bar_frobnicator_proxy_get_instance_private (proxy); 1162s # #else 1162s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_BAR_FROBNICATOR_PROXY, OrgProjectBarFrobnicatorProxyPrivate); 1162s # #endif 1162s # 1162s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_bar_frobnicator_interface_info ()); 1162s # } 1162s # 1162s # static void 1162s # org_project_bar_frobnicator_proxy_class_init (OrgProjectBarFrobnicatorProxyClass *klass) 1162s # { 1162s # GObjectClass *gobject_class; 1162s # GDBusProxyClass *proxy_class; 1162s # 1162s # gobject_class = G_OBJECT_CLASS (klass); 1162s # gobject_class->finalize = org_project_bar_frobnicator_proxy_finalize; 1162s # gobject_class->get_property = org_project_bar_frobnicator_proxy_get_property; 1162s # gobject_class->set_property = org_project_bar_frobnicator_proxy_set_property; 1162s # 1162s # proxy_class = G_DBUS_PROXY_CLASS (klass); 1162s # proxy_class->g_signal = org_project_bar_frobnicator_proxy_g_signal; 1162s # proxy_class->g_properties_changed = org_project_bar_frobnicator_proxy_g_properties_changed; 1162s # 1162s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1162s # g_type_class_add_private (klass, sizeof (OrgProjectBarFrobnicatorProxyPrivate)); 1162s # #endif 1162s # } 1162s # 1162s # static void 1162s # org_project_bar_frobnicator_proxy_iface_init (OrgProjectBarFrobnicatorIface *iface G_GNUC_UNUSED) 1162s # { 1162s # } 1162s # 1162s # /** 1162s # * org_project_bar_frobnicator_proxy_new: 1162s # * @connection: A #GDBusConnection. 1162s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1162s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1162s # * @object_path: An object path. 1162s # * @cancellable: (nullable): A #GCancellable or %NULL. 1162s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1162s # * @user_data: User data to pass to @callback. 1162s # * 1162s # * Asynchronously creates a proxy for the D-Bus interface org.project.Bar.Frobnicator. See g_dbus_proxy_new() for more details. 1162s # * 1162s # * 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()). 1162s # * You can then call org_project_bar_frobnicator_proxy_new_finish() to get the result of the operation. 1162s # * 1162s # * See org_project_bar_frobnicator_proxy_new_sync() for the synchronous, blocking version of this constructor. 1162s # */ 1162s # void 1162s # org_project_bar_frobnicator_proxy_new ( 1162s # GDBusConnection *connection, 1162s # GDBusProxyFlags flags, 1162s # const gchar *name, 1162s # const gchar *object_path, 1162s # GCancellable *cancellable, 1162s # GAsyncReadyCallback callback, 1162s # gpointer user_data) 1162s # { 1162s # 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); 1162s # } 1162s # 1162s # /** 1162s # * org_project_bar_frobnicator_proxy_new_finish: 1162s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_bar_frobnicator_proxy_new(). 1162s # * @error: Return location for error or %NULL 1162s # * 1162s # * Finishes an operation started with org_project_bar_frobnicator_proxy_new(). 1162s # * 1162s # * Returns: (transfer full) (type OrgProjectBarFrobnicatorProxy): The constructed proxy object or %NULL if @error is set. 1162s # */ 1162s # OrgProjectBarFrobnicator * 1162s # org_project_bar_frobnicator_proxy_new_finish ( 1162s # GAsyncResult *res, 1162s # GError **error) 1162s # { 1162s # GObject *ret; 1162s # GObject *source_object; 1162s # source_object = g_async_result_get_source_object (res); 1162s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1162s # g_object_unref (source_object); 1162s # if (ret != NULL) 1162s # return ORG_PROJECT_BAR_FROBNICATOR (ret); 1162s # else 1162s # return NULL; 1162s # } 1162s # 1162s # /** 1162s # * org_project_bar_frobnicator_proxy_new_sync: 1162s # * @connection: A #GDBusConnection. 1162s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1162s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1162s # * @object_path: An object path. 1162s # * @cancellable: (nullable): A #GCancellable or %NULL. 1162s # * @error: Return location for error or %NULL 1162s # * 1162s # * Synchronously creates a proxy for the D-Bus interface org.project.Bar.Frobnicator. See g_dbus_proxy_new_sync() for more details. 1162s # * 1162s # * The calling thread is blocked until a reply is received. 1162s # * 1162s # * See org_project_bar_frobnicator_proxy_new() for the asynchronous version of this constructor. 1162s # * 1162s # * Returns: (transfer full) (type OrgProjectBarFrobnicatorProxy): The constructed proxy object or %NULL if @error is set. 1162s # */ 1162s # OrgProjectBarFrobnicator * 1162s # org_project_bar_frobnicator_proxy_new_sync ( 1162s # GDBusConnection *connection, 1162s # GDBusProxyFlags flags, 1162s # const gchar *name, 1162s # const gchar *object_path, 1162s # GCancellable *cancellable, 1162s # GError **error) 1162s # { 1162s # GInitable *ret; 1162s # 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); 1162s # if (ret != NULL) 1162s # return ORG_PROJECT_BAR_FROBNICATOR (ret); 1162s # else 1162s # return NULL; 1162s # } 1162s # 1162s # 1162s # /** 1162s # * org_project_bar_frobnicator_proxy_new_for_bus: 1162s # * @bus_type: A #GBusType. 1162s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1162s # * @name: A bus name (well-known or unique). 1162s # * @object_path: An object path. 1162s # * @cancellable: (nullable): A #GCancellable or %NULL. 1162s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1162s # * @user_data: User data to pass to @callback. 1162s # * 1162s # * Like org_project_bar_frobnicator_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 1162s # * 1162s # * 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()). 1162s # * You can then call org_project_bar_frobnicator_proxy_new_for_bus_finish() to get the result of the operation. 1162s # * 1162s # * See org_project_bar_frobnicator_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 1162s # */ 1162s # void 1162s # org_project_bar_frobnicator_proxy_new_for_bus ( 1162s # GBusType bus_type, 1162s # GDBusProxyFlags flags, 1162s # const gchar *name, 1162s # const gchar *object_path, 1162s # GCancellable *cancellable, 1162s # GAsyncReadyCallback callback, 1162s # gpointer user_data) 1162s # { 1162s # 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); 1162s # } 1162s # 1162s # /** 1162s # * org_project_bar_frobnicator_proxy_new_for_bus_finish: 1162s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_bar_frobnicator_proxy_new_for_bus(). 1162s # * @error: Return location for error or %NULL 1162s # * 1162s # * Finishes an operation started with org_project_bar_frobnicator_proxy_new_for_bus(). 1162s # * 1162s # * Returns: (transfer full) (type OrgProjectBarFrobnicatorProxy): The constructed proxy object or %NULL if @error is set. 1162s # */ 1162s # OrgProjectBarFrobnicator * 1162s # org_project_bar_frobnicator_proxy_new_for_bus_finish ( 1162s # GAsyncResult *res, 1162s # GError **error) 1162s # { 1162s # GObject *ret; 1162s # GObject *source_object; 1162s # source_object = g_async_result_get_source_object (res); 1162s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1162s # g_object_unref (source_object); 1162s # if (ret != NULL) 1162s # return ORG_PROJECT_BAR_FROBNICATOR (ret); 1162s # else 1162s # return NULL; 1162s # } 1162s # 1162s # /** 1162s # * org_project_bar_frobnicator_proxy_new_for_bus_sync: 1162s # * @bus_type: A #GBusType. 1162s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1162s # * @name: A bus name (well-known or unique). 1162s # * @object_path: An object path. 1162s # * @cancellable: (nullable): A #GCancellable or %NULL. 1162s # * @error: Return location for error or %NULL 1162s # * 1162s # * Like org_project_bar_frobnicator_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 1162s # * 1162s # * The calling thread is blocked until a reply is received. 1162s # * 1162s # * See org_project_bar_frobnicator_proxy_new_for_bus() for the asynchronous version of this constructor. 1162s # * 1162s # * Returns: (transfer full) (type OrgProjectBarFrobnicatorProxy): The constructed proxy object or %NULL if @error is set. 1162s # */ 1162s # OrgProjectBarFrobnicator * 1162s # org_project_bar_frobnicator_proxy_new_for_bus_sync ( 1162s # GBusType bus_type, 1162s # GDBusProxyFlags flags, 1162s # const gchar *name, 1162s # const gchar *object_path, 1162s # GCancellable *cancellable, 1162s # GError **error) 1162s # { 1162s # GInitable *ret; 1162s # 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); 1162s # if (ret != NULL) 1162s # return ORG_PROJECT_BAR_FROBNICATOR (ret); 1162s # else 1162s # return NULL; 1162s # } 1162s # 1162s # 1162s # /* ------------------------------------------------------------------------ */ 1162s # 1162s # /** 1162s # * OrgProjectBarFrobnicatorSkeleton: 1162s # * 1162s # * The #OrgProjectBarFrobnicatorSkeleton structure contains only private data and should only be accessed using the provided API. 1162s # */ 1162s # 1162s # /** 1162s # * OrgProjectBarFrobnicatorSkeletonClass: 1162s # * @parent_class: The parent class. 1162s # * 1162s # * Class structure for #OrgProjectBarFrobnicatorSkeleton. 1162s # */ 1162s # 1162s # struct _OrgProjectBarFrobnicatorSkeletonPrivate 1162s # { 1162s # GValue *properties; 1162s # GList *changed_properties; 1162s # GSource *changed_properties_idle_source; 1162s # GMainContext *context; 1162s # GMutex lock; 1162s # }; 1162s # 1162s # static void 1162s # _org_project_bar_frobnicator_skeleton_handle_method_call ( 1162s # GDBusConnection *connection G_GNUC_UNUSED, 1162s # const gchar *sender G_GNUC_UNUSED, 1162s # const gchar *object_path G_GNUC_UNUSED, 1162s # const gchar *interface_name, 1162s # const gchar *method_name, 1162s # GVariant *parameters, 1162s # GDBusMethodInvocation *invocation, 1162s # gpointer user_data) 1162s # { 1162s # OrgProjectBarFrobnicatorSkeleton *skeleton = ORG_PROJECT_BAR_FROBNICATOR_SKELETON (user_data); 1162s # _ExtendedGDBusMethodInfo *info; 1162s # GVariantIter iter; 1162s # GVariant *child; 1162s # GValue *paramv; 1162s # gsize num_params; 1162s # guint num_extra; 1162s # gsize n; 1162s # guint signal_id; 1162s # GValue return_value = G_VALUE_INIT; 1162s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 1162s # g_assert (info != NULL); 1162s # num_params = g_variant_n_children (parameters); 1162s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 1162s # n = 0; 1162s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_BAR_FROBNICATOR); 1162s # g_value_set_object (¶mv[n++], skeleton); 1162s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 1162s # g_value_set_object (¶mv[n++], invocation); 1162s # if (info->pass_fdlist) 1162s # { 1162s # #ifdef G_OS_UNIX 1162s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 1162s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 1162s # #else 1162s # g_assert_not_reached (); 1162s # #endif 1162s # } 1162s # g_variant_iter_init (&iter, parameters); 1162s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1162s # { 1162s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 1162s # if (arg_info->use_gvariant) 1162s # { 1162s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1162s # g_value_set_variant (¶mv[n], child); 1162s # n++; 1162s # } 1162s # else 1162s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1162s # g_variant_unref (child); 1162s # } 1162s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_BAR_FROBNICATOR); 1162s # g_value_init (&return_value, G_TYPE_BOOLEAN); 1162s # g_signal_emitv (paramv, signal_id, 0, &return_value); 1162s # if (!g_value_get_boolean (&return_value)) 1162s # 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); 1162s # g_value_unset (&return_value); 1162s # for (n = 0; n < num_params + num_extra; n++) 1162s # g_value_unset (¶mv[n]); 1162s # g_free (paramv); 1162s # } 1162s # 1162s # static GVariant * 1162s # _org_project_bar_frobnicator_skeleton_handle_get_property ( 1162s # GDBusConnection *connection G_GNUC_UNUSED, 1162s # const gchar *sender G_GNUC_UNUSED, 1162s # const gchar *object_path G_GNUC_UNUSED, 1162s # const gchar *interface_name G_GNUC_UNUSED, 1162s # const gchar *property_name, 1162s # GError **error, 1162s # gpointer user_data) 1162s # { 1162s # OrgProjectBarFrobnicatorSkeleton *skeleton = ORG_PROJECT_BAR_FROBNICATOR_SKELETON (user_data); 1162s # GValue value = G_VALUE_INIT; 1162s # GParamSpec *pspec; 1162s # _ExtendedGDBusPropertyInfo *info; 1162s # GVariant *ret; 1162s # ret = NULL; 1162s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_bar_frobnicator_interface_info.parent_struct, property_name); 1162s # g_assert (info != NULL); 1162s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1162s # if (pspec == NULL) 1162s # { 1162s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1162s # } 1162s # else 1162s # { 1162s # g_value_init (&value, pspec->value_type); 1162s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1162s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 1162s # g_value_unset (&value); 1162s # } 1162s # return ret; 1162s # } 1162s # 1162s # static gboolean 1162s # _org_project_bar_frobnicator_skeleton_handle_set_property ( 1162s # GDBusConnection *connection G_GNUC_UNUSED, 1162s # const gchar *sender G_GNUC_UNUSED, 1162s # const gchar *object_path G_GNUC_UNUSED, 1162s # const gchar *interface_name G_GNUC_UNUSED, 1162s # const gchar *property_name, 1162s # GVariant *variant, 1162s # GError **error, 1162s # gpointer user_data) 1162s # { 1162s # OrgProjectBarFrobnicatorSkeleton *skeleton = ORG_PROJECT_BAR_FROBNICATOR_SKELETON (user_data); 1162s # GValue value = G_VALUE_INIT; 1162s # GParamSpec *pspec; 1162s # _ExtendedGDBusPropertyInfo *info; 1162s # gboolean ret; 1162s # ret = FALSE; 1162s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_bar_frobnicator_interface_info.parent_struct, property_name); 1162s # g_assert (info != NULL); 1162s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1162s # if (pspec == NULL) 1162s # { 1162s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1162s # } 1162s # else 1162s # { 1162s # if (info->use_gvariant) 1162s # g_value_set_variant (&value, variant); 1162s # else 1162s # g_dbus_gvariant_to_gvalue (variant, &value); 1162s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1162s # g_value_unset (&value); 1162s # ret = TRUE; 1162s # } 1162s # return ret; 1162s # } 1162s # 1162s # static const GDBusInterfaceVTable _org_project_bar_frobnicator_skeleton_vtable = 1162s # { 1162s # _org_project_bar_frobnicator_skeleton_handle_method_call, 1162s # _org_project_bar_frobnicator_skeleton_handle_get_property, 1162s # _org_project_bar_frobnicator_skeleton_handle_set_property, 1162s # {NULL} 1162s # }; 1162s # 1162s # static GDBusInterfaceInfo * 1162s # org_project_bar_frobnicator_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1162s # { 1162s # return org_project_bar_frobnicator_interface_info (); 1162s # } 1162s # 1162s # static GDBusInterfaceVTable * 1162s # org_project_bar_frobnicator_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1162s # { 1162s # return (GDBusInterfaceVTable *) &_org_project_bar_frobnicator_skeleton_vtable; 1162s # } 1162s # 1162s # static GVariant * 1162s # org_project_bar_frobnicator_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 1162s # { 1162s # OrgProjectBarFrobnicatorSkeleton *skeleton = ORG_PROJECT_BAR_FROBNICATOR_SKELETON (_skeleton); 1162s # 1162s # GVariantBuilder builder; 1162s # guint n; 1162s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 1162s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 1162s # #else 1162s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 1162s # #endif 1162s # if (_org_project_bar_frobnicator_interface_info.parent_struct.properties == NULL) 1162s # goto out; 1162s # for (n = 0; _org_project_bar_frobnicator_interface_info.parent_struct.properties[n] != NULL; n++) 1162s # { 1162s # GDBusPropertyInfo *info = _org_project_bar_frobnicator_interface_info.parent_struct.properties[n]; 1162s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 1162s # { 1162s # GVariant *value; 1162s # 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); 1162s # if (value != NULL) 1162s # { 1162s # g_variant_take_ref (value); 1162s # g_variant_builder_add (&builder, "{sv}", info->name, value); 1162s # g_variant_unref (value); 1162s # } 1162s # } 1162s # } 1162s # out: 1162s # return g_variant_builder_end (&builder); 1162s # } 1162s # 1162s # static void 1162s # org_project_bar_frobnicator_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 1162s # { 1162s # } 1162s # 1162s # static void org_project_bar_frobnicator_skeleton_iface_init (OrgProjectBarFrobnicatorIface *iface); 1162s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1162s # G_DEFINE_TYPE_WITH_CODE (OrgProjectBarFrobnicatorSkeleton, org_project_bar_frobnicator_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1162s # G_ADD_PRIVATE (OrgProjectBarFrobnicatorSkeleton) 1162s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_BAR_FROBNICATOR, org_project_bar_frobnicator_skeleton_iface_init)) 1162s # 1162s # #else 1162s # G_DEFINE_TYPE_WITH_CODE (OrgProjectBarFrobnicatorSkeleton, org_project_bar_frobnicator_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1162s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_BAR_FROBNICATOR, org_project_bar_frobnicator_skeleton_iface_init)) 1162s # 1162s # #endif 1162s # static void 1162s # org_project_bar_frobnicator_skeleton_finalize (GObject *object) 1162s # { 1162s # OrgProjectBarFrobnicatorSkeleton *skeleton = ORG_PROJECT_BAR_FROBNICATOR_SKELETON (object); 1162s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 1162s # if (skeleton->priv->changed_properties_idle_source != NULL) 1162s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 1162s # g_main_context_unref (skeleton->priv->context); 1162s # g_mutex_clear (&skeleton->priv->lock); 1162s # G_OBJECT_CLASS (org_project_bar_frobnicator_skeleton_parent_class)->finalize (object); 1162s # } 1162s # 1162s # static void 1162s # org_project_bar_frobnicator_skeleton_init (OrgProjectBarFrobnicatorSkeleton *skeleton) 1162s # { 1162s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1162s # skeleton->priv = org_project_bar_frobnicator_skeleton_get_instance_private (skeleton); 1162s # #else 1162s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_BAR_FROBNICATOR_SKELETON, OrgProjectBarFrobnicatorSkeletonPrivate); 1162s # #endif 1162s # 1162s # g_mutex_init (&skeleton->priv->lock); 1162s # skeleton->priv->context = g_main_context_ref_thread_default (); 1162s # } 1162s # 1162s # static void 1162s # org_project_bar_frobnicator_skeleton_class_init (OrgProjectBarFrobnicatorSkeletonClass *klass) 1162s # { 1162s # GObjectClass *gobject_class; 1162s # GDBusInterfaceSkeletonClass *skeleton_class; 1162s # 1162s # gobject_class = G_OBJECT_CLASS (klass); 1162s # gobject_class->finalize = org_project_bar_frobnicator_skeleton_finalize; 1162s # 1162s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 1162s # skeleton_class->get_info = org_project_bar_frobnicator_skeleton_dbus_interface_get_info; 1162s # skeleton_class->get_properties = org_project_bar_frobnicator_skeleton_dbus_interface_get_properties; 1162s # skeleton_class->flush = org_project_bar_frobnicator_skeleton_dbus_interface_flush; 1162s # skeleton_class->get_vtable = org_project_bar_frobnicator_skeleton_dbus_interface_get_vtable; 1162s # 1162s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1162s # g_type_class_add_private (klass, sizeof (OrgProjectBarFrobnicatorSkeletonPrivate)); 1162s # #endif 1162s # } 1162s # 1162s # static void 1162s # org_project_bar_frobnicator_skeleton_iface_init (OrgProjectBarFrobnicatorIface *iface G_GNUC_UNUSED) 1162s # { 1162s # } 1162s # 1162s # /** 1162s # * org_project_bar_frobnicator_skeleton_new: 1162s # * 1162s # * Creates a skeleton object for the D-Bus interface org.project.Bar.Frobnicator. 1162s # * 1162s # * Returns: (transfer full) (type OrgProjectBarFrobnicatorSkeleton): The skeleton object. 1162s # */ 1162s # OrgProjectBarFrobnicator * 1162s # org_project_bar_frobnicator_skeleton_new (void) 1162s # { 1162s # return ORG_PROJECT_BAR_FROBNICATOR (g_object_new (TYPE_ORG_PROJECT_BAR_FROBNICATOR_SKELETON, NULL)); 1162s # } 1162s # Error: 1162s # 1162s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpzpf7uct6/tmpr8peunsb2.xml', '/tmp/tmpzpf7uct6/tmpdpni_6zb1.xml', '--output', '-', '--body'] 1162s # Return code: 0 1162s # Output: 1162s # /* 1162s # * This file is generated by gdbus-codegen, do not modify it. 1162s # * 1162s # * The license of this code is the same as for the D-Bus interface description 1162s # * it was derived from. Note that it links to GLib, so must comply with the 1162s # * LGPL linking clauses. 1162s # */ 1162s # 1162s # #ifdef HAVE_CONFIG_H 1162s # # include "config.h" 1162s # #endif 1162s # 1162s # #include 1162s # #ifdef G_OS_UNIX 1162s # # include 1162s # #endif 1162s # 1162s # #ifdef G_ENABLE_DEBUG 1162s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 1162s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 1162s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 1162s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 1162s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 1162s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 1162s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 1162s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 1162s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 1162s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 1162s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 1162s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 1162s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 1162s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 1162s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 1162s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 1162s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 1162s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 1162s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 1162s # #else /* !G_ENABLE_DEBUG */ 1162s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 1162s # * Do not access GValues directly in your code. Instead, use the 1162s # * g_value_get_*() functions 1162s # */ 1162s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 1162s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 1162s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 1162s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 1162s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 1162s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 1162s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 1162s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 1162s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 1162s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 1162s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 1162s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 1162s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 1162s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 1162s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 1162s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 1162s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 1162s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 1162s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 1162s # #endif /* !G_ENABLE_DEBUG */ 1162s # 1162s # typedef struct 1162s # { 1162s # GDBusArgInfo parent_struct; 1162s # gboolean use_gvariant; 1162s # } _ExtendedGDBusArgInfo; 1162s # 1162s # typedef struct 1162s # { 1162s # GDBusMethodInfo parent_struct; 1162s # const gchar *signal_name; 1162s # gboolean pass_fdlist; 1162s # } _ExtendedGDBusMethodInfo; 1162s # 1162s # typedef struct 1162s # { 1162s # GDBusSignalInfo parent_struct; 1162s # const gchar *signal_name; 1162s # } _ExtendedGDBusSignalInfo; 1162s # 1162s # typedef struct 1162s # { 1162s # GDBusPropertyInfo parent_struct; 1162s # const gchar *hyphen_name; 1162s # guint use_gvariant : 1; 1162s # guint emits_changed_signal : 1; 1162s # } _ExtendedGDBusPropertyInfo; 1162s # 1162s # typedef struct 1162s # { 1162s # GDBusInterfaceInfo parent_struct; 1162s # const gchar *hyphen_name; 1162s # } _ExtendedGDBusInterfaceInfo; 1162s # 1162s # typedef struct 1162s # { 1162s # const _ExtendedGDBusPropertyInfo *info; 1162s # guint prop_id; 1162s # GValue orig_value; /* the value before the change */ 1162s # } ChangedProperty; 1162s # 1162s # static void 1162s # _changed_property_free (ChangedProperty *data) 1162s # { 1162s # g_value_unset (&data->orig_value); 1162s # g_free (data); 1162s # } 1162s # 1162s # static gboolean 1162s # _g_strv_equal0 (gchar **a, gchar **b) 1162s # { 1162s # gboolean ret = FALSE; 1162s # guint n; 1162s # if (a == NULL && b == NULL) 1162s # { 1162s # ret = TRUE; 1162s # goto out; 1162s # } 1162s # if (a == NULL || b == NULL) 1162s # goto out; 1162s # if (g_strv_length (a) != g_strv_length (b)) 1162s # goto out; 1162s # for (n = 0; a[n] != NULL; n++) 1162s # if (g_strcmp0 (a[n], b[n]) != 0) 1162s # goto out; 1162s # ret = TRUE; 1162s # out: 1162s # return ret; 1162s # } 1162s # 1162s # static gboolean 1162s # _g_variant_equal0 (GVariant *a, GVariant *b) 1162s # { 1162s # gboolean ret = FALSE; 1162s # if (a == NULL && b == NULL) 1162s # { 1162s # ret = TRUE; 1162s # goto out; 1162s # } 1162s # if (a == NULL || b == NULL) 1162s # goto out; 1162s # ret = g_variant_equal (a, b); 1162s # out: 1162s # return ret; 1162s # } 1162s # 1162s # G_GNUC_UNUSED static gboolean 1162s # _g_value_equal (const GValue *a, const GValue *b) 1162s # { 1162s # gboolean ret = FALSE; 1162s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 1162s # switch (G_VALUE_TYPE (a)) 1162s # { 1162s # case G_TYPE_BOOLEAN: 1162s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 1162s # break; 1162s # case G_TYPE_UCHAR: 1162s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 1162s # break; 1162s # case G_TYPE_INT: 1162s # ret = (g_value_get_int (a) == g_value_get_int (b)); 1162s # break; 1162s # case G_TYPE_UINT: 1162s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 1162s # break; 1162s # case G_TYPE_INT64: 1162s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 1162s # break; 1162s # case G_TYPE_UINT64: 1162s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 1162s # break; 1162s # case G_TYPE_DOUBLE: 1162s # { 1162s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 1162s # gdouble da = g_value_get_double (a); 1162s # gdouble db = g_value_get_double (b); 1162s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 1162s # } 1162s # break; 1162s # case G_TYPE_STRING: 1162s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 1162s # break; 1162s # case G_TYPE_VARIANT: 1162s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 1162s # break; 1162s # default: 1162s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 1162s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 1162s # else 1162s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 1162s # break; 1162s # } 1162s # return ret; 1162s # } 1162s # 1162s # static void 1162s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT ( 1162s # GClosure *closure, 1162s # GValue *return_value, 1162s # unsigned int n_param_values, 1162s # const GValue *param_values, 1162s # void *invocation_hint G_GNUC_UNUSED, 1162s # void *marshal_data) 1162s # { 1162s # typedef gboolean (*_GDbusCodegenMarshalBoolean_ObjectFunc) 1162s # (void *data1, 1162s # GDBusMethodInvocation *arg_method_invocation, 1162s # void *data2); 1162s # _GDbusCodegenMarshalBoolean_ObjectFunc callback; 1162s # GCClosure *cc = (GCClosure*) closure; 1162s # void *data1, *data2; 1162s # gboolean v_return; 1162s # 1162s # g_return_if_fail (return_value != NULL); 1162s # g_return_if_fail (n_param_values == 2); 1162s # 1162s # if (G_CCLOSURE_SWAP_DATA (closure)) 1162s # { 1162s # data1 = closure->data; 1162s # data2 = g_value_peek_pointer (param_values + 0); 1162s # } 1162s # else 1162s # { 1162s # data1 = g_value_peek_pointer (param_values + 0); 1162s # data2 = closure->data; 1162s # } 1162s # 1162s # callback = (_GDbusCodegenMarshalBoolean_ObjectFunc) 1162s # (marshal_data ? marshal_data : cc->callback); 1162s # 1162s # v_return = 1162s # callback (data1, 1162s # g_marshal_value_peek_object (param_values + 1), 1162s # data2); 1162s # 1162s # g_value_set_boolean (return_value, v_return); 1162s # } 1162s # 1162s # /* ------------------------------------------------------------------------ 1162s # * Code for interface com.acme.Coyote 1162s # * ------------------------------------------------------------------------ 1162s # */ 1162s # 1162s # /** 1162s # * SECTION:ComAcmeCoyote 1162s # * @title: ComAcmeCoyote 1162s # * @short_description: Generated C code for the com.acme.Coyote D-Bus interface 1162s # * 1162s # * This section contains code for working with the com.acme.Coyote D-Bus interface in C. 1162s # */ 1162s # 1162s # enum 1162s # { 1162s # _COM_ACME_COYOTE_SURPRISED, 1162s # }; 1162s # 1162s # static unsigned _COM_ACME_COYOTE_SIGNALS[1] = { 0 }; 1162s # 1162s # /* ---- Introspection data for com.acme.Coyote ---- */ 1162s # 1162s # static const _ExtendedGDBusMethodInfo _com_acme_coyote_method_info_run = 1162s # { 1162s # { 1162s # -1, 1162s # (gchar *) "Run", 1162s # NULL, 1162s # NULL, 1162s # NULL 1162s # }, 1162s # "handle-run", 1162s # FALSE 1162s # }; 1162s # 1162s # static const _ExtendedGDBusMethodInfo _com_acme_coyote_method_info_sleep = 1162s # { 1162s # { 1162s # -1, 1162s # (gchar *) "Sleep", 1162s # NULL, 1162s # NULL, 1162s # NULL 1162s # }, 1162s # "handle-sleep", 1162s # FALSE 1162s # }; 1162s # 1162s # static const _ExtendedGDBusMethodInfo _com_acme_coyote_method_info_attack = 1162s # { 1162s # { 1162s # -1, 1162s # (gchar *) "Attack", 1162s # NULL, 1162s # NULL, 1162s # NULL 1162s # }, 1162s # "handle-attack", 1162s # FALSE 1162s # }; 1162s # 1162s # static const GDBusMethodInfo * const _com_acme_coyote_method_info_pointers[] = 1162s # { 1162s # &_com_acme_coyote_method_info_run.parent_struct, 1162s # &_com_acme_coyote_method_info_sleep.parent_struct, 1162s # &_com_acme_coyote_method_info_attack.parent_struct, 1162s # NULL 1162s # }; 1162s # 1162s # static const _ExtendedGDBusSignalInfo _com_acme_coyote_signal_info_surprised = 1162s # { 1162s # { 1162s # -1, 1162s # (gchar *) "Surprised", 1162s # NULL, 1162s # NULL 1162s # }, 1162s # "surprised" 1162s # }; 1162s # 1162s # static const GDBusSignalInfo * const _com_acme_coyote_signal_info_pointers[] = 1162s # { 1162s # &_com_acme_coyote_signal_info_surprised.parent_struct, 1162s # NULL 1162s # }; 1162s # 1162s # static const _ExtendedGDBusPropertyInfo _com_acme_coyote_property_info_mood = 1162s # { 1162s # { 1162s # -1, 1162s # (gchar *) "Mood", 1162s # (gchar *) "s", 1162s # G_DBUS_PROPERTY_INFO_FLAGS_READABLE, 1162s # NULL 1162s # }, 1162s # "mood", 1162s # FALSE, 1162s # TRUE 1162s # }; 1162s # 1162s # static const GDBusPropertyInfo * const _com_acme_coyote_property_info_pointers[] = 1162s # { 1162s # &_com_acme_coyote_property_info_mood.parent_struct, 1162s # NULL 1162s # }; 1162s # 1162s # static const _ExtendedGDBusInterfaceInfo _com_acme_coyote_interface_info = 1162s # { 1162s # { 1162s # -1, 1162s # (gchar *) "com.acme.Coyote", 1162s # (GDBusMethodInfo **) &_com_acme_coyote_method_info_pointers, 1162s # (GDBusSignalInfo **) &_com_acme_coyote_signal_info_pointers, 1162s # (GDBusPropertyInfo **) &_com_acme_coyote_property_info_pointers, 1162s # NULL 1162s # }, 1162s # "com-acme-coyote", 1162s # }; 1162s # 1162s # 1162s # /** 1162s # * com_acme_coyote_interface_info: 1162s # * 1162s # * Gets a machine-readable description of the com.acme.Coyote D-Bus interface. 1162s # * 1162s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 1162s # */ 1162s # GDBusInterfaceInfo * 1162s # com_acme_coyote_interface_info (void) 1162s # { 1162s # return (GDBusInterfaceInfo *) &_com_acme_coyote_interface_info.parent_struct; 1162s # } 1162s # 1162s # /** 1162s # * com_acme_coyote_override_properties: 1162s # * @klass: The class structure for a #GObject derived class. 1162s # * @property_id_begin: The property id to assign to the first overridden property. 1162s # * 1162s # * Overrides all #GObject properties in the #ComAcmeCoyote interface for a concrete class. 1162s # * The properties are overridden in the order they are defined. 1162s # * 1162s # * Returns: The last property id. 1162s # */ 1162s # guint 1162s # com_acme_coyote_override_properties (GObjectClass *klass, guint property_id_begin) 1162s # { 1162s # g_object_class_override_property (klass, property_id_begin++, "mood"); 1162s # return property_id_begin - 1; 1162s # } 1162s # 1162s # 1162s # inline static void 1162s # com_acme_coyote_signal_marshal_surprised ( 1162s # GClosure *closure, 1162s # GValue *return_value, 1162s # unsigned int n_param_values, 1162s # const GValue *param_values, 1162s # void *invocation_hint, 1162s # void *marshal_data) 1162s # { 1162s # g_cclosure_marshal_VOID__VOID (closure, 1162s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1162s # } 1162s # 1162s # inline static void 1162s # com_acme_coyote_method_marshal_run ( 1162s # GClosure *closure, 1162s # GValue *return_value, 1162s # unsigned int n_param_values, 1162s # const GValue *param_values, 1162s # void *invocation_hint, 1162s # void *marshal_data) 1162s # { 1162s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT (closure, 1162s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1162s # } 1162s # 1162s # inline static void 1162s # com_acme_coyote_method_marshal_sleep ( 1162s # GClosure *closure, 1162s # GValue *return_value, 1162s # unsigned int n_param_values, 1162s # const GValue *param_values, 1162s # void *invocation_hint, 1162s # void *marshal_data) 1162s # { 1162s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT (closure, 1162s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1162s # } 1162s # 1162s # inline static void 1162s # com_acme_coyote_method_marshal_attack ( 1162s # GClosure *closure, 1162s # GValue *return_value, 1162s # unsigned int n_param_values, 1162s # const GValue *param_values, 1162s # void *invocation_hint, 1162s # void *marshal_data) 1162s # { 1162s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT (closure, 1162s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1162s # } 1162s # 1162s # 1162s # /** 1162s # * ComAcmeCoyote: 1162s # * 1162s # * Abstract interface type for the D-Bus interface com.acme.Coyote. 1162s # */ 1162s # 1162s # /** 1162s # * ComAcmeCoyoteIface: 1162s # * @parent_iface: The parent interface. 1162s # * @handle_attack: Handler for the #ComAcmeCoyote::handle-attack signal. 1162s # * @handle_run: Handler for the #ComAcmeCoyote::handle-run signal. 1162s # * @handle_sleep: Handler for the #ComAcmeCoyote::handle-sleep signal. 1162s # * @get_mood: Getter for the #ComAcmeCoyote:mood property. 1162s # * @surprised: Handler for the #ComAcmeCoyote::surprised signal. 1162s # * 1162s # * Virtual table for the D-Bus interface com.acme.Coyote. 1162s # */ 1162s # 1162s # typedef ComAcmeCoyoteIface ComAcmeCoyoteInterface; 1162s # G_DEFINE_INTERFACE (ComAcmeCoyote, com_acme_coyote, G_TYPE_OBJECT) 1162s # 1162s # static void 1162s # com_acme_coyote_default_init (ComAcmeCoyoteIface *iface) 1162s # { 1162s # /* GObject signals for incoming D-Bus method calls: */ 1162s # /** 1162s # * ComAcmeCoyote::handle-run: 1162s # * @object: A #ComAcmeCoyote. 1162s # * @invocation: A #GDBusMethodInvocation. 1162s # * 1162s # * Signal emitted when a remote caller is invoking the Run() D-Bus method. 1162s # * 1162s # * 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. 1162s # * 1162s # * 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. 1162s # */ 1162s # g_signal_new ("handle-run", 1162s # G_TYPE_FROM_INTERFACE (iface), 1162s # G_SIGNAL_RUN_LAST, 1162s # G_STRUCT_OFFSET (ComAcmeCoyoteIface, handle_run), 1162s # g_signal_accumulator_true_handled, 1162s # NULL, 1162s # com_acme_coyote_method_marshal_run, 1162s # G_TYPE_BOOLEAN, 1162s # 1, 1162s # G_TYPE_DBUS_METHOD_INVOCATION); 1162s # 1162s # /** 1162s # * ComAcmeCoyote::handle-sleep: 1162s # * @object: A #ComAcmeCoyote. 1162s # * @invocation: A #GDBusMethodInvocation. 1162s # * 1162s # * Signal emitted when a remote caller is invoking the Sleep() D-Bus method. 1162s # * 1162s # * 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. 1162s # * 1162s # * 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. 1162s # */ 1162s # g_signal_new ("handle-sleep", 1162s # G_TYPE_FROM_INTERFACE (iface), 1162s # G_SIGNAL_RUN_LAST, 1162s # G_STRUCT_OFFSET (ComAcmeCoyoteIface, handle_sleep), 1162s # g_signal_accumulator_true_handled, 1162s # NULL, 1162s # com_acme_coyote_method_marshal_sleep, 1162s # G_TYPE_BOOLEAN, 1162s # 1, 1162s # G_TYPE_DBUS_METHOD_INVOCATION); 1162s # 1162s # /** 1162s # * ComAcmeCoyote::handle-attack: 1162s # * @object: A #ComAcmeCoyote. 1162s # * @invocation: A #GDBusMethodInvocation. 1162s # * 1162s # * Signal emitted when a remote caller is invoking the Attack() D-Bus method. 1162s # * 1162s # * 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. 1162s # * 1162s # * 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. 1162s # */ 1162s # g_signal_new ("handle-attack", 1162s # G_TYPE_FROM_INTERFACE (iface), 1162s # G_SIGNAL_RUN_LAST, 1162s # G_STRUCT_OFFSET (ComAcmeCoyoteIface, handle_attack), 1162s # g_signal_accumulator_true_handled, 1162s # NULL, 1162s # com_acme_coyote_method_marshal_attack, 1162s # G_TYPE_BOOLEAN, 1162s # 1, 1162s # G_TYPE_DBUS_METHOD_INVOCATION); 1162s # 1162s # /* GObject signals for received D-Bus signals: */ 1162s # /** 1162s # * ComAcmeCoyote::surprised: 1162s # * @object: A #ComAcmeCoyote. 1162s # * 1162s # * On the client-side, this signal is emitted whenever the D-Bus signal "Surprised" is received. 1162s # * 1162s # * 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. 1162s # */ 1162s # _COM_ACME_COYOTE_SIGNALS[_COM_ACME_COYOTE_SURPRISED] = 1162s # g_signal_new ("surprised", 1162s # G_TYPE_FROM_INTERFACE (iface), 1162s # G_SIGNAL_RUN_LAST, 1162s # G_STRUCT_OFFSET (ComAcmeCoyoteIface, surprised), 1162s # NULL, 1162s # NULL, 1162s # com_acme_coyote_signal_marshal_surprised, 1162s # G_TYPE_NONE, 1162s # 0); 1162s # 1162s # /* GObject properties for D-Bus properties: */ 1162s # /** 1162s # * ComAcmeCoyote:mood: 1162s # * 1162s # * Represents the D-Bus property "Mood". 1162s # * 1162s # * 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. 1162s # */ 1162s # g_object_interface_install_property (iface, 1162s # g_param_spec_string ("mood", "Mood", "Mood", NULL, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS)); 1162s # } 1162s # 1162s # /** 1162s # * com_acme_coyote_get_mood: (skip) 1162s # * @object: A #ComAcmeCoyote. 1162s # * 1162s # * Gets the value of the "Mood" D-Bus property. 1162s # * 1162s # * Since this D-Bus property is readable, it is meaningful to use this function on both the client- and service-side. 1162s # * 1162s # * 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. 1162s # * 1162s # * 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. 1162s # */ 1162s # const gchar * 1162s # com_acme_coyote_get_mood (ComAcmeCoyote *object) 1162s # { 1162s # g_return_val_if_fail (IS_COM_ACME_COYOTE (object), NULL); 1162s # 1162s # return COM_ACME_COYOTE_GET_IFACE (object)->get_mood (object); 1162s # } 1162s # 1162s # /** 1162s # * com_acme_coyote_dup_mood: (skip) 1162s # * @object: A #ComAcmeCoyote. 1162s # * 1162s # * Gets a copy of the "Mood" D-Bus property. 1162s # * 1162s # * Since this D-Bus property is readable, it is meaningful to use this function on both the client- and service-side. 1162s # * 1162s # * Returns: (transfer full) (nullable): The property value or %NULL if the property is not set. The returned value should be freed with g_free(). 1162s # */ 1162s # gchar * 1162s # com_acme_coyote_dup_mood (ComAcmeCoyote *object) 1162s # { 1162s # gchar *value; 1162s # g_object_get (G_OBJECT (object), "mood", &value, NULL); 1162s # return value; 1162s # } 1162s # 1162s # /** 1162s # * com_acme_coyote_set_mood: (skip) 1162s # * @object: A #ComAcmeCoyote. 1162s # * @value: The value to set. 1162s # * 1162s # * Sets the "Mood" D-Bus property to @value. 1162s # * 1162s # * Since this D-Bus property is not writable, it is only meaningful to use this function on the service-side. 1162s # */ 1162s # void 1162s # com_acme_coyote_set_mood (ComAcmeCoyote *object, const gchar *value) 1162s # { 1162s # g_object_set (G_OBJECT (object), "mood", value, NULL); 1162s # } 1162s # 1162s # /** 1162s # * com_acme_coyote_emit_surprised: 1162s # * @object: A #ComAcmeCoyote. 1162s # * 1162s # * Emits the "Surprised" D-Bus signal. 1162s # */ 1162s # void 1162s # com_acme_coyote_emit_surprised ( 1162s # ComAcmeCoyote *object) 1162s # { 1162s # g_signal_emit (object, _COM_ACME_COYOTE_SIGNALS[_COM_ACME_COYOTE_SURPRISED], 0); 1162s # } 1162s # 1162s # /** 1162s # * com_acme_coyote_call_run: 1162s # * @proxy: A #ComAcmeCoyoteProxy. 1162s # * @cancellable: (nullable): A #GCancellable or %NULL. 1162s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL. 1162s # * @user_data: User data to pass to @callback. 1162s # * 1162s # * Asynchronously invokes the Run() D-Bus method on @proxy. 1162s # * 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()). 1162s # * You can then call com_acme_coyote_call_run_finish() to get the result of the operation. 1162s # * 1162s # * See com_acme_coyote_call_run_sync() for the synchronous, blocking version of this method. 1162s # */ 1162s # void 1162s # com_acme_coyote_call_run ( 1162s # ComAcmeCoyote *proxy, 1162s # GCancellable *cancellable, 1162s # GAsyncReadyCallback callback, 1162s # gpointer user_data) 1162s # { 1162s # g_dbus_proxy_call (G_DBUS_PROXY (proxy), 1162s # "Run", 1162s # g_variant_new ("()"), 1162s # G_DBUS_CALL_FLAGS_NONE, 1162s # -1, 1162s # cancellable, 1162s # callback, 1162s # user_data); 1162s # } 1162s # 1162s # /** 1162s # * com_acme_coyote_call_run_finish: 1162s # * @proxy: A #ComAcmeCoyoteProxy. 1162s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to com_acme_coyote_call_run(). 1162s # * @error: Return location for error or %NULL. 1162s # * 1162s # * Finishes an operation started with com_acme_coyote_call_run(). 1162s # * 1162s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1162s # */ 1162s # gboolean 1162s # com_acme_coyote_call_run_finish ( 1162s # ComAcmeCoyote *proxy, 1162s # GAsyncResult *res, 1162s # GError **error) 1162s # { 1162s # GVariant *_ret; 1162s # _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error); 1162s # if (_ret == NULL) 1162s # goto _out; 1162s # g_variant_get (_ret, 1162s # "()"); 1162s # g_variant_unref (_ret); 1162s # _out: 1162s # return _ret != NULL; 1162s # } 1162s # 1162s # /** 1162s # * com_acme_coyote_call_run_sync: 1162s # * @proxy: A #ComAcmeCoyoteProxy. 1162s # * @cancellable: (nullable): A #GCancellable or %NULL. 1162s # * @error: Return location for error or %NULL. 1162s # * 1162s # * Synchronously invokes the Run() D-Bus method on @proxy. The calling thread is blocked until a reply is received. 1162s # * 1162s # * See com_acme_coyote_call_run() for the asynchronous version of this method. 1162s # * 1162s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1162s # */ 1162s # gboolean 1162s # com_acme_coyote_call_run_sync ( 1162s # ComAcmeCoyote *proxy, 1162s # GCancellable *cancellable, 1162s # GError **error) 1162s # { 1162s # GVariant *_ret; 1162s # _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy), 1162s # "Run", 1162s # g_variant_new ("()"), 1162s # G_DBUS_CALL_FLAGS_NONE, 1162s # -1, 1162s # cancellable, 1162s # error); 1162s # if (_ret == NULL) 1162s # goto _out; 1162s # g_variant_get (_ret, 1162s # "()"); 1162s # g_variant_unref (_ret); 1162s # _out: 1162s # return _ret != NULL; 1162s # } 1162s # 1162s # /** 1162s # * com_acme_coyote_call_sleep: 1162s # * @proxy: A #ComAcmeCoyoteProxy. 1162s # * @cancellable: (nullable): A #GCancellable or %NULL. 1162s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL. 1162s # * @user_data: User data to pass to @callback. 1162s # * 1162s # * Asynchronously invokes the Sleep() D-Bus method on @proxy. 1162s # * 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()). 1162s # * You can then call com_acme_coyote_call_sleep_finish() to get the result of the operation. 1162s # * 1162s # * See com_acme_coyote_call_sleep_sync() for the synchronous, blocking version of this method. 1162s # */ 1162s # void 1162s # com_acme_coyote_call_sleep ( 1162s # ComAcmeCoyote *proxy, 1162s # GCancellable *cancellable, 1162s # GAsyncReadyCallback callback, 1162s # gpointer user_data) 1162s # { 1162s # g_dbus_proxy_call (G_DBUS_PROXY (proxy), 1162s # "Sleep", 1162s # g_variant_new ("()"), 1162s # G_DBUS_CALL_FLAGS_NONE, 1162s # -1, 1162s # cancellable, 1162s # callback, 1162s # user_data); 1162s # } 1162s # 1162s # /** 1162s # * com_acme_coyote_call_sleep_finish: 1162s # * @proxy: A #ComAcmeCoyoteProxy. 1162s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to com_acme_coyote_call_sleep(). 1162s # * @error: Return location for error or %NULL. 1162s # * 1162s # * Finishes an operation started with com_acme_coyote_call_sleep(). 1162s # * 1162s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1162s # */ 1162s # gboolean 1162s # com_acme_coyote_call_sleep_finish ( 1162s # ComAcmeCoyote *proxy, 1162s # GAsyncResult *res, 1162s # GError **error) 1162s # { 1162s # GVariant *_ret; 1162s # _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error); 1162s # if (_ret == NULL) 1162s # goto _out; 1162s # g_variant_get (_ret, 1162s # "()"); 1162s # g_variant_unref (_ret); 1162s # _out: 1162s # return _ret != NULL; 1162s # } 1162s # 1162s # /** 1162s # * com_acme_coyote_call_sleep_sync: 1162s # * @proxy: A #ComAcmeCoyoteProxy. 1162s # * @cancellable: (nullable): A #GCancellable or %NULL. 1162s # * @error: Return location for error or %NULL. 1162s # * 1162s # * Synchronously invokes the Sleep() D-Bus method on @proxy. The calling thread is blocked until a reply is received. 1162s # * 1162s # * See com_acme_coyote_call_sleep() for the asynchronous version of this method. 1162s # * 1162s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1162s # */ 1162s # gboolean 1162s # com_acme_coyote_call_sleep_sync ( 1162s # ComAcmeCoyote *proxy, 1162s # GCancellable *cancellable, 1162s # GError **error) 1162s # { 1162s # GVariant *_ret; 1162s # _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy), 1162s # "Sleep", 1162s # g_variant_new ("()"), 1162s # G_DBUS_CALL_FLAGS_NONE, 1162s # -1, 1162s # cancellable, 1162s # error); 1162s # if (_ret == NULL) 1162s # goto _out; 1162s # g_variant_get (_ret, 1162s # "()"); 1162s # g_variant_unref (_ret); 1162s # _out: 1162s # return _ret != NULL; 1162s # } 1162s # 1162s # /** 1162s # * com_acme_coyote_call_attack: 1162s # * @proxy: A #ComAcmeCoyoteProxy. 1162s # * @cancellable: (nullable): A #GCancellable or %NULL. 1162s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL. 1162s # * @user_data: User data to pass to @callback. 1162s # * 1162s # * Asynchronously invokes the Attack() D-Bus method on @proxy. 1162s # * 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()). 1162s # * You can then call com_acme_coyote_call_attack_finish() to get the result of the operation. 1162s # * 1162s # * See com_acme_coyote_call_attack_sync() for the synchronous, blocking version of this method. 1162s # */ 1162s # void 1162s # com_acme_coyote_call_attack ( 1162s # ComAcmeCoyote *proxy, 1162s # GCancellable *cancellable, 1162s # GAsyncReadyCallback callback, 1162s # gpointer user_data) 1162s # { 1162s # g_dbus_proxy_call (G_DBUS_PROXY (proxy), 1162s # "Attack", 1162s # g_variant_new ("()"), 1162s # G_DBUS_CALL_FLAGS_NONE, 1162s # -1, 1162s # cancellable, 1162s # callback, 1162s # user_data); 1162s # } 1162s # 1162s # /** 1162s # * com_acme_coyote_call_attack_finish: 1162s # * @proxy: A #ComAcmeCoyoteProxy. 1162s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to com_acme_coyote_call_attack(). 1162s # * @error: Return location for error or %NULL. 1162s # * 1162s # * Finishes an operation started with com_acme_coyote_call_attack(). 1162s # * 1162s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1162s # */ 1162s # gboolean 1162s # com_acme_coyote_call_attack_finish ( 1162s # ComAcmeCoyote *proxy, 1162s # GAsyncResult *res, 1162s # GError **error) 1162s # { 1162s # GVariant *_ret; 1162s # _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error); 1162s # if (_ret == NULL) 1162s # goto _out; 1162s # g_variant_get (_ret, 1162s # "()"); 1162s # g_variant_unref (_ret); 1162s # _out: 1162s # return _ret != NULL; 1162s # } 1162s # 1162s # /** 1162s # * com_acme_coyote_call_attack_sync: 1162s # * @proxy: A #ComAcmeCoyoteProxy. 1162s # * @cancellable: (nullable): A #GCancellable or %NULL. 1162s # * @error: Return location for error or %NULL. 1162s # * 1162s # * Synchronously invokes the Attack() D-Bus method on @proxy. The calling thread is blocked until a reply is received. 1162s # * 1162s # * See com_acme_coyote_call_attack() for the asynchronous version of this method. 1162s # * 1162s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1162s # */ 1162s # gboolean 1162s # com_acme_coyote_call_attack_sync ( 1162s # ComAcmeCoyote *proxy, 1162s # GCancellable *cancellable, 1162s # GError **error) 1162s # { 1162s # GVariant *_ret; 1162s # _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy), 1162s # "Attack", 1162s # g_variant_new ("()"), 1162s # G_DBUS_CALL_FLAGS_NONE, 1162s # -1, 1162s # cancellable, 1162s # error); 1162s # if (_ret == NULL) 1162s # goto _out; 1162s # g_variant_get (_ret, 1162s # "()"); 1162s # g_variant_unref (_ret); 1162s # _out: 1162s # return _ret != NULL; 1162s # } 1162s # 1162s # /** 1162s # * com_acme_coyote_complete_run: 1162s # * @object: A #ComAcmeCoyote. 1162s # * @invocation: (transfer full): A #GDBusMethodInvocation. 1162s # * 1162s # * 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. 1162s # * 1162s # * This method will free @invocation, you cannot use it afterwards. 1162s # */ 1162s # void 1162s # com_acme_coyote_complete_run ( 1162s # ComAcmeCoyote *object G_GNUC_UNUSED, 1162s # GDBusMethodInvocation *invocation) 1162s # { 1162s # g_dbus_method_invocation_return_value (invocation, 1162s # g_variant_new ("()")); 1162s # } 1162s # 1162s # /** 1162s # * com_acme_coyote_complete_sleep: 1162s # * @object: A #ComAcmeCoyote. 1162s # * @invocation: (transfer full): A #GDBusMethodInvocation. 1162s # * 1162s # * 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. 1162s # * 1162s # * This method will free @invocation, you cannot use it afterwards. 1162s # */ 1162s # void 1162s # com_acme_coyote_complete_sleep ( 1162s # ComAcmeCoyote *object G_GNUC_UNUSED, 1162s # GDBusMethodInvocation *invocation) 1162s # { 1162s # g_dbus_method_invocation_return_value (invocation, 1162s # g_variant_new ("()")); 1162s # } 1162s # 1162s # /** 1162s # * com_acme_coyote_complete_attack: 1162s # * @object: A #ComAcmeCoyote. 1162s # * @invocation: (transfer full): A #GDBusMethodInvocation. 1162s # * 1162s # * 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. 1162s # * 1162s # * This method will free @invocation, you cannot use it afterwards. 1162s # */ 1162s # void 1162s # com_acme_coyote_complete_attack ( 1162s # ComAcmeCoyote *object G_GNUC_UNUSED, 1162s # GDBusMethodInvocation *invocation) 1162s # { 1162s # g_dbus_method_invocation_return_value (invocation, 1162s # g_variant_new ("()")); 1162s # } 1162s # 1162s # /* ------------------------------------------------------------------------ */ 1162s # 1162s # /** 1162s # * ComAcmeCoyoteProxy: 1162s # * 1162s # * The #ComAcmeCoyoteProxy structure contains only private data and should only be accessed using the provided API. 1162s # */ 1162s # 1162s # /** 1162s # * ComAcmeCoyoteProxyClass: 1162s # * @parent_class: The parent class. 1162s # * 1162s # * Class structure for #ComAcmeCoyoteProxy. 1162s # */ 1162s # 1162s # struct _ComAcmeCoyoteProxyPrivate 1162s # { 1162s # GData *qdata; 1162s # }; 1162s # 1162s # static void com_acme_coyote_proxy_iface_init (ComAcmeCoyoteIface *iface); 1162s # 1162s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1162s # G_DEFINE_TYPE_WITH_CODE (ComAcmeCoyoteProxy, com_acme_coyote_proxy, G_TYPE_DBUS_PROXY, 1162s # G_ADD_PRIVATE (ComAcmeCoyoteProxy) 1162s # G_IMPLEMENT_INTERFACE (TYPE_COM_ACME_COYOTE, com_acme_coyote_proxy_iface_init)) 1162s # 1162s # #else 1162s # G_DEFINE_TYPE_WITH_CODE (ComAcmeCoyoteProxy, com_acme_coyote_proxy, G_TYPE_DBUS_PROXY, 1162s # G_IMPLEMENT_INTERFACE (TYPE_COM_ACME_COYOTE, com_acme_coyote_proxy_iface_init)) 1162s # 1162s # #endif 1162s # static void 1162s # com_acme_coyote_proxy_finalize (GObject *object) 1162s # { 1162s # ComAcmeCoyoteProxy *proxy = COM_ACME_COYOTE_PROXY (object); 1162s # g_datalist_clear (&proxy->priv->qdata); 1162s # G_OBJECT_CLASS (com_acme_coyote_proxy_parent_class)->finalize (object); 1162s # } 1162s # 1162s # static void 1162s # com_acme_coyote_proxy_get_property (GObject *object, 1162s # guint prop_id, 1162s # GValue *value, 1162s # GParamSpec *pspec G_GNUC_UNUSED) 1162s # { 1162s # const _ExtendedGDBusPropertyInfo *info; 1162s # GVariant *variant; 1162s # g_assert (prop_id != 0 && prop_id - 1 < 1); 1162s # info = (const _ExtendedGDBusPropertyInfo *) _com_acme_coyote_property_info_pointers[prop_id - 1]; 1162s # variant = g_dbus_proxy_get_cached_property (G_DBUS_PROXY (object), info->parent_struct.name); 1162s # if (info->use_gvariant) 1162s # { 1162s # g_value_set_variant (value, variant); 1162s # } 1162s # else 1162s # { 1162s # if (variant != NULL) 1162s # g_dbus_gvariant_to_gvalue (variant, value); 1162s # } 1162s # if (variant != NULL) 1162s # g_variant_unref (variant); 1162s # } 1162s # 1162s # static void 1162s # com_acme_coyote_proxy_set_property_cb (GDBusProxy *proxy, 1162s # GAsyncResult *res, 1162s # gpointer user_data) 1162s # { 1162s # const _ExtendedGDBusPropertyInfo *info = user_data; 1162s # GError *error; 1162s # GVariant *_ret; 1162s # error = NULL; 1162s # _ret = g_dbus_proxy_call_finish (proxy, res, &error); 1162s # if (!_ret) 1162s # { 1162s # g_warning ("Error setting property '%s' on interface com.acme.Coyote: %s (%s, %d)", 1162s # info->parent_struct.name, 1162s # error->message, g_quark_to_string (error->domain), error->code); 1162s # g_error_free (error); 1162s # } 1162s # else 1162s # { 1162s # g_variant_unref (_ret); 1162s # } 1162s # } 1162s # 1162s # static void 1162s # com_acme_coyote_proxy_set_property (GObject *object, 1162s # guint prop_id, 1162s # const GValue *value, 1162s # GParamSpec *pspec G_GNUC_UNUSED) 1162s # { 1162s # const _ExtendedGDBusPropertyInfo *info; 1162s # GVariant *variant; 1162s # g_assert (prop_id != 0 && prop_id - 1 < 1); 1162s # info = (const _ExtendedGDBusPropertyInfo *) _com_acme_coyote_property_info_pointers[prop_id - 1]; 1162s # variant = g_dbus_gvalue_to_gvariant (value, G_VARIANT_TYPE (info->parent_struct.signature)); 1162s # g_dbus_proxy_call (G_DBUS_PROXY (object), 1162s # "org.freedesktop.DBus.Properties.Set", 1162s # g_variant_new ("(ssv)", "com.acme.Coyote", info->parent_struct.name, variant), 1162s # G_DBUS_CALL_FLAGS_NONE, 1162s # -1, 1162s # NULL, (GAsyncReadyCallback) com_acme_coyote_proxy_set_property_cb, (GDBusPropertyInfo *) &info->parent_struct); 1162s # g_variant_unref (variant); 1162s # } 1162s # 1162s # static void 1162s # com_acme_coyote_proxy_g_signal (GDBusProxy *proxy, 1162s # const gchar *sender_name G_GNUC_UNUSED, 1162s # const gchar *signal_name, 1162s # GVariant *parameters) 1162s # { 1162s # _ExtendedGDBusSignalInfo *info; 1162s # GVariantIter iter; 1162s # GVariant *child; 1162s # GValue *paramv; 1162s # gsize num_params; 1162s # gsize n; 1162s # guint signal_id; 1162s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_com_acme_coyote_interface_info.parent_struct, signal_name); 1162s # if (info == NULL) 1162s # return; 1162s # num_params = g_variant_n_children (parameters); 1162s # paramv = g_new0 (GValue, num_params + 1); 1162s # g_value_init (¶mv[0], TYPE_COM_ACME_COYOTE); 1162s # g_value_set_object (¶mv[0], proxy); 1162s # g_variant_iter_init (&iter, parameters); 1162s # n = 1; 1162s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1162s # { 1162s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 1162s # if (arg_info->use_gvariant) 1162s # { 1162s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1162s # g_value_set_variant (¶mv[n], child); 1162s # n++; 1162s # } 1162s # else 1162s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1162s # g_variant_unref (child); 1162s # } 1162s # signal_id = g_signal_lookup (info->signal_name, TYPE_COM_ACME_COYOTE); 1162s # g_signal_emitv (paramv, signal_id, 0, NULL); 1162s # for (n = 0; n < num_params + 1; n++) 1162s # g_value_unset (¶mv[n]); 1162s # g_free (paramv); 1162s # } 1162s # 1162s # static void 1162s # com_acme_coyote_proxy_g_properties_changed (GDBusProxy *_proxy, 1162s # GVariant *changed_properties, 1162s # const gchar *const *invalidated_properties) 1162s # { 1162s # ComAcmeCoyoteProxy *proxy = COM_ACME_COYOTE_PROXY (_proxy); 1162s # guint n; 1162s # const gchar *key; 1162s # GVariantIter *iter; 1162s # _ExtendedGDBusPropertyInfo *info; 1162s # g_variant_get (changed_properties, "a{sv}", &iter); 1162s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 1162s # { 1162s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_com_acme_coyote_interface_info.parent_struct, key); 1162s # g_datalist_remove_data (&proxy->priv->qdata, key); 1162s # if (info != NULL) 1162s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1162s # } 1162s # g_variant_iter_free (iter); 1162s # for (n = 0; invalidated_properties[n] != NULL; n++) 1162s # { 1162s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_com_acme_coyote_interface_info.parent_struct, invalidated_properties[n]); 1162s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 1162s # if (info != NULL) 1162s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1162s # } 1162s # } 1162s # 1162s # static const gchar * 1162s # com_acme_coyote_proxy_get_mood (ComAcmeCoyote *object) 1162s # { 1162s # ComAcmeCoyoteProxy *proxy = COM_ACME_COYOTE_PROXY (object); 1162s # GVariant *variant; 1162s # const gchar *value = NULL; 1162s # variant = g_dbus_proxy_get_cached_property (G_DBUS_PROXY (proxy), "Mood"); 1162s # if (variant != NULL) 1162s # { 1162s # value = g_variant_get_string (variant, NULL); 1162s # g_variant_unref (variant); 1162s # } 1162s # return value; 1162s # } 1162s # 1162s # static void 1162s # com_acme_coyote_proxy_init (ComAcmeCoyoteProxy *proxy) 1162s # { 1162s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1162s # proxy->priv = com_acme_coyote_proxy_get_instance_private (proxy); 1162s # #else 1162s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_COM_ACME_COYOTE_PROXY, ComAcmeCoyoteProxyPrivate); 1162s # #endif 1162s # 1162s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), com_acme_coyote_interface_info ()); 1162s # } 1162s # 1162s # static void 1162s # com_acme_coyote_proxy_class_init (ComAcmeCoyoteProxyClass *klass) 1162s # { 1162s # GObjectClass *gobject_class; 1162s # GDBusProxyClass *proxy_class; 1162s # 1162s # gobject_class = G_OBJECT_CLASS (klass); 1162s # gobject_class->finalize = com_acme_coyote_proxy_finalize; 1162s # gobject_class->get_property = com_acme_coyote_proxy_get_property; 1162s # gobject_class->set_property = com_acme_coyote_proxy_set_property; 1162s # 1162s # proxy_class = G_DBUS_PROXY_CLASS (klass); 1162s # proxy_class->g_signal = com_acme_coyote_proxy_g_signal; 1162s # proxy_class->g_properties_changed = com_acme_coyote_proxy_g_properties_changed; 1162s # 1162s # com_acme_coyote_override_properties (gobject_class, 1); 1162s # 1162s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1162s # g_type_class_add_private (klass, sizeof (ComAcmeCoyoteProxyPrivate)); 1162s # #endif 1162s # } 1162s # 1162s # static void 1162s # com_acme_coyote_proxy_iface_init (ComAcmeCoyoteIface *iface) 1162s # { 1162s # iface->get_mood = com_acme_coyote_proxy_get_mood; 1162s # } 1162s # 1162s # /** 1162s # * com_acme_coyote_proxy_new: 1162s # * @connection: A #GDBusConnection. 1162s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1162s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1162s # * @object_path: An object path. 1162s # * @cancellable: (nullable): A #GCancellable or %NULL. 1162s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1162s # * @user_data: User data to pass to @callback. 1162s # * 1162s # * Asynchronously creates a proxy for the D-Bus interface com.acme.Coyote. See g_dbus_proxy_new() for more details. 1162s # * 1162s # * 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()). 1162s # * You can then call com_acme_coyote_proxy_new_finish() to get the result of the operation. 1162s # * 1162s # * See com_acme_coyote_proxy_new_sync() for the synchronous, blocking version of this constructor. 1162s # */ 1162s # void 1162s # com_acme_coyote_proxy_new ( 1162s # GDBusConnection *connection, 1162s # GDBusProxyFlags flags, 1162s # const gchar *name, 1162s # const gchar *object_path, 1162s # GCancellable *cancellable, 1162s # GAsyncReadyCallback callback, 1162s # gpointer user_data) 1162s # { 1162s # 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); 1162s # } 1162s # 1162s # /** 1162s # * com_acme_coyote_proxy_new_finish: 1162s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to com_acme_coyote_proxy_new(). 1162s # * @error: Return location for error or %NULL 1162s # * 1162s # * Finishes an operation started with com_acme_coyote_proxy_new(). 1162s # * 1162s # * Returns: (transfer full) (type ComAcmeCoyoteProxy): The constructed proxy object or %NULL if @error is set. 1162s # */ 1162s # ComAcmeCoyote * 1162s # com_acme_coyote_proxy_new_finish ( 1162s # GAsyncResult *res, 1162s # GError **error) 1162s # { 1162s # GObject *ret; 1162s # GObject *source_object; 1162s # source_object = g_async_result_get_source_object (res); 1162s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1162s # g_object_unref (source_object); 1162s # if (ret != NULL) 1162s # return COM_ACME_COYOTE (ret); 1162s # else 1162s # return NULL; 1162s # } 1162s # 1162s # /** 1162s # * com_acme_coyote_proxy_new_sync: 1162s # * @connection: A #GDBusConnection. 1162s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1162s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1162s # * @object_path: An object path. 1162s # * @cancellable: (nullable): A #GCancellable or %NULL. 1162s # * @error: Return location for error or %NULL 1162s # * 1162s # * Synchronously creates a proxy for the D-Bus interface com.acme.Coyote. See g_dbus_proxy_new_sync() for more details. 1162s # * 1162s # * The calling thread is blocked until a reply is received. 1162s # * 1162s # * See com_acme_coyote_proxy_new() for the asynchronous version of this constructor. 1162s # * 1162s # * Returns: (transfer full) (type ComAcmeCoyoteProxy): The constructed proxy object or %NULL if @error is set. 1162s # */ 1162s # ComAcmeCoyote * 1162s # com_acme_coyote_proxy_new_sync ( 1162s # GDBusConnection *connection, 1162s # GDBusProxyFlags flags, 1162s # const gchar *name, 1162s # const gchar *object_path, 1162s # GCancellable *cancellable, 1162s # GError **error) 1162s # { 1162s # GInitable *ret; 1162s # 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); 1162s # if (ret != NULL) 1162s # return COM_ACME_COYOTE (ret); 1162s # else 1162s # return NULL; 1162s # } 1162s # 1162s # 1162s # /** 1162s # * com_acme_coyote_proxy_new_for_bus: 1162s # * @bus_type: A #GBusType. 1162s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1162s # * @name: A bus name (well-known or unique). 1162s # * @object_path: An object path. 1162s # * @cancellable: (nullable): A #GCancellable or %NULL. 1162s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1162s # * @user_data: User data to pass to @callback. 1162s # * 1162s # * Like com_acme_coyote_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 1162s # * 1162s # * 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()). 1162s # * You can then call com_acme_coyote_proxy_new_for_bus_finish() to get the result of the operation. 1162s # * 1162s # * See com_acme_coyote_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 1162s # */ 1162s # void 1162s # com_acme_coyote_proxy_new_for_bus ( 1162s # GBusType bus_type, 1162s # GDBusProxyFlags flags, 1162s # const gchar *name, 1162s # const gchar *object_path, 1162s # GCancellable *cancellable, 1162s # GAsyncReadyCallback callback, 1162s # gpointer user_data) 1162s # { 1162s # 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); 1162s # } 1162s # 1162s # /** 1162s # * com_acme_coyote_proxy_new_for_bus_finish: 1162s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to com_acme_coyote_proxy_new_for_bus(). 1162s # * @error: Return location for error or %NULL 1162s # * 1162s # * Finishes an operation started with com_acme_coyote_proxy_new_for_bus(). 1162s # * 1162s # * Returns: (transfer full) (type ComAcmeCoyoteProxy): The constructed proxy object or %NULL if @error is set. 1162s # */ 1162s # ComAcmeCoyote * 1162s # com_acme_coyote_proxy_new_for_bus_finish ( 1162s # GAsyncResult *res, 1162s # GError **error) 1162s # { 1162s # GObject *ret; 1162s # GObject *source_object; 1162s # source_object = g_async_result_get_source_object (res); 1162s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1162s # g_object_unref (source_object); 1162s # if (ret != NULL) 1162s # return COM_ACME_COYOTE (ret); 1162s # else 1162s # return NULL; 1162s # } 1162s # 1162s # /** 1162s # * com_acme_coyote_proxy_new_for_bus_sync: 1162s # * @bus_type: A #GBusType. 1162s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1162s # * @name: A bus name (well-known or unique). 1162s # * @object_path: An object path. 1162s # * @cancellable: (nullable): A #GCancellable or %NULL. 1162s # * @error: Return location for error or %NULL 1162s # * 1162s # * Like com_acme_coyote_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 1162s # * 1162s # * The calling thread is blocked until a reply is received. 1162s # * 1162s # * See com_acme_coyote_proxy_new_for_bus() for the asynchronous version of this constructor. 1162s # * 1162s # * Returns: (transfer full) (type ComAcmeCoyoteProxy): The constructed proxy object or %NULL if @error is set. 1162s # */ 1162s # ComAcmeCoyote * 1162s # com_acme_coyote_proxy_new_for_bus_sync ( 1162s # GBusType bus_type, 1162s # GDBusProxyFlags flags, 1162s # const gchar *name, 1162s # const gchar *object_path, 1162s # GCancellable *cancellable, 1162s # GError **error) 1162s # { 1162s # GInitable *ret; 1162s # 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); 1162s # if (ret != NULL) 1162s # return COM_ACME_COYOTE (ret); 1162s # else 1162s # return NULL; 1162s # } 1162s # 1162s # 1162s # /* ------------------------------------------------------------------------ */ 1162s # 1162s # /** 1162s # * ComAcmeCoyoteSkeleton: 1162s # * 1162s # * The #ComAcmeCoyoteSkeleton structure contains only private data and should only be accessed using the provided API. 1162s # */ 1162s # 1162s # /** 1162s # * ComAcmeCoyoteSkeletonClass: 1162s # * @parent_class: The parent class. 1162s # * 1162s # * Class structure for #ComAcmeCoyoteSkeleton. 1162s # */ 1162s # 1162s # struct _ComAcmeCoyoteSkeletonPrivate 1162s # { 1162s # GValue *properties; 1162s # GList *changed_properties; 1162s # GSource *changed_properties_idle_source; 1162s # GMainContext *context; 1162s # GMutex lock; 1162s # }; 1162s # 1162s # static void 1162s # _com_acme_coyote_skeleton_handle_method_call ( 1162s # GDBusConnection *connection G_GNUC_UNUSED, 1162s # const gchar *sender G_GNUC_UNUSED, 1162s # const gchar *object_path G_GNUC_UNUSED, 1162s # const gchar *interface_name, 1162s # const gchar *method_name, 1162s # GVariant *parameters, 1162s # GDBusMethodInvocation *invocation, 1162s # gpointer user_data) 1162s # { 1162s # ComAcmeCoyoteSkeleton *skeleton = COM_ACME_COYOTE_SKELETON (user_data); 1162s # _ExtendedGDBusMethodInfo *info; 1162s # GVariantIter iter; 1162s # GVariant *child; 1162s # GValue *paramv; 1162s # gsize num_params; 1162s # guint num_extra; 1162s # gsize n; 1162s # guint signal_id; 1162s # GValue return_value = G_VALUE_INIT; 1162s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 1162s # g_assert (info != NULL); 1162s # num_params = g_variant_n_children (parameters); 1162s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 1162s # n = 0; 1162s # g_value_init (¶mv[n], TYPE_COM_ACME_COYOTE); 1162s # g_value_set_object (¶mv[n++], skeleton); 1162s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 1162s # g_value_set_object (¶mv[n++], invocation); 1162s # if (info->pass_fdlist) 1162s # { 1162s # #ifdef G_OS_UNIX 1162s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 1162s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 1162s # #else 1162s # g_assert_not_reached (); 1162s # #endif 1162s # } 1162s # g_variant_iter_init (&iter, parameters); 1162s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1162s # { 1162s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 1162s # if (arg_info->use_gvariant) 1162s # { 1162s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1162s # g_value_set_variant (¶mv[n], child); 1162s # n++; 1162s # } 1162s # else 1162s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1162s # g_variant_unref (child); 1162s # } 1162s # signal_id = g_signal_lookup (info->signal_name, TYPE_COM_ACME_COYOTE); 1162s # g_value_init (&return_value, G_TYPE_BOOLEAN); 1162s # g_signal_emitv (paramv, signal_id, 0, &return_value); 1162s # if (!g_value_get_boolean (&return_value)) 1162s # 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); 1162s # g_value_unset (&return_value); 1162s # for (n = 0; n < num_params + num_extra; n++) 1162s # g_value_unset (¶mv[n]); 1162s # g_free (paramv); 1162s # } 1162s # 1162s # static GVariant * 1162s # _com_acme_coyote_skeleton_handle_get_property ( 1162s # GDBusConnection *connection G_GNUC_UNUSED, 1162s # const gchar *sender G_GNUC_UNUSED, 1162s # const gchar *object_path G_GNUC_UNUSED, 1162s # const gchar *interface_name G_GNUC_UNUSED, 1162s # const gchar *property_name, 1162s # GError **error, 1162s # gpointer user_data) 1162s # { 1162s # ComAcmeCoyoteSkeleton *skeleton = COM_ACME_COYOTE_SKELETON (user_data); 1162s # GValue value = G_VALUE_INIT; 1162s # GParamSpec *pspec; 1162s # _ExtendedGDBusPropertyInfo *info; 1162s # GVariant *ret; 1162s # ret = NULL; 1162s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_com_acme_coyote_interface_info.parent_struct, property_name); 1162s # g_assert (info != NULL); 1162s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1162s # if (pspec == NULL) 1162s # { 1162s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1162s # } 1162s # else 1162s # { 1162s # g_value_init (&value, pspec->value_type); 1162s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1162s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 1162s # g_value_unset (&value); 1162s # } 1162s # return ret; 1162s # } 1162s # 1162s # static gboolean 1162s # _com_acme_coyote_skeleton_handle_set_property ( 1162s # GDBusConnection *connection G_GNUC_UNUSED, 1162s # const gchar *sender G_GNUC_UNUSED, 1162s # const gchar *object_path G_GNUC_UNUSED, 1162s # const gchar *interface_name G_GNUC_UNUSED, 1162s # const gchar *property_name, 1162s # GVariant *variant, 1162s # GError **error, 1162s # gpointer user_data) 1162s # { 1162s # ComAcmeCoyoteSkeleton *skeleton = COM_ACME_COYOTE_SKELETON (user_data); 1162s # GValue value = G_VALUE_INIT; 1162s # GParamSpec *pspec; 1162s # _ExtendedGDBusPropertyInfo *info; 1162s # gboolean ret; 1162s # ret = FALSE; 1162s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_com_acme_coyote_interface_info.parent_struct, property_name); 1162s # g_assert (info != NULL); 1162s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1162s # if (pspec == NULL) 1162s # { 1162s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1162s # } 1162s # else 1162s # { 1162s # if (info->use_gvariant) 1162s # g_value_set_variant (&value, variant); 1162s # else 1162s # g_dbus_gvariant_to_gvalue (variant, &value); 1162s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1162s # g_value_unset (&value); 1162s # ret = TRUE; 1162s # } 1162s # return ret; 1162s # } 1162s # 1162s # static const GDBusInterfaceVTable _com_acme_coyote_skeleton_vtable = 1162s # { 1162s # _com_acme_coyote_skeleton_handle_method_call, 1162s # _com_acme_coyote_skeleton_handle_get_property, 1162s # _com_acme_coyote_skeleton_handle_set_property, 1162s # {NULL} 1162s # }; 1162s # 1162s # static GDBusInterfaceInfo * 1162s # com_acme_coyote_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1162s # { 1162s # return com_acme_coyote_interface_info (); 1162s # } 1162s # 1162s # static GDBusInterfaceVTable * 1162s # com_acme_coyote_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1162s # { 1162s # return (GDBusInterfaceVTable *) &_com_acme_coyote_skeleton_vtable; 1162s # } 1162s # 1162s # static GVariant * 1162s # com_acme_coyote_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 1162s # { 1162s # ComAcmeCoyoteSkeleton *skeleton = COM_ACME_COYOTE_SKELETON (_skeleton); 1162s # 1162s # GVariantBuilder builder; 1162s # guint n; 1162s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 1162s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 1162s # #else 1162s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 1162s # #endif 1162s # if (_com_acme_coyote_interface_info.parent_struct.properties == NULL) 1162s # goto out; 1162s # for (n = 0; _com_acme_coyote_interface_info.parent_struct.properties[n] != NULL; n++) 1162s # { 1162s # GDBusPropertyInfo *info = _com_acme_coyote_interface_info.parent_struct.properties[n]; 1162s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 1162s # { 1162s # GVariant *value; 1162s # 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); 1162s # if (value != NULL) 1162s # { 1162s # g_variant_take_ref (value); 1162s # g_variant_builder_add (&builder, "{sv}", info->name, value); 1162s # g_variant_unref (value); 1162s # } 1162s # } 1162s # } 1162s # out: 1162s # return g_variant_builder_end (&builder); 1162s # } 1162s # 1162s # static gboolean _com_acme_coyote_emit_changed (gpointer user_data); 1162s # 1162s # static void 1162s # com_acme_coyote_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton) 1162s # { 1162s # ComAcmeCoyoteSkeleton *skeleton = COM_ACME_COYOTE_SKELETON (_skeleton); 1162s # gboolean emit_changed = FALSE; 1162s # 1162s # g_mutex_lock (&skeleton->priv->lock); 1162s # if (skeleton->priv->changed_properties_idle_source != NULL) 1162s # { 1162s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 1162s # skeleton->priv->changed_properties_idle_source = NULL; 1162s # emit_changed = TRUE; 1162s # } 1162s # g_mutex_unlock (&skeleton->priv->lock); 1162s # 1162s # if (emit_changed) 1162s # _com_acme_coyote_emit_changed (skeleton); 1162s # } 1162s # 1162s # static void 1162s # _com_acme_coyote_on_signal_surprised ( 1162s # ComAcmeCoyote *object) 1162s # { 1162s # ComAcmeCoyoteSkeleton *skeleton = COM_ACME_COYOTE_SKELETON (object); 1162s # 1162s # GList *connections, *l; 1162s # GVariant *signal_variant; 1162s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 1162s # 1162s # signal_variant = g_variant_ref_sink (g_variant_new ("()")); 1162s # for (l = connections; l != NULL; l = l->next) 1162s # { 1162s # GDBusConnection *connection = l->data; 1162s # g_dbus_connection_emit_signal (connection, 1162s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "com.acme.Coyote", "Surprised", 1162s # signal_variant, NULL); 1162s # } 1162s # g_variant_unref (signal_variant); 1162s # g_list_free_full (connections, g_object_unref); 1162s # } 1162s # 1162s # static void com_acme_coyote_skeleton_iface_init (ComAcmeCoyoteIface *iface); 1162s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1162s # G_DEFINE_TYPE_WITH_CODE (ComAcmeCoyoteSkeleton, com_acme_coyote_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1162s # G_ADD_PRIVATE (ComAcmeCoyoteSkeleton) 1162s # G_IMPLEMENT_INTERFACE (TYPE_COM_ACME_COYOTE, com_acme_coyote_skeleton_iface_init)) 1162s # 1162s # #else 1162s # G_DEFINE_TYPE_WITH_CODE (ComAcmeCoyoteSkeleton, com_acme_coyote_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1162s # G_IMPLEMENT_INTERFACE (TYPE_COM_ACME_COYOTE, com_acme_coyote_skeleton_iface_init)) 1162s # 1162s # #endif 1162s # static void 1162s # com_acme_coyote_skeleton_finalize (GObject *object) 1162s # { 1162s # ComAcmeCoyoteSkeleton *skeleton = COM_ACME_COYOTE_SKELETON (object); 1162s # guint n; 1162s # for (n = 0; n < 1; n++) 1162s # g_value_unset (&skeleton->priv->properties[n]); 1162s # g_free (skeleton->priv->properties); 1162s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 1162s # if (skeleton->priv->changed_properties_idle_source != NULL) 1162s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 1162s # g_main_context_unref (skeleton->priv->context); 1162s # g_mutex_clear (&skeleton->priv->lock); 1162s # G_OBJECT_CLASS (com_acme_coyote_skeleton_parent_class)->finalize (object); 1162s # } 1162s # 1162s # static void 1162s # com_acme_coyote_skeleton_get_property (GObject *object, 1162s # guint prop_id, 1162s # GValue *value, 1162s # GParamSpec *pspec G_GNUC_UNUSED) 1162s # { 1162s # ComAcmeCoyoteSkeleton *skeleton = COM_ACME_COYOTE_SKELETON (object); 1162s # g_assert (prop_id != 0 && prop_id - 1 < 1); 1162s # g_mutex_lock (&skeleton->priv->lock); 1162s # g_value_copy (&skeleton->priv->properties[prop_id - 1], value); 1162s # g_mutex_unlock (&skeleton->priv->lock); 1162s # } 1162s # 1162s # static gboolean 1162s # _com_acme_coyote_emit_changed (gpointer user_data) 1162s # { 1162s # ComAcmeCoyoteSkeleton *skeleton = COM_ACME_COYOTE_SKELETON (user_data); 1162s # GList *l; 1162s # GVariantBuilder builder; 1162s # GVariantBuilder invalidated_builder; 1162s # guint num_changes; 1162s # 1162s # g_mutex_lock (&skeleton->priv->lock); 1162s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 1162s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 1162s # g_variant_builder_init_static (&invalidated_builder, G_VARIANT_TYPE ("as")); 1162s # #else 1162s # g_variant_builder_init (&builder, G_VARIANT_TYPE ("a{sv}")); 1162s # g_variant_builder_init (&invalidated_builder, G_VARIANT_TYPE ("as")); 1162s # #endif 1162s # for (l = skeleton->priv->changed_properties, num_changes = 0; l != NULL; l = l->next) 1162s # { 1162s # ChangedProperty *cp = l->data; 1162s # GVariant *variant; 1162s # const GValue *cur_value; 1162s # 1162s # cur_value = &skeleton->priv->properties[cp->prop_id - 1]; 1162s # if (!_g_value_equal (cur_value, &cp->orig_value)) 1162s # { 1162s # variant = g_dbus_gvalue_to_gvariant (cur_value, G_VARIANT_TYPE (cp->info->parent_struct.signature)); 1162s # g_variant_builder_add (&builder, "{sv}", cp->info->parent_struct.name, variant); 1162s # g_variant_unref (variant); 1162s # num_changes++; 1162s # } 1162s # } 1162s # if (num_changes > 0) 1162s # { 1162s # GList *connections, *ll; 1162s # GVariant *signal_variant; 1162s # signal_variant = g_variant_ref_sink (g_variant_new ("(sa{sv}as)", "com.acme.Coyote", 1162s # &builder, &invalidated_builder)); 1162s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 1162s # for (ll = connections; ll != NULL; ll = ll->next) 1162s # { 1162s # GDBusConnection *connection = ll->data; 1162s # 1162s # g_dbus_connection_emit_signal (connection, 1162s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), 1162s # "org.freedesktop.DBus.Properties", 1162s # "PropertiesChanged", 1162s # signal_variant, 1162s # NULL); 1162s # } 1162s # g_variant_unref (signal_variant); 1162s # g_list_free_full (connections, g_object_unref); 1162s # } 1162s # else 1162s # { 1162s # g_variant_builder_clear (&builder); 1162s # g_variant_builder_clear (&invalidated_builder); 1162s # } 1162s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 1162s # skeleton->priv->changed_properties = NULL; 1162s # skeleton->priv->changed_properties_idle_source = NULL; 1162s # g_mutex_unlock (&skeleton->priv->lock); 1162s # return FALSE; 1162s # } 1162s # 1162s # static void 1162s # _com_acme_coyote_schedule_emit_changed (ComAcmeCoyoteSkeleton *skeleton, const _ExtendedGDBusPropertyInfo *info, guint prop_id, const GValue *orig_value) 1162s # { 1162s # ChangedProperty *cp; 1162s # GList *l; 1162s # cp = NULL; 1162s # for (l = skeleton->priv->changed_properties; l != NULL; l = l->next) 1162s # { 1162s # ChangedProperty *i_cp = l->data; 1162s # if (i_cp->info == info) 1162s # { 1162s # cp = i_cp; 1162s # break; 1162s # } 1162s # } 1162s # if (cp == NULL) 1162s # { 1162s # cp = g_new0 (ChangedProperty, 1); 1162s # cp->prop_id = prop_id; 1162s # cp->info = info; 1162s # skeleton->priv->changed_properties = g_list_prepend (skeleton->priv->changed_properties, cp); 1162s # g_value_init (&cp->orig_value, G_VALUE_TYPE (orig_value)); 1162s # g_value_copy (orig_value, &cp->orig_value); 1162s # } 1162s # } 1162s # 1162s # static void 1162s # com_acme_coyote_skeleton_notify (GObject *object, 1162s # GParamSpec *pspec G_GNUC_UNUSED) 1162s # { 1162s # ComAcmeCoyoteSkeleton *skeleton = COM_ACME_COYOTE_SKELETON (object); 1162s # g_mutex_lock (&skeleton->priv->lock); 1162s # if (skeleton->priv->changed_properties != NULL && 1162s # skeleton->priv->changed_properties_idle_source == NULL) 1162s # { 1162s # skeleton->priv->changed_properties_idle_source = g_idle_source_new (); 1162s # g_source_set_priority (skeleton->priv->changed_properties_idle_source, G_PRIORITY_DEFAULT); 1162s # g_source_set_callback (skeleton->priv->changed_properties_idle_source, _com_acme_coyote_emit_changed, g_object_ref (skeleton), (GDestroyNotify) g_object_unref); 1162s # g_source_set_name (skeleton->priv->changed_properties_idle_source, "[generated] _com_acme_coyote_emit_changed"); 1162s # g_source_attach (skeleton->priv->changed_properties_idle_source, skeleton->priv->context); 1162s # g_source_unref (skeleton->priv->changed_properties_idle_source); 1162s # } 1162s # g_mutex_unlock (&skeleton->priv->lock); 1162s # } 1162s # 1162s # static void 1162s # com_acme_coyote_skeleton_set_property (GObject *object, 1162s # guint prop_id, 1162s # const GValue *value, 1162s # GParamSpec *pspec) 1162s # { 1162s # const _ExtendedGDBusPropertyInfo *info; 1162s # ComAcmeCoyoteSkeleton *skeleton = COM_ACME_COYOTE_SKELETON (object); 1162s # g_assert (prop_id != 0 && prop_id - 1 < 1); 1162s # info = (const _ExtendedGDBusPropertyInfo *) _com_acme_coyote_property_info_pointers[prop_id - 1]; 1162s # g_mutex_lock (&skeleton->priv->lock); 1162s # g_object_freeze_notify (object); 1162s # if (!_g_value_equal (value, &skeleton->priv->properties[prop_id - 1])) 1162s # { 1162s # if (g_dbus_interface_skeleton_get_connection (G_DBUS_INTERFACE_SKELETON (skeleton)) != NULL && 1162s # info->emits_changed_signal) 1162s # _com_acme_coyote_schedule_emit_changed (skeleton, info, prop_id, &skeleton->priv->properties[prop_id - 1]); 1162s # g_value_copy (value, &skeleton->priv->properties[prop_id - 1]); 1162s # g_object_notify_by_pspec (object, pspec); 1162s # } 1162s # g_mutex_unlock (&skeleton->priv->lock); 1162s # g_object_thaw_notify (object); 1162s # } 1162s # 1162s # static void 1162s # com_acme_coyote_skeleton_init (ComAcmeCoyoteSkeleton *skeleton) 1162s # { 1162s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1162s # skeleton->priv = com_acme_coyote_skeleton_get_instance_private (skeleton); 1162s # #else 1162s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_COM_ACME_COYOTE_SKELETON, ComAcmeCoyoteSkeletonPrivate); 1162s # #endif 1162s # 1162s # g_mutex_init (&skeleton->priv->lock); 1162s # skeleton->priv->context = g_main_context_ref_thread_default (); 1162s # skeleton->priv->properties = g_new0 (GValue, 1); 1162s # g_value_init (&skeleton->priv->properties[0], G_TYPE_STRING); 1162s # } 1162s # 1162s # static const gchar * 1162s # com_acme_coyote_skeleton_get_mood (ComAcmeCoyote *object) 1162s # { 1162s # ComAcmeCoyoteSkeleton *skeleton = COM_ACME_COYOTE_SKELETON (object); 1162s # const gchar *value; 1162s # g_mutex_lock (&skeleton->priv->lock); 1162s # value = g_marshal_value_peek_string (&(skeleton->priv->properties[0])); 1162s # g_mutex_unlock (&skeleton->priv->lock); 1162s # return value; 1162s # } 1162s # 1162s # static void 1162s # com_acme_coyote_skeleton_class_init (ComAcmeCoyoteSkeletonClass *klass) 1162s # { 1162s # GObjectClass *gobject_class; 1162s # GDBusInterfaceSkeletonClass *skeleton_class; 1162s # 1162s # gobject_class = G_OBJECT_CLASS (klass); 1162s # gobject_class->finalize = com_acme_coyote_skeleton_finalize; 1162s # gobject_class->get_property = com_acme_coyote_skeleton_get_property; 1162s # gobject_class->set_property = com_acme_coyote_skeleton_set_property; 1162s # gobject_class->notify = com_acme_coyote_skeleton_notify; 1162s # 1162s # 1162s # com_acme_coyote_override_properties (gobject_class, 1); 1162s # 1162s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 1162s # skeleton_class->get_info = com_acme_coyote_skeleton_dbus_interface_get_info; 1162s # skeleton_class->get_properties = com_acme_coyote_skeleton_dbus_interface_get_properties; 1162s # skeleton_class->flush = com_acme_coyote_skeleton_dbus_interface_flush; 1162s # skeleton_class->get_vtable = com_acme_coyote_skeleton_dbus_interface_get_vtable; 1162s # 1162s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1162s # g_type_class_add_private (klass, sizeof (ComAcmeCoyoteSkeletonPrivate)); 1162s # #endif 1162s # } 1162s # 1162s # static void 1162s # com_acme_coyote_skeleton_iface_init (ComAcmeCoyoteIface *iface) 1162s # { 1162s # iface->surprised = _com_acme_coyote_on_signal_surprised; 1162s # iface->get_mood = com_acme_coyote_skeleton_get_mood; 1162s # } 1162s # 1162s # /** 1162s # * com_acme_coyote_skeleton_new: 1162s # * 1162s # * Creates a skeleton object for the D-Bus interface com.acme.Coyote. 1162s # * 1162s # * Returns: (transfer full) (type ComAcmeCoyoteSkeleton): The skeleton object. 1162s # */ 1162s # ComAcmeCoyote * 1162s # com_acme_coyote_skeleton_new (void) 1162s # { 1162s # return COM_ACME_COYOTE (g_object_new (TYPE_COM_ACME_COYOTE_SKELETON, NULL)); 1162s # } 1162s # 1162s # /* ------------------------------------------------------------------------ 1162s # * Code for interface org.project.Bar.Frobnicator 1162s # * ------------------------------------------------------------------------ 1162s # */ 1162s # 1162s # /** 1162s # * SECTION:OrgProjectBarFrobnicator 1162s # * @title: OrgProjectBarFrobnicator 1162s # * @short_description: Generated C code for the org.project.Bar.Frobnicator D-Bus interface 1162s # * 1162s # * This section contains code for working with the org.project.Bar.Frobnicator D-Bus interface in C. 1162s # */ 1162s # 1162s # /* ---- Introspection data for org.project.Bar.Frobnicator ---- */ 1162s # 1162s # static const _ExtendedGDBusMethodInfo _org_project_bar_frobnicator_method_info_random_method = 1162s # { 1162s # { 1162s # -1, 1162s # (gchar *) "RandomMethod", 1162s # NULL, 1162s # NULL, 1162s # NULL 1162s # }, 1162s # "handle-random-method", 1162s # FALSE 1162s # }; 1162s # 1162s # static const GDBusMethodInfo * const _org_project_bar_frobnicator_method_info_pointers[] = 1162s # { 1162s # &_org_project_bar_frobnicator_method_info_random_method.parent_struct, 1162s # NULL 1162s # }; 1162s # 1162s # static const _ExtendedGDBusInterfaceInfo _org_project_bar_frobnicator_interface_info = 1162s # { 1162s # { 1162s # -1, 1162s # (gchar *) "org.project.Bar.Frobnicator", 1162s # (GDBusMethodInfo **) &_org_project_bar_frobnicator_method_info_pointers, 1162s # NULL, 1162s # NULL, 1162s # NULL 1162s # }, 1162s # "org-project-bar-frobnicator", 1162s # }; 1162s # 1162s # 1162s # /** 1162s # * org_project_bar_frobnicator_interface_info: 1162s # * 1162s # * Gets a machine-readable description of the org.project.Bar.Frobnicator D-Bus interface. 1162s # * 1162s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 1162s # */ 1162s # GDBusInterfaceInfo * 1162s # org_project_bar_frobnicator_interface_info (void) 1162s # { 1162s # return (GDBusInterfaceInfo *) &_org_project_bar_frobnicator_interface_info.parent_struct; 1162s # } 1162s # 1162s # /** 1162s # * org_project_bar_frobnicator_override_properties: 1162s # * @klass: The class structure for a #GObject derived class. 1162s # * @property_id_begin: The property id to assign to the first overridden property. 1162s # * 1162s # * Overrides all #GObject properties in the #OrgProjectBarFrobnicator interface for a concrete class. 1162s # * The properties are overridden in the order they are defined. 1162s # * 1162s # * Returns: The last property id. 1162s # */ 1162s # guint 1162s # org_project_bar_frobnicator_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 1162s # { 1162s # return property_id_begin - 1; 1162s # } 1162s # 1162s # 1162s # inline static void 1162s # org_project_bar_frobnicator_method_marshal_random_method ( 1162s # GClosure *closure, 1162s # GValue *return_value, 1162s # unsigned int n_param_values, 1162s # const GValue *param_values, 1162s # void *invocation_hint, 1162s # void *marshal_data) 1162s # { 1162s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT (closure, 1162s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1162s # } 1162s # 1162s # 1162s # /** 1162s # * OrgProjectBarFrobnicator: 1162s # * 1162s # * Abstract interface type for the D-Bus interface org.project.Bar.Frobnicator. 1162s # */ 1162s # 1162s # /** 1162s # * OrgProjectBarFrobnicatorIface: 1162s # * @parent_iface: The parent interface. 1162s # * @handle_random_method: Handler for the #OrgProjectBarFrobnicator::handle-random-method signal. 1162s # * 1162s # * Virtual table for the D-Bus interface org.project.Bar.Frobnicator. 1162s # */ 1162s # 1162s # typedef OrgProjectBarFrobnicatorIface OrgProjectBarFrobnicatorInterface; 1162s # G_DEFINE_INTERFACE (OrgProjectBarFrobnicator, org_project_bar_frobnicator, G_TYPE_OBJECT) 1162s # 1162s # static void 1162s # org_project_bar_frobnicator_default_init (OrgProjectBarFrobnicatorIface *iface) 1162s # { 1162s # /* GObject signals for incoming D-Bus method calls: */ 1162s # /** 1162s # * OrgProjectBarFrobnicator::handle-random-method: 1162s # * @object: A #OrgProjectBarFrobnicator. 1162s # * @invocation: A #GDBusMethodInvocation. 1162s # * 1162s # * Signal emitted when a remote caller is invoking the RandomMethod() D-Bus method. 1162s # * 1162s # * 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. 1162s # * 1162s # * 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. 1162s # */ 1162s # g_signal_new ("handle-random-method", 1162s # G_TYPE_FROM_INTERFACE (iface), 1162s # G_SIGNAL_RUN_LAST, 1162s # G_STRUCT_OFFSET (OrgProjectBarFrobnicatorIface, handle_random_method), 1162s # g_signal_accumulator_true_handled, 1162s # NULL, 1162s # org_project_bar_frobnicator_method_marshal_random_method, 1162s # G_TYPE_BOOLEAN, 1162s # 1, 1162s # G_TYPE_DBUS_METHOD_INVOCATION); 1162s # 1162s # } 1162s # 1162s # /** 1162s # * org_project_bar_frobnicator_call_random_method: 1162s # * @proxy: A #OrgProjectBarFrobnicatorProxy. 1162s # * @cancellable: (nullable): A #GCancellable or %NULL. 1162s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL. 1162s # * @user_data: User data to pass to @callback. 1162s # * 1162s # * Asynchronously invokes the RandomMethod() D-Bus method on @proxy. 1162s # * 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()). 1162s # * You can then call org_project_bar_frobnicator_call_random_method_finish() to get the result of the operation. 1162s # * 1162s # * See org_project_bar_frobnicator_call_random_method_sync() for the synchronous, blocking version of this method. 1162s # */ 1162s # void 1162s # org_project_bar_frobnicator_call_random_method ( 1162s # OrgProjectBarFrobnicator *proxy, 1162s # GCancellable *cancellable, 1162s # GAsyncReadyCallback callback, 1162s # gpointer user_data) 1162s # { 1162s # g_dbus_proxy_call (G_DBUS_PROXY (proxy), 1162s # "RandomMethod", 1162s # g_variant_new ("()"), 1162s # G_DBUS_CALL_FLAGS_NONE, 1162s # -1, 1162s # cancellable, 1162s # callback, 1162s # user_data); 1162s # } 1162s # 1162s # /** 1162s # * org_project_bar_frobnicator_call_random_method_finish: 1162s # * @proxy: A #OrgProjectBarFrobnicatorProxy. 1162s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_bar_frobnicator_call_random_method(). 1162s # * @error: Return location for error or %NULL. 1162s # * 1162s # * Finishes an operation started with org_project_bar_frobnicator_call_random_method(). 1162s # * 1162s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1162s # */ 1162s # gboolean 1162s # org_project_bar_frobnicator_call_random_method_finish ( 1162s # OrgProjectBarFrobnicator *proxy, 1162s # GAsyncResult *res, 1162s # GError **error) 1162s # { 1162s # GVariant *_ret; 1162s # _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error); 1162s # if (_ret == NULL) 1162s # goto _out; 1162s # g_variant_get (_ret, 1162s # "()"); 1162s # g_variant_unref (_ret); 1162s # _out: 1162s # return _ret != NULL; 1162s # } 1162s # 1162s # /** 1162s # * org_project_bar_frobnicator_call_random_method_sync: 1162s # * @proxy: A #OrgProjectBarFrobnicatorProxy. 1162s # * @cancellable: (nullable): A #GCancellable or %NULL. 1162s # * @error: Return location for error or %NULL. 1162s # * 1162s # * Synchronously invokes the RandomMethod() D-Bus method on @proxy. The calling thread is blocked until a reply is received. 1162s # * 1162s # * See org_project_bar_frobnicator_call_random_method() for the asynchronous version of this method. 1162s # * 1162s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1162s # */ 1162s # gboolean 1162s # org_project_bar_frobnicator_call_random_method_sync ( 1162s # OrgProjectBarFrobnicator *proxy, 1162s # GCancellable *cancellable, 1162s # GError **error) 1162s # { 1162s # GVariant *_ret; 1162s # _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy), 1162s # "RandomMethod", 1162s # g_variant_new ("()"), 1162s # G_DBUS_CALL_FLAGS_NONE, 1162s # -1, 1162s # cancellable, 1162s # error); 1162s # if (_ret == NULL) 1162s # goto _out; 1162s # g_variant_get (_ret, 1162s # "()"); 1162s # g_variant_unref (_ret); 1162s # _out: 1162s # return _ret != NULL; 1162s # } 1162s # 1162s # /** 1162s # * org_project_bar_frobnicator_complete_random_method: 1162s # * @object: A #OrgProjectBarFrobnicator. 1162s # * @invocation: (transfer full): A #GDBusMethodInvocation. 1162s # * 1162s # * 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. 1162s # * 1162s # * This method will free @invocation, you cannot use it afterwards. 1162s # */ 1162s # void 1162s # org_project_bar_frobnicator_complete_random_method ( 1162s # OrgProjectBarFrobnicator *object G_GNUC_UNUSED, 1162s # GDBusMethodInvocation *invocation) 1162s # { 1162s # g_dbus_method_invocation_return_value (invocation, 1162s # g_variant_new ("()")); 1162s # } 1162s # 1162s # /* ------------------------------------------------------------------------ */ 1162s # 1162s # /** 1162s # * OrgProjectBarFrobnicatorProxy: 1162s # * 1162s # * The #OrgProjectBarFrobnicatorProxy structure contains only private data and should only be accessed using the provided API. 1162s # */ 1162s # 1162s # /** 1162s # * OrgProjectBarFrobnicatorProxyClass: 1162s # * @parent_class: The parent class. 1162s # * 1162s # * Class structure for #OrgProjectBarFrobnicatorProxy. 1162s # */ 1162s # 1162s # struct _OrgProjectBarFrobnicatorProxyPrivate 1162s # { 1162s # GData *qdata; 1162s # }; 1162s # 1162s # static void org_project_bar_frobnicator_proxy_iface_init (OrgProjectBarFrobnicatorIface *iface); 1162s # 1162s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1162s # G_DEFINE_TYPE_WITH_CODE (OrgProjectBarFrobnicatorProxy, org_project_bar_frobnicator_proxy, G_TYPE_DBUS_PROXY, 1162s # G_ADD_PRIVATE (OrgProjectBarFrobnicatorProxy) 1162s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_BAR_FROBNICATOR, org_project_bar_frobnicator_proxy_iface_init)) 1162s # 1162s # #else 1162s # G_DEFINE_TYPE_WITH_CODE (OrgProjectBarFrobnicatorProxy, org_project_bar_frobnicator_proxy, G_TYPE_DBUS_PROXY, 1162s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_BAR_FROBNICATOR, org_project_bar_frobnicator_proxy_iface_init)) 1162s # 1162s # #endif 1162s # static void 1162s # org_project_bar_frobnicator_proxy_finalize (GObject *object) 1162s # { 1162s # OrgProjectBarFrobnicatorProxy *proxy = ORG_PROJECT_BAR_FROBNICATOR_PROXY (object); 1162s # g_datalist_clear (&proxy->priv->qdata); 1162s # G_OBJECT_CLASS (org_project_bar_frobnicator_proxy_parent_class)->finalize (object); 1162s # } 1162s # 1162s # static void 1162s # org_project_bar_frobnicator_proxy_get_property (GObject *object G_GNUC_UNUSED, 1162s # guint prop_id G_GNUC_UNUSED, 1162s # GValue *value G_GNUC_UNUSED, 1162s # GParamSpec *pspec G_GNUC_UNUSED) 1162s # { 1162s # } 1162s # 1162s # static void 1162s # org_project_bar_frobnicator_proxy_set_property (GObject *object G_GNUC_UNUSED, 1162s # guint prop_id G_GNUC_UNUSED, 1162s # const GValue *value G_GNUC_UNUSED, 1162s # GParamSpec *pspec G_GNUC_UNUSED) 1162s # { 1162s # } 1162s # 1162s # static void 1162s # org_project_bar_frobnicator_proxy_g_signal (GDBusProxy *proxy, 1162s # const gchar *sender_name G_GNUC_UNUSED, 1162s # const gchar *signal_name, 1162s # GVariant *parameters) 1162s # { 1162s # _ExtendedGDBusSignalInfo *info; 1162s # GVariantIter iter; 1162s # GVariant *child; 1162s # GValue *paramv; 1162s # gsize num_params; 1162s # gsize n; 1162s # guint signal_id; 1162s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_bar_frobnicator_interface_info.parent_struct, signal_name); 1162s # if (info == NULL) 1162s # return; 1162s # num_params = g_variant_n_children (parameters); 1162s # paramv = g_new0 (GValue, num_params + 1); 1162s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_BAR_FROBNICATOR); 1162s # g_value_set_object (¶mv[0], proxy); 1162s # g_variant_iter_init (&iter, parameters); 1162s # n = 1; 1162s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1162s # { 1162s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 1162s # if (arg_info->use_gvariant) 1162s # { 1162s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1162s # g_value_set_variant (¶mv[n], child); 1162s # n++; 1162s # } 1162s # else 1162s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1162s # g_variant_unref (child); 1162s # } 1162s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_BAR_FROBNICATOR); 1162s # g_signal_emitv (paramv, signal_id, 0, NULL); 1162s # for (n = 0; n < num_params + 1; n++) 1162s # g_value_unset (¶mv[n]); 1162s # g_free (paramv); 1162s # } 1162s # 1162s # static void 1162s # org_project_bar_frobnicator_proxy_g_properties_changed (GDBusProxy *_proxy, 1162s # GVariant *changed_properties, 1162s # const gchar *const *invalidated_properties) 1162s # { 1162s # OrgProjectBarFrobnicatorProxy *proxy = ORG_PROJECT_BAR_FROBNICATOR_PROXY (_proxy); 1162s # guint n; 1162s # const gchar *key; 1162s # GVariantIter *iter; 1162s # _ExtendedGDBusPropertyInfo *info; 1162s # g_variant_get (changed_properties, "a{sv}", &iter); 1162s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 1162s # { 1162s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_bar_frobnicator_interface_info.parent_struct, key); 1162s # g_datalist_remove_data (&proxy->priv->qdata, key); 1162s # if (info != NULL) 1162s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1162s # } 1162s # g_variant_iter_free (iter); 1162s # for (n = 0; invalidated_properties[n] != NULL; n++) 1162s # { 1162s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_bar_frobnicator_interface_info.parent_struct, invalidated_properties[n]); 1162s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 1162s # if (info != NULL) 1162s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1162s # } 1162s # } 1162s # 1162s # static void 1162s # org_project_bar_frobnicator_proxy_init (OrgProjectBarFrobnicatorProxy *proxy) 1162s # { 1162s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1162s # proxy->priv = org_project_bar_frobnicator_proxy_get_instance_private (proxy); 1162s # #else 1162s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_BAR_FROBNICATOR_PROXY, OrgProjectBarFrobnicatorProxyPrivate); 1162s # #endif 1162s # 1162s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_bar_frobnicator_interface_info ()); 1162s # } 1162s # 1162s # static void 1162s # org_project_bar_frobnicator_proxy_class_init (OrgProjectBarFrobnicatorProxyClass *klass) 1162s # { 1162s # GObjectClass *gobject_class; 1162s # GDBusProxyClass *proxy_class; 1162s # 1162s # gobject_class = G_OBJECT_CLASS (klass); 1162s # gobject_class->finalize = org_project_bar_frobnicator_proxy_finalize; 1162s # gobject_class->get_property = org_project_bar_frobnicator_proxy_get_property; 1162s # gobject_class->set_property = org_project_bar_frobnicator_proxy_set_property; 1162s # 1162s # proxy_class = G_DBUS_PROXY_CLASS (klass); 1162s # proxy_class->g_signal = org_project_bar_frobnicator_proxy_g_signal; 1162s # proxy_class->g_properties_changed = org_project_bar_frobnicator_proxy_g_properties_changed; 1162s # 1162s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1162s # g_type_class_add_private (klass, sizeof (OrgProjectBarFrobnicatorProxyPrivate)); 1162s # #endif 1162s # } 1162s # 1162s # static void 1162s # org_project_bar_frobnicator_proxy_iface_init (OrgProjectBarFrobnicatorIface *iface G_GNUC_UNUSED) 1162s # { 1162s # } 1162s # 1162s # /** 1162s # * org_project_bar_frobnicator_proxy_new: 1162s # * @connection: A #GDBusConnection. 1162s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1162s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1162s # * @object_path: An object path. 1162s # * @cancellable: (nullable): A #GCancellable or %NULL. 1162s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1162s # * @user_data: User data to pass to @callback. 1162s # * 1162s # * Asynchronously creates a proxy for the D-Bus interface org.project.Bar.Frobnicator. See g_dbus_proxy_new() for more details. 1162s # * 1162s # * 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()). 1162s # * You can then call org_project_bar_frobnicator_proxy_new_finish() to get the result of the operation. 1162s # * 1162s # * See org_project_bar_frobnicator_proxy_new_sync() for the synchronous, blocking version of this constructor. 1162s # */ 1162s # void 1162s # org_project_bar_frobnicator_proxy_new ( 1162s # GDBusConnection *connection, 1162s # GDBusProxyFlags flags, 1162s # const gchar *name, 1162s # const gchar *object_path, 1162s # GCancellable *cancellable, 1162s # GAsyncReadyCallback callback, 1162s # gpointer user_data) 1162s # { 1162s # 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); 1162s # } 1162s # 1162s # /** 1162s # * org_project_bar_frobnicator_proxy_new_finish: 1162s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_bar_frobnicator_proxy_new(). 1162s # * @error: Return location for error or %NULL 1162s # * 1162s # * Finishes an operation started with org_project_bar_frobnicator_proxy_new(). 1162s # * 1162s # * Returns: (transfer full) (type OrgProjectBarFrobnicatorProxy): The constructed proxy object or %NULL if @error is set. 1162s # */ 1162s # OrgProjectBarFrobnicator * 1162s # org_project_bar_frobnicator_proxy_new_finish ( 1162s # GAsyncResult *res, 1162s # GError **error) 1162s # { 1162s # GObject *ret; 1162s # GObject *source_object; 1162s # source_object = g_async_result_get_source_object (res); 1162s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1162s # g_object_unref (source_object); 1162s # if (ret != NULL) 1162s # return ORG_PROJECT_BAR_FROBNICATOR (ret); 1162s # else 1162s # return NULL; 1162s # } 1162s # 1162s # /** 1162s # * org_project_bar_frobnicator_proxy_new_sync: 1162s # * @connection: A #GDBusConnection. 1162s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1162s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1162s # * @object_path: An object path. 1162s # * @cancellable: (nullable): A #GCancellable or %NULL. 1162s # * @error: Return location for error or %NULL 1162s # * 1162s # * Synchronously creates a proxy for the D-Bus interface org.project.Bar.Frobnicator. See g_dbus_proxy_new_sync() for more details. 1162s # * 1162s # * The calling thread is blocked until a reply is received. 1162s # * 1162s # * See org_project_bar_frobnicator_proxy_new() for the asynchronous version of this constructor. 1162s # * 1162s # * Returns: (transfer full) (type OrgProjectBarFrobnicatorProxy): The constructed proxy object or %NULL if @error is set. 1162s # */ 1162s # OrgProjectBarFrobnicator * 1162s # org_project_bar_frobnicator_proxy_new_sync ( 1162s # GDBusConnection *connection, 1162s # GDBusProxyFlags flags, 1162s # const gchar *name, 1162s # const gchar *object_path, 1162s # GCancellable *cancellable, 1162s # GError **error) 1162s # { 1162s # GInitable *ret; 1162s # 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); 1162s # if (ret != NULL) 1162s # return ORG_PROJECT_BAR_FROBNICATOR (ret); 1162s # else 1162s # return NULL; 1162s # } 1162s # 1162s # 1162s # /** 1162s # * org_project_bar_frobnicator_proxy_new_for_bus: 1162s # * @bus_type: A #GBusType. 1162s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1162s # * @name: A bus name (well-known or unique). 1162s # * @object_path: An object path. 1162s # * @cancellable: (nullable): A #GCancellable or %NULL. 1162s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1162s # * @user_data: User data to pass to @callback. 1162s # * 1162s # * Like org_project_bar_frobnicator_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 1162s # * 1162s # * 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()). 1162s # * You can then call org_project_bar_frobnicator_proxy_new_for_bus_finish() to get the result of the operation. 1162s # * 1162s # * See org_project_bar_frobnicator_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 1162s # */ 1162s # void 1162s # org_project_bar_frobnicator_proxy_new_for_bus ( 1162s # GBusType bus_type, 1162s # GDBusProxyFlags flags, 1162s # const gchar *name, 1162s # const gchar *object_path, 1162s # GCancellable *cancellable, 1162s # GAsyncReadyCallback callback, 1162s # gpointer user_data) 1162s # { 1162s # 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); 1162s # } 1162s # 1162s # /** 1162s # * org_project_bar_frobnicator_proxy_new_for_bus_finish: 1162s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_bar_frobnicator_proxy_new_for_bus(). 1162s # * @error: Return location for error or %NULL 1162s # * 1162s # * Finishes an operation started with org_project_bar_frobnicator_proxy_new_for_bus(). 1162s # * 1162s # * Returns: (transfer full) (type OrgProjectBarFrobnicatorProxy): The constructed proxy object or %NULL if @error is set. 1162s # */ 1162s # OrgProjectBarFrobnicator * 1162s # org_project_bar_frobnicator_proxy_new_for_bus_finish ( 1162s # GAsyncResult *res, 1162s # GError **error) 1162s # { 1162s # GObject *ret; 1162s # GObject *source_object; 1162s # source_object = g_async_result_get_source_object (res); 1162s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1162s # g_object_unref (source_object); 1162s # if (ret != NULL) 1162s # return ORG_PROJECT_BAR_FROBNICATOR (ret); 1162s # else 1162s # return NULL; 1162s # } 1162s # 1162s # /** 1162s # * org_project_bar_frobnicator_proxy_new_for_bus_sync: 1162s # * @bus_type: A #GBusType. 1162s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1162s # * @name: A bus name (well-known or unique). 1162s # * @object_path: An object path. 1162s # * @cancellable: (nullable): A #GCancellable or %NULL. 1162s # * @error: Return location for error or %NULL 1162s # * 1162s # * Like org_project_bar_frobnicator_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 1162s # * 1162s # * The calling thread is blocked until a reply is received. 1162s # * 1162s # * See org_project_bar_frobnicator_proxy_new_for_bus() for the asynchronous version of this constructor. 1162s # * 1162s # * Returns: (transfer full) (type OrgProjectBarFrobnicatorProxy): The constructed proxy object or %NULL if @error is set. 1162s # */ 1162s # OrgProjectBarFrobnicator * 1162s # org_project_bar_frobnicator_proxy_new_for_bus_sync ( 1162s # GBusType bus_type, 1162s # GDBusProxyFlags flags, 1162s # const gchar *name, 1162s # const gchar *object_path, 1162s # GCancellable *cancellable, 1162s # GError **error) 1162s # { 1162s # GInitable *ret; 1162s # 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); 1162s # if (ret != NULL) 1162s # return ORG_PROJECT_BAR_FROBNICATOR (ret); 1162s # else 1162s # return NULL; 1162s # } 1162s # 1162s # 1162s # /* ------------------------------------------------------------------------ */ 1162s # 1162s # /** 1162s # * OrgProjectBarFrobnicatorSkeleton: 1162s # * 1162s # * The #OrgProjectBarFrobnicatorSkeleton structure contains only private data and should only be accessed using the provided API. 1162s # */ 1162s # 1162s # /** 1162s # * OrgProjectBarFrobnicatorSkeletonClass: 1162s # * @parent_class: The parent class. 1162s # * 1162s # * Class structure for #OrgProjectBarFrobnicatorSkeleton. 1162s # */ 1162s # 1162s # struct _OrgProjectBarFrobnicatorSkeletonPrivate 1162s # { 1162s # GValue *properties; 1162s # GList *changed_properties; 1162s # GSource *changed_properties_idle_source; 1162s # GMainContext *context; 1162s # GMutex lock; 1162s # }; 1162s # 1162s # static void 1162s # _org_project_bar_frobnicator_skeleton_handle_method_call ( 1162s # GDBusConnection *connection G_GNUC_UNUSED, 1162s # const gchar *sender G_GNUC_UNUSED, 1162s # const gchar *object_path G_GNUC_UNUSED, 1162s # const gchar *interface_name, 1162s # const gchar *method_name, 1162s # GVariant *parameters, 1162s # GDBusMethodInvocation *invocation, 1162s # gpointer user_data) 1162s # { 1162s # OrgProjectBarFrobnicatorSkeleton *skeleton = ORG_PROJECT_BAR_FROBNICATOR_SKELETON (user_data); 1162s # _ExtendedGDBusMethodInfo *info; 1162s # GVariantIter iter; 1162s # GVariant *child; 1162s # GValue *paramv; 1162s # gsize num_params; 1162s # guint num_extra; 1162s # gsize n; 1162s # guint signal_id; 1162s # GValue return_value = G_VALUE_INIT; 1162s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 1162s # g_assert (info != NULL); 1162s # num_params = g_variant_n_children (parameters); 1162s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 1162s # n = 0; 1162s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_BAR_FROBNICATOR); 1162s # g_value_set_object (¶mv[n++], skeleton); 1162s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 1162s # g_value_set_object (¶mv[n++], invocation); 1162s # if (info->pass_fdlist) 1162s # { 1162s # #ifdef G_OS_UNIX 1162s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 1162s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 1162s # #else 1162s # g_assert_not_reached (); 1162s # #endif 1162s # } 1162s # g_variant_iter_init (&iter, parameters); 1162s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1162s # { 1162s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 1162s # if (arg_info->use_gvariant) 1162s # { 1162s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1162s # g_value_set_variant (¶mv[n], child); 1162s # n++; 1162s # } 1162s # else 1162s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1162s # g_variant_unref (child); 1162s # } 1162s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_BAR_FROBNICATOR); 1162s # g_value_init (&return_value, G_TYPE_BOOLEAN); 1162s # g_signal_emitv (paramv, signal_id, 0, &return_value); 1162s # if (!g_value_get_boolean (&return_value)) 1162s # 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); 1162s # g_value_unset (&return_value); 1162s # for (n = 0; n < num_params + num_extra; n++) 1162s # g_value_unset (¶mv[n]); 1162s # g_free (paramv); 1162s # } 1162s # 1162s # static GVariant * 1162s # _org_project_bar_frobnicator_skeleton_handle_get_property ( 1162s # GDBusConnection *connection G_GNUC_UNUSED, 1162s # const gchar *sender G_GNUC_UNUSED, 1162s # const gchar *object_path G_GNUC_UNUSED, 1162s # const gchar *interface_name G_GNUC_UNUSED, 1162s # const gchar *property_name, 1162s # GError **error, 1162s # gpointer user_data) 1162s # { 1162s # OrgProjectBarFrobnicatorSkeleton *skeleton = ORG_PROJECT_BAR_FROBNICATOR_SKELETON (user_data); 1162s # GValue value = G_VALUE_INIT; 1162s # GParamSpec *pspec; 1162s # _ExtendedGDBusPropertyInfo *info; 1162s # GVariant *ret; 1162s # ret = NULL; 1162s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_bar_frobnicator_interface_info.parent_struct, property_name); 1162s # g_assert (info != NULL); 1162s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1162s # if (pspec == NULL) 1162s # { 1162s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1162s # } 1162s # else 1162s # { 1162s # g_value_init (&value, pspec->value_type); 1162s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1162s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 1162s # g_value_unset (&value); 1162s # } 1162s # return ret; 1162s # } 1162s # 1162s # static gboolean 1162s # _org_project_bar_frobnicator_skeleton_handle_set_property ( 1162s # GDBusConnection *connection G_GNUC_UNUSED, 1162s # const gchar *sender G_GNUC_UNUSED, 1162s # const gchar *object_path G_GNUC_UNUSED, 1162s # const gchar *interface_name G_GNUC_UNUSED, 1162s # const gchar *property_name, 1162s # GVariant *variant, 1162s # GError **error, 1162s # gpointer user_data) 1162s # { 1162s # OrgProjectBarFrobnicatorSkeleton *skeleton = ORG_PROJECT_BAR_FROBNICATOR_SKELETON (user_data); 1162s # GValue value = G_VALUE_INIT; 1162s # GParamSpec *pspec; 1162s # _ExtendedGDBusPropertyInfo *info; 1162s # gboolean ret; 1162s # ret = FALSE; 1162s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_bar_frobnicator_interface_info.parent_struct, property_name); 1162s # g_assert (info != NULL); 1162s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1162s # if (pspec == NULL) 1162s # { 1162s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1162s # } 1162s # else 1162s # { 1162s # if (info->use_gvariant) 1162s # g_value_set_variant (&value, variant); 1162s # else 1162s # g_dbus_gvariant_to_gvalue (variant, &value); 1162s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1162s # g_value_unset (&value); 1162s # ret = TRUE; 1162s # } 1162s # return ret; 1162s # } 1162s # 1162s # static const GDBusInterfaceVTable _org_project_bar_frobnicator_skeleton_vtable = 1162s # { 1162s # _org_project_bar_frobnicator_skeleton_handle_method_call, 1162s # _org_project_bar_frobnicator_skeleton_handle_get_property, 1162s # _org_project_bar_frobnicator_skeleton_handle_set_property, 1162s # {NULL} 1162s # }; 1162s # 1162s # static GDBusInterfaceInfo * 1162s # org_project_bar_frobnicator_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1162s # { 1162s # return org_project_bar_frobnicator_interface_info (); 1162s # } 1162s # 1162s # static GDBusInterfaceVTable * 1162s # org_project_bar_frobnicator_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1162s # { 1162s # return (GDBusInterfaceVTable *) &_org_project_bar_frobnicator_skeleton_vtable; 1162s # } 1162s # 1162s # static GVariant * 1162s # org_project_bar_frobnicator_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 1162s # { 1162s # OrgProjectBarFrobnicatorSkeleton *skeleton = ORG_PROJECT_BAR_FROBNICATOR_SKELETON (_skeleton); 1162s # 1162s # GVariantBuilder builder; 1162s # guint n; 1162s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 1162s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 1162s # #else 1162s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 1162s # #endif 1162s # if (_org_project_bar_frobnicator_interface_info.parent_struct.properties == NULL) 1162s # goto out; 1162s # for (n = 0; _org_project_bar_frobnicator_interface_info.parent_struct.properties[n] != NULL; n++) 1162s # { 1162s # GDBusPropertyInfo *info = _org_project_bar_frobnicator_interface_info.parent_struct.properties[n]; 1162s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 1162s # { 1162s # GVariant *value; 1162s # 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); 1162s # if (value != NULL) 1162s # { 1162s # g_variant_take_ref (value); 1162s # g_variant_builder_add (&builder, "{sv}", info->name, value); 1162s # g_variant_unref (value); 1162s # } 1162s # } 1162s # } 1162s # out: 1162s # return g_variant_builder_end (&builder); 1162s # } 1162s # 1162s # static void 1162s # org_project_bar_frobnicator_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 1162s # { 1162s # } 1162s # 1162s # static void org_project_bar_frobnicator_skeleton_iface_init (OrgProjectBarFrobnicatorIface *iface); 1162s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1162s # G_DEFINE_TYPE_WITH_CODE (OrgProjectBarFrobnicatorSkeleton, org_project_bar_frobnicator_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1162s # G_ADD_PRIVATE (OrgProjectBarFrobnicatorSkeleton) 1162s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_BAR_FROBNICATOR, org_project_bar_frobnicator_skeleton_iface_init)) 1162s # 1162s # #else 1162s # G_DEFINE_TYPE_WITH_CODE (OrgProjectBarFrobnicatorSkeleton, org_project_bar_frobnicator_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1162s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_BAR_FROBNICATOR, org_project_bar_frobnicator_skeleton_iface_init)) 1162s # 1162s # #endif 1162s # static void 1162s # org_project_bar_frobnicator_skeleton_finalize (GObject *object) 1162s # { 1162s # OrgProjectBarFrobnicatorSkeleton *skeleton = ORG_PROJECT_BAR_FROBNICATOR_SKELETON (object); 1162s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 1162s # if (skeleton->priv->changed_properties_idle_source != NULL) 1162s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 1162s # g_main_context_unref (skeleton->priv->context); 1162s # g_mutex_clear (&skeleton->priv->lock); 1162s # G_OBJECT_CLASS (org_project_bar_frobnicator_skeleton_parent_class)->finalize (object); 1162s # } 1162s # 1162s # static void 1162s # org_project_bar_frobnicator_skeleton_init (OrgProjectBarFrobnicatorSkeleton *skeleton) 1162s # { 1162s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1162s # skeleton->priv = org_project_bar_frobnicator_skeleton_get_instance_private (skeleton); 1162s # #else 1162s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_BAR_FROBNICATOR_SKELETON, OrgProjectBarFrobnicatorSkeletonPrivate); 1162s # #endif 1162s # 1162s # g_mutex_init (&skeleton->priv->lock); 1162s # skeleton->priv->context = g_main_context_ref_thread_default (); 1162s # } 1162s # 1162s # static void 1162s # org_project_bar_frobnicator_skeleton_class_init (OrgProjectBarFrobnicatorSkeletonClass *klass) 1162s # { 1162s # GObjectClass *gobject_class; 1162s # GDBusInterfaceSkeletonClass *skeleton_class; 1162s # 1162s # gobject_class = G_OBJECT_CLASS (klass); 1162s # gobject_class->finalize = org_project_bar_frobnicator_skeleton_finalize; 1162s # 1162s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 1162s # skeleton_class->get_info = org_project_bar_frobnicator_skeleton_dbus_interface_get_info; 1162s # skeleton_class->get_properties = org_project_bar_frobnicator_skeleton_dbus_interface_get_properties; 1162s # skeleton_class->flush = org_project_bar_frobnicator_skeleton_dbus_interface_flush; 1162s # skeleton_class->get_vtable = org_project_bar_frobnicator_skeleton_dbus_interface_get_vtable; 1162s # 1162s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1162s # g_type_class_add_private (klass, sizeof (OrgProjectBarFrobnicatorSkeletonPrivate)); 1162s # #endif 1162s # } 1162s # 1162s # static void 1162s # org_project_bar_frobnicator_skeleton_iface_init (OrgProjectBarFrobnicatorIface *iface G_GNUC_UNUSED) 1162s # { 1162s # } 1162s # 1162s # /** 1162s # * org_project_bar_frobnicator_skeleton_new: 1162s # * 1162s # * Creates a skeleton object for the D-Bus interface org.project.Bar.Frobnicator. 1162s # * 1162s # * Returns: (transfer full) (type OrgProjectBarFrobnicatorSkeleton): The skeleton object. 1162s # */ 1162s # OrgProjectBarFrobnicator * 1162s # org_project_bar_frobnicator_skeleton_new (void) 1162s # { 1162s # return ORG_PROJECT_BAR_FROBNICATOR (g_object_new (TYPE_ORG_PROJECT_BAR_FROBNICATOR_SKELETON, NULL)); 1162s # } 1162s # Error: 1162s ok 39 __main__.TestCodegen.test_unix_fd_types_and_annotations 1162s # gdbus-codegen: /usr/bin/gdbus-codegen 1162s # tmpdir: /tmp/tmphg42n_dt 1162s # /tmp/tmphg42n_dt/tmp935i89wf.xml: 1162s # 1162s # 1162s # 1162s # 1162s # 1162s # 1162s # 1162s # 1162s # 1162s # 1162s # 1162s # 1162s # 1162s # 1162s # 1162s # 1162s # 1162s # 1162s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmphg42n_dt/tmp935i89wf.xml', '--output', '-', '--header'] 1162s # Return code: 0 1162s # Output: 1162s # /* 1162s # * This file is generated by gdbus-codegen, do not modify it. 1162s # * 1162s # * The license of this code is the same as for the D-Bus interface description 1162s # * it was derived from. Note that it links to GLib, so must comply with the 1162s # * LGPL linking clauses. 1162s # */ 1162s # 1162s # #ifndef __STDOUT__ 1162s # #define __STDOUT__ 1162s # 1162s # #include 1162s # 1162s # G_BEGIN_DECLS 1162s # 1162s # 1162s # /* ------------------------------------------------------------------------ */ 1162s # /* Declarations for FDPassing */ 1162s # 1162s # #define TYPE_FDPASSING (fdpassing_get_type ()) 1162s # #define FDPASSING(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_FDPASSING, FDPassing)) 1162s # #define IS_FDPASSING(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_FDPASSING)) 1162s # #define FDPASSING_GET_IFACE(o) (G_TYPE_INSTANCE_GET_INTERFACE ((o), TYPE_FDPASSING, FDPassingIface)) 1162s # 1162s # struct _FDPassing; 1162s # typedef struct _FDPassing FDPassing; 1162s # typedef struct _FDPassingIface FDPassingIface; 1162s # 1162s # struct _FDPassingIface 1162s # { 1162s # GTypeInterface parent_iface; 1162s # 1162s # gboolean (*handle_hello_fd) ( 1162s # FDPassing *object, 1162s # GDBusMethodInvocation *invocation, 1162s # GUnixFDList *fd_list, 1162s # const gchar *arg_greeting); 1162s # 1162s # gboolean (*handle_no_annotation) ( 1162s # FDPassing *object, 1162s # GDBusMethodInvocation *invocation, 1162s # GVariant *arg_greeting, 1162s # const gchar *arg_greeting_locale); 1162s # 1162s # gboolean (*handle_no_annotation_nested) ( 1162s # FDPassing *object, 1162s # GDBusMethodInvocation *invocation, 1162s # GVariant *arg_files); 1162s # 1162s # }; 1162s # 1162s # GType fdpassing_get_type (void) G_GNUC_CONST; 1162s # 1162s # GDBusInterfaceInfo *fdpassing_interface_info (void); 1162s # guint fdpassing_override_properties (GObjectClass *klass, guint property_id_begin); 1162s # 1162s # 1162s # /* D-Bus method call completion functions: */ 1162s # void fdpassing_complete_hello_fd ( 1162s # FDPassing *object, 1162s # GDBusMethodInvocation *invocation, 1162s # GUnixFDList *fd_list, 1162s # const gchar *response); 1162s # 1162s # void fdpassing_complete_no_annotation ( 1162s # FDPassing *object, 1162s # GDBusMethodInvocation *invocation, 1162s # GVariant *response, 1162s # const gchar *response_locale); 1162s # 1162s # void fdpassing_complete_no_annotation_nested ( 1162s # FDPassing *object, 1162s # GDBusMethodInvocation *invocation); 1162s # 1162s # 1162s # 1162s # /* D-Bus method calls: */ 1162s # void fdpassing_call_hello_fd ( 1162s # FDPassing *proxy, 1162s # const gchar *arg_greeting, 1162s # GUnixFDList *fd_list, 1162s # GCancellable *cancellable, 1162s # GAsyncReadyCallback callback, 1162s # gpointer user_data); 1162s # 1162s # gboolean fdpassing_call_hello_fd_finish ( 1162s # FDPassing *proxy, 1162s # gchar **out_response, 1162s # GUnixFDList **out_fd_list, 1162s # GAsyncResult *res, 1162s # GError **error); 1162s # 1162s # gboolean fdpassing_call_hello_fd_sync ( 1162s # FDPassing *proxy, 1162s # const gchar *arg_greeting, 1162s # GUnixFDList *fd_list, 1162s # gchar **out_response, 1162s # GUnixFDList **out_fd_list, 1162s # GCancellable *cancellable, 1162s # GError **error); 1162s # 1162s # void fdpassing_call_no_annotation ( 1162s # FDPassing *proxy, 1162s # GVariant *arg_greeting, 1162s # const gchar *arg_greeting_locale, 1162s # GCancellable *cancellable, 1162s # GAsyncReadyCallback callback, 1162s # gpointer user_data); 1162s # 1162s # gboolean fdpassing_call_no_annotation_finish ( 1162s # FDPassing *proxy, 1162s # GVariant **out_response, 1162s # gchar **out_response_locale, 1162s # GAsyncResult *res, 1162s # GError **error); 1162s # 1162s # gboolean fdpassing_call_no_annotation_sync ( 1162s # FDPassing *proxy, 1162s # GVariant *arg_greeting, 1162s # const gchar *arg_greeting_locale, 1162s # GVariant **out_response, 1162s # gchar **out_response_locale, 1162s # GCancellable *cancellable, 1162s # GError **error); 1162s # 1162s # void fdpassing_call_no_annotation_nested ( 1162s # FDPassing *proxy, 1162s # GVariant *arg_files, 1162s # GCancellable *cancellable, 1162s # GAsyncReadyCallback callback, 1162s # gpointer user_data); 1162s # 1162s # gboolean fdpassing_call_no_annotation_nested_finish ( 1162s # FDPassing *proxy, 1162s # GAsyncResult *res, 1162s # GError **error); 1162s # 1162s # gboolean fdpassing_call_no_annotation_nested_sync ( 1162s # FDPassing *proxy, 1162s # GVariant *arg_files, 1162s # GCancellable *cancellable, 1162s # GError **error); 1162s # 1162s # 1162s # 1162s # /* ---- */ 1162s # 1162s # #define TYPE_FDPASSING_PROXY (fdpassing_proxy_get_type ()) 1162s # #define FDPASSING_PROXY(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_FDPASSING_PROXY, FDPassingProxy)) 1162s # #define FDPASSING_PROXY_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), TYPE_FDPASSING_PROXY, FDPassingProxyClass)) 1162s # #define FDPASSING_PROXY_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), TYPE_FDPASSING_PROXY, FDPassingProxyClass)) 1162s # #define IS_FDPASSING_PROXY(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_FDPASSING_PROXY)) 1162s # #define IS_FDPASSING_PROXY_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), TYPE_FDPASSING_PROXY)) 1162s # 1162s # typedef struct _FDPassingProxy FDPassingProxy; 1162s # typedef struct _FDPassingProxyClass FDPassingProxyClass; 1162s # typedef struct _FDPassingProxyPrivate FDPassingProxyPrivate; 1162s # 1162s # struct _FDPassingProxy 1162s # { 1162s # /*< private >*/ 1162s # GDBusProxy parent_instance; 1162s # FDPassingProxyPrivate *priv; 1162s # }; 1162s # 1162s # struct _FDPassingProxyClass 1162s # { 1162s # GDBusProxyClass parent_class; 1162s # }; 1162s # 1162s # GType fdpassing_proxy_get_type (void) G_GNUC_CONST; 1162s # 1162s # #if GLIB_CHECK_VERSION(2, 44, 0) 1162s # G_DEFINE_AUTOPTR_CLEANUP_FUNC (FDPassingProxy, g_object_unref) 1162s # #endif 1162s # 1162s # void fdpassing_proxy_new ( 1162s # GDBusConnection *connection, 1162s # GDBusProxyFlags flags, 1162s # const gchar *name, 1162s # const gchar *object_path, 1162s # GCancellable *cancellable, 1162s # GAsyncReadyCallback callback, 1162s # gpointer user_data); 1162s # FDPassing *fdpassing_proxy_new_finish ( 1162s # GAsyncResult *res, 1162s # GError **error); 1162s # FDPassing *fdpassing_proxy_new_sync ( 1162s # GDBusConnection *connection, 1162s # GDBusProxyFlags flags, 1162s # const gchar *name, 1162s # const gchar *object_path, 1162s # GCancellable *cancellable, 1162s # GError **error); 1162s # 1162s # void fdpassing_proxy_new_for_bus ( 1162s # GBusType bus_type, 1162s # GDBusProxyFlags flags, 1162s # const gchar *name, 1162s # const gchar *object_path, 1162s # GCancellable *cancellable, 1162s # GAsyncReadyCallback callback, 1162s # gpointer user_data); 1162s # FDPassing *fdpassing_proxy_new_for_bus_finish ( 1162s # GAsyncResult *res, 1162s # GError **error); 1162s # FDPassing *fdpassing_proxy_new_for_bus_sync ( 1162s # GBusType bus_type, 1162s # GDBusProxyFlags flags, 1162s # const gchar *name, 1162s # const gchar *object_path, 1162s # GCancellable *cancellable, 1162s # GError **error); 1162s # 1162s # 1162s # /* ---- */ 1162s # 1162s # #define TYPE_FDPASSING_SKELETON (fdpassing_skeleton_get_type ()) 1162s # #define FDPASSING_SKELETON(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_FDPASSING_SKELETON, FDPassingSkeleton)) 1162s # #define FDPASSING_SKELETON_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), TYPE_FDPASSING_SKELETON, FDPassingSkeletonClass)) 1162s # #define FDPASSING_SKELETON_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), TYPE_FDPASSING_SKELETON, FDPassingSkeletonClass)) 1162s # #define IS_FDPASSING_SKELETON(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_FDPASSING_SKELETON)) 1162s # #define IS_FDPASSING_SKELETON_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), TYPE_FDPASSING_SKELETON)) 1162s # 1162s # typedef struct _FDPassingSkeleton FDPassingSkeleton; 1162s # typedef struct _FDPassingSkeletonClass FDPassingSkeletonClass; 1162s # typedef struct _FDPassingSkeletonPrivate FDPassingSkeletonPrivate; 1162s # 1162s # struct _FDPassingSkeleton 1162s # { 1162s # /*< private >*/ 1162s # GDBusInterfaceSkeleton parent_instance; 1162s # FDPassingSkeletonPrivate *priv; 1162s # }; 1162s # 1162s # struct _FDPassingSkeletonClass 1162s # { 1162s # GDBusInterfaceSkeletonClass parent_class; 1162s # }; 1162s # 1162s # GType fdpassing_skeleton_get_type (void) G_GNUC_CONST; 1162s # 1162s # #if GLIB_CHECK_VERSION(2, 44, 0) 1162s # G_DEFINE_AUTOPTR_CLEANUP_FUNC (FDPassingSkeleton, g_object_unref) 1162s # #endif 1162s # 1162s # FDPassing *fdpassing_skeleton_new (void); 1162s # 1162s # 1162s # G_END_DECLS 1162s # 1162s # #endif /* __STDOUT__ */ 1162s # Error: 1162s # 1162s # /tmp/tmphg42n_dt/tmpo9bhrtr4.xml: 1162s # 1162s # 1162s # 1162s # 1162s # 1162s # 1162s # 1162s # 1162s # 1162s # 1162s # 1162s # 1162s # 1162s # 1162s # 1162s # 1162s # 1162s # 1162s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmphg42n_dt/tmpo9bhrtr4.xml', '--output', '-', '--header', '--glib-min-required', '2.32'] 1162s # Return code: 0 1162s # Output: 1162s # /* 1162s # * This file is generated by gdbus-codegen, do not modify it. 1162s # * 1162s # * The license of this code is the same as for the D-Bus interface description 1162s # * it was derived from. Note that it links to GLib, so must comply with the 1162s # * LGPL linking clauses. 1162s # */ 1162s # 1162s # #ifndef __STDOUT__ 1162s # #define __STDOUT__ 1162s # 1162s # #include 1162s # 1162s # G_BEGIN_DECLS 1162s # 1162s # 1162s # /* ------------------------------------------------------------------------ */ 1162s # /* Declarations for FDPassing */ 1162s # 1162s # #define TYPE_FDPASSING (fdpassing_get_type ()) 1162s # #define FDPASSING(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_FDPASSING, FDPassing)) 1162s # #define IS_FDPASSING(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_FDPASSING)) 1162s # #define FDPASSING_GET_IFACE(o) (G_TYPE_INSTANCE_GET_INTERFACE ((o), TYPE_FDPASSING, FDPassingIface)) 1162s # 1162s # struct _FDPassing; 1162s # typedef struct _FDPassing FDPassing; 1162s # typedef struct _FDPassingIface FDPassingIface; 1162s # 1162s # struct _FDPassingIface 1162s # { 1162s # GTypeInterface parent_iface; 1162s # 1162s # gboolean (*handle_hello_fd) ( 1162s # FDPassing *object, 1162s # GDBusMethodInvocation *invocation, 1162s # GUnixFDList *fd_list, 1162s # const gchar *arg_greeting); 1162s # 1162s # gboolean (*handle_no_annotation) ( 1162s # FDPassing *object, 1162s # GDBusMethodInvocation *invocation, 1162s # GVariant *arg_greeting, 1162s # const gchar *arg_greeting_locale); 1162s # 1162s # gboolean (*handle_no_annotation_nested) ( 1162s # FDPassing *object, 1162s # GDBusMethodInvocation *invocation, 1162s # GVariant *arg_files); 1162s # 1162s # }; 1162s # 1162s # GType fdpassing_get_type (void) G_GNUC_CONST; 1162s # 1162s # GDBusInterfaceInfo *fdpassing_interface_info (void); 1162s # guint fdpassing_override_properties (GObjectClass *klass, guint property_id_begin); 1162s # 1162s # 1162s # /* D-Bus method call completion functions: */ 1162s # void fdpassing_complete_hello_fd ( 1162s # FDPassing *object, 1162s # GDBusMethodInvocation *invocation, 1162s # GUnixFDList *fd_list, 1162s # const gchar *response); 1162s # 1162s # void fdpassing_complete_no_annotation ( 1162s # FDPassing *object, 1162s # GDBusMethodInvocation *invocation, 1162s # GVariant *response, 1162s # const gchar *response_locale); 1162s # 1162s # void fdpassing_complete_no_annotation_nested ( 1162s # FDPassing *object, 1162s # GDBusMethodInvocation *invocation); 1162s # 1162s # 1162s # 1162s # /* D-Bus method calls: */ 1162s # void fdpassing_call_hello_fd ( 1162s # FDPassing *proxy, 1162s # const gchar *arg_greeting, 1162s # GUnixFDList *fd_list, 1162s # GCancellable *cancellable, 1162s # GAsyncReadyCallback callback, 1162s # gpointer user_data); 1162s # 1162s # gboolean fdpassing_call_hello_fd_finish ( 1162s # FDPassing *proxy, 1162s # gchar **out_response, 1162s # GUnixFDList **out_fd_list, 1162s # GAsyncResult *res, 1162s # GError **error); 1162s # 1162s # gboolean fdpassing_call_hello_fd_sync ( 1162s # FDPassing *proxy, 1162s # const gchar *arg_greeting, 1162s # GUnixFDList *fd_list, 1162s # gchar **out_response, 1162s # GUnixFDList **out_fd_list, 1162s # GCancellable *cancellable, 1162s # GError **error); 1162s # 1162s # void fdpassing_call_no_annotation ( 1162s # FDPassing *proxy, 1162s # GVariant *arg_greeting, 1162s # const gchar *arg_greeting_locale, 1162s # GCancellable *cancellable, 1162s # GAsyncReadyCallback callback, 1162s # gpointer user_data); 1162s # 1162s # gboolean fdpassing_call_no_annotation_finish ( 1162s # FDPassing *proxy, 1162s # GVariant **out_response, 1162s # gchar **out_response_locale, 1162s # GAsyncResult *res, 1162s # GError **error); 1162s # 1162s # gboolean fdpassing_call_no_annotation_sync ( 1162s # FDPassing *proxy, 1162s # GVariant *arg_greeting, 1162s # const gchar *arg_greeting_locale, 1162s # GVariant **out_response, 1162s # gchar **out_response_locale, 1162s # GCancellable *cancellable, 1162s # GError **error); 1162s # 1162s # void fdpassing_call_no_annotation_nested ( 1162s # FDPassing *proxy, 1162s # GVariant *arg_files, 1162s # GCancellable *cancellable, 1162s # GAsyncReadyCallback callback, 1162s # gpointer user_data); 1162s # 1162s # gboolean fdpassing_call_no_annotation_nested_finish ( 1162s # FDPassing *proxy, 1162s # GAsyncResult *res, 1162s # GError **error); 1162s # 1162s # gboolean fdpassing_call_no_annotation_nested_sync ( 1162s # FDPassing *proxy, 1162s # GVariant *arg_files, 1162s # GCancellable *cancellable, 1162s # GError **error); 1162s # 1162s # 1162s # 1162s # /* ---- */ 1162s # 1162s # #define TYPE_FDPASSING_PROXY (fdpassing_proxy_get_type ()) 1162s # #define FDPASSING_PROXY(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_FDPASSING_PROXY, FDPassingProxy)) 1162s # #define FDPASSING_PROXY_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), TYPE_FDPASSING_PROXY, FDPassingProxyClass)) 1162s # #define FDPASSING_PROXY_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), TYPE_FDPASSING_PROXY, FDPassingProxyClass)) 1162s # #define IS_FDPASSING_PROXY(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_FDPASSING_PROXY)) 1162s # #define IS_FDPASSING_PROXY_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), TYPE_FDPASSING_PROXY)) 1162s # 1162s # typedef struct _FDPassingProxy FDPassingProxy; 1162s # typedef struct _FDPassingProxyClass FDPassingProxyClass; 1162s # typedef struct _FDPassingProxyPrivate FDPassingProxyPrivate; 1162s # 1162s # struct _FDPassingProxy 1162s # { 1162s # /*< private >*/ 1162s # GDBusProxy parent_instance; 1162s # FDPassingProxyPrivate *priv; 1162s # }; 1162s # 1162s # struct _FDPassingProxyClass 1162s # { 1162s # GDBusProxyClass parent_class; 1162s # }; 1162s # 1162s # GType fdpassing_proxy_get_type (void) G_GNUC_CONST; 1162s # 1162s # #if GLIB_CHECK_VERSION(2, 44, 0) 1162s # G_DEFINE_AUTOPTR_CLEANUP_FUNC (FDPassingProxy, g_object_unref) 1162s # #endif 1162s # 1162s # void fdpassing_proxy_new ( 1162s # GDBusConnection *connection, 1162s # GDBusProxyFlags flags, 1162s # const gchar *name, 1162s # const gchar *object_path, 1162s # GCancellable *cancellable, 1162s # GAsyncReadyCallback callback, 1162s # gpointer user_data); 1162s # FDPassing *fdpassing_proxy_new_finish ( 1162s # GAsyncResult *res, 1162s # GError **error); 1162s # FDPassing *fdpassing_proxy_new_sync ( 1162s # GDBusConnection *connection, 1162s # GDBusProxyFlags flags, 1162s # const gchar *name, 1162s # const gchar *object_path, 1162s # GCancellable *cancellable, 1162s # GError **error); 1162s # 1162s # void fdpassing_proxy_new_for_bus ( 1162s # GBusType bus_type, 1162s # GDBusProxyFlags flags, 1162s # const gchar *name, 1162s # const gchar *object_path, 1162s # GCancellable *cancellable, 1162s # GAsyncReadyCallback callback, 1162s # gpointer user_data); 1162s # FDPassing *fdpassing_proxy_new_for_bus_finish ( 1162s # GAsyncResult *res, 1162s # GError **error); 1162s # FDPassing *fdpassing_proxy_new_for_bus_sync ( 1162s # GBusType bus_type, 1162s # GDBusProxyFlags flags, 1162s # const gchar *name, 1162s # const gchar *object_path, 1162s # GCancellable *cancellable, 1162s # GError **error); 1162s # 1162s # 1162s # /* ---- */ 1162s # 1162s # #define TYPE_FDPASSING_SKELETON (fdpassing_skeleton_get_type ()) 1162s # #define FDPASSING_SKELETON(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_FDPASSING_SKELETON, FDPassingSkeleton)) 1162s # #define FDPASSING_SKELETON_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), TYPE_FDPASSING_SKELETON, FDPassingSkeletonClass)) 1162s # #define FDPASSING_SKELETON_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), TYPE_FDPASSING_SKELETON, FDPassingSkeletonClass)) 1162s # #define IS_FDPASSING_SKELETON(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_FDPASSING_SKELETON)) 1162s # #define IS_FDPASSING_SKELETON_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), TYPE_FDPASSING_SKELETON)) 1162s # 1162s # typedef struct _FDPassingSkeleton FDPassingSkeleton; 1162s # typedef struct _FDPassingSkeletonClass FDPassingSkeletonClass; 1162s # typedef struct _FDPassingSkeletonPrivate FDPassingSkeletonPrivate; 1162s # 1162s # struct _FDPassingSkeleton 1162s # { 1162s # /*< private >*/ 1162s # GDBusInterfaceSkeleton parent_instance; 1162s # FDPassingSkeletonPrivate *priv; 1162s # }; 1162s # 1162s # struct _FDPassingSkeletonClass 1162s # { 1162s # GDBusInterfaceSkeletonClass parent_class; 1162s # }; 1162s # 1162s # GType fdpassing_skeleton_get_type (void) G_GNUC_CONST; 1162s # 1162s # #if GLIB_CHECK_VERSION(2, 44, 0) 1162s # G_DEFINE_AUTOPTR_CLEANUP_FUNC (FDPassingSkeleton, g_object_unref) 1162s # #endif 1162s # 1162s # FDPassing *fdpassing_skeleton_new (void); 1162s # 1162s # 1162s # G_END_DECLS 1162s # 1162s # #endif /* __STDOUT__ */ 1162s # Error: 1162s # 1162s # /tmp/tmphg42n_dt/tmp25m161x5.xml: 1162s # 1162s # 1162s # 1162s # 1162s # 1162s # 1162s # 1162s # 1162s # 1162s # 1162s # 1162s # 1162s # 1162s # 1162s # 1162s # 1162s # 1162s # 1162s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmphg42n_dt/tmp25m161x5.xml', '--output', '-', '--header', '--glib-min-required', '2.64'] 1162s # Return code: 0 1162s # Output: 1162s # /* 1162s # * This file is generated by gdbus-codegen, do not modify it. 1162s # * 1162s # * The license of this code is the same as for the D-Bus interface description 1162s # * it was derived from. Note that it links to GLib, so must comply with the 1162s # * LGPL linking clauses. 1162s # */ 1162s # 1162s # #ifndef __STDOUT__ 1162s # #define __STDOUT__ 1162s # 1162s # #include 1162s # 1162s # G_BEGIN_DECLS 1162s # 1162s # 1162s # /* ------------------------------------------------------------------------ */ 1162s # /* Declarations for FDPassing */ 1162s # 1162s # #define TYPE_FDPASSING (fdpassing_get_type ()) 1162s # #define FDPASSING(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_FDPASSING, FDPassing)) 1162s # #define IS_FDPASSING(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_FDPASSING)) 1162s # #define FDPASSING_GET_IFACE(o) (G_TYPE_INSTANCE_GET_INTERFACE ((o), TYPE_FDPASSING, FDPassingIface)) 1162s # 1162s # struct _FDPassing; 1162s # typedef struct _FDPassing FDPassing; 1162s # typedef struct _FDPassingIface FDPassingIface; 1162s # 1162s # struct _FDPassingIface 1162s # { 1162s # GTypeInterface parent_iface; 1162s # 1162s # gboolean (*handle_hello_fd) ( 1162s # FDPassing *object, 1162s # GDBusMethodInvocation *invocation, 1162s # GUnixFDList *fd_list, 1162s # const gchar *arg_greeting); 1162s # 1162s # gboolean (*handle_no_annotation) ( 1162s # FDPassing *object, 1162s # GDBusMethodInvocation *invocation, 1162s # GUnixFDList *fd_list, 1162s # GVariant *arg_greeting, 1162s # const gchar *arg_greeting_locale); 1162s # 1162s # gboolean (*handle_no_annotation_nested) ( 1162s # FDPassing *object, 1162s # GDBusMethodInvocation *invocation, 1162s # GUnixFDList *fd_list, 1162s # GVariant *arg_files); 1162s # 1162s # }; 1162s # 1162s # GType fdpassing_get_type (void) G_GNUC_CONST; 1162s # 1162s # GDBusInterfaceInfo *fdpassing_interface_info (void); 1162s # guint fdpassing_override_properties (GObjectClass *klass, guint property_id_begin); 1162s # 1162s # 1162s # /* D-Bus method call completion functions: */ 1162s # void fdpassing_complete_hello_fd ( 1162s # FDPassing *object, 1162s # GDBusMethodInvocation *invocation, 1162s # GUnixFDList *fd_list, 1162s # const gchar *response); 1162s # 1162s # void fdpassing_complete_no_annotation ( 1162s # FDPassing *object, 1162s # GDBusMethodInvocation *invocation, 1162s # GUnixFDList *fd_list, 1162s # GVariant *response, 1162s # const gchar *response_locale); 1162s # 1162s # void fdpassing_complete_no_annotation_nested ( 1162s # FDPassing *object, 1162s # GDBusMethodInvocation *invocation, 1162s # GUnixFDList *fd_list); 1162s # 1162s # 1162s # 1162s # /* D-Bus method calls: */ 1162s # void fdpassing_call_hello_fd ( 1162s # FDPassing *proxy, 1162s # const gchar *arg_greeting, 1162s # GDBusCallFlags call_flags, 1162s # gint timeout_msec, 1162s # GUnixFDList *fd_list, 1162s # GCancellable *cancellable, 1162s # GAsyncReadyCallback callback, 1162s # gpointer user_data); 1162s # 1162s # gboolean fdpassing_call_hello_fd_finish ( 1162s # FDPassing *proxy, 1162s # gchar **out_response, 1162s # GUnixFDList **out_fd_list, 1162s # GAsyncResult *res, 1162s # GError **error); 1162s # 1162s # gboolean fdpassing_call_hello_fd_sync ( 1162s # FDPassing *proxy, 1162s # const gchar *arg_greeting, 1162s # GDBusCallFlags call_flags, 1162s # gint timeout_msec, 1162s # GUnixFDList *fd_list, 1162s # gchar **out_response, 1162s # GUnixFDList **out_fd_list, 1162s # GCancellable *cancellable, 1162s # GError **error); 1162s # 1162s # void fdpassing_call_no_annotation ( 1162s # FDPassing *proxy, 1162s # GVariant *arg_greeting, 1162s # const gchar *arg_greeting_locale, 1162s # GDBusCallFlags call_flags, 1162s # gint timeout_msec, 1162s # GUnixFDList *fd_list, 1162s # GCancellable *cancellable, 1162s # GAsyncReadyCallback callback, 1162s # gpointer user_data); 1162s # 1162s # gboolean fdpassing_call_no_annotation_finish ( 1162s # FDPassing *proxy, 1162s # GVariant **out_response, 1162s # gchar **out_response_locale, 1162s # GUnixFDList **out_fd_list, 1162s # GAsyncResult *res, 1162s # GError **error); 1162s # 1162s # gboolean fdpassing_call_no_annotation_sync ( 1162s # FDPassing *proxy, 1162s # GVariant *arg_greeting, 1162s # const gchar *arg_greeting_locale, 1162s # GDBusCallFlags call_flags, 1162s # gint timeout_msec, 1162s # GUnixFDList *fd_list, 1162s # GVariant **out_response, 1162s # gchar **out_response_locale, 1162s # GUnixFDList **out_fd_list, 1162s # GCancellable *cancellable, 1162s # GError **error); 1162s # 1162s # void fdpassing_call_no_annotation_nested ( 1162s # FDPassing *proxy, 1162s # GVariant *arg_files, 1162s # GDBusCallFlags call_flags, 1162s # gint timeout_msec, 1162s # GUnixFDList *fd_list, 1162s # GCancellable *cancellable, 1162s # GAsyncReadyCallback callback, 1162s # gpointer user_data); 1162s # 1162s # gboolean fdpassing_call_no_annotation_nested_finish ( 1162s # FDPassing *proxy, 1162s # GUnixFDList **out_fd_list, 1162s # GAsyncResult *res, 1162s # GError **error); 1162s # 1162s # gboolean fdpassing_call_no_annotation_nested_sync ( 1162s # FDPassing *proxy, 1162s # GVariant *arg_files, 1162s # GDBusCallFlags call_flags, 1162s # gint timeout_msec, 1162s # GUnixFDList *fd_list, 1162s # GUnixFDList **out_fd_list, 1162s # GCancellable *cancellable, 1162s # GError **error); 1162s # 1162s # 1162s # 1162s # /* ---- */ 1162s # 1162s # #define TYPE_FDPASSING_PROXY (fdpassing_proxy_get_type ()) 1162s # #define FDPASSING_PROXY(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_FDPASSING_PROXY, FDPassingProxy)) 1162s # #define FDPASSING_PROXY_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), TYPE_FDPASSING_PROXY, FDPassingProxyClass)) 1162s # #define FDPASSING_PROXY_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), TYPE_FDPASSING_PROXY, FDPassingProxyClass)) 1162s # #define IS_FDPASSING_PROXY(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_FDPASSING_PROXY)) 1162s # #define IS_FDPASSING_PROXY_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), TYPE_FDPASSING_PROXY)) 1162s # 1162s # typedef struct _FDPassingProxy FDPassingProxy; 1162s # typedef struct _FDPassingProxyClass FDPassingProxyClass; 1162s # typedef struct _FDPassingProxyPrivate FDPassingProxyPrivate; 1162s # 1162s # struct _FDPassingProxy 1162s # { 1162s # /*< private >*/ 1162s # GDBusProxy parent_instance; 1162s # FDPassingProxyPrivate *priv; 1162s # }; 1162s # 1162s # struct _FDPassingProxyClass 1162s # { 1162s # GDBusProxyClass parent_class; 1162s # }; 1162s # 1162s # GType fdpassing_proxy_get_type (void) G_GNUC_CONST; 1162s # 1162s # #if GLIB_CHECK_VERSION(2, 44, 0) 1162s # G_DEFINE_AUTOPTR_CLEANUP_FUNC (FDPassingProxy, g_object_unref) 1162s # #endif 1162s # 1162s # void fdpassing_proxy_new ( 1162s # GDBusConnection *connection, 1162s # GDBusProxyFlags flags, 1162s # const gchar *name, 1162s # const gchar *object_path, 1162s # GCancellable *cancellable, 1162s # GAsyncReadyCallback callback, 1162s # gpointer user_data); 1162s # FDPassing *fdpassing_proxy_new_finish ( 1162s # GAsyncResult *res, 1162s # GError **error); 1162s # FDPassing *fdpassing_proxy_new_sync ( 1162s # GDBusConnection *connection, 1162s # GDBusProxyFlags flags, 1162s # const gchar *name, 1162s # const gchar *object_path, 1162s # GCancellable *cancellable, 1162s # GError **error); 1162s # 1162s # void fdpassing_proxy_new_for_bus ( 1162s # GBusType bus_type, 1162s # GDBusProxyFlags flags, 1162s # const gchar *name, 1162s # const gchar *object_path, 1162s # GCancellable *cancellable, 1162s # GAsyncReadyCallback callback, 1162s # gpointer user_data); 1162s # FDPassing *fdpassing_proxy_new_for_bus_finish ( 1162s # GAsyncResult *res, 1162s # GError **error); 1162s # FDPassing *fdpassing_proxy_new_for_bus_sync ( 1162s # GBusType bus_type, 1162s # GDBusProxyFlags flags, 1162s # const gchar *name, 1162s # const gchar *object_path, 1162s # GCancellable *cancellable, 1162s # GError **error); 1162s # 1162s # 1162s # /* ---- */ 1162s # 1162s # #define TYPE_FDPASSING_SKELETON (fdpassing_skeleton_get_type ()) 1162s # #define FDPASSING_SKELETON(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_FDPASSING_SKELETON, FDPassingSkeleton)) 1162s # #define FDPASSING_SKELETON_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), TYPE_FDPASSING_SKELETON, FDPassingSkeletonClass)) 1162s # #define FDPASSING_SKELETON_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), TYPE_FDPASSING_SKELETON, FDPassingSkeletonClass)) 1162s # #define IS_FDPASSING_SKELETON(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_FDPASSING_SKELETON)) 1162s # #define IS_FDPASSING_SKELETON_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), TYPE_FDPASSING_SKELETON)) 1162s # 1162s # typedef struct _FDPassingSkeleton FDPassingSkeleton; 1162s # typedef struct _FDPassingSkeletonClass FDPassingSkeletonClass; 1162s # typedef struct _FDPassingSkeletonPrivate FDPassingSkeletonPrivate; 1162s # 1162s # struct _FDPassingSkeleton 1162s # { 1162s # /*< private >*/ 1162s # GDBusInterfaceSkeleton parent_instance; 1162s # FDPassingSkeletonPrivate *priv; 1162s # }; 1162s # 1162s # struct _FDPassingSkeletonClass 1162s # { 1162s # GDBusInterfaceSkeletonClass parent_class; 1162s # }; 1162s # 1162s # GType fdpassing_skeleton_get_type (void) G_GNUC_CONST; 1162s # 1162s # #if GLIB_CHECK_VERSION(2, 44, 0) 1162s # G_DEFINE_AUTOPTR_CLEANUP_FUNC (FDPassingSkeleton, g_object_unref) 1162s # #endif 1162s # 1162s # FDPassing *fdpassing_skeleton_new (void); 1162s # 1162s # 1162s # G_END_DECLS 1162s # 1162s # #endif /* __STDOUT__ */ 1162s # Error: 1162s 1..39 1163s ok - glib/codegen.py.test 1163s # Running test: glib/permission.test 1163s TAP version 14 1163s # random seed: R02Se53fe32a288bc4b1a8f4e45bc59afe67 1163s 1..1 1163s # Start of permission tests 1163s ok 1 /permission/simple 1163s # End of permission tests 1163s ok - glib/permission.test 1163s # Running test: glib/atomic-c-89.test 1163s TAP version 14 1163s # random seed: R02S358752729168d36e307ba2146fb12ca2 1163s 1..2 1163s # Start of atomic tests 1163s ok 1 /atomic/types 1163s ok 2 /atomic/threaded 1163s # End of atomic tests 1163s ok - glib/atomic-c-89.test 1163s # Running test: glib/cancellable.test 1163s TAP version 14 1163s # random seed: R02Sc2bbc04c66df164ce1044281f931f479 1163s 1..18 1163s # Start of cancellable tests 1163s ok 1 /cancellable/multiple-concurrent # SKIP Not running timing heavy test 1163s ok 2 /cancellable/null 1163s ok 3 /cancellable/connect-data-is-destroyed-on-disconnect-and-dispose 1163s # /cancellable/connect-to-disposing-callback summary: A cancellable signal callback can unref the cancellable 1163s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3643 1163s ok 4 /cancellable/connect-to-disposing-callback 1163s ok 5 /cancellable/connect-cancelled-data-is-destroyed 1163s # Toggle reference callback for GCancellable (0x70d7558), last: 1 1163s # Toggle reference callback for GCancellable (0x70d7558), last: 0 1163s # Toggle reference callback for GCancellable (0x70d7558), last: 1 1163s ok 6 /cancellable/connect-to-disposing-callback-with-toggle-reference 1163s # /cancellable/connect-cancelled-to-disposing-callback summary: A cancellable signal callback can unref the cancellable 1163s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3643 1163s ok 7 /cancellable/connect-cancelled-to-disposing-callback 1163s ok 8 /cancellable/connect-cancelled-with-destroy-func-disposing-cancellable 1163s # Toggle reference callback for GCancellable (0x70d7558), last: 1 1163s # Toggle reference callback for GCancellable (0x70d7558), last: 0 1163s # Toggle reference callback for GCancellable (0x70d7558), last: 1 1163s # Toggle reference callback for GCancellable (0x70d7558), last: 0 1163s # Toggle reference callback for GCancellable (0x70d7558), last: 1 1163s ok 9 /cancellable/connect-cancelled-to-disposing-callback-with-toggle-reference 1163s # /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 1163s ok 10 /cancellable/disconnect-on-cancelled-callback-hangs 1163s # /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 1163s ok 11 /cancellable/resets-on-cancel-callback-hangs 1163s ok 12 /cancellable/poll-fd 1163s # /cancellable/poll-fd-cancelled summary: Tests that cancellation wakes up a pollable FD on creation 1163s ok 13 /cancellable/poll-fd-cancelled 1163s # /cancellable/poll-fd-cancelled-threaded summary: Tests that a cancellation wakes up a pollable FD 1163s ok 14 /cancellable/poll-fd-cancelled-threaded 1163s # /cancellable/cancel-reset-races summary: Tests threads racing for cancelling and resetting a GCancellable 1163s ok 15 /cancellable/cancel-reset-races 1163s # /cancellable/cancel-reset-connect-races summary: Tests threads racing for cancelling, connecting and disconnecting and resetting a GCancellable 1163s ok 16 /cancellable/cancel-reset-connect-races 1163s # End of cancellable tests 1163s # Start of cancellable-source tests 1163s # /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) 1163s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/issues/1841 1165s # Executing: glib/cancellable.test 1165s ok 17 /cancellable-source/threaded-dispose 1165s # slow test /cancellable-source/threaded-dispose executed in 2.07 secs 1165s # /cancellable-source/can-be-fired-multiple-times summary: Test a cancellable source callback can be called multiple times 1165s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/issues/774 1165s ok 18 /cancellable-source/can-be-fired-multiple-times 1165s # End of cancellable-source tests 1165s ok - glib/cancellable.test 1165s # Running test: glib/gdbus-proxy-unique-name.test 1165s TAP version 14 1165s # random seed: R02S194738fee6d2e53baae4fbd60007a109 1165s 1..1 1165s # Start of gdbus tests 1165s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-proxy-unique-name_XZ3NK3/gdbus/proxy-unique-name/.dirs/home 1165s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-proxy-unique-name_XZ3NK3/gdbus/proxy-unique-name/.dirs/cache 1165s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-proxy-unique-name_XZ3NK3/gdbus/proxy-unique-name/.dirs/system-config1:/tmp/test_gdbus-proxy-unique-name_XZ3NK3/gdbus/proxy-unique-name/.dirs/system-config2 1165s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-proxy-unique-name_XZ3NK3/gdbus/proxy-unique-name/.dirs/config 1165s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-proxy-unique-name_XZ3NK3/gdbus/proxy-unique-name/.dirs/system-data1:/tmp/test_gdbus-proxy-unique-name_XZ3NK3/gdbus/proxy-unique-name/.dirs/system-data2 1165s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-proxy-unique-name_XZ3NK3/gdbus/proxy-unique-name/.dirs/data 1165s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-proxy-unique-name_XZ3NK3/gdbus/proxy-unique-name/.dirs/state 1165s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-proxy-unique-name_XZ3NK3/gdbus/proxy-unique-name/.dirs/runtime 1165s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1165s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1165s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1165s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1165s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1165s ok 1 /gdbus/proxy-unique-name 1165s # End of gdbus tests 1165s ok - glib/gdbus-proxy-unique-name.test 1165s # Running test: glib/keyfile.test 1165s TAP version 14 1165s # random seed: R02S50aeb086ad0e7a383269b6edec1a8946 1165s 1..36 1165s # Start of keyfile tests 1165s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_keyfile_DHULK3/keyfile/line-ends/.dirs/home 1165s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_keyfile_DHULK3/keyfile/line-ends/.dirs/cache 1165s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_keyfile_DHULK3/keyfile/line-ends/.dirs/system-config1:/tmp/test_keyfile_DHULK3/keyfile/line-ends/.dirs/system-config2 1165s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_keyfile_DHULK3/keyfile/line-ends/.dirs/config 1165s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_keyfile_DHULK3/keyfile/line-ends/.dirs/system-data1:/tmp/test_keyfile_DHULK3/keyfile/line-ends/.dirs/system-data2 1165s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_keyfile_DHULK3/keyfile/line-ends/.dirs/data 1165s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_keyfile_DHULK3/keyfile/line-ends/.dirs/state 1165s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_keyfile_DHULK3/keyfile/line-ends/.dirs/runtime 1165s ok 1 /keyfile/line-ends 1165s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_keyfile_DHULK3/keyfile/whitespace/.dirs/home 1165s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_keyfile_DHULK3/keyfile/whitespace/.dirs/cache 1165s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_keyfile_DHULK3/keyfile/whitespace/.dirs/system-config1:/tmp/test_keyfile_DHULK3/keyfile/whitespace/.dirs/system-config2 1165s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_keyfile_DHULK3/keyfile/whitespace/.dirs/config 1165s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_keyfile_DHULK3/keyfile/whitespace/.dirs/system-data1:/tmp/test_keyfile_DHULK3/keyfile/whitespace/.dirs/system-data2 1165s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_keyfile_DHULK3/keyfile/whitespace/.dirs/data 1165s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_keyfile_DHULK3/keyfile/whitespace/.dirs/state 1165s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_keyfile_DHULK3/keyfile/whitespace/.dirs/runtime 1165s ok 2 /keyfile/whitespace 1165s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_keyfile_DHULK3/keyfile/comments/.dirs/home 1165s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_keyfile_DHULK3/keyfile/comments/.dirs/cache 1165s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_keyfile_DHULK3/keyfile/comments/.dirs/system-config1:/tmp/test_keyfile_DHULK3/keyfile/comments/.dirs/system-config2 1165s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_keyfile_DHULK3/keyfile/comments/.dirs/config 1165s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_keyfile_DHULK3/keyfile/comments/.dirs/system-data1:/tmp/test_keyfile_DHULK3/keyfile/comments/.dirs/system-data2 1165s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_keyfile_DHULK3/keyfile/comments/.dirs/data 1165s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_keyfile_DHULK3/keyfile/comments/.dirs/state 1165s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_keyfile_DHULK3/keyfile/comments/.dirs/runtime 1165s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3047 1165s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/104 1165s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3047 1165s ok 3 /keyfile/comments 1165s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_keyfile_DHULK3/keyfile/listing/.dirs/home 1165s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_keyfile_DHULK3/keyfile/listing/.dirs/cache 1165s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_keyfile_DHULK3/keyfile/listing/.dirs/system-config1:/tmp/test_keyfile_DHULK3/keyfile/listing/.dirs/system-config2 1165s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_keyfile_DHULK3/keyfile/listing/.dirs/config 1165s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_keyfile_DHULK3/keyfile/listing/.dirs/system-data1:/tmp/test_keyfile_DHULK3/keyfile/listing/.dirs/system-data2 1165s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_keyfile_DHULK3/keyfile/listing/.dirs/data 1165s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_keyfile_DHULK3/keyfile/listing/.dirs/state 1165s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_keyfile_DHULK3/keyfile/listing/.dirs/runtime 1165s ok 4 /keyfile/listing 1165s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_keyfile_DHULK3/keyfile/string/.dirs/home 1165s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_keyfile_DHULK3/keyfile/string/.dirs/cache 1165s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_keyfile_DHULK3/keyfile/string/.dirs/system-config1:/tmp/test_keyfile_DHULK3/keyfile/string/.dirs/system-config2 1165s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_keyfile_DHULK3/keyfile/string/.dirs/config 1165s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_keyfile_DHULK3/keyfile/string/.dirs/system-data1:/tmp/test_keyfile_DHULK3/keyfile/string/.dirs/system-data2 1165s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_keyfile_DHULK3/keyfile/string/.dirs/data 1165s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_keyfile_DHULK3/keyfile/string/.dirs/state 1165s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_keyfile_DHULK3/keyfile/string/.dirs/runtime 1165s ok 5 /keyfile/string 1165s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_keyfile_DHULK3/keyfile/boolean/.dirs/home 1165s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_keyfile_DHULK3/keyfile/boolean/.dirs/cache 1165s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_keyfile_DHULK3/keyfile/boolean/.dirs/system-config1:/tmp/test_keyfile_DHULK3/keyfile/boolean/.dirs/system-config2 1165s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_keyfile_DHULK3/keyfile/boolean/.dirs/config 1165s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_keyfile_DHULK3/keyfile/boolean/.dirs/system-data1:/tmp/test_keyfile_DHULK3/keyfile/boolean/.dirs/system-data2 1165s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_keyfile_DHULK3/keyfile/boolean/.dirs/data 1165s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_keyfile_DHULK3/keyfile/boolean/.dirs/state 1165s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_keyfile_DHULK3/keyfile/boolean/.dirs/runtime 1165s ok 6 /keyfile/boolean 1165s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_keyfile_DHULK3/keyfile/number/.dirs/home 1165s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_keyfile_DHULK3/keyfile/number/.dirs/cache 1165s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_keyfile_DHULK3/keyfile/number/.dirs/system-config1:/tmp/test_keyfile_DHULK3/keyfile/number/.dirs/system-config2 1165s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_keyfile_DHULK3/keyfile/number/.dirs/config 1165s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_keyfile_DHULK3/keyfile/number/.dirs/system-data1:/tmp/test_keyfile_DHULK3/keyfile/number/.dirs/system-data2 1165s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_keyfile_DHULK3/keyfile/number/.dirs/data 1165s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_keyfile_DHULK3/keyfile/number/.dirs/state 1165s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_keyfile_DHULK3/keyfile/number/.dirs/runtime 1165s ok 7 /keyfile/number 1165s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_keyfile_DHULK3/keyfile/locale-string/.dirs/home 1165s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_keyfile_DHULK3/keyfile/locale-string/.dirs/cache 1165s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_keyfile_DHULK3/keyfile/locale-string/.dirs/system-config1:/tmp/test_keyfile_DHULK3/keyfile/locale-string/.dirs/system-config2 1165s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_keyfile_DHULK3/keyfile/locale-string/.dirs/config 1165s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_keyfile_DHULK3/keyfile/locale-string/.dirs/system-data1:/tmp/test_keyfile_DHULK3/keyfile/locale-string/.dirs/system-data2 1165s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_keyfile_DHULK3/keyfile/locale-string/.dirs/data 1165s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_keyfile_DHULK3/keyfile/locale-string/.dirs/state 1165s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_keyfile_DHULK3/keyfile/locale-string/.dirs/runtime 1165s ok 8 /keyfile/locale-string 1165s ok - glib/keyfile.test 1165s # Running test: glib/power-profile-monitor.test 1165s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_keyfile_DHULK3/keyfile/lists/.dirs/home 1165s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_keyfile_DHULK3/keyfile/lists/.dirs/cache 1165s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_keyfile_DHULK3/keyfile/lists/.dirs/system-config1:/tmp/test_keyfile_DHULK3/keyfile/lists/.dirs/system-config2 1165s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_keyfile_DHULK3/keyfile/lists/.dirs/config 1165s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_keyfile_DHULK3/keyfile/lists/.dirs/system-data1:/tmp/test_keyfile_DHULK3/keyfile/lists/.dirs/system-data2 1165s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_keyfile_DHULK3/keyfile/lists/.dirs/data 1165s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_keyfile_DHULK3/keyfile/lists/.dirs/state 1165s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_keyfile_DHULK3/keyfile/lists/.dirs/runtime 1165s ok 9 /keyfile/lists 1165s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_keyfile_DHULK3/keyfile/lists-set-get/.dirs/home 1165s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_keyfile_DHULK3/keyfile/lists-set-get/.dirs/cache 1165s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_keyfile_DHULK3/keyfile/lists-set-get/.dirs/system-config1:/tmp/test_keyfile_DHULK3/keyfile/lists-set-get/.dirs/system-config2 1165s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_keyfile_DHULK3/keyfile/lists-set-get/.dirs/config 1165s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_keyfile_DHULK3/keyfile/lists-set-get/.dirs/system-data1:/tmp/test_keyfile_DHULK3/keyfile/lists-set-get/.dirs/system-data2 1165s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_keyfile_DHULK3/keyfile/lists-set-get/.dirs/data 1165s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_keyfile_DHULK3/keyfile/lists-set-get/.dirs/state 1165s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_keyfile_DHULK3/keyfile/lists-set-get/.dirs/runtime 1165s ok 10 /keyfile/lists-set-get 1165s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_keyfile_DHULK3/keyfile/group-remove/.dirs/home 1165s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_keyfile_DHULK3/keyfile/group-remove/.dirs/cache 1165s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_keyfile_DHULK3/keyfile/group-remove/.dirs/system-config1:/tmp/test_keyfile_DHULK3/keyfile/group-remove/.dirs/system-config2 1165s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_keyfile_DHULK3/keyfile/group-remove/.dirs/config 1165s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_keyfile_DHULK3/keyfile/group-remove/.dirs/system-data1:/tmp/test_keyfile_DHULK3/keyfile/group-remove/.dirs/system-data2 1165s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_keyfile_DHULK3/keyfile/group-remove/.dirs/data 1165s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_keyfile_DHULK3/keyfile/group-remove/.dirs/state 1165s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_keyfile_DHULK3/keyfile/group-remove/.dirs/runtime 1165s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=165887 1165s ok 11 /keyfile/group-remove 1165s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_keyfile_DHULK3/keyfile/key-remove/.dirs/home 1165s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_keyfile_DHULK3/keyfile/key-remove/.dirs/cache 1165s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_keyfile_DHULK3/keyfile/key-remove/.dirs/system-config1:/tmp/test_keyfile_DHULK3/keyfile/key-remove/.dirs/system-config2 1165s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_keyfile_DHULK3/keyfile/key-remove/.dirs/config 1165s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_keyfile_DHULK3/keyfile/key-remove/.dirs/system-data1:/tmp/test_keyfile_DHULK3/keyfile/key-remove/.dirs/system-data2 1165s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_keyfile_DHULK3/keyfile/key-remove/.dirs/data 1165s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_keyfile_DHULK3/keyfile/key-remove/.dirs/state 1165s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_keyfile_DHULK3/keyfile/key-remove/.dirs/runtime 1165s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=165980 1165s ok 12 /keyfile/key-remove 1165s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_keyfile_DHULK3/keyfile/groups/.dirs/home 1165s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_keyfile_DHULK3/keyfile/groups/.dirs/cache 1165s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_keyfile_DHULK3/keyfile/groups/.dirs/system-config1:/tmp/test_keyfile_DHULK3/keyfile/groups/.dirs/system-config2 1165s ok - glib/power-profile-monitor.test 1165s # Running test: glib/null-settings-backend.test 1165s ok - glib/null-settings-backend.test 1165s # Running test: glib/socket.test 1165s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_keyfile_DHULK3/keyfile/groups/.dirs/config 1165s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_keyfile_DHULK3/keyfile/groups/.dirs/system-data1:/tmp/test_keyfile_DHULK3/keyfile/groups/.dirs/system-data2 1165s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_keyfile_DHULK3/keyfile/groups/.dirs/data 1165s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_keyfile_DHULK3/keyfile/groups/.dirs/state 1165s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_keyfile_DHULK3/keyfile/groups/.dirs/runtime 1165s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=316309 1165s ok 13 /keyfile/groups 1165s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_keyfile_DHULK3/keyfile/duplicate-keys/.dirs/home 1165s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_keyfile_DHULK3/keyfile/duplicate-keys/.dirs/cache 1165s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_keyfile_DHULK3/keyfile/duplicate-keys/.dirs/system-config1:/tmp/test_keyfile_DHULK3/keyfile/duplicate-keys/.dirs/system-config2 1165s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_keyfile_DHULK3/keyfile/duplicate-keys/.dirs/config 1165s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_keyfile_DHULK3/keyfile/duplicate-keys/.dirs/system-data1:/tmp/test_keyfile_DHULK3/keyfile/duplicate-keys/.dirs/system-data2 1165s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_keyfile_DHULK3/keyfile/duplicate-keys/.dirs/data 1165s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_keyfile_DHULK3/keyfile/duplicate-keys/.dirs/state 1165s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_keyfile_DHULK3/keyfile/duplicate-keys/.dirs/runtime 1165s ok 14 /keyfile/duplicate-keys 1165s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_keyfile_DHULK3/keyfile/duplicate-groups/.dirs/home 1165s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_keyfile_DHULK3/keyfile/duplicate-groups/.dirs/cache 1165s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_keyfile_DHULK3/keyfile/duplicate-groups/.dirs/system-config1:/tmp/test_keyfile_DHULK3/keyfile/duplicate-groups/.dirs/system-config2 1165s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_keyfile_DHULK3/keyfile/duplicate-groups/.dirs/config 1165s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_keyfile_DHULK3/keyfile/duplicate-groups/.dirs/system-data1:/tmp/test_keyfile_DHULK3/keyfile/duplicate-groups/.dirs/system-data2 1165s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_keyfile_DHULK3/keyfile/duplicate-groups/.dirs/data 1165s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_keyfile_DHULK3/keyfile/duplicate-groups/.dirs/state 1165s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_keyfile_DHULK3/keyfile/duplicate-groups/.dirs/runtime 1165s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=157877 1165s ok 15 /keyfile/duplicate-groups 1165s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_keyfile_DHULK3/keyfile/duplicate-groups2/.dirs/home 1165s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_keyfile_DHULK3/keyfile/duplicate-groups2/.dirs/cache 1165s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_keyfile_DHULK3/keyfile/duplicate-groups2/.dirs/system-config1:/tmp/test_keyfile_DHULK3/keyfile/duplicate-groups2/.dirs/system-config2 1165s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_keyfile_DHULK3/keyfile/duplicate-groups2/.dirs/config 1165s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_keyfile_DHULK3/keyfile/duplicate-groups2/.dirs/system-data1:/tmp/test_keyfile_DHULK3/keyfile/duplicate-groups2/.dirs/system-data2 1165s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_keyfile_DHULK3/keyfile/duplicate-groups2/.dirs/data 1165s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_keyfile_DHULK3/keyfile/duplicate-groups2/.dirs/state 1165s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_keyfile_DHULK3/keyfile/duplicate-groups2/.dirs/runtime 1165s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=385910 1165s ok 16 /keyfile/duplicate-groups2 1165s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_keyfile_DHULK3/keyfile/group-names/.dirs/home 1165s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_keyfile_DHULK3/keyfile/group-names/.dirs/cache 1165s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_keyfile_DHULK3/keyfile/group-names/.dirs/system-config1:/tmp/test_keyfile_DHULK3/keyfile/group-names/.dirs/system-config2 1165s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_keyfile_DHULK3/keyfile/group-names/.dirs/config 1165s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_keyfile_DHULK3/keyfile/group-names/.dirs/system-data1:/tmp/test_keyfile_DHULK3/keyfile/group-names/.dirs/system-data2 1165s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_keyfile_DHULK3/keyfile/group-names/.dirs/data 1165s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_keyfile_DHULK3/keyfile/group-names/.dirs/state 1165s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_keyfile_DHULK3/keyfile/group-names/.dirs/runtime 1165s ok 17 /keyfile/group-names 1165s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_keyfile_DHULK3/keyfile/key-names/.dirs/home 1165s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_keyfile_DHULK3/keyfile/key-names/.dirs/cache 1165s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_keyfile_DHULK3/keyfile/key-names/.dirs/system-config1:/tmp/test_keyfile_DHULK3/keyfile/key-names/.dirs/system-config2 1165s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_keyfile_DHULK3/keyfile/key-names/.dirs/config 1165s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_keyfile_DHULK3/keyfile/key-names/.dirs/system-data1:/tmp/test_keyfile_DHULK3/keyfile/key-names/.dirs/system-data2 1165s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_keyfile_DHULK3/keyfile/key-names/.dirs/data 1165s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_keyfile_DHULK3/keyfile/key-names/.dirs/state 1165s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_keyfile_DHULK3/keyfile/key-names/.dirs/runtime 1165s ok 18 /keyfile/key-names 1165s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_keyfile_DHULK3/keyfile/reload/.dirs/home 1165s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_keyfile_DHULK3/keyfile/reload/.dirs/cache 1165s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_keyfile_DHULK3/keyfile/reload/.dirs/system-config1:/tmp/test_keyfile_DHULK3/keyfile/reload/.dirs/system-config2 1165s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_keyfile_DHULK3/keyfile/reload/.dirs/config 1165s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_keyfile_DHULK3/keyfile/reload/.dirs/system-data1:/tmp/test_keyfile_DHULK3/keyfile/reload/.dirs/system-data2 1165s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_keyfile_DHULK3/keyfile/reload/.dirs/data 1165s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_keyfile_DHULK3/keyfile/reload/.dirs/state 1165s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_keyfile_DHULK3/keyfile/reload/.dirs/runtime 1165s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=420686 1165s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/2927 1165s ok 19 /keyfile/reload 1165s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_keyfile_DHULK3/keyfile/int64/.dirs/home 1165s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_keyfile_DHULK3/keyfile/int64/.dirs/cache 1165s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_keyfile_DHULK3/keyfile/int64/.dirs/system-config1:/tmp/test_keyfile_DHULK3/keyfile/int64/.dirs/system-config2 1165s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_keyfile_DHULK3/keyfile/int64/.dirs/config 1165s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_keyfile_DHULK3/keyfile/int64/.dirs/system-data1:/tmp/test_keyfile_DHULK3/keyfile/int64/.dirs/system-data2 1165s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_keyfile_DHULK3/keyfile/int64/.dirs/data 1165s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_keyfile_DHULK3/keyfile/int64/.dirs/state 1165s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_keyfile_DHULK3/keyfile/int64/.dirs/runtime 1165s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=614864 1165s ok 20 /keyfile/int64 1165s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_keyfile_DHULK3/keyfile/load/.dirs/home 1165s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_keyfile_DHULK3/keyfile/load/.dirs/cache 1165s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_keyfile_DHULK3/keyfile/load/.dirs/system-config1:/tmp/test_keyfile_DHULK3/keyfile/load/.dirs/system-config2 1165s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_keyfile_DHULK3/keyfile/load/.dirs/config 1165s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_keyfile_DHULK3/keyfile/load/.dirs/system-data1:/tmp/test_keyfile_DHULK3/keyfile/load/.dirs/system-data2 1165s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_keyfile_DHULK3/keyfile/load/.dirs/data 1165s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_keyfile_DHULK3/keyfile/load/.dirs/state 1165s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_keyfile_DHULK3/keyfile/load/.dirs/runtime 1165s ok 21 /keyfile/load 1165s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_keyfile_DHULK3/keyfile/save/.dirs/home 1165s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_keyfile_DHULK3/keyfile/save/.dirs/cache 1165s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_keyfile_DHULK3/keyfile/save/.dirs/system-config1:/tmp/test_keyfile_DHULK3/keyfile/save/.dirs/system-config2 1165s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_keyfile_DHULK3/keyfile/save/.dirs/config 1165s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_keyfile_DHULK3/keyfile/save/.dirs/system-data1:/tmp/test_keyfile_DHULK3/keyfile/save/.dirs/system-data2 1165s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_keyfile_DHULK3/keyfile/save/.dirs/data 1165s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_keyfile_DHULK3/keyfile/save/.dirs/state 1165s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_keyfile_DHULK3/keyfile/save/.dirs/runtime 1165s ok 22 /keyfile/save 1165s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_keyfile_DHULK3/keyfile/load-fail/.dirs/home 1165s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_keyfile_DHULK3/keyfile/load-fail/.dirs/cache 1165s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_keyfile_DHULK3/keyfile/load-fail/.dirs/system-config1:/tmp/test_keyfile_DHULK3/keyfile/load-fail/.dirs/system-config2 1165s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_keyfile_DHULK3/keyfile/load-fail/.dirs/config 1165s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_keyfile_DHULK3/keyfile/load-fail/.dirs/system-data1:/tmp/test_keyfile_DHULK3/keyfile/load-fail/.dirs/system-data2 1165s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_keyfile_DHULK3/keyfile/load-fail/.dirs/data 1165s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_keyfile_DHULK3/keyfile/load-fail/.dirs/state 1165s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_keyfile_DHULK3/keyfile/load-fail/.dirs/runtime 1165s ok 23 /keyfile/load-fail 1165s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_keyfile_DHULK3/keyfile/non-utf8/.dirs/home 1165s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_keyfile_DHULK3/keyfile/non-utf8/.dirs/cache 1165s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_keyfile_DHULK3/keyfile/non-utf8/.dirs/system-config1:/tmp/test_keyfile_DHULK3/keyfile/non-utf8/.dirs/system-config2 1165s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_keyfile_DHULK3/keyfile/non-utf8/.dirs/config 1165s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_keyfile_DHULK3/keyfile/non-utf8/.dirs/system-data1:/tmp/test_keyfile_DHULK3/keyfile/non-utf8/.dirs/system-data2 1165s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_keyfile_DHULK3/keyfile/non-utf8/.dirs/data 1165s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_keyfile_DHULK3/keyfile/non-utf8/.dirs/state 1165s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_keyfile_DHULK3/keyfile/non-utf8/.dirs/runtime 1165s ok 24 /keyfile/non-utf8 1165s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_keyfile_DHULK3/keyfile/page-boundary/.dirs/home 1165s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_keyfile_DHULK3/keyfile/page-boundary/.dirs/cache 1165s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_keyfile_DHULK3/keyfile/page-boundary/.dirs/system-config1:/tmp/test_keyfile_DHULK3/keyfile/page-boundary/.dirs/system-config2 1165s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_keyfile_DHULK3/keyfile/page-boundary/.dirs/config 1165s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_keyfile_DHULK3/keyfile/page-boundary/.dirs/system-data1:/tmp/test_keyfile_DHULK3/keyfile/page-boundary/.dirs/system-data2 1165s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_keyfile_DHULK3/keyfile/page-boundary/.dirs/data 1165s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_keyfile_DHULK3/keyfile/page-boundary/.dirs/state 1165s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_keyfile_DHULK3/keyfile/page-boundary/.dirs/runtime 1165s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=640695 1165s ok 25 /keyfile/page-boundary 1165s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_keyfile_DHULK3/keyfile/ref/.dirs/home 1165s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_keyfile_DHULK3/keyfile/ref/.dirs/cache 1165s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_keyfile_DHULK3/keyfile/ref/.dirs/system-config1:/tmp/test_keyfile_DHULK3/keyfile/ref/.dirs/system-config2 1165s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_keyfile_DHULK3/keyfile/ref/.dirs/config 1165s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_keyfile_DHULK3/keyfile/ref/.dirs/system-data1:/tmp/test_keyfile_DHULK3/keyfile/ref/.dirs/system-data2 1165s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_keyfile_DHULK3/keyfile/ref/.dirs/data 1165s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_keyfile_DHULK3/keyfile/ref/.dirs/state 1165s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_keyfile_DHULK3/keyfile/ref/.dirs/runtime 1165s ok 26 /keyfile/ref 1165s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_keyfile_DHULK3/keyfile/replace-value/.dirs/home 1165s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_keyfile_DHULK3/keyfile/replace-value/.dirs/cache 1165s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_keyfile_DHULK3/keyfile/replace-value/.dirs/system-config1:/tmp/test_keyfile_DHULK3/keyfile/replace-value/.dirs/system-config2 1165s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_keyfile_DHULK3/keyfile/replace-value/.dirs/config 1165s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_keyfile_DHULK3/keyfile/replace-value/.dirs/system-data1:/tmp/test_keyfile_DHULK3/keyfile/replace-value/.dirs/system-data2 1165s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_keyfile_DHULK3/keyfile/replace-value/.dirs/data 1165s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_keyfile_DHULK3/keyfile/replace-value/.dirs/state 1165s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_keyfile_DHULK3/keyfile/replace-value/.dirs/runtime 1165s ok 27 /keyfile/replace-value 1165s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_keyfile_DHULK3/keyfile/list-separator/.dirs/home 1165s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_keyfile_DHULK3/keyfile/list-separator/.dirs/cache 1165s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_keyfile_DHULK3/keyfile/list-separator/.dirs/system-config1:/tmp/test_keyfile_DHULK3/keyfile/list-separator/.dirs/system-config2 1165s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_keyfile_DHULK3/keyfile/list-separator/.dirs/config 1165s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_keyfile_DHULK3/keyfile/list-separator/.dirs/system-data1:/tmp/test_keyfile_DHULK3/keyfile/list-separator/.dirs/system-data2 1165s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_keyfile_DHULK3/keyfile/list-separator/.dirs/data 1165s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_keyfile_DHULK3/keyfile/list-separator/.dirs/state 1165s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_keyfile_DHULK3/keyfile/list-separator/.dirs/runtime 1165s ok 28 /keyfile/list-separator 1165s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_keyfile_DHULK3/keyfile/empty-string/.dirs/home 1165s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_keyfile_DHULK3/keyfile/empty-string/.dirs/cache 1165s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_keyfile_DHULK3/keyfile/empty-string/.dirs/system-config1:/tmp/test_keyfile_DHULK3/keyfile/empty-string/.dirs/system-config2 1165s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_keyfile_DHULK3/keyfile/empty-string/.dirs/config 1165s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_keyfile_DHULK3/keyfile/empty-string/.dirs/system-data1:/tmp/test_keyfile_DHULK3/keyfile/empty-string/.dirs/system-data2 1165s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_keyfile_DHULK3/keyfile/empty-string/.dirs/data 1165s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_keyfile_DHULK3/keyfile/empty-string/.dirs/state 1165s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_keyfile_DHULK3/keyfile/empty-string/.dirs/runtime 1165s ok 29 /keyfile/empty-string 1165s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_keyfile_DHULK3/keyfile/limbo/.dirs/home 1165s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_keyfile_DHULK3/keyfile/limbo/.dirs/cache 1165s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_keyfile_DHULK3/keyfile/limbo/.dirs/system-config1:/tmp/test_keyfile_DHULK3/keyfile/limbo/.dirs/system-config2 1165s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_keyfile_DHULK3/keyfile/limbo/.dirs/config 1165s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_keyfile_DHULK3/keyfile/limbo/.dirs/system-data1:/tmp/test_keyfile_DHULK3/keyfile/limbo/.dirs/system-data2 1165s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_keyfile_DHULK3/keyfile/limbo/.dirs/data 1165s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_keyfile_DHULK3/keyfile/limbo/.dirs/state 1165s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_keyfile_DHULK3/keyfile/limbo/.dirs/runtime 1165s ok 30 /keyfile/limbo 1165s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_keyfile_DHULK3/keyfile/utf8/.dirs/home 1165s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_keyfile_DHULK3/keyfile/utf8/.dirs/cache 1165s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_keyfile_DHULK3/keyfile/utf8/.dirs/system-config1:/tmp/test_keyfile_DHULK3/keyfile/utf8/.dirs/system-config2 1165s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_keyfile_DHULK3/keyfile/utf8/.dirs/config 1165s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_keyfile_DHULK3/keyfile/utf8/.dirs/system-data1:/tmp/test_keyfile_DHULK3/keyfile/utf8/.dirs/system-data2 1165s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_keyfile_DHULK3/keyfile/utf8/.dirs/data 1165s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_keyfile_DHULK3/keyfile/utf8/.dirs/state 1165s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_keyfile_DHULK3/keyfile/utf8/.dirs/runtime 1165s # Testing invalid encoding ‘non-UTF-8’ 1165s # Testing invalid encoding ‘UTF’ 1165s # Testing invalid encoding ‘UTF-9’ 1165s ok 31 /keyfile/utf8 1165s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_keyfile_DHULK3/keyfile/roundtrip/.dirs/home 1165s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_keyfile_DHULK3/keyfile/roundtrip/.dirs/cache 1165s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_keyfile_DHULK3/keyfile/roundtrip/.dirs/system-config1:/tmp/test_keyfile_DHULK3/keyfile/roundtrip/.dirs/system-config2 1165s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_keyfile_DHULK3/keyfile/roundtrip/.dirs/config 1165s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_keyfile_DHULK3/keyfile/roundtrip/.dirs/system-data1:/tmp/test_keyfile_DHULK3/keyfile/roundtrip/.dirs/system-data2 1165s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_keyfile_DHULK3/keyfile/roundtrip/.dirs/data 1165s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_keyfile_DHULK3/keyfile/roundtrip/.dirs/state 1165s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_keyfile_DHULK3/keyfile/roundtrip/.dirs/runtime 1165s ok 32 /keyfile/roundtrip 1165s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_keyfile_DHULK3/keyfile/bytes/.dirs/home 1165s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_keyfile_DHULK3/keyfile/bytes/.dirs/cache 1165s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_keyfile_DHULK3/keyfile/bytes/.dirs/system-config1:/tmp/test_keyfile_DHULK3/keyfile/bytes/.dirs/system-config2 1165s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_keyfile_DHULK3/keyfile/bytes/.dirs/config 1165s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_keyfile_DHULK3/keyfile/bytes/.dirs/system-data1:/tmp/test_keyfile_DHULK3/keyfile/bytes/.dirs/system-data2 1165s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_keyfile_DHULK3/keyfile/bytes/.dirs/data 1165s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_keyfile_DHULK3/keyfile/bytes/.dirs/state 1165s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_keyfile_DHULK3/keyfile/bytes/.dirs/runtime 1165s ok 33 /keyfile/bytes 1165s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_keyfile_DHULK3/keyfile/get-locale/.dirs/home 1165s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_keyfile_DHULK3/keyfile/get-locale/.dirs/cache 1165s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_keyfile_DHULK3/keyfile/get-locale/.dirs/system-config1:/tmp/test_keyfile_DHULK3/keyfile/get-locale/.dirs/system-config2 1165s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_keyfile_DHULK3/keyfile/get-locale/.dirs/config 1165s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_keyfile_DHULK3/keyfile/get-locale/.dirs/system-data1:/tmp/test_keyfile_DHULK3/keyfile/get-locale/.dirs/system-data2 1165s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_keyfile_DHULK3/keyfile/get-locale/.dirs/data 1165s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_keyfile_DHULK3/keyfile/get-locale/.dirs/state 1165s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_keyfile_DHULK3/keyfile/get-locale/.dirs/runtime 1165s ok 34 /keyfile/get-locale 1165s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_keyfile_DHULK3/keyfile/free-when-not-last-ref/.dirs/home 1165s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_keyfile_DHULK3/keyfile/free-when-not-last-ref/.dirs/cache 1165s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_keyfile_DHULK3/keyfile/free-when-not-last-ref/.dirs/system-config1:/tmp/test_keyfile_DHULK3/keyfile/free-when-not-last-ref/.dirs/system-config2 1165s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_keyfile_DHULK3/keyfile/free-when-not-last-ref/.dirs/config 1165s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_keyfile_DHULK3/keyfile/free-when-not-last-ref/.dirs/system-data1:/tmp/test_keyfile_DHULK3/keyfile/free-when-not-last-ref/.dirs/system-data2 1165s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_keyfile_DHULK3/keyfile/free-when-not-last-ref/.dirs/data 1165s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_keyfile_DHULK3/keyfile/free-when-not-last-ref/.dirs/state 1165s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_keyfile_DHULK3/keyfile/free-when-not-last-ref/.dirs/runtime 1165s ok 35 /keyfile/free-when-not-last-ref 1165s # Start of locale-string tests 1165s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_keyfile_DHULK3/keyfile/locale-string/multiple-loads/.dirs/home 1165s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_keyfile_DHULK3/keyfile/locale-string/multiple-loads/.dirs/cache 1165s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_keyfile_DHULK3/keyfile/locale-string/multiple-loads/.dirs/system-config1:/tmp/test_keyfile_DHULK3/keyfile/locale-string/multiple-loads/.dirs/system-config2 1165s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_keyfile_DHULK3/keyfile/locale-string/multiple-loads/.dirs/config 1165s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_keyfile_DHULK3/keyfile/locale-string/multiple-loads/.dirs/system-data1:/tmp/test_keyfile_DHULK3/keyfile/locale-string/multiple-loads/.dirs/system-data2 1165s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_keyfile_DHULK3/keyfile/locale-string/multiple-loads/.dirs/data 1165s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_keyfile_DHULK3/keyfile/locale-string/multiple-loads/.dirs/state 1165s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_keyfile_DHULK3/keyfile/locale-string/multiple-loads/.dirs/runtime 1165s # /keyfile/locale-string/multiple-loads summary: Check that loading with translations multiple times works 1165s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/2361 1165s ok 36 /keyfile/locale-string/multiple-loads 1165s # End of locale-string tests 1165s # End of keyfile tests 1165s TAP version 14 1165s # random seed: R02S98e4d044635340a81a412ef31367c66c 1165s 1..1 1165s # Start of power-profile-monitor tests 1165s # GLib-GIO-DEBUG: Failed to initialize portal (GPowerProfileMonitorPortal) for gio-power-profile-monitor: Not using portals 1165s # GLib-GIO-DEBUG: _g_io_module_get_default: Found default implementation dbus (GPowerProfileMonitorDBus) for ‘gio-power-profile-monitor’ 1165s ok 1 /power-profile-monitor/default 1165s # End of power-profile-monitor tests 1165s TAP version 14 1165s # random seed: R02S4c0765dbb45c67386a9b8ea447bb89d4 1165s 1..1 1165s # Start of null-settings-backend tests 1165s ok 1 /null-settings-backend/extension-point-registered 1165s # End of null-settings-backend tests 1165s TAP version 14 1165s # random seed: R02S25e655f7edac7a0b84f98893c98202d5 1165s 1..30 1165s # Start of socket tests 1166s ok 1 /socket/ipv4_sync 1166s # slow test /socket/ipv4_sync executed in 1.00 secs 1167s ok 2 /socket/ipv4_async 1167s # slow test /socket/ipv4_async executed in 1.00 secs 1167s ok 3 /socket/ipv6_sync 1167s ok 4 /socket/ipv6_async 1167s ok 5 /socket/ipv6_v4mapped 1168s ok 6 /socket/close_graceful 1168s # slow test /socket/close_graceful executed in 1.00 secs 1168s ok 7 /socket/timed_wait # SKIP Not running timing heavy test 1168s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=741707 1168s ok 8 /socket/fd_reuse 1168s ok 9 /socket/address 1168s ok 10 /socket/unix-from-fd 1168s ok 11 /socket/unix-connection 1168s ok 12 /socket/unix-connection-ancillary-data 1168s ok 13 /socket/source-postmortem 1168s ok 14 /socket/read_write 1168s ok 15 /socket/read_writev 1168s # /socket/receive_bytes summary: Test basic functionality of g_socket_receive_bytes() 1168s ok 16 /socket/receive_bytes 1168s # /socket/receive_bytes_from summary: Test basic functionality of g_socket_receive_bytes_from() 1168s ok 17 /socket/receive_bytes_from 1168s # Start of ipv4_sync tests 1168s ok 18 /socket/ipv4_sync/datagram 1168s # Start of datagram tests 1169s ok 19 /socket/ipv4_sync/datagram/timeouts 1169s # slow test /socket/ipv4_sync/datagram/timeouts executed in 1.10 secs 1169s # End of datagram tests 1169s # End of ipv4_sync tests 1169s # Start of ipv6_sync tests 1169s ok 20 /socket/ipv6_sync/datagram 1169s # Start of datagram tests 1170s # Executing: glib/socket.test 1170s ok 21 /socket/ipv6_sync/datagram/timeouts 1170s # slow test /socket/ipv6_sync/datagram/timeouts executed in 1.10 secs 1170s # End of datagram tests 1170s # End of ipv6_sync tests 1170s # Start of reuse tests 1170s ok 22 /socket/reuse/tcp 1170s ok 23 /socket/reuse/udp 1170s # End of reuse tests 1170s # Start of get_available tests 1171s ok 24 /socket/get_available/datagram 1171s ok 25 /socket/get_available/stream 1171s # End of get_available tests 1171s # Start of credentials tests 1171s # Supported on this OS: GCredentials:linux-ucred:pid=0 1171s ok 26 /socket/credentials/tcp_client 1171s # Supported on this OS: GCredentials:linux-ucred:pid=0 1171s ok 27 /socket/credentials/tcp_server 1171s # Supported on this OS: GCredentials:linux-ucred:pid=30047,uid=1000,gid=1000 1171s ok 28 /socket/credentials/unix_socketpair 1171s # End of credentials tests 1171s # Start of accept tests 1171s # /socket/accept/cancelled summary: Calling g_socket_accept() with a cancelled cancellable should return immediately regardless of whether the socket is blocking 1171s ok 29 /socket/accept/cancelled 1171s # End of accept tests 1171s # Start of connect tests 1171s # /socket/connect/cancelled summary: Calling g_socket_connect() with a cancelled cancellable should return immediately regardless of whether the socket is blocking 1171s ok 30 /socket/connect/cancelled 1171s # End of connect tests 1171s # End of socket tests 1171s ok - glib/socket.test 1171s # Running test: glib/pollable.test 1171s TAP version 14 1171s # random seed: R02Sa1a6515c48facbed9be2873d9266b516 1171s 1..6 1171s # Start of pollable tests 1171s ok 1 /pollable/converter 1171s ok - glib/pollable.test 1171s # Running test: glib/gsocketclient-slow.test 1171s # GLib-GIO-DEBUG: _g_io_module_get_default: Found default implementation dummy (GDummyProxyResolver) for ‘gio-proxy-resolver’ 1171s # GLib-GIO-DEBUG: g_socket_client_connect_async: starting new g_socket_client_connect_async() with GTask 0x7821618 and GSocketClientAsyncConnectData 0x781e870 1171s # GLib-GIO-DEBUG: GSocketClient: Starting new address enumeration 1171s # GLib-GIO-DEBUG: GSocketClient: Address enumeration succeeded 1171s # GLib-GIO-DEBUG: g_socket_client_enumerator_callback: starting connection attempt 0x78251f0 for GSocketClientAsyncConnectData 0x781e870 1171s # GLib-GIO-DEBUG: GSocketClient: Starting TCP connection attempt 1171s # GLib-GIO-DEBUG: GSocketClient: TCP connection successful 1171s # GLib-GIO-DEBUG: GSocketClient: Starting application layer connection 1171s # GLib-GIO-DEBUG: GSocketClient: Connection successful! 1171s ok 2 /pollable/socket 1171s # Start of unix tests 1171s # /pollable/unix/pipe summary: Test that pipes are considered pollable, just like sockets 1171s ok 3 /pollable/unix/pipe 1171s # /pollable/unix/pty summary: Test that PTYs are considered pollable 1171s ok 4 /pollable/unix/pty 1171s # /pollable/unix/file summary: Test that regular files are not considered pollable 1171s ok 5 /pollable/unix/file 1171s # /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 1171s ok 6 /pollable/unix/nulldev 1171s # End of unix tests 1171s # End of pollable tests 1171s TAP version 14 1171s # random seed: R02S310d6c0bdbb0cc8423a64e95b5227292 1171s 1..4 1171s # Start of socket-client tests 1171s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3184 1171s # GLib-GIO-DEBUG: _g_io_module_get_default: Found default implementation dummy (GDummyProxyResolver) for ‘gio-proxy-resolver’ 1171s # GLib-GIO-DEBUG: g_socket_client_connect_async: starting new g_socket_client_connect_async() with GTask 0x7415ff0 and GSocketClientAsyncConnectData 0x740c810 1171s # GLib-GIO-DEBUG: GSocketClient: Starting new address enumeration 1171s # GLib-GIO-DEBUG: GSocketClient: Address enumeration succeeded 1171s # GLib-GIO-DEBUG: g_socket_client_enumerator_callback: starting connection attempt 0x7411960 for GSocketClientAsyncConnectData 0x740c810 1171s # GLib-GIO-DEBUG: GSocketClient: Starting TCP connection attempt 1171s # GLib-GIO-DEBUG: GSocketClient: Connection attempt delay reached, trying another enumeration 1171s # GLib-GIO-DEBUG: GSocketClient: Starting new address enumeration 1171s # GLib-GIO-DEBUG: GSocketClient: Connection attempt failed: Connection refused 1171s # GLib-GIO-DEBUG: GSocketClient: Starting new address enumeration 1171s # GLib-GIO-DEBUG: GSocketClient: Address enumeration succeeded 1171s # GLib-GIO-DEBUG: g_socket_client_enumerator_callback: starting connection attempt 0x7411960 for GSocketClientAsyncConnectData 0x740c810 1171s # GLib-GIO-DEBUG: GSocketClient: Starting TCP connection attempt 1172s # GLib-GIO-DEBUG: GSocketClient: Address enumeration completed (out of addresses) 1172s # GLib-GIO-DEBUG: GSocketClient: Connection attempt failed: Connection refused 1172s # GLib-GIO-DEBUG: GSocketClient: Connection failed: Could not connect to localhost: Connection refused 1172s ok 1 /socket-client/connection-fail 1172s # slow test /socket-client/connection-fail executed in 1.20 secs 1172s # Start of happy-eyeballs tests 1172s # GLib-GIO-DEBUG: g_socket_client_connect_async: starting new g_socket_client_connect_async() with GTask 0x7411560 and GSocketClientAsyncConnectData 0x740c810 1172s # GLib-GIO-DEBUG: GSocketClient: Starting new address enumeration 1172s # GLib-GIO-DEBUG: GSocketClient: Address enumeration succeeded 1172s # GLib-GIO-DEBUG: g_socket_client_enumerator_callback: starting connection attempt 0x7411960 for GSocketClientAsyncConnectData 0x740c810 1172s # GLib-GIO-DEBUG: GSocketClient: Starting TCP connection attempt 1172s # GLib-GIO-DEBUG: GSocketClient: Connection attempt delay reached, trying another enumeration 1172s # GLib-GIO-DEBUG: GSocketClient: Starting new address enumeration 1172s # GLib-GIO-DEBUG: GSocketClient: TCP connection successful 1172s # GLib-GIO-DEBUG: GSocketClient: Starting application layer connection 1172s # GLib-GIO-DEBUG: GSocketClient: Connection successful! 1172s ok 2 /socket-client/happy-eyeballs/slow 1172s # slow test /socket-client/happy-eyeballs/slow executed in 0.60 secs 1172s # Start of cancellation tests 1172s # GLib-GIO-DEBUG: g_socket_client_connect_async: starting new g_socket_client_connect_async() with GTask 0x7413b78 and GSocketClientAsyncConnectData 0x7411008 1172s # GLib-GIO-DEBUG: GSocketClient: Starting new address enumeration 1172s # GLib-GIO-DEBUG: GSocketClient: Connection failed: Operation was cancelled 1172s ok 3 /socket-client/happy-eyeballs/cancellation/instant 1172s # GLib-GIO-DEBUG: g_socket_client_connect_async: starting new g_socket_client_connect_async() with GTask 0x7411050 and GSocketClientAsyncConnectData 0x740a948 1172s # GLib-GIO-DEBUG: GSocketClient: Starting new address enumeration 1172s # GLib-GIO-DEBUG: GSocketClient: Address enumeration succeeded 1172s # GLib-GIO-DEBUG: g_socket_client_enumerator_callback: starting connection attempt 0x7411910 for GSocketClientAsyncConnectData 0x740a948 1172s # GLib-GIO-DEBUG: GSocketClient: Starting TCP connection attempt 1173s # GLib-GIO-DEBUG: GSocketClient: Connection attempt delay reached, trying another enumeration 1173s # GLib-GIO-DEBUG: GSocketClient: Starting new address enumeration 1173s # GLib-GIO-DEBUG: GSocketClient: TCP connection successful 1173s # GLib-GIO-DEBUG: GSocketClient: Starting application layer connection 1173s # GLib-GIO-DEBUG: GSocketClient: Connection cancelled! 1173s ok 4 /socket-client/happy-eyeballs/cancellation/delayed 1173s # slow test /socket-client/happy-eyeballs/cancellation/delayed executed in 0.60 secs 1173s # End of cancellation tests 1173s # End of happy-eyeballs tests 1173s # End of socket-client tests 1173s ok - glib/gsocketclient-slow.test 1173s # Running test: glib/reference.test 1173s TAP version 14 1173s # random seed: R02Sebba0f5ba06754d48b3705f29374a679 1173s 1..29 1173s # Start of type tests 1173s ok 1 /type/fundamentals 1173s ok 2 /type/qdata 1173s ok 3 /type/query 1173s ok 4 /type/class-private 1173s # End of type tests 1173s # Start of object tests 1173s ok 5 /object/clear 1173s ok 6 /object/clear-function 1173s ok 7 /object/set 1173s ok 8 /object/set-function 1173s ok 9 /object/value 1173s ok 10 /object/initially-unowned 1173s ok 11 /object/weak-pointer 1173s ok 12 /object/weak-ref 1173s ok 13 /object/toggle-ref 1173s ok 14 /object/qdata 1173s ok 15 /object/qdata2 1173s # Start of set tests 1173s # /object/set/derived-type summary: Check that g_set_object() doesn’t give strict aliasing warnings when used on types derived from GObject 1173s ok 16 /object/set/derived-type 1173s # End of set tests 1173s # Start of weak-pointer tests 1173s ok 17 /object/weak-pointer/clear 1173s ok 18 /object/weak-pointer/clear-function 1173s ok 19 /object/weak-pointer/set 1173s ok 20 /object/weak-pointer/set-function 1173s # End of weak-pointer tests 1173s # Start of weak-ref tests 1173s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/2390 1173s # /object/weak-ref/on-dispose summary: Test that a weak ref set during dispose vfunc is cleared 1173s ok 21 /object/weak-ref/on-dispose 1173s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/865 1173s # /object/weak-ref/on-run-dispose summary: Test that a weak ref is cleared on g_object_run_dispose() 1173s ok 22 /object/weak-ref/on-run-dispose 1173s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/2390 1173s # /object/weak-ref/on-toggle-notify summary: Test that a weak ref set on toggle notify is cleared 1173s ok 23 /object/weak-ref/on-toggle-notify 1173s ok 24 /object/weak-ref/in-toggle-notify 1173s ok 25 /object/weak-ref/many 1173s # Start of concurrent tests 1173s ok 26 /object/weak-ref/concurrent/0 1173s ok 27 /object/weak-ref/concurrent/1 1173s # End of concurrent tests 1173s # End of weak-ref tests 1173s # Start of toggle-ref tests 1173s ok 28 /object/toggle-ref/ref-on-dispose 1173s ok 29 /object/toggle-ref/ref-and-notify-on-dispose 1173s # End of toggle-ref tests 1173s # End of object tests 1173s ok - glib/reference.test 1173s # Running test: glib/gdbus-bz627724.test 1173s TAP version 14 1173s # random seed: R02Sef50c73c3cfdea291e26fe36276954fe 1173s 1..1 1173s # Start of gdbus tests 1173s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-bz627724_PV6OK3/gdbus/bz627724/.dirs/home 1173s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-bz627724_PV6OK3/gdbus/bz627724/.dirs/cache 1173s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-bz627724_PV6OK3/gdbus/bz627724/.dirs/system-config1:/tmp/test_gdbus-bz627724_PV6OK3/gdbus/bz627724/.dirs/system-config2 1173s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-bz627724_PV6OK3/gdbus/bz627724/.dirs/config 1173s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-bz627724_PV6OK3/gdbus/bz627724/.dirs/system-data1:/tmp/test_gdbus-bz627724_PV6OK3/gdbus/bz627724/.dirs/system-data2 1173s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-bz627724_PV6OK3/gdbus/bz627724/.dirs/data 1173s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-bz627724_PV6OK3/gdbus/bz627724/.dirs/state 1173s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-bz627724_PV6OK3/gdbus/bz627724/.dirs/runtime 1173s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1173s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1173s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1173s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1173s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1173s ok 1 /gdbus/bz627724 1173s # End of gdbus tests 1173s ok - glib/gdbus-bz627724.test 1173s # Running test: glib/guuid.test 1173s ok - glib/guuid.test 1173s TAP version 14 1173s # random seed: R02Sd2c34094cbf5fb9c54e7470cf1a10e39 1173s 1..2 1173s # Start of uuid tests 1173s ok 1 /uuid/string 1173s ok 2 /uuid/random 1173s # End of uuid tests 1173s # Running test: glib/power-profile-monitor-portal.test 1174s TAP version 13 1174s ok 1 __main__.TestPowerProfileMonitorPortal.test_power_profile_power_saver_enabled_portal # SKIP xdg-desktop-portal not available 1174s ok 2 __main__.TestPowerProfileMonitorPortal.test_power_profile_power_saver_enabled_portal_default # SKIP xdg-desktop-portal not available 1174s 1..2 1174s ok - glib/power-profile-monitor-portal.test 1174s # Running test: glib/cxx.test 1174s TAP version 14 1174s # random seed: R02S720f126056db675e615604dd4db31e2a 1174s 1..2 1174s # Start of gtask tests 1174s # 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. 1174s ok 1 /gtask/name 1174s # Start of name tests 1174s # 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. 1174s ok 2 /gtask/name/macro-wrapper 1174s # End of name tests 1174s # End of gtask tests 1174s ok - glib/cxx.test 1174s # Running test: glib/closure.test 1174s TAP version 14 1174s # random seed: R02Sd691547f40dbc0f227087b161e9a1155 1174s 1..6 1174s # Start of closure tests 1174s ok 1 /closure/idle 1174s ok 2 /closure/timeout 1174s ok 3 /closure/iochannel 1174s ok 4 /closure/child 1174s ok 5 /closure/fd 1174s ok 6 /closure/signal 1174s # End of closure tests 1174s ok - glib/closure.test 1174s # Running test: glib/mount-operation.test 1174s TAP version 14 1174s # random seed: R02S0a96b1be93258f4884455d0a2d5745e4 1174s 1..2 1174s # Start of mount-operation tests 1174s ok 1 /mount-operation/construction 1174s ok 2 /mount-operation/properties 1174s # End of mount-operation tests 1174s ok - glib/mount-operation.test 1174s # Running test: glib/converter-stream.test 1174s TAP version 14 1174s # random seed: R02S05a27294ab9a6d96b26570792dfc8b16 1174s 1..17 1174s # Start of converter tests 1174s ok 1 /converter/basics 1174s # End of converter tests 1174s # Start of converter-input-stream tests 1174s ok 2 /converter-input-stream/expander 1174s ok 3 /converter-input-stream/compressor 1174s # Start of truncation tests 1174s ok 4 /converter-input-stream/truncation/zlib 1174s ok 5 /converter-input-stream/truncation/gzip 1174s ok 6 /converter-input-stream/truncation/raw 1174s # End of truncation tests 1174s # Start of charset tests 1174s ok 7 /converter-input-stream/charset/utf8->latin1 1174s ok 8 /converter-input-stream/charset/latin1->utf8 1174s ok 9 /converter-input-stream/charset/fallbacks 1174s # End of charset tests 1174s # End of converter-input-stream tests 1174s # Start of converter-output-stream tests 1174s # Start of roundtrip tests 1174s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=619945 1174s ok 10 /converter-output-stream/roundtrip/zlib-0 1174s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=619945 1175s ok 11 /converter-output-stream/roundtrip/zlib-9 1175s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=619945 1175s ok 12 /converter-output-stream/roundtrip/gzip-0 1175s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=619945 1175s # Executing: glib/converter-stream.test 1175s ok 13 /converter-output-stream/roundtrip/gzip-9 1175s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=619945 1175s ok 14 /converter-output-stream/roundtrip/raw-0 1175s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=619945 1175s ok 15 /converter-output-stream/roundtrip/raw-9 1175s # End of roundtrip tests 1175s # End of converter-output-stream tests 1175s # Start of converter-stream tests 1175s # GLib-GIO-DEBUG: _g_io_module_get_default: Found default implementation dummy (GDummyProxyResolver) for ‘gio-proxy-resolver’ 1175s # GLib-GIO-DEBUG: g_socket_client_connect_async: starting new g_socket_client_connect_async() with GTask 0xaa8d8d8 and GSocketClientAsyncConnectData 0xaa90e28 1175s # GLib-GIO-DEBUG: GSocketClient: Starting new address enumeration 1175s # GLib-GIO-DEBUG: GSocketClient: Address enumeration succeeded 1175s # GLib-GIO-DEBUG: g_socket_client_enumerator_callback: starting connection attempt 0xaa958d8 for GSocketClientAsyncConnectData 0xaa90e28 1175s # GLib-GIO-DEBUG: GSocketClient: Starting TCP connection attempt 1175s # GLib-GIO-DEBUG: GSocketClient: TCP connection successful 1175s # GLib-GIO-DEBUG: GSocketClient: Starting application layer connection 1175s # GLib-GIO-DEBUG: GSocketClient: Connection successful! 1175s ok 16 /converter-stream/pollable 1175s ok 17 /converter-stream/leftover 1175s # End of converter-stream tests 1175s ok - glib/converter-stream.test 1175s # Running test: glib/gthash.test 1175s TAP version 14 1175s # random seed: R02S4485698b64204ba6a782e77688cde496 1175s 1..1 1175s # Start of gthash tests 1175s ok 1 /gthash/build-retrieve 1175s # End of gthash tests 1175s ok - glib/gthash.test 1175s # Running test: glib/regex.test 1175s TAP version 14 1175s # random seed: R02S60ca488c27ced176a81a00a142ce9416 1175s 1..849 1175s # Start of regex tests 1175s ok 1 /regex/properties 1175s ok 2 /regex/class 1175s ok 3 /regex/lookahead 1175s ok 4 /regex/lookbehind 1175s ok 5 /regex/subpattern 1175s ok 6 /regex/condition 1175s ok 7 /regex/recursion 1175s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=640489 1175s ok 8 /regex/multiline 1175s ok 9 /regex/explicit-crlf 1175s ok 10 /regex/max-lookbehind 1175s ok 11 /regex/compile-errors 1175s ok 12 /regex/jit-unsupported-matching 1175s # /regex/unmatched-named-subpattern summary: Test that unmatched subpatterns can still be queried 1175s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/2881 1175s ok 13 /regex/unmatched-named-subpattern 1175s # /regex/compiled-regex-after-jit-failure summary: Test that failed OPTIMIZE regex doesn't cause issues on subsequent matches 1175s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/2824 1175s # GLib-DEBUG: PCRE2 JIT stack limit reached, falling back to non-optimized matching. 1175s # GLib-DEBUG: PCRE2 JIT stack limit reached, falling back to non-optimized matching. 1175s ok 14 /regex/compiled-regex-after-jit-failure 1175s # Start of new tests 1175s ok 15 /regex/new/1 1175s ok 16 /regex/new/2 1175s ok 17 /regex/new/3 1175s ok 18 /regex/new/4 1175s ok 19 /regex/new/5 1175s ok 20 /regex/new/6 1175s ok 21 /regex/new/7 1175s ok 22 /regex/new/8 1175s ok 23 /regex/new/9 1175s ok 24 /regex/new/10 1175s ok 25 /regex/new/11 1175s ok 26 /regex/new/12 1175s ok 27 /regex/new/13 1175s ok 28 /regex/new/14 1175s ok 29 /regex/new/15 1175s ok 30 /regex/new/16 1175s ok 31 /regex/new/17 1175s ok 32 /regex/new/18 1175s ok 33 /regex/new/19 1175s ok 34 /regex/new/71 1175s ok 35 /regex/new/81 1175s ok 36 /regex/new/83 1175s # End of new tests 1175s # Start of new-check-flags tests 1175s ok 37 /regex/new-check-flags/20 1175s ok 38 /regex/new-check-flags/21 1175s ok 39 /regex/new-check-flags/22 1175s ok 40 /regex/new-check-flags/23 1175s ok 41 /regex/new-check-flags/24 1175s ok 42 /regex/new-check-flags/25 1175s ok 43 /regex/new-check-flags/26 1175s ok 44 /regex/new-check-flags/27 1175s ok 45 /regex/new-check-flags/28 1175s ok 46 /regex/new-check-flags/29 1175s ok 47 /regex/new-check-flags/30 1175s ok 48 /regex/new-check-flags/31 1175s ok 49 /regex/new-check-flags/32 1175s ok 50 /regex/new-check-flags/33 1175s ok 51 /regex/new-check-flags/34 1175s ok 52 /regex/new-check-flags/35 1175s ok 53 /regex/new-check-flags/36 1175s # End of new-check-flags tests 1175s # Start of new-fail tests 1175s # Compiling pattern /(/ failed with error: Error while compiling regular expression ‘(’ at char 1: missing terminating ) 1175s ok 54 /regex/new-fail/37 1175s # Compiling pattern /)/ failed with error: Error while compiling regular expression ‘)’ at char 0: missing terminating ) 1175s ok 55 /regex/new-fail/38 1175s # Compiling pattern /[/ failed with error: Error while compiling regular expression ‘[’ at char 1: missing terminating ] for character class 1175s ok 56 /regex/new-fail/39 1175s # Compiling pattern /*/ failed with error: Error while compiling regular expression ‘*’ at char 0: nothing to repeat 1175s ok 57 /regex/new-fail/40 1175s # Compiling pattern /?/ failed with error: Error while compiling regular expression ‘?’ at char 0: nothing to repeat 1175s ok 58 /regex/new-fail/41 1175s # Compiling pattern /(?Px)|(?Py)/ failed with error: Error while compiling regular expression ‘(?Px)|(?Py)’ at char 15: two named subpatterns have the same name 1175s ok 59 /regex/new-fail/42 1175s # Compiling pattern /a\/ failed with error: Error while compiling regular expression ‘a\’ at char 2: \ at end of pattern 1175s ok 60 /regex/new-fail/43 1175s # Compiling pattern /a\c/ failed with error: Error while compiling regular expression ‘a\c’ at char 3: \c at end of pattern 1175s ok 61 /regex/new-fail/44 1175s # Compiling pattern /a\l/ failed with error: Error while compiling regular expression ‘a\l’ at char 3: unrecognized character following \ 1175s ok 62 /regex/new-fail/45 1175s # Compiling pattern /a{4,2}/ failed with error: Error while compiling regular expression ‘a{4,2}’ at char 5: numbers out of order in {} quantifier 1175s ok 63 /regex/new-fail/46 1175s # Compiling pattern /a{999999,}/ failed with error: Error while compiling regular expression ‘a{999999,}’ at char 8: number too big in {} quantifier 1175s ok 64 /regex/new-fail/47 1175s # Compiling pattern /[a-z/ failed with error: Error while compiling regular expression ‘[a-z’ at char 4: missing terminating ] for character class 1175s ok 65 /regex/new-fail/48 1175s # Compiling pattern /[\B]/ failed with error: Error while compiling regular expression ‘[\B]’ at char 2: invalid escape sequence in character class 1175s ok 66 /regex/new-fail/49 1175s # Compiling pattern /[z-a]/ failed with error: Error while compiling regular expression ‘[z-a]’ at char 3: range out of order in character class 1175s ok 67 /regex/new-fail/50 1175s # Compiling pattern /^[[:alnum:]-_.]+$/ failed with error: Error while compiling regular expression ‘^[[:alnum:]-_.]+$’ at char 12: invalid range in character class 1175s ok 68 /regex/new-fail/51 1175s # Compiling pattern /{2,4}/ failed with error: Error while compiling regular expression ‘{2,4}’ at char 4: nothing to repeat 1175s ok 69 /regex/new-fail/52 1175s # Compiling pattern /a(?u)/ failed with error: Error while compiling regular expression ‘a(?u)’ at char 3: unrecognized character after (? or (?- 1175s ok 70 /regex/new-fail/53 1175s # Compiling pattern /a(?<$foo)bar/ failed with error: Error while compiling regular expression ‘a(?<$foo)bar’ at char 4: missing subpattern name after (?& 1175s ok 71 /regex/new-fail/54 1175s # Compiling pattern /a[:alpha:]b/ failed with error: Error while compiling regular expression ‘a[:alpha:]b’ at char 1: POSIX named classes are supported only within a class 1175s ok 72 /regex/new-fail/55 1175s # Compiling pattern /a(b/ failed with error: Error while compiling regular expression ‘a(b’ at char 3: missing terminating ) 1175s ok 73 /regex/new-fail/56 1175s # Compiling pattern /a)b/ failed with error: Error while compiling regular expression ‘a)b’ at char 1: missing terminating ) 1175s ok 74 /regex/new-fail/57 1175s # Compiling pattern /a(?R/ failed with error: Error while compiling regular expression ‘a(?R’ at char 4: missing terminating ) 1175s ok 75 /regex/new-fail/58 1175s # Compiling pattern /a(?-54/ failed with error: Error while compiling regular expression ‘a(?-54’ at char 6: reference to non-existent subpattern 1175s ok 76 /regex/new-fail/59 1175s # Compiling pattern /(ab\2)/ failed with error: Error while compiling regular expression ‘(ab\2)’ at char 4: reference to non-existent subpattern 1175s ok 77 /regex/new-fail/60 1175s # Compiling pattern /a(?#abc/ failed with error: Error while compiling regular expression ‘a(?#abc’ at char 7: missing ) after comment 1175s ok 78 /regex/new-fail/61 1175s # Compiling pattern /(?<=a+)b/ failed with error: Error while compiling regular expression ‘(?<=a+)b’ at char 0: lookbehind assertion is not fixed length 1175s ok 79 /regex/new-fail/62 1175s # Compiling pattern /(?(1?)a|b)/ failed with error: Error while compiling regular expression ‘(?(1?)a|b)’ at char 4: malformed number or name after (?( 1175s ok 80 /regex/new-fail/63 1175s # Compiling pattern /(a)(?(1)a|b|c)/ failed with error: Error while compiling regular expression ‘(a)(?(1)a|b|c)’ at char 3: conditional group contains more than two branches 1175s ok 81 /regex/new-fail/64 1175s # Compiling pattern /(?(?i))/ failed with error: Error while compiling regular expression ‘(?(?i))’ at char 2: assertion expected after (?( 1175s ok 82 /regex/new-fail/65 1175s # Compiling pattern /a[[:fubar:]]b/ failed with error: Error while compiling regular expression ‘a[[:fubar:]]b’ at char 11: unknown POSIX class name 1175s ok 83 /regex/new-fail/66 1175s # Compiling pattern /[[.ch.]]/ failed with error: Error while compiling regular expression ‘[[.ch.]]’ at char 7: POSIX collating elements are not supported 1175s ok 84 /regex/new-fail/67 1175s # Compiling pattern /\x{110000}/ failed with error: Error while compiling regular expression ‘\x{110000}’ at char 9: character value in \x{...} sequence is too large 1175s ok 85 /regex/new-fail/68 1175s # Compiling pattern /^(?(0)f|b)oo/ failed with error: Error while compiling regular expression ‘^(?(0)f|b)oo’ at char 5: reference to non-existent subpattern 1175s ok 86 /regex/new-fail/69 1175s # Compiling pattern /(?<=\C)X/ failed with error: Error while compiling regular expression ‘(?<=\C)X’ at char 0: \C not allowed in lookbehind assertion 1175s ok 87 /regex/new-fail/70 1175s # Compiling pattern /(?(?foo)\gfoo)\geks)(?Peccs)/ failed with error: Error while compiling regular expression ‘(?Peks)(?Peccs)’ at char 16: two named subpatterns have the same name 1175s ok 90 /regex/new-fail/74 1175s # Compiling pattern /\666/ failed with error: Error while compiling regular expression ‘\666’ at char 4: octal value is greater than \377 1175s ok 91 /regex/new-fail/75 1175s # Compiling pattern /^(?(DEFINE) abc | xyz ) / failed with error: Error while compiling regular expression ‘^(?(DEFINE) abc | xyz ) ’ at char 4: DEFINE group contains more than one branch 1175s ok 92 /regex/new-fail/76 1175s # Compiling pattern /a/ failed with error: Invalid newline flags 1175s ok 93 /regex/new-fail/77 1175s # Compiling pattern /^(a)\g"3/ failed with error: Error while compiling regular expression ‘^(a)\g"3’ at char 6: \g is not followed by a braced, angle-bracketed, or quoted name or number, or by a plain number 1175s ok 94 /regex/new-fail/78 1175s # Compiling pattern /^(a)\g{3/ failed with error: Error while compiling regular expression ‘^(a)\g{3’ at char 6: \g is not followed by a braced, angle-bracketed, or quoted name or number, or by a plain number 1175s ok 95 /regex/new-fail/79 1175s # Compiling pattern /^(a)\g{0}/ failed with error: Error while compiling regular expression ‘^(a)\g{0}’ at char 9: reference to non-existent subpattern 1175s ok 96 /regex/new-fail/80 1175s # Compiling pattern /a(*FOOBAR)b/ failed with error: Error while compiling regular expression ‘a(*FOOBAR)b’ at char 9: (*VERB) not recognized 1175s ok 97 /regex/new-fail/82 1175s # Compiling pattern /(?)(?&)/ failed with error: Error while compiling regular expression ‘(?)(?&)’ at char 9: missing subpattern name after (?& 1175s ok 98 /regex/new-fail/84 1175s # Compiling pattern /(?+-a)/ failed with error: Error while compiling regular expression ‘(?+-a)’ at char 2: a numbered reference must not be zero 1175s ok 99 /regex/new-fail/85 1175s # Compiling pattern /(?|(?A)|(?B))/ failed with error: Error while compiling regular expression ‘(?|(?A)|(?B))’ at char 16: different names for subpatterns of the same number are not allowed 1175s ok 100 /regex/new-fail/86 1175s # Compiling pattern /a(*MARK)b/ failed with error: Error while compiling regular expression ‘a(*MARK)b’ at char 7: (*MARK) must have an argument 1175s ok 101 /regex/new-fail/87 1175s # Compiling pattern /^\c€/ failed with error: Error while compiling regular expression ‘^\c€’ at char 3: \c must be followed by an ASCII character 1175s ok 102 /regex/new-fail/88 1175s # Compiling pattern /\k/ failed with error: Error while compiling regular expression ‘\k’ at char 2: \k is not followed by a braced, angle-bracketed, or quoted name 1175s ok 103 /regex/new-fail/89 1175s # Compiling pattern /a[\NB]c/ failed with error: Error while compiling regular expression ‘a[\NB]c’ at char 4: \N is not supported in a class 1175s ok 104 /regex/new-fail/90 1175s # Compiling pattern /(*:0123456789ABCDEF0123456789ABCDEF0123456789ABCDEF0123456789ABCDEF0123456789ABCDEF0123456789ABCDEF0123456789ABCDEF0123456789ABCDEF0123456789ABCDEF0123456789ABCDEF0123456789ABCDEF0123456789ABCDEF0123456789ABCDEF0123456789ABCDEF0123456789ABCDEF0123456789ABCDEFG)XX/ failed with error: Error while compiling regular expression ‘(*:0123456789ABCDEF0123456789ABCDEF0123456789ABCDEF0123456789ABCDEF0123456789ABCDEF0123456789ABCDEF0123456789ABCDEF0123456789ABCDEF0123456789ABCDEF0123456789ABCDEF0123456789ABCDEF0123456789ABCDEF0123456789ABCDEF0123456789ABCDEF0123456789ABCDEF0123456789ABCDEFG)XX’ at char 260: name is too long in (*MARK), (*PRUNE), (*SKIP), or (*THEN) 1175s ok 105 /regex/new-fail/91 1175s # Compiling pattern /(?i-x)((?:(?i-x)[^\x00\t\n\f\r "'/<=>\x{007F}-\x{009F}\x{FDD0}-\x{FDEF}\x{FFFE}\x{FFFF}\x{1FFFE}\x{1FFFF}\x{2FFFE}\x{2FFFF}\x{3FFFE}\x{3FFFF}\x{4FFFE}\x{4FFFF}\x{5FFFE}\x{5FFFF}\x{6FFFE}\x{6FFFF}\x{7FFFE}\x{7FFFF}\x{8FFFE}\x{8FFFF}\x{9FFFE}\x{9FFFF}\x{AFFFE}\x{AFFFF}\x{BFFFE}\x{BFFFF}\x{CFFFE}\x{CFFFF}\x{DFFFE}\x{DFFFF}\x{EFFFE}\x{EFFFF}\x{FFFFE}\x{FFFFF}\x{10FFFE}\x{10FFFF}]+)\s*=\s*)(\")/ failed with error: Error while compiling regular expression ‘(?i-x)((?:(?i-x)[^\x00\t\n\f\r "'/<=>\x{007F}-\x{009F}\x{FDD0}-\x{FDEF}\x{FFFE}\x{FFFF}\x{1FFFE}\x{1FFFF}\x{2FFFE}\x{2FFFF}\x{3FFFE}\x{3FFFF}\x{4FFFE}\x{4FFFF}\x{5FFFE}\x{5FFFF}\x{6FFFE}\x{6FFFF}\x{7FFFE}\x{7FFFF}\x{8FFFE}\x{8FFFF}\x{9FFFE}\x{9FFFF}\x{AFFFE}\x{AFFFF}\x{BFFFE}\x{BFFFF}\x{CFFFE}\x{CFFFF}\x{DFFFE}\x{DFFFF}\x{EFFFE}\x{EFFFF}\x{FFFFE}\x{FFFFF}\x{10FFFE}\x{10FFFF}]+)\s*=\s*)(\")’ at char 61: character value in \x{...} sequence is too large 1175s ok 106 /regex/new-fail/92 1175s # End of new-fail tests 1175s # Start of match-simple tests 1175s ok 107 /regex/match-simple/93 1175s ok 108 /regex/match-simple/94 1175s ok 109 /regex/match-simple/95 1175s ok 110 /regex/match-simple/96 1175s ok 111 /regex/match-simple/97 1175s ok 112 /regex/match-simple/98 1175s ok 113 /regex/match-simple/99 1175s ok 114 /regex/match-simple/100 1175s ok 115 /regex/match-simple/101 1175s ok 116 /regex/match-simple/102 1175s ok 117 /regex/match-simple/103 1175s ok 118 /regex/match-simple/104 1175s ok 119 /regex/match-simple/105 1175s ok 120 /regex/match-simple/106 1175s ok 121 /regex/match-simple/107 1175s ok 122 /regex/match-simple/108 1175s ok 123 /regex/match-simple/109 1175s ok 124 /regex/match-simple/110 1175s ok 125 /regex/match-simple/111 1175s ok 126 /regex/match-simple/112 1175s ok 127 /regex/match-simple/113 1175s ok 128 /regex/match-simple/114 1175s ok 129 /regex/match-simple/115 1175s ok 130 /regex/match-simple/116 1175s ok 131 /regex/match-simple/117 1175s ok 132 /regex/match-simple/118 1175s ok 133 /regex/match-simple/119 1175s ok 134 /regex/match-simple/120 1175s ok 135 /regex/match-simple/121 1175s ok 136 /regex/match-simple/122 1175s ok 137 /regex/match-simple/123 1175s ok 138 /regex/match-simple/124 1175s ok 139 /regex/match-simple/125 1175s ok 140 /regex/match-simple/126 1175s ok 141 /regex/match-simple/127 1175s ok 142 /regex/match-simple/128 1175s ok 143 /regex/match-simple/129 1175s ok 144 /regex/match-simple/130 1175s ok 145 /regex/match-simple/131 1175s ok 146 /regex/match-simple/132 1175s ok 147 /regex/match-simple/133 1175s ok 148 /regex/match-simple/134 1175s ok 149 /regex/match-simple/135 1175s ok 150 /regex/match-simple/136 1175s ok 151 /regex/match-simple/137 1175s ok 152 /regex/match-simple/138 1175s ok 153 /regex/match-simple/139 1175s ok 154 /regex/match-simple/140 1175s ok 155 /regex/match-simple/141 1175s ok 156 /regex/match-simple/142 1175s ok 157 /regex/match-simple/143 1175s ok 158 /regex/match-simple/144 1175s ok 159 /regex/match-simple/145 1175s ok 160 /regex/match-simple/146 1175s ok 161 /regex/match-simple/147 1175s ok 162 /regex/match-simple/148 1175s ok 163 /regex/match-simple/149 1175s ok 164 /regex/match-simple/150 1175s ok 165 /regex/match-simple/151 1175s ok 166 /regex/match-simple/152 1175s ok 167 /regex/match-simple/153 1175s ok 168 /regex/match-simple/154 1175s ok 169 /regex/match-simple/155 1175s ok 170 /regex/match-simple/156 1175s ok 171 /regex/match-simple/157 1175s ok 172 /regex/match-simple/158 1175s ok 173 /regex/match-simple/159 1175s ok 174 /regex/match-simple/160 1175s ok 175 /regex/match-simple/161 1175s ok 176 /regex/match-simple/162 1175s ok 177 /regex/match-simple/163 1175s ok 178 /regex/match-simple/164 1175s ok 179 /regex/match-simple/165 1175s # End of match-simple tests 1175s # Start of match-simple-optimized tests 1175s ok 180 /regex/match-simple-optimized/93 1175s ok 181 /regex/match-simple-optimized/94 1175s ok 182 /regex/match-simple-optimized/95 1175s ok 183 /regex/match-simple-optimized/96 1175s ok 184 /regex/match-simple-optimized/97 1175s ok 185 /regex/match-simple-optimized/98 1175s ok 186 /regex/match-simple-optimized/99 1175s ok 187 /regex/match-simple-optimized/100 1175s ok 188 /regex/match-simple-optimized/101 1175s ok 189 /regex/match-simple-optimized/102 1175s ok 190 /regex/match-simple-optimized/103 1175s ok 191 /regex/match-simple-optimized/104 1175s ok 192 /regex/match-simple-optimized/105 1175s ok 193 /regex/match-simple-optimized/106 1175s ok 194 /regex/match-simple-optimized/107 1175s ok 195 /regex/match-simple-optimized/108 1175s ok 196 /regex/match-simple-optimized/109 1175s ok 197 /regex/match-simple-optimized/110 1175s ok 198 /regex/match-simple-optimized/111 1175s ok 199 /regex/match-simple-optimized/112 1175s ok 200 /regex/match-simple-optimized/113 1175s ok 201 /regex/match-simple-optimized/114 1175s ok 202 /regex/match-simple-optimized/115 1175s ok 203 /regex/match-simple-optimized/116 1175s ok 204 /regex/match-simple-optimized/117 1175s ok 205 /regex/match-simple-optimized/118 1175s ok 206 /regex/match-simple-optimized/119 1175s ok 207 /regex/match-simple-optimized/120 1175s ok 208 /regex/match-simple-optimized/121 1175s ok 209 /regex/match-simple-optimized/122 1175s ok 210 /regex/match-simple-optimized/123 1175s ok 211 /regex/match-simple-optimized/124 1175s ok 212 /regex/match-simple-optimized/125 1175s ok 213 /regex/match-simple-optimized/126 1175s ok 214 /regex/match-simple-optimized/127 1175s ok 215 /regex/match-simple-optimized/128 1175s ok 216 /regex/match-simple-optimized/129 1175s ok 217 /regex/match-simple-optimized/130 1175s ok 218 /regex/match-simple-optimized/131 1175s ok 219 /regex/match-simple-optimized/132 1175s ok 220 /regex/match-simple-optimized/133 1175s ok 221 /regex/match-simple-optimized/134 1175s ok 222 /regex/match-simple-optimized/135 1175s ok 223 /regex/match-simple-optimized/136 1175s ok 224 /regex/match-simple-optimized/137 1175s ok 225 /regex/match-simple-optimized/138 1175s ok 226 /regex/match-simple-optimized/139 1175s ok 227 /regex/match-simple-optimized/140 1175s ok 228 /regex/match-simple-optimized/141 1175s ok 229 /regex/match-simple-optimized/142 1175s ok 230 /regex/match-simple-optimized/143 1175s ok 231 /regex/match-simple-optimized/144 1175s ok 232 /regex/match-simple-optimized/145 1175s ok 233 /regex/match-simple-optimized/146 1175s ok 234 /regex/match-simple-optimized/147 1175s ok 235 /regex/match-simple-optimized/148 1175s ok 236 /regex/match-simple-optimized/149 1175s ok 237 /regex/match-simple-optimized/150 1175s ok 238 /regex/match-simple-optimized/151 1175s ok 239 /regex/match-simple-optimized/152 1175s ok 240 /regex/match-simple-optimized/153 1175s ok 241 /regex/match-simple-optimized/154 1175s ok 242 /regex/match-simple-optimized/155 1175s ok 243 /regex/match-simple-optimized/156 1175s ok 244 /regex/match-simple-optimized/157 1175s ok 245 /regex/match-simple-optimized/158 1175s ok 246 /regex/match-simple-optimized/159 1175s ok 247 /regex/match-simple-optimized/160 1175s ok 248 /regex/match-simple-optimized/161 1175s ok 249 /regex/match-simple-optimized/162 1175s ok 250 /regex/match-simple-optimized/163 1175s ok 251 /regex/match-simple-optimized/164 1175s # GLib-DEBUG: PCRE2 JIT stack limit reached, falling back to non-optimized matching. 1175s ok 252 /regex/match-simple-optimized/165 1175s # End of match-simple-optimized tests 1175s # Start of match tests 1175s ok 253 /regex/match/166 1175s ok 254 /regex/match/167 1175s ok 255 /regex/match/168 1175s ok 256 /regex/match/169 1175s ok 257 /regex/match/170 1175s ok 258 /regex/match/171 1175s ok 259 /regex/match/172 1175s ok 260 /regex/match/173 1175s ok 261 /regex/match/174 1175s ok 262 /regex/match/175 1175s ok 263 /regex/match/176 1175s ok 264 /regex/match/177 1175s ok 265 /regex/match/178 1175s ok 266 /regex/match/179 1175s ok 267 /regex/match/180 1175s ok 268 /regex/match/181 1175s ok 269 /regex/match/182 1175s ok 270 /regex/match/183 1175s ok 271 /regex/match/184 1175s ok 272 /regex/match/185 1175s ok 273 /regex/match/186 1175s ok 274 /regex/match/187 1175s ok 275 /regex/match/188 1175s ok 276 /regex/match/189 1175s ok 277 /regex/match/190 1175s ok 278 /regex/match/191 1175s ok 279 /regex/match/192 1175s ok 280 /regex/match/193 1175s ok 281 /regex/match/194 1175s ok 282 /regex/match/195 1175s ok 283 /regex/match/196 1175s ok 284 /regex/match/197 1175s ok 285 /regex/match/198 1175s ok 286 /regex/match/199 1175s ok 287 /regex/match/200 1175s ok 288 /regex/match/201 1175s ok 289 /regex/match/202 1175s ok 290 /regex/match/203 1175s ok 291 /regex/match/204 1175s ok 292 /regex/match/205 1175s ok 293 /regex/match/206 1175s ok 294 /regex/match/207 1175s ok 295 /regex/match/208 1175s ok 296 /regex/match/209 1175s ok 297 /regex/match/210 1175s ok 298 /regex/match/211 1175s ok 299 /regex/match/212 1175s ok 300 /regex/match/213 1175s ok 301 /regex/match/214 1175s ok 302 /regex/match/215 1175s ok 303 /regex/match/216 1175s ok 304 /regex/match/217 1175s ok 305 /regex/match/218 1175s ok 306 /regex/match/219 1175s ok 307 /regex/match/220 1175s ok 308 /regex/match/221 1175s ok 309 /regex/match/222 1175s ok 310 /regex/match/223 1175s ok 311 /regex/match/224 1175s ok 312 /regex/match/225 1175s ok 313 /regex/match/226 1175s ok 314 /regex/match/227 1175s ok 315 /regex/match/228 1175s ok 316 /regex/match/229 1175s ok 317 /regex/match/230 1175s ok 318 /regex/match/231 1175s ok 319 /regex/match/232 1175s ok 320 /regex/match/233 1175s ok 321 /regex/match/234 1175s ok 322 /regex/match/235 1175s ok 323 /regex/match/236 1175s ok 324 /regex/match/237 1175s ok 325 /regex/match/238 1175s ok 326 /regex/match/239 1175s ok 327 /regex/match/240 1175s ok 328 /regex/match/241 1175s ok 329 /regex/match/242 1175s ok 330 /regex/match/243 1175s ok 331 /regex/match/244 1175s ok 332 /regex/match/245 1175s ok 333 /regex/match/246 1175s ok 334 /regex/match/247 1175s ok 335 /regex/match/partial282 1175s ok 336 /regex/match/partial283 1175s ok 337 /regex/match/partial284 1175s ok 338 /regex/match/partial285 1175s ok 339 /regex/match/partial286 1175s ok 340 /regex/match/partial287 1175s ok 341 /regex/match/partial288 1175s ok 342 /regex/match/partial289 1175s ok 343 /regex/match/partial290 1175s ok 344 /regex/match/partial291 1175s ok 345 /regex/match/partial292 1175s ok 346 /regex/match/partial293 1175s ok 347 /regex/match/partial294 1175s ok 348 /regex/match/partial295 1175s ok 349 /regex/match/partial296 1175s ok 350 /regex/match/partial297 1175s ok 351 /regex/match/partial298 1175s ok 352 /regex/match/partial299 1175s ok 353 /regex/match/partial300 1175s ok 354 /regex/match/partial301 1175s ok 355 /regex/match/partial302 1175s ok 356 /regex/match/partial303 1175s # Start of next0 tests 1175s ok 357 /regex/match/next0/248 1175s ok 358 /regex/match/next0/249 1175s ok 359 /regex/match/next0/250 1175s ok 360 /regex/match/next0/251 1175s # End of next0 tests 1175s # Start of next1 tests 1175s ok 361 /regex/match/next1/252 1175s ok 362 /regex/match/next1/253 1175s ok 363 /regex/match/next1/254 1175s ok 364 /regex/match/next1/255 1175s ok 365 /regex/match/next1/256 1175s # End of next1 tests 1175s # Start of next2 tests 1175s ok 366 /regex/match/next2/257 1175s ok 367 /regex/match/next2/258 1175s ok 368 /regex/match/next2/259 1175s ok 369 /regex/match/next2/260 1175s ok 370 /regex/match/next2/261 1175s ok 371 /regex/match/next2/262 1175s ok 372 /regex/match/next2/263 1175s ok 373 /regex/match/next2/264 1175s # End of next2 tests 1175s # Start of next3 tests 1175s ok 374 /regex/match/next3/265 1175s ok 375 /regex/match/next3/266 1175s ok 376 /regex/match/next3/267 1175s ok 377 /regex/match/next3/268 1175s ok 378 /regex/match/next3/269 1175s ok 379 /regex/match/next3/270 1175s # End of next3 tests 1175s # Start of next4 tests 1175s ok 380 /regex/match/next4/271 1175s # End of next4 tests 1175s # Start of count tests 1175s ok 381 /regex/match/count/272 1175s ok 382 /regex/match/count/273 1175s ok 383 /regex/match/count/274 1175s ok 384 /regex/match/count/275 1175s ok 385 /regex/match/count/276 1175s ok 386 /regex/match/count/277 1175s ok 387 /regex/match/count/278 1175s ok 388 /regex/match/count/279 1175s ok 389 /regex/match/count/280 1175s ok 390 /regex/match/count/281 1175s # End of count tests 1175s # Start of count-optimized tests 1175s ok 391 /regex/match/count-optimized/272 1175s ok 392 /regex/match/count-optimized/273 1175s ok 393 /regex/match/count-optimized/274 1175s ok 394 /regex/match/count-optimized/275 1175s ok 395 /regex/match/count-optimized/276 1175s ok 396 /regex/match/count-optimized/277 1175s ok 397 /regex/match/count-optimized/278 1175s ok 398 /regex/match/count-optimized/279 1175s ok 399 /regex/match/count-optimized/280 1175s ok 400 /regex/match/count-optimized/281 1175s # End of count-optimized tests 1175s # Start of partial-optimized tests 1175s ok 401 /regex/match/partial-optimized/282 1175s ok 402 /regex/match/partial-optimized/283 1175s ok 403 /regex/match/partial-optimized/284 1175s ok 404 /regex/match/partial-optimized/285 1175s ok 405 /regex/match/partial-optimized/286 1175s ok 406 /regex/match/partial-optimized/287 1175s ok 407 /regex/match/partial-optimized/288 1175s ok 408 /regex/match/partial-optimized/289 1175s ok 409 /regex/match/partial-optimized/290 1175s ok 410 /regex/match/partial-optimized/291 1175s ok 411 /regex/match/partial-optimized/292 1175s ok 412 /regex/match/partial-optimized/293 1175s ok 413 /regex/match/partial-optimized/294 1175s ok 414 /regex/match/partial-optimized/295 1175s ok 415 /regex/match/partial-optimized/296 1175s ok 416 /regex/match/partial-optimized/297 1175s ok 417 /regex/match/partial-optimized/298 1175s ok 418 /regex/match/partial-optimized/299 1175s ok 419 /regex/match/partial-optimized/300 1175s ok 420 /regex/match/partial-optimized/301 1175s ok 421 /regex/match/partial-optimized/302 1175s ok 422 /regex/match/partial-optimized/303 1175s # End of partial-optimized tests 1175s # Start of subpattern tests 1175s ok 423 /regex/match/subpattern/304 1175s ok 424 /regex/match/subpattern/305 1175s ok 425 /regex/match/subpattern/306 1175s ok 426 /regex/match/subpattern/307 1175s ok 427 /regex/match/subpattern/308 1175s ok 428 /regex/match/subpattern/309 1175s ok 429 /regex/match/subpattern/310 1175s ok 430 /regex/match/subpattern/311 1175s ok 431 /regex/match/subpattern/312 1175s ok 432 /regex/match/subpattern/313 1175s ok 433 /regex/match/subpattern/314 1175s ok 434 /regex/match/subpattern/315 1175s ok 435 /regex/match/subpattern/316 1175s # Start of named tests 1175s # Start of dupnames tests 1175s ok 436 /regex/match/subpattern/named/dupnames/326 1175s ok 437 /regex/match/subpattern/named/dupnames/327 1175s ok 438 /regex/match/subpattern/named/dupnames/328 1175s ok 439 /regex/match/subpattern/named/dupnames/329 1175s ok 440 /regex/match/subpattern/named/dupnames/330 1175s # End of dupnames tests 1175s # End of named tests 1175s # End of subpattern tests 1175s # Start of subpattern-optimized tests 1175s ok 441 /regex/match/subpattern-optimized/304 1175s ok 442 /regex/match/subpattern-optimized/305 1175s ok 443 /regex/match/subpattern-optimized/306 1175s ok 444 /regex/match/subpattern-optimized/307 1175s ok 445 /regex/match/subpattern-optimized/308 1175s ok 446 /regex/match/subpattern-optimized/309 1175s ok 447 /regex/match/subpattern-optimized/310 1175s ok 448 /regex/match/subpattern-optimized/311 1175s ok 449 /regex/match/subpattern-optimized/312 1175s ok 450 /regex/match/subpattern-optimized/313 1175s ok 451 /regex/match/subpattern-optimized/314 1175s ok 452 /regex/match/subpattern-optimized/315 1175s ok 453 /regex/match/subpattern-optimized/316 1175s # End of subpattern-optimized tests 1175s # Start of named tests 1175s # Start of subpattern tests 1175s ok 454 /regex/match/named/subpattern/317 1175s ok 455 /regex/match/named/subpattern/318 1175s ok 456 /regex/match/named/subpattern/319 1175s ok 457 /regex/match/named/subpattern/320 1175s ok 458 /regex/match/named/subpattern/321 1175s ok 459 /regex/match/named/subpattern/322 1175s ok 460 /regex/match/named/subpattern/323 1175s ok 461 /regex/match/named/subpattern/324 1175s ok 462 /regex/match/named/subpattern/325 1175s ok 463 /regex/match/named/subpattern/331 1175s ok 464 /regex/match/named/subpattern/332 1175s ok 465 /regex/match/named/subpattern/333 1175s ok 466 /regex/match/named/subpattern/334 1175s ok 467 /regex/match/named/subpattern/335 1175s # End of subpattern tests 1175s # End of named tests 1175s # End of match tests 1175s # Start of match-optimized tests 1175s ok 468 /regex/match-optimized/166 1175s ok 469 /regex/match-optimized/167 1175s ok 470 /regex/match-optimized/168 1175s ok 471 /regex/match-optimized/169 1175s ok 472 /regex/match-optimized/170 1175s ok 473 /regex/match-optimized/171 1175s ok 474 /regex/match-optimized/172 1175s ok 475 /regex/match-optimized/173 1175s ok 476 /regex/match-optimized/174 1175s ok 477 /regex/match-optimized/175 1175s ok 478 /regex/match-optimized/176 1175s ok 479 /regex/match-optimized/177 1175s ok - glib/regex.test 1175s # Running test: glib/deftype.test 1175s ok 480 /regex/match-optimized/178 1175s ok 481 /regex/match-optimized/179 1175s ok 482 /regex/match-optimized/180 1175s ok 483 /regex/match-optimized/181 1175s ok 484 /regex/match-optimized/182 1175s ok 485 /regex/match-optimized/183 1175s ok 486 /regex/match-optimized/184 1175s ok 487 /regex/match-optimized/185 1175s ok 488 /regex/match-optimized/186 1175s ok 489 /regex/match-optimized/187 1175s ok 490 /regex/match-optimized/188 1175s ok 491 /regex/match-optimized/189 1175s ok 492 /regex/match-optimized/190 1175s ok 493 /regex/match-optimized/191 1175s ok 494 /regex/match-optimized/192 1175s ok 495 /regex/match-optimized/193 1175s ok 496 /regex/match-optimized/194 1175s ok 497 /regex/match-optimized/195 1175s ok 498 /regex/match-optimized/196 1175s ok 499 /regex/match-optimized/197 1175s ok 500 /regex/match-optimized/198 1175s ok 501 /regex/match-optimized/199 1175s ok 502 /regex/match-optimized/200 1175s ok 503 /regex/match-optimized/201 1175s ok 504 /regex/match-optimized/202 1175s ok 505 /regex/match-optimized/203 1175s ok 506 /regex/match-optimized/204 1175s ok 507 /regex/match-optimized/205 1175s ok 508 /regex/match-optimized/206 1175s ok 509 /regex/match-optimized/207 1175s ok 510 /regex/match-optimized/208 1175s ok 511 /regex/match-optimized/209 1175s ok 512 /regex/match-optimized/210 1175s ok 513 /regex/match-optimized/211 1175s ok 514 /regex/match-optimized/212 1175s ok 515 /regex/match-optimized/213 1175s ok 516 /regex/match-optimized/214 1175s ok 517 /regex/match-optimized/215 1175s ok 518 /regex/match-optimized/216 1175s ok 519 /regex/match-optimized/217 1175s ok 520 /regex/match-optimized/218 1175s ok 521 /regex/match-optimized/219 1175s ok 522 /regex/match-optimized/220 1175s ok 523 /regex/match-optimized/221 1175s ok 524 /regex/match-optimized/222 1175s ok 525 /regex/match-optimized/223 1175s ok 526 /regex/match-optimized/224 1175s ok 527 /regex/match-optimized/225 1175s ok 528 /regex/match-optimized/226 1175s ok 529 /regex/match-optimized/227 1175s ok 530 /regex/match-optimized/228 1175s ok 531 /regex/match-optimized/229 1175s ok 532 /regex/match-optimized/230 1175s ok 533 /regex/match-optimized/231 1175s ok 534 /regex/match-optimized/232 1175s ok 535 /regex/match-optimized/233 1175s ok 536 /regex/match-optimized/234 1175s ok 537 /regex/match-optimized/235 1175s ok 538 /regex/match-optimized/236 1175s ok 539 /regex/match-optimized/237 1175s ok 540 /regex/match-optimized/238 1175s ok 541 /regex/match-optimized/239 1175s ok 542 /regex/match-optimized/240 1175s ok 543 /regex/match-optimized/241 1175s ok 544 /regex/match-optimized/242 1175s ok 545 /regex/match-optimized/243 1175s ok 546 /regex/match-optimized/244 1175s ok 547 /regex/match-optimized/245 1175s ok 548 /regex/match-optimized/246 1175s ok 549 /regex/match-optimized/247 1175s # End of match-optimized tests 1175s # Start of fetch-all0 tests 1175s ok 550 /regex/fetch-all0/336 1175s ok 551 /regex/fetch-all0/337 1175s # End of fetch-all0 tests 1175s # Start of fetch-all1 tests 1175s ok 552 /regex/fetch-all1/338 1175s ok 553 /regex/fetch-all1/339 1175s ok 554 /regex/fetch-all1/340 1175s # End of fetch-all1 tests 1175s # Start of fetch-all2 tests 1175s ok 555 /regex/fetch-all2/341 1175s ok 556 /regex/fetch-all2/342 1175s ok 557 /regex/fetch-all2/343 1175s # End of fetch-all2 tests 1175s # Start of fetch-all3 tests 1175s ok 558 /regex/fetch-all3/344 1175s ok 559 /regex/fetch-all3/345 1175s ok 560 /regex/fetch-all3/346 1175s ok 561 /regex/fetch-all3/347 1175s ok 562 /regex/fetch-all3/348 1175s # End of fetch-all3 tests 1175s # Start of split tests 1175s # Start of simple0 tests 1175s ok 563 /regex/split/simple0/349 1175s ok 564 /regex/split/simple0/350 1175s ok 565 /regex/split/simple0/365 1175s ok 566 /regex/split/simple0/366 1175s # End of simple0 tests 1175s # Start of simple1 tests 1175s ok 567 /regex/split/simple1/351 1175s ok 568 /regex/split/simple1/352 1175s # End of simple1 tests 1175s # Start of simple2 tests 1175s ok 569 /regex/split/simple2/353 1175s ok 570 /regex/split/simple2/359 1175s ok 571 /regex/split/simple2/361 1175s # End of simple2 tests 1175s # Start of simple3 tests 1175s ok 572 /regex/split/simple3/354 1175s ok 573 /regex/split/simple3/355 1175s ok 574 /regex/split/simple3/356 1175s ok 575 /regex/split/simple3/357 1175s ok 576 /regex/split/simple3/358 1175s ok 577 /regex/split/simple3/360 1175s ok 578 /regex/split/simple3/362 1175s ok 579 /regex/split/simple3/363 1175s ok 580 /regex/split/simple3/364 1175s # End of simple3 tests 1175s # End of split tests 1175s # Start of split0 tests 1175s ok 581 /regex/split0/367 1175s ok 582 /regex/split0/369 1175s # End of split0 tests 1175s # Start of full-split0 tests 1175s ok 583 /regex/full-split0/368 1175s ok 584 /regex/full-split0/370 1175s ok 585 /regex/full-split0/371 1175s ok 586 /regex/full-split0/372 1175s ok 587 /regex/full-split0/373 1175s # End of full-split0 tests 1175s # Start of split1 tests 1175s ok 588 /regex/split1/374 1175s ok 589 /regex/split1/377 1175s # End of split1 tests 1175s # Start of full-split1 tests 1175s ok 590 /regex/full-split1/375 1175s ok 591 /regex/full-split1/376 1175s ok 592 /regex/full-split1/378 1175s ok 593 /regex/full-split1/379 1175s ok 594 /regex/full-split1/405 1175s # End of full-split1 tests 1175s # Start of split2 tests 1175s ok 595 /regex/split2/380 1175s ok 596 /regex/split2/384 1175s ok 597 /regex/split2/396 1175s # End of split2 tests 1175s # Start of full-split2 tests 1175s ok 598 /regex/full-split2/381 1175s ok 599 /regex/full-split2/382 1175s ok 600 /regex/full-split2/383 1175s ok 601 /regex/full-split2/385 1175s ok 602 /regex/full-split2/397 1175s ok 603 /regex/full-split2/400 1175s ok 604 /regex/full-split2/406 1175s # End of full-split2 tests 1175s # Start of split3 tests 1175s ok 605 /regex/split3/386 1175s ok 606 /regex/split3/388 1175s ok 607 /regex/split3/390 1175s ok 608 /regex/split3/392 1175s ok 609 /regex/split3/394 1175s ok 610 /regex/split3/398 1175s ok 611 /regex/split3/401 1175s ok 612 /regex/split3/403 1175s # End of split3 tests 1175s # Start of full-split3 tests 1175s ok 613 /regex/full-split3/387 1175s ok 614 /regex/full-split3/389 1175s ok 615 /regex/full-split3/391 1175s ok 616 /regex/full-split3/393 1175s ok 617 /regex/full-split3/395 1175s ok 618 /regex/full-split3/399 1175s ok 619 /regex/full-split3/402 1175s ok 620 /regex/full-split3/404 1175s ok 621 /regex/full-split3/407 1175s ok 622 /regex/full-split3/408 1175s # End of full-split3 tests 1175s # Start of check-repacement tests 1175s ok 623 /regex/check-repacement/409 1175s ok 624 /regex/check-repacement/410 1175s ok 625 /regex/check-repacement/411 1175s ok 626 /regex/check-repacement/412 1175s ok 627 /regex/check-repacement/413 1175s ok 628 /regex/check-repacement/414 1175s ok 629 /regex/check-repacement/415 1175s ok 630 /regex/check-repacement/416 1175s # End of check-repacement tests 1175s # Start of expand tests 1175s ok 631 /regex/expand/417 1175s ok 632 /regex/expand/418 1175s ok - glib/deftype.test 1175s # Running test: glib/gmenumodel.test 1175s ok 633 /regex/expand/419 1175s ok 634 /regex/expand/420 1175s ok 635 /regex/expand/421 1175s ok 636 /regex/expand/422 1175s ok 637 /regex/expand/423 1175s ok 638 /regex/expand/424 1175s ok 639 /regex/expand/425 1175s ok 640 /regex/expand/426 1175s ok 641 /regex/expand/427 1175s ok 642 /regex/expand/428 1175s ok 643 /regex/expand/429 1175s ok 644 /regex/expand/430 1175s ok 645 /regex/expand/431 1175s ok 646 /regex/expand/432 1175s ok 647 /regex/expand/433 1175s ok 648 /regex/expand/434 1175s ok 649 /regex/expand/435 1175s ok 650 /regex/expand/436 1175s ok 651 /regex/expand/437 1175s ok 652 /regex/expand/438 1175s ok 653 /regex/expand/439 1175s ok 654 /regex/expand/440 1175s ok 655 /regex/expand/441 1175s ok 656 /regex/expand/442 1175s ok 657 /regex/expand/443 1175s ok 658 /regex/expand/444 1175s ok 659 /regex/expand/445 1175s ok 660 /regex/expand/446 1175s ok 661 /regex/expand/447 1175s ok 662 /regex/expand/448 1175s ok 663 /regex/expand/449 1175s ok 664 /regex/expand/450 1175s ok 665 /regex/expand/451 1175s ok 666 /regex/expand/452 1175s ok 667 /regex/expand/453 1175s ok 668 /regex/expand/454 1175s ok 669 /regex/expand/455 1175s ok 670 /regex/expand/456 1175s ok 671 /regex/expand/457 1175s ok 672 /regex/expand/458 1175s ok 673 /regex/expand/459 1175s ok 674 /regex/expand/460 1175s ok 675 /regex/expand/461 1175s ok 676 /regex/expand/462 1175s ok 677 /regex/expand/463 1175s ok 678 /regex/expand/464 1175s ok 679 /regex/expand/465 1175s ok 680 /regex/expand/466 1175s ok 681 /regex/expand/467 1175s ok 682 /regex/expand/468 1175s ok 683 /regex/expand/469 1175s ok 684 /regex/expand/470 1175s ok 685 /regex/expand/471 1175s ok 686 /regex/expand/472 1175s ok 687 /regex/expand/473 1175s ok 688 /regex/expand/474 1175s ok 689 /regex/expand/475 1175s ok 690 /regex/expand/476 1175s ok 691 /regex/expand/477 1175s ok 692 /regex/expand/478 1175s ok 693 /regex/expand/479 1175s ok 694 /regex/expand/480 1175s ok 695 /regex/expand/481 1175s ok 696 /regex/expand/482 1175s # End of expand tests 1175s # Start of replace tests 1175s ok 697 /regex/replace/483 1175s ok 698 /regex/replace/484 1175s ok 699 /regex/replace/485 1175s ok 700 /regex/replace/486 1175s ok 701 /regex/replace/487 1175s ok 702 /regex/replace/488 1175s ok 703 /regex/replace/489 1175s ok 704 /regex/replace/490 1175s ok 705 /regex/replace/491 1175s ok 706 /regex/replace/492 1175s ok 707 /regex/replace/493 1175s ok 708 /regex/replace/494 1175s ok 709 /regex/replace/495 1175s ok 710 /regex/replace/496 1175s ok 711 /regex/replace/497 1175s ok 712 /regex/replace/498 1175s ok 713 /regex/replace/499 1175s ok 714 /regex/replace/500 1175s ok 715 /regex/replace/501 1175s ok 716 /regex/replace/502 1175s ok 717 /regex/replace/503 1175s ok 718 /regex/replace/504 1175s ok 719 /regex/replace/505 1175s ok 720 /regex/replace/506 1175s ok 721 /regex/replace/507 1175s ok 722 /regex/replace/508 1175s ok 723 /regex/replace/509 1175s ok 724 /regex/replace/510 1175s # End of replace tests 1175s # Start of replace-optimized tests 1175s ok 725 /regex/replace-optimized/483 1175s ok 726 /regex/replace-optimized/484 1175s ok 727 /regex/replace-optimized/485 1175s ok 728 /regex/replace-optimized/486 1175s ok 729 /regex/replace-optimized/487 1175s ok 730 /regex/replace-optimized/488 1175s ok 731 /regex/replace-optimized/489 1175s ok 732 /regex/replace-optimized/490 1175s ok 733 /regex/replace-optimized/491 1175s ok 734 /regex/replace-optimized/492 1175s ok 735 /regex/replace-optimized/493 1175s ok 736 /regex/replace-optimized/494 1175s ok 737 /regex/replace-optimized/495 1175s ok 738 /regex/replace-optimized/496 1175s ok 739 /regex/replace-optimized/497 1175s ok 740 /regex/replace-optimized/498 1175s ok 741 /regex/replace-optimized/499 1175s ok 742 /regex/replace-optimized/500 1175s ok 743 /regex/replace-optimized/501 1175s ok 744 /regex/replace-optimized/502 1175s ok 745 /regex/replace-optimized/503 1175s ok 746 /regex/replace-optimized/504 1175s ok 747 /regex/replace-optimized/505 1175s ok 748 /regex/replace-optimized/506 1175s ok 749 /regex/replace-optimized/507 1175s ok 750 /regex/replace-optimized/508 1175s ok 751 /regex/replace-optimized/509 1175s ok 752 /regex/replace-optimized/510 1175s # End of replace-optimized tests 1175s # Start of replace-literally tests 1175s ok 753 /regex/replace-literally/511 1175s ok 754 /regex/replace-literally/512 1175s ok 755 /regex/replace-literally/513 1175s ok 756 /regex/replace-literally/514 1175s ok 757 /regex/replace-literally/515 1175s ok 758 /regex/replace-literally/516 1175s ok 759 /regex/replace-literally/517 1175s ok 760 /regex/replace-literally/518 1175s ok 761 /regex/replace-literally/519 1175s ok 762 /regex/replace-literally/520 1175s ok 763 /regex/replace-literally/521 1175s ok 764 /regex/replace-literally/522 1175s ok 765 /regex/replace-literally/523 1175s ok 766 /regex/replace-literally/524 1175s ok 767 /regex/replace-literally/525 1175s ok 768 /regex/replace-literally/526 1175s ok 769 /regex/replace-literally/527 1175s ok 770 /regex/replace-literally/528 1175s ok 771 /regex/replace-literally/529 1175s ok 772 /regex/replace-literally/530 1175s # End of replace-literally tests 1175s # Start of string-number tests 1175s ok 773 /regex/string-number/531 1175s ok 774 /regex/string-number/532 1175s ok 775 /regex/string-number/533 1175s ok 776 /regex/string-number/534 1175s ok 777 /regex/string-number/535 1175s ok 778 /regex/string-number/536 1175s ok 779 /regex/string-number/537 1175s ok 780 /regex/string-number/538 1175s ok 781 /regex/string-number/539 1175s ok 782 /regex/string-number/540 1175s ok 783 /regex/string-number/541 1175s ok 784 /regex/string-number/542 1175s ok 785 /regex/string-number/543 1175s ok 786 /regex/string-number/544 1175s ok 787 /regex/string-number/545 1175s # End of string-number tests 1175s # Start of escape_nul tests 1175s ok 788 /regex/escape_nul/546 1175s ok 789 /regex/escape_nul/547 1175s ok 790 /regex/escape_nul/548 1175s ok 791 /regex/escape_nul/549 1175s ok 792 /regex/escape_nul/550 1175s ok 793 /regex/escape_nul/551 1175s ok 794 /regex/escape_nul/552 1175s ok 795 /regex/escape_nul/553 1175s ok 796 /regex/escape_nul/554 1175s ok 797 /regex/escape_nul/555 1175s ok 798 /regex/escape_nul/556 1175s ok 799 /regex/escape_nul/557 1175s ok 800 /regex/escape_nul/558 1175s ok 801 /regex/escape_nul/559 1175s ok 802 /regex/escape_nul/560 1175s # End of escape_nul tests 1175s # Start of escape tests 1175s ok 803 /regex/escape/561 1175s ok 804 /regex/escape/562 1175s ok 805 /regex/escape/563 1175s ok 806 /regex/escape/564 1175s ok 807 /regex/escape/565 1175s ok 808 /regex/escape/566 1175s ok 809 /regex/escape/567 1175s ok 810 /regex/escape/568 1175s ok 811 /regex/escape/569 1175s ok 812 /regex/escape/570 1175s ok 813 /regex/escape/571 1175s ok 814 /regex/escape/572 1175s ok 815 /regex/escape/573 1175s ok 816 /regex/escape/574 1175s ok 817 /regex/escape/575 1175s ok 818 /regex/escape/576 1175s ok 819 /regex/escape/577 1175s ok 820 /regex/escape/578 1175s # End of escape tests 1175s # Start of match-all0 tests 1175s ok 821 /regex/match-all0/579 1175s ok 822 /regex/match-all0/581 1175s # End of match-all0 tests 1175s # Start of match-all-full0 tests 1175s ok 823 /regex/match-all-full0/580 1175s ok 824 /regex/match-all-full0/582 1175s ok 825 /regex/match-all-full0/583 1175s ok 826 /regex/match-all-full0/584 1175s # End of match-all-full0 tests 1175s # Start of match-all1 tests 1175s ok 827 /regex/match-all1/585 1175s ok 828 /regex/match-all1/587 1175s ok 829 /regex/match-all1/592 1175s # End of match-all1 tests 1175s # Start of match-all-full1 tests 1175s ok 830 /regex/match-all-full1/586 1175s ok 831 /regex/match-all-full1/588 1175s ok 832 /regex/match-all-full1/589 1175s ok 833 /regex/match-all-full1/590 1175s ok 834 /regex/match-all-full1/591 1175s ok 835 /regex/match-all-full1/593 1175s # End of match-all-full1 tests 1175s # Start of match-all2 tests 1175s ok 836 /regex/match-all2/594 1175s ok 837 /regex/match-all2/596 1175s ok 838 /regex/match-all2/598 1175s # End of match-all2 tests 1175s # Start of match-all-full2 tests 1175s ok 839 /regex/match-all-full2/595 1175s ok 840 /regex/match-all-full2/597 1175s ok 841 /regex/match-all-full2/599 1175s # End of match-all-full2 tests 1175s # Start of match-all3 tests 1175s ok 842 /regex/match-all3/600 1175s ok 843 /regex/match-all3/602 1175s # End of match-all3 tests 1175s # Start of match-all-full3 tests 1175s ok 844 /regex/match-all-full3/601 1175s ok 845 /regex/match-all-full3/603 1175s # End of match-all-full3 tests 1175s # Start of match-notempty tests 1175s ok 846 /regex/match-notempty/604 1175s # End of match-notempty tests 1175s # Start of match-notempty-optimized tests 1175s ok 847 /regex/match-notempty-optimized/604 1175s # End of match-notempty-optimized tests 1175s # Start of match-notempty-atstart tests 1175s ok 848 /regex/match-notempty-atstart/605 1175s # End of match-notempty-atstart tests 1175s # Start of match-notempty-atstart-optimized tests 1175s ok 849 /regex/match-notempty-atstart-optimized/605 1175s # End of match-notempty-atstart-optimized tests 1175s # End of regex tests 1175s TAP version 14 1175s # random seed: R02Sb505abcc5ae2846409efc4f2e85c6413 1175s 1..15 1175s # Start of gmenu tests 1176s ok 1 /gmenu/equality 1176s # slow test /gmenu/equality executed in 0.83 secs 1177s ok 2 /gmenu/random 1177s # slow test /gmenu/random executed in 0.97 secs 1177s ok 3 /gmenu/attributes 1177s ok 4 /gmenu/links 1177s ok 5 /gmenu/mutable 1177s ok 6 /gmenu/convenience 1177s ok 7 /gmenu/menuitem 1177s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/861 1177s ok 8 /gmenu/input-validation 1177s # Start of dbus tests 1178s ok 9 /gmenu/dbus/roundtrip 1178s # slow test /gmenu/dbus/roundtrip executed in 1.01 secs 1179s ok 10 /gmenu/dbus/subscriptions 1180s # Executing: glib/gmenumodel.test 1180s ok 11 /gmenu/dbus/threaded 1180s # slow test /gmenu/dbus/threaded executed in 1.58 secs 1180s # Start of peer tests 1181s ok 12 /gmenu/dbus/peer/roundtrip 1181s # slow test /gmenu/dbus/peer/roundtrip executed in 1.02 secs 1182s ok 13 /gmenu/dbus/peer/subscriptions 1182s # End of peer tests 1182s # Start of export tests 1182s # /gmenu/dbus/export/error-handling summary: Test that error handling of menu model export failure works 1182s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3366 1182s ok 14 /gmenu/dbus/export/error-handling 1182s # End of export tests 1182s # End of dbus tests 1182s # Start of attributes tests 1182s ok 15 /gmenu/attributes/iterate 1182s # End of attributes tests 1182s # End of gmenu tests 1182s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1182s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1182s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1182s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1182s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1182s ok - glib/gmenumodel.test 1182s # Running test: glib/collate.test 1182s TAP version 14 1182s # random seed: R02S4c2ef3b89ad0b2ccb400386f6f5e343f 1182s 1..9 1182s # Start of unicode tests 1182s # Start of collate tests 1182s ok 1 /unicode/collate/0 1182s ok 2 /unicode/collate/1 1182s ok 3 /unicode/collate/2 1182s # End of collate tests 1182s # Start of collate-key tests 1182s ok 4 /unicode/collate-key/0 1182s ok 5 /unicode/collate-key/1 1182s ok 6 /unicode/collate-key/2 1182s # End of collate-key tests 1182s # Start of collate-filename tests 1182s ok 7 /unicode/collate-filename/0 1182s ok 8 /unicode/collate-filename/1 1182s ok - glib/collate.test 1182s # Running test: glib/unix.test 1182s ok 9 /unicode/collate-filename/2 1182s # End of collate-filename tests 1182s # End of unicode tests 1182s TAP version 14 1182s # random seed: R02S8ba75628df5fa8575cf411875604a412 1182s 1..20 1182s # Start of glib-unix tests 1182s # /glib-unix/closefrom summary: Test g_closefrom(), g_fdwalk_set_cloexec() 1182s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3247 1182s ok 1 /glib-unix/closefrom 1182s ok 2 /glib-unix/pipe 1182s # /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 1182s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/2795 1182s ok 3 /glib-unix/pipe-stdio-overwrite 1182s # /glib-unix/pipe-struct summary: Test GUnixPipe structure 1182s ok 4 /glib-unix/pipe-struct 1182s # /glib-unix/pipe-struct-auto summary: Test g_auto(GUnixPipe) 1182s ok 5 /glib-unix/pipe-struct-auto 1182s ok 6 /glib-unix/error 1182s ok 7 /glib-unix/nonblocking 1182s ok 8 /glib-unix/sighup 1182s # slow test /glib-unix/sighup executed in 0.50 secs 1183s ok 9 /glib-unix/sigterm 1183s # slow test /glib-unix/sigterm executed in 0.50 secs 1183s ok 10 /glib-unix/sighup_again 1183s # slow test /glib-unix/sighup_again executed in 0.50 secs 1183s ok 11 /glib-unix/sighup_add_remove 1183s ok 12 /glib-unix/sighup_nested 1185s # Executing: glib/unix.test 1185s ok 13 /glib-unix/callback_after_signal 1185s # slow test /glib-unix/callback_after_signal executed in 2.00 secs 1185s ok 14 /glib-unix/child-wait 1185s # Start of closefrom tests 1185s # Start of subprocess tests 1185s # End of subprocess tests 1185s # End of closefrom tests 1185s # Start of pipe tests 1185s # /glib-unix/pipe/fd-cloexec summary: Test that FD_CLOEXEC is still accepted as an argument to g_unix_open_pipe() 1185s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/merge_requests/3459 1185s # GLib-DEBUG: g_unix_open_pipe() called with FD_CLOEXEC; please migrate to using O_CLOEXEC instead 1185s ok 15 /glib-unix/pipe/fd-cloexec 1185s # End of pipe tests 1185s # Start of sighup tests 1186s ok 16 /glib-unix/sighup/alternate-stack 1186s # slow test /glib-unix/sighup/alternate-stack executed in 1.00 secs 1186s # End of sighup tests 1186s # Start of sigterm tests 1187s ok 17 /glib-unix/sigterm/alternate-stack 1187s # slow test /glib-unix/sigterm/alternate-stack executed in 1.00 secs 1187s # End of sigterm tests 1187s # Start of sighup_again tests 1188s ok 18 /glib-unix/sighup_again/alternate-stack 1188s # slow test /glib-unix/sighup_again/alternate-stack executed in 1.00 secs 1188s # End of sighup_again tests 1188s # Start of get-passwd-entry tests 1188s # /glib-unix/get-passwd-entry/root summary: Tests that g_unix_get_passwd_entry() works for a known-existing username. 1188s ok 19 /glib-unix/get-passwd-entry/root 1188s # /glib-unix/get-passwd-entry/nonexistent summary: Tests that g_unix_get_passwd_entry() returns an error for a nonexistent username. 1188s ok 20 /glib-unix/get-passwd-entry/nonexistent 1188s # End of get-passwd-entry tests 1188s # End of glib-unix tests 1188s ok - glib/unix.test 1188s # Running test: glib/gi-compile-repository.py.test 1188s TAP version 13 1188s ok 1 __main__.TestGICompileRepository.test_open_failure 1188s # gir path set to [PosixPath('/usr/lib/arm-linux-gnueabihf/gir-1.0'), PosixPath('/usr/share/gir-1.0')] 1188s # gi-compile-repository: /usr/bin/gi-compile-repository 1188s # tmpdir: /tmp/tmpkb_ey8sm 1188s # Running: ['/usr/bin/gi-compile-repository', 'this-is/not/a-file.gir', '--output', '/tmp/tmpkb_ey8sm/invalid.typelib'] 1188s # Return code: 1 1188s # Output: 1188s # 1188s # Error: 1188s # Error parsing file ‘this-is/not/a-file.gir’: Failed to open file “this-is/not/a-file.gir”: No such file or directory 1188s ok 2 __main__.TestGICompileRepositoryForGLib.test_compile 1188s # gir path set to [PosixPath('/usr/lib/arm-linux-gnueabihf/gir-1.0'), PosixPath('/usr/share/gir-1.0')] 1188s # gi-compile-repository: /usr/bin/gi-compile-repository 1188s # tmpdir: /tmp/tmp3zli831b 1188s # Running: ['/usr/bin/gi-compile-repository', '/usr/lib/arm-linux-gnueabihf/gir-1.0/GLib-2.0.gir', '--output', '/tmp/tmp3zli831b/GLib-2.typelib'] 1188s # Return code: 0 1188s # Output: 1188s # 1188s # Error: 1189s ok 3 __main__.TestGICompileRepositoryForGLib.test_write_failure 1189s # gi-compile-repository: /usr/bin/gi-compile-repository 1189s # tmpdir: /tmp/tmp0j8y_z6f 1189s # 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'] 1189s # Return code: 1 1189s # Output: 1189s # 1189s # Error: 1189s # Failed to open ‘this-is/not/a-good-output/invalid.typelib.tmp’: No such file or directory 1189s ok 4 __main__.TestGICompileRepositoryForGObject.test_compile 1189s # gir path set to [PosixPath('/usr/lib/arm-linux-gnueabihf/gir-1.0'), PosixPath('/usr/share/gir-1.0')] 1189s # gi-compile-repository: /usr/bin/gi-compile-repository 1189s # tmpdir: /tmp/tmpzkjvarky 1189s # Running: ['/usr/bin/gi-compile-repository', '/usr/share/gir-1.0/GObject-2.0.gir', '--output', '/tmp/tmpzkjvarky/GObject-2.typelib', '--includedir', '/usr/lib/arm-linux-gnueabihf/gir-1.0', '--includedir', '/usr/share/gir-1.0'] 1189s # Return code: 0 1189s # Output: 1189s # 1189s # Error: 1189s ok 5 __main__.TestGICompileRepositoryForGObject.test_write_failure 1189s # gi-compile-repository: /usr/bin/gi-compile-repository 1189s # tmpdir: /tmp/tmp8dzq0msf 1189s # 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'] 1189s # Return code: 1 1189s # Output: 1189s # 1189s # Error: 1189s # Failed to open ‘this-is/not/a-good-output/invalid.typelib.tmp’: No such file or directory 1189s ok 6 __main__.TestGICompileRepositoryForGio.test_compile 1189s # gir path set to [PosixPath('/usr/lib/arm-linux-gnueabihf/gir-1.0'), PosixPath('/usr/share/gir-1.0')] 1189s # gi-compile-repository: /usr/bin/gi-compile-repository 1189s # tmpdir: /tmp/tmpiyob7mbv 1189s # Running: ['/usr/bin/gi-compile-repository', '/usr/share/gir-1.0/Gio-2.0.gir', '--output', '/tmp/tmpiyob7mbv/Gio-2.typelib', '--includedir', '/usr/lib/arm-linux-gnueabihf/gir-1.0', '--includedir', '/usr/share/gir-1.0'] 1189s # Return code: 0 1189s # Output: 1189s # 1189s # Error: 1190s # Executing: glib/gi-compile-repository.py.test 1190s ok 7 __main__.TestGICompileRepositoryForGio.test_write_failure 1190s # gi-compile-repository: /usr/bin/gi-compile-repository 1190s # tmpdir: /tmp/tmphk5l2s6e 1190s # 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'] 1190s # Return code: 1 1190s # Output: 1190s # 1190s # Error: 1190s # Failed to open ‘this-is/not/a-good-output/invalid.typelib.tmp’: No such file or directory 1190s 1..7 1190s ok - glib/gi-compile-repository.py.test 1190s # Running test: glib/basic-signals.test 1190s TAP version 14 1190s # random seed: R02Sf276bf53756a9503d6f3f6473bf298e9 1190s 1..1 1190s # Start of gobject tests 1190s ok 1 /gobject/basic-signals 1190s # End of gobject tests 1190s ok - glib/basic-signals.test 1190s # Running test: glib/cxx-14.test 1190s TAP version 14 1190s # random seed: R02S3ddd26807b0480977ed5c3bdbea0acb2 1190s 1..2 1190s # Start of gtask tests 1190s # 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. 1190s ok 1 /gtask/name 1190s # Start of name tests 1190s # 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. 1190s ok 2 /gtask/name/macro-wrapper 1190s # End of name tests 1190s # End of gtask tests 1190s ok - glib/cxx-14.test 1190s # Running test: glib/utf8-private.test 1190s TAP version 14 1190s # random seed: R02S57f3d297049cd58e0cf0aca5b8141338 1190s 1..2 1190s # Start of utf8 tests 1190s ok 1 /utf8/utf8-to-utf16-make-valid 1190s ok 2 /utf8/utf8-to-utf16-make-valid-backtrack 1190s # End of utf8 tests 1190s ok - glib/utf8-private.test 1190s # Running test: glib/buffered-input-stream.test 1190s TAP version 14 1190s # random seed: R02Sf3a5dc8e5963e39300e92c73470404ba 1190s 1..10 1190s # Start of buffered-input-stream tests 1190s ok 1 /buffered-input-stream/peek 1190s ok 2 /buffered-input-stream/peek-buffer 1190s ok 3 /buffered-input-stream/set-buffer-size 1190s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=562393 1190s ok 4 /buffered-input-stream/read-byte 1190s ok 5 /buffered-input-stream/read 1190s ok - glib/buffered-input-stream.test 1190s # Running test: glib/task.test 1190s ok 6 /buffered-input-stream/read-async 1190s ok 7 /buffered-input-stream/skip 1190s ok 8 /buffered-input-stream/skip-async 1190s ok 9 /buffered-input-stream/seek 1190s # End of buffered-input-stream tests 1190s # Start of filter-input-stream tests 1190s ok 10 /filter-input-stream/close 1190s # End of filter-input-stream tests 1190s TAP version 14 1190s # random seed: R02S0b9f659e226cf504718df4768ee1f5d8 1190s 1..36 1190s # Start of gtask tests 1190s ok 1 /gtask/basic 1190s ok 2 /gtask/error 1190s ok 3 /gtask/error-literal 1190s ok 4 /gtask/error-literal-from-variable 1190s ok 5 /gtask/return-from-same-iteration 1190s ok 6 /gtask/return-from-toplevel 1190s ok 7 /gtask/return-from-anon-thread 1190s ok 8 /gtask/return-from-wrong-thread 1190s ok 9 /gtask/no-callback 1190s ok 10 /gtask/report-error 1190s ok 11 /gtask/priority 1190s ok 12 /gtask/name 1190s ok 13 /gtask/static-name 1190s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/issues/1608 1190s ok 14 /gtask/asynchronous-cancellation 1190s ok 15 /gtask/check-cancellable 1190s ok 16 /gtask/return-if-cancelled 1190s ok 17 /gtask/run-in-thread 1190s ok 18 /gtask/run-in-thread-sync 1190s ok 19 /gtask/run-in-thread-priority 1190s ok 20 /gtask/run-in-thread-nested 1191s ok 21 /gtask/run-in-thread-overflow 1191s # slow test /gtask/run-in-thread-overflow executed in 0.52 secs 1191s # GLib-GIO-DEBUG: GTask 0xb9d1870 (source object: (nil), source tag: (nil)) finalized without ever returning (using g_task_return_*()). This potentially indicates a bug in the program. 1191s ok 22 /gtask/return-on-cancel 1191s # GLib-GIO-DEBUG: GTask 0xb9d1968 (source object: (nil), source tag: (nil)) finalized without ever returning (using g_task_return_*()). This potentially indicates a bug in the program. 1191s # GLib-GIO-DEBUG: GTask 0xb98fc88 (source object: (nil), source tag: (nil)) finalized without ever returning (using g_task_return_*()). This potentially indicates a bug in the program. 1191s ok 23 /gtask/return-on-cancel-sync 1191s # GLib-GIO-DEBUG: GTask 0xb990058 (source object: (nil), source tag: (nil)) finalized without ever returning (using g_task_return_*()). This potentially indicates a bug in the program. 1191s ok 24 /gtask/return-on-cancel-atomic 1191s ok 25 /gtask/return-pointer 1191s ok 26 /gtask/return-value 1191s ok 27 /gtask/return-prefixed-error 1191s ok 28 /gtask/object-keepalive 1191s ok 29 /gtask/legacy-error 1191s ok - glib/task.test 1191s # Running test: glib/search-utils.test 1191s ok - glib/search-utils.test 1191s # Running test: glib/mappedfile.test 1191s ok - glib/mappedfile.test 1191s ok 30 /gtask/finalize-without-return 1191s # Start of name tests 1191s ok 31 /gtask/name/macro-wrapper 1191s # End of name tests 1191s # Start of return tests 1191s ok 32 /gtask/return/error-first 1191s ok 33 /gtask/return/value-first 1191s # Start of in-idle tests 1191s ok 34 /gtask/return/in-idle/error-first 1191s ok 35 /gtask/return/in-idle/value-first 1191s # End of in-idle tests 1191s # End of return tests 1191s # Start of attach-source tests 1191s # /gtask/attach-source/set-name summary: Test that attaching a source to a task will set the source’s name if unset 1191s ok 36 /gtask/attach-source/set-name 1191s # End of attach-source tests 1191s # End of gtask tests 1191s TAP version 14 1191s # random seed: R02S324d66f8dbb3eb25da0eb69b9992d428 1191s # GLib-DEBUG: Current user locale: C.UTF-8 1191s 1..6 1191s # Start of search tests 1191s # GLib-DEBUG: Started 1191s # GLib-DEBUG: 'he' - 'Hello World' should match: OK 1191s # GLib-DEBUG: 'wo' - 'Hello World' should match: OK 1191s # GLib-DEBUG: 'lo' - 'Hello World' should NOT match: OK 1191s # GLib-DEBUG: 'ld' - 'Hello World' should NOT match: OK 1191s # GLib-DEBUG: 'wo' - 'Hello-World' should match: OK 1191s # GLib-DEBUG: 'wo' - 'HelloWorld' should NOT match: OK 1191s ok 1 /search/basic 1191s # GLib-DEBUG: Started 1191s # GLib-DEBUG: 'jor' - 'Jörgen' should match: OK 1191s # GLib-DEBUG: 'gaetan' - 'Gaëtan' should match: OK 1191s # GLib-DEBUG: 'ele' - 'élève' should match: OK 1191s # GLib-DEBUG: 'AzaÏs' - 'Azais' should NOT match: OK 1191s # GLib-DEBUG: 'Azais' - 'AzaÏs' should match: OK 1191s ok 2 /search/composed 1191s # GLib-DEBUG: Started 1191s # GLib-DEBUG: 'Jör' - 'Jorgen' should NOT match: OK 1191s # GLib-DEBUG: 'jor' - 'Jörgen' should match: OK 1191s ok 3 /search/decomposed 1191s # GLib-DEBUG: Started 1191s # GLib-DEBUG: 'ist' - 'İstanbul' should match: OK 1191s # GLib-DEBUG: 'diyarbakir' - 'Diyarbakır' should match: OK 1191s ok 4 /search/turkish 1191s # GLib-DEBUG: Started 1191s # GLib-DEBUG: 'jor' - 'Jörgen' should match: OK 1191s # GLib-DEBUG: 'Jör' - 'Jorgen' should NOT match: OK 1191s # GLib-DEBUG: 'jor' - 'Jörgen' should match: OK 1191s ok 5 /search/c_locale_unicode 1191s # GLib-DEBUG: Started 1191s # GLib-DEBUG: 'Xav Cla' - 'Xavier Claessens' should match: OK 1191s # GLib-DEBUG: 'Cla Xav' - 'Xavier Claessens' should match: OK 1191s # GLib-DEBUG: ' b ' - 'Foo Bar Baz' should match: OK 1191s # GLib-DEBUG: 'bar bazz' - 'Foo Bar Baz' should NOT match: OK 1191s ok 6 /search/multi_words 1191s # End of search tests 1191s TAP version 14 1191s # random seed: R02Sfe31c76b7fa2172fb416f2e0124d6196 1191s 1..7 1191s # Start of mappedfile tests 1191s ok 1 /mappedfile/basic 1191s ok 2 /mappedfile/empty 1191s ok 3 /mappedfile/device 1191s ok 4 /mappedfile/nonexisting 1191s ok 5 /mappedfile/writable 1191s ok 6 /mappedfile/writable_fd 1191s ok 7 /mappedfile/gbytes 1191s # End of mappedfile tests 1191s # Running test: glib/base64.test 1191s TAP version 14 1191s # random seed: R02S145d28caedf952051ca6a81d08845868 1191s 1..28 1191s # Start of base64 tests 1191s ok 1 /base64/encode 1191s ok 2 /base64/decode 1191s ok 3 /base64/decode-inplace 1191s ok - glib/base64.test 1191s ok 4 /base64/encode-decode 1191s # Start of full tests 1191s ok 5 /base64/full/1 1191s ok 6 /base64/full/2 1191s ok 7 /base64/full/3 1191s ok 8 /base64/full/4 1191s # End of full tests 1191s # Start of encode tests 1191s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/issues/1698 1191s ok 9 /base64/encode/empty 1191s # Start of incremental tests 1191s # Start of small-block tests 1191s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=780066 1191s ok 10 /base64/encode/incremental/small-block/1 1191s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=780066 1191s ok 11 /base64/encode/incremental/small-block/2 1191s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=780066 1191s ok 12 /base64/encode/incremental/small-block/3 1191s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=780066 1191s ok 13 /base64/encode/incremental/small-block/4 1191s # End of small-block tests 1191s # End of incremental tests 1191s # End of encode tests 1191s # Start of incremental tests 1191s # Start of nobreak tests 1191s ok 14 /base64/incremental/nobreak/1 1191s ok 15 /base64/incremental/nobreak/2 1191s ok 16 /base64/incremental/nobreak/3 1191s ok 17 /base64/incremental/nobreak/4-a 1191s ok 18 /base64/incremental/nobreak/4-b 1191s ok 19 /base64/incremental/nobreak/4-c 1191s # End of nobreak tests 1191s # Start of break tests 1191s ok 20 /base64/incremental/break/1 1191s ok 21 /base64/incremental/break/2 1191s ok 22 /base64/incremental/break/3 1191s # End of break tests 1191s # Start of smallblock tests 1191s ok 23 /base64/incremental/smallblock/1 1191s ok 24 /base64/incremental/smallblock/2 1191s ok 25 /base64/incremental/smallblock/3 1191s ok 26 /base64/incremental/smallblock/4 1191s # End of smallblock tests 1191s # End of incremental tests 1191s # Start of decode tests 1191s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/issues/1698 1191s ok 27 /base64/decode/empty 1191s # End of decode tests 1191s # Start of encode-decode tests 1191s # Vector 0: 1191s # Vector 1: f 1191s # Vector 2: fo 1191s # Vector 3: foo 1191s # Vector 4: foob 1191s # Vector 5: fooba 1191s # Vector 6: foobar 1191s ok 28 /base64/encode-decode/rfc4648 1191s # End of encode-decode tests 1191s # End of base64 tests 1191s # Running test: glib/ifaceproperties.test 1191s TAP version 14 1191s # random seed: R02S0aee1cc866026782ae362ed76933e0fd 1191s 1..7 1191s # Start of interface tests 1191s # Start of properties tests 1191s ok 1 /interface/properties/set 1191s ok 2 /interface/properties/notify 1191s ok 3 /interface/properties/find-overridden 1191s ok 4 /interface/properties/list-overridden 1191s ok 5 /interface/properties/find-interface 1191s ok 6 /interface/properties/list-interface 1191s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=637738 1191s ok 7 /interface/properties/not-overridden 1191s # End of properties tests 1191s # End of interface tests 1191s ok - glib/ifaceproperties.test 1191s # Running test: glib/node.test 1191s TAP version 14 1191s # random seed: R02S1af5225ffb165c1170adf8ad09f866ab 1191s 1..6 1191s # Start of node tests 1191s ok - glib/node.test 1191s # Running test: glib/memory-settings-backend.test 1191s ok - glib/memory-settings-backend.test 1191s # Running test: glib/signalgroup.test 1191s ok - glib/signalgroup.test 1191s # Running test: glib/gdbus-threading.test 1191s ok - glib/gdbus-threading.test 1191s # Running test: glib/atomic-c-11.test 1191s ok 1 /node/allocation 1191s ok 2 /node/construction 1191s ok 3 /node/traversal 1191s ok 4 /node/misc 1191s ok 5 /node/unlink 1191s ok 6 /node/copy 1191s # End of node tests 1191s TAP version 14 1191s # random seed: R02Sa173bda0b5c827182bd449d2da4afe80 1191s 1..1 1191s # Start of memory-settings-backend tests 1191s ok 1 /memory-settings-backend/extension-point-registered 1191s # End of memory-settings-backend tests 1191s TAP version 14 1191s # random seed: R02S722c82173553822334ed144eb6829c63 1191s 1..9 1191s # Start of GObject tests 1191s # Start of SignalGroup tests 1191s ok 1 /GObject/SignalGroup/invalid 1191s ok 2 /GObject/SignalGroup/simple 1191s ok 3 /GObject/SignalGroup/changing-target 1191s ok 4 /GObject/SignalGroup/blocking 1191s ok 5 /GObject/SignalGroup/weak-ref-target 1191s ok 6 /GObject/SignalGroup/connect-object 1191s ok 7 /GObject/SignalGroup/signal-parsing 1191s ok 8 /GObject/SignalGroup/properties 1191s ok 9 /GObject/SignalGroup/interface 1191s # Start of signal-parsing tests 1191s # End of signal-parsing tests 1191s # End of SignalGroup tests 1191s # End of GObject tests 1191s TAP version 14 1191s # random seed: R02Sb679ff29af5848b5ca0c1bc6c5cfbcd6 1191s # 1..0 # SKIP all gdbus-threading tests skipped because they are too unreliable (glib#1515) 1191s TAP version 14 1191s # random seed: R02Sfb6e48bbe497aca60570f08f290031f9 1191s 1..2 1191s # Start of atomic tests 1191s ok 1 /atomic/types 1191s ok 2 /atomic/threaded 1191s # End of atomic tests 1191s ok - glib/atomic-c-11.test 1191s # Running test: glib/srvtarget.test 1191s TAP version 14 1191s # random seed: R02S6ca02ced6c5b5d23970d20327ecab070 1191s 1..1 1191s # Start of srvtarget tests 1192s ok 1 /srvtarget/srv-target-ordering 1192s # slow test /srvtarget/srv-target-ordering executed in 0.57 secs 1192s # End of srvtarget tests 1192s ok - glib/srvtarget.test 1192s # Running test: glib/boxed.test 1192s TAP version 14 1192s # random seed: R02S331913855ed5efdbe351561c9b0049d1 1192s 1..27 1192s # Start of boxed tests 1192s ok 1 /boxed/define 1192s ok 2 /boxed/ownership 1192s ok 3 /boxed/closure 1192s ok 4 /boxed/date 1192s ok 5 /boxed/value 1192s ok 6 /boxed/string 1192s ok 7 /boxed/hashtable 1192s ok 8 /boxed/array 1192s ok 9 /boxed/ptrarray 1192s ok 10 /boxed/regex 1192s ok 11 /boxed/varianttype 1192s ok 12 /boxed/error 1192s ok 13 /boxed/datetime 1192s ok 14 /boxed/matchinfo 1192s ok 15 /boxed/keyfile 1192s ok 16 /boxed/mainloop 1192s ok 17 /boxed/maincontext 1192s ok 18 /boxed/source 1192s ok 19 /boxed/variantbuilder 1192s ok 20 /boxed/timezone 1192s ok 21 /boxed/pollfd 1192s ok 22 /boxed/markup 1192s ok 23 /boxed/thread 1192s ok 24 /boxed/checksum 1192s ok 25 /boxed/tree 1192s ok - glib/boxed.test 1192s # Running test: glib/performance-threaded.test 1192s ok 26 /boxed/patternspec 1192s ok 27 /boxed/rand 1192s # End of boxed tests 1192s Running test "liststore-is-a" 1193s 6786 runs, min/avg/max = 0.142/0.146/0.284 ms 1193s Running test "liststore-interface-peek" 1194s 8858 runs, min/avg/max = 0.109/0.112/0.714 ms 1194s Running test "liststore-interface-peek-same" 1195s # Executing: glib/performance-threaded.test 1195s ok - glib/performance-threaded.test 1195s # Running test: glib/filter-streams.test 1195s 8912 runs, min/avg/max = 0.109/0.111/0.325 ms 1195s ok - glib/filter-streams.test 1195s TAP version 14 1195s # random seed: R02Sed769175bb848574a81272f60c3296dd 1195s 1..4 1195s # Start of filter-stream tests 1195s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=568394 1195s ok 1 /filter-stream/input 1195s ok 2 /filter-stream/output 1195s ok 3 /filter-stream/async-input 1195s ok 4 /filter-stream/async-output 1195s # End of filter-stream tests 1195s # Running test: glib/hash.test 1195s TAP version 14 1195s # random seed: R02Sbfcbe0968e774d04f8d483ce0703fdd5 1195s 1..34 1195s # Start of hash tests 1195s ok - glib/hash.test 1195s ok 1 /hash/misc 1195s ok 2 /hash/one 1195s ok 3 /hash/honeyman 1195s ok 4 /hash/direct 1195s ok 5 /hash/direct2 1195s ok 6 /hash/int 1195s ok 7 /hash/int64 1195s ok 8 /hash/double 1195s ok 9 /hash/string 1195s # Running test: glib/field-info.test 1195s ok - glib/field-info.test 1195s # Running test: glib/gdbus-auth.test 1195s ok 10 /hash/set 1195s ok 11 /hash/set-ref 1195s ok 12 /hash/ref 1195s ok 13 /hash/remove-all 1195s ok 14 /hash/recursive-remove-all 1195s ok 15 /hash/find 1195s ok 16 /hash/foreach 1195s ok 17 /hash/foreach-steal 1195s ok 18 /hash/steal-extended 1195s ok 19 /hash/steal-all-keys 1195s ok 20 /hash/steal-all-values 1195s ok 21 /hash/lookup-extended 1195s ok 22 /hash/new-similar 1195s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=642944 1195s ok 23 /hash/lookup-null-key 1195s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=650459 1195s ok 24 /hash/destroy-modify 1195s ok 25 /hash/consistency 1195s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=662544 1195s ok 26 /hash/iter-replace 1195s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=692815 1195s ok 27 /hash/set-insert-corruption 1195s ok 28 /hash/set-to-strv 1195s ok 29 /hash/get-keys-as-ptr-array 1195s ok 30 /hash/get-values-as-ptr-array 1195s ok 31 /hash/primes 1195s # Start of int64 tests 1195s # /hash/int64/collisions summary: Check int64 Hash collisions caused by ignoring high word 1195s ok 32 /hash/int64/collisions 1195s # End of int64 tests 1195s # Start of double tests 1195s # /hash/double/collisions summary: Check double Hash collisions caused by int conversion and by numbers larger than 2^64-1 (G_MAXUINT64) 1195s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/2771 1195s ok 33 /hash/double/collisions 1195s # End of double tests 1195s # Start of recursive-remove-all tests 1195s # End of recursive-remove-all tests 1195s # Start of steal-extended tests 1195s ok 34 /hash/steal-extended/optional 1195s # End of steal-extended tests 1195s # End of hash tests 1195s TAP version 14 1195s # random seed: R02Sc96b02c291ff6aa8b250462a3429aed0 1195s 1..4 1195s # Start of field-info tests 1195s ok - glib/gdbus-auth.test 1195s # Running test: glib/list.test 1195s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_field-info_OPH5J3/field-info/basic-struct-field/.dirs/home 1195s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_field-info_OPH5J3/field-info/basic-struct-field/.dirs/cache 1195s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_field-info_OPH5J3/field-info/basic-struct-field/.dirs/system-config1:/tmp/test_field-info_OPH5J3/field-info/basic-struct-field/.dirs/system-config2 1195s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_field-info_OPH5J3/field-info/basic-struct-field/.dirs/config 1195s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_field-info_OPH5J3/field-info/basic-struct-field/.dirs/system-data1:/tmp/test_field-info_OPH5J3/field-info/basic-struct-field/.dirs/system-data2 1195s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_field-info_OPH5J3/field-info/basic-struct-field/.dirs/data 1195s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_field-info_OPH5J3/field-info/basic-struct-field/.dirs/state 1195s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_field-info_OPH5J3/field-info/basic-struct-field/.dirs/runtime 1195s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 1195s # /field-info/basic-struct-field summary: Test basic properties of a GIFieldInfo from a C struct 1195s ok 1 /field-info/basic-struct-field 1195s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_field-info_OPH5J3/field-info/basic-union-field/.dirs/home 1195s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_field-info_OPH5J3/field-info/basic-union-field/.dirs/cache 1195s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_field-info_OPH5J3/field-info/basic-union-field/.dirs/system-config1:/tmp/test_field-info_OPH5J3/field-info/basic-union-field/.dirs/system-config2 1195s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_field-info_OPH5J3/field-info/basic-union-field/.dirs/config 1195s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_field-info_OPH5J3/field-info/basic-union-field/.dirs/system-data1:/tmp/test_field-info_OPH5J3/field-info/basic-union-field/.dirs/system-data2 1195s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_field-info_OPH5J3/field-info/basic-union-field/.dirs/data 1195s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_field-info_OPH5J3/field-info/basic-union-field/.dirs/state 1195s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_field-info_OPH5J3/field-info/basic-union-field/.dirs/runtime 1195s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 1195s # /field-info/basic-union-field summary: Test basic properties of a GIFieldInfo from a C union 1195s ok 2 /field-info/basic-union-field 1195s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_field-info_OPH5J3/field-info/read-write-struct-field/.dirs/home 1195s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_field-info_OPH5J3/field-info/read-write-struct-field/.dirs/cache 1195s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_field-info_OPH5J3/field-info/read-write-struct-field/.dirs/system-config1:/tmp/test_field-info_OPH5J3/field-info/read-write-struct-field/.dirs/system-config2 1195s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_field-info_OPH5J3/field-info/read-write-struct-field/.dirs/config 1195s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_field-info_OPH5J3/field-info/read-write-struct-field/.dirs/system-data1:/tmp/test_field-info_OPH5J3/field-info/read-write-struct-field/.dirs/system-data2 1195s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_field-info_OPH5J3/field-info/read-write-struct-field/.dirs/data 1195s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_field-info_OPH5J3/field-info/read-write-struct-field/.dirs/state 1195s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_field-info_OPH5J3/field-info/read-write-struct-field/.dirs/runtime 1195s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 1195s # /field-info/read-write-struct-field summary: Test reading and writing of a GIFieldInfo from a C union 1195s ok 3 /field-info/read-write-struct-field 1195s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_field-info_OPH5J3/field-info/read-write-union-field/.dirs/home 1195s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_field-info_OPH5J3/field-info/read-write-union-field/.dirs/cache 1195s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_field-info_OPH5J3/field-info/read-write-union-field/.dirs/system-config1:/tmp/test_field-info_OPH5J3/field-info/read-write-union-field/.dirs/system-config2 1195s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_field-info_OPH5J3/field-info/read-write-union-field/.dirs/config 1195s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_field-info_OPH5J3/field-info/read-write-union-field/.dirs/system-data1:/tmp/test_field-info_OPH5J3/field-info/read-write-union-field/.dirs/system-data2 1195s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_field-info_OPH5J3/field-info/read-write-union-field/.dirs/data 1195s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_field-info_OPH5J3/field-info/read-write-union-field/.dirs/state 1195s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_field-info_OPH5J3/field-info/read-write-union-field/.dirs/runtime 1195s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 1195s # /field-info/read-write-union-field summary: Test reading and writing of a GIFieldInfo from a C union 1195s ok 4 /field-info/read-write-union-field 1195s # End of field-info tests 1195s TAP version 14 1195s # random seed: R02S96235631f18a3636c08a0e382f1878bb 1195s 1..5 1195s # Start of gdbus tests 1195s # Start of auth tests 1195s # Start of client tests 1195s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-auth_OYR5J3/gdbus/auth/client/EXTERNAL/.dirs/home 1195s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-auth_OYR5J3/gdbus/auth/client/EXTERNAL/.dirs/cache 1195s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-auth_OYR5J3/gdbus/auth/client/EXTERNAL/.dirs/system-config1:/tmp/test_gdbus-auth_OYR5J3/gdbus/auth/client/EXTERNAL/.dirs/system-config2 1195s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-auth_OYR5J3/gdbus/auth/client/EXTERNAL/.dirs/config 1195s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-auth_OYR5J3/gdbus/auth/client/EXTERNAL/.dirs/system-data1:/tmp/test_gdbus-auth_OYR5J3/gdbus/auth/client/EXTERNAL/.dirs/system-data2 1195s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-auth_OYR5J3/gdbus/auth/client/EXTERNAL/.dirs/data 1195s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-auth_OYR5J3/gdbus/auth/client/EXTERNAL/.dirs/state 1195s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-auth_OYR5J3/gdbus/auth/client/EXTERNAL/.dirs/runtime 1195s ok 1 /gdbus/auth/client/EXTERNAL 1195s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-auth_OYR5J3/gdbus/auth/client/DBUS_COOKIE_SHA1/.dirs/home 1195s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-auth_OYR5J3/gdbus/auth/client/DBUS_COOKIE_SHA1/.dirs/cache 1195s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-auth_OYR5J3/gdbus/auth/client/DBUS_COOKIE_SHA1/.dirs/system-config1:/tmp/test_gdbus-auth_OYR5J3/gdbus/auth/client/DBUS_COOKIE_SHA1/.dirs/system-config2 1195s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-auth_OYR5J3/gdbus/auth/client/DBUS_COOKIE_SHA1/.dirs/config 1195s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-auth_OYR5J3/gdbus/auth/client/DBUS_COOKIE_SHA1/.dirs/system-data1:/tmp/test_gdbus-auth_OYR5J3/gdbus/auth/client/DBUS_COOKIE_SHA1/.dirs/system-data2 1195s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-auth_OYR5J3/gdbus/auth/client/DBUS_COOKIE_SHA1/.dirs/data 1195s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-auth_OYR5J3/gdbus/auth/client/DBUS_COOKIE_SHA1/.dirs/state 1195s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-auth_OYR5J3/gdbus/auth/client/DBUS_COOKIE_SHA1/.dirs/runtime 1195s ok 2 /gdbus/auth/client/DBUS_COOKIE_SHA1 1195s # End of client tests 1195s # Start of server tests 1195s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-auth_OYR5J3/gdbus/auth/server/ANONYMOUS/.dirs/home 1195s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-auth_OYR5J3/gdbus/auth/server/ANONYMOUS/.dirs/cache 1195s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-auth_OYR5J3/gdbus/auth/server/ANONYMOUS/.dirs/system-config1:/tmp/test_gdbus-auth_OYR5J3/gdbus/auth/server/ANONYMOUS/.dirs/system-config2 1195s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-auth_OYR5J3/gdbus/auth/server/ANONYMOUS/.dirs/config 1195s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-auth_OYR5J3/gdbus/auth/server/ANONYMOUS/.dirs/system-data1:/tmp/test_gdbus-auth_OYR5J3/gdbus/auth/server/ANONYMOUS/.dirs/system-data2 1195s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-auth_OYR5J3/gdbus/auth/server/ANONYMOUS/.dirs/data 1195s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-auth_OYR5J3/gdbus/auth/server/ANONYMOUS/.dirs/state 1195s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-auth_OYR5J3/gdbus/auth/server/ANONYMOUS/.dirs/runtime 1195s ok 3 /gdbus/auth/server/ANONYMOUS 1195s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-auth_OYR5J3/gdbus/auth/server/EXTERNAL/.dirs/home 1195s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-auth_OYR5J3/gdbus/auth/server/EXTERNAL/.dirs/cache 1195s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-auth_OYR5J3/gdbus/auth/server/EXTERNAL/.dirs/system-config1:/tmp/test_gdbus-auth_OYR5J3/gdbus/auth/server/EXTERNAL/.dirs/system-config2 1195s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-auth_OYR5J3/gdbus/auth/server/EXTERNAL/.dirs/config 1195s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-auth_OYR5J3/gdbus/auth/server/EXTERNAL/.dirs/system-data1:/tmp/test_gdbus-auth_OYR5J3/gdbus/auth/server/EXTERNAL/.dirs/system-data2 1195s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-auth_OYR5J3/gdbus/auth/server/EXTERNAL/.dirs/data 1195s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-auth_OYR5J3/gdbus/auth/server/EXTERNAL/.dirs/state 1195s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-auth_OYR5J3/gdbus/auth/server/EXTERNAL/.dirs/runtime 1195s ok 4 /gdbus/auth/server/EXTERNAL 1195s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-auth_OYR5J3/gdbus/auth/server/DBUS_COOKIE_SHA1/.dirs/home 1195s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-auth_OYR5J3/gdbus/auth/server/DBUS_COOKIE_SHA1/.dirs/cache 1195s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-auth_OYR5J3/gdbus/auth/server/DBUS_COOKIE_SHA1/.dirs/system-config1:/tmp/test_gdbus-auth_OYR5J3/gdbus/auth/server/DBUS_COOKIE_SHA1/.dirs/system-config2 1195s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-auth_OYR5J3/gdbus/auth/server/DBUS_COOKIE_SHA1/.dirs/config 1195s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-auth_OYR5J3/gdbus/auth/server/DBUS_COOKIE_SHA1/.dirs/system-data1:/tmp/test_gdbus-auth_OYR5J3/gdbus/auth/server/DBUS_COOKIE_SHA1/.dirs/system-data2 1195s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-auth_OYR5J3/gdbus/auth/server/DBUS_COOKIE_SHA1/.dirs/data 1195s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-auth_OYR5J3/gdbus/auth/server/DBUS_COOKIE_SHA1/.dirs/state 1195s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-auth_OYR5J3/gdbus/auth/server/DBUS_COOKIE_SHA1/.dirs/runtime 1195s ok 5 /gdbus/auth/server/DBUS_COOKIE_SHA1 1195s # End of server tests 1195s # End of auth tests 1195s # End of gdbus tests 1195s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1195s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1195s TAP version 14 1195s # random seed: R02S63ba8cd9192f047408eba13d3cb959d2 1195s 1..20 1195s # Start of list tests 1195s ok 1 /list/sort 1195s ok 2 /list/sort-with-data 1195s ok 3 /list/insert-before-link 1195s ok - glib/list.test 1195s # Running test: glib/signals-refcount4.test 1195s ok 4 /list/insert-sorted 1195s ok 5 /list/insert-sorted-with-data 1195s ok 6 /list/reverse 1195s ok 7 /list/nth 1195s ok 8 /list/concat 1195s ok 9 /list/remove 1195s ok 10 /list/remove-all 1195s ok 11 /list/first-last 1195s ok 12 /list/insert 1195s ok 13 /list/free-full 1195s ok 14 /list/copy 1195s ok 15 /list/copy-deep 1195s ok 16 /list/delete-link 1195s ok 17 /list/prepend 1195s ok 18 /list/position 1195s ok 19 /list/double-free 1195s # Start of sort tests 1195s ok 20 /list/sort/stable 1195s # End of sort tests 1195s # End of list tests 1195s TAP version 14 1195s # random seed: R02S2d4e46419d1835681a10ef8f90306ac8 1195s 1..1 1195s # Start of gobject tests 1195s # Start of refcount tests 1195s # init 0x11011c90 1195s # 1195s # init 0x11018510 1195s # 1200s # Executing: glib/signals-refcount4.test 1200s # dispose 0x11011c90! 1200s # 1200s # dispose 0x11018510! 1200s # 1200s ok 1 /gobject/refcount/signals 1200s # slow test /gobject/refcount/signals executed in 5.00 secs 1200s # End of refcount tests 1200s # End of gobject tests 1200s ok - glib/signals-refcount4.test 1200s # Running test: glib/cmph-bdz.test 1200s TAP version 14 1200s # random seed: R02S8b82afd5723059fd6c099c03757b25bd 1200s 1..2 1200s # Start of cmph-bdz tests 1200s ok 1 /cmph-bdz/search 1200s ok 2 /cmph-bdz/search-packed 1200s # End of cmph-bdz tests 1200s ok - glib/cmph-bdz.test 1200s # Running test: glib/rand.test 1200s TAP version 14 1200s # random seed: R02Sd07ea9abd2885e7fdf53bbb09bed0d18 1200s 1..2 1200s # Start of rand tests 1200s ok - glib/rand.test 1200s ok 1 /rand/test-rand 1200s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=502560 1200s ok 2 /rand/double-range 1200s # End of rand tests 1200s # Running test: glib/callable-info.test 1200s TAP version 14 1200s # random seed: R02S51c1fe606a42bcae8dc288c041b043c4 1200s 1..6 1200s # Start of callable-info tests 1200s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_callable-info_YKROK3/callable-info/sync-function/.dirs/home 1200s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_callable-info_YKROK3/callable-info/sync-function/.dirs/cache 1200s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_callable-info_YKROK3/callable-info/sync-function/.dirs/system-config1:/tmp/test_callable-info_YKROK3/callable-info/sync-function/.dirs/system-config2 1200s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_callable-info_YKROK3/callable-info/sync-function/.dirs/config 1200s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_callable-info_YKROK3/callable-info/sync-function/.dirs/system-data1:/tmp/test_callable-info_YKROK3/callable-info/sync-function/.dirs/system-data2 1200s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_callable-info_YKROK3/callable-info/sync-function/.dirs/data 1200s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_callable-info_YKROK3/callable-info/sync-function/.dirs/state 1200s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_callable-info_YKROK3/callable-info/sync-function/.dirs/runtime 1200s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 1200s ok 1 /callable-info/sync-function 1200s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_callable-info_YKROK3/callable-info/async-function/.dirs/home 1200s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_callable-info_YKROK3/callable-info/async-function/.dirs/cache 1200s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_callable-info_YKROK3/callable-info/async-function/.dirs/system-config1:/tmp/test_callable-info_YKROK3/callable-info/async-function/.dirs/system-config2 1200s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_callable-info_YKROK3/callable-info/async-function/.dirs/config 1200s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_callable-info_YKROK3/callable-info/async-function/.dirs/system-data1:/tmp/test_callable-info_YKROK3/callable-info/async-function/.dirs/system-data2 1200s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_callable-info_YKROK3/callable-info/async-function/.dirs/data 1200s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_callable-info_YKROK3/callable-info/async-function/.dirs/state 1200s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_callable-info_YKROK3/callable-info/async-function/.dirs/runtime 1200s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 1200s ok - glib/callable-info.test 1200s # Running test: glib/642026-ec.test 1200s ok 2 /callable-info/async-function 1200s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_callable-info_YKROK3/callable-info/is-method/.dirs/home 1200s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_callable-info_YKROK3/callable-info/is-method/.dirs/cache 1200s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_callable-info_YKROK3/callable-info/is-method/.dirs/system-config1:/tmp/test_callable-info_YKROK3/callable-info/is-method/.dirs/system-config2 1200s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_callable-info_YKROK3/callable-info/is-method/.dirs/config 1200s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_callable-info_YKROK3/callable-info/is-method/.dirs/system-data1:/tmp/test_callable-info_YKROK3/callable-info/is-method/.dirs/system-data2 1200s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_callable-info_YKROK3/callable-info/is-method/.dirs/data 1200s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_callable-info_YKROK3/callable-info/is-method/.dirs/state 1200s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_callable-info_YKROK3/callable-info/is-method/.dirs/runtime 1200s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 1200s ok 3 /callable-info/is-method 1200s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_callable-info_YKROK3/callable-info/static-method/.dirs/home 1200s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_callable-info_YKROK3/callable-info/static-method/.dirs/cache 1200s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_callable-info_YKROK3/callable-info/static-method/.dirs/system-config1:/tmp/test_callable-info_YKROK3/callable-info/static-method/.dirs/system-config2 1200s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_callable-info_YKROK3/callable-info/static-method/.dirs/config 1200s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_callable-info_YKROK3/callable-info/static-method/.dirs/system-data1:/tmp/test_callable-info_YKROK3/callable-info/static-method/.dirs/system-data2 1200s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_callable-info_YKROK3/callable-info/static-method/.dirs/data 1200s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_callable-info_YKROK3/callable-info/static-method/.dirs/state 1200s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_callable-info_YKROK3/callable-info/static-method/.dirs/runtime 1200s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 1200s ok 4 /callable-info/static-method 1200s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_callable-info_YKROK3/callable-info/static-vfunc/.dirs/home 1200s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_callable-info_YKROK3/callable-info/static-vfunc/.dirs/cache 1200s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_callable-info_YKROK3/callable-info/static-vfunc/.dirs/system-config1:/tmp/test_callable-info_YKROK3/callable-info/static-vfunc/.dirs/system-config2 1200s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_callable-info_YKROK3/callable-info/static-vfunc/.dirs/config 1200s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_callable-info_YKROK3/callable-info/static-vfunc/.dirs/system-data1:/tmp/test_callable-info_YKROK3/callable-info/static-vfunc/.dirs/system-data2 1200s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_callable-info_YKROK3/callable-info/static-vfunc/.dirs/data 1200s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_callable-info_YKROK3/callable-info/static-vfunc/.dirs/state 1200s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_callable-info_YKROK3/callable-info/static-vfunc/.dirs/runtime 1200s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 1200s # Bug Reference: https://gitlab.gnome.org/GNOME/gobject-introspection/-/merge_requests/361 1200s ok 5 /callable-info/static-vfunc # SKIP g-ir-scanner is not new enough 1200s # Start of platform tests 1200s # Start of unix tests 1200s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_callable-info_YKROK3/callable-info/platform/unix/is-method/.dirs/home 1200s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_callable-info_YKROK3/callable-info/platform/unix/is-method/.dirs/cache 1200s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_callable-info_YKROK3/callable-info/platform/unix/is-method/.dirs/system-config1:/tmp/test_callable-info_YKROK3/callable-info/platform/unix/is-method/.dirs/system-config2 1200s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_callable-info_YKROK3/callable-info/platform/unix/is-method/.dirs/config 1200s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_callable-info_YKROK3/callable-info/platform/unix/is-method/.dirs/system-data1:/tmp/test_callable-info_YKROK3/callable-info/platform/unix/is-method/.dirs/system-data2 1200s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_callable-info_YKROK3/callable-info/platform/unix/is-method/.dirs/data 1200s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_callable-info_YKROK3/callable-info/platform/unix/is-method/.dirs/state 1200s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_callable-info_YKROK3/callable-info/platform/unix/is-method/.dirs/runtime 1200s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 1200s # Checking DesktopAppInfo in Gio 1200s # Checking DesktopAppInfo in GioUnix 1200s ok 6 /callable-info/platform/unix/is-method 1200s # End of unix tests 1200s # End of platform tests 1200s # End of callable-info tests 1200s TAP version 14 1200s # random seed: R02Sa533ce55338719c92a8da73f40c185c6 1200s 1..1 1200s # Start of glib tests 1200s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=642026 1200s ok 1 /glib/642026 1200s # End of glib tests 1200s ok - glib/642026-ec.test 1200s # Running test: glib/unix-fd.test 1200s TAP version 14 1200s # random seed: R02S37a633b257547c30e967c16f94142a2e 1200s 1..2 1200s # Start of unix-fd tests 1200s ok 1 /unix-fd/fd-list 1200s ok 2 /unix-fd/scm 1200s # End of unix-fd tests 1200s ok - glib/unix-fd.test 1200s # Running test: glib/async-splice-output-stream.test 1200s TAP version 14 1200s # random seed: R02S2d84b0873ccd333cc17649795b96bff3 1200s 1..5 1200s # Start of async-splice tests 1200s ok 1 /async-splice/copy-chunks 1200s # GLib-GIO-DEBUG: _g_io_module_get_default: Found default implementation local (GLocalVfs) for ‘gio-vfs’ 1200s ok 2 /async-splice/copy-chunks-threaded-input 1200s ok 3 /async-splice/copy-chunks-threaded-output 1200s ok 4 /async-splice/copy-chunks-threaded 1200s ok 5 /async-splice/cancelled 1200s # End of async-splice tests 1200s ok - glib/async-splice-output-stream.test 1200s # Running test: glib/markup-escape.test 1200s TAP version 14 1200s # random seed: R02S8325b423688c7c6cd278096f25307bbb 1200s 1..41 1200s # Start of markup tests 1200s ok 1 /markup/format 1200s # Start of escape-text tests 1200s ok 2 /markup/escape-text/0 1200s ok 3 /markup/escape-text/1 1200s ok 4 /markup/escape-text/2 1200s ok 5 /markup/escape-text/3 1200s ok 6 /markup/escape-text/4 1200s ok 7 /markup/escape-text/5 1200s ok 8 /markup/escape-text/6 1200s ok 9 /markup/escape-text/7 1200s ok 10 /markup/escape-text/8 1200s ok 11 /markup/escape-text/9 1200s ok 12 /markup/escape-text/10 1200s ok 13 /markup/escape-text/11 1200s ok 14 /markup/escape-text/12 1200s ok 15 /markup/escape-text/13 1200s ok 16 /markup/escape-text/14 1200s ok 17 /markup/escape-text/15 1200s ok 18 /markup/escape-text/16 1200s ok 19 /markup/escape-text/17 1200s ok 20 /markup/escape-text/18 1200s ok 21 /markup/escape-text/19 1200s ok 22 /markup/escape-text/20 1200s ok 23 /markup/escape-text/21 1200s ok 24 /markup/escape-text/22 1200s # End of escape-text tests 1200s # Start of escape-unichar tests 1200s ok 25 /markup/escape-unichar/0 1200s ok 26 /markup/escape-unichar/1 1200s ok 27 /markup/escape-unichar/2 1200s ok 28 /markup/escape-unichar/3 1200s ok 29 /markup/escape-unichar/4 1200s ok 30 /markup/escape-unichar/5 1200s ok 31 /markup/escape-unichar/6 1200s ok 32 /markup/escape-unichar/7 1200s ok 33 /markup/escape-unichar/8 1200s ok 34 /markup/escape-unichar/9 1200s ok 35 /markup/escape-unichar/10 1200s ok 36 /markup/escape-unichar/11 1200s ok 37 /markup/escape-unichar/12 1200s ok 38 /markup/escape-unichar/13 1200s ok 39 /markup/escape-unichar/14 1200s ok 40 /markup/escape-unichar/15 1200s ok 41 /markup/escape-unichar/16 1200s # End of escape-unichar tests 1200s # End of markup tests 1200s ok - glib/markup-escape.test 1200s # Running test: glib/throws.test 1200s TAP version 14 1200s # random seed: R02S76cf0253b286f977975269d5b639a6b9 1200s 1..3 1200s # Start of throws tests 1200s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_throws_6WJMK3/throws/invoke-gerror/.dirs/home 1200s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_throws_6WJMK3/throws/invoke-gerror/.dirs/cache 1200s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_throws_6WJMK3/throws/invoke-gerror/.dirs/system-config1:/tmp/test_throws_6WJMK3/throws/invoke-gerror/.dirs/system-config2 1200s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_throws_6WJMK3/throws/invoke-gerror/.dirs/config 1200s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_throws_6WJMK3/throws/invoke-gerror/.dirs/system-data1:/tmp/test_throws_6WJMK3/throws/invoke-gerror/.dirs/system-data2 1200s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_throws_6WJMK3/throws/invoke-gerror/.dirs/data 1200s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_throws_6WJMK3/throws/invoke-gerror/.dirs/state 1200s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_throws_6WJMK3/throws/invoke-gerror/.dirs/runtime 1200s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 1200s # /throws/invoke-gerror summary: Test invoking a function that throws a GError 1200s ok 1 /throws/invoke-gerror 1200s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_throws_6WJMK3/throws/vfunc-can-throw-gerror/.dirs/home 1200s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_throws_6WJMK3/throws/vfunc-can-throw-gerror/.dirs/cache 1200s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_throws_6WJMK3/throws/vfunc-can-throw-gerror/.dirs/system-config1:/tmp/test_throws_6WJMK3/throws/vfunc-can-throw-gerror/.dirs/system-config2 1200s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_throws_6WJMK3/throws/vfunc-can-throw-gerror/.dirs/config 1200s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_throws_6WJMK3/throws/vfunc-can-throw-gerror/.dirs/system-data1:/tmp/test_throws_6WJMK3/throws/vfunc-can-throw-gerror/.dirs/system-data2 1200s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_throws_6WJMK3/throws/vfunc-can-throw-gerror/.dirs/data 1200s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_throws_6WJMK3/throws/vfunc-can-throw-gerror/.dirs/state 1200s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_throws_6WJMK3/throws/vfunc-can-throw-gerror/.dirs/runtime 1200s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 1200s # /throws/vfunc-can-throw-gerror summary: Test gi_callable_info_can_throw_gerror() on a vfunc 1200s ok 2 /throws/vfunc-can-throw-gerror 1200s ok - glib/throws.test 1200s # Running test: glib/asyncqueue.test 1200s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_throws_6WJMK3/throws/callback-can-throw-gerror/.dirs/home 1200s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_throws_6WJMK3/throws/callback-can-throw-gerror/.dirs/cache 1200s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_throws_6WJMK3/throws/callback-can-throw-gerror/.dirs/system-config1:/tmp/test_throws_6WJMK3/throws/callback-can-throw-gerror/.dirs/system-config2 1200s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_throws_6WJMK3/throws/callback-can-throw-gerror/.dirs/config 1200s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_throws_6WJMK3/throws/callback-can-throw-gerror/.dirs/system-data1:/tmp/test_throws_6WJMK3/throws/callback-can-throw-gerror/.dirs/system-data2 1200s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_throws_6WJMK3/throws/callback-can-throw-gerror/.dirs/data 1200s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_throws_6WJMK3/throws/callback-can-throw-gerror/.dirs/state 1200s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_throws_6WJMK3/throws/callback-can-throw-gerror/.dirs/runtime 1200s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 1200s # /throws/callback-can-throw-gerror summary: Test gi_callable_info_can_throw_gerror() on a callback 1200s ok 3 /throws/callback-can-throw-gerror 1200s # End of throws tests 1200s TAP version 14 1200s # random seed: R02Sbddcaade6787446757403a2d4e420f7f 1200s 1..7 1200s # Start of asyncqueue tests 1200s ok 1 /asyncqueue/basics 1200s ok 2 /asyncqueue/sort 1200s ok 3 /asyncqueue/destroy 1200s ok 4 /asyncqueue/threads 1201s ok 5 /asyncqueue/timed 1201s ok 6 /asyncqueue/remove 1201s ok 7 /asyncqueue/push_front 1201s # End of asyncqueue tests 1201s ok - glib/asyncqueue.test 1201s # Running test: glib/cxx-17.test 1201s TAP version 14 1201s # random seed: R02S64761c7ba880a7d505e1790d367468dd 1201s 1..2 1201s # Start of gtask tests 1201s # 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. 1201s ok 1 /gtask/name 1201s # Start of name tests 1201s # 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. 1201s ok 2 /gtask/name/macro-wrapper 1201s # End of name tests 1201s # End of gtask tests 1201s ok - glib/cxx-17.test 1201s # Running test: glib/repository.test 1201s TAP version 14 1201s # random seed: R02Sf6188f88bb7c645e7a20b5692d206139 1201s 1..24 1201s # Start of repository tests 1201s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_repository_TG1AK3/repository/basic/.dirs/home 1201s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_repository_TG1AK3/repository/basic/.dirs/cache 1201s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_repository_TG1AK3/repository/basic/.dirs/system-config1:/tmp/test_repository_TG1AK3/repository/basic/.dirs/system-config2 1201s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_repository_TG1AK3/repository/basic/.dirs/config 1201s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_repository_TG1AK3/repository/basic/.dirs/system-data1:/tmp/test_repository_TG1AK3/repository/basic/.dirs/system-data2 1201s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_repository_TG1AK3/repository/basic/.dirs/data 1201s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_repository_TG1AK3/repository/basic/.dirs/state 1201s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_repository_TG1AK3/repository/basic/.dirs/runtime 1201s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 1201s # /repository/basic summary: Test basic opening of a repository and requiring a typelib 1201s ok 1 /repository/basic 1201s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_repository_TG1AK3/repository/info/.dirs/home 1201s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_repository_TG1AK3/repository/info/.dirs/cache 1201s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_repository_TG1AK3/repository/info/.dirs/system-config1:/tmp/test_repository_TG1AK3/repository/info/.dirs/system-config2 1201s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_repository_TG1AK3/repository/info/.dirs/config 1201s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_repository_TG1AK3/repository/info/.dirs/system-data1:/tmp/test_repository_TG1AK3/repository/info/.dirs/system-data2 1201s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_repository_TG1AK3/repository/info/.dirs/data 1201s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_repository_TG1AK3/repository/info/.dirs/state 1201s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_repository_TG1AK3/repository/info/.dirs/runtime 1201s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 1201s # /repository/info summary: Test retrieving some basic info blobs from a typelib 1201s ok 2 /repository/info 1201s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_repository_TG1AK3/repository/dependencies/.dirs/home 1201s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_repository_TG1AK3/repository/dependencies/.dirs/cache 1201s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_repository_TG1AK3/repository/dependencies/.dirs/system-config1:/tmp/test_repository_TG1AK3/repository/dependencies/.dirs/system-config2 1201s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_repository_TG1AK3/repository/dependencies/.dirs/config 1201s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_repository_TG1AK3/repository/dependencies/.dirs/system-data1:/tmp/test_repository_TG1AK3/repository/dependencies/.dirs/system-data2 1201s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_repository_TG1AK3/repository/dependencies/.dirs/data 1201s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_repository_TG1AK3/repository/dependencies/.dirs/state 1201s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_repository_TG1AK3/repository/dependencies/.dirs/runtime 1201s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 1201s # /repository/dependencies summary: Test ensures namespace dependencies are correctly exposed 1201s ok 3 /repository/dependencies 1201s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_repository_TG1AK3/repository/arg-info/.dirs/home 1201s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_repository_TG1AK3/repository/arg-info/.dirs/cache 1201s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_repository_TG1AK3/repository/arg-info/.dirs/system-config1:/tmp/test_repository_TG1AK3/repository/arg-info/.dirs/system-config2 1201s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_repository_TG1AK3/repository/arg-info/.dirs/config 1201s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_repository_TG1AK3/repository/arg-info/.dirs/system-data1:/tmp/test_repository_TG1AK3/repository/arg-info/.dirs/system-data2 1201s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_repository_TG1AK3/repository/arg-info/.dirs/data 1201s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_repository_TG1AK3/repository/arg-info/.dirs/state 1201s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_repository_TG1AK3/repository/arg-info/.dirs/runtime 1201s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 1201s # /repository/arg-info summary: Test retrieving GIArgInfos from a typelib 1201s ok 4 /repository/arg-info 1201s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_repository_TG1AK3/repository/callable-info/.dirs/home 1201s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_repository_TG1AK3/repository/callable-info/.dirs/cache 1201s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_repository_TG1AK3/repository/callable-info/.dirs/system-config1:/tmp/test_repository_TG1AK3/repository/callable-info/.dirs/system-config2 1201s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_repository_TG1AK3/repository/callable-info/.dirs/config 1201s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_repository_TG1AK3/repository/callable-info/.dirs/system-data1:/tmp/test_repository_TG1AK3/repository/callable-info/.dirs/system-data2 1201s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_repository_TG1AK3/repository/callable-info/.dirs/data 1201s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_repository_TG1AK3/repository/callable-info/.dirs/state 1201s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_repository_TG1AK3/repository/callable-info/.dirs/runtime 1201s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 1201s # /repository/callable-info summary: Test retrieving GICallableInfos from a typelib 1201s ok 5 /repository/callable-info 1201s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_repository_TG1AK3/repository/callback-info/.dirs/home 1201s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_repository_TG1AK3/repository/callback-info/.dirs/cache 1201s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_repository_TG1AK3/repository/callback-info/.dirs/system-config1:/tmp/test_repository_TG1AK3/repository/callback-info/.dirs/system-config2 1201s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_repository_TG1AK3/repository/callback-info/.dirs/config 1201s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_repository_TG1AK3/repository/callback-info/.dirs/system-data1:/tmp/test_repository_TG1AK3/repository/callback-info/.dirs/system-data2 1201s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_repository_TG1AK3/repository/callback-info/.dirs/data 1201s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_repository_TG1AK3/repository/callback-info/.dirs/state 1201s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_repository_TG1AK3/repository/callback-info/.dirs/runtime 1201s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 1201s ok - glib/repository.test 1201s # Running test: glib/closure-refcount.test 1201s # /repository/callback-info summary: Test retrieving GICallbackInfos from a typelib 1201s ok 6 /repository/callback-info 1201s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_repository_TG1AK3/repository/char-types/.dirs/home 1201s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_repository_TG1AK3/repository/char-types/.dirs/cache 1201s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_repository_TG1AK3/repository/char-types/.dirs/system-config1:/tmp/test_repository_TG1AK3/repository/char-types/.dirs/system-config2 1201s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_repository_TG1AK3/repository/char-types/.dirs/config 1201s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_repository_TG1AK3/repository/char-types/.dirs/system-data1:/tmp/test_repository_TG1AK3/repository/char-types/.dirs/system-data2 1201s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_repository_TG1AK3/repository/char-types/.dirs/data 1201s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_repository_TG1AK3/repository/char-types/.dirs/state 1201s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_repository_TG1AK3/repository/char-types/.dirs/runtime 1201s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 1201s # /repository/char-types summary: Test that signed and unsigned char GITypeInfo have GITypeTag of INT8 and UINT8 respectively 1201s ok 7 /repository/char-types 1201s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_repository_TG1AK3/repository/constructor-return-type/.dirs/home 1201s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_repository_TG1AK3/repository/constructor-return-type/.dirs/cache 1201s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_repository_TG1AK3/repository/constructor-return-type/.dirs/system-config1:/tmp/test_repository_TG1AK3/repository/constructor-return-type/.dirs/system-config2 1201s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_repository_TG1AK3/repository/constructor-return-type/.dirs/config 1201s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_repository_TG1AK3/repository/constructor-return-type/.dirs/system-data1:/tmp/test_repository_TG1AK3/repository/constructor-return-type/.dirs/system-data2 1201s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_repository_TG1AK3/repository/constructor-return-type/.dirs/data 1201s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_repository_TG1AK3/repository/constructor-return-type/.dirs/state 1201s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_repository_TG1AK3/repository/constructor-return-type/.dirs/runtime 1201s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 1201s # /repository/constructor-return-type summary: Test the return type of a constructor, g_object_newv() 1201s ok 8 /repository/constructor-return-type 1201s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_repository_TG1AK3/repository/enum-info-c-identifier/.dirs/home 1201s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_repository_TG1AK3/repository/enum-info-c-identifier/.dirs/cache 1201s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_repository_TG1AK3/repository/enum-info-c-identifier/.dirs/system-config1:/tmp/test_repository_TG1AK3/repository/enum-info-c-identifier/.dirs/system-config2 1201s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_repository_TG1AK3/repository/enum-info-c-identifier/.dirs/config 1201s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_repository_TG1AK3/repository/enum-info-c-identifier/.dirs/system-data1:/tmp/test_repository_TG1AK3/repository/enum-info-c-identifier/.dirs/system-data2 1201s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_repository_TG1AK3/repository/enum-info-c-identifier/.dirs/data 1201s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_repository_TG1AK3/repository/enum-info-c-identifier/.dirs/state 1201s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_repository_TG1AK3/repository/enum-info-c-identifier/.dirs/runtime 1201s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 1201s # /repository/enum-info-c-identifier summary: Test that every enum member has a C identifier 1201s ok 9 /repository/enum-info-c-identifier 1201s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_repository_TG1AK3/repository/enum-info-static-methods/.dirs/home 1201s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_repository_TG1AK3/repository/enum-info-static-methods/.dirs/cache 1201s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_repository_TG1AK3/repository/enum-info-static-methods/.dirs/system-config1:/tmp/test_repository_TG1AK3/repository/enum-info-static-methods/.dirs/system-config2 1201s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_repository_TG1AK3/repository/enum-info-static-methods/.dirs/config 1201s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_repository_TG1AK3/repository/enum-info-static-methods/.dirs/system-data1:/tmp/test_repository_TG1AK3/repository/enum-info-static-methods/.dirs/system-data2 1201s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_repository_TG1AK3/repository/enum-info-static-methods/.dirs/data 1201s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_repository_TG1AK3/repository/enum-info-static-methods/.dirs/state 1201s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_repository_TG1AK3/repository/enum-info-static-methods/.dirs/runtime 1201s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 1201s # /repository/enum-info-static-methods summary: Test an enum with methods 1201s ok 10 /repository/enum-info-static-methods 1201s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_repository_TG1AK3/repository/error-quark/.dirs/home 1201s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_repository_TG1AK3/repository/error-quark/.dirs/cache 1201s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_repository_TG1AK3/repository/error-quark/.dirs/system-config1:/tmp/test_repository_TG1AK3/repository/error-quark/.dirs/system-config2 1201s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_repository_TG1AK3/repository/error-quark/.dirs/config 1201s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_repository_TG1AK3/repository/error-quark/.dirs/system-data1:/tmp/test_repository_TG1AK3/repository/error-quark/.dirs/system-data2 1201s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_repository_TG1AK3/repository/error-quark/.dirs/data 1201s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_repository_TG1AK3/repository/error-quark/.dirs/state 1201s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_repository_TG1AK3/repository/error-quark/.dirs/runtime 1201s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 1201s # /repository/error-quark summary: Test finding an error quark by error domain 1201s ok 11 /repository/error-quark 1201s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_repository_TG1AK3/repository/flags-info-c-identifier/.dirs/home 1201s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_repository_TG1AK3/repository/flags-info-c-identifier/.dirs/cache 1201s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_repository_TG1AK3/repository/flags-info-c-identifier/.dirs/system-config1:/tmp/test_repository_TG1AK3/repository/flags-info-c-identifier/.dirs/system-config2 1201s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_repository_TG1AK3/repository/flags-info-c-identifier/.dirs/config 1201s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_repository_TG1AK3/repository/flags-info-c-identifier/.dirs/system-data1:/tmp/test_repository_TG1AK3/repository/flags-info-c-identifier/.dirs/system-data2 1201s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_repository_TG1AK3/repository/flags-info-c-identifier/.dirs/data 1201s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_repository_TG1AK3/repository/flags-info-c-identifier/.dirs/state 1201s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_repository_TG1AK3/repository/flags-info-c-identifier/.dirs/runtime 1201s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 1201s # /repository/flags-info-c-identifier summary: Test that every flags member has a C identifier 1201s ok 12 /repository/flags-info-c-identifier 1201s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_repository_TG1AK3/repository/fundamental-ref-func/.dirs/home 1201s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_repository_TG1AK3/repository/fundamental-ref-func/.dirs/cache 1201s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_repository_TG1AK3/repository/fundamental-ref-func/.dirs/system-config1:/tmp/test_repository_TG1AK3/repository/fundamental-ref-func/.dirs/system-config2 1201s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_repository_TG1AK3/repository/fundamental-ref-func/.dirs/config 1201s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_repository_TG1AK3/repository/fundamental-ref-func/.dirs/system-data1:/tmp/test_repository_TG1AK3/repository/fundamental-ref-func/.dirs/system-data2 1201s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_repository_TG1AK3/repository/fundamental-ref-func/.dirs/data 1201s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_repository_TG1AK3/repository/fundamental-ref-func/.dirs/state 1201s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_repository_TG1AK3/repository/fundamental-ref-func/.dirs/runtime 1201s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 1201s # /repository/fundamental-ref-func summary: Test getting the ref func of a fundamental type 1201s ok 13 /repository/fundamental-ref-func 1201s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_repository_TG1AK3/repository/instance-method-ownership-transfer/.dirs/home 1201s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_repository_TG1AK3/repository/instance-method-ownership-transfer/.dirs/cache 1201s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_repository_TG1AK3/repository/instance-method-ownership-transfer/.dirs/system-config1:/tmp/test_repository_TG1AK3/repository/instance-method-ownership-transfer/.dirs/system-config2 1201s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_repository_TG1AK3/repository/instance-method-ownership-transfer/.dirs/config 1201s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_repository_TG1AK3/repository/instance-method-ownership-transfer/.dirs/system-data1:/tmp/test_repository_TG1AK3/repository/instance-method-ownership-transfer/.dirs/system-data2 1201s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_repository_TG1AK3/repository/instance-method-ownership-transfer/.dirs/data 1201s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_repository_TG1AK3/repository/instance-method-ownership-transfer/.dirs/state 1201s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_repository_TG1AK3/repository/instance-method-ownership-transfer/.dirs/runtime 1201s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 1201s # /repository/instance-method-ownership-transfer summary: Test two methods of the same object having opposite ownership transfer of the instance parameter 1201s ok 14 /repository/instance-method-ownership-transfer 1201s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_repository_TG1AK3/repository/object-gtype-interfaces/.dirs/home 1201s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_repository_TG1AK3/repository/object-gtype-interfaces/.dirs/cache 1201s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_repository_TG1AK3/repository/object-gtype-interfaces/.dirs/system-config1:/tmp/test_repository_TG1AK3/repository/object-gtype-interfaces/.dirs/system-config2 1201s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_repository_TG1AK3/repository/object-gtype-interfaces/.dirs/config 1201s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_repository_TG1AK3/repository/object-gtype-interfaces/.dirs/system-data1:/tmp/test_repository_TG1AK3/repository/object-gtype-interfaces/.dirs/system-data2 1201s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_repository_TG1AK3/repository/object-gtype-interfaces/.dirs/data 1201s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_repository_TG1AK3/repository/object-gtype-interfaces/.dirs/state 1201s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_repository_TG1AK3/repository/object-gtype-interfaces/.dirs/runtime 1201s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 1201s # /repository/object-gtype-interfaces summary: Test gi_repository_get_object_gtype_interfaces() 1201s ok 15 /repository/object-gtype-interfaces 1201s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_repository_TG1AK3/repository/signal-info-with-array-length-arg/.dirs/home 1201s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_repository_TG1AK3/repository/signal-info-with-array-length-arg/.dirs/cache 1201s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_repository_TG1AK3/repository/signal-info-with-array-length-arg/.dirs/system-config1:/tmp/test_repository_TG1AK3/repository/signal-info-with-array-length-arg/.dirs/system-config2 1201s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_repository_TG1AK3/repository/signal-info-with-array-length-arg/.dirs/config 1201s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_repository_TG1AK3/repository/signal-info-with-array-length-arg/.dirs/system-data1:/tmp/test_repository_TG1AK3/repository/signal-info-with-array-length-arg/.dirs/system-data2 1201s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_repository_TG1AK3/repository/signal-info-with-array-length-arg/.dirs/data 1201s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_repository_TG1AK3/repository/signal-info-with-array-length-arg/.dirs/state 1201s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_repository_TG1AK3/repository/signal-info-with-array-length-arg/.dirs/runtime 1201s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 1201s # /repository/signal-info-with-array-length-arg summary: Test finding the associated array length argument of an array parameter of a signal 1201s ok 16 /repository/signal-info-with-array-length-arg 1201s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_repository_TG1AK3/repository/type-info-name/.dirs/home 1201s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_repository_TG1AK3/repository/type-info-name/.dirs/cache 1201s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_repository_TG1AK3/repository/type-info-name/.dirs/system-config1:/tmp/test_repository_TG1AK3/repository/type-info-name/.dirs/system-config2 1201s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_repository_TG1AK3/repository/type-info-name/.dirs/config 1201s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_repository_TG1AK3/repository/type-info-name/.dirs/system-data1:/tmp/test_repository_TG1AK3/repository/type-info-name/.dirs/system-data2 1201s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_repository_TG1AK3/repository/type-info-name/.dirs/data 1201s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_repository_TG1AK3/repository/type-info-name/.dirs/state 1201s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_repository_TG1AK3/repository/type-info-name/.dirs/runtime 1201s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 1201s # /repository/type-info-name summary: Test that gi_base_info_get_name() returns null for GITypeInfo 1201s # Bug Reference: https://gitlab.gnome.org/GNOME/gobject-introspection/issues/96 1201s ok 17 /repository/type-info-name 1201s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_repository_TG1AK3/repository/vfunc-info-with-no-invoker/.dirs/home 1201s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_repository_TG1AK3/repository/vfunc-info-with-no-invoker/.dirs/cache 1201s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_repository_TG1AK3/repository/vfunc-info-with-no-invoker/.dirs/system-config1:/tmp/test_repository_TG1AK3/repository/vfunc-info-with-no-invoker/.dirs/system-config2 1201s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_repository_TG1AK3/repository/vfunc-info-with-no-invoker/.dirs/config 1201s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_repository_TG1AK3/repository/vfunc-info-with-no-invoker/.dirs/system-data1:/tmp/test_repository_TG1AK3/repository/vfunc-info-with-no-invoker/.dirs/system-data2 1201s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_repository_TG1AK3/repository/vfunc-info-with-no-invoker/.dirs/data 1201s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_repository_TG1AK3/repository/vfunc-info-with-no-invoker/.dirs/state 1201s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_repository_TG1AK3/repository/vfunc-info-with-no-invoker/.dirs/runtime 1201s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 1201s # /repository/vfunc-info-with-no-invoker summary: Test vfunc with no known invoker on object, such as GObject.dispose 1201s ok 18 /repository/vfunc-info-with-no-invoker 1201s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_repository_TG1AK3/repository/vfunc-info-with-invoker-on-interface/.dirs/home 1201s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_repository_TG1AK3/repository/vfunc-info-with-invoker-on-interface/.dirs/cache 1201s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_repository_TG1AK3/repository/vfunc-info-with-invoker-on-interface/.dirs/system-config1:/tmp/test_repository_TG1AK3/repository/vfunc-info-with-invoker-on-interface/.dirs/system-config2 1201s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_repository_TG1AK3/repository/vfunc-info-with-invoker-on-interface/.dirs/config 1201s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_repository_TG1AK3/repository/vfunc-info-with-invoker-on-interface/.dirs/system-data1:/tmp/test_repository_TG1AK3/repository/vfunc-info-with-invoker-on-interface/.dirs/system-data2 1201s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_repository_TG1AK3/repository/vfunc-info-with-invoker-on-interface/.dirs/data 1201s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_repository_TG1AK3/repository/vfunc-info-with-invoker-on-interface/.dirs/state 1201s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_repository_TG1AK3/repository/vfunc-info-with-invoker-on-interface/.dirs/runtime 1201s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 1201s # /repository/vfunc-info-with-invoker-on-interface summary: Test vfunc with invoker on interface, such as GFile.read_async 1201s ok 19 /repository/vfunc-info-with-invoker-on-interface 1201s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_repository_TG1AK3/repository/vfunc-info-with-invoker-on-object/.dirs/home 1201s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_repository_TG1AK3/repository/vfunc-info-with-invoker-on-object/.dirs/cache 1201s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_repository_TG1AK3/repository/vfunc-info-with-invoker-on-object/.dirs/system-config1:/tmp/test_repository_TG1AK3/repository/vfunc-info-with-invoker-on-object/.dirs/system-config2 1201s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_repository_TG1AK3/repository/vfunc-info-with-invoker-on-object/.dirs/config 1201s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_repository_TG1AK3/repository/vfunc-info-with-invoker-on-object/.dirs/system-data1:/tmp/test_repository_TG1AK3/repository/vfunc-info-with-invoker-on-object/.dirs/system-data2 1201s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_repository_TG1AK3/repository/vfunc-info-with-invoker-on-object/.dirs/data 1201s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_repository_TG1AK3/repository/vfunc-info-with-invoker-on-object/.dirs/state 1201s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_repository_TG1AK3/repository/vfunc-info-with-invoker-on-object/.dirs/runtime 1201s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 1201s # /repository/vfunc-info-with-invoker-on-object summary: Test vfunc with invoker on object, such as GAppLaunchContext.get_display 1201s ok 20 /repository/vfunc-info-with-invoker-on-object 1201s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_repository_TG1AK3/repository/find-by-gtype/.dirs/home 1201s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_repository_TG1AK3/repository/find-by-gtype/.dirs/cache 1201s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_repository_TG1AK3/repository/find-by-gtype/.dirs/system-config1:/tmp/test_repository_TG1AK3/repository/find-by-gtype/.dirs/system-config2 1201s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_repository_TG1AK3/repository/find-by-gtype/.dirs/config 1201s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_repository_TG1AK3/repository/find-by-gtype/.dirs/system-data1:/tmp/test_repository_TG1AK3/repository/find-by-gtype/.dirs/system-data2 1201s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_repository_TG1AK3/repository/find-by-gtype/.dirs/data 1201s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_repository_TG1AK3/repository/find-by-gtype/.dirs/state 1201s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_repository_TG1AK3/repository/find-by-gtype/.dirs/runtime 1201s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 1201s # /repository/find-by-gtype summary: Test finding a GType 1201s ok 21 /repository/find-by-gtype 1201s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_repository_TG1AK3/repository/loaded-namespaces/.dirs/home 1201s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_repository_TG1AK3/repository/loaded-namespaces/.dirs/cache 1201s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_repository_TG1AK3/repository/loaded-namespaces/.dirs/system-config1:/tmp/test_repository_TG1AK3/repository/loaded-namespaces/.dirs/system-config2 1201s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_repository_TG1AK3/repository/loaded-namespaces/.dirs/config 1201s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_repository_TG1AK3/repository/loaded-namespaces/.dirs/system-data1:/tmp/test_repository_TG1AK3/repository/loaded-namespaces/.dirs/system-data2 1201s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_repository_TG1AK3/repository/loaded-namespaces/.dirs/data 1201s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_repository_TG1AK3/repository/loaded-namespaces/.dirs/state 1201s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_repository_TG1AK3/repository/loaded-namespaces/.dirs/runtime 1201s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 1201s # /repository/loaded-namespaces summary: Test listing loaded namespaces 1201s ok 22 /repository/loaded-namespaces 1201s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_repository_TG1AK3/repository/dup_default/.dirs/home 1201s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_repository_TG1AK3/repository/dup_default/.dirs/cache 1201s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_repository_TG1AK3/repository/dup_default/.dirs/system-config1:/tmp/test_repository_TG1AK3/repository/dup_default/.dirs/system-config2 1201s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_repository_TG1AK3/repository/dup_default/.dirs/config 1201s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_repository_TG1AK3/repository/dup_default/.dirs/system-data1:/tmp/test_repository_TG1AK3/repository/dup_default/.dirs/system-data2 1201s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_repository_TG1AK3/repository/dup_default/.dirs/data 1201s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_repository_TG1AK3/repository/dup_default/.dirs/state 1201s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_repository_TG1AK3/repository/dup_default/.dirs/runtime 1201s ok 23 /repository/dup_default 1201s # Start of base-info tests 1201s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_repository_TG1AK3/repository/base-info/clear/.dirs/home 1201s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_repository_TG1AK3/repository/base-info/clear/.dirs/cache 1201s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_repository_TG1AK3/repository/base-info/clear/.dirs/system-config1:/tmp/test_repository_TG1AK3/repository/base-info/clear/.dirs/system-config2 1201s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_repository_TG1AK3/repository/base-info/clear/.dirs/config 1201s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_repository_TG1AK3/repository/base-info/clear/.dirs/system-data1:/tmp/test_repository_TG1AK3/repository/base-info/clear/.dirs/system-data2 1201s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_repository_TG1AK3/repository/base-info/clear/.dirs/data 1201s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_repository_TG1AK3/repository/base-info/clear/.dirs/state 1201s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_repository_TG1AK3/repository/base-info/clear/.dirs/runtime 1201s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 1201s # /repository/base-info/clear summary: Test calling gi_base_info_clear() on a zero-filled struct 1201s ok 24 /repository/base-info/clear 1201s # End of base-info tests 1201s # End of repository tests 1201s TAP version 14 1201s # random seed: R02Sf8e8848b6bf6fda8eafaf84955db690a 1201s 1..1 1201s # Start of closure tests 1201s # Init 0x8933bf8 1201s # Yielding from thread2 1201s # Yielding from thread1 1201s # Yielding from thread2 1202s # Yielding from thread2 1202s # Yielding from thread1 1202s # Yielding from thread2 1202s # Yielding from thread1 1202s # Yielding from thread2 1202s # Yielding from main thread 1202s # Yielding from thread1 1202s # Yielding from thread2 1203s # Yielding from thread1 1203s # Yielding from thread2 1203s # Yielding from thread1 1203s # Yielding from main thread 1203s # Yielding from thread2 1203s # Yielding from thread1 1203s # Yielding from thread2 1203s # Yielding from thread1 1203s # Yielding from main thread 1203s # Yielding from thread2 1204s # Yielding from thread1 1204s # Yielding from thread2 1204s # Yielding from thread1 1204s # Yielding from thread2 1204s # Yielding from main thread 1204s # Yielding from thread1 1204s # Yielding from thread2 1204s # Yielding from thread1 1205s # Yielding from thread2 1205s # Yielding from main thread 1205s # Yielding from thread1 1205s # Executing: glib/closure-refcount.test 1205s # Yielding from thread2 1205s # Yielding from thread1 1205s # Yielding from thread2 1205s # Yielding from thread1 1205s # Yielding from main thread 1205s # Yielding from thread2 1205s # Yielding from thread1 1206s # Yielding from thread2 1206s # Yielding from thread1 1206s # Yielding from main thread 1206s # Yielding from thread2 1206s # Yielding from thread1 1206s # Yielding from thread2 1206s # Yielding from thread1 1206s # Yielding from thread2 1206s # Yielding from main thread 1206s # Yielding from thread1 1207s # Yielding from thread2 1207s # Yielding from thread1 1207s # Yielding from thread2 1207s # Yielding from main thread 1207s # Yielding from thread1 1207s # Yielding from thread2 1207s # Yielding from thread1 1207s # Yielding from thread2 1207s # Yielding from thread1 1207s # Stopping 1207s # Stopped 1207s ok 1 /closure/refcount 1207s # slow test /closure/refcount executed in 6.79 secs 1207s # End of closure tests 1207s ok - glib/closure-refcount.test 1207s # Running test: glib/portal-support-flatpak-network-only.test 1207s TAP version 14 1207s # random seed: R02S61bac559b86b5f5940cd9e22e70181cc 1207s 1..1 1207s # Start of portal-support tests 1207s # Start of flatpak tests 1207s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_portal-support-flatpak-network-only_0LEHK3/portal-support/flatpak/network/.dirs/home 1207s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_portal-support-flatpak-network-only_0LEHK3/portal-support/flatpak/network/.dirs/cache 1207s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_portal-support-flatpak-network-only_0LEHK3/portal-support/flatpak/network/.dirs/system-config1:/tmp/test_portal-support-flatpak-network-only_0LEHK3/portal-support/flatpak/network/.dirs/system-config2 1207s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_portal-support-flatpak-network-only_0LEHK3/portal-support/flatpak/network/.dirs/config 1207s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_portal-support-flatpak-network-only_0LEHK3/portal-support/flatpak/network/.dirs/system-data1:/tmp/test_portal-support-flatpak-network-only_0LEHK3/portal-support/flatpak/network/.dirs/system-data2 1207s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_portal-support-flatpak-network-only_0LEHK3/portal-support/flatpak/network/.dirs/data 1207s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_portal-support-flatpak-network-only_0LEHK3/portal-support/flatpak/network/.dirs/state 1207s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_portal-support-flatpak-network-only_0LEHK3/portal-support/flatpak/network/.dirs/runtime 1207s # Creating .flatpak-info in /tmp/test_portal-support-flatpak-network-only_0LEHK3/portal-support/flatpak/network/.dirs/runtime/.flatpak-info 1207s ok 1 /portal-support/flatpak/network 1207s # End of flatpak tests 1207s # End of portal-support tests 1207s ok - glib/portal-support-flatpak-network-only.test 1208s # Running test: glib/converter.test 1208s TAP version 14 1208s # random seed: R02S205dfe4ce77a7a53be7869eee0389945 1208s 1..3 1208s # Start of converter tests 1208s ok 1 /converter/bytes 1208s ok 2 /converter/extra-bytes-at-end 1208s ok 3 /converter/gzip-os-property 1208s # End of converter tests 1208s ok - glib/converter.test 1208s # Running test: glib/objects-refcount1.test 1208s TAP version 14 1208s # random seed: R02Sc71b878823abcb51052bef912c0749fa 1208s 1..1 1208s # Start of gobject tests 1208s # Start of refcount tests 1208s # init 0x2f26ee8 1208s # 1208s # init 0x2f26fc8 1208s # 1210s # Executing: glib/objects-refcount1.test 1213s # dispose 0x2f26ee8! 1213s # 1213s # dispose 0x2f26fc8! 1213s # 1213s ok 1 /gobject/refcount/object-basics 1213s # slow test /gobject/refcount/object-basics executed in 5.00 secs 1213s # End of refcount tests 1213s # End of gobject tests 1213s ok - glib/objects-refcount1.test 1213s # Running test: glib/gdbus-address-get-session.test 1213s TAP version 14 1213s # random seed: R02S3ec98cf3254d9a4c6ad1bacb374da2f4 1213s 1..2 1213s # Start of gdbus tests 1213s ok 1 /gdbus/x11-autolaunch 1213s ok 2 /gdbus/xdg-runtime 1213s # End of gdbus tests 1213s ok - glib/gdbus-address-get-session.test 1213s # Running test: glib/error.test 1213s TAP version 14 1213s # random seed: R02S20a56e2e46ff2a18d6ce8873aaf21bf9 1213s 1..3 1213s # Start of error tests 1213s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_error_437DK3/error/from-errno/.dirs/home 1213s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_error_437DK3/error/from-errno/.dirs/cache 1213s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_error_437DK3/error/from-errno/.dirs/system-config1:/tmp/test_error_437DK3/error/from-errno/.dirs/system-config2 1213s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_error_437DK3/error/from-errno/.dirs/config 1213s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_error_437DK3/error/from-errno/.dirs/system-data1:/tmp/test_error_437DK3/error/from-errno/.dirs/system-data2 1213s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_error_437DK3/error/from-errno/.dirs/data 1213s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_error_437DK3/error/from-errno/.dirs/state 1213s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_error_437DK3/error/from-errno/.dirs/runtime 1213s ok 1 /error/from-errno 1213s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_error_437DK3/error/from-file-error/.dirs/home 1213s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_error_437DK3/error/from-file-error/.dirs/cache 1213s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_error_437DK3/error/from-file-error/.dirs/system-config1:/tmp/test_error_437DK3/error/from-file-error/.dirs/system-config2 1213s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_error_437DK3/error/from-file-error/.dirs/config 1213s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_error_437DK3/error/from-file-error/.dirs/system-data1:/tmp/test_error_437DK3/error/from-file-error/.dirs/system-data2 1213s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_error_437DK3/error/from-file-error/.dirs/data 1213s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_error_437DK3/error/from-file-error/.dirs/state 1213s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_error_437DK3/error/from-file-error/.dirs/runtime 1213s ok - glib/error.test 1213s # Running test: glib/gdbus-close-pending.test 1213s ok 2 /error/from-file-error 1213s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_error_437DK3/error/from-win32-error/.dirs/home 1213s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_error_437DK3/error/from-win32-error/.dirs/cache 1213s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_error_437DK3/error/from-win32-error/.dirs/system-config1:/tmp/test_error_437DK3/error/from-win32-error/.dirs/system-config2 1213s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_error_437DK3/error/from-win32-error/.dirs/config 1213s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_error_437DK3/error/from-win32-error/.dirs/system-data1:/tmp/test_error_437DK3/error/from-win32-error/.dirs/system-data2 1213s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_error_437DK3/error/from-win32-error/.dirs/data 1213s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_error_437DK3/error/from-win32-error/.dirs/state 1213s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_error_437DK3/error/from-win32-error/.dirs/runtime 1213s ok 3 /error/from-win32-error # SKIP Windows error codes can only be checked on Windows 1213s # End of error tests 1213s TAP version 14 1213s # random seed: R02S3d14f90bb14837c7bfdcd7f0c6d480de 1213s 1..2 1213s # Start of gdbus tests 1213s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-close-pending_MP5DK3/gdbus/close-pending/.dirs/home 1213s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-close-pending_MP5DK3/gdbus/close-pending/.dirs/cache 1213s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-close-pending_MP5DK3/gdbus/close-pending/.dirs/system-config1:/tmp/test_gdbus-close-pending_MP5DK3/gdbus/close-pending/.dirs/system-config2 1213s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-close-pending_MP5DK3/gdbus/close-pending/.dirs/config 1213s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-close-pending_MP5DK3/gdbus/close-pending/.dirs/system-data1:/tmp/test_gdbus-close-pending_MP5DK3/gdbus/close-pending/.dirs/system-data2 1213s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-close-pending_MP5DK3/gdbus/close-pending/.dirs/data 1213s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-close-pending_MP5DK3/gdbus/close-pending/.dirs/state 1213s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-close-pending_MP5DK3/gdbus/close-pending/.dirs/runtime 1213s ok 1 /gdbus/close-pending 1213s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-close-pending_MP5DK3/gdbus/unref-pending/.dirs/home 1213s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-close-pending_MP5DK3/gdbus/unref-pending/.dirs/cache 1213s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-close-pending_MP5DK3/gdbus/unref-pending/.dirs/system-config1:/tmp/test_gdbus-close-pending_MP5DK3/gdbus/unref-pending/.dirs/system-config2 1213s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-close-pending_MP5DK3/gdbus/unref-pending/.dirs/config 1213s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-close-pending_MP5DK3/gdbus/unref-pending/.dirs/system-data1:/tmp/test_gdbus-close-pending_MP5DK3/gdbus/unref-pending/.dirs/system-data2 1213s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-close-pending_MP5DK3/gdbus/unref-pending/.dirs/data 1213s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-close-pending_MP5DK3/gdbus/unref-pending/.dirs/state 1213s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-close-pending_MP5DK3/gdbus/unref-pending/.dirs/runtime 1213s ok 2 /gdbus/unref-pending 1213s # End of gdbus tests 1213s ok - glib/gdbus-close-pending.test 1213s # Running test: glib/volumemonitor.test 1213s TAP version 14 1213s # random seed: R02S245e81490697bbd588488c09a38cdab8 1213s # GLib-GIO-DEBUG: _g_io_module_get_default: Found default implementation local (GLocalVfs) for ‘gio-vfs’ 1213s 1..3 1213s # Start of volumemonitor tests 1213s ok 1 /volumemonitor/connected_drives 1213s ok 2 /volumemonitor/volumes 1213s ok 3 /volumemonitor/mounts 1213s # End of volumemonitor tests 1213s ok - glib/volumemonitor.test 1213s # Running test: glib/gdbus-addresses.test 1213s TAP version 14 1213s # random seed: R02Sf6c4661b71a392958f4a32a0d80b4d95 1213s 1..9 1213s # Start of gdbus tests 1213s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-addresses_4C6KK3/gdbus/empty-address/.dirs/home 1213s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-addresses_4C6KK3/gdbus/empty-address/.dirs/cache 1213s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-addresses_4C6KK3/gdbus/empty-address/.dirs/system-config1:/tmp/test_gdbus-addresses_4C6KK3/gdbus/empty-address/.dirs/system-config2 1213s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-addresses_4C6KK3/gdbus/empty-address/.dirs/config 1213s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-addresses_4C6KK3/gdbus/empty-address/.dirs/system-data1:/tmp/test_gdbus-addresses_4C6KK3/gdbus/empty-address/.dirs/system-data2 1213s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-addresses_4C6KK3/gdbus/empty-address/.dirs/data 1213s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-addresses_4C6KK3/gdbus/empty-address/.dirs/state 1213s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-addresses_4C6KK3/gdbus/empty-address/.dirs/runtime 1213s ok 1 /gdbus/empty-address 1213s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-addresses_4C6KK3/gdbus/unsupported-address/.dirs/home 1213s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-addresses_4C6KK3/gdbus/unsupported-address/.dirs/cache 1213s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-addresses_4C6KK3/gdbus/unsupported-address/.dirs/system-config1:/tmp/test_gdbus-addresses_4C6KK3/gdbus/unsupported-address/.dirs/system-config2 1213s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-addresses_4C6KK3/gdbus/unsupported-address/.dirs/config 1213s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-addresses_4C6KK3/gdbus/unsupported-address/.dirs/system-data1:/tmp/test_gdbus-addresses_4C6KK3/gdbus/unsupported-address/.dirs/system-data2 1213s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-addresses_4C6KK3/gdbus/unsupported-address/.dirs/data 1213s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-addresses_4C6KK3/gdbus/unsupported-address/.dirs/state 1213s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-addresses_4C6KK3/gdbus/unsupported-address/.dirs/runtime 1213s ok 2 /gdbus/unsupported-address 1213s ok - glib/gdbus-addresses.test 1213s # Running test: glib/markup.test 1213s ok - glib/markup.test 1213s # Running test: glib/gi-inspect-typelib.py.test 1213s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-addresses_4C6KK3/gdbus/address-parsing/.dirs/home 1213s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-addresses_4C6KK3/gdbus/address-parsing/.dirs/cache 1213s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-addresses_4C6KK3/gdbus/address-parsing/.dirs/system-config1:/tmp/test_gdbus-addresses_4C6KK3/gdbus/address-parsing/.dirs/system-config2 1213s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-addresses_4C6KK3/gdbus/address-parsing/.dirs/config 1213s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-addresses_4C6KK3/gdbus/address-parsing/.dirs/system-data1:/tmp/test_gdbus-addresses_4C6KK3/gdbus/address-parsing/.dirs/system-data2 1213s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-addresses_4C6KK3/gdbus/address-parsing/.dirs/data 1213s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-addresses_4C6KK3/gdbus/address-parsing/.dirs/state 1213s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-addresses_4C6KK3/gdbus/address-parsing/.dirs/runtime 1213s ok 3 /gdbus/address-parsing 1213s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-addresses_4C6KK3/gdbus/unix-address/.dirs/home 1213s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-addresses_4C6KK3/gdbus/unix-address/.dirs/cache 1213s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-addresses_4C6KK3/gdbus/unix-address/.dirs/system-config1:/tmp/test_gdbus-addresses_4C6KK3/gdbus/unix-address/.dirs/system-config2 1213s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-addresses_4C6KK3/gdbus/unix-address/.dirs/config 1213s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-addresses_4C6KK3/gdbus/unix-address/.dirs/system-data1:/tmp/test_gdbus-addresses_4C6KK3/gdbus/unix-address/.dirs/system-data2 1213s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-addresses_4C6KK3/gdbus/unix-address/.dirs/data 1213s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-addresses_4C6KK3/gdbus/unix-address/.dirs/state 1213s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-addresses_4C6KK3/gdbus/unix-address/.dirs/runtime 1213s ok 4 /gdbus/unix-address 1213s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-addresses_4C6KK3/gdbus/nonce-tcp-address/.dirs/home 1213s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-addresses_4C6KK3/gdbus/nonce-tcp-address/.dirs/cache 1213s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-addresses_4C6KK3/gdbus/nonce-tcp-address/.dirs/system-config1:/tmp/test_gdbus-addresses_4C6KK3/gdbus/nonce-tcp-address/.dirs/system-config2 1213s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-addresses_4C6KK3/gdbus/nonce-tcp-address/.dirs/config 1213s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-addresses_4C6KK3/gdbus/nonce-tcp-address/.dirs/system-data1:/tmp/test_gdbus-addresses_4C6KK3/gdbus/nonce-tcp-address/.dirs/system-data2 1213s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-addresses_4C6KK3/gdbus/nonce-tcp-address/.dirs/data 1213s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-addresses_4C6KK3/gdbus/nonce-tcp-address/.dirs/state 1213s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-addresses_4C6KK3/gdbus/nonce-tcp-address/.dirs/runtime 1213s ok 5 /gdbus/nonce-tcp-address 1213s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-addresses_4C6KK3/gdbus/tcp-address/.dirs/home 1213s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-addresses_4C6KK3/gdbus/tcp-address/.dirs/cache 1213s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-addresses_4C6KK3/gdbus/tcp-address/.dirs/system-config1:/tmp/test_gdbus-addresses_4C6KK3/gdbus/tcp-address/.dirs/system-config2 1213s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-addresses_4C6KK3/gdbus/tcp-address/.dirs/config 1213s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-addresses_4C6KK3/gdbus/tcp-address/.dirs/system-data1:/tmp/test_gdbus-addresses_4C6KK3/gdbus/tcp-address/.dirs/system-data2 1213s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-addresses_4C6KK3/gdbus/tcp-address/.dirs/data 1213s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-addresses_4C6KK3/gdbus/tcp-address/.dirs/state 1213s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-addresses_4C6KK3/gdbus/tcp-address/.dirs/runtime 1213s ok 6 /gdbus/tcp-address 1213s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-addresses_4C6KK3/gdbus/autolaunch-address/.dirs/home 1213s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-addresses_4C6KK3/gdbus/autolaunch-address/.dirs/cache 1213s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-addresses_4C6KK3/gdbus/autolaunch-address/.dirs/system-config1:/tmp/test_gdbus-addresses_4C6KK3/gdbus/autolaunch-address/.dirs/system-config2 1213s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-addresses_4C6KK3/gdbus/autolaunch-address/.dirs/config 1213s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-addresses_4C6KK3/gdbus/autolaunch-address/.dirs/system-data1:/tmp/test_gdbus-addresses_4C6KK3/gdbus/autolaunch-address/.dirs/system-data2 1213s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-addresses_4C6KK3/gdbus/autolaunch-address/.dirs/data 1213s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-addresses_4C6KK3/gdbus/autolaunch-address/.dirs/state 1213s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-addresses_4C6KK3/gdbus/autolaunch-address/.dirs/runtime 1213s ok 7 /gdbus/autolaunch-address 1213s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-addresses_4C6KK3/gdbus/mixed-address/.dirs/home 1213s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-addresses_4C6KK3/gdbus/mixed-address/.dirs/cache 1213s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-addresses_4C6KK3/gdbus/mixed-address/.dirs/system-config1:/tmp/test_gdbus-addresses_4C6KK3/gdbus/mixed-address/.dirs/system-config2 1213s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-addresses_4C6KK3/gdbus/mixed-address/.dirs/config 1213s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-addresses_4C6KK3/gdbus/mixed-address/.dirs/system-data1:/tmp/test_gdbus-addresses_4C6KK3/gdbus/mixed-address/.dirs/system-data2 1213s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-addresses_4C6KK3/gdbus/mixed-address/.dirs/data 1213s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-addresses_4C6KK3/gdbus/mixed-address/.dirs/state 1213s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-addresses_4C6KK3/gdbus/mixed-address/.dirs/runtime 1213s ok 8 /gdbus/mixed-address 1213s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-addresses_4C6KK3/gdbus/escape-address/.dirs/home 1213s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-addresses_4C6KK3/gdbus/escape-address/.dirs/cache 1213s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-addresses_4C6KK3/gdbus/escape-address/.dirs/system-config1:/tmp/test_gdbus-addresses_4C6KK3/gdbus/escape-address/.dirs/system-config2 1213s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-addresses_4C6KK3/gdbus/escape-address/.dirs/config 1213s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-addresses_4C6KK3/gdbus/escape-address/.dirs/system-data1:/tmp/test_gdbus-addresses_4C6KK3/gdbus/escape-address/.dirs/system-data2 1213s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-addresses_4C6KK3/gdbus/escape-address/.dirs/data 1213s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-addresses_4C6KK3/gdbus/escape-address/.dirs/state 1213s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-addresses_4C6KK3/gdbus/escape-address/.dirs/runtime 1213s ok 9 /gdbus/escape-address 1213s # End of gdbus tests 1213s TAP version 14 1213s # random seed: R02Sb71bc10dbb185340ee1704c61755c5b4 1213s 1..1 1213s # Start of markup tests 1213s ok 1 /markup/stack 1213s # End of markup tests 1213s TAP version 13 1213s ok 1 __main__.TestGIInspectTypelibCommandLine.test_help 1213s # gi-inspect-typelib: /usr/bin/gi-inspect-typelib 1213s # tmpdir: /tmp/tmpa4omcdsh 1213s # Running: ['/usr/bin/gi-inspect-typelib', '--help'] 1213s # Return code: 0 1213s # Output: 1213s # Usage: 1213s # gi-inspect-typelib [OPTION…] NAMESPACE - Inspect GI typelib 1213s # 1213s # Help Options: 1213s # -h, --help Show help options 1213s # 1213s # Application Options: 1213s # --typelib-version=VERSION Typelib version to inspect 1213s # --print-shlibs List the shared libraries the typelib requires 1213s # --print-typelibs List other typelibs the inspected typelib requires 1213s # Error: 1213s ok 2 __main__.TestGIInspectTypelibCommandLine.test_invalid_typelib 1213s # gi-inspect-typelib: /usr/bin/gi-inspect-typelib 1213s # tmpdir: /tmp/tmp8x02his4 1213s # Running: ['/usr/bin/gi-inspect-typelib', '--print-typelibs', '--print-shlibs', 'AnInvalidNameSpace'] 1213s # Return code: 1 1213s # Output: 1213s # 1213s # Error: 1213s # Failed to load typelib: Typelib file for namespace 'AnInvalidNameSpace' (any version) not found 1213s ok 3 __main__.TestGIInspectTypelibCommandLine.test_no_args 1213s # gi-inspect-typelib: /usr/bin/gi-inspect-typelib 1213s # tmpdir: /tmp/tmpy7cxc5h9 1213s # Running: ['/usr/bin/gi-inspect-typelib'] 1213s # Return code: 1 1213s # Output: 1213s # 1213s # Error: 1213s # Please specify exactly one namespace 1213s ok 4 __main__.TestGIInspectTypelibForGLibTypelib.test_print_shlibs 1213s # gi-inspect-typelib: /usr/bin/gi-inspect-typelib 1213s # tmpdir: /tmp/tmpyxfp49o_ 1213s # Running: ['/usr/bin/gi-inspect-typelib', '--print-shlibs', 'GLib', '--typelib-version=2.0'] 1213s # Return code: 0 1213s # Output: 1213s # shlib: libgobject-2.0.so.0 1213s # shlib: libglib-2.0.so.0 1213s # Error: 1213s ok 5 __main__.TestGIInspectTypelibForGLibTypelib.test_print_typelibs 1213s # gi-inspect-typelib: /usr/bin/gi-inspect-typelib 1213s # tmpdir: /tmp/tmpb77wrjw3 1213s # Running: ['/usr/bin/gi-inspect-typelib', '--print-typelibs', 'GLib', '--typelib-version=2.0'] 1213s # Return code: 0 1213s # Output: 1213s # 1213s # Error: 1213s ok 6 __main__.TestGIInspectTypelibForGLibTypelib.test_print_typelibs_and_shlibs 1213s # gi-inspect-typelib: /usr/bin/gi-inspect-typelib 1213s # tmpdir: /tmp/tmpl754n34_ 1213s # Running: ['/usr/bin/gi-inspect-typelib', '--print-typelibs', '--print-shlibs', 'GLib', '--typelib-version=2.0'] 1213s # Return code: 0 1213s # Output: 1213s # shlib: libgobject-2.0.so.0 1213s # shlib: libglib-2.0.so.0 1213s # Error: 1213s ok 7 __main__.TestGIInspectTypelibForGObjectTypelib.test_print_shlibs 1213s # gi-inspect-typelib: /usr/bin/gi-inspect-typelib 1213s # tmpdir: /tmp/tmpo5pv3fbj 1213s # Running: ['/usr/bin/gi-inspect-typelib', '--print-shlibs', 'GObject', '--typelib-version=2.0'] 1213s # Return code: 0 1213s # Output: 1213s # shlib: libgobject-2.0.so.0 1213s # Error: 1213s ok 8 __main__.TestGIInspectTypelibForGObjectTypelib.test_print_typelibs 1213s # gi-inspect-typelib: /usr/bin/gi-inspect-typelib 1213s # tmpdir: /tmp/tmpa5su2_on 1213s # Running: ['/usr/bin/gi-inspect-typelib', '--print-typelibs', 'GObject', '--typelib-version=2.0'] 1213s # Return code: 0 1213s # Output: 1213s # typelib: GLib-2.0 1213s # Error: 1213s ok 9 __main__.TestGIInspectTypelibForGObjectTypelib.test_print_typelibs_and_shlibs 1213s # gi-inspect-typelib: /usr/bin/gi-inspect-typelib 1213s # tmpdir: /tmp/tmpmx40rh_z 1213s # Running: ['/usr/bin/gi-inspect-typelib', '--print-typelibs', '--print-shlibs', 'GObject', '--typelib-version=2.0'] 1213s # Return code: 0 1213s # Output: 1213s # shlib: libgobject-2.0.so.0 1213s # typelib: GLib-2.0 1213s # Error: 1213s ok 10 __main__.TestGIInspectTypelibForGioTypelib.test_print_shlibs 1213s # gi-inspect-typelib: /usr/bin/gi-inspect-typelib 1213s # tmpdir: /tmp/tmp5etle2n7 1213s # Running: ['/usr/bin/gi-inspect-typelib', '--print-shlibs', 'Gio', '--typelib-version=2.0'] 1213s # Return code: 0 1213s # Output: 1213s # shlib: libgio-2.0.so.0 1213s # Error: 1213s ok 11 __main__.TestGIInspectTypelibForGioTypelib.test_print_typelibs 1213s # gi-inspect-typelib: /usr/bin/gi-inspect-typelib 1213s # tmpdir: /tmp/tmpyy3dcw3z 1213s # Running: ['/usr/bin/gi-inspect-typelib', '--print-typelibs', 'Gio', '--typelib-version=2.0'] 1213s # Return code: 0 1213s # Output: 1213s # typelib: GObject-2.0 1213s # typelib: GLib-2.0 1213s # typelib: GModule-2.0 1213s # Error: 1213s ok 12 __main__.TestGIInspectTypelibForGioTypelib.test_print_typelibs_and_shlibs 1213s # gi-inspect-typelib: /usr/bin/gi-inspect-typelib 1213s # tmpdir: /tmp/tmpmdkxdcwy 1213s # Running: ['/usr/bin/gi-inspect-typelib', '--print-typelibs', '--print-shlibs', 'Gio', '--typelib-version=2.0'] 1213s # Return code: 0 1213s # Output: 1213s # shlib: libgio-2.0.so.0 1213s # typelib: GObject-2.0 1213s # typelib: GLib-2.0 1213s # typelib: GModule-2.0 1213s # Error: 1213s 1..12 1214s ok - glib/gi-inspect-typelib.py.test 1214s # Running test: glib/cache.test 1214s TAP version 14 1214s # random seed: R02Sbd5abbda007eb36840ec2410502919e2 1214s 1..1 1214s # Start of cache tests 1214s ok 1 /cache/basic 1214s # End of cache tests 1214s ok - glib/cache.test 1214s # Running test: glib/refcount.test 1214s TAP version 14 1214s # random seed: R02S0a0f755972350c89c05afd43eb87373b 1214s 1..4 1214s # Start of refcount tests 1214s ok 1 /refcount/grefcount 1214s ok 2 /refcount/gatomicrefcount 1214s # Start of grefcount tests 1214s ok 3 /refcount/grefcount/saturation 1214s # End of grefcount tests 1214s # Start of gatomicrefcount tests 1214s ok 4 /refcount/gatomicrefcount/saturation 1214s # End of gatomicrefcount tests 1214s # End of refcount tests 1214s ok - glib/refcount.test 1214s # Running test: glib/stream-rw_all.test 1214s TAP version 14 1214s # random seed: R02Sa5da1d77aa18417048088622c973166c 1214s 1..3 1214s # Start of stream tests 1214s # Start of read_all_async tests 1214s ok 1 /stream/read_all_async/memory 1214s # End of read_all_async tests 1214s # Start of write_all_async tests 1214s ok 2 /stream/write_all_async/memory 1214s # End of write_all_async tests 1214s # Start of read_write_all_async tests 1214s ok 3 /stream/read_write_all_async/pipe 1214s # End of read_write_all_async tests 1214s # End of stream tests 1214s ok - glib/stream-rw_all.test 1214s # Running test: glib/gutils-user-database.test 1214s TAP version 14 1214s # random seed: R02S08e6d2c7c4f9386c2cdcd44e23aba612 1214s 1..1 1214s # Start of gutils tests 1214s ok 1 /gutils/get_user_database_entry 1214s # End of gutils tests 1214s ok - glib/gutils-user-database.test 1214s # Running test: glib/cxx-2b.test 1214s TAP version 14 1214s # random seed: R02Se5a55debf1e230adbcff6ce556920812 1214s 1..2 1214s # Start of gtask tests 1214s # 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. 1214s ok 1 /gtask/name 1214s # Start of name tests 1214s # 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. 1214s ok 2 /gtask/name/macro-wrapper 1214s # End of name tests 1214s # End of gtask tests 1214s ok - glib/cxx-2b.test 1214s # Running test: glib/g-file.test 1214s TAP version 14 1214s # random seed: R02Sddd2ea3489eabda7aefeb2ff6cc6a25c 1214s 1..8 1214s # Start of g-file tests 1214s # GLib-GIO-DEBUG: _g_io_module_get_default: Found default implementation local (GLocalVfs) for ‘gio-vfs’ 1214s ok 1 /g-file/test_g_file_new_null 1214s ok 2 /g-file/test_g_file_new_for_path 1214s ok 3 /g-file/test_g_file_new_for_uri 1214s ok 4 /g-file/test_g_file_dup 1214s ok 5 /g-file/test_g_file_get_parse_name_utf8 1214s file:///tmp/test-tmp-glib_g-file.test-KI3DK3 1214s file:///tmp 1214s file:///tmp 1214s file:////UTF-8%20p%C5%99%C3%ADli%C5%A1%20%C5%BElu%C5%A5ou%C4%8Dk%C3%BD%20k%C5%AF%C5%88 1214s file:///UTF-8%20p%C5%99%C3%ADli%C5%A1%20%C5%BElu%C5%A5ou%C4%8Dk%C3%BD%20k%C5%AF%C5%88 1214s ok 6 /g-file/test_g_file_new_for_commandline_arg 1214s /dir1 /dir1/dir2/dir3/ 1214s /dir1/ /dir1/dir2/dir3/ 1214s /dir1 /dir1/dir2/dir3 1214s /dir1/ /dir1/dir2/dir3 1214s /tmp/ /something/ 1214s /dir1/dir2 /dir1/ 1214s //dir1/new //dir1/new/dir2/dir3 1214s /dir/UTF-8 příliš žluťoučký kůň /dir/UTF-8 příliš žluťoučký kůň/dir2 1214s file:///dir1 file:///dir1/dir2/dir3/ 1214s file:///dir1/ file:///dir1/dir2/dir3/ 1214s file:///dir1 file:///dir1/dir2/dir3 1214s file:///dir1/ file:///dir1/dir2/dir3 1214s file:///tmp/ file:///something/ 1214s file:///dir1/dir2 file:///dir1/ 1214s file:////dir1/new file:////dir1/new/dir2/dir3 1214s 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 1214s ok 7 /g-file/test_g_file_has_prefix 1214s ok 8 /g-file/test_g_file_get_parent_child 1214s # End of g-file tests 1214s ok - glib/g-file.test 1214s # Running test: glib/dir.test 1214s TAP version 14 1214s # random seed: R02S594ef99bdf403e3a7e4f9ada6e0c96a4 1214s 1..3 1214s # Start of dir tests 1214s ok 1 /dir/read 1214s ok 2 /dir/nonexisting 1214s # /dir/refcounting summary: Test refcounting interactions with g_dir_close() 1214s ok - glib/dir.test 1214s ok 3 /dir/refcounting 1214s # End of dir tests 1214s # Running test: glib/filenamecompleter.test 1214s TAP version 14 1214s # random seed: R02Secfd7af1eebdb638ad91b03cad1e84b4 1214s 1..1 1214s # Start of filenamecompleter tests 1214s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_filenamecompleter_Z45BK3/filenamecompleter/basic/.dirs/home 1214s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_filenamecompleter_Z45BK3/filenamecompleter/basic/.dirs/cache 1214s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_filenamecompleter_Z45BK3/filenamecompleter/basic/.dirs/system-config1:/tmp/test_filenamecompleter_Z45BK3/filenamecompleter/basic/.dirs/system-config2 1214s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_filenamecompleter_Z45BK3/filenamecompleter/basic/.dirs/config 1214s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_filenamecompleter_Z45BK3/filenamecompleter/basic/.dirs/system-data1:/tmp/test_filenamecompleter_Z45BK3/filenamecompleter/basic/.dirs/system-data2 1214s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_filenamecompleter_Z45BK3/filenamecompleter/basic/.dirs/data 1214s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_filenamecompleter_Z45BK3/filenamecompleter/basic/.dirs/state 1214s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_filenamecompleter_Z45BK3/filenamecompleter/basic/.dirs/runtime 1214s # GLib-GIO-DEBUG: _g_io_module_get_default: Found default implementation local (GLocalVfs) for ‘gio-vfs’ 1214s ok 1 /filenamecompleter/basic 1214s # End of filenamecompleter tests 1214s ok - glib/filenamecompleter.test 1214s # Running test: glib/testing-nonfatal.test 1214s ok - glib/testing-nonfatal.test 1214s TAP version 14 1214s # random seed: R02S02258cb15f90fd60bfcfe7fa15698cef 1214s ** 1214s 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?") 1214s # 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?") 1214s # Running test: glib/credentials.test 1214s TAP version 14 1214s # random seed: R02S19bf2f403ca526bd745a9d0231927687 1214s 1..1 1214s # Start of credentials tests 1214s # GCredentials:linux-ucred:pid=31411,uid=1000,gid=1000 1214s # GCredentials:linux-ucred:pid=31411,uid=0,gid=1000 1214s ok 1 /credentials/basic 1214s # End of credentials tests 1214s ok - glib/credentials.test 1214s # Running test: glib/utils.test 1214s TAP version 14 1214s # random seed: R02Sa7929e6f355cf51b668d365fe88b8192 1214s 1..41 1214s # Start of utils tests 1214s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils_Y5WCK3/utils/language-names/.dirs/home 1214s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils_Y5WCK3/utils/language-names/.dirs/cache 1214s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils_Y5WCK3/utils/language-names/.dirs/system-config1:/tmp/test_utils_Y5WCK3/utils/language-names/.dirs/system-config2 1214s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils_Y5WCK3/utils/language-names/.dirs/config 1214s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils_Y5WCK3/utils/language-names/.dirs/system-data1:/tmp/test_utils_Y5WCK3/utils/language-names/.dirs/system-data2 1214s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils_Y5WCK3/utils/language-names/.dirs/data 1214s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils_Y5WCK3/utils/language-names/.dirs/state 1214s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils_Y5WCK3/utils/language-names/.dirs/runtime 1214s ok 1 /utils/language-names 1214s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils_Y5WCK3/utils/locale-variants/.dirs/home 1214s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils_Y5WCK3/utils/locale-variants/.dirs/cache 1214s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils_Y5WCK3/utils/locale-variants/.dirs/system-config1:/tmp/test_utils_Y5WCK3/utils/locale-variants/.dirs/system-config2 1214s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils_Y5WCK3/utils/locale-variants/.dirs/config 1214s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils_Y5WCK3/utils/locale-variants/.dirs/system-data1:/tmp/test_utils_Y5WCK3/utils/locale-variants/.dirs/system-data2 1214s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils_Y5WCK3/utils/locale-variants/.dirs/data 1214s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils_Y5WCK3/utils/locale-variants/.dirs/state 1214s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils_Y5WCK3/utils/locale-variants/.dirs/runtime 1214s # Testing locale ‘en’ 1214s # Testing locale ‘sr@latin’ 1214s # Testing locale ‘fr_BE’ 1214s # Testing locale ‘sr_SR@latin’ 1214s # Testing locale ‘sr_SR@latin.UTF-8’ 1214s # Testing locale ‘sr@latin_invalid’ 1214s # Testing locale ‘sr.UTF-8@latin’ 1214s # Testing locale ‘sr.UTF-8_latin’ 1214s # Testing locale ‘sr.UTF-8@latin_invalid’ 1214s ok 2 /utils/locale-variants 1214s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils_Y5WCK3/utils/version/.dirs/home 1214s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils_Y5WCK3/utils/version/.dirs/cache 1214s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils_Y5WCK3/utils/version/.dirs/system-config1:/tmp/test_utils_Y5WCK3/utils/version/.dirs/system-config2 1214s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils_Y5WCK3/utils/version/.dirs/config 1214s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils_Y5WCK3/utils/version/.dirs/system-data1:/tmp/test_utils_Y5WCK3/utils/version/.dirs/system-data2 1214s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils_Y5WCK3/utils/version/.dirs/data 1214s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils_Y5WCK3/utils/version/.dirs/state 1214s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils_Y5WCK3/utils/version/.dirs/runtime 1214s ok 3 /utils/version 1214s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils_Y5WCK3/utils/appname/.dirs/home 1214s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils_Y5WCK3/utils/appname/.dirs/cache 1214s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils_Y5WCK3/utils/appname/.dirs/system-config1:/tmp/test_utils_Y5WCK3/utils/appname/.dirs/system-config2 1214s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils_Y5WCK3/utils/appname/.dirs/config 1214s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils_Y5WCK3/utils/appname/.dirs/system-data1:/tmp/test_utils_Y5WCK3/utils/appname/.dirs/system-data2 1214s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils_Y5WCK3/utils/appname/.dirs/data 1214s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils_Y5WCK3/utils/appname/.dirs/state 1214s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils_Y5WCK3/utils/appname/.dirs/runtime 1214s ok 4 /utils/appname 1214s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils_Y5WCK3/utils/prgname-thread-safety/.dirs/home 1214s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils_Y5WCK3/utils/prgname-thread-safety/.dirs/cache 1214s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils_Y5WCK3/utils/prgname-thread-safety/.dirs/system-config1:/tmp/test_utils_Y5WCK3/utils/prgname-thread-safety/.dirs/system-config2 1214s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils_Y5WCK3/utils/prgname-thread-safety/.dirs/config 1214s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils_Y5WCK3/utils/prgname-thread-safety/.dirs/system-data1:/tmp/test_utils_Y5WCK3/utils/prgname-thread-safety/.dirs/system-data2 1214s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils_Y5WCK3/utils/prgname-thread-safety/.dirs/data 1214s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils_Y5WCK3/utils/prgname-thread-safety/.dirs/state 1214s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils_Y5WCK3/utils/prgname-thread-safety/.dirs/runtime 1214s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/847 1214s # /utils/prgname-thread-safety summary: Test that threads racing to get and set the program name always receive a valid program name. 1214s ok 5 /utils/prgname-thread-safety 1214s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils_Y5WCK3/utils/tmpdir/.dirs/home 1214s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils_Y5WCK3/utils/tmpdir/.dirs/cache 1214s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils_Y5WCK3/utils/tmpdir/.dirs/system-config1:/tmp/test_utils_Y5WCK3/utils/tmpdir/.dirs/system-config2 1214s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils_Y5WCK3/utils/tmpdir/.dirs/config 1214s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils_Y5WCK3/utils/tmpdir/.dirs/system-data1:/tmp/test_utils_Y5WCK3/utils/tmpdir/.dirs/system-data2 1214s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils_Y5WCK3/utils/tmpdir/.dirs/data 1214s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils_Y5WCK3/utils/tmpdir/.dirs/state 1214s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils_Y5WCK3/utils/tmpdir/.dirs/runtime 1214s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=627969 1214s # /utils/tmpdir summary: Test that g_get_tmp_dir() returns a correct default if TMPDIR is set to the empty string 1214s Unable to clean up temporary directory /tmp/test_utils_Y5WCK3/utils/tmpdir: No such file or directory 1214s ok 6 /utils/tmpdir 1214s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils_Y5WCK3/utils/basic_bits/.dirs/home 1214s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils_Y5WCK3/utils/basic_bits/.dirs/cache 1214s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils_Y5WCK3/utils/basic_bits/.dirs/system-config1:/tmp/test_utils_Y5WCK3/utils/basic_bits/.dirs/system-config2 1214s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils_Y5WCK3/utils/basic_bits/.dirs/config 1214s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils_Y5WCK3/utils/basic_bits/.dirs/system-data1:/tmp/test_utils_Y5WCK3/utils/basic_bits/.dirs/system-data2 1214s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils_Y5WCK3/utils/basic_bits/.dirs/data 1214s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils_Y5WCK3/utils/basic_bits/.dirs/state 1214s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils_Y5WCK3/utils/basic_bits/.dirs/runtime 1214s ok 7 /utils/basic_bits 1214s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils_Y5WCK3/utils/bits/.dirs/home 1214s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils_Y5WCK3/utils/bits/.dirs/cache 1214s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils_Y5WCK3/utils/bits/.dirs/system-config1:/tmp/test_utils_Y5WCK3/utils/bits/.dirs/system-config2 1214s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils_Y5WCK3/utils/bits/.dirs/config 1214s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils_Y5WCK3/utils/bits/.dirs/system-data1:/tmp/test_utils_Y5WCK3/utils/bits/.dirs/system-data2 1214s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils_Y5WCK3/utils/bits/.dirs/data 1214s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils_Y5WCK3/utils/bits/.dirs/state 1214s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils_Y5WCK3/utils/bits/.dirs/runtime 1214s ok 8 /utils/bits 1214s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils_Y5WCK3/utils/swap/.dirs/home 1214s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils_Y5WCK3/utils/swap/.dirs/cache 1214s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils_Y5WCK3/utils/swap/.dirs/system-config1:/tmp/test_utils_Y5WCK3/utils/swap/.dirs/system-config2 1214s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils_Y5WCK3/utils/swap/.dirs/config 1214s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils_Y5WCK3/utils/swap/.dirs/system-data1:/tmp/test_utils_Y5WCK3/utils/swap/.dirs/system-data2 1214s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils_Y5WCK3/utils/swap/.dirs/data 1214s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils_Y5WCK3/utils/swap/.dirs/state 1214s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils_Y5WCK3/utils/swap/.dirs/runtime 1214s ok 9 /utils/swap 1214s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils_Y5WCK3/utils/find-program/.dirs/home 1214s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils_Y5WCK3/utils/find-program/.dirs/cache 1214s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils_Y5WCK3/utils/find-program/.dirs/system-config1:/tmp/test_utils_Y5WCK3/utils/find-program/.dirs/system-config2 1214s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils_Y5WCK3/utils/find-program/.dirs/config 1214s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils_Y5WCK3/utils/find-program/.dirs/system-data1:/tmp/test_utils_Y5WCK3/utils/find-program/.dirs/system-data2 1214s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils_Y5WCK3/utils/find-program/.dirs/data 1214s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils_Y5WCK3/utils/find-program/.dirs/state 1214s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils_Y5WCK3/utils/find-program/.dirs/runtime 1214s ok 10 /utils/find-program 1214s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils_Y5WCK3/utils/find-program-for-path/.dirs/home 1214s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils_Y5WCK3/utils/find-program-for-path/.dirs/cache 1214s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils_Y5WCK3/utils/find-program-for-path/.dirs/system-config1:/tmp/test_utils_Y5WCK3/utils/find-program-for-path/.dirs/system-config2 1214s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils_Y5WCK3/utils/find-program-for-path/.dirs/config 1214s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils_Y5WCK3/utils/find-program-for-path/.dirs/system-data1:/tmp/test_utils_Y5WCK3/utils/find-program-for-path/.dirs/system-data2 1214s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils_Y5WCK3/utils/find-program-for-path/.dirs/data 1214s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils_Y5WCK3/utils/find-program-for-path/.dirs/state 1214s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils_Y5WCK3/utils/find-program-for-path/.dirs/runtime 1214s ok 11 /utils/find-program-for-path 1214s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils_Y5WCK3/utils/debug/.dirs/home 1214s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils_Y5WCK3/utils/debug/.dirs/cache 1214s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils_Y5WCK3/utils/debug/.dirs/system-config1:/tmp/test_utils_Y5WCK3/utils/debug/.dirs/system-config2 1214s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils_Y5WCK3/utils/debug/.dirs/config 1214s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils_Y5WCK3/utils/debug/.dirs/system-data1:/tmp/test_utils_Y5WCK3/utils/debug/.dirs/system-data2 1214s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils_Y5WCK3/utils/debug/.dirs/data 1214s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils_Y5WCK3/utils/debug/.dirs/state 1214s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils_Y5WCK3/utils/debug/.dirs/runtime 1214s Unable to clean up temporary directory /tmp/test_utils_Y5WCK3/utils/debug: No such file or directory 1214s ok 12 /utils/debug 1214s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils_Y5WCK3/utils/codeset/.dirs/home 1214s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils_Y5WCK3/utils/codeset/.dirs/cache 1214s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils_Y5WCK3/utils/codeset/.dirs/system-config1:/tmp/test_utils_Y5WCK3/utils/codeset/.dirs/system-config2 1214s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils_Y5WCK3/utils/codeset/.dirs/config 1214s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils_Y5WCK3/utils/codeset/.dirs/system-data1:/tmp/test_utils_Y5WCK3/utils/codeset/.dirs/system-data2 1214s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils_Y5WCK3/utils/codeset/.dirs/data 1214s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils_Y5WCK3/utils/codeset/.dirs/state 1214s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils_Y5WCK3/utils/codeset/.dirs/runtime 1214s ok 13 /utils/codeset 1214s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils_Y5WCK3/utils/codeset2/.dirs/home 1214s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils_Y5WCK3/utils/codeset2/.dirs/cache 1214s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils_Y5WCK3/utils/codeset2/.dirs/system-config1:/tmp/test_utils_Y5WCK3/utils/codeset2/.dirs/system-config2 1214s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils_Y5WCK3/utils/codeset2/.dirs/config 1214s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils_Y5WCK3/utils/codeset2/.dirs/system-data1:/tmp/test_utils_Y5WCK3/utils/codeset2/.dirs/system-data2 1214s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils_Y5WCK3/utils/codeset2/.dirs/data 1214s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils_Y5WCK3/utils/codeset2/.dirs/state 1214s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils_Y5WCK3/utils/codeset2/.dirs/runtime 1214s Unable to clean up temporary directory /tmp/test_utils_Y5WCK3/utils/codeset2: No such file or directory 1214s ok 14 /utils/codeset2 1214s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils_Y5WCK3/utils/console-charset/.dirs/home 1214s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils_Y5WCK3/utils/console-charset/.dirs/cache 1214s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils_Y5WCK3/utils/console-charset/.dirs/system-config1:/tmp/test_utils_Y5WCK3/utils/console-charset/.dirs/system-config2 1214s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils_Y5WCK3/utils/console-charset/.dirs/config 1214s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils_Y5WCK3/utils/console-charset/.dirs/system-data1:/tmp/test_utils_Y5WCK3/utils/console-charset/.dirs/system-data2 1214s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils_Y5WCK3/utils/console-charset/.dirs/data 1214s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils_Y5WCK3/utils/console-charset/.dirs/state 1214s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils_Y5WCK3/utils/console-charset/.dirs/runtime 1214s ok 15 /utils/console-charset 1214s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils_Y5WCK3/utils/gettext/.dirs/home 1214s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils_Y5WCK3/utils/gettext/.dirs/cache 1214s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils_Y5WCK3/utils/gettext/.dirs/system-config1:/tmp/test_utils_Y5WCK3/utils/gettext/.dirs/system-config2 1214s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils_Y5WCK3/utils/gettext/.dirs/config 1214s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils_Y5WCK3/utils/gettext/.dirs/system-data1:/tmp/test_utils_Y5WCK3/utils/gettext/.dirs/system-data2 1214s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils_Y5WCK3/utils/gettext/.dirs/data 1214s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils_Y5WCK3/utils/gettext/.dirs/state 1214s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils_Y5WCK3/utils/gettext/.dirs/runtime 1214s ok 16 /utils/gettext 1214s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils_Y5WCK3/utils/username/.dirs/home 1214s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils_Y5WCK3/utils/username/.dirs/cache 1214s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils_Y5WCK3/utils/username/.dirs/system-config1:/tmp/test_utils_Y5WCK3/utils/username/.dirs/system-config2 1214s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils_Y5WCK3/utils/username/.dirs/config 1214s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils_Y5WCK3/utils/username/.dirs/system-data1:/tmp/test_utils_Y5WCK3/utils/username/.dirs/system-data2 1214s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils_Y5WCK3/utils/username/.dirs/data 1214s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils_Y5WCK3/utils/username/.dirs/state 1214s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils_Y5WCK3/utils/username/.dirs/runtime 1214s ok 17 /utils/username 1214s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils_Y5WCK3/utils/realname/.dirs/home 1214s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils_Y5WCK3/utils/realname/.dirs/cache 1214s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils_Y5WCK3/utils/realname/.dirs/system-config1:/tmp/test_utils_Y5WCK3/utils/realname/.dirs/system-config2 1214s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils_Y5WCK3/utils/realname/.dirs/config 1214s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils_Y5WCK3/utils/realname/.dirs/system-data1:/tmp/test_utils_Y5WCK3/utils/realname/.dirs/system-data2 1214s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils_Y5WCK3/utils/realname/.dirs/data 1214s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils_Y5WCK3/utils/realname/.dirs/state 1214s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils_Y5WCK3/utils/realname/.dirs/runtime 1214s ok 18 /utils/realname 1214s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils_Y5WCK3/utils/hostname/.dirs/home 1214s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils_Y5WCK3/utils/hostname/.dirs/cache 1214s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils_Y5WCK3/utils/hostname/.dirs/system-config1:/tmp/test_utils_Y5WCK3/utils/hostname/.dirs/system-config2 1214s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils_Y5WCK3/utils/hostname/.dirs/config 1214s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils_Y5WCK3/utils/hostname/.dirs/system-data1:/tmp/test_utils_Y5WCK3/utils/hostname/.dirs/system-data2 1214s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils_Y5WCK3/utils/hostname/.dirs/data 1214s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils_Y5WCK3/utils/hostname/.dirs/state 1214s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils_Y5WCK3/utils/hostname/.dirs/runtime 1214s ok 19 /utils/hostname 1214s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils_Y5WCK3/utils/os-info/.dirs/home 1214s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils_Y5WCK3/utils/os-info/.dirs/cache 1214s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils_Y5WCK3/utils/os-info/.dirs/system-config1:/tmp/test_utils_Y5WCK3/utils/os-info/.dirs/system-config2 1214s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils_Y5WCK3/utils/os-info/.dirs/config 1214s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils_Y5WCK3/utils/os-info/.dirs/system-data1:/tmp/test_utils_Y5WCK3/utils/os-info/.dirs/system-data2 1214s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils_Y5WCK3/utils/os-info/.dirs/data 1214s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils_Y5WCK3/utils/os-info/.dirs/state 1214s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils_Y5WCK3/utils/os-info/.dirs/runtime 1214s # NAME: Ubuntu 1214s ok 20 /utils/os-info 1214s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils_Y5WCK3/utils/clear-pointer/.dirs/home 1214s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils_Y5WCK3/utils/clear-pointer/.dirs/cache 1214s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils_Y5WCK3/utils/clear-pointer/.dirs/system-config1:/tmp/test_utils_Y5WCK3/utils/clear-pointer/.dirs/system-config2 1214s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils_Y5WCK3/utils/clear-pointer/.dirs/config 1214s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils_Y5WCK3/utils/clear-pointer/.dirs/system-data1:/tmp/test_utils_Y5WCK3/utils/clear-pointer/.dirs/system-data2 1214s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils_Y5WCK3/utils/clear-pointer/.dirs/data 1214s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils_Y5WCK3/utils/clear-pointer/.dirs/state 1214s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils_Y5WCK3/utils/clear-pointer/.dirs/runtime 1214s ok 21 /utils/clear-pointer 1214s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils_Y5WCK3/utils/clear-pointer-cast/.dirs/home 1214s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils_Y5WCK3/utils/clear-pointer-cast/.dirs/cache 1214s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils_Y5WCK3/utils/clear-pointer-cast/.dirs/system-config1:/tmp/test_utils_Y5WCK3/utils/clear-pointer-cast/.dirs/system-config2 1214s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils_Y5WCK3/utils/clear-pointer-cast/.dirs/config 1214s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils_Y5WCK3/utils/clear-pointer-cast/.dirs/system-data1:/tmp/test_utils_Y5WCK3/utils/clear-pointer-cast/.dirs/system-data2 1214s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils_Y5WCK3/utils/clear-pointer-cast/.dirs/data 1214s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils_Y5WCK3/utils/clear-pointer-cast/.dirs/state 1214s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils_Y5WCK3/utils/clear-pointer-cast/.dirs/runtime 1214s ok 22 /utils/clear-pointer-cast 1214s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils_Y5WCK3/utils/take-pointer/.dirs/home 1214s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils_Y5WCK3/utils/take-pointer/.dirs/cache 1214s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils_Y5WCK3/utils/take-pointer/.dirs/system-config1:/tmp/test_utils_Y5WCK3/utils/take-pointer/.dirs/system-config2 1214s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils_Y5WCK3/utils/take-pointer/.dirs/config 1214s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils_Y5WCK3/utils/take-pointer/.dirs/system-data1:/tmp/test_utils_Y5WCK3/utils/take-pointer/.dirs/system-data2 1214s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils_Y5WCK3/utils/take-pointer/.dirs/data 1214s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils_Y5WCK3/utils/take-pointer/.dirs/state 1214s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils_Y5WCK3/utils/take-pointer/.dirs/runtime 1214s ok 23 /utils/take-pointer 1214s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils_Y5WCK3/utils/clear-source/.dirs/home 1214s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils_Y5WCK3/utils/clear-source/.dirs/cache 1214s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils_Y5WCK3/utils/clear-source/.dirs/system-config1:/tmp/test_utils_Y5WCK3/utils/clear-source/.dirs/system-config2 1214s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils_Y5WCK3/utils/clear-source/.dirs/config 1214s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils_Y5WCK3/utils/clear-source/.dirs/system-data1:/tmp/test_utils_Y5WCK3/utils/clear-source/.dirs/system-data2 1214s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils_Y5WCK3/utils/clear-source/.dirs/data 1214s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils_Y5WCK3/utils/clear-source/.dirs/state 1214s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils_Y5WCK3/utils/clear-source/.dirs/runtime 1214s ok 24 /utils/clear-source 1214s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils_Y5WCK3/utils/misc-mem/.dirs/home 1214s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils_Y5WCK3/utils/misc-mem/.dirs/cache 1214s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils_Y5WCK3/utils/misc-mem/.dirs/system-config1:/tmp/test_utils_Y5WCK3/utils/misc-mem/.dirs/system-config2 1214s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils_Y5WCK3/utils/misc-mem/.dirs/config 1214s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils_Y5WCK3/utils/misc-mem/.dirs/system-data1:/tmp/test_utils_Y5WCK3/utils/misc-mem/.dirs/system-data2 1214s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils_Y5WCK3/utils/misc-mem/.dirs/data 1214s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils_Y5WCK3/utils/misc-mem/.dirs/state 1214s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils_Y5WCK3/utils/misc-mem/.dirs/runtime 1214s ok 25 /utils/misc-mem 1214s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils_Y5WCK3/utils/aligned-mem/.dirs/home 1214s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils_Y5WCK3/utils/aligned-mem/.dirs/cache 1214s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils_Y5WCK3/utils/aligned-mem/.dirs/system-config1:/tmp/test_utils_Y5WCK3/utils/aligned-mem/.dirs/system-config2 1214s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils_Y5WCK3/utils/aligned-mem/.dirs/config 1214s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils_Y5WCK3/utils/aligned-mem/.dirs/system-data1:/tmp/test_utils_Y5WCK3/utils/aligned-mem/.dirs/system-data2 1214s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils_Y5WCK3/utils/aligned-mem/.dirs/data 1214s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils_Y5WCK3/utils/aligned-mem/.dirs/state 1214s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils_Y5WCK3/utils/aligned-mem/.dirs/runtime 1214s # /utils/aligned-mem summary: Aligned memory allocator 1214s # Alignment must not be zero 1214s # Alignment must be a power of two 1214s # Alignment must be a multiple of sizeof(void*) 1214s ok 26 /utils/aligned-mem 1214s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils_Y5WCK3/utils/free-sized/.dirs/home 1214s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils_Y5WCK3/utils/free-sized/.dirs/cache 1214s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils_Y5WCK3/utils/free-sized/.dirs/system-config1:/tmp/test_utils_Y5WCK3/utils/free-sized/.dirs/system-config2 1214s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils_Y5WCK3/utils/free-sized/.dirs/config 1214s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils_Y5WCK3/utils/free-sized/.dirs/system-data1:/tmp/test_utils_Y5WCK3/utils/free-sized/.dirs/system-data2 1214s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils_Y5WCK3/utils/free-sized/.dirs/data 1214s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils_Y5WCK3/utils/free-sized/.dirs/state 1214s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils_Y5WCK3/utils/free-sized/.dirs/runtime 1214s # /utils/free-sized summary: Check that g_free_sized() works 1214s ok 27 /utils/free-sized 1214s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils_Y5WCK3/utils/nullify/.dirs/home 1214s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils_Y5WCK3/utils/nullify/.dirs/cache 1214s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils_Y5WCK3/utils/nullify/.dirs/system-config1:/tmp/test_utils_Y5WCK3/utils/nullify/.dirs/system-config2 1214s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils_Y5WCK3/utils/nullify/.dirs/config 1214s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils_Y5WCK3/utils/nullify/.dirs/system-data1:/tmp/test_utils_Y5WCK3/utils/nullify/.dirs/system-data2 1214s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils_Y5WCK3/utils/nullify/.dirs/data 1214s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils_Y5WCK3/utils/nullify/.dirs/state 1214s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils_Y5WCK3/utils/nullify/.dirs/runtime 1214s ok 28 /utils/nullify 1214s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils_Y5WCK3/utils/atexit/.dirs/home 1214s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils_Y5WCK3/utils/atexit/.dirs/cache 1214s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils_Y5WCK3/utils/atexit/.dirs/system-config1:/tmp/test_utils_Y5WCK3/utils/atexit/.dirs/system-config2 1214s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils_Y5WCK3/utils/atexit/.dirs/config 1214s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils_Y5WCK3/utils/atexit/.dirs/system-data1:/tmp/test_utils_Y5WCK3/utils/atexit/.dirs/system-data2 1214s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils_Y5WCK3/utils/atexit/.dirs/data 1214s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils_Y5WCK3/utils/atexit/.dirs/state 1214s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils_Y5WCK3/utils/atexit/.dirs/runtime 1214s Unable to clean up temporary directory /tmp/test_utils_Y5WCK3/utils/atexit: No such file or directory 1214s ok 29 /utils/atexit 1214s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils_Y5WCK3/utils/check-setuid/.dirs/home 1214s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils_Y5WCK3/utils/check-setuid/.dirs/cache 1214s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils_Y5WCK3/utils/check-setuid/.dirs/system-config1:/tmp/test_utils_Y5WCK3/utils/check-setuid/.dirs/system-config2 1214s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils_Y5WCK3/utils/check-setuid/.dirs/config 1214s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils_Y5WCK3/utils/check-setuid/.dirs/system-data1:/tmp/test_utils_Y5WCK3/utils/check-setuid/.dirs/system-data2 1214s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils_Y5WCK3/utils/check-setuid/.dirs/data 1214s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils_Y5WCK3/utils/check-setuid/.dirs/state 1214s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils_Y5WCK3/utils/check-setuid/.dirs/runtime 1214s ok 30 /utils/check-setuid 1214s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils_Y5WCK3/utils/int-limits/.dirs/home 1214s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils_Y5WCK3/utils/int-limits/.dirs/cache 1214s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils_Y5WCK3/utils/int-limits/.dirs/system-config1:/tmp/test_utils_Y5WCK3/utils/int-limits/.dirs/system-config2 1214s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils_Y5WCK3/utils/int-limits/.dirs/config 1214s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils_Y5WCK3/utils/int-limits/.dirs/system-data1:/tmp/test_utils_Y5WCK3/utils/int-limits/.dirs/system-data2 1214s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils_Y5WCK3/utils/int-limits/.dirs/data 1214s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils_Y5WCK3/utils/int-limits/.dirs/state 1214s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils_Y5WCK3/utils/int-limits/.dirs/runtime 1214s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/issues/1663 1214s ok 31 /utils/int-limits 1214s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils_Y5WCK3/utils/clear-list/.dirs/home 1214s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils_Y5WCK3/utils/clear-list/.dirs/cache 1214s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils_Y5WCK3/utils/clear-list/.dirs/system-config1:/tmp/test_utils_Y5WCK3/utils/clear-list/.dirs/system-config2 1214s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils_Y5WCK3/utils/clear-list/.dirs/config 1214s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils_Y5WCK3/utils/clear-list/.dirs/system-data1:/tmp/test_utils_Y5WCK3/utils/clear-list/.dirs/system-data2 1214s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils_Y5WCK3/utils/clear-list/.dirs/data 1214s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils_Y5WCK3/utils/clear-list/.dirs/state 1214s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils_Y5WCK3/utils/clear-list/.dirs/runtime 1214s ok 32 /utils/clear-list 1214s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils_Y5WCK3/utils/clear-slist/.dirs/home 1214s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils_Y5WCK3/utils/clear-slist/.dirs/cache 1214s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils_Y5WCK3/utils/clear-slist/.dirs/system-config1:/tmp/test_utils_Y5WCK3/utils/clear-slist/.dirs/system-config2 1214s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils_Y5WCK3/utils/clear-slist/.dirs/config 1214s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils_Y5WCK3/utils/clear-slist/.dirs/system-data1:/tmp/test_utils_Y5WCK3/utils/clear-slist/.dirs/system-data2 1214s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils_Y5WCK3/utils/clear-slist/.dirs/data 1214s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils_Y5WCK3/utils/clear-slist/.dirs/state 1214s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils_Y5WCK3/utils/clear-slist/.dirs/runtime 1214s ok 33 /utils/clear-slist 1214s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils_Y5WCK3/utils/steal-handle-id/.dirs/home 1214s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils_Y5WCK3/utils/steal-handle-id/.dirs/cache 1214s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils_Y5WCK3/utils/steal-handle-id/.dirs/system-config1:/tmp/test_utils_Y5WCK3/utils/steal-handle-id/.dirs/system-config2 1214s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils_Y5WCK3/utils/steal-handle-id/.dirs/config 1214s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils_Y5WCK3/utils/steal-handle-id/.dirs/system-data1:/tmp/test_utils_Y5WCK3/utils/steal-handle-id/.dirs/system-data2 1214s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils_Y5WCK3/utils/steal-handle-id/.dirs/data 1214s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils_Y5WCK3/utils/steal-handle-id/.dirs/state 1214s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils_Y5WCK3/utils/steal-handle-id/.dirs/runtime 1214s ok 34 /utils/steal-handle-id 1214s # Start of user-special-dirs tests 1214s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils_Y5WCK3/utils/user-special-dirs/desktop/.dirs/home 1214s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils_Y5WCK3/utils/user-special-dirs/desktop/.dirs/cache 1214s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils_Y5WCK3/utils/user-special-dirs/desktop/.dirs/system-config1:/tmp/test_utils_Y5WCK3/utils/user-special-dirs/desktop/.dirs/system-config2 1214s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils_Y5WCK3/utils/user-special-dirs/desktop/.dirs/config 1214s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils_Y5WCK3/utils/user-special-dirs/desktop/.dirs/system-data1:/tmp/test_utils_Y5WCK3/utils/user-special-dirs/desktop/.dirs/system-data2 1214s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils_Y5WCK3/utils/user-special-dirs/desktop/.dirs/data 1214s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils_Y5WCK3/utils/user-special-dirs/desktop/.dirs/state 1214s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils_Y5WCK3/utils/user-special-dirs/desktop/.dirs/runtime 1214s ok 35 /utils/user-special-dirs/desktop 1214s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils_Y5WCK3/utils/user-special-dirs/load-unlocked/.dirs/home 1214s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils_Y5WCK3/utils/user-special-dirs/load-unlocked/.dirs/cache 1214s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils_Y5WCK3/utils/user-special-dirs/load-unlocked/.dirs/system-config1:/tmp/test_utils_Y5WCK3/utils/user-special-dirs/load-unlocked/.dirs/system-config2 1214s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils_Y5WCK3/utils/user-special-dirs/load-unlocked/.dirs/config 1214s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils_Y5WCK3/utils/user-special-dirs/load-unlocked/.dirs/system-data1:/tmp/test_utils_Y5WCK3/utils/user-special-dirs/load-unlocked/.dirs/system-data2 1214s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils_Y5WCK3/utils/user-special-dirs/load-unlocked/.dirs/data 1214s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils_Y5WCK3/utils/user-special-dirs/load-unlocked/.dirs/state 1214s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils_Y5WCK3/utils/user-special-dirs/load-unlocked/.dirs/runtime 1214s # /utils/user-special-dirs/load-unlocked summary: Tests error and corner cases of user-dirs.dirs content. 1214s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/merge_requests/4800 1214s Unable to clean up temporary directory /tmp/test_utils_Y5WCK3/utils/user-special-dirs/load-unlocked: No such file or directory 1214s ok 36 /utils/user-special-dirs/load-unlocked 1214s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils_Y5WCK3/utils/user-special-dirs/reload-leaks/.dirs/home 1214s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils_Y5WCK3/utils/user-special-dirs/reload-leaks/.dirs/cache 1214s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils_Y5WCK3/utils/user-special-dirs/reload-leaks/.dirs/system-config1:/tmp/test_utils_Y5WCK3/utils/user-special-dirs/reload-leaks/.dirs/system-config2 1214s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils_Y5WCK3/utils/user-special-dirs/reload-leaks/.dirs/config 1214s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils_Y5WCK3/utils/user-special-dirs/reload-leaks/.dirs/system-data1:/tmp/test_utils_Y5WCK3/utils/user-special-dirs/reload-leaks/.dirs/system-data2 1214s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils_Y5WCK3/utils/user-special-dirs/reload-leaks/.dirs/data 1214s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils_Y5WCK3/utils/user-special-dirs/reload-leaks/.dirs/state 1214s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils_Y5WCK3/utils/user-special-dirs/reload-leaks/.dirs/runtime 1214s # /utils/user-special-dirs/reload-leaks summary: Tests that old user special dirs values are deliberately leaked on reload. 1214s Unable to clean up temporary directory /tmp/test_utils_Y5WCK3/utils/user-special-dirs/reload-leaks: No such file or directory 1214s ok 37 /utils/user-special-dirs/reload-leaks 1214s # End of user-special-dirs tests 1214s # Start of clear-pointer tests 1214s ok - glib/utils.test 1214s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils_Y5WCK3/utils/clear-pointer/side-effects/.dirs/home 1214s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils_Y5WCK3/utils/clear-pointer/side-effects/.dirs/cache 1214s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils_Y5WCK3/utils/clear-pointer/side-effects/.dirs/system-config1:/tmp/test_utils_Y5WCK3/utils/clear-pointer/side-effects/.dirs/system-config2 1214s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils_Y5WCK3/utils/clear-pointer/side-effects/.dirs/config 1214s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils_Y5WCK3/utils/clear-pointer/side-effects/.dirs/system-data1:/tmp/test_utils_Y5WCK3/utils/clear-pointer/side-effects/.dirs/system-data2 1214s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils_Y5WCK3/utils/clear-pointer/side-effects/.dirs/data 1214s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils_Y5WCK3/utils/clear-pointer/side-effects/.dirs/state 1214s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils_Y5WCK3/utils/clear-pointer/side-effects/.dirs/runtime 1214s ok 38 /utils/clear-pointer/side-effects 1214s # End of clear-pointer tests 1214s # Start of aligned-mem tests 1214s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils_Y5WCK3/utils/aligned-mem/alignment/.dirs/home 1214s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils_Y5WCK3/utils/aligned-mem/alignment/.dirs/cache 1214s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils_Y5WCK3/utils/aligned-mem/alignment/.dirs/system-config1:/tmp/test_utils_Y5WCK3/utils/aligned-mem/alignment/.dirs/system-config2 1214s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils_Y5WCK3/utils/aligned-mem/alignment/.dirs/config 1214s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils_Y5WCK3/utils/aligned-mem/alignment/.dirs/system-data1:/tmp/test_utils_Y5WCK3/utils/aligned-mem/alignment/.dirs/system-data2 1214s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils_Y5WCK3/utils/aligned-mem/alignment/.dirs/data 1214s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils_Y5WCK3/utils/aligned-mem/alignment/.dirs/state 1214s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils_Y5WCK3/utils/aligned-mem/alignment/.dirs/runtime 1214s # /utils/aligned-mem/alignment summary: Check that g_aligned_alloc() returns a correctly aligned pointer 1214s ok 39 /utils/aligned-mem/alignment 1214s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils_Y5WCK3/utils/aligned-mem/zeroed/.dirs/home 1214s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils_Y5WCK3/utils/aligned-mem/zeroed/.dirs/cache 1214s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils_Y5WCK3/utils/aligned-mem/zeroed/.dirs/system-config1:/tmp/test_utils_Y5WCK3/utils/aligned-mem/zeroed/.dirs/system-config2 1214s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils_Y5WCK3/utils/aligned-mem/zeroed/.dirs/config 1214s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils_Y5WCK3/utils/aligned-mem/zeroed/.dirs/system-data1:/tmp/test_utils_Y5WCK3/utils/aligned-mem/zeroed/.dirs/system-data2 1214s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils_Y5WCK3/utils/aligned-mem/zeroed/.dirs/data 1214s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils_Y5WCK3/utils/aligned-mem/zeroed/.dirs/state 1214s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils_Y5WCK3/utils/aligned-mem/zeroed/.dirs/runtime 1214s # /utils/aligned-mem/zeroed summary: Check that g_aligned_alloc0() zeroes out its allocation 1214s ok 40 /utils/aligned-mem/zeroed 1214s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils_Y5WCK3/utils/aligned-mem/free-sized/.dirs/home 1214s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils_Y5WCK3/utils/aligned-mem/free-sized/.dirs/cache 1214s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils_Y5WCK3/utils/aligned-mem/free-sized/.dirs/system-config1:/tmp/test_utils_Y5WCK3/utils/aligned-mem/free-sized/.dirs/system-config2 1214s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils_Y5WCK3/utils/aligned-mem/free-sized/.dirs/config 1214s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils_Y5WCK3/utils/aligned-mem/free-sized/.dirs/system-data1:/tmp/test_utils_Y5WCK3/utils/aligned-mem/free-sized/.dirs/system-data2 1214s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils_Y5WCK3/utils/aligned-mem/free-sized/.dirs/data 1214s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils_Y5WCK3/utils/aligned-mem/free-sized/.dirs/state 1214s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils_Y5WCK3/utils/aligned-mem/free-sized/.dirs/runtime 1214s # /utils/aligned-mem/free-sized summary: Check that g_aligned_free_sized() works 1214s ok 41 /utils/aligned-mem/free-sized 1214s # Start of subprocess tests 1214s # End of subprocess tests 1214s # End of aligned-mem tests 1214s # End of utils tests 1214s # Running test: glib/utf8-validate.test 1214s TAP version 14 1214s # random seed: R02S5615a1f6bd0bc4ebe1ab7d20ad46f305 1214s 1..238 1214s # Start of utf8 tests 1214s # Vector 0 1214s # Vector 1 1214s # Vector 2 1214s # Vector 3 1214s # Vector 4 1214s # Vector 5 1214s # Vector 6 1214s # Vector 7 1214s # Vector 8 1214s # Vector 9 1214s # Vector 10 1214s # Vector 11 1214s # Vector 12 1214s # Vector 13 1214s # Vector 14 1214s # Vector 15 1214s # Vector 16 1214s # Vector 17 1214s # Vector 18 1214s # Vector 19 1214s # Vector 20 1214s # Vector 21 1214s # Vector 22 1214s # Vector 23 1214s # Vector 24 1214s # Vector 25 1214s # Vector 26 1214s # Vector 27 1214s ok 1 /utf8/get-char-validated 1214s # Start of validate tests 1214s ok 2 /utf8/validate/0 1214s ok 3 /utf8/validate/1 1214s ok 4 /utf8/validate/2 1214s ok 5 /utf8/validate/3 1214s ok 6 /utf8/validate/4 1214s ok 7 /utf8/validate/5 1214s ok 8 /utf8/validate/6 1214s ok 9 /utf8/validate/7 1214s ok 10 /utf8/validate/8 1214s ok 11 /utf8/validate/9 1214s ok 12 /utf8/validate/10 1214s ok 13 /utf8/validate/11 1214s ok 14 /utf8/validate/12 1214s ok 15 /utf8/validate/13 1214s ok 16 /utf8/validate/14 1214s ok 17 /utf8/validate/15 1214s ok 18 /utf8/validate/16 1214s ok 19 /utf8/validate/17 1214s ok 20 /utf8/validate/18 1214s ok 21 /utf8/validate/19 1214s ok 22 /utf8/validate/20 1214s ok 23 /utf8/validate/21 1214s ok 24 /utf8/validate/22 1214s ok 25 /utf8/validate/23 1214s ok 26 /utf8/validate/24 1214s ok 27 /utf8/validate/25 1214s ok 28 /utf8/validate/26 1214s ok 29 /utf8/validate/27 1214s ok 30 /utf8/validate/28 1214s ok 31 /utf8/validate/29 1214s ok 32 /utf8/validate/30 1214s ok 33 /utf8/validate/31 1214s ok 34 /utf8/validate/32 1214s ok 35 /utf8/validate/33 1214s ok 36 /utf8/validate/34 1214s ok 37 /utf8/validate/35 1214s ok 38 /utf8/validate/36 1214s ok 39 /utf8/validate/37 1214s ok 40 /utf8/validate/38 1214s ok 41 /utf8/validate/39 1214s ok 42 /utf8/validate/40 1214s ok 43 /utf8/validate/41 1214s ok 44 /utf8/validate/42 1214s ok 45 /utf8/validate/43 1214s ok 46 /utf8/validate/44 1214s ok 47 /utf8/validate/45 1214s ok 48 /utf8/validate/46 1214s ok 49 /utf8/validate/47 1214s ok 50 /utf8/validate/48 1214s ok 51 /utf8/validate/49 1214s ok 52 /utf8/validate/50 1214s ok 53 /utf8/validate/51 1214s ok 54 /utf8/validate/52 1214s ok 55 /utf8/validate/53 1214s ok 56 /utf8/validate/54 1214s ok 57 /utf8/validate/55 1214s ok - glib/utf8-validate.test 1214s ok 58 /utf8/validate/56 1214s ok 59 /utf8/validate/57 1214s ok 60 /utf8/validate/58 1214s ok 61 /utf8/validate/59 1214s ok 62 /utf8/validate/60 1214s ok 63 /utf8/validate/61 1214s ok 64 /utf8/validate/62 1214s ok 65 /utf8/validate/63 1214s ok 66 /utf8/validate/64 1214s ok 67 /utf8/validate/65 1214s ok 68 /utf8/validate/66 1214s ok 69 /utf8/validate/67 1214s ok 70 /utf8/validate/68 1214s ok 71 /utf8/validate/69 1214s ok 72 /utf8/validate/70 1214s ok 73 /utf8/validate/71 1214s ok 74 /utf8/validate/72 1214s ok 75 /utf8/validate/73 1214s ok 76 /utf8/validate/74 1214s ok 77 /utf8/validate/75 1214s ok 78 /utf8/validate/76 1214s ok 79 /utf8/validate/77 1214s ok 80 /utf8/validate/78 1214s ok 81 /utf8/validate/79 1214s ok 82 /utf8/validate/80 1214s ok 83 /utf8/validate/81 1214s ok 84 /utf8/validate/82 1214s ok 85 /utf8/validate/83 1214s ok 86 /utf8/validate/84 1214s ok 87 /utf8/validate/85 1214s ok 88 /utf8/validate/86 1214s ok 89 /utf8/validate/87 1214s ok 90 /utf8/validate/88 1214s ok 91 /utf8/validate/89 1214s ok 92 /utf8/validate/90 1214s ok 93 /utf8/validate/91 1214s ok 94 /utf8/validate/92 1214s ok 95 /utf8/validate/93 1214s ok 96 /utf8/validate/94 1214s ok 97 /utf8/validate/95 1214s ok 98 /utf8/validate/96 1214s ok 99 /utf8/validate/97 1214s ok 100 /utf8/validate/98 1214s # Running test: glib/simple-proxy.test 1214s ok 101 /utf8/validate/99 1214s ok 102 /utf8/validate/100 1214s ok 103 /utf8/validate/101 1214s ok 104 /utf8/validate/102 1214s ok 105 /utf8/validate/103 1214s ok 106 /utf8/validate/104 1214s ok 107 /utf8/validate/105 1214s ok 108 /utf8/validate/106 1214s ok 109 /utf8/validate/107 1214s ok 110 /utf8/validate/108 1214s ok 111 /utf8/validate/109 1214s ok 112 /utf8/validate/110 1214s ok 113 /utf8/validate/111 1214s ok 114 /utf8/validate/112 1214s ok 115 /utf8/validate/113 1214s ok 116 /utf8/validate/114 1214s ok 117 /utf8/validate/115 1214s ok 118 /utf8/validate/116 1214s ok 119 /utf8/validate/117 1214s ok 120 /utf8/validate/118 1214s ok 121 /utf8/validate/119 1214s ok 122 /utf8/validate/120 1214s ok 123 /utf8/validate/121 1214s ok 124 /utf8/validate/122 1214s ok 125 /utf8/validate/123 1214s ok 126 /utf8/validate/124 1214s ok 127 /utf8/validate/125 1214s ok 128 /utf8/validate/126 1214s ok 129 /utf8/validate/127 1214s ok 130 /utf8/validate/128 1214s ok 131 /utf8/validate/129 1214s ok 132 /utf8/validate/130 1214s ok 133 /utf8/validate/131 1214s ok 134 /utf8/validate/132 1214s ok 135 /utf8/validate/133 1214s ok 136 /utf8/validate/134 1214s ok 137 /utf8/validate/135 1214s ok 138 /utf8/validate/136 1214s ok 139 /utf8/validate/137 1214s ok 140 /utf8/validate/138 1214s ok 141 /utf8/validate/139 1214s ok 142 /utf8/validate/140 1214s ok 143 /utf8/validate/141 1214s ok 144 /utf8/validate/142 1214s ok 145 /utf8/validate/143 1214s ok 146 /utf8/validate/144 1214s ok 147 /utf8/validate/145 1214s ok 148 /utf8/validate/146 1214s ok 149 /utf8/validate/147 1214s ok 150 /utf8/validate/148 1214s ok 151 /utf8/validate/149 1214s ok 152 /utf8/validate/150 1214s ok 153 /utf8/validate/151 1214s ok 154 /utf8/validate/152 1214s ok 155 /utf8/validate/153 1214s ok 156 /utf8/validate/154 1214s ok 157 /utf8/validate/155 1214s ok 158 /utf8/validate/156 1214s ok 159 /utf8/validate/157 1214s ok 160 /utf8/validate/158 1214s ok 161 /utf8/validate/159 1214s ok 162 /utf8/validate/160 1214s ok 163 /utf8/validate/161 1214s ok 164 /utf8/validate/162 1214s ok 165 /utf8/validate/163 1214s ok 166 /utf8/validate/164 1214s ok 167 /utf8/validate/165 1214s ok 168 /utf8/validate/166 1214s ok 169 /utf8/validate/167 1214s ok 170 /utf8/validate/168 1214s ok 171 /utf8/validate/169 1214s ok 172 /utf8/validate/170 1214s ok 173 /utf8/validate/171 1214s ok 174 /utf8/validate/172 1214s ok 175 /utf8/validate/173 1214s ok 176 /utf8/validate/174 1214s ok 177 /utf8/validate/175 1214s ok 178 /utf8/validate/176 1214s ok 179 /utf8/validate/177 1214s ok 180 /utf8/validate/178 1214s ok 181 /utf8/validate/179 1214s ok 182 /utf8/validate/180 1214s ok 183 /utf8/validate/181 1214s ok 184 /utf8/validate/182 1214s ok 185 /utf8/validate/183 1214s ok 186 /utf8/validate/184 1214s ok 187 /utf8/validate/185 1214s ok 188 /utf8/validate/186 1214s ok 189 /utf8/validate/187 1214s ok 190 /utf8/validate/188 1214s ok 191 /utf8/validate/189 1214s ok 192 /utf8/validate/190 1214s ok 193 /utf8/validate/191 1214s ok 194 /utf8/validate/192 1214s ok 195 /utf8/validate/193 1214s ok 196 /utf8/validate/194 1214s ok 197 /utf8/validate/195 1214s ok 198 /utf8/validate/196 1214s ok 199 /utf8/validate/197 1214s ok 200 /utf8/validate/198 1214s ok 201 /utf8/validate/199 1214s ok 202 /utf8/validate/200 1214s ok 203 /utf8/validate/201 1214s ok 204 /utf8/validate/202 1214s ok 205 /utf8/validate/203 1214s ok 206 /utf8/validate/204 1214s ok 207 /utf8/validate/205 1214s ok 208 /utf8/validate/206 1214s ok 209 /utf8/validate/207 1214s ok 210 /utf8/validate/208 1214s ok 211 /utf8/validate/209 1214s ok 212 /utf8/validate/210 1214s ok 213 /utf8/validate/211 1214s ok 214 /utf8/validate/212 1214s ok 215 /utf8/validate/213 1214s ok 216 /utf8/validate/214 1214s ok 217 /utf8/validate/215 1214s ok 218 /utf8/validate/216 1214s ok 219 /utf8/validate/217 1214s ok 220 /utf8/validate/218 1214s ok 221 /utf8/validate/219 1214s ok 222 /utf8/validate/220 1214s ok 223 /utf8/validate/221 1214s ok 224 /utf8/validate/222 1214s ok 225 /utf8/validate/223 1214s ok 226 /utf8/validate/224 1214s ok 227 /utf8/validate/225 1214s ok 228 /utf8/validate/226 1214s ok 229 /utf8/validate/227 1214s ok 230 /utf8/validate/228 1214s ok 231 /utf8/validate/229 1214s ok 232 /utf8/validate/230 1214s ok 233 /utf8/validate/231 1214s ok 234 /utf8/validate/232 1214s ok 235 /utf8/validate/233 1214s ok 236 /utf8/validate/234 1214s ok 237 /utf8/validate/235 1214s ok 238 /utf8/validate/236 1214s # End of validate tests 1214s # End of utf8 tests 1214s TAP version 14 1214s # random seed: R02S767423d719a053e706d3701b7ed0aaaf 1214s 1..3 1214s # Start of static-proxy tests 1214s ok 1 /static-proxy/uri 1214s ok 2 /static-proxy/socks 1214s # GLib-GIO-DEBUG: getaddrinfo failed to resolve host string *.eee.xx:8000 1214s # GLib-GIO-DEBUG: getaddrinfo failed to resolve host string 10.0.0.1:8000 1214s ok 3 /static-proxy/ignore 1214s # End of static-proxy tests 1214s ok - glib/simple-proxy.test 1214s # Running test: glib/giomodule.test 1214s TAP version 14 1214s # random seed: R02Sff21c5496c6f729bce5f379e947b30a3 1214s 1..3 1214s # Start of giomodule tests 1214s ok 1 /giomodule/extension-point 1214s ok 2 /giomodule/module-scan-all 1214s ok 3 /giomodule/module-scan-all-with-scope 1214s # End of giomodule tests 1214s ok - glib/giomodule.test 1214s # Running test: glib/array-test.test 1214s TAP version 14 1214s # random seed: R02S66c9a4115a013a6df210f987f5d7e58c 1214s 1..120 1214s # Start of array tests 1214s ok 1 /array/ref-count 1214s ok 2 /array/steal 1214s ok 3 /array/clear-func 1214s ok 4 /array/binary-search 1214s ok 5 /array/overflow-append-vals 1214s ok 6 /array/overflow-set-size 1214s # Start of new tests 1214s ok 7 /array/new/zero-terminated 1214s ok 8 /array/new/take 1214s ok 9 /array/new/take-zero-terminated 1214s # Start of take tests 1214s ok 10 /array/new/take/empty 1214s ok 11 /array/new/take/overflow # SKIP Overflow test requires SIZE_WIDTH > UINT_WIDTH. 1214s ok 12 /array/new/take/zero-size 1214s # End of take tests 1214s # Start of take-zero-terminated tests 1214s ok 13 /array/new/take-zero-terminated/zero-size 1214s ok 14 /array/new/take-zero-terminated/null 1214s # End of take-zero-terminated tests 1214s # End of new tests 1214s # Start of copy tests 1214s # /array/copy/sized summary: Test that copying a newly-allocated sized array works. 1214s ok 15 /array/copy/sized 1214s ok 16 /array/copy/zero-terminated 1214s ok 17 /array/copy/non-zero-terminated-no-clear 1214s ok 18 /array/copy/non-zero-terminated-clear 1214s ok 19 /array/copy/zero-terminated-no-clear 1214s ok 20 /array/copy/zero-terminated-clear 1214s # End of copy tests 1214s # Start of remove-range tests 1214s ok 21 /array/remove-range/zero-terminated-null 1214s ok 22 /array/remove-range/non-zero-terminated-no-clear 1214s ok 23 /array/remove-range/non-zero-terminated-clear 1214s ok 24 /array/remove-range/zero-terminated-no-clear 1214s ok 25 /array/remove-range/zero-terminated-clear 1214s # End of remove-range tests 1214s # Start of set-size tests 1214s ok 26 /array/set-size/zero-terminated-null 1214s ok 27 /array/set-size/non-zero-terminated-no-clear 1214s ok 28 /array/set-size/non-zero-terminated-clear 1214s ok 29 /array/set-size/zero-terminated-no-clear 1214s ok 30 /array/set-size/zero-terminated-clear 1214s # Start of sized tests 1214s ok 31 /array/set-size/sized/non-zero-terminated-no-clear 1214s ok 32 /array/set-size/sized/non-zero-terminated-clear 1214s ok 33 /array/set-size/sized/zero-terminated-no-clear 1214s ok 34 /array/set-size/sized/zero-terminated-clear 1214s # End of sized tests 1214s # End of set-size tests 1214s # Start of append-val tests 1214s ok 35 /array/append-val/non-zero-terminated-no-clear 1214s ok 36 /array/append-val/non-zero-terminated-clear 1214s ok 37 /array/append-val/zero-terminated-no-clear 1214s ok 38 /array/append-val/zero-terminated-clear 1214s # End of append-val tests 1214s # Start of prepend-val tests 1214s ok 39 /array/prepend-val/non-zero-terminated-no-clear 1214s ok 40 /array/prepend-val/non-zero-terminated-clear 1214s ok 41 /array/prepend-val/zero-terminated-no-clear 1214s ok 42 /array/prepend-val/zero-terminated-clear 1214s # End of prepend-val tests 1214s # Start of prepend-vals tests 1214s ok 43 /array/prepend-vals/non-zero-terminated-no-clear 1214s ok 44 /array/prepend-vals/non-zero-terminated-clear 1214s ok 45 /array/prepend-vals/zero-terminated-no-clear 1214s ok 46 /array/prepend-vals/zero-terminated-clear 1214s # End of prepend-vals tests 1214s # Start of insert-vals tests 1214s ok 47 /array/insert-vals/non-zero-terminated-no-clear 1214s ok 48 /array/insert-vals/non-zero-terminated-clear 1214s ok 49 /array/insert-vals/zero-terminated-no-clear 1214s ok 50 /array/insert-vals/zero-terminated-clear 1214s # End of insert-vals tests 1214s # Start of remove-index tests 1214s ok 51 /array/remove-index/non-zero-terminated-no-clear 1214s ok 52 /array/remove-index/non-zero-terminated-clear 1214s ok 53 /array/remove-index/zero-terminated-no-clear 1214s ok 54 /array/remove-index/zero-terminated-clear 1214s # End of remove-index tests 1214s # Start of remove-index-fast tests 1214s ok 55 /array/remove-index-fast/non-zero-terminated-no-clear 1214s ok 56 /array/remove-index-fast/non-zero-terminated-clear 1214s ok 57 /array/remove-index-fast/zero-terminated-no-clear 1214s ok 58 /array/remove-index-fast/zero-terminated-clear 1214s # End of remove-index-fast tests 1214s # Start of sort tests 1214s ok 59 /array/sort/non-zero-terminated-no-clear 1214s ok 60 /array/sort/non-zero-terminated-clear 1214s ok 61 /array/sort/zero-terminated-no-clear 1214s ok 62 /array/sort/zero-terminated-clear 1214s # End of sort tests 1214s # Start of sort-with-data tests 1214s ok 63 /array/sort-with-data/non-zero-terminated-no-clear 1214s ok 64 /array/sort-with-data/non-zero-terminated-clear 1214s ok 65 /array/sort-with-data/zero-terminated-no-clear 1214s ok 66 /array/sort-with-data/zero-terminated-clear 1214s # End of sort-with-data tests 1214s # End of array tests 1214s # Start of pointerarray tests 1214s ok 67 /pointerarray/add 1214s ok 68 /pointerarray/insert 1214s ok 69 /pointerarray/new-take 1214s ok 70 /pointerarray/new-take-null-terminated 1214s ok 71 /pointerarray/new-from-array 1214s ok 72 /pointerarray/new-from-null-terminated-array 1214s ok 73 /pointerarray/free-func 1214s ok 74 /pointerarray/array_extend_and_steal 1214s ok 75 /pointerarray/sort 1214s ok 76 /pointerarray/sort-with-data 1214s ok 77 /pointerarray/sort-values 1214s ok 78 /pointerarray/sort-values-with-data 1214s ok 79 /pointerarray/remove-range 1214s ok 80 /pointerarray/steal 1214s # Start of free tests 1214s # /pointerarray/free/null-terminated summary: Check that g_ptr_array_free() on an empty array returns a NULL-terminated empty array 1214s ok 81 /pointerarray/free/null-terminated 1214s # End of free tests 1214s # Start of new-take tests 1214s ok 82 /pointerarray/new-take/empty 1214s ok 83 /pointerarray/new-take/overflow # SKIP Overflow test requires SIZE_WIDTH > UINT_WIDTH. 1214s ok 84 /pointerarray/new-take/with-free-func 1214s # End of new-take tests 1214s # Start of new-take-null-terminated tests 1214s ok 85 /pointerarray/new-take-null-terminated/empty 1214s ok 86 /pointerarray/new-take-null-terminated/with-free-func 1214s ok 87 /pointerarray/new-take-null-terminated/from-gstrv 1214s # End of new-take-null-terminated tests 1214s # Start of new-from-array tests 1214s ok 88 /pointerarray/new-from-array/empty 1214s ok 89 /pointerarray/new-from-array/overflow # SKIP Overflow test requires SIZE_WIDTH > UINT_WIDTH. 1214s ok 90 /pointerarray/new-from-array/with-copy-and-free-func 1214s # End of new-from-array tests 1214s # Start of new-from-null-terminated-array tests 1214s ok 91 /pointerarray/new-from-null-terminated-array/empty 1214s ok 92 /pointerarray/new-from-null-terminated-array/with-copy-and-free-func 1214s ok 93 /pointerarray/new-from-null-terminated-array/from-gstrv 1214s # End of new-from-null-terminated-array tests 1214s # Start of ref-count tests 1214s ok 94 /pointerarray/ref-count/not-null-terminated 1214s ok 95 /pointerarray/ref-count/null-terminated 1214s # End of ref-count tests 1214s # Start of array_copy tests 1214s # /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 1214s ok 96 /pointerarray/array_copy/not-null-terminated 1214s # /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 1214s ok 97 /pointerarray/array_copy/null-terminated 1214s # End of array_copy tests 1214s # Start of array_extend tests 1214s ok 98 /pointerarray/array_extend/not-null-terminated 1214s ok 99 /pointerarray/array_extend/null-terminated 1214s # End of array_extend tests 1214s # Start of sort tests 1214s # /pointerarray/sort/example summary: Check that the doc-comment for g_ptr_array_sort() is correct 1214s ok 100 /pointerarray/sort/example 1214s # End of sort tests 1214s # Start of sort-with-data tests 1214s # /pointerarray/sort-with-data/example summary: Check that the doc-comment for g_ptr_array_sort_with_data() is correct 1214s ok 101 /pointerarray/sort-with-data/example 1214s # End of sort-with-data tests 1214s # Start of sort-values tests 1214s ok 102 /pointerarray/sort-values/example 1214s # End of sort-values tests 1214s # Start of sort-values-with-data tests 1214s ok 103 /pointerarray/sort-values-with-data/example 1214s # End of sort-values-with-data tests 1214s # Start of find tests 1214s ok 104 /pointerarray/find/empty 1214s ok 105 /pointerarray/find/non-empty 1214s # End of find tests 1214s # Start of steal_index tests 1214s ok 106 /pointerarray/steal_index/not-null-terminated 1214s ok 107 /pointerarray/steal_index/null-terminated 1214s # End of steal_index tests 1214s # End of pointerarray tests 1214s # Start of bytearray tests 1214s ok 108 /bytearray/steal 1214s ok 109 /bytearray/append 1214s ok 110 /bytearray/prepend 1214s ok 111 /bytearray/remove 1214s ok 112 /bytearray/remove-fast 1214s ok 113 /bytearray/remove-range 1214s ok 114 /bytearray/ref-count 1214s ok 115 /bytearray/set-size 1214s ok 116 /bytearray/sort 1214s ok 117 /bytearray/sort-with-data 1214s ok 118 /bytearray/new-take 1214s ok 119 /bytearray/new-take-overflow # SKIP Overflow test requires SIZE_WIDTH > UINT_WIDTH. 1214s ok 120 /bytearray/free-to-bytes 1214s # End of bytearray tests 1214s ok - glib/array-test.test 1214s # Running test: glib/flags.test 1214s ok - glib/flags.test 1214s TAP version 14 1214s # random seed: R02S80e3dd8bef8d71de06245109d137dfb0 1214s 1..1 1214s # Start of gobject tests 1214s # Start of flags tests 1214s ok 1 /gobject/flags/validate 1214s # End of flags tests 1214s # End of gobject tests 1214s # Running test: glib/string.test 1214s TAP version 14 1214s # random seed: R02S3c64731f1cc5c321a2c3c44e6ced26f6 1214s 1..25 1214s # Start of string tests 1214s ok 1 /string/chunks 1214s ok 2 /string/chunk-insert 1214s ok 3 /string/new 1214s ok 4 /string/printf 1214s ok 5 /string/assign 1214s ok 6 /string/append-c 1214s ok 7 /string/append 1214s ok 8 /string/append-vprintf 1214s ok 9 /string/prepend-c 1214s ok 10 /string/prepend 1214s ok 11 /string/insert 1214s ok 12 /string/insert-unichar 1214s ok 13 /string/equal 1214s ok 14 /string/truncate 1214s ok 15 /string/overwrite 1214s ok 16 /string/nul-handling 1214s ok 17 /string/up-down 1214s ok 18 /string/set-size 1214s ok 19 /string/to-bytes 1214s # 0: Replacing "bar" with "baz" (limit 0) in "foo bar foo baz foo bar foobarbaz" 1214s # -> 3 replacements, "foo baz foo baz foo baz foobazbaz" 1214s # 1: Replacing "baz" with "bar" (limit 3) in "foo baz foo baz foo baz foobazbaz" 1214s # -> 3 replacements, "foo bar foo bar foo bar foobazbaz" 1214s # 2: Replacing "foobar" with "bar" (limit 1) in "foo bar foo bar foo bar foobazbaz" 1214s # -> 0 replacements, "foo bar foo bar foo bar foobazbaz" 1214s # 3: Replacing "a" with "abcdefghijkl" (limit 0) in "aaaaaaaa" 1214s # -> 8 replacements, "abcdefghijklabcdefghijklabcdefghijklabcdefghijklabcdefghijklabcdefghijklabcdefghijklabcdefghijkl" 1214s # 4: Replacing "$LIB" with "lib32" (limit 0) in "/usr/$LIB/libMangoHud.so" 1214s # -> 1 replacements, "/usr/lib32/libMangoHud.so" 1214s # 5: Replacing "o" with "" (limit 0) in "food for foals" 1214s # -> 4 replacements, "fd fr fals" 1214s # 6: Replacing "a" with "aaa" (limit 0) in "aaa" 1214s # -> 3 replacements, "aaaaaaaaa" 1214s # 7: Replacing "a" with "" (limit 0) in "aaa" 1214s # -> 3 replacements, "" 1214s # 8: Replacing "aa" with "bb" (limit 0) in "aaa" 1214s # -> 1 replacements, "bba" 1214s # 9: Replacing "" with "bar" (limit 0) in "foo" 1214s # -> 4 replacements, "barfbarobarobar" 1214s # 10: Replacing "" with "bar" (limit 1) in "foo" 1214s # -> 1 replacements, "barfoo" 1214s # 11: Replacing "" with "bar" (limit 2) in "foo" 1214s # -> 2 replacements, "barfbaroo" 1214s # 12: Replacing "" with "bar" (limit 3) in "foo" 1214s # -> 3 replacements, "barfbarobaro" 1214s # 13: Replacing "" with "bar" (limit 4) in "foo" 1214s # -> 4 replacements, "barfbarobarobar" 1214s # 14: Replacing "" with "bar" (limit 5) in "foo" 1214s # -> 4 replacements, "barfbarobarobar" 1214s # 15: Replacing "" with "x" (limit 0) in "" 1214s # -> 1 replacements, "x" 1214s # 16: Replacing "" with "" (limit 0) in "" 1214s # -> 1 replacements, "" 1214s # 17: Replacing "" with "aaaaaaaaaaaa" (limit 0) in "bbbbbbbbb" 1214s # -> 10 replacements, "aaaaaaaaaaaabaaaaaaaaaaaabaaaaaaaaaaaabaaaaaaaaaaaabaaaaaaaaaaaabaaaaaaaaaaaabaaaaaaaaaaaabaaaaaaaaaaaabaaaaaaaaaaaabaaaaaaaaaaaa" 1214s ok 20 /string/replace 1214s ok 21 /string/steal 1214s ok 22 /string/new-take 1214s ok 23 /string/copy 1214s ok 24 /string/sized-new 1214s # Start of new-take tests 1214s ok 25 /string/new-take/null 1214s # End of new-take tests 1214s # End of string tests 1214s ok - glib/string.test 1214s # Running test: glib/logging.test 1214s TAP version 14 1214s # random seed: R02S094dc8c8fdba4d5174ac451bf85c7911 1214s 1..20 1214s # Start of logging tests 1214s ok 1 /logging/default-handler 1214s # slow test /logging/default-handler executed in 0.58 secs 1214s ok 2 /logging/journald-handler 1214s ok 3 /logging/warnings 1214s ok 4 /logging/fatal-log-mask 1214s ok 5 /logging/always-fatal 1214s # bu-DEBUG: message 1214s # ba-DEBUG: message 1214s # ba-INFO: message 1214s ok 6 /logging/set-handler 1214s ok 7 /logging/print-handler 1214s ok 8 /logging/printerr-handler 1214s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=653052 1214s # The Log Message Handler 1214s # 1214s # The Good Fail Message Handler 1214s # 1214s ok 9 /logging/653052 1214s ok 10 /logging/gibberish 1214s # Start of default-handler tests 1214s # Start of subprocess tests 1214s # End of subprocess tests 1214s # End of default-handler tests 1214s # End of logging tests 1214s # Start of structured-logging tests 1214s ok 11 /structured-logging/no-state 1214s ok 12 /structured-logging/some-state 1214s # /structured-logging/recursion-overflow summary: Test that g_log_structured always sets n_fields correctly. 1214s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3760 1214s ok 13 /structured-logging/recursion-overflow 1214s ok 14 /structured-logging/robustness 1214s ok 15 /structured-logging/roundtrip1 1214s ok 16 /structured-logging/roundtrip2 1214s ok 17 /structured-logging/roundtrip3 1214s ok 18 /structured-logging/variant1 1214s ok - glib/logging.test 1214s ok 19 /structured-logging/variant2 1214s # Running test: glib/portal-support-flatpak-none.test 1214s ok 20 /structured-logging/set-writer-func-twice 1214s # End of structured-logging tests 1214s ok - glib/portal-support-flatpak-none.test 1214s # Running test: glib/singleton.test 1214s TAP version 14 1214s # random seed: R02S81af62ce8e5ca01abb5559f13a50b507 1214s 1..1 1214s # Start of portal-support tests 1214s # Start of flatpak tests 1214s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_portal-support-flatpak-none_HL2GK3/portal-support/flatpak/none/.dirs/home 1214s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_portal-support-flatpak-none_HL2GK3/portal-support/flatpak/none/.dirs/cache 1214s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_portal-support-flatpak-none_HL2GK3/portal-support/flatpak/none/.dirs/system-config1:/tmp/test_portal-support-flatpak-none_HL2GK3/portal-support/flatpak/none/.dirs/system-config2 1214s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_portal-support-flatpak-none_HL2GK3/portal-support/flatpak/none/.dirs/config 1214s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_portal-support-flatpak-none_HL2GK3/portal-support/flatpak/none/.dirs/system-data1:/tmp/test_portal-support-flatpak-none_HL2GK3/portal-support/flatpak/none/.dirs/system-data2 1214s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_portal-support-flatpak-none_HL2GK3/portal-support/flatpak/none/.dirs/data 1214s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_portal-support-flatpak-none_HL2GK3/portal-support/flatpak/none/.dirs/state 1214s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_portal-support-flatpak-none_HL2GK3/portal-support/flatpak/none/.dirs/runtime 1214s # Creating .flatpak-info in /tmp/test_portal-support-flatpak-none_HL2GK3/portal-support/flatpak/none/.dirs/runtime/.flatpak-info 1214s ok 1 /portal-support/flatpak/none 1214s # End of flatpak tests 1214s # End of portal-support tests 1214s ok - glib/singleton.test 1214s # Running test: glib/bindinggroup.test 1214s ok - glib/bindinggroup.test 1214s TAP version 14 1214s # random seed: R02S8c681f3d0f9cf6fe8d180ed8e744d13f 1214s 1..2 1214s # Start of gobject tests 1214s # Start of singleton tests 1214s ok 1 /gobject/singleton/construction 1214s # /gobject/singleton/construct-property summary: Test that creating a singleton with a construct-time property works 1214s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/2666 1214s ok 2 /gobject/singleton/construct-property 1214s # End of singleton tests 1214s # End of gobject tests 1215s # Running test: glib/macros-c-17.test 1215s ok - glib/macros-c-17.test 1215s TAP version 14 1215s # random seed: R02S47c4a9bd717fbe1cd4bf3623395f8925 1215s 1..11 1215s # Start of GObject tests 1215s # Start of BindingGroup tests 1215s ok 1 /GObject/BindingGroup/invalid 1215s ok 2 /GObject/BindingGroup/default 1215s ok 3 /GObject/BindingGroup/bidirectional 1215s ok 4 /GObject/BindingGroup/transform 1215s ok 5 /GObject/BindingGroup/transform-closures 1215s ok 6 /GObject/BindingGroup/same-object 1215s ok 7 /GObject/BindingGroup/weak-ref-source 1215s ok 8 /GObject/BindingGroup/weak-ref-target 1215s ok 9 /GObject/BindingGroup/properties 1215s ok 10 /GObject/BindingGroup/weak-notify-no-bindings 1215s ok 11 /GObject/BindingGroup/empty-closures 1215s # End of BindingGroup tests 1215s # End of GObject tests 1215s # Running test: glib/cxx-03.test 1215s TAP version 14 1215s # random seed: R02Sb463721559e6bfaab225ba148721790f 1215s 1..4 1215s # Start of C tests 1215s ok 1 /C/standard-17 1215s # End of C tests 1215s # Start of alignof tests 1215s ok 2 /alignof/fallback 1215s # End of alignof tests 1215s # Start of assert tests 1215s ok 3 /assert/static 1215s # End of assert tests 1215s # Start of struct tests 1215s ok 4 /struct/sizeof_member 1215s # End of struct tests 1215s TAP version 14 1215s # random seed: R02S11f0e3312da75edd693a1ceaa2aefd43 1215s 1..2 1215s # Start of gtask tests 1215s # 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. 1215s ok 1 /gtask/name 1215s # Start of name tests 1215s # 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. 1215s ok 2 /gtask/name/macro-wrapper 1215s # End of name tests 1215s # End of gtask tests 1215s TAP version 14 1215s # random seed: R02S6ba6565df4aa6a4638504926849cb198 1215s 1..21 1215s # Start of bytes tests 1215s ok 1 /bytes/new 1215s ok 2 /bytes/new-take 1215s ok 3 /bytes/new-static 1215s ok 4 /bytes/new-with-free-func 1215s ok 5 /bytes/new-from-bytes 1215s ok 6 /bytes/new-from-bytes-slice 1215s ok 7 /bytes/new-from-bytes-shared-ref 1215s ok 8 /bytes/hash 1215s ok 9 /bytes/equal 1215s ok 10 /bytes/compare 1215s ok 11 /bytes/null 1215s ok 12 /bytes/get-region 1215s # /bytes/unref-null summary: Test that calling g_bytes_unref() on NULL is a no-op 1215s ok 13 /bytes/unref-null 1215s # Start of to-data tests 1215s ok 14 /bytes/to-data/transferred 1215s ok 15 /bytes/to-data/two-refs 1215s ok 16 /bytes/to-data/non-malloc 1215s ok 17 /bytes/to-data/different-free-func 1215s # End of to-data tests 1215s # Start of to-array tests 1215s ok 18 /bytes/to-array/transferred 1215s ok 19 /bytes/to-array/two-refs 1215s ok 20 /bytes/to-array/non-malloc 1215s # Start of transferred tests 1215s # g_bytes_unref_to_array() can only take GBytes up to G_MAXUINT in length; test that longer ones are rejected 1215s ok 21 /bytes/to-array/transferred/oversize # SKIP Skipping test as guint is not smaller than gsize 1215s # End of transferred tests 1215s # End of to-array tests 1215s # End of bytes tests 1215s ok - glib/cxx-03.test 1215s # Running test: glib/bytes.test 1215s ok - glib/bytes.test 1215s # Running test: glib/portal-support-snap.test 1215s TAP version 14 1215s # random seed: R02Sb7fdb3d316019a21f7c0d7db94953f02 1215s 1..7 1215s # Start of portal-support tests 1215s # Start of snap tests 1215s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_portal-support-snap_PQCDK3/portal-support/snap/no-snapctl/.dirs/home 1215s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_portal-support-snap_PQCDK3/portal-support/snap/no-snapctl/.dirs/cache 1215s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_portal-support-snap_PQCDK3/portal-support/snap/no-snapctl/.dirs/system-config1:/tmp/test_portal-support-snap_PQCDK3/portal-support/snap/no-snapctl/.dirs/system-config2 1215s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_portal-support-snap_PQCDK3/portal-support/snap/no-snapctl/.dirs/config 1215s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_portal-support-snap_PQCDK3/portal-support/snap/no-snapctl/.dirs/system-data1:/tmp/test_portal-support-snap_PQCDK3/portal-support/snap/no-snapctl/.dirs/system-data2 1215s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_portal-support-snap_PQCDK3/portal-support/snap/no-snapctl/.dirs/data 1215s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_portal-support-snap_PQCDK3/portal-support/snap/no-snapctl/.dirs/state 1215s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_portal-support-snap_PQCDK3/portal-support/snap/no-snapctl/.dirs/runtime 1215s # Created snap.yaml in /tmp/test_portal-support-snap_PQCDK3/meta/snap.yaml 1215s Unable to clean up temporary directory /tmp/test_portal-support-snap_PQCDK3/portal-support/snap/no-snapctl: No such file or directory 1215s ok 1 /portal-support/snap/no-snapctl 1215s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_portal-support-snap_PQCDK3/portal-support/snap/none/.dirs/home 1215s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_portal-support-snap_PQCDK3/portal-support/snap/none/.dirs/cache 1215s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_portal-support-snap_PQCDK3/portal-support/snap/none/.dirs/system-config1:/tmp/test_portal-support-snap_PQCDK3/portal-support/snap/none/.dirs/system-config2 1215s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_portal-support-snap_PQCDK3/portal-support/snap/none/.dirs/config 1215s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_portal-support-snap_PQCDK3/portal-support/snap/none/.dirs/system-data1:/tmp/test_portal-support-snap_PQCDK3/portal-support/snap/none/.dirs/system-data2 1215s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_portal-support-snap_PQCDK3/portal-support/snap/none/.dirs/data 1215s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_portal-support-snap_PQCDK3/portal-support/snap/none/.dirs/state 1215s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_portal-support-snap_PQCDK3/portal-support/snap/none/.dirs/runtime 1215s # Created snap.yaml in /tmp/test_portal-support-snap_PQCDK3/meta/snap.yaml 1215s # Created snapctl in /tmp/test_portal-support-snap_PQCDK3/portal-support/snap/none/.dirs/runtime/snapctl 1215s Unable to clean up temporary directory /tmp/test_portal-support-snap_PQCDK3/portal-support/snap/none: No such file or directory 1215s ok 2 /portal-support/snap/none 1215s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_portal-support-snap_PQCDK3/portal-support/snap/all/.dirs/home 1215s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_portal-support-snap_PQCDK3/portal-support/snap/all/.dirs/cache 1215s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_portal-support-snap_PQCDK3/portal-support/snap/all/.dirs/system-config1:/tmp/test_portal-support-snap_PQCDK3/portal-support/snap/all/.dirs/system-config2 1215s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_portal-support-snap_PQCDK3/portal-support/snap/all/.dirs/config 1215s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_portal-support-snap_PQCDK3/portal-support/snap/all/.dirs/system-data1:/tmp/test_portal-support-snap_PQCDK3/portal-support/snap/all/.dirs/system-data2 1215s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_portal-support-snap_PQCDK3/portal-support/snap/all/.dirs/data 1215s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_portal-support-snap_PQCDK3/portal-support/snap/all/.dirs/state 1215s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_portal-support-snap_PQCDK3/portal-support/snap/all/.dirs/runtime 1215s # Created snap.yaml in /tmp/test_portal-support-snap_PQCDK3/meta/snap.yaml 1215s # Created snapctl in /tmp/test_portal-support-snap_PQCDK3/portal-support/snap/all/.dirs/runtime/snapctl 1215s Unable to clean up temporary directory /tmp/test_portal-support-snap_PQCDK3/portal-support/snap/all: No such file or directory 1215s ok 3 /portal-support/snap/all 1215s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_portal-support-snap_PQCDK3/portal-support/snap/desktop-only/.dirs/home 1215s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_portal-support-snap_PQCDK3/portal-support/snap/desktop-only/.dirs/cache 1215s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_portal-support-snap_PQCDK3/portal-support/snap/desktop-only/.dirs/system-config1:/tmp/test_portal-support-snap_PQCDK3/portal-support/snap/desktop-only/.dirs/system-config2 1215s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_portal-support-snap_PQCDK3/portal-support/snap/desktop-only/.dirs/config 1215s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_portal-support-snap_PQCDK3/portal-support/snap/desktop-only/.dirs/system-data1:/tmp/test_portal-support-snap_PQCDK3/portal-support/snap/desktop-only/.dirs/system-data2 1215s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_portal-support-snap_PQCDK3/portal-support/snap/desktop-only/.dirs/data 1215s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_portal-support-snap_PQCDK3/portal-support/snap/desktop-only/.dirs/state 1215s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_portal-support-snap_PQCDK3/portal-support/snap/desktop-only/.dirs/runtime 1215s # Created snap.yaml in /tmp/test_portal-support-snap_PQCDK3/meta/snap.yaml 1215s # Created snapctl in /tmp/test_portal-support-snap_PQCDK3/portal-support/snap/desktop-only/.dirs/runtime/snapctl 1215s Unable to clean up temporary directory /tmp/test_portal-support-snap_PQCDK3/portal-support/snap/desktop-only: No such file or directory 1215s ok 4 /portal-support/snap/desktop-only 1215s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_portal-support-snap_PQCDK3/portal-support/snap/network-only/.dirs/home 1215s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_portal-support-snap_PQCDK3/portal-support/snap/network-only/.dirs/cache 1215s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_portal-support-snap_PQCDK3/portal-support/snap/network-only/.dirs/system-config1:/tmp/test_portal-support-snap_PQCDK3/portal-support/snap/network-only/.dirs/system-config2 1215s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_portal-support-snap_PQCDK3/portal-support/snap/network-only/.dirs/config 1215s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_portal-support-snap_PQCDK3/portal-support/snap/network-only/.dirs/system-data1:/tmp/test_portal-support-snap_PQCDK3/portal-support/snap/network-only/.dirs/system-data2 1215s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_portal-support-snap_PQCDK3/portal-support/snap/network-only/.dirs/data 1215s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_portal-support-snap_PQCDK3/portal-support/snap/network-only/.dirs/state 1215s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_portal-support-snap_PQCDK3/portal-support/snap/network-only/.dirs/runtime 1215s # Created snap.yaml in /tmp/test_portal-support-snap_PQCDK3/meta/snap.yaml 1215s # Created snapctl in /tmp/test_portal-support-snap_PQCDK3/portal-support/snap/network-only/.dirs/runtime/snapctl 1215s Unable to clean up temporary directory /tmp/test_portal-support-snap_PQCDK3/portal-support/snap/network-only: No such file or directory 1215s ok 5 /portal-support/snap/network-only 1215s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_portal-support-snap_PQCDK3/portal-support/snap/gsettings-only/.dirs/home 1215s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_portal-support-snap_PQCDK3/portal-support/snap/gsettings-only/.dirs/cache 1215s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_portal-support-snap_PQCDK3/portal-support/snap/gsettings-only/.dirs/system-config1:/tmp/test_portal-support-snap_PQCDK3/portal-support/snap/gsettings-only/.dirs/system-config2 1215s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_portal-support-snap_PQCDK3/portal-support/snap/gsettings-only/.dirs/config 1215s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_portal-support-snap_PQCDK3/portal-support/snap/gsettings-only/.dirs/system-data1:/tmp/test_portal-support-snap_PQCDK3/portal-support/snap/gsettings-only/.dirs/system-data2 1215s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_portal-support-snap_PQCDK3/portal-support/snap/gsettings-only/.dirs/data 1215s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_portal-support-snap_PQCDK3/portal-support/snap/gsettings-only/.dirs/state 1215s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_portal-support-snap_PQCDK3/portal-support/snap/gsettings-only/.dirs/runtime 1215s # Created snap.yaml in /tmp/test_portal-support-snap_PQCDK3/meta/snap.yaml 1215s # Created snapctl in /tmp/test_portal-support-snap_PQCDK3/portal-support/snap/gsettings-only/.dirs/runtime/snapctl 1215s Unable to clean up temporary directory /tmp/test_portal-support-snap_PQCDK3/portal-support/snap/gsettings-only: No such file or directory 1215s ok 6 /portal-support/snap/gsettings-only 1215s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_portal-support-snap_PQCDK3/portal-support/snap/updates-dynamically/.dirs/home 1215s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_portal-support-snap_PQCDK3/portal-support/snap/updates-dynamically/.dirs/cache 1215s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_portal-support-snap_PQCDK3/portal-support/snap/updates-dynamically/.dirs/system-config1:/tmp/test_portal-support-snap_PQCDK3/portal-support/snap/updates-dynamically/.dirs/system-config2 1215s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_portal-support-snap_PQCDK3/portal-support/snap/updates-dynamically/.dirs/config 1215s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_portal-support-snap_PQCDK3/portal-support/snap/updates-dynamically/.dirs/system-data1:/tmp/test_portal-support-snap_PQCDK3/portal-support/snap/updates-dynamically/.dirs/system-data2 1215s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_portal-support-snap_PQCDK3/portal-support/snap/updates-dynamically/.dirs/data 1215s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_portal-support-snap_PQCDK3/portal-support/snap/updates-dynamically/.dirs/state 1215s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_portal-support-snap_PQCDK3/portal-support/snap/updates-dynamically/.dirs/runtime 1215s # Created snap.yaml in /tmp/test_portal-support-snap_PQCDK3/meta/snap.yaml 1215s # Created snapctl in /tmp/test_portal-support-snap_PQCDK3/portal-support/snap/updates-dynamically/.dirs/runtime/snapctl 1215s # Created snapctl in /tmp/test_portal-support-snap_PQCDK3/portal-support/snap/updates-dynamically/.dirs/runtime/snapctl 1215s # Created snapctl in /tmp/test_portal-support-snap_PQCDK3/portal-support/snap/updates-dynamically/.dirs/runtime/snapctl 1215s # Created snapctl in /tmp/test_portal-support-snap_PQCDK3/portal-support/snap/updates-dynamically/.dirs/runtime/snapctl 1215s # Created snapctl in /tmp/test_portal-support-snap_PQCDK3/portal-support/snap/updates-dynamically/.dirs/runtime/snapctl 1215s # Created snapctl in /tmp/test_portal-support-snap_PQCDK3/portal-support/snap/updates-dynamically/.dirs/runtime/snapctl 1215s # Created snapctl in /tmp/test_portal-support-snap_PQCDK3/portal-support/snap/updates-dynamically/.dirs/runtime/snapctl 1215s Unable to clean up temporary directory /tmp/test_portal-support-snap_PQCDK3/portal-support/snap/updates-dynamically: No such file or directory 1215s ok 7 /portal-support/snap/updates-dynamically 1215s # End of snap tests 1215s # End of portal-support tests 1215s Unable to clean up temporary directory /tmp/test_portal-support-snap_PQCDK3: No such file or directory 1215s ok - glib/portal-support-snap.test 1215s # Running test: glib/convert.test 1215s TAP version 14 1215s # random seed: R02Se292d34a3d54f6a0edf5ccae2fe8b911 1215s 1..14 1215s # Start of conversion tests 1215s ok 1 /conversion/no-conv 1215s ok 2 /conversion/iconv-state 1215s ok 3 /conversion/illegal-sequence 1215s ok 4 /conversion/byte-order 1215s ok 5 /conversion/unicode 1215s ok 6 /conversion/filename-utf8 1215s ok 7 /conversion/filename-display 1215s ok 8 /conversion/convert-embedded-nul 1215s # Start of locale-to-utf8 tests 1215s ok 9 /conversion/locale-to-utf8/embedded-nul 1215s # Start of embedded-nul tests 1215s # Start of subprocess tests 1215s # End of subprocess tests 1215s # End of embedded-nul tests 1215s # End of locale-to-utf8 tests 1215s # Start of locale-from-utf8 tests 1215s # Executing: glib/convert.test 1215s ok 10 /conversion/locale-from-utf8/embedded-nul 1215s # Start of embedded-nul tests 1215s # Start of subprocess tests 1215s # End of subprocess tests 1215s # End of embedded-nul tests 1215s # End of locale-from-utf8 tests 1215s # Start of filename-to-utf8 tests 1215s ok 11 /conversion/filename-to-utf8/embedded-nul 1215s # Start of embedded-nul tests 1215s # Start of subprocess tests 1215s # End of subprocess tests 1215s # End of embedded-nul tests 1215s # End of filename-to-utf8 tests 1215s # Start of filename-from-utf8 tests 1215s ok 12 /conversion/filename-from-utf8/embedded-nul 1215s # Start of embedded-nul tests 1215s # Start of subprocess tests 1215s # End of subprocess tests 1215s # End of embedded-nul tests 1215s # End of filename-from-utf8 tests 1215s # Start of filename-from-uri tests 1215s ok 13 /conversion/filename-from-uri/query-is-ignored 1215s ok 14 /conversion/filename-from-uri/fragment-is-ignored 1215s # End of filename-from-uri tests 1215s # End of conversion tests 1215s ok - glib/convert.test 1215s # Running test: glib/vfs.test 1215s TAP version 14 1215s # random seed: R02S3c71cb7428c9c68705908df42e140052 1215s 1..3 1215s # Start of gvfs tests 1215s ok 1 /gvfs/local 1215s # GLib-GIO-DEBUG: _g_io_module_get_default: Found default implementation local (GLocalVfs) for ‘gio-vfs’ 1215s ok 2 /gvfs/register-scheme 1215s # Start of resource tests 1215s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3090 1215s # /gvfs/resource/malformed-escaping summary: Test that g_vfs_get_file_for_uri() returns an invalid file for an invalid URI 1215s ok 3 /gvfs/resource/malformed-escaping 1215s # End of resource tests 1215s # End of gvfs tests 1215s ok - glib/vfs.test 1215s # Running test: glib/gdbus-connection-loss.test 1215s TAP version 14 1215s # random seed: R02S669db46893635f8a4a78c4a5868e7dc4 1215s 1..1 1215s # Start of gdbus tests 1215s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-connection-loss_H4Y9J3/gdbus/connection-loss/.dirs/home 1215s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-connection-loss_H4Y9J3/gdbus/connection-loss/.dirs/cache 1215s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-connection-loss_H4Y9J3/gdbus/connection-loss/.dirs/system-config1:/tmp/test_gdbus-connection-loss_H4Y9J3/gdbus/connection-loss/.dirs/system-config2 1215s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-connection-loss_H4Y9J3/gdbus/connection-loss/.dirs/config 1215s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-connection-loss_H4Y9J3/gdbus/connection-loss/.dirs/system-data1:/tmp/test_gdbus-connection-loss_H4Y9J3/gdbus/connection-loss/.dirs/system-data2 1215s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-connection-loss_H4Y9J3/gdbus/connection-loss/.dirs/data 1215s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-connection-loss_H4Y9J3/gdbus/connection-loss/.dirs/state 1215s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-connection-loss_H4Y9J3/gdbus/connection-loss/.dirs/runtime 1215s ok 1 /gdbus/connection-loss 1215s # End of gdbus tests 1215s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1215s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1215s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1215s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1215s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1215s ok - glib/gdbus-connection-loss.test 1215s # Running test: glib/gnotification.test 1215s TAP version 14 1215s # random seed: R02Scc27826610baace329a30f789636a2fa 1215s 1..2 1215s # Start of gnotification tests 1215s ok 1 /gnotification/basic 1215s ok 2 /gnotification/properties 1215s # End of gnotification tests 1215s ok - glib/gnotification.test 1215s # Running test: glib/gdbus-sasl.test 1215s TAP version 14 1215s # random seed: R02S5e642ddaf8ac1e9a9196b5f65d0f84fd 1215s 1..1 1215s # Start of gdbus tests 1215s # Start of sasl tests 1215s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-sasl_LWF7J3/gdbus/sasl/server/.dirs/home 1215s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-sasl_LWF7J3/gdbus/sasl/server/.dirs/cache 1215s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-sasl_LWF7J3/gdbus/sasl/server/.dirs/system-config1:/tmp/test_gdbus-sasl_LWF7J3/gdbus/sasl/server/.dirs/system-config2 1215s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-sasl_LWF7J3/gdbus/sasl/server/.dirs/config 1215s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-sasl_LWF7J3/gdbus/sasl/server/.dirs/system-data1:/tmp/test_gdbus-sasl_LWF7J3/gdbus/sasl/server/.dirs/system-data2 1215s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-sasl_LWF7J3/gdbus/sasl/server/.dirs/data 1215s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-sasl_LWF7J3/gdbus/sasl/server/.dirs/state 1215s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-sasl_LWF7J3/gdbus/sasl/server/.dirs/runtime 1215s # New handshake: EXTERNAL with incorrect initial response 1215s # C:“AUTH EXTERNAL 30” 1215s # Expect: /^REJECTED.*$/ 1215s # S:“REJECTED EXTERNAL DBUS_COOKIE_SHA1” 1215s # New handshake: EXTERNAL without initial response, failing to authenticate 1215s # C:“AUTH EXTERNAL” 1215s # Expect: /^DATA$/ 1215s # S:“DATA” 1215s # C:“DATA 30” 1215s # Expect: /^REJECTED.*$/ 1215s # S:“REJECTED EXTERNAL DBUS_COOKIE_SHA1” 1215s # New handshake: EXTERNAL with initial response 1215s # C:“AUTH EXTERNAL 31303030” 1215s # Expect: /^OK [0-9a-f]+$/ 1215s # S:“OK 5f06e608a511fbab1a3694f86987235f” 1215s # New handshake: EXTERNAL without initial response 1215s # C:“AUTH EXTERNAL” 1215s # Expect: /^DATA$/ 1215s # S:“DATA” 1215s # C:“DATA 31303030” 1215s # Expect: /^OK [0-9a-f]+$/ 1215s # S:“OK 5f06e608a511fbab1a3694f86987235f” 1215s # New handshake: EXTERNAL with empty authorization identity 1215s # C:“AUTH EXTERNAL” 1215s # Expect: /^DATA$/ 1215s # S:“DATA” 1215s # C:“DATA” 1215s # Expect: /^OK [0-9a-f]+$/ 1215s # S:“OK 5f06e608a511fbab1a3694f86987235f” 1215s # New handshake: EXTERNAL with empty authorization identity and whitespace 1215s # C:“AUTH EXTERNAL” 1215s # Expect: /^DATA$/ 1215s # S:“DATA” 1215s # C:“DATA ” 1215s # Expect: /^OK [0-9a-f]+$/ 1215s # S:“OK 5f06e608a511fbab1a3694f86987235f” 1215s ok 1 /gdbus/sasl/server 1215s # End of sasl tests 1215s # End of gdbus tests 1215s ok - glib/gdbus-sasl.test 1215s # Running test: glib/glistmodel.test 1215s TAP version 14 1215s # random seed: R02Sd046759fc9d5c98892fa63ad3a1d471c 1215s 1..18 1215s # Start of glistmodel tests 1215s # Start of store tests 1215s ok 1 /glistmodel/store/properties 1215s ok 2 /glistmodel/store/non-gobjects 1215s ok 3 /glistmodel/store/boundaries 1215s ok 4 /glistmodel/store/refcounts 1215s ok 5 /glistmodel/store/sorted 1215s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=795307 1215s ok 6 /glistmodel/store/splice-replace-middle 1215s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=795307 1215s ok 7 /glistmodel/store/splice-replace-all 1215s ok 8 /glistmodel/store/splice-noop 1215s ok 9 /glistmodel/store/splice-remove-multiple 1215s ok 10 /glistmodel/store/splice-add-multiple 1215s ok 11 /glistmodel/store/splice-wrong-type 1215s ok 12 /glistmodel/store/item-type 1215s ok 13 /glistmodel/store/remove-all 1215s ok 14 /glistmodel/store/sort 1215s ok 15 /glistmodel/store/get-item-cache 1215s ok 16 /glistmodel/store/items-changed 1215s ok 17 /glistmodel/store/past-end 1215s ok 18 /glistmodel/store/find 1215s # End of store tests 1215s # End of glistmodel tests 1215s ok - glib/glistmodel.test 1215s # Running test: glib/642026.test 1215s TAP version 14 1215s # random seed: R02S5bee91268446526c12aef741c1f5a32e 1215s 1..1 1215s # Start of glib tests 1215s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=642026 1215s ok 1 /glib/642026 1215s # End of glib tests 1215s ok - glib/642026.test 1215s # Running test: glib/properties-refcount3.test 1215s TAP version 14 1215s # random seed: R02S7443e4ba810cdde8b126c3ad5b56d910 1215s 1..1 1215s # Start of gobject tests 1215s # Start of refcount tests 1220s # Executing: glib/properties-refcount3.test 1225s # Executing: glib/properties-refcount3.test 1230s # Executing: glib/properties-refcount3.test 1235s # Executing: glib/properties-refcount3.test 1240s # Executing: glib/properties-refcount3.test 1245s # Executing: glib/properties-refcount3.test 1245s # 1245s # stopping 1245s # 1245s # stopped 1245s # 1245s # 6699594 108197 1245s # 1245s ok 1 /gobject/refcount/properties-3 1245s # slow test /gobject/refcount/properties-3 executed in 30.00 secs 1245s # End of refcount tests 1245s # End of gobject tests 1245s ok - glib/properties-refcount3.test 1245s # Running test: glib/strfuncs.test 1245s TAP version 14 1245s # random seed: R02S5f90bd059c9fab35b4cf1afeb22a0854 1245s 1..51 1245s # Start of strfuncs tests 1245s ok 1 /strfuncs/ascii-strcasecmp 1245s ok 2 /strfuncs/ascii_strdown 1245s ok 3 /strfuncs/ascii_strdup 1245s ok 4 /strfuncs/ascii_strtod 1245s ok 5 /strfuncs/bounds-check 1245s ok 6 /strfuncs/has-prefix 1245s ok 7 /strfuncs/has-prefix-macro 1245s ok 8 /strfuncs/has-suffix 1245s ok 9 /strfuncs/has-suffix-macro 1245s ok 10 /strfuncs/memdup 1245s ok 11 /strfuncs/memdup2 1245s ok 12 /strfuncs/set_str 1245s ok 13 /strfuncs/stpcpy 1245s ok 14 /strfuncs/str_match_string 1245s ok 15 /strfuncs/str_tokenize_and_fold 1245s ok 16 /strfuncs/strcanon 1245s ok - glib/strfuncs.test 1245s # Running test: glib/g-file-info.test 1245s ok - glib/g-file-info.test 1245s # Running test: glib/autoptr.test 1245s ok - glib/autoptr.test 1245s # Running test: glib/print.test 1245s ok - glib/print.test 1245s # Running test: glib/gdbus-exit-on-close.test 1245s ok 17 /strfuncs/strchomp 1245s ok 18 /strfuncs/strchug 1245s ok 19 /strfuncs/strcompress-strescape 1245s ok 20 /strfuncs/strconcat 1245s ok 21 /strfuncs/strdelimit 1245s ok 22 /strfuncs/strdup 1245s ok 23 /strfuncs/strdup-printf 1245s ok 24 /strfuncs/strdupv 1245s ok 25 /strfuncs/strerror 1245s ok 26 /strfuncs/strip-context 1245s ok 27 /strfuncs/strjoin 1245s ok 28 /strfuncs/strjoinv 1245s ok 29 /strfuncs/strlcat 1245s ok 30 /strfuncs/strlcpy 1245s ok 31 /strfuncs/strncasecmp 1245s ok 32 /strfuncs/strndup 1245s ok 33 /strfuncs/strnfill 1245s ok 34 /strfuncs/strreverse 1245s ok 35 /strfuncs/strsignal 1245s ok 36 /strfuncs/strsplit 1245s ok 37 /strfuncs/strsplit-set 1245s ok 38 /strfuncs/strstr 1245s ok 39 /strfuncs/strtod 1245s ok 40 /strfuncs/strtoull-strtoll 1245s ok 41 /strfuncs/strup 1245s ok 42 /strfuncs/strv-contains 1245s ok 43 /strfuncs/strv-equal 1245s ok 44 /strfuncs/strv-length 1245s ok 45 /strfuncs/test-is-to-digit 1245s ok 46 /strfuncs/transliteration 1245s # /strfuncs/str-equal summary: Test macro and function forms of g_str_equal() 1245s ok 47 /strfuncs/str-equal 1245s ok 48 /strfuncs/str-is-ascii 1245s # Start of ascii-string-to-num tests 1245s ok 49 /strfuncs/ascii-string-to-num/pathological 1245s ok 50 /strfuncs/ascii-string-to-num/usual 1245s # End of ascii-string-to-num tests 1245s # Start of strdup tests 1245s ok 51 /strfuncs/strdup/inline 1245s # End of strdup tests 1245s # End of strfuncs tests 1245s TAP version 14 1245s # random seed: R02S23b8fdf9e55bdd9a9223ceb38337bbff 1245s 1..6 1245s # Start of g-file-info tests 1245s ok 1 /g-file-info/test_g_file_info 1245s # /g-file-info/xattrs summary: Test setting and getting escaped xattrs 1245s # GLib-GIO-DEBUG: _g_io_module_get_default: Found default implementation local (GLocalVfs) for ‘gio-vfs’ 1245s ok 2 /g-file-info/xattrs 1245s # /g-file-info/set-modified-date-time-precision summary: Test that g_file_info_set_modified_date_time() preserves microseconds 1245s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3116 1245s ok 3 /g-file-info/set-modified-date-time-precision 1245s # Start of test_g_file_info tests 1245s # /g-file-info/test_g_file_info/modification-time summary: Test that getting the modification time of a file works. 1245s ok 4 /g-file-info/test_g_file_info/modification-time 1245s # /g-file-info/test_g_file_info/access-time summary: Test that getting the access time of a file works. 1245s ok 5 /g-file-info/test_g_file_info/access-time 1245s # /g-file-info/test_g_file_info/creation-time summary: Test that getting the creation time of a file works. 1245s ok 6 /g-file-info/test_g_file_info/creation-time 1245s # End of test_g_file_info tests 1245s # End of g-file-info tests 1245s TAP version 14 1245s # random seed: R02S7321870ebf42483097bde5587740f573 1245s 1..6 1245s # Start of autoptr tests 1245s ok 1 /autoptr/autoptr 1245s ok 2 /autoptr/autoptr_steal 1245s ok 3 /autoptr/autolist 1245s ok 4 /autoptr/autoslist 1245s ok 5 /autoptr/autoqueue 1245s ok 6 /autoptr/autoclass 1245s # End of autoptr tests 1245s TAP version 14 1245s # random seed: R02S03ff1c9ff3320abc7877576e72b9d253 1245s 1..1 1245s ok 1 /print-console # SKIP Testing console output only supported on Windows 1245s TAP version 14 1245s # random seed: R02S0441d399c2a2d420aec58bd80caee9a3 1245s 1..4 1245s # Start of gdbus tests 1245s # Start of exit-on-close tests 1245s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-exit-on-close_GEGNK3/gdbus/exit-on-close/default/.dirs/home 1245s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-exit-on-close_GEGNK3/gdbus/exit-on-close/default/.dirs/cache 1245s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-exit-on-close_GEGNK3/gdbus/exit-on-close/default/.dirs/system-config1:/tmp/test_gdbus-exit-on-close_GEGNK3/gdbus/exit-on-close/default/.dirs/system-config2 1245s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-exit-on-close_GEGNK3/gdbus/exit-on-close/default/.dirs/config 1245s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-exit-on-close_GEGNK3/gdbus/exit-on-close/default/.dirs/system-data1:/tmp/test_gdbus-exit-on-close_GEGNK3/gdbus/exit-on-close/default/.dirs/system-data2 1245s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-exit-on-close_GEGNK3/gdbus/exit-on-close/default/.dirs/data 1245s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-exit-on-close_GEGNK3/gdbus/exit-on-close/default/.dirs/state 1245s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-exit-on-close_GEGNK3/gdbus/exit-on-close/default/.dirs/runtime 1245s ok 1 /gdbus/exit-on-close/default 1245s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-exit-on-close_GEGNK3/gdbus/exit-on-close/true/.dirs/home 1245s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-exit-on-close_GEGNK3/gdbus/exit-on-close/true/.dirs/cache 1245s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-exit-on-close_GEGNK3/gdbus/exit-on-close/true/.dirs/system-config1:/tmp/test_gdbus-exit-on-close_GEGNK3/gdbus/exit-on-close/true/.dirs/system-config2 1245s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-exit-on-close_GEGNK3/gdbus/exit-on-close/true/.dirs/config 1245s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-exit-on-close_GEGNK3/gdbus/exit-on-close/true/.dirs/system-data1:/tmp/test_gdbus-exit-on-close_GEGNK3/gdbus/exit-on-close/true/.dirs/system-data2 1245s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-exit-on-close_GEGNK3/gdbus/exit-on-close/true/.dirs/data 1245s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-exit-on-close_GEGNK3/gdbus/exit-on-close/true/.dirs/state 1245s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-exit-on-close_GEGNK3/gdbus/exit-on-close/true/.dirs/runtime 1245s ok 2 /gdbus/exit-on-close/true 1245s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-exit-on-close_GEGNK3/gdbus/exit-on-close/false/.dirs/home 1245s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-exit-on-close_GEGNK3/gdbus/exit-on-close/false/.dirs/cache 1245s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-exit-on-close_GEGNK3/gdbus/exit-on-close/false/.dirs/system-config1:/tmp/test_gdbus-exit-on-close_GEGNK3/gdbus/exit-on-close/false/.dirs/system-config2 1245s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-exit-on-close_GEGNK3/gdbus/exit-on-close/false/.dirs/config 1245s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-exit-on-close_GEGNK3/gdbus/exit-on-close/false/.dirs/system-data1:/tmp/test_gdbus-exit-on-close_GEGNK3/gdbus/exit-on-close/false/.dirs/system-data2 1245s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-exit-on-close_GEGNK3/gdbus/exit-on-close/false/.dirs/data 1245s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-exit-on-close_GEGNK3/gdbus/exit-on-close/false/.dirs/state 1245s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-exit-on-close_GEGNK3/gdbus/exit-on-close/false/.dirs/runtime 1245s ok 3 /gdbus/exit-on-close/false 1245s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-exit-on-close_GEGNK3/gdbus/exit-on-close/we-close/.dirs/home 1245s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-exit-on-close_GEGNK3/gdbus/exit-on-close/we-close/.dirs/cache 1245s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-exit-on-close_GEGNK3/gdbus/exit-on-close/we-close/.dirs/system-config1:/tmp/test_gdbus-exit-on-close_GEGNK3/gdbus/exit-on-close/we-close/.dirs/system-config2 1245s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-exit-on-close_GEGNK3/gdbus/exit-on-close/we-close/.dirs/config 1245s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-exit-on-close_GEGNK3/gdbus/exit-on-close/we-close/.dirs/system-data1:/tmp/test_gdbus-exit-on-close_GEGNK3/gdbus/exit-on-close/we-close/.dirs/system-data2 1245s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-exit-on-close_GEGNK3/gdbus/exit-on-close/we-close/.dirs/data 1245s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-exit-on-close_GEGNK3/gdbus/exit-on-close/we-close/.dirs/state 1245s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-exit-on-close_GEGNK3/gdbus/exit-on-close/we-close/.dirs/runtime 1245s ok 4 /gdbus/exit-on-close/we-close 1245s # Start of default tests 1245s # End of default tests 1245s # Start of true tests 1245s # End of true tests 1245s # Start of false tests 1245s # End of false tests 1245s # Start of we-close tests 1245s # End of we-close tests 1245s # End of exit-on-close tests 1245s # End of gdbus tests 1245s ok - glib/gdbus-exit-on-close.test 1245s # Running test: glib/hook.test 1245s TAP version 14 1245s # random seed: R02S7f592bdcb9552842b327cf35ebc65e6c 1245s 1..2 1245s # Start of hook tests 1245s ok 1 /hook/basics 1245s ok 2 /hook/corner-cases 1245s # End of hook tests 1245s ok - glib/hook.test 1246s # Running test: glib/trash.test 1246s TAP version 14 1246s # random seed: R02S991e540dbc7358c592441aa3b037c112 1246s 1..3 1246s # Start of trash tests 1246s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/issues/251 1246s # GLib-GIO-DEBUG: _g_io_module_get_default: Found default implementation local (GLocalVfs) for ‘gio-vfs’ 1246s # File: /tmp/test-trashXTZEK3 (parent st_dev: 79) 1246s # Home: /home/ubuntu (st_dev: 79) 1246s ok 1 /trash/not-supported # SKIP The file has to be on another filesystem than the home trash to run this test 1246s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/issues/1522 1246s ok 2 /trash/symlinks # SKIP Directory '/home/ubuntu/.local' does not exist 1246s ok 3 /trash/long-filename 1246s # End of trash tests 1246s ok - glib/trash.test 1246s # Running test: glib/gdbus-method-invocation.test 1246s TAP version 14 1246s # random seed: R02S27e99e1828c1fc1e4040189a662130ee 1246s 1..1 1246s # Start of gdbus tests 1246s # Start of method-invocation tests 1246s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-method-invocation_SNGDK3/gdbus/method-invocation/return/.dirs/home 1246s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-method-invocation_SNGDK3/gdbus/method-invocation/return/.dirs/cache 1246s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-method-invocation_SNGDK3/gdbus/method-invocation/return/.dirs/system-config1:/tmp/test_gdbus-method-invocation_SNGDK3/gdbus/method-invocation/return/.dirs/system-config2 1246s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-method-invocation_SNGDK3/gdbus/method-invocation/return/.dirs/config 1246s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-method-invocation_SNGDK3/gdbus/method-invocation/return/.dirs/system-data1:/tmp/test_gdbus-method-invocation_SNGDK3/gdbus/method-invocation/return/.dirs/system-data2 1246s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-method-invocation_SNGDK3/gdbus/method-invocation/return/.dirs/data 1246s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-method-invocation_SNGDK3/gdbus/method-invocation/return/.dirs/state 1246s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-method-invocation_SNGDK3/gdbus/method-invocation/return/.dirs/runtime 1246s # /gdbus/method-invocation/return summary: Test calling g_dbus_method_invocation_return_*() in various ways 1246s # Calling org.freedesktop.DBus.Properties.Get 1246s # Calling org.freedesktop.DBus.Properties.Get 1246s # Calling org.freedesktop.DBus.Properties.Get 1246s # Calling org.freedesktop.DBus.Properties.Set 1246s # Calling org.freedesktop.DBus.Properties.GetAll 1246s # Calling org.example.Foo.WrongReturnType 1246s # Calling org.example.Foo.GetFDs 1246s # Calling org.example.Foo.GetFDs 1246s # Calling org.example.Foo.ReturnError 1246s # Calling org.example.Foo.CloseBeforeReturning 1246s ok 1 /gdbus/method-invocation/return 1246s # End of method-invocation tests 1246s # End of gdbus tests 1246s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1246s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1246s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1246s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1246s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1246s ok - glib/gdbus-method-invocation.test 1246s # Running test: glib/mimeapps.test 1246s TAP version 14 1246s # random seed: R02Sc7ccb08653264858da931db49566d4d5 1246s 1..13 1246s # Start of appinfo tests 1246s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_mimeapps_LEZDK3/appinfo/all/.dirs/home 1246s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_mimeapps_LEZDK3/appinfo/all/.dirs/cache 1246s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_mimeapps_LEZDK3/appinfo/all/.dirs/system-config1:/tmp/test_mimeapps_LEZDK3/appinfo/all/.dirs/system-config2 1246s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_mimeapps_LEZDK3/appinfo/all/.dirs/config 1246s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_mimeapps_LEZDK3/appinfo/all/.dirs/system-data1:/tmp/test_mimeapps_LEZDK3/appinfo/all/.dirs/system-data2 1246s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_mimeapps_LEZDK3/appinfo/all/.dirs/data 1246s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_mimeapps_LEZDK3/appinfo/all/.dirs/state 1246s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_mimeapps_LEZDK3/appinfo/all/.dirs/runtime 1246s # creating '/tmp/test_mimeapps_LEZDK3/appinfo/all/.dirs/system-data1/applications' 1246s # creating '/tmp/test_mimeapps_LEZDK3/appinfo/all/.dirs/system-data1/applications/mimeapps.list' 1246s # creating '/tmp/test_mimeapps_LEZDK3/appinfo/all/.dirs/data/applications' 1246s # creating '/tmp/test_mimeapps_LEZDK3/appinfo/all/.dirs/data/applications/myapp.desktop' 1246s # creating '/tmp/test_mimeapps_LEZDK3/appinfo/all/.dirs/data/applications/myapp2.desktop' 1246s # creating '/tmp/test_mimeapps_LEZDK3/appinfo/all/.dirs/data/applications/myapp3.desktop' 1246s # creating '/tmp/test_mimeapps_LEZDK3/appinfo/all/.dirs/data/applications/myapp4.desktop' 1246s # creating '/tmp/test_mimeapps_LEZDK3/appinfo/all/.dirs/data/applications/myapp5.desktop' 1246s # creating '/tmp/test_mimeapps_LEZDK3/appinfo/all/.dirs/data/applications/nosuchapp.desktop' 1246s # removing '/tmp/test_mimeapps_LEZDK3/appinfo/all/.dirs/data/applications/mimeapps.list' 1246s # creating '/tmp/test_mimeapps_LEZDK3/appinfo/all/.dirs/data/applications/mimeinfo.cache' 1246s ok 1 /appinfo/all 1246s # Start of mime tests 1246s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_mimeapps_LEZDK3/appinfo/mime/api/.dirs/home 1246s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_mimeapps_LEZDK3/appinfo/mime/api/.dirs/cache 1246s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_mimeapps_LEZDK3/appinfo/mime/api/.dirs/system-config1:/tmp/test_mimeapps_LEZDK3/appinfo/mime/api/.dirs/system-config2 1246s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_mimeapps_LEZDK3/appinfo/mime/api/.dirs/config 1246s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_mimeapps_LEZDK3/appinfo/mime/api/.dirs/system-data1:/tmp/test_mimeapps_LEZDK3/appinfo/mime/api/.dirs/system-data2 1246s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_mimeapps_LEZDK3/appinfo/mime/api/.dirs/data 1246s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_mimeapps_LEZDK3/appinfo/mime/api/.dirs/state 1246s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_mimeapps_LEZDK3/appinfo/mime/api/.dirs/runtime 1246s # creating '/tmp/test_mimeapps_LEZDK3/appinfo/mime/api/.dirs/system-data1/applications' 1246s # creating '/tmp/test_mimeapps_LEZDK3/appinfo/mime/api/.dirs/system-data1/applications/mimeapps.list' 1246s # creating '/tmp/test_mimeapps_LEZDK3/appinfo/mime/api/.dirs/data/applications' 1246s # creating '/tmp/test_mimeapps_LEZDK3/appinfo/mime/api/.dirs/data/applications/myapp.desktop' 1246s # creating '/tmp/test_mimeapps_LEZDK3/appinfo/mime/api/.dirs/data/applications/myapp2.desktop' 1246s # creating '/tmp/test_mimeapps_LEZDK3/appinfo/mime/api/.dirs/data/applications/myapp3.desktop' 1246s # creating '/tmp/test_mimeapps_LEZDK3/appinfo/mime/api/.dirs/data/applications/myapp4.desktop' 1246s # creating '/tmp/test_mimeapps_LEZDK3/appinfo/mime/api/.dirs/data/applications/myapp5.desktop' 1246s # creating '/tmp/test_mimeapps_LEZDK3/appinfo/mime/api/.dirs/data/applications/nosuchapp.desktop' 1246s # removing '/tmp/test_mimeapps_LEZDK3/appinfo/mime/api/.dirs/data/applications/mimeapps.list' 1246s # creating '/tmp/test_mimeapps_LEZDK3/appinfo/mime/api/.dirs/data/applications/mimeinfo.cache' 1246s # GLib-GIO-DEBUG: ensure_dir: Ensuring /tmp/test_mimeapps_LEZDK3/appinfo/mime/api/.dirs/config 1246s # GLib-GIO-DEBUG: desktop_file_dirs_lock: Resetting desktop app info dirs from /tmp/test_mimeapps_LEZDK3/appinfo/all/.dirs/config to /tmp/test_mimeapps_LEZDK3/appinfo/mime/api/.dirs/config 1246s # GLib-GIO-DEBUG: ensure_dir: Ensuring /tmp/test_mimeapps_LEZDK3/appinfo/mime/api/.dirs/config 1246s # GLib-GIO-DEBUG: ensure_dir: Ensuring /tmp/test_mimeapps_LEZDK3/appinfo/mime/api/.dirs/config 1246s # GLib-GIO-DEBUG: ensure_dir: Ensuring /tmp/test_mimeapps_LEZDK3/appinfo/mime/api/.dirs/config 1246s # GLib-GIO-DEBUG: ensure_dir: Ensuring /tmp/test_mimeapps_LEZDK3/appinfo/mime/api/.dirs/config 1246s # GLib-GIO-DEBUG: ensure_dir: Ensuring /tmp/test_mimeapps_LEZDK3/appinfo/mime/api/.dirs/config 1246s ok 2 /appinfo/mime/api 1246s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_mimeapps_LEZDK3/appinfo/mime/default/.dirs/home 1246s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_mimeapps_LEZDK3/appinfo/mime/default/.dirs/cache 1246s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_mimeapps_LEZDK3/appinfo/mime/default/.dirs/system-config1:/tmp/test_mimeapps_LEZDK3/appinfo/mime/default/.dirs/system-config2 1246s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_mimeapps_LEZDK3/appinfo/mime/default/.dirs/config 1246s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_mimeapps_LEZDK3/appinfo/mime/default/.dirs/system-data1:/tmp/test_mimeapps_LEZDK3/appinfo/mime/default/.dirs/system-data2 1246s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_mimeapps_LEZDK3/appinfo/mime/default/.dirs/data 1246s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_mimeapps_LEZDK3/appinfo/mime/default/.dirs/state 1246s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_mimeapps_LEZDK3/appinfo/mime/default/.dirs/runtime 1246s # creating '/tmp/test_mimeapps_LEZDK3/appinfo/mime/default/.dirs/system-data1/applications' 1246s # creating '/tmp/test_mimeapps_LEZDK3/appinfo/mime/default/.dirs/system-data1/applications/mimeapps.list' 1246s # creating '/tmp/test_mimeapps_LEZDK3/appinfo/mime/default/.dirs/data/applications' 1246s # creating '/tmp/test_mimeapps_LEZDK3/appinfo/mime/default/.dirs/data/applications/myapp.desktop' 1246s # creating '/tmp/test_mimeapps_LEZDK3/appinfo/mime/default/.dirs/data/applications/myapp2.desktop' 1246s # creating '/tmp/test_mimeapps_LEZDK3/appinfo/mime/default/.dirs/data/applications/myapp3.desktop' 1246s # creating '/tmp/test_mimeapps_LEZDK3/appinfo/mime/default/.dirs/data/applications/myapp4.desktop' 1246s # creating '/tmp/test_mimeapps_LEZDK3/appinfo/mime/default/.dirs/data/applications/myapp5.desktop' 1246s # creating '/tmp/test_mimeapps_LEZDK3/appinfo/mime/default/.dirs/data/applications/nosuchapp.desktop' 1246s # removing '/tmp/test_mimeapps_LEZDK3/appinfo/mime/default/.dirs/data/applications/mimeapps.list' 1246s # creating '/tmp/test_mimeapps_LEZDK3/appinfo/mime/default/.dirs/data/applications/mimeinfo.cache' 1246s # GLib-GIO-DEBUG: ensure_dir: Ensuring /tmp/test_mimeapps_LEZDK3/appinfo/mime/default/.dirs/config 1246s # GLib-GIO-DEBUG: desktop_file_dirs_lock: Resetting desktop app info dirs from /tmp/test_mimeapps_LEZDK3/appinfo/mime/api/.dirs/config to /tmp/test_mimeapps_LEZDK3/appinfo/mime/default/.dirs/config 1246s # GLib-GIO-DEBUG: ensure_dir: Ensuring /tmp/test_mimeapps_LEZDK3/appinfo/mime/default/.dirs/config 1246s # GLib-GIO-DEBUG: ensure_dir: Ensuring /tmp/test_mimeapps_LEZDK3/appinfo/mime/default/.dirs/config 1246s # GLib-GIO-DEBUG: ensure_dir: Ensuring /tmp/test_mimeapps_LEZDK3/appinfo/mime/default/.dirs/config 1246s ok 3 /appinfo/mime/default 1246s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_mimeapps_LEZDK3/appinfo/mime/file/.dirs/home 1246s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_mimeapps_LEZDK3/appinfo/mime/file/.dirs/cache 1246s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_mimeapps_LEZDK3/appinfo/mime/file/.dirs/system-config1:/tmp/test_mimeapps_LEZDK3/appinfo/mime/file/.dirs/system-config2 1246s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_mimeapps_LEZDK3/appinfo/mime/file/.dirs/config 1246s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_mimeapps_LEZDK3/appinfo/mime/file/.dirs/system-data1:/tmp/test_mimeapps_LEZDK3/appinfo/mime/file/.dirs/system-data2 1246s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_mimeapps_LEZDK3/appinfo/mime/file/.dirs/data 1246s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_mimeapps_LEZDK3/appinfo/mime/file/.dirs/state 1246s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_mimeapps_LEZDK3/appinfo/mime/file/.dirs/runtime 1246s # creating '/tmp/test_mimeapps_LEZDK3/appinfo/mime/file/.dirs/system-data1/applications' 1246s # creating '/tmp/test_mimeapps_LEZDK3/appinfo/mime/file/.dirs/system-data1/applications/mimeapps.list' 1246s # creating '/tmp/test_mimeapps_LEZDK3/appinfo/mime/file/.dirs/data/applications' 1246s # creating '/tmp/test_mimeapps_LEZDK3/appinfo/mime/file/.dirs/data/applications/myapp.desktop' 1246s # creating '/tmp/test_mimeapps_LEZDK3/appinfo/mime/file/.dirs/data/applications/myapp2.desktop' 1246s # creating '/tmp/test_mimeapps_LEZDK3/appinfo/mime/file/.dirs/data/applications/myapp3.desktop' 1246s # creating '/tmp/test_mimeapps_LEZDK3/appinfo/mime/file/.dirs/data/applications/myapp4.desktop' 1246s # creating '/tmp/test_mimeapps_LEZDK3/appinfo/mime/file/.dirs/data/applications/myapp5.desktop' 1246s # creating '/tmp/test_mimeapps_LEZDK3/appinfo/mime/file/.dirs/data/applications/nosuchapp.desktop' 1246s # removing '/tmp/test_mimeapps_LEZDK3/appinfo/mime/file/.dirs/data/applications/mimeapps.list' 1246s # creating '/tmp/test_mimeapps_LEZDK3/appinfo/mime/file/.dirs/data/applications/mimeinfo.cache' 1246s # GLib-GIO-DEBUG: ensure_dir: Ensuring /tmp/test_mimeapps_LEZDK3/appinfo/mime/file/.dirs/config 1246s # GLib-GIO-DEBUG: desktop_file_dirs_lock: Resetting desktop app info dirs from /tmp/test_mimeapps_LEZDK3/appinfo/mime/default/.dirs/config to /tmp/test_mimeapps_LEZDK3/appinfo/mime/file/.dirs/config 1246s # GLib-GIO-DEBUG: ensure_dir: Ensuring /tmp/test_mimeapps_LEZDK3/appinfo/mime/file/.dirs/config 1246s # GLib-GIO-DEBUG: ensure_dir: Ensuring /tmp/test_mimeapps_LEZDK3/appinfo/mime/file/.dirs/config 1246s # GLib-GIO-DEBUG: ensure_dir: Ensuring /tmp/test_mimeapps_LEZDK3/appinfo/mime/file/.dirs/config 1246s # GLib-GIO-DEBUG: ensure_dir: Ensuring /tmp/test_mimeapps_LEZDK3/appinfo/mime/file/.dirs/config 1246s # GLib-GIO-DEBUG: ensure_dir: Ensuring /tmp/test_mimeapps_LEZDK3/appinfo/mime/file/.dirs/config 1246s ok 4 /appinfo/mime/file 1246s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_mimeapps_LEZDK3/appinfo/mime/scheme-handler/.dirs/home 1246s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_mimeapps_LEZDK3/appinfo/mime/scheme-handler/.dirs/cache 1246s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_mimeapps_LEZDK3/appinfo/mime/scheme-handler/.dirs/system-config1:/tmp/test_mimeapps_LEZDK3/appinfo/mime/scheme-handler/.dirs/system-config2 1246s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_mimeapps_LEZDK3/appinfo/mime/scheme-handler/.dirs/config 1246s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_mimeapps_LEZDK3/appinfo/mime/scheme-handler/.dirs/system-data1:/tmp/test_mimeapps_LEZDK3/appinfo/mime/scheme-handler/.dirs/system-data2 1246s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_mimeapps_LEZDK3/appinfo/mime/scheme-handler/.dirs/data 1246s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_mimeapps_LEZDK3/appinfo/mime/scheme-handler/.dirs/state 1246s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_mimeapps_LEZDK3/appinfo/mime/scheme-handler/.dirs/runtime 1246s # creating '/tmp/test_mimeapps_LEZDK3/appinfo/mime/scheme-handler/.dirs/system-data1/applications' 1246s # creating '/tmp/test_mimeapps_LEZDK3/appinfo/mime/scheme-handler/.dirs/system-data1/applications/mimeapps.list' 1246s # creating '/tmp/test_mimeapps_LEZDK3/appinfo/mime/scheme-handler/.dirs/data/applications' 1246s # creating '/tmp/test_mimeapps_LEZDK3/appinfo/mime/scheme-handler/.dirs/data/applications/myapp.desktop' 1246s # creating '/tmp/test_mimeapps_LEZDK3/appinfo/mime/scheme-handler/.dirs/data/applications/myapp2.desktop' 1246s # creating '/tmp/test_mimeapps_LEZDK3/appinfo/mime/scheme-handler/.dirs/data/applications/myapp3.desktop' 1246s # creating '/tmp/test_mimeapps_LEZDK3/appinfo/mime/scheme-handler/.dirs/data/applications/myapp4.desktop' 1246s # creating '/tmp/test_mimeapps_LEZDK3/appinfo/mime/scheme-handler/.dirs/data/applications/myapp5.desktop' 1246s # creating '/tmp/test_mimeapps_LEZDK3/appinfo/mime/scheme-handler/.dirs/data/applications/nosuchapp.desktop' 1246s # removing '/tmp/test_mimeapps_LEZDK3/appinfo/mime/scheme-handler/.dirs/data/applications/mimeapps.list' 1246s # creating '/tmp/test_mimeapps_LEZDK3/appinfo/mime/scheme-handler/.dirs/data/applications/mimeinfo.cache' 1246s # GLib-GIO-DEBUG: desktop_file_dirs_lock: Resetting desktop app info dirs from /tmp/test_mimeapps_LEZDK3/appinfo/mime/file/.dirs/config to /tmp/test_mimeapps_LEZDK3/appinfo/mime/scheme-handler/.dirs/config 1246s ok 5 /appinfo/mime/scheme-handler 1246s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_mimeapps_LEZDK3/appinfo/mime/default-last-used/.dirs/home 1246s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_mimeapps_LEZDK3/appinfo/mime/default-last-used/.dirs/cache 1246s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_mimeapps_LEZDK3/appinfo/mime/default-last-used/.dirs/system-config1:/tmp/test_mimeapps_LEZDK3/appinfo/mime/default-last-used/.dirs/system-config2 1246s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_mimeapps_LEZDK3/appinfo/mime/default-last-used/.dirs/config 1246s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_mimeapps_LEZDK3/appinfo/mime/default-last-used/.dirs/system-data1:/tmp/test_mimeapps_LEZDK3/appinfo/mime/default-last-used/.dirs/system-data2 1246s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_mimeapps_LEZDK3/appinfo/mime/default-last-used/.dirs/data 1246s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_mimeapps_LEZDK3/appinfo/mime/default-last-used/.dirs/state 1246s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_mimeapps_LEZDK3/appinfo/mime/default-last-used/.dirs/runtime 1246s # creating '/tmp/test_mimeapps_LEZDK3/appinfo/mime/default-last-used/.dirs/system-data1/applications' 1246s # creating '/tmp/test_mimeapps_LEZDK3/appinfo/mime/default-last-used/.dirs/system-data1/applications/mimeapps.list' 1246s # creating '/tmp/test_mimeapps_LEZDK3/appinfo/mime/default-last-used/.dirs/data/applications' 1246s # creating '/tmp/test_mimeapps_LEZDK3/appinfo/mime/default-last-used/.dirs/data/applications/myapp.desktop' 1246s # creating '/tmp/test_mimeapps_LEZDK3/appinfo/mime/default-last-used/.dirs/data/applications/myapp2.desktop' 1246s # creating '/tmp/test_mimeapps_LEZDK3/appinfo/mime/default-last-used/.dirs/data/applications/myapp3.desktop' 1246s # creating '/tmp/test_mimeapps_LEZDK3/appinfo/mime/default-last-used/.dirs/data/applications/myapp4.desktop' 1246s # creating '/tmp/test_mimeapps_LEZDK3/appinfo/mime/default-last-used/.dirs/data/applications/myapp5.desktop' 1246s # creating '/tmp/test_mimeapps_LEZDK3/appinfo/mime/default-last-used/.dirs/data/applications/nosuchapp.desktop' 1246s # removing '/tmp/test_mimeapps_LEZDK3/appinfo/mime/default-last-used/.dirs/data/applications/mimeapps.list' 1246s # creating '/tmp/test_mimeapps_LEZDK3/appinfo/mime/default-last-used/.dirs/data/applications/mimeinfo.cache' 1246s # GLib-GIO-DEBUG: ensure_dir: Ensuring /tmp/test_mimeapps_LEZDK3/appinfo/mime/default-last-used/.dirs/config 1246s # GLib-GIO-DEBUG: desktop_file_dirs_lock: Resetting desktop app info dirs from /tmp/test_mimeapps_LEZDK3/appinfo/mime/scheme-handler/.dirs/config to /tmp/test_mimeapps_LEZDK3/appinfo/mime/default-last-used/.dirs/config 1246s # GLib-GIO-DEBUG: ensure_dir: Ensuring /tmp/test_mimeapps_LEZDK3/appinfo/mime/default-last-used/.dirs/config 1246s # GLib-GIO-DEBUG: ensure_dir: Ensuring /tmp/test_mimeapps_LEZDK3/appinfo/mime/default-last-used/.dirs/config 1246s # GLib-GIO-DEBUG: ensure_dir: Ensuring /tmp/test_mimeapps_LEZDK3/appinfo/mime/default-last-used/.dirs/config 1246s # GLib-GIO-DEBUG: ensure_dir: Ensuring /tmp/test_mimeapps_LEZDK3/appinfo/mime/default-last-used/.dirs/config 1246s # GLib-GIO-DEBUG: ensure_dir: Ensuring /tmp/test_mimeapps_LEZDK3/appinfo/mime/default-last-used/.dirs/config 1246s ok 6 /appinfo/mime/default-last-used 1246s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_mimeapps_LEZDK3/appinfo/mime/ignore-nonexisting/.dirs/home 1246s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_mimeapps_LEZDK3/appinfo/mime/ignore-nonexisting/.dirs/cache 1246s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_mimeapps_LEZDK3/appinfo/mime/ignore-nonexisting/.dirs/system-config1:/tmp/test_mimeapps_LEZDK3/appinfo/mime/ignore-nonexisting/.dirs/system-config2 1246s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_mimeapps_LEZDK3/appinfo/mime/ignore-nonexisting/.dirs/config 1246s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_mimeapps_LEZDK3/appinfo/mime/ignore-nonexisting/.dirs/system-data1:/tmp/test_mimeapps_LEZDK3/appinfo/mime/ignore-nonexisting/.dirs/system-data2 1246s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_mimeapps_LEZDK3/appinfo/mime/ignore-nonexisting/.dirs/data 1246s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_mimeapps_LEZDK3/appinfo/mime/ignore-nonexisting/.dirs/state 1246s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_mimeapps_LEZDK3/appinfo/mime/ignore-nonexisting/.dirs/runtime 1246s # creating '/tmp/test_mimeapps_LEZDK3/appinfo/mime/ignore-nonexisting/.dirs/system-data1/applications' 1246s # creating '/tmp/test_mimeapps_LEZDK3/appinfo/mime/ignore-nonexisting/.dirs/system-data1/applications/mimeapps.list' 1246s # creating '/tmp/test_mimeapps_LEZDK3/appinfo/mime/ignore-nonexisting/.dirs/data/applications' 1246s # creating '/tmp/test_mimeapps_LEZDK3/appinfo/mime/ignore-nonexisting/.dirs/data/applications/myapp.desktop' 1246s # creating '/tmp/test_mimeapps_LEZDK3/appinfo/mime/ignore-nonexisting/.dirs/data/applications/myapp2.desktop' 1246s # creating '/tmp/test_mimeapps_LEZDK3/appinfo/mime/ignore-nonexisting/.dirs/data/applications/myapp3.desktop' 1246s # creating '/tmp/test_mimeapps_LEZDK3/appinfo/mime/ignore-nonexisting/.dirs/data/applications/myapp4.desktop' 1246s # creating '/tmp/test_mimeapps_LEZDK3/appinfo/mime/ignore-nonexisting/.dirs/data/applications/myapp5.desktop' 1246s # creating '/tmp/test_mimeapps_LEZDK3/appinfo/mime/ignore-nonexisting/.dirs/data/applications/nosuchapp.desktop' 1246s # removing '/tmp/test_mimeapps_LEZDK3/appinfo/mime/ignore-nonexisting/.dirs/data/applications/mimeapps.list' 1246s # creating '/tmp/test_mimeapps_LEZDK3/appinfo/mime/ignore-nonexisting/.dirs/data/applications/mimeinfo.cache' 1246s # GLib-GIO-DEBUG: desktop_file_dirs_lock: Resetting desktop app info dirs from /tmp/test_mimeapps_LEZDK3/appinfo/mime/default-last-used/.dirs/config to /tmp/test_mimeapps_LEZDK3/appinfo/mime/ignore-nonexisting/.dirs/config 1246s ok 7 /appinfo/mime/ignore-nonexisting 1246s # End of mime tests 1246s # Start of mime-symlinked tests 1246s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_mimeapps_LEZDK3/appinfo/mime-symlinked/api/.dirs/home 1246s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_mimeapps_LEZDK3/appinfo/mime-symlinked/api/.dirs/cache 1246s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_mimeapps_LEZDK3/appinfo/mime-symlinked/api/.dirs/system-config1:/tmp/test_mimeapps_LEZDK3/appinfo/mime-symlinked/api/.dirs/system-config2 1246s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_mimeapps_LEZDK3/appinfo/mime-symlinked/api/.dirs/config 1246s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_mimeapps_LEZDK3/appinfo/mime-symlinked/api/.dirs/system-data1:/tmp/test_mimeapps_LEZDK3/appinfo/mime-symlinked/api/.dirs/system-data2 1246s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_mimeapps_LEZDK3/appinfo/mime-symlinked/api/.dirs/data 1246s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_mimeapps_LEZDK3/appinfo/mime-symlinked/api/.dirs/state 1246s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_mimeapps_LEZDK3/appinfo/mime-symlinked/api/.dirs/runtime 1246s # creating '/tmp/test_mimeapps_LEZDK3/appinfo/mime-symlinked/api/.dirs/system-data1/applications' 1246s # GLib-GIO-DEBUG: _g_io_module_get_default: Found default implementation local (GLocalVfs) for ‘gio-vfs’ 1246s # creating '/tmp/test_mimeapps_LEZDK3/appinfo/mime-symlinked/api/.dirs/system-data1/applications/mimeapps.list.c' 1246s # creating '/tmp/test_mimeapps_LEZDK3/appinfo/mime-symlinked/api/.dirs/data/applications' 1246s # creating '/tmp/test_mimeapps_LEZDK3/appinfo/mime-symlinked/api/.dirs/data/applications/myapp.desktop' 1246s # creating '/tmp/test_mimeapps_LEZDK3/appinfo/mime-symlinked/api/.dirs/data/applications/myapp2.desktop' 1246s # creating '/tmp/test_mimeapps_LEZDK3/appinfo/mime-symlinked/api/.dirs/data/applications/myapp3.desktop' 1246s # creating '/tmp/test_mimeapps_LEZDK3/appinfo/mime-symlinked/api/.dirs/data/applications/myapp4.desktop' 1246s # creating '/tmp/test_mimeapps_LEZDK3/appinfo/mime-symlinked/api/.dirs/data/applications/myapp5.desktop' 1246s # creating '/tmp/test_mimeapps_LEZDK3/appinfo/mime-symlinked/api/.dirs/data/applications/nosuchapp.desktop' 1246s # removing '/tmp/test_mimeapps_LEZDK3/appinfo/mime-symlinked/api/.dirs/data/applications/mimeapps.list' 1246s # creating '/tmp/test_mimeapps_LEZDK3/appinfo/mime-symlinked/api/.dirs/data/applications/mimeinfo.cache' 1246s # GLib-GIO-DEBUG: ensure_dir: Ensuring /tmp/test_mimeapps_LEZDK3/appinfo/mime-symlinked/api/.dirs/config 1246s # GLib-GIO-DEBUG: desktop_file_dirs_lock: Resetting desktop app info dirs from /tmp/test_mimeapps_LEZDK3/appinfo/mime/ignore-nonexisting/.dirs/config to /tmp/test_mimeapps_LEZDK3/appinfo/mime-symlinked/api/.dirs/config 1246s # GLib-GIO-DEBUG: ensure_dir: Ensuring /tmp/test_mimeapps_LEZDK3/appinfo/mime-symlinked/api/.dirs/config 1246s # GLib-GIO-DEBUG: ensure_dir: Ensuring /tmp/test_mimeapps_LEZDK3/appinfo/mime-symlinked/api/.dirs/config 1246s # GLib-GIO-DEBUG: ensure_dir: Ensuring /tmp/test_mimeapps_LEZDK3/appinfo/mime-symlinked/api/.dirs/config 1246s # GLib-GIO-DEBUG: ensure_dir: Ensuring /tmp/test_mimeapps_LEZDK3/appinfo/mime-symlinked/api/.dirs/config 1246s # GLib-GIO-DEBUG: ensure_dir: Ensuring /tmp/test_mimeapps_LEZDK3/appinfo/mime-symlinked/api/.dirs/config 1246s ok 8 /appinfo/mime-symlinked/api 1246s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_mimeapps_LEZDK3/appinfo/mime-symlinked/default/.dirs/home 1246s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_mimeapps_LEZDK3/appinfo/mime-symlinked/default/.dirs/cache 1246s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_mimeapps_LEZDK3/appinfo/mime-symlinked/default/.dirs/system-config1:/tmp/test_mimeapps_LEZDK3/appinfo/mime-symlinked/default/.dirs/system-config2 1246s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_mimeapps_LEZDK3/appinfo/mime-symlinked/default/.dirs/config 1246s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_mimeapps_LEZDK3/appinfo/mime-symlinked/default/.dirs/system-data1:/tmp/test_mimeapps_LEZDK3/appinfo/mime-symlinked/default/.dirs/system-data2 1246s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_mimeapps_LEZDK3/appinfo/mime-symlinked/default/.dirs/data 1246s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_mimeapps_LEZDK3/appinfo/mime-symlinked/default/.dirs/state 1246s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_mimeapps_LEZDK3/appinfo/mime-symlinked/default/.dirs/runtime 1246s # creating '/tmp/test_mimeapps_LEZDK3/appinfo/mime-symlinked/default/.dirs/system-data1/applications' 1246s # creating '/tmp/test_mimeapps_LEZDK3/appinfo/mime-symlinked/default/.dirs/system-data1/applications/mimeapps.list.c' 1246s # creating '/tmp/test_mimeapps_LEZDK3/appinfo/mime-symlinked/default/.dirs/data/applications' 1246s # creating '/tmp/test_mimeapps_LEZDK3/appinfo/mime-symlinked/default/.dirs/data/applications/myapp.desktop' 1246s # creating '/tmp/test_mimeapps_LEZDK3/appinfo/mime-symlinked/default/.dirs/data/applications/myapp2.desktop' 1246s # creating '/tmp/test_mimeapps_LEZDK3/appinfo/mime-symlinked/default/.dirs/data/applications/myapp3.desktop' 1246s # creating '/tmp/test_mimeapps_LEZDK3/appinfo/mime-symlinked/default/.dirs/data/applications/myapp4.desktop' 1246s # creating '/tmp/test_mimeapps_LEZDK3/appinfo/mime-symlinked/default/.dirs/data/applications/myapp5.desktop' 1246s # creating '/tmp/test_mimeapps_LEZDK3/appinfo/mime-symlinked/default/.dirs/data/applications/nosuchapp.desktop' 1246s # removing '/tmp/test_mimeapps_LEZDK3/appinfo/mime-symlinked/default/.dirs/data/applications/mimeapps.list' 1246s # creating '/tmp/test_mimeapps_LEZDK3/appinfo/mime-symlinked/default/.dirs/data/applications/mimeinfo.cache' 1246s # GLib-GIO-DEBUG: ensure_dir: Ensuring /tmp/test_mimeapps_LEZDK3/appinfo/mime-symlinked/default/.dirs/config 1246s # GLib-GIO-DEBUG: desktop_file_dirs_lock: Resetting desktop app info dirs from /tmp/test_mimeapps_LEZDK3/appinfo/mime-symlinked/api/.dirs/config to /tmp/test_mimeapps_LEZDK3/appinfo/mime-symlinked/default/.dirs/config 1246s # GLib-GIO-DEBUG: ensure_dir: Ensuring /tmp/test_mimeapps_LEZDK3/appinfo/mime-symlinked/default/.dirs/config 1246s # GLib-GIO-DEBUG: ensure_dir: Ensuring /tmp/test_mimeapps_LEZDK3/appinfo/mime-symlinked/default/.dirs/config 1246s # GLib-GIO-DEBUG: ensure_dir: Ensuring /tmp/test_mimeapps_LEZDK3/appinfo/mime-symlinked/default/.dirs/config 1246s ok 9 /appinfo/mime-symlinked/default 1246s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_mimeapps_LEZDK3/appinfo/mime-symlinked/file/.dirs/home 1246s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_mimeapps_LEZDK3/appinfo/mime-symlinked/file/.dirs/cache 1246s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_mimeapps_LEZDK3/appinfo/mime-symlinked/file/.dirs/system-config1:/tmp/test_mimeapps_LEZDK3/appinfo/mime-symlinked/file/.dirs/system-config2 1246s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_mimeapps_LEZDK3/appinfo/mime-symlinked/file/.dirs/config 1246s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_mimeapps_LEZDK3/appinfo/mime-symlinked/file/.dirs/system-data1:/tmp/test_mimeapps_LEZDK3/appinfo/mime-symlinked/file/.dirs/system-data2 1246s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_mimeapps_LEZDK3/appinfo/mime-symlinked/file/.dirs/data 1246s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_mimeapps_LEZDK3/appinfo/mime-symlinked/file/.dirs/state 1246s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_mimeapps_LEZDK3/appinfo/mime-symlinked/file/.dirs/runtime 1246s # creating '/tmp/test_mimeapps_LEZDK3/appinfo/mime-symlinked/file/.dirs/system-data1/applications' 1246s # creating '/tmp/test_mimeapps_LEZDK3/appinfo/mime-symlinked/file/.dirs/system-data1/applications/mimeapps.list.c' 1246s # creating '/tmp/test_mimeapps_LEZDK3/appinfo/mime-symlinked/file/.dirs/data/applications' 1246s # creating '/tmp/test_mimeapps_LEZDK3/appinfo/mime-symlinked/file/.dirs/data/applications/myapp.desktop' 1246s # creating '/tmp/test_mimeapps_LEZDK3/appinfo/mime-symlinked/file/.dirs/data/applications/myapp2.desktop' 1246s # creating '/tmp/test_mimeapps_LEZDK3/appinfo/mime-symlinked/file/.dirs/data/applications/myapp3.desktop' 1246s # creating '/tmp/test_mimeapps_LEZDK3/appinfo/mime-symlinked/file/.dirs/data/applications/myapp4.desktop' 1246s # creating '/tmp/test_mimeapps_LEZDK3/appinfo/mime-symlinked/file/.dirs/data/applications/myapp5.desktop' 1246s # creating '/tmp/test_mimeapps_LEZDK3/appinfo/mime-symlinked/file/.dirs/data/applications/nosuchapp.desktop' 1246s # removing '/tmp/test_mimeapps_LEZDK3/appinfo/mime-symlinked/file/.dirs/data/applications/mimeapps.list' 1246s # creating '/tmp/test_mimeapps_LEZDK3/appinfo/mime-symlinked/file/.dirs/data/applications/mimeinfo.cache' 1246s # GLib-GIO-DEBUG: ensure_dir: Ensuring /tmp/test_mimeapps_LEZDK3/appinfo/mime-symlinked/file/.dirs/config 1246s # GLib-GIO-DEBUG: desktop_file_dirs_lock: Resetting desktop app info dirs from /tmp/test_mimeapps_LEZDK3/appinfo/mime-symlinked/default/.dirs/config to /tmp/test_mimeapps_LEZDK3/appinfo/mime-symlinked/file/.dirs/config 1246s # GLib-GIO-DEBUG: ensure_dir: Ensuring /tmp/test_mimeapps_LEZDK3/appinfo/mime-symlinked/file/.dirs/config 1246s # GLib-GIO-DEBUG: ensure_dir: Ensuring /tmp/test_mimeapps_LEZDK3/appinfo/mime-symlinked/file/.dirs/config 1246s # GLib-GIO-DEBUG: ensure_dir: Ensuring /tmp/test_mimeapps_LEZDK3/appinfo/mime-symlinked/file/.dirs/config 1246s # GLib-GIO-DEBUG: ensure_dir: Ensuring /tmp/test_mimeapps_LEZDK3/appinfo/mime-symlinked/file/.dirs/config 1246s # GLib-GIO-DEBUG: ensure_dir: Ensuring /tmp/test_mimeapps_LEZDK3/appinfo/mime-symlinked/file/.dirs/config 1246s ok 10 /appinfo/mime-symlinked/file 1246s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_mimeapps_LEZDK3/appinfo/mime-symlinked/scheme-handler/.dirs/home 1246s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_mimeapps_LEZDK3/appinfo/mime-symlinked/scheme-handler/.dirs/cache 1246s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_mimeapps_LEZDK3/appinfo/mime-symlinked/scheme-handler/.dirs/system-config1:/tmp/test_mimeapps_LEZDK3/appinfo/mime-symlinked/scheme-handler/.dirs/system-config2 1246s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_mimeapps_LEZDK3/appinfo/mime-symlinked/scheme-handler/.dirs/config 1246s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_mimeapps_LEZDK3/appinfo/mime-symlinked/scheme-handler/.dirs/system-data1:/tmp/test_mimeapps_LEZDK3/appinfo/mime-symlinked/scheme-handler/.dirs/system-data2 1246s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_mimeapps_LEZDK3/appinfo/mime-symlinked/scheme-handler/.dirs/data 1246s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_mimeapps_LEZDK3/appinfo/mime-symlinked/scheme-handler/.dirs/state 1246s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_mimeapps_LEZDK3/appinfo/mime-symlinked/scheme-handler/.dirs/runtime 1246s # creating '/tmp/test_mimeapps_LEZDK3/appinfo/mime-symlinked/scheme-handler/.dirs/system-data1/applications' 1246s # creating '/tmp/test_mimeapps_LEZDK3/appinfo/mime-symlinked/scheme-handler/.dirs/system-data1/applications/mimeapps.list.c' 1246s # creating '/tmp/test_mimeapps_LEZDK3/appinfo/mime-symlinked/scheme-handler/.dirs/data/applications' 1246s # creating '/tmp/test_mimeapps_LEZDK3/appinfo/mime-symlinked/scheme-handler/.dirs/data/applications/myapp.desktop' 1246s # creating '/tmp/test_mimeapps_LEZDK3/appinfo/mime-symlinked/scheme-handler/.dirs/data/applications/myapp2.desktop' 1246s # creating '/tmp/test_mimeapps_LEZDK3/appinfo/mime-symlinked/scheme-handler/.dirs/data/applications/myapp3.desktop' 1246s # creating '/tmp/test_mimeapps_LEZDK3/appinfo/mime-symlinked/scheme-handler/.dirs/data/applications/myapp4.desktop' 1246s # creating '/tmp/test_mimeapps_LEZDK3/appinfo/mime-symlinked/scheme-handler/.dirs/data/applications/myapp5.desktop' 1246s # creating '/tmp/test_mimeapps_LEZDK3/appinfo/mime-symlinked/scheme-handler/.dirs/data/applications/nosuchapp.desktop' 1246s # removing '/tmp/test_mimeapps_LEZDK3/appinfo/mime-symlinked/scheme-handler/.dirs/data/applications/mimeapps.list' 1246s # creating '/tmp/test_mimeapps_LEZDK3/appinfo/mime-symlinked/scheme-handler/.dirs/data/applications/mimeinfo.cache' 1246s # GLib-GIO-DEBUG: desktop_file_dirs_lock: Resetting desktop app info dirs from /tmp/test_mimeapps_LEZDK3/appinfo/mime-symlinked/file/.dirs/config to /tmp/test_mimeapps_LEZDK3/appinfo/mime-symlinked/scheme-handler/.dirs/config 1246s ok 11 /appinfo/mime-symlinked/scheme-handler 1246s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_mimeapps_LEZDK3/appinfo/mime-symlinked/default-last-used/.dirs/home 1246s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_mimeapps_LEZDK3/appinfo/mime-symlinked/default-last-used/.dirs/cache 1246s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_mimeapps_LEZDK3/appinfo/mime-symlinked/default-last-used/.dirs/system-config1:/tmp/test_mimeapps_LEZDK3/appinfo/mime-symlinked/default-last-used/.dirs/system-config2 1246s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_mimeapps_LEZDK3/appinfo/mime-symlinked/default-last-used/.dirs/config 1246s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_mimeapps_LEZDK3/appinfo/mime-symlinked/default-last-used/.dirs/system-data1:/tmp/test_mimeapps_LEZDK3/appinfo/mime-symlinked/default-last-used/.dirs/system-data2 1246s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_mimeapps_LEZDK3/appinfo/mime-symlinked/default-last-used/.dirs/data 1246s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_mimeapps_LEZDK3/appinfo/mime-symlinked/default-last-used/.dirs/state 1246s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_mimeapps_LEZDK3/appinfo/mime-symlinked/default-last-used/.dirs/runtime 1246s # creating '/tmp/test_mimeapps_LEZDK3/appinfo/mime-symlinked/default-last-used/.dirs/system-data1/applications' 1246s # creating '/tmp/test_mimeapps_LEZDK3/appinfo/mime-symlinked/default-last-used/.dirs/system-data1/applications/mimeapps.list.c' 1246s # creating '/tmp/test_mimeapps_LEZDK3/appinfo/mime-symlinked/default-last-used/.dirs/data/applications' 1246s # creating '/tmp/test_mimeapps_LEZDK3/appinfo/mime-symlinked/default-last-used/.dirs/data/applications/myapp.desktop' 1246s # creating '/tmp/test_mimeapps_LEZDK3/appinfo/mime-symlinked/default-last-used/.dirs/data/applications/myapp2.desktop' 1246s # creating '/tmp/test_mimeapps_LEZDK3/appinfo/mime-symlinked/default-last-used/.dirs/data/applications/myapp3.desktop' 1246s # creating '/tmp/test_mimeapps_LEZDK3/appinfo/mime-symlinked/default-last-used/.dirs/data/applications/myapp4.desktop' 1246s # creating '/tmp/test_mimeapps_LEZDK3/appinfo/mime-symlinked/default-last-used/.dirs/data/applications/myapp5.desktop' 1246s # creating '/tmp/test_mimeapps_LEZDK3/appinfo/mime-symlinked/default-last-used/.dirs/data/applications/nosuchapp.desktop' 1246s # removing '/tmp/test_mimeapps_LEZDK3/appinfo/mime-symlinked/default-last-used/.dirs/data/applications/mimeapps.list' 1246s # creating '/tmp/test_mimeapps_LEZDK3/appinfo/mime-symlinked/default-last-used/.dirs/data/applications/mimeinfo.cache' 1246s # GLib-GIO-DEBUG: ensure_dir: Ensuring /tmp/test_mimeapps_LEZDK3/appinfo/mime-symlinked/default-last-used/.dirs/config 1246s # GLib-GIO-DEBUG: desktop_file_dirs_lock: Resetting desktop app info dirs from /tmp/test_mimeapps_LEZDK3/appinfo/mime-symlinked/scheme-handler/.dirs/config to /tmp/test_mimeapps_LEZDK3/appinfo/mime-symlinked/default-last-used/.dirs/config 1246s # GLib-GIO-DEBUG: ensure_dir: Ensuring /tmp/test_mimeapps_LEZDK3/appinfo/mime-symlinked/default-last-used/.dirs/config 1246s # GLib-GIO-DEBUG: ensure_dir: Ensuring /tmp/test_mimeapps_LEZDK3/appinfo/mime-symlinked/default-last-used/.dirs/config 1246s # GLib-GIO-DEBUG: ensure_dir: Ensuring /tmp/test_mimeapps_LEZDK3/appinfo/mime-symlinked/default-last-used/.dirs/config 1246s # GLib-GIO-DEBUG: ensure_dir: Ensuring /tmp/test_mimeapps_LEZDK3/appinfo/mime-symlinked/default-last-used/.dirs/config 1246s # GLib-GIO-DEBUG: ensure_dir: Ensuring /tmp/test_mimeapps_LEZDK3/appinfo/mime-symlinked/default-last-used/.dirs/config 1246s ok 12 /appinfo/mime-symlinked/default-last-used 1246s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_mimeapps_LEZDK3/appinfo/mime-symlinked/ignore-nonexisting/.dirs/home 1246s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_mimeapps_LEZDK3/appinfo/mime-symlinked/ignore-nonexisting/.dirs/cache 1246s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_mimeapps_LEZDK3/appinfo/mime-symlinked/ignore-nonexisting/.dirs/system-config1:/tmp/test_mimeapps_LEZDK3/appinfo/mime-symlinked/ignore-nonexisting/.dirs/system-config2 1246s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_mimeapps_LEZDK3/appinfo/mime-symlinked/ignore-nonexisting/.dirs/config 1246s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_mimeapps_LEZDK3/appinfo/mime-symlinked/ignore-nonexisting/.dirs/system-data1:/tmp/test_mimeapps_LEZDK3/appinfo/mime-symlinked/ignore-nonexisting/.dirs/system-data2 1246s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_mimeapps_LEZDK3/appinfo/mime-symlinked/ignore-nonexisting/.dirs/data 1246s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_mimeapps_LEZDK3/appinfo/mime-symlinked/ignore-nonexisting/.dirs/state 1246s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_mimeapps_LEZDK3/appinfo/mime-symlinked/ignore-nonexisting/.dirs/runtime 1246s # creating '/tmp/test_mimeapps_LEZDK3/appinfo/mime-symlinked/ignore-nonexisting/.dirs/system-data1/applications' 1246s # creating '/tmp/test_mimeapps_LEZDK3/appinfo/mime-symlinked/ignore-nonexisting/.dirs/system-data1/applications/mimeapps.list.c' 1246s # creating '/tmp/test_mimeapps_LEZDK3/appinfo/mime-symlinked/ignore-nonexisting/.dirs/data/applications' 1246s # creating '/tmp/test_mimeapps_LEZDK3/appinfo/mime-symlinked/ignore-nonexisting/.dirs/data/applications/myapp.desktop' 1246s # creating '/tmp/test_mimeapps_LEZDK3/appinfo/mime-symlinked/ignore-nonexisting/.dirs/data/applications/myapp2.desktop' 1246s # creating '/tmp/test_mimeapps_LEZDK3/appinfo/mime-symlinked/ignore-nonexisting/.dirs/data/applications/myapp3.desktop' 1246s # creating '/tmp/test_mimeapps_LEZDK3/appinfo/mime-symlinked/ignore-nonexisting/.dirs/data/applications/myapp4.desktop' 1246s # creating '/tmp/test_mimeapps_LEZDK3/appinfo/mime-symlinked/ignore-nonexisting/.dirs/data/applications/myapp5.desktop' 1246s # creating '/tmp/test_mimeapps_LEZDK3/appinfo/mime-symlinked/ignore-nonexisting/.dirs/data/applications/nosuchapp.desktop' 1246s # removing '/tmp/test_mimeapps_LEZDK3/appinfo/mime-symlinked/ignore-nonexisting/.dirs/data/applications/mimeapps.list' 1246s # creating '/tmp/test_mimeapps_LEZDK3/appinfo/mime-symlinked/ignore-nonexisting/.dirs/data/applications/mimeinfo.cache' 1246s # GLib-GIO-DEBUG: desktop_file_dirs_lock: Resetting desktop app info dirs from /tmp/test_mimeapps_LEZDK3/appinfo/mime-symlinked/default-last-used/.dirs/config to /tmp/test_mimeapps_LEZDK3/appinfo/mime-symlinked/ignore-nonexisting/.dirs/config 1246s ok 13 /appinfo/mime-symlinked/ignore-nonexisting 1246s # End of mime-symlinked tests 1246s # End of appinfo tests 1246s ok - glib/mimeapps.test 1246s # Running test: glib/gdbus-peer.test 1246s TAP version 14 1246s # random seed: R02Sc241948a92a36bfd9eca2068d9a938dc 1246s 1..12 1246s # Start of gdbus tests 1246s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-peer_SSB9J3/gdbus/peer-to-peer/.dirs/home 1246s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-peer_SSB9J3/gdbus/peer-to-peer/.dirs/cache 1246s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-peer_SSB9J3/gdbus/peer-to-peer/.dirs/system-config1:/tmp/test_gdbus-peer_SSB9J3/gdbus/peer-to-peer/.dirs/system-config2 1246s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-peer_SSB9J3/gdbus/peer-to-peer/.dirs/config 1246s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-peer_SSB9J3/gdbus/peer-to-peer/.dirs/system-data1:/tmp/test_gdbus-peer_SSB9J3/gdbus/peer-to-peer/.dirs/system-data2 1246s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-peer_SSB9J3/gdbus/peer-to-peer/.dirs/data 1246s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-peer_SSB9J3/gdbus/peer-to-peer/.dirs/state 1246s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-peer_SSB9J3/gdbus/peer-to-peer/.dirs/runtime 1246s # Testing with unix:dir address 1246s # Testing with unix:tmpdir address 1246s # Testing with unix:path address 1246s ok 1 /gdbus/peer-to-peer 1246s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-peer_SSB9J3/gdbus/delayed-message-processing/.dirs/home 1246s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-peer_SSB9J3/gdbus/delayed-message-processing/.dirs/cache 1246s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-peer_SSB9J3/gdbus/delayed-message-processing/.dirs/system-config1:/tmp/test_gdbus-peer_SSB9J3/gdbus/delayed-message-processing/.dirs/system-config2 1246s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-peer_SSB9J3/gdbus/delayed-message-processing/.dirs/config 1246s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-peer_SSB9J3/gdbus/delayed-message-processing/.dirs/system-data1:/tmp/test_gdbus-peer_SSB9J3/gdbus/delayed-message-processing/.dirs/system-data2 1246s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-peer_SSB9J3/gdbus/delayed-message-processing/.dirs/data 1246s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-peer_SSB9J3/gdbus/delayed-message-processing/.dirs/state 1246s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-peer_SSB9J3/gdbus/delayed-message-processing/.dirs/runtime 1246s # Testing with unix:dir address 1246s ok 2 /gdbus/delayed-message-processing 1246s # slow test /gdbus/delayed-message-processing executed in 0.51 secs 1246s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-peer_SSB9J3/gdbus/nonce-tcp/.dirs/home 1246s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-peer_SSB9J3/gdbus/nonce-tcp/.dirs/cache 1246s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-peer_SSB9J3/gdbus/nonce-tcp/.dirs/system-config1:/tmp/test_gdbus-peer_SSB9J3/gdbus/nonce-tcp/.dirs/system-config2 1246s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-peer_SSB9J3/gdbus/nonce-tcp/.dirs/config 1246s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-peer_SSB9J3/gdbus/nonce-tcp/.dirs/system-data1:/tmp/test_gdbus-peer_SSB9J3/gdbus/nonce-tcp/.dirs/system-data2 1246s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-peer_SSB9J3/gdbus/nonce-tcp/.dirs/data 1246s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-peer_SSB9J3/gdbus/nonce-tcp/.dirs/state 1246s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-peer_SSB9J3/gdbus/nonce-tcp/.dirs/runtime 1246s ok 3 /gdbus/nonce-tcp 1246s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-peer_SSB9J3/gdbus/tcp-anonymous/.dirs/home 1246s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-peer_SSB9J3/gdbus/tcp-anonymous/.dirs/cache 1246s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-peer_SSB9J3/gdbus/tcp-anonymous/.dirs/system-config1:/tmp/test_gdbus-peer_SSB9J3/gdbus/tcp-anonymous/.dirs/system-config2 1246s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-peer_SSB9J3/gdbus/tcp-anonymous/.dirs/config 1246s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-peer_SSB9J3/gdbus/tcp-anonymous/.dirs/system-data1:/tmp/test_gdbus-peer_SSB9J3/gdbus/tcp-anonymous/.dirs/system-data2 1246s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-peer_SSB9J3/gdbus/tcp-anonymous/.dirs/data 1246s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-peer_SSB9J3/gdbus/tcp-anonymous/.dirs/state 1246s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-peer_SSB9J3/gdbus/tcp-anonymous/.dirs/runtime 1246s ok 4 /gdbus/tcp-anonymous 1246s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-peer_SSB9J3/gdbus/credentials/.dirs/home 1246s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-peer_SSB9J3/gdbus/credentials/.dirs/cache 1246s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-peer_SSB9J3/gdbus/credentials/.dirs/system-config1:/tmp/test_gdbus-peer_SSB9J3/gdbus/credentials/.dirs/system-config2 1246s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-peer_SSB9J3/gdbus/credentials/.dirs/config 1246s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-peer_SSB9J3/gdbus/credentials/.dirs/system-data1:/tmp/test_gdbus-peer_SSB9J3/gdbus/credentials/.dirs/system-data2 1246s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-peer_SSB9J3/gdbus/credentials/.dirs/data 1246s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-peer_SSB9J3/gdbus/credentials/.dirs/state 1246s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-peer_SSB9J3/gdbus/credentials/.dirs/runtime 1246s ok 5 /gdbus/credentials 1246s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-peer_SSB9J3/gdbus/codegen-peer-to-peer/.dirs/home 1246s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-peer_SSB9J3/gdbus/codegen-peer-to-peer/.dirs/cache 1246s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-peer_SSB9J3/gdbus/codegen-peer-to-peer/.dirs/system-config1:/tmp/test_gdbus-peer_SSB9J3/gdbus/codegen-peer-to-peer/.dirs/system-config2 1246s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-peer_SSB9J3/gdbus/codegen-peer-to-peer/.dirs/config 1246s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-peer_SSB9J3/gdbus/codegen-peer-to-peer/.dirs/system-data1:/tmp/test_gdbus-peer_SSB9J3/gdbus/codegen-peer-to-peer/.dirs/system-data2 1246s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-peer_SSB9J3/gdbus/codegen-peer-to-peer/.dirs/data 1246s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-peer_SSB9J3/gdbus/codegen-peer-to-peer/.dirs/state 1246s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-peer_SSB9J3/gdbus/codegen-peer-to-peer/.dirs/runtime 1246s # Testing with unix:dir address 1246s # Machine ID: 1ce07b9d326a48af89a831088cf3c1c3 1247s ok 6 /gdbus/codegen-peer-to-peer 1247s # slow test /gdbus/codegen-peer-to-peer executed in 1.14 secs 1247s # Start of peer-to-peer tests 1247s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-peer_SSB9J3/gdbus/peer-to-peer/signals/.dirs/home 1247s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-peer_SSB9J3/gdbus/peer-to-peer/signals/.dirs/cache 1247s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-peer_SSB9J3/gdbus/peer-to-peer/signals/.dirs/system-config1:/tmp/test_gdbus-peer_SSB9J3/gdbus/peer-to-peer/signals/.dirs/system-config2 1247s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-peer_SSB9J3/gdbus/peer-to-peer/signals/.dirs/config 1247s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-peer_SSB9J3/gdbus/peer-to-peer/signals/.dirs/system-data1:/tmp/test_gdbus-peer_SSB9J3/gdbus/peer-to-peer/signals/.dirs/system-data2 1247s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-peer_SSB9J3/gdbus/peer-to-peer/signals/.dirs/data 1247s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-peer_SSB9J3/gdbus/peer-to-peer/signals/.dirs/state 1247s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-peer_SSB9J3/gdbus/peer-to-peer/signals/.dirs/runtime 1247s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/issues/1620 1247s # Testing with unix:dir address 1248s ok 7 /gdbus/peer-to-peer/signals 1248s # Start of invalid tests 1248s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-peer_SSB9J3/gdbus/peer-to-peer/invalid/server/.dirs/home 1248s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-peer_SSB9J3/gdbus/peer-to-peer/invalid/server/.dirs/cache 1248s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-peer_SSB9J3/gdbus/peer-to-peer/invalid/server/.dirs/system-config1:/tmp/test_gdbus-peer_SSB9J3/gdbus/peer-to-peer/invalid/server/.dirs/system-config2 1248s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-peer_SSB9J3/gdbus/peer-to-peer/invalid/server/.dirs/config 1248s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-peer_SSB9J3/gdbus/peer-to-peer/invalid/server/.dirs/system-data1:/tmp/test_gdbus-peer_SSB9J3/gdbus/peer-to-peer/invalid/server/.dirs/system-data2 1248s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-peer_SSB9J3/gdbus/peer-to-peer/invalid/server/.dirs/data 1248s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-peer_SSB9J3/gdbus/peer-to-peer/invalid/server/.dirs/state 1248s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-peer_SSB9J3/gdbus/peer-to-peer/invalid/server/.dirs/runtime 1248s ok 8 /gdbus/peer-to-peer/invalid/server 1248s # Start of conn tests 1248s # Start of stream tests 1248s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-peer_SSB9J3/gdbus/peer-to-peer/invalid/conn/stream/async/.dirs/home 1248s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-peer_SSB9J3/gdbus/peer-to-peer/invalid/conn/stream/async/.dirs/cache 1248s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-peer_SSB9J3/gdbus/peer-to-peer/invalid/conn/stream/async/.dirs/system-config1:/tmp/test_gdbus-peer_SSB9J3/gdbus/peer-to-peer/invalid/conn/stream/async/.dirs/system-config2 1248s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-peer_SSB9J3/gdbus/peer-to-peer/invalid/conn/stream/async/.dirs/config 1248s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-peer_SSB9J3/gdbus/peer-to-peer/invalid/conn/stream/async/.dirs/system-data1:/tmp/test_gdbus-peer_SSB9J3/gdbus/peer-to-peer/invalid/conn/stream/async/.dirs/system-data2 1248s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-peer_SSB9J3/gdbus/peer-to-peer/invalid/conn/stream/async/.dirs/data 1248s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-peer_SSB9J3/gdbus/peer-to-peer/invalid/conn/stream/async/.dirs/state 1248s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-peer_SSB9J3/gdbus/peer-to-peer/invalid/conn/stream/async/.dirs/runtime 1248s ok 9 /gdbus/peer-to-peer/invalid/conn/stream/async 1248s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-peer_SSB9J3/gdbus/peer-to-peer/invalid/conn/stream/sync/.dirs/home 1248s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-peer_SSB9J3/gdbus/peer-to-peer/invalid/conn/stream/sync/.dirs/cache 1248s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-peer_SSB9J3/gdbus/peer-to-peer/invalid/conn/stream/sync/.dirs/system-config1:/tmp/test_gdbus-peer_SSB9J3/gdbus/peer-to-peer/invalid/conn/stream/sync/.dirs/system-config2 1248s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-peer_SSB9J3/gdbus/peer-to-peer/invalid/conn/stream/sync/.dirs/config 1248s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-peer_SSB9J3/gdbus/peer-to-peer/invalid/conn/stream/sync/.dirs/system-data1:/tmp/test_gdbus-peer_SSB9J3/gdbus/peer-to-peer/invalid/conn/stream/sync/.dirs/system-data2 1248s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-peer_SSB9J3/gdbus/peer-to-peer/invalid/conn/stream/sync/.dirs/data 1248s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-peer_SSB9J3/gdbus/peer-to-peer/invalid/conn/stream/sync/.dirs/state 1248s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-peer_SSB9J3/gdbus/peer-to-peer/invalid/conn/stream/sync/.dirs/runtime 1248s ok 10 /gdbus/peer-to-peer/invalid/conn/stream/sync 1248s # End of stream tests 1248s # Start of addr tests 1248s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-peer_SSB9J3/gdbus/peer-to-peer/invalid/conn/addr/async/.dirs/home 1248s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-peer_SSB9J3/gdbus/peer-to-peer/invalid/conn/addr/async/.dirs/cache 1248s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-peer_SSB9J3/gdbus/peer-to-peer/invalid/conn/addr/async/.dirs/system-config1:/tmp/test_gdbus-peer_SSB9J3/gdbus/peer-to-peer/invalid/conn/addr/async/.dirs/system-config2 1248s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-peer_SSB9J3/gdbus/peer-to-peer/invalid/conn/addr/async/.dirs/config 1248s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-peer_SSB9J3/gdbus/peer-to-peer/invalid/conn/addr/async/.dirs/system-data1:/tmp/test_gdbus-peer_SSB9J3/gdbus/peer-to-peer/invalid/conn/addr/async/.dirs/system-data2 1248s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-peer_SSB9J3/gdbus/peer-to-peer/invalid/conn/addr/async/.dirs/data 1248s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-peer_SSB9J3/gdbus/peer-to-peer/invalid/conn/addr/async/.dirs/state 1248s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-peer_SSB9J3/gdbus/peer-to-peer/invalid/conn/addr/async/.dirs/runtime 1248s ok 11 /gdbus/peer-to-peer/invalid/conn/addr/async 1248s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-peer_SSB9J3/gdbus/peer-to-peer/invalid/conn/addr/sync/.dirs/home 1248s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-peer_SSB9J3/gdbus/peer-to-peer/invalid/conn/addr/sync/.dirs/cache 1248s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-peer_SSB9J3/gdbus/peer-to-peer/invalid/conn/addr/sync/.dirs/system-config1:/tmp/test_gdbus-peer_SSB9J3/gdbus/peer-to-peer/invalid/conn/addr/sync/.dirs/system-config2 1248s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-peer_SSB9J3/gdbus/peer-to-peer/invalid/conn/addr/sync/.dirs/config 1248s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-peer_SSB9J3/gdbus/peer-to-peer/invalid/conn/addr/sync/.dirs/system-data1:/tmp/test_gdbus-peer_SSB9J3/gdbus/peer-to-peer/invalid/conn/addr/sync/.dirs/system-data2 1248s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-peer_SSB9J3/gdbus/peer-to-peer/invalid/conn/addr/sync/.dirs/data 1248s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-peer_SSB9J3/gdbus/peer-to-peer/invalid/conn/addr/sync/.dirs/state 1248s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-peer_SSB9J3/gdbus/peer-to-peer/invalid/conn/addr/sync/.dirs/runtime 1248s ok 12 /gdbus/peer-to-peer/invalid/conn/addr/sync 1248s # End of addr tests 1248s # End of conn tests 1248s # End of invalid tests 1248s # End of peer-to-peer tests 1248s # End of gdbus tests 1248s ok - glib/gdbus-peer.test 1248s # Running test: glib/gdbus-subscribe.test 1248s TAP version 14 1248s # random seed: R02Sf40ad779fc83becfc40a73ae4347fec4 1248s 1..24 1248s # Start of gdbus tests 1248s # Start of subscribe tests 1248s # Start of conn tests 1248s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-subscribe_6TO7J3/gdbus/subscribe/conn/simple/.dirs/home 1248s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-subscribe_6TO7J3/gdbus/subscribe/conn/simple/.dirs/cache 1248s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-subscribe_6TO7J3/gdbus/subscribe/conn/simple/.dirs/system-config1:/tmp/test_gdbus-subscribe_6TO7J3/gdbus/subscribe/conn/simple/.dirs/system-config2 1248s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-subscribe_6TO7J3/gdbus/subscribe/conn/simple/.dirs/config 1248s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-subscribe_6TO7J3/gdbus/subscribe/conn/simple/.dirs/system-data1:/tmp/test_gdbus-subscribe_6TO7J3/gdbus/subscribe/conn/simple/.dirs/system-data2 1248s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-subscribe_6TO7J3/gdbus/subscribe/conn/simple/.dirs/data 1248s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-subscribe_6TO7J3/gdbus/subscribe/conn/simple/.dirs/state 1248s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-subscribe_6TO7J3/gdbus/subscribe/conn/simple/.dirs/runtime 1248s # subscriber is :1.0 1248s # service is :1.1 1248s # service 2 is :1.2 1248s # attacker is :1.3 1248s # Waiting for AddMatch to be processed 1248s # /gdbus/subscribe/conn/simple summary: A broadcast is only received after subscribing to it 1248s # Step 0: emitting signal 1248s # Sender: service 1248s # Destination: (broadcast) 1248s # Path: /org/gtk/GDBus/ExampleInterface 1248s # Interface: org.gtk.GDBus.ExampleInterface 1248s # Member: Foo 1248s # Argument 0: (not a string) 1248s # Waiting for signal to reach message bus 1248s # Step 1: adding subscription 1248s # Sender: (any) 1248s # Path: /org/gtk/GDBus/ExampleInterface 1248s # Interface: org.gtk.GDBus.ExampleInterface 1248s # Member: (any) 1248s # String argument 0: (any) 1248s # Flags: 0 1248s # Subscribing via connection 1248s # Waiting for AddMatch to be processed 1248s # Step 2: emitting signal 1248s # Sender: service 1248s # Destination: (broadcast) 1248s # Path: /org/gtk/GDBus/ExampleInterface 1248s # Interface: org.gtk.GDBus.ExampleInterface 1248s # Member: Foo 1248s # Argument 0: (not a string) 1248s # Waiting for signal to reach message bus 1248s # Signal received from service :1.1 1248s # Signal received from service :1.1 via connection 1248s # Path: /org/gtk/GDBus/ExampleInterface 1248s # Interface: org.gtk.GDBus.ExampleInterface 1248s # Member: Foo 1248s # Argument 0: (not a string) 1248s # Sent in step: 2 1248s # Received Finished signal from subscriber :1.0 1248s # Received Finished signal from service :1.1 1248s # Received Finished signal from service 2 :1.2 1248s # Received Finished signal from attacker :1.3 1248s # Signal from step 0 was received 0 times by GDBusConnection, expected 0 1248s # Signal from step 2 was received 1 times by GDBusConnection, expected 1 1248s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1248s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1248s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1248s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1248s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1248s ok 1 /gdbus/subscribe/conn/simple 1248s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-subscribe_6TO7J3/gdbus/subscribe/conn/broadcast_from_anyone/.dirs/home 1248s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-subscribe_6TO7J3/gdbus/subscribe/conn/broadcast_from_anyone/.dirs/cache 1248s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-subscribe_6TO7J3/gdbus/subscribe/conn/broadcast_from_anyone/.dirs/system-config1:/tmp/test_gdbus-subscribe_6TO7J3/gdbus/subscribe/conn/broadcast_from_anyone/.dirs/system-config2 1248s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-subscribe_6TO7J3/gdbus/subscribe/conn/broadcast_from_anyone/.dirs/config 1248s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-subscribe_6TO7J3/gdbus/subscribe/conn/broadcast_from_anyone/.dirs/system-data1:/tmp/test_gdbus-subscribe_6TO7J3/gdbus/subscribe/conn/broadcast_from_anyone/.dirs/system-data2 1248s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-subscribe_6TO7J3/gdbus/subscribe/conn/broadcast_from_anyone/.dirs/data 1248s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-subscribe_6TO7J3/gdbus/subscribe/conn/broadcast_from_anyone/.dirs/state 1248s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-subscribe_6TO7J3/gdbus/subscribe/conn/broadcast_from_anyone/.dirs/runtime 1248s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1248s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1248s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1248s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1248s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1248s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1248s # subscriber is :1.0 1248s # service is :1.1 1248s # service 2 is :1.2 1248s # attacker is :1.3 1248s # Waiting for AddMatch to be processed 1248s # /gdbus/subscribe/conn/broadcast_from_anyone summary: A subscription with NULL sender accepts broadcast and unicast 1248s # Step 0: adding subscription 1248s # Sender: (any) 1248s # Path: /org/gtk/GDBus/ExampleInterface 1248s # Interface: org.gtk.GDBus.ExampleInterface 1248s # Member: (any) 1248s # String argument 0: (any) 1248s # Flags: 0 1248s # Subscribing via connection 1248s # Waiting for AddMatch to be processed 1248s # Step 1: emitting signal 1248s # Sender: service 1248s # Destination: (broadcast) 1248s # Path: /org/gtk/GDBus/ExampleInterface 1248s # Interface: org.gtk.GDBus.ExampleInterface 1248s # Member: Foo 1248s # Argument 0: (not a string) 1248s # Waiting for signal to reach message bus 1248s # Step 2: emitting signal 1248s # Sender: service 2 1248s # Destination: (broadcast) 1248s # Path: /org/gtk/GDBus/ExampleInterface 1248s # Interface: org.gtk.GDBus.ExampleInterface 1248s # Member: Foo 1248s # Argument 0: (not a string) 1248s # Waiting for signal to reach message bus 1248s # Step 3: emitting signal 1248s # Sender: service 1248s # Destination: subscriber :1.0 1248s # Path: /org/gtk/GDBus/ExampleInterface 1248s # Interface: org.gtk.GDBus.ExampleInterface 1248s # Member: Foo 1248s # Argument 0: (not a string) 1248s # Waiting for signal to reach message bus 1248s # Step 4: emitting signal 1248s # Sender: service 2 1248s # Destination: subscriber :1.0 1248s # Path: /org/gtk/GDBus/ExampleInterface 1248s # Interface: org.gtk.GDBus.ExampleInterface 1248s # Member: Foo 1248s # Argument 0: (not a string) 1248s # Waiting for signal to reach message bus 1248s # Signal received from service :1.1 1248s # Signal received from service :1.1 via connection 1248s # Path: /org/gtk/GDBus/ExampleInterface 1248s # Interface: org.gtk.GDBus.ExampleInterface 1248s # Member: Foo 1248s # Argument 0: (not a string) 1248s # Sent in step: 1 1248s # Signal received from service 2 :1.2 1248s # Signal received from service 2 :1.2 via connection 1248s # Path: /org/gtk/GDBus/ExampleInterface 1248s # Interface: org.gtk.GDBus.ExampleInterface 1248s # Member: Foo 1248s # Argument 0: (not a string) 1248s # Sent in step: 2 1248s # Signal received from service :1.1 1248s # Signal received from service :1.1 via connection 1248s # Path: /org/gtk/GDBus/ExampleInterface 1248s # Interface: org.gtk.GDBus.ExampleInterface 1248s # Member: Foo 1248s # Argument 0: (not a string) 1248s # Sent in step: 3 1248s # Signal received from service 2 :1.2 1248s # Signal received from service 2 :1.2 via connection 1248s # Path: /org/gtk/GDBus/ExampleInterface 1248s # Interface: org.gtk.GDBus.ExampleInterface 1248s # Member: Foo 1248s # Argument 0: (not a string) 1248s # Sent in step: 4 1248s # Received Finished signal from subscriber :1.0 1248s # Received Finished signal from service :1.1 1248s # Received Finished signal from service 2 :1.2 1248s # Received Finished signal from attacker :1.3 1248s # Signal from step 1 was received 1 times by GDBusConnection, expected 1 1248s # Signal from step 2 was received 1 times by GDBusConnection, expected 1 1248s # Signal from step 3 was received 1 times by GDBusConnection, expected 1 1248s # Signal from step 4 was received 1 times by GDBusConnection, expected 1 1248s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1248s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1248s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1248s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1248s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1248s ok 2 /gdbus/subscribe/conn/broadcast_from_anyone 1248s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-subscribe_6TO7J3/gdbus/subscribe/conn/match_twice/.dirs/home 1248s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-subscribe_6TO7J3/gdbus/subscribe/conn/match_twice/.dirs/cache 1248s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-subscribe_6TO7J3/gdbus/subscribe/conn/match_twice/.dirs/system-config1:/tmp/test_gdbus-subscribe_6TO7J3/gdbus/subscribe/conn/match_twice/.dirs/system-config2 1248s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-subscribe_6TO7J3/gdbus/subscribe/conn/match_twice/.dirs/config 1248s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-subscribe_6TO7J3/gdbus/subscribe/conn/match_twice/.dirs/system-data1:/tmp/test_gdbus-subscribe_6TO7J3/gdbus/subscribe/conn/match_twice/.dirs/system-data2 1248s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-subscribe_6TO7J3/gdbus/subscribe/conn/match_twice/.dirs/data 1248s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-subscribe_6TO7J3/gdbus/subscribe/conn/match_twice/.dirs/state 1248s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-subscribe_6TO7J3/gdbus/subscribe/conn/match_twice/.dirs/runtime 1248s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1248s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1248s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1248s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1248s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1248s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1248s # subscriber is :1.0 1248s # service is :1.1 1248s # service 2 is :1.2 1248s # attacker is :1.3 1248s # Waiting for AddMatch to be processed 1248s # /gdbus/subscribe/conn/match_twice summary: A message matching more than one subscription is received once per subscription 1248s # Step 0: adding subscription 1248s # Sender: service :1.1 1248s # Path: /org/gtk/GDBus/ExampleInterface 1248s # Interface: org.gtk.GDBus.ExampleInterface 1248s # Member: (any) 1248s # String argument 0: (any) 1248s # Flags: 0 1248s # Subscribing via connection 1248s # Waiting for AddMatch to be processed 1248s # Step 1: adding subscription 1248s # Sender: (any) 1248s # Path: /org/gtk/GDBus/ExampleInterface 1248s # Interface: (any) 1248s # Member: (any) 1248s # String argument 0: (any) 1248s # Flags: 0 1248s # Subscribing via connection 1248s # Waiting for AddMatch to be processed 1248s # Step 2: adding subscription 1248s # Sender: (any) 1248s # Path: (any) 1248s # Interface: org.gtk.GDBus.ExampleInterface 1248s # Member: (any) 1248s # String argument 0: (any) 1248s # Flags: 0 1248s # Subscribing via connection 1248s # Waiting for AddMatch to be processed 1248s # Step 3: adding subscription 1248s # Sender: service :1.1 1248s # Path: /org/gtk/GDBus/ExampleInterface 1248s # Interface: org.gtk.GDBus.ExampleInterface 1248s # Member: (any) 1248s # String argument 0: (any) 1248s # Flags: 0 1248s # Subscribing via connection 1248s # Waiting for AddMatch to be processed 1248s # Step 4: emitting signal 1248s # Sender: service 1248s # Destination: (broadcast) 1248s # Path: /org/gtk/GDBus/ExampleInterface 1248s # Interface: org.gtk.GDBus.ExampleInterface 1248s # Member: Foo 1248s # Argument 0: (not a string) 1248s # Waiting for signal to reach message bus 1248s # Signal received from service :1.1 1248s # Signal received from service :1.1 via connection 1248s # Path: /org/gtk/GDBus/ExampleInterface 1248s # Interface: org.gtk.GDBus.ExampleInterface 1248s # Member: Foo 1248s # Argument 0: (not a string) 1248s # Sent in step: 4 1248s # Signal received from service :1.1 1248s # Signal received from service :1.1 via connection 1248s # Path: /org/gtk/GDBus/ExampleInterface 1248s # Interface: org.gtk.GDBus.ExampleInterface 1248s # Member: Foo 1248s # Argument 0: (not a string) 1248s # Sent in step: 4 1248s # Signal received from service :1.1 1248s # Signal received from service :1.1 via connection 1248s # Path: /org/gtk/GDBus/ExampleInterface 1248s # Interface: org.gtk.GDBus.ExampleInterface 1248s # Member: Foo 1248s # Argument 0: (not a string) 1248s # Sent in step: 4 1248s # Signal received from service :1.1 1248s # Signal received from service :1.1 via connection 1248s # Path: /org/gtk/GDBus/ExampleInterface 1248s # Interface: org.gtk.GDBus.ExampleInterface 1248s # Member: Foo 1248s # Argument 0: (not a string) 1248s # Sent in step: 4 1248s # Received Finished signal from subscriber :1.0 1248s # Received Finished signal from service :1.1 1248s # Received Finished signal from service 2 :1.2 1248s # Received Finished signal from attacker :1.3 1248s # Signal from step 4 was received 4 times by GDBusConnection, expected 4 1248s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1248s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1248s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1248s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1248s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1248s ok 3 /gdbus/subscribe/conn/match_twice 1248s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-subscribe_6TO7J3/gdbus/subscribe/conn/limit_by_unique_name/.dirs/home 1248s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-subscribe_6TO7J3/gdbus/subscribe/conn/limit_by_unique_name/.dirs/cache 1248s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-subscribe_6TO7J3/gdbus/subscribe/conn/limit_by_unique_name/.dirs/system-config1:/tmp/test_gdbus-subscribe_6TO7J3/gdbus/subscribe/conn/limit_by_unique_name/.dirs/system-config2 1248s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-subscribe_6TO7J3/gdbus/subscribe/conn/limit_by_unique_name/.dirs/config 1248s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-subscribe_6TO7J3/gdbus/subscribe/conn/limit_by_unique_name/.dirs/system-data1:/tmp/test_gdbus-subscribe_6TO7J3/gdbus/subscribe/conn/limit_by_unique_name/.dirs/system-data2 1248s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-subscribe_6TO7J3/gdbus/subscribe/conn/limit_by_unique_name/.dirs/data 1248s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-subscribe_6TO7J3/gdbus/subscribe/conn/limit_by_unique_name/.dirs/state 1248s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-subscribe_6TO7J3/gdbus/subscribe/conn/limit_by_unique_name/.dirs/runtime 1248s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1248s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1248s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1248s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1248s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1248s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1248s # subscriber is :1.0 1248s # service is :1.1 1248s # service 2 is :1.2 1248s # attacker is :1.3 1248s # Waiting for AddMatch to be processed 1248s # /gdbus/subscribe/conn/limit_by_unique_name summary: A subscription via a unique name only accepts messages sent by that same unique name 1248s # Step 0: adding subscription 1248s # Sender: service :1.1 1248s # Path: /org/gtk/GDBus/ExampleInterface 1248s # Interface: org.gtk.GDBus.ExampleInterface 1248s # Member: (any) 1248s # String argument 0: (any) 1248s # Flags: 0 1248s # Subscribing via connection 1248s # Waiting for AddMatch to be processed 1248s # Step 1: emitting signal 1248s # Sender: attacker 1248s # Destination: (broadcast) 1248s # Path: /org/gtk/GDBus/ExampleInterface 1248s # Interface: org.gtk.GDBus.ExampleInterface 1248s # Member: Foo 1248s # Argument 0: (not a string) 1248s # Waiting for signal to reach message bus 1248s # Step 2: emitting signal 1248s # Sender: attacker 1248s # Destination: subscriber :1.0 1248s # Path: /org/gtk/GDBus/ExampleInterface 1248s # Interface: org.gtk.GDBus.ExampleInterface 1248s # Member: Foo 1248s # Argument 0: (not a string) 1248s # Waiting for signal to reach message bus 1248s # Step 3: emitting signal 1248s # Sender: service 1248s # Destination: (broadcast) 1248s # Path: /org/gtk/GDBus/ExampleInterface 1248s # Interface: org.gtk.GDBus.ExampleInterface 1248s # Member: Foo 1248s # Argument 0: (not a string) 1248s # Waiting for signal to reach message bus 1248s # Signal received from service :1.1 1248s # Signal received from service :1.1 via connection 1248s # Path: /org/gtk/GDBus/ExampleInterface 1248s # Interface: org.gtk.GDBus.ExampleInterface 1248s # Member: Foo 1248s # Argument 0: (not a string) 1248s # Sent in step: 3 1248s # Received Finished signal from subscriber :1.0 1248s # Received Finished signal from service :1.1 1248s # Received Finished signal from service 2 :1.2 1248s # Received Finished signal from attacker :1.3 1248s # Signal from step 1 was received 0 times by GDBusConnection, expected 0 1248s # Signal from step 2 was received 0 times by GDBusConnection, expected 0 1248s # Signal from step 3 was received 1 times by GDBusConnection, expected 1 1248s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1248s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1248s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1248s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1248s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1248s ok 4 /gdbus/subscribe/conn/limit_by_unique_name 1248s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-subscribe_6TO7J3/gdbus/subscribe/conn/nonexistent_unique_name/.dirs/home 1248s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-subscribe_6TO7J3/gdbus/subscribe/conn/nonexistent_unique_name/.dirs/cache 1248s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-subscribe_6TO7J3/gdbus/subscribe/conn/nonexistent_unique_name/.dirs/system-config1:/tmp/test_gdbus-subscribe_6TO7J3/gdbus/subscribe/conn/nonexistent_unique_name/.dirs/system-config2 1248s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-subscribe_6TO7J3/gdbus/subscribe/conn/nonexistent_unique_name/.dirs/config 1248s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-subscribe_6TO7J3/gdbus/subscribe/conn/nonexistent_unique_name/.dirs/system-data1:/tmp/test_gdbus-subscribe_6TO7J3/gdbus/subscribe/conn/nonexistent_unique_name/.dirs/system-data2 1248s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-subscribe_6TO7J3/gdbus/subscribe/conn/nonexistent_unique_name/.dirs/data 1248s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-subscribe_6TO7J3/gdbus/subscribe/conn/nonexistent_unique_name/.dirs/state 1248s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-subscribe_6TO7J3/gdbus/subscribe/conn/nonexistent_unique_name/.dirs/runtime 1248s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1248s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1248s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1248s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1248s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1248s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1248s # subscriber is :1.0 1248s # service is :1.1 1248s # service 2 is :1.2 1248s # attacker is :1.3 1248s # Waiting for AddMatch to be processed 1248s # /gdbus/subscribe/conn/nonexistent_unique_name summary: A subscription via a unique name that doesn't exist accepts no messages 1248s # Step 0: adding subscription 1248s # Sender: :0.this.had.better.not.exist 1248s # Path: /org/gtk/GDBus/ExampleInterface 1248s # Interface: org.gtk.GDBus.ExampleInterface 1248s # Member: (any) 1248s # String argument 0: (any) 1248s # Flags: 0 1248s # Subscribing via connection 1248s # Waiting for AddMatch to be processed 1248s # Step 1: emitting signal 1248s # Sender: attacker 1248s # Destination: (broadcast) 1248s # Path: /org/gtk/GDBus/ExampleInterface 1248s # Interface: org.gtk.GDBus.ExampleInterface 1248s # Member: Foo 1248s # Argument 0: (not a string) 1248s # Waiting for signal to reach message bus 1248s # Step 2: emitting signal 1248s # Sender: attacker 1248s # Destination: subscriber :1.0 1248s # Path: /org/gtk/GDBus/ExampleInterface 1248s # Interface: org.gtk.GDBus.ExampleInterface 1248s # Member: Foo 1248s # Argument 0: (not a string) 1248s # Waiting for signal to reach message bus 1248s # Received Finished signal from subscriber :1.0 1248s # Received Finished signal from service :1.1 1248s # Received Finished signal from service 2 :1.2 1248s # Received Finished signal from attacker :1.3 1248s # Signal from step 1 was received 0 times by GDBusConnection, expected 0 1248s # Signal from step 2 was received 0 times by GDBusConnection, expected 0 1248s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1248s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1248s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1248s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1248s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1248s ok 5 /gdbus/subscribe/conn/nonexistent_unique_name 1248s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-subscribe_6TO7J3/gdbus/subscribe/conn/limit_by_well_known_name/.dirs/home 1248s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-subscribe_6TO7J3/gdbus/subscribe/conn/limit_by_well_known_name/.dirs/cache 1248s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-subscribe_6TO7J3/gdbus/subscribe/conn/limit_by_well_known_name/.dirs/system-config1:/tmp/test_gdbus-subscribe_6TO7J3/gdbus/subscribe/conn/limit_by_well_known_name/.dirs/system-config2 1248s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-subscribe_6TO7J3/gdbus/subscribe/conn/limit_by_well_known_name/.dirs/config 1248s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-subscribe_6TO7J3/gdbus/subscribe/conn/limit_by_well_known_name/.dirs/system-data1:/tmp/test_gdbus-subscribe_6TO7J3/gdbus/subscribe/conn/limit_by_well_known_name/.dirs/system-data2 1248s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-subscribe_6TO7J3/gdbus/subscribe/conn/limit_by_well_known_name/.dirs/data 1248s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-subscribe_6TO7J3/gdbus/subscribe/conn/limit_by_well_known_name/.dirs/state 1248s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-subscribe_6TO7J3/gdbus/subscribe/conn/limit_by_well_known_name/.dirs/runtime 1248s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1248s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1248s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1248s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1248s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1248s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1248s # subscriber is :1.0 1248s # service is :1.1 1248s # service 2 is :1.2 1248s # attacker is :1.3 1248s # Waiting for AddMatch to be processed 1248s # /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 1248s # Step 0: claiming bus name 1248s # Name: org.gtk.Test.AlreadyOwned 1248s # Owner: service 1248s # Step 1: adding subscription 1248s # Sender: org.gtk.Test.AlreadyOwned 1248s # Path: /org/gtk/GDBus/ExampleInterface 1248s # Interface: org.gtk.GDBus.ExampleInterface 1248s # Member: (any) 1248s # String argument 0: (any) 1248s # Flags: 0 1248s # Subscribing via connection 1248s # Waiting for AddMatch to be processed 1248s # Step 2: adding subscription 1248s # Sender: org.gtk.Test.OwnedLater 1248s # Path: /org/gtk/GDBus/ExampleInterface 1248s # Interface: org.gtk.GDBus.ExampleInterface 1248s # Member: (any) 1248s # String argument 0: (any) 1248s # Flags: 0 1248s # Subscribing via connection 1248s # Waiting for AddMatch to be processed 1248s # Step 3: emitting signal 1248s # Sender: attacker 1248s # Destination: (broadcast) 1248s # Path: /org/gtk/GDBus/ExampleInterface 1248s # Interface: org.gtk.GDBus.ExampleInterface 1248s # Member: Foo 1248s # Argument 0: (not a string) 1248s # Waiting for signal to reach message bus 1248s # Step 4: emitting signal 1248s # Sender: attacker 1248s # Destination: subscriber :1.0 1248s # Path: /org/gtk/GDBus/ExampleInterface 1248s # Interface: org.gtk.GDBus.ExampleInterface 1248s # Member: Foo 1248s # Argument 0: (not a string) 1248s # Waiting for signal to reach message bus 1248s # Step 5: emitting signal 1248s # Sender: service 1248s # Destination: (broadcast) 1248s # Path: /org/gtk/GDBus/ExampleInterface 1248s # Interface: org.gtk.GDBus.ExampleInterface 1248s # Member: Foo 1248s # Argument 0: (not a string) 1248s # Waiting for signal to reach message bus 1248s # Step 6: claiming bus name 1248s # Name: org.gtk.Test.OwnedLater 1248s # Owner: service 1248s # Step 7: emitting signal 1248s # Sender: service 1248s # Destination: (broadcast) 1248s # Path: /org/gtk/GDBus/ExampleInterface 1248s # Interface: org.gtk.GDBus.ExampleInterface 1248s # Member: Foo 1248s # Argument 0: (not a string) 1248s # Waiting for signal to reach message bus 1248s # Signal received from service :1.1 1248s # Signal received from service :1.1 via connection 1248s # Path: /org/gtk/GDBus/ExampleInterface 1248s # Interface: org.gtk.GDBus.ExampleInterface 1248s # Member: Foo 1248s # Argument 0: (not a string) 1248s # Sent in step: 5 1248s # Signal received from service :1.1 1248s # Signal received from service :1.1 via connection 1248s # Path: /org/gtk/GDBus/ExampleInterface 1248s # Interface: org.gtk.GDBus.ExampleInterface 1248s # Member: Foo 1248s # Argument 0: (not a string) 1248s # Sent in step: 7 1248s # Signal received from service :1.1 1248s # Signal received from service :1.1 via connection 1248s # Path: /org/gtk/GDBus/ExampleInterface 1248s # Interface: org.gtk.GDBus.ExampleInterface 1248s # Member: Foo 1248s # Argument 0: (not a string) 1248s # Sent in step: 7 1248s # Received Finished signal from subscriber :1.0 1248s # Received Finished signal from service :1.1 1248s # Received Finished signal from service 2 :1.2 1248s # Received Finished signal from attacker :1.3 1248s # NameOwnerChanged from step 0 was received 0 times by GDBusConnection, expected 0 1248s # Signal from step 3 was received 0 times by GDBusConnection, expected 0 1248s # Signal from step 4 was received 0 times by GDBusConnection, expected 0 1248s # Signal from step 5 was received 1 times by GDBusConnection, expected 1 1248s # NameOwnerChanged from step 6 was received 0 times by GDBusConnection, expected 0 1248s # Signal from step 7 was received 2 times by GDBusConnection, expected 2 1248s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1248s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1248s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1248s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1248s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1248s ok 6 /gdbus/subscribe/conn/limit_by_well_known_name 1248s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-subscribe_6TO7J3/gdbus/subscribe/conn/limit_to_message_bus/.dirs/home 1248s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-subscribe_6TO7J3/gdbus/subscribe/conn/limit_to_message_bus/.dirs/cache 1248s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-subscribe_6TO7J3/gdbus/subscribe/conn/limit_to_message_bus/.dirs/system-config1:/tmp/test_gdbus-subscribe_6TO7J3/gdbus/subscribe/conn/limit_to_message_bus/.dirs/system-config2 1248s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-subscribe_6TO7J3/gdbus/subscribe/conn/limit_to_message_bus/.dirs/config 1248s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-subscribe_6TO7J3/gdbus/subscribe/conn/limit_to_message_bus/.dirs/system-data1:/tmp/test_gdbus-subscribe_6TO7J3/gdbus/subscribe/conn/limit_to_message_bus/.dirs/system-data2 1248s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-subscribe_6TO7J3/gdbus/subscribe/conn/limit_to_message_bus/.dirs/data 1248s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-subscribe_6TO7J3/gdbus/subscribe/conn/limit_to_message_bus/.dirs/state 1248s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-subscribe_6TO7J3/gdbus/subscribe/conn/limit_to_message_bus/.dirs/runtime 1248s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1248s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1248s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1248s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1248s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1248s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1248s # subscriber is :1.0 1248s # service is :1.1 1248s # service 2 is :1.2 1248s # attacker is :1.3 1248s # Waiting for AddMatch to be processed 1248s # /gdbus/subscribe/conn/limit_to_message_bus summary: A subscription to the message bus only accepts messages from the message bus 1248s # Step 0: adding subscription 1248s # Sender: org.freedesktop.DBus 1248s # Path: /org/freedesktop/DBus 1248s # Interface: org.freedesktop.DBus 1248s # Member: (any) 1248s # String argument 0: (any) 1248s # Flags: 0 1248s # Subscribing via connection 1248s # Waiting for AddMatch to be processed 1248s # Step 1: emitting signal 1248s # Sender: attacker 1248s # Destination: (broadcast) 1248s # Path: /org/freedesktop/DBus 1248s # Interface: org.freedesktop.DBus 1248s # Member: NameOwnerChanged 1248s # String argument 0: would I lie to you? 1248s # Waiting for signal to reach message bus 1248s # Step 2: emitting signal 1248s # Sender: attacker 1248s # Destination: subscriber :1.0 1248s # Path: /org/freedesktop/DBus 1248s # Interface: org.freedesktop.DBus 1248s # Member: NameOwnerChanged 1248s # Waiting for signal to reach message bus 1248s # Step 3: claiming bus name 1248s # Name: org.gtk.Test.OwnedLater 1248s # Owner: service 1248s # Signal received from message bus org.freedesktop.DBus 1248s # Signal received from (unused) org.freedesktop.DBus via connection 1248s # Path: /org/freedesktop/DBus 1248s # Interface: org.freedesktop.DBus 1248s # Member: NameOwnerChanged 1248s # Received Finished signal from subscriber :1.0 1248s # Received Finished signal from service :1.1 1248s # Received Finished signal from service 2 :1.2 1248s # Received Finished signal from attacker :1.3 1248s # Signal from step 1 was received 0 times by GDBusConnection, expected 0 1248s # Signal from step 2 was received 0 times by GDBusConnection, expected 0 1248s # NameOwnerChanged from step 3 was received 1 times by GDBusConnection, expected 1 1248s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1248s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1248s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1248s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1248s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1248s ok 7 /gdbus/subscribe/conn/limit_to_message_bus 1248s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-subscribe_6TO7J3/gdbus/subscribe/conn/unsubscribe_immediately/.dirs/home 1248s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-subscribe_6TO7J3/gdbus/subscribe/conn/unsubscribe_immediately/.dirs/cache 1248s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-subscribe_6TO7J3/gdbus/subscribe/conn/unsubscribe_immediately/.dirs/system-config1:/tmp/test_gdbus-subscribe_6TO7J3/gdbus/subscribe/conn/unsubscribe_immediately/.dirs/system-config2 1248s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-subscribe_6TO7J3/gdbus/subscribe/conn/unsubscribe_immediately/.dirs/config 1248s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-subscribe_6TO7J3/gdbus/subscribe/conn/unsubscribe_immediately/.dirs/system-data1:/tmp/test_gdbus-subscribe_6TO7J3/gdbus/subscribe/conn/unsubscribe_immediately/.dirs/system-data2 1248s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-subscribe_6TO7J3/gdbus/subscribe/conn/unsubscribe_immediately/.dirs/data 1248s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-subscribe_6TO7J3/gdbus/subscribe/conn/unsubscribe_immediately/.dirs/state 1248s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-subscribe_6TO7J3/gdbus/subscribe/conn/unsubscribe_immediately/.dirs/runtime 1248s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1248s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1248s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1248s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1248s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1248s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1248s # subscriber is :1.0 1248s # service is :1.1 1248s # service 2 is :1.2 1248s # attacker is :1.3 1248s # Waiting for AddMatch to be processed 1248s # /gdbus/subscribe/conn/unsubscribe_immediately summary: Unsubscribing before GetNameOwner can return doesn't result in a crash 1248s # Step 0: claiming bus name 1248s # Name: org.gtk.Test.AlreadyOwned 1248s # Owner: service 1248s # Step 1: adding subscription 1248s # Sender: org.gtk.Test.AlreadyOwned 1248s # Path: /org/gtk/GDBus/ExampleInterface 1248s # Interface: org.gtk.GDBus.ExampleInterface 1248s # Member: (any) 1248s # String argument 0: (any) 1248s # Flags: 0 1248s # Subscribing via connection 1248s # Immediately unsubscribing 1248s # Waiting for AddMatch to be processed 1248s # Step 2: emitting signal 1248s # Sender: service 1248s # Destination: (broadcast) 1248s # Path: /org/gtk/GDBus/ExampleInterface 1248s # Interface: org.gtk.GDBus.ExampleInterface 1248s # Member: Foo 1248s # Argument 0: (not a string) 1248s # Waiting for signal to reach message bus 1248s # Received Finished signal from subscriber :1.0 1248s # Received Finished signal from service :1.1 1248s # Received Finished signal from service 2 :1.2 1248s # Received Finished signal from attacker :1.3 1248s # NameOwnerChanged from step 0 was received 0 times by GDBusConnection, expected 0 1248s # Signal from step 2 was received 0 times by GDBusConnection, expected 0 1248s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1248s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1248s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1248s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1248s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1248s ok 8 /gdbus/subscribe/conn/unsubscribe_immediately 1248s # End of conn tests 1248s # Start of proxy tests 1248s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-subscribe_6TO7J3/gdbus/subscribe/proxy/simple/.dirs/home 1248s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-subscribe_6TO7J3/gdbus/subscribe/proxy/simple/.dirs/cache 1248s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-subscribe_6TO7J3/gdbus/subscribe/proxy/simple/.dirs/system-config1:/tmp/test_gdbus-subscribe_6TO7J3/gdbus/subscribe/proxy/simple/.dirs/system-config2 1248s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-subscribe_6TO7J3/gdbus/subscribe/proxy/simple/.dirs/config 1248s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-subscribe_6TO7J3/gdbus/subscribe/proxy/simple/.dirs/system-data1:/tmp/test_gdbus-subscribe_6TO7J3/gdbus/subscribe/proxy/simple/.dirs/system-data2 1248s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-subscribe_6TO7J3/gdbus/subscribe/proxy/simple/.dirs/data 1248s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-subscribe_6TO7J3/gdbus/subscribe/proxy/simple/.dirs/state 1248s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-subscribe_6TO7J3/gdbus/subscribe/proxy/simple/.dirs/runtime 1248s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1248s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1248s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1248s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1248s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1248s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1248s # subscriber is :1.0 1248s # service is :1.1 1248s # service 2 is :1.2 1248s # attacker is :1.3 1248s # Waiting for AddMatch to be processed 1248s # /gdbus/subscribe/proxy/simple summary: A broadcast is only received after subscribing to it 1248s # Step 0: emitting signal 1248s # Sender: service 1248s # Destination: (broadcast) 1248s # Path: /org/gtk/GDBus/ExampleInterface 1248s # Interface: org.gtk.GDBus.ExampleInterface 1248s # Member: Foo 1248s # Argument 0: (not a string) 1248s # Waiting for signal to reach message bus 1248s # Step 1: adding subscription 1248s # Sender: (any) 1248s # Path: /org/gtk/GDBus/ExampleInterface 1248s # Interface: org.gtk.GDBus.ExampleInterface 1248s # Member: (any) 1248s # String argument 0: (any) 1248s # Flags: 0 1248s # Cannot subscribe via proxy: no bus name 1248s # Waiting for AddMatch to be processed 1248s # Step 2: emitting signal 1248s # Sender: service 1248s # Destination: (broadcast) 1248s # Path: /org/gtk/GDBus/ExampleInterface 1248s # Interface: org.gtk.GDBus.ExampleInterface 1248s # Member: Foo 1248s # Argument 0: (not a string) 1248s # Waiting for signal to reach message bus 1248s # Received Finished signal from subscriber :1.0 1248s # Received Finished signal from service :1.1 1248s # Received Finished signal from service 2 :1.2 1248s # Received Finished signal from attacker :1.3 1248s # Signal from step 0 was received 0 times by GDBusProxy, expected 0 1248s # Signal from step 2 was received 0 times by GDBusProxy, expected 0 1248s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1248s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1248s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1248s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1248s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1248s ok 9 /gdbus/subscribe/proxy/simple 1248s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-subscribe_6TO7J3/gdbus/subscribe/proxy/broadcast_from_anyone/.dirs/home 1248s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-subscribe_6TO7J3/gdbus/subscribe/proxy/broadcast_from_anyone/.dirs/cache 1248s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-subscribe_6TO7J3/gdbus/subscribe/proxy/broadcast_from_anyone/.dirs/system-config1:/tmp/test_gdbus-subscribe_6TO7J3/gdbus/subscribe/proxy/broadcast_from_anyone/.dirs/system-config2 1248s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-subscribe_6TO7J3/gdbus/subscribe/proxy/broadcast_from_anyone/.dirs/config 1248s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-subscribe_6TO7J3/gdbus/subscribe/proxy/broadcast_from_anyone/.dirs/system-data1:/tmp/test_gdbus-subscribe_6TO7J3/gdbus/subscribe/proxy/broadcast_from_anyone/.dirs/system-data2 1248s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-subscribe_6TO7J3/gdbus/subscribe/proxy/broadcast_from_anyone/.dirs/data 1248s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-subscribe_6TO7J3/gdbus/subscribe/proxy/broadcast_from_anyone/.dirs/state 1248s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-subscribe_6TO7J3/gdbus/subscribe/proxy/broadcast_from_anyone/.dirs/runtime 1248s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1248s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1248s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1248s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1248s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1248s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1248s # subscriber is :1.0 1248s # service is :1.1 1248s # service 2 is :1.2 1248s # attacker is :1.3 1248s # Waiting for AddMatch to be processed 1248s # /gdbus/subscribe/proxy/broadcast_from_anyone summary: A subscription with NULL sender accepts broadcast and unicast 1248s # Step 0: adding subscription 1248s # Sender: (any) 1248s # Path: /org/gtk/GDBus/ExampleInterface 1248s # Interface: org.gtk.GDBus.ExampleInterface 1248s # Member: (any) 1248s # String argument 0: (any) 1248s # Flags: 0 1248s # Cannot subscribe via proxy: no bus name 1248s # Waiting for AddMatch to be processed 1248s # Step 1: emitting signal 1248s # Sender: service 1248s # Destination: (broadcast) 1248s # Path: /org/gtk/GDBus/ExampleInterface 1248s # Interface: org.gtk.GDBus.ExampleInterface 1248s # Member: Foo 1248s # Argument 0: (not a string) 1248s # Waiting for signal to reach message bus 1248s # Step 2: emitting signal 1248s # Sender: service 2 1248s # Destination: (broadcast) 1248s # Path: /org/gtk/GDBus/ExampleInterface 1248s # Interface: org.gtk.GDBus.ExampleInterface 1248s # Member: Foo 1248s # Argument 0: (not a string) 1248s # Waiting for signal to reach message bus 1248s # Step 3: emitting signal 1248s # Sender: service 1248s # Destination: subscriber :1.0 1248s # Path: /org/gtk/GDBus/ExampleInterface 1248s # Interface: org.gtk.GDBus.ExampleInterface 1248s # Member: Foo 1248s # Argument 0: (not a string) 1248s # Waiting for signal to reach message bus 1248s # Step 4: emitting signal 1248s # Sender: service 2 1248s # Destination: subscriber :1.0 1248s # Path: /org/gtk/GDBus/ExampleInterface 1248s # Interface: org.gtk.GDBus.ExampleInterface 1248s # Member: Foo 1248s # Argument 0: (not a string) 1248s # Waiting for signal to reach message bus 1248s # Received Finished signal from subscriber :1.0 1248s # Received Finished signal from service :1.1 1248s # Received Finished signal from service 2 :1.2 1248s # Received Finished signal from attacker :1.3 1248s # Signal from step 1 was received 0 times by GDBusProxy, expected 0 1248s # Signal from step 2 was received 0 times by GDBusProxy, expected 0 1248s # Signal from step 3 was received 0 times by GDBusProxy, expected 0 1248s # Signal from step 4 was received 0 times by GDBusProxy, expected 0 1248s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1248s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1248s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1248s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1248s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1248s ok 10 /gdbus/subscribe/proxy/broadcast_from_anyone 1248s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-subscribe_6TO7J3/gdbus/subscribe/proxy/match_twice/.dirs/home 1248s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-subscribe_6TO7J3/gdbus/subscribe/proxy/match_twice/.dirs/cache 1248s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-subscribe_6TO7J3/gdbus/subscribe/proxy/match_twice/.dirs/system-config1:/tmp/test_gdbus-subscribe_6TO7J3/gdbus/subscribe/proxy/match_twice/.dirs/system-config2 1248s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-subscribe_6TO7J3/gdbus/subscribe/proxy/match_twice/.dirs/config 1248s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-subscribe_6TO7J3/gdbus/subscribe/proxy/match_twice/.dirs/system-data1:/tmp/test_gdbus-subscribe_6TO7J3/gdbus/subscribe/proxy/match_twice/.dirs/system-data2 1248s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-subscribe_6TO7J3/gdbus/subscribe/proxy/match_twice/.dirs/data 1248s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-subscribe_6TO7J3/gdbus/subscribe/proxy/match_twice/.dirs/state 1248s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-subscribe_6TO7J3/gdbus/subscribe/proxy/match_twice/.dirs/runtime 1248s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1248s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1248s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1248s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1248s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1248s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1248s # subscriber is :1.0 1248s # service is :1.1 1248s # service 2 is :1.2 1248s # attacker is :1.3 1248s # Waiting for AddMatch to be processed 1248s # /gdbus/subscribe/proxy/match_twice summary: A message matching more than one subscription is received once per subscription 1248s # Step 0: adding subscription 1248s # Sender: service :1.1 1248s # Path: /org/gtk/GDBus/ExampleInterface 1248s # Interface: org.gtk.GDBus.ExampleInterface 1248s # Member: (any) 1248s # String argument 0: (any) 1248s # Flags: 0 1248s # Subscribing via proxy 1248s # Waiting for AddMatch to be processed 1248s # Step 1: adding subscription 1248s # Sender: (any) 1248s # Path: /org/gtk/GDBus/ExampleInterface 1248s # Interface: (any) 1248s # Member: (any) 1248s # String argument 0: (any) 1248s # Flags: 0 1248s # Cannot subscribe via proxy: no bus name 1248s # Waiting for AddMatch to be processed 1248s # Step 2: adding subscription 1248s # Sender: (any) 1248s # Path: (any) 1248s # Interface: org.gtk.GDBus.ExampleInterface 1248s # Member: (any) 1248s # String argument 0: (any) 1248s # Flags: 0 1248s # Cannot subscribe via proxy: no bus name 1248s # Waiting for AddMatch to be processed 1248s # Step 3: adding subscription 1248s # Sender: service :1.1 1248s # Path: /org/gtk/GDBus/ExampleInterface 1248s # Interface: org.gtk.GDBus.ExampleInterface 1248s # Member: (any) 1248s # String argument 0: (any) 1248s # Flags: 0 1248s # Subscribing via proxy 1248s # Waiting for AddMatch to be processed 1248s # Step 4: emitting signal 1248s # Sender: service 1248s # Destination: (broadcast) 1248s # Path: /org/gtk/GDBus/ExampleInterface 1248s # Interface: org.gtk.GDBus.ExampleInterface 1248s # Member: Foo 1248s # Argument 0: (not a string) 1248s # Waiting for signal to reach message bus 1248s # Signal received from service :1.1 1248s # Signal received from service :1.1 via proxy 1248s # Path: /org/gtk/GDBus/ExampleInterface 1248s # Interface: org.gtk.GDBus.ExampleInterface 1248s # Member: Foo 1248s # Argument 0: (not a string) 1248s # Sent in step: 4 1248s # Signal received from service :1.1 1248s # Signal received from service :1.1 via proxy 1248s # Path: /org/gtk/GDBus/ExampleInterface 1248s # Interface: org.gtk.GDBus.ExampleInterface 1248s # Member: Foo 1248s # Argument 0: (not a string) 1248s # Sent in step: 4 1248s # Received Finished signal from subscriber :1.0 1248s # Received Finished signal from service :1.1 1248s # Received Finished signal from service 2 :1.2 1248s # Received Finished signal from attacker :1.3 1248s # Signal from step 4 was received 2 times by GDBusProxy, expected 2 1248s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1248s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1248s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1248s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1248s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1248s ok 11 /gdbus/subscribe/proxy/match_twice 1248s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-subscribe_6TO7J3/gdbus/subscribe/proxy/limit_by_unique_name/.dirs/home 1248s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-subscribe_6TO7J3/gdbus/subscribe/proxy/limit_by_unique_name/.dirs/cache 1248s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-subscribe_6TO7J3/gdbus/subscribe/proxy/limit_by_unique_name/.dirs/system-config1:/tmp/test_gdbus-subscribe_6TO7J3/gdbus/subscribe/proxy/limit_by_unique_name/.dirs/system-config2 1248s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-subscribe_6TO7J3/gdbus/subscribe/proxy/limit_by_unique_name/.dirs/config 1248s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-subscribe_6TO7J3/gdbus/subscribe/proxy/limit_by_unique_name/.dirs/system-data1:/tmp/test_gdbus-subscribe_6TO7J3/gdbus/subscribe/proxy/limit_by_unique_name/.dirs/system-data2 1248s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-subscribe_6TO7J3/gdbus/subscribe/proxy/limit_by_unique_name/.dirs/data 1248s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-subscribe_6TO7J3/gdbus/subscribe/proxy/limit_by_unique_name/.dirs/state 1248s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-subscribe_6TO7J3/gdbus/subscribe/proxy/limit_by_unique_name/.dirs/runtime 1248s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1248s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1248s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1248s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1248s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1248s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1248s # subscriber is :1.0 1248s # service is :1.1 1248s # service 2 is :1.2 1248s # attacker is :1.3 1248s # Waiting for AddMatch to be processed 1248s # /gdbus/subscribe/proxy/limit_by_unique_name summary: A subscription via a unique name only accepts messages sent by that same unique name 1248s # Step 0: adding subscription 1248s # Sender: service :1.1 1248s # Path: /org/gtk/GDBus/ExampleInterface 1248s # Interface: org.gtk.GDBus.ExampleInterface 1248s # Member: (any) 1248s # String argument 0: (any) 1248s # Flags: 0 1248s # Subscribing via proxy 1248s # Waiting for AddMatch to be processed 1248s # Step 1: emitting signal 1248s # Sender: attacker 1248s # Destination: (broadcast) 1248s # Path: /org/gtk/GDBus/ExampleInterface 1248s # Interface: org.gtk.GDBus.ExampleInterface 1248s # Member: Foo 1248s # Argument 0: (not a string) 1248s # Waiting for signal to reach message bus 1248s # Step 2: emitting signal 1248s # Sender: attacker 1248s # Destination: subscriber :1.0 1248s # Path: /org/gtk/GDBus/ExampleInterface 1248s # Interface: org.gtk.GDBus.ExampleInterface 1248s # Member: Foo 1248s # Argument 0: (not a string) 1248s # Waiting for signal to reach message bus 1248s # Step 3: emitting signal 1248s # Sender: service 1248s # Destination: (broadcast) 1248s # Path: /org/gtk/GDBus/ExampleInterface 1248s # Interface: org.gtk.GDBus.ExampleInterface 1248s # Member: Foo 1248s # Argument 0: (not a string) 1248s # Waiting for signal to reach message bus 1248s # Signal received from service :1.1 1248s # Signal received from service :1.1 via proxy 1248s # Path: /org/gtk/GDBus/ExampleInterface 1248s # Interface: org.gtk.GDBus.ExampleInterface 1248s # Member: Foo 1248s # Argument 0: (not a string) 1248s # Sent in step: 3 1248s # Received Finished signal from subscriber :1.0 1248s # Received Finished signal from service :1.1 1248s # Received Finished signal from service 2 :1.2 1248s # Received Finished signal from attacker :1.3 1248s # Signal from step 1 was received 0 times by GDBusProxy, expected 0 1248s # Signal from step 2 was received 0 times by GDBusProxy, expected 0 1248s # Signal from step 3 was received 1 times by GDBusProxy, expected 1 1248s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1248s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1248s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1248s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1248s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1248s ok 12 /gdbus/subscribe/proxy/limit_by_unique_name 1248s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-subscribe_6TO7J3/gdbus/subscribe/proxy/nonexistent_unique_name/.dirs/home 1248s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-subscribe_6TO7J3/gdbus/subscribe/proxy/nonexistent_unique_name/.dirs/cache 1248s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-subscribe_6TO7J3/gdbus/subscribe/proxy/nonexistent_unique_name/.dirs/system-config1:/tmp/test_gdbus-subscribe_6TO7J3/gdbus/subscribe/proxy/nonexistent_unique_name/.dirs/system-config2 1248s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-subscribe_6TO7J3/gdbus/subscribe/proxy/nonexistent_unique_name/.dirs/config 1248s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-subscribe_6TO7J3/gdbus/subscribe/proxy/nonexistent_unique_name/.dirs/system-data1:/tmp/test_gdbus-subscribe_6TO7J3/gdbus/subscribe/proxy/nonexistent_unique_name/.dirs/system-data2 1248s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-subscribe_6TO7J3/gdbus/subscribe/proxy/nonexistent_unique_name/.dirs/data 1248s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-subscribe_6TO7J3/gdbus/subscribe/proxy/nonexistent_unique_name/.dirs/state 1248s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-subscribe_6TO7J3/gdbus/subscribe/proxy/nonexistent_unique_name/.dirs/runtime 1248s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1248s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1248s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1248s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1248s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1248s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1248s # subscriber is :1.0 1248s # service is :1.1 1248s # service 2 is :1.2 1248s # attacker is :1.3 1248s # Waiting for AddMatch to be processed 1248s # /gdbus/subscribe/proxy/nonexistent_unique_name summary: A subscription via a unique name that doesn't exist accepts no messages 1248s # Step 0: adding subscription 1248s # Sender: :0.this.had.better.not.exist 1248s # Path: /org/gtk/GDBus/ExampleInterface 1248s # Interface: org.gtk.GDBus.ExampleInterface 1248s # Member: (any) 1248s # String argument 0: (any) 1248s # Flags: 0 1248s # Subscribing via proxy 1248s # Waiting for AddMatch to be processed 1248s # Step 1: emitting signal 1248s # Sender: attacker 1248s # Destination: (broadcast) 1248s # Path: /org/gtk/GDBus/ExampleInterface 1248s # Interface: org.gtk.GDBus.ExampleInterface 1248s # Member: Foo 1248s # Argument 0: (not a string) 1248s # Waiting for signal to reach message bus 1248s # Step 2: emitting signal 1248s # Sender: attacker 1248s # Destination: subscriber :1.0 1248s # Path: /org/gtk/GDBus/ExampleInterface 1248s # Interface: org.gtk.GDBus.ExampleInterface 1248s # Member: Foo 1248s # Argument 0: (not a string) 1248s # Waiting for signal to reach message bus 1248s # Received Finished signal from subscriber :1.0 1248s # Received Finished signal from service :1.1 1248s # Received Finished signal from service 2 :1.2 1248s # Received Finished signal from attacker :1.3 1248s # Signal from step 1 was received 0 times by GDBusProxy, expected 0 1248s # Signal from step 2 was received 0 times by GDBusProxy, expected 0 1248s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1248s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1248s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1248s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1248s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1248s ok 13 /gdbus/subscribe/proxy/nonexistent_unique_name 1248s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-subscribe_6TO7J3/gdbus/subscribe/proxy/limit_by_well_known_name/.dirs/home 1248s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-subscribe_6TO7J3/gdbus/subscribe/proxy/limit_by_well_known_name/.dirs/cache 1248s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-subscribe_6TO7J3/gdbus/subscribe/proxy/limit_by_well_known_name/.dirs/system-config1:/tmp/test_gdbus-subscribe_6TO7J3/gdbus/subscribe/proxy/limit_by_well_known_name/.dirs/system-config2 1248s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-subscribe_6TO7J3/gdbus/subscribe/proxy/limit_by_well_known_name/.dirs/config 1248s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-subscribe_6TO7J3/gdbus/subscribe/proxy/limit_by_well_known_name/.dirs/system-data1:/tmp/test_gdbus-subscribe_6TO7J3/gdbus/subscribe/proxy/limit_by_well_known_name/.dirs/system-data2 1248s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-subscribe_6TO7J3/gdbus/subscribe/proxy/limit_by_well_known_name/.dirs/data 1248s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-subscribe_6TO7J3/gdbus/subscribe/proxy/limit_by_well_known_name/.dirs/state 1248s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-subscribe_6TO7J3/gdbus/subscribe/proxy/limit_by_well_known_name/.dirs/runtime 1248s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1248s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1248s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1248s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1248s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1248s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1248s # subscriber is :1.0 1248s # service is :1.1 1248s # service 2 is :1.2 1248s # attacker is :1.3 1248s # Waiting for AddMatch to be processed 1248s # /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 1248s # Step 0: claiming bus name 1248s # Name: org.gtk.Test.AlreadyOwned 1248s # Owner: service 1248s # Step 1: adding subscription 1248s # Sender: org.gtk.Test.AlreadyOwned 1248s # Path: /org/gtk/GDBus/ExampleInterface 1248s # Interface: org.gtk.GDBus.ExampleInterface 1248s # Member: (any) 1248s # String argument 0: (any) 1248s # Flags: 0 1248s # Subscribing via proxy 1248s # Waiting for AddMatch to be processed 1248s # Step 2: adding subscription 1248s # Sender: org.gtk.Test.OwnedLater 1248s # Path: /org/gtk/GDBus/ExampleInterface 1248s # Interface: org.gtk.GDBus.ExampleInterface 1248s # Member: (any) 1248s # String argument 0: (any) 1248s # Flags: 0 1248s # Subscribing via proxy 1248s # Waiting for AddMatch to be processed 1248s # Step 3: emitting signal 1248s # Sender: attacker 1248s # Destination: (broadcast) 1248s # Path: /org/gtk/GDBus/ExampleInterface 1248s # Interface: org.gtk.GDBus.ExampleInterface 1248s # Member: Foo 1248s # Argument 0: (not a string) 1248s # Waiting for signal to reach message bus 1248s # Step 4: emitting signal 1248s # Sender: attacker 1248s # Destination: subscriber :1.0 1248s # Path: /org/gtk/GDBus/ExampleInterface 1248s # Interface: org.gtk.GDBus.ExampleInterface 1248s # Member: Foo 1248s # Argument 0: (not a string) 1248s # Waiting for signal to reach message bus 1248s # Step 5: emitting signal 1248s # Sender: service 1248s # Destination: (broadcast) 1248s # Path: /org/gtk/GDBus/ExampleInterface 1248s # Interface: org.gtk.GDBus.ExampleInterface 1248s # Member: Foo 1248s # Argument 0: (not a string) 1248s # Waiting for signal to reach message bus 1248s # Step 6: claiming bus name 1248s # Name: org.gtk.Test.OwnedLater 1248s # Owner: service 1248s # Step 7: emitting signal 1248s # Sender: service 1248s # Destination: (broadcast) 1248s # Path: /org/gtk/GDBus/ExampleInterface 1248s # Interface: org.gtk.GDBus.ExampleInterface 1248s # Member: Foo 1248s # Argument 0: (not a string) 1248s # Waiting for signal to reach message bus 1248s # Signal received from service :1.1 1248s # Signal received from service :1.1 via proxy 1248s # Path: /org/gtk/GDBus/ExampleInterface 1248s # Interface: org.gtk.GDBus.ExampleInterface 1248s # Member: Foo 1248s # Argument 0: (not a string) 1248s # Sent in step: 5 1248s # Signal received from service :1.1 1248s # Signal received from service :1.1 via proxy 1248s # Path: /org/gtk/GDBus/ExampleInterface 1248s # Interface: org.gtk.GDBus.ExampleInterface 1248s # Member: Foo 1248s # Argument 0: (not a string) 1248s # Sent in step: 7 1248s # Signal received from service :1.1 1248s # Signal received from service :1.1 via proxy 1248s # Path: /org/gtk/GDBus/ExampleInterface 1248s # Interface: org.gtk.GDBus.ExampleInterface 1248s # Member: Foo 1248s # Argument 0: (not a string) 1248s # Sent in step: 7 1248s # Received Finished signal from subscriber :1.0 1248s # Received Finished signal from service :1.1 1248s # Received Finished signal from service 2 :1.2 1248s # Received Finished signal from attacker :1.3 1248s # NameOwnerChanged from step 0 was received 0 times by GDBusProxy, expected 0 1248s # Signal from step 3 was received 0 times by GDBusProxy, expected 0 1248s # Signal from step 4 was received 0 times by GDBusProxy, expected 0 1248s # Signal from step 5 was received 1 times by GDBusProxy, expected 1 1248s # NameOwnerChanged from step 6 was received 0 times by GDBusProxy, expected 0 1248s # Signal from step 7 was received 2 times by GDBusProxy, expected 2 1248s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1248s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1248s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1248s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1248s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1248s ok 14 /gdbus/subscribe/proxy/limit_by_well_known_name 1248s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-subscribe_6TO7J3/gdbus/subscribe/proxy/limit_to_message_bus/.dirs/home 1248s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-subscribe_6TO7J3/gdbus/subscribe/proxy/limit_to_message_bus/.dirs/cache 1248s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-subscribe_6TO7J3/gdbus/subscribe/proxy/limit_to_message_bus/.dirs/system-config1:/tmp/test_gdbus-subscribe_6TO7J3/gdbus/subscribe/proxy/limit_to_message_bus/.dirs/system-config2 1248s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-subscribe_6TO7J3/gdbus/subscribe/proxy/limit_to_message_bus/.dirs/config 1248s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-subscribe_6TO7J3/gdbus/subscribe/proxy/limit_to_message_bus/.dirs/system-data1:/tmp/test_gdbus-subscribe_6TO7J3/gdbus/subscribe/proxy/limit_to_message_bus/.dirs/system-data2 1248s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-subscribe_6TO7J3/gdbus/subscribe/proxy/limit_to_message_bus/.dirs/data 1248s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-subscribe_6TO7J3/gdbus/subscribe/proxy/limit_to_message_bus/.dirs/state 1248s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-subscribe_6TO7J3/gdbus/subscribe/proxy/limit_to_message_bus/.dirs/runtime 1248s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1248s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1248s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1248s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1248s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1248s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1248s # subscriber is :1.0 1248s # service is :1.1 1248s # service 2 is :1.2 1248s # attacker is :1.3 1248s # Waiting for AddMatch to be processed 1248s # /gdbus/subscribe/proxy/limit_to_message_bus summary: A subscription to the message bus only accepts messages from the message bus 1248s # Step 0: adding subscription 1248s # Sender: org.freedesktop.DBus 1248s # Path: /org/freedesktop/DBus 1248s # Interface: org.freedesktop.DBus 1248s # Member: (any) 1248s # String argument 0: (any) 1248s # Flags: 0 1248s # Subscribing via proxy 1248s # Waiting for AddMatch to be processed 1248s # Step 1: emitting signal 1248s # Sender: attacker 1248s # Destination: (broadcast) 1248s # Path: /org/freedesktop/DBus 1248s # Interface: org.freedesktop.DBus 1248s # Member: NameOwnerChanged 1248s # String argument 0: would I lie to you? 1248s # Waiting for signal to reach message bus 1248s # Step 2: emitting signal 1248s # Sender: attacker 1248s # Destination: subscriber :1.0 1248s # Path: /org/freedesktop/DBus 1248s # Interface: org.freedesktop.DBus 1248s # Member: NameOwnerChanged 1248s # Waiting for signal to reach message bus 1248s # Step 3: claiming bus name 1248s # Name: org.gtk.Test.OwnedLater 1248s # Owner: service 1248s # Signal received from message bus org.freedesktop.DBus 1248s # Signal received from (unused) org.freedesktop.DBus via proxy 1248s # Path: /org/freedesktop/DBus 1248s # Interface: org.freedesktop.DBus 1248s # Member: NameOwnerChanged 1248s # Received Finished signal from subscriber :1.0 1248s # Received Finished signal from service :1.1 1248s # Received Finished signal from service 2 :1.2 1248s # Received Finished signal from attacker :1.3 1248s # Signal from step 1 was received 0 times by GDBusProxy, expected 0 1248s # Signal from step 2 was received 0 times by GDBusProxy, expected 0 1248s # NameOwnerChanged from step 3 was received 1 times by GDBusProxy, expected 1 1248s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1248s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1248s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1248s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1248s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1248s ok 15 /gdbus/subscribe/proxy/limit_to_message_bus 1248s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-subscribe_6TO7J3/gdbus/subscribe/proxy/unsubscribe_immediately/.dirs/home 1248s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-subscribe_6TO7J3/gdbus/subscribe/proxy/unsubscribe_immediately/.dirs/cache 1248s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-subscribe_6TO7J3/gdbus/subscribe/proxy/unsubscribe_immediately/.dirs/system-config1:/tmp/test_gdbus-subscribe_6TO7J3/gdbus/subscribe/proxy/unsubscribe_immediately/.dirs/system-config2 1248s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-subscribe_6TO7J3/gdbus/subscribe/proxy/unsubscribe_immediately/.dirs/config 1248s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-subscribe_6TO7J3/gdbus/subscribe/proxy/unsubscribe_immediately/.dirs/system-data1:/tmp/test_gdbus-subscribe_6TO7J3/gdbus/subscribe/proxy/unsubscribe_immediately/.dirs/system-data2 1248s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-subscribe_6TO7J3/gdbus/subscribe/proxy/unsubscribe_immediately/.dirs/data 1248s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-subscribe_6TO7J3/gdbus/subscribe/proxy/unsubscribe_immediately/.dirs/state 1248s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-subscribe_6TO7J3/gdbus/subscribe/proxy/unsubscribe_immediately/.dirs/runtime 1248s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1248s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1248s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1248s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1248s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1248s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1248s # subscriber is :1.0 1248s # service is :1.1 1248s # service 2 is :1.2 1248s # attacker is :1.3 1248s # Waiting for AddMatch to be processed 1248s # /gdbus/subscribe/proxy/unsubscribe_immediately summary: Unsubscribing before GetNameOwner can return doesn't result in a crash 1248s # Step 0: claiming bus name 1248s # Name: org.gtk.Test.AlreadyOwned 1248s # Owner: service 1248s # Step 1: adding subscription 1248s # Sender: org.gtk.Test.AlreadyOwned 1248s # Path: /org/gtk/GDBus/ExampleInterface 1248s # Interface: org.gtk.GDBus.ExampleInterface 1248s # Member: (any) 1248s # String argument 0: (any) 1248s # Flags: 0 1248s # Subscribing via proxy 1248s # Waiting for AddMatch to be processed 1248s # Step 2: emitting signal 1248s # Sender: service 1248s # Destination: (broadcast) 1248s # Path: /org/gtk/GDBus/ExampleInterface 1248s # Interface: org.gtk.GDBus.ExampleInterface 1248s # Member: Foo 1248s # Argument 0: (not a string) 1248s # Waiting for signal to reach message bus 1248s # Signal received from service :1.1 1248s # Signal received from service :1.1 via proxy 1248s # Path: /org/gtk/GDBus/ExampleInterface 1248s # Interface: org.gtk.GDBus.ExampleInterface 1248s # Member: Foo 1248s # Argument 0: (not a string) 1248s # Sent in step: 2 1248s # Received Finished signal from subscriber :1.0 1248s # Received Finished signal from service :1.1 1248s # Received Finished signal from service 2 :1.2 1248s # Received Finished signal from attacker :1.3 1248s # NameOwnerChanged from step 0 was received 0 times by GDBusProxy, expected 0 1248s # Signal from step 2 was received 1 times by GDBusProxy, expected 1 1248s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1248s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1248s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1248s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1248s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1248s ok 16 /gdbus/subscribe/proxy/unsubscribe_immediately 1248s # End of proxy tests 1248s # Start of parallel tests 1248s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-subscribe_6TO7J3/gdbus/subscribe/parallel/simple/.dirs/home 1248s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-subscribe_6TO7J3/gdbus/subscribe/parallel/simple/.dirs/cache 1248s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-subscribe_6TO7J3/gdbus/subscribe/parallel/simple/.dirs/system-config1:/tmp/test_gdbus-subscribe_6TO7J3/gdbus/subscribe/parallel/simple/.dirs/system-config2 1248s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-subscribe_6TO7J3/gdbus/subscribe/parallel/simple/.dirs/config 1248s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-subscribe_6TO7J3/gdbus/subscribe/parallel/simple/.dirs/system-data1:/tmp/test_gdbus-subscribe_6TO7J3/gdbus/subscribe/parallel/simple/.dirs/system-data2 1248s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-subscribe_6TO7J3/gdbus/subscribe/parallel/simple/.dirs/data 1248s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-subscribe_6TO7J3/gdbus/subscribe/parallel/simple/.dirs/state 1248s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-subscribe_6TO7J3/gdbus/subscribe/parallel/simple/.dirs/runtime 1248s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1248s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1248s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1248s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1248s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1248s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1248s # subscriber is :1.0 1248s # service is :1.1 1248s # service 2 is :1.2 1248s # attacker is :1.3 1248s # Waiting for AddMatch to be processed 1248s # /gdbus/subscribe/parallel/simple summary: A broadcast is only received after subscribing to it 1248s # Step 0: emitting signal 1248s # Sender: service 1248s # Destination: (broadcast) 1248s # Path: /org/gtk/GDBus/ExampleInterface 1248s # Interface: org.gtk.GDBus.ExampleInterface 1248s # Member: Foo 1248s # Argument 0: (not a string) 1248s # Waiting for signal to reach message bus 1248s # Step 1: adding subscription 1248s # Sender: (any) 1248s # Path: /org/gtk/GDBus/ExampleInterface 1248s # Interface: org.gtk.GDBus.ExampleInterface 1248s # Member: (any) 1248s # String argument 0: (any) 1248s # Flags: 0 1248s # Subscribing via connection 1248s # Cannot subscribe via proxy: no bus name 1248s # Waiting for AddMatch to be processed 1248s # Step 2: emitting signal 1248s # Sender: service 1248s # Destination: (broadcast) 1248s # Path: /org/gtk/GDBus/ExampleInterface 1248s # Interface: org.gtk.GDBus.ExampleInterface 1248s # Member: Foo 1248s # Argument 0: (not a string) 1248s # Waiting for signal to reach message bus 1248s # Signal received from service :1.1 1248s # Signal received from service :1.1 via connection 1248s # Path: /org/gtk/GDBus/ExampleInterface 1248s # Interface: org.gtk.GDBus.ExampleInterface 1248s # Member: Foo 1248s # Argument 0: (not a string) 1248s # Sent in step: 2 1248s # Received Finished signal from subscriber :1.0 1248s # Received Finished signal from service :1.1 1248s # Received Finished signal from service 2 :1.2 1248s # Received Finished signal from attacker :1.3 1248s # Signal from step 0 was received 0 times by GDBusConnection, expected 0 1248s # Signal from step 0 was received 0 times by GDBusProxy, expected 0 1248s # Signal from step 2 was received 1 times by GDBusConnection, expected 1 1248s # Signal from step 2 was received 0 times by GDBusProxy, expected 0 1248s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1248s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1248s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1248s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1248s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1248s ok 17 /gdbus/subscribe/parallel/simple 1248s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-subscribe_6TO7J3/gdbus/subscribe/parallel/broadcast_from_anyone/.dirs/home 1248s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-subscribe_6TO7J3/gdbus/subscribe/parallel/broadcast_from_anyone/.dirs/cache 1248s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-subscribe_6TO7J3/gdbus/subscribe/parallel/broadcast_from_anyone/.dirs/system-config1:/tmp/test_gdbus-subscribe_6TO7J3/gdbus/subscribe/parallel/broadcast_from_anyone/.dirs/system-config2 1248s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-subscribe_6TO7J3/gdbus/subscribe/parallel/broadcast_from_anyone/.dirs/config 1248s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-subscribe_6TO7J3/gdbus/subscribe/parallel/broadcast_from_anyone/.dirs/system-data1:/tmp/test_gdbus-subscribe_6TO7J3/gdbus/subscribe/parallel/broadcast_from_anyone/.dirs/system-data2 1248s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-subscribe_6TO7J3/gdbus/subscribe/parallel/broadcast_from_anyone/.dirs/data 1248s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-subscribe_6TO7J3/gdbus/subscribe/parallel/broadcast_from_anyone/.dirs/state 1248s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-subscribe_6TO7J3/gdbus/subscribe/parallel/broadcast_from_anyone/.dirs/runtime 1248s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1248s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1248s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1248s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1248s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1248s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1248s # subscriber is :1.0 1248s # service is :1.1 1248s # service 2 is :1.2 1248s # attacker is :1.3 1248s # Waiting for AddMatch to be processed 1248s # /gdbus/subscribe/parallel/broadcast_from_anyone summary: A subscription with NULL sender accepts broadcast and unicast 1248s # Step 0: adding subscription 1248s # Sender: (any) 1248s # Path: /org/gtk/GDBus/ExampleInterface 1248s # Interface: org.gtk.GDBus.ExampleInterface 1248s # Member: (any) 1248s # String argument 0: (any) 1248s # Flags: 0 1248s # Subscribing via connection 1248s # Cannot subscribe via proxy: no bus name 1248s # Waiting for AddMatch to be processed 1248s # Step 1: emitting signal 1248s # Sender: service 1248s # Destination: (broadcast) 1248s # Path: /org/gtk/GDBus/ExampleInterface 1248s # Interface: org.gtk.GDBus.ExampleInterface 1248s # Member: Foo 1248s # Argument 0: (not a string) 1248s # Waiting for signal to reach message bus 1248s # Step 2: emitting signal 1248s # Sender: service 2 1248s # Destination: (broadcast) 1248s # Path: /org/gtk/GDBus/ExampleInterface 1248s # Interface: org.gtk.GDBus.ExampleInterface 1248s # Member: Foo 1248s # Argument 0: (not a string) 1248s # Waiting for signal to reach message bus 1248s # Step 3: emitting signal 1248s # Sender: service 1248s # Destination: subscriber :1.0 1248s # Path: /org/gtk/GDBus/ExampleInterface 1248s # Interface: org.gtk.GDBus.ExampleInterface 1248s # Member: Foo 1248s # Argument 0: (not a string) 1248s # Waiting for signal to reach message bus 1248s # Step 4: emitting signal 1248s # Sender: service 2 1248s # Destination: subscriber :1.0 1248s # Path: /org/gtk/GDBus/ExampleInterface 1248s # Interface: org.gtk.GDBus.ExampleInterface 1248s # Member: Foo 1248s # Argument 0: (not a string) 1248s # Waiting for signal to reach message bus 1248s # Signal received from service :1.1 1248s # Signal received from service :1.1 via connection 1248s # Path: /org/gtk/GDBus/ExampleInterface 1248s # Interface: org.gtk.GDBus.ExampleInterface 1248s # Member: Foo 1248s # Argument 0: (not a string) 1248s # Sent in step: 1 1248s # Signal received from service 2 :1.2 1248s # Signal received from service 2 :1.2 via connection 1248s # Path: /org/gtk/GDBus/ExampleInterface 1248s # Interface: org.gtk.GDBus.ExampleInterface 1248s # Member: Foo 1248s # Argument 0: (not a string) 1248s # Sent in step: 2 1248s # Signal received from service :1.1 1248s # Signal received from service :1.1 via connection 1248s # Path: /org/gtk/GDBus/ExampleInterface 1248s # Interface: org.gtk.GDBus.ExampleInterface 1248s # Member: Foo 1248s # Argument 0: (not a string) 1248s # Sent in step: 3 1248s # Signal received from service 2 :1.2 1248s # Signal received from service 2 :1.2 via connection 1248s # Path: /org/gtk/GDBus/ExampleInterface 1248s # Interface: org.gtk.GDBus.ExampleInterface 1248s # Member: Foo 1248s # Argument 0: (not a string) 1248s # Sent in step: 4 1248s # Received Finished signal from subscriber :1.0 1248s # Received Finished signal from service :1.1 1248s # Received Finished signal from service 2 :1.2 1248s # Received Finished signal from attacker :1.3 1248s # Signal from step 1 was received 1 times by GDBusConnection, expected 1 1248s # Signal from step 1 was received 0 times by GDBusProxy, expected 0 1248s # Signal from step 2 was received 1 times by GDBusConnection, expected 1 1248s # Signal from step 2 was received 0 times by GDBusProxy, expected 0 1248s # Signal from step 3 was received 1 times by GDBusConnection, expected 1 1248s # Signal from step 3 was received 0 times by GDBusProxy, expected 0 1248s # Signal from step 4 was received 1 times by GDBusConnection, expected 1 1248s # Signal from step 4 was received 0 times by GDBusProxy, expected 0 1248s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1248s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1248s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1248s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1248s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1248s ok 18 /gdbus/subscribe/parallel/broadcast_from_anyone 1248s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-subscribe_6TO7J3/gdbus/subscribe/parallel/match_twice/.dirs/home 1248s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-subscribe_6TO7J3/gdbus/subscribe/parallel/match_twice/.dirs/cache 1248s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-subscribe_6TO7J3/gdbus/subscribe/parallel/match_twice/.dirs/system-config1:/tmp/test_gdbus-subscribe_6TO7J3/gdbus/subscribe/parallel/match_twice/.dirs/system-config2 1248s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-subscribe_6TO7J3/gdbus/subscribe/parallel/match_twice/.dirs/config 1248s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-subscribe_6TO7J3/gdbus/subscribe/parallel/match_twice/.dirs/system-data1:/tmp/test_gdbus-subscribe_6TO7J3/gdbus/subscribe/parallel/match_twice/.dirs/system-data2 1248s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-subscribe_6TO7J3/gdbus/subscribe/parallel/match_twice/.dirs/data 1248s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-subscribe_6TO7J3/gdbus/subscribe/parallel/match_twice/.dirs/state 1248s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-subscribe_6TO7J3/gdbus/subscribe/parallel/match_twice/.dirs/runtime 1248s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1248s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1248s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1248s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1248s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1248s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1248s # subscriber is :1.0 1248s # service is :1.1 1248s # service 2 is :1.2 1248s # attacker is :1.3 1248s # Waiting for AddMatch to be processed 1248s # /gdbus/subscribe/parallel/match_twice summary: A message matching more than one subscription is received once per subscription 1248s # Step 0: adding subscription 1248s # Sender: service :1.1 1248s # Path: /org/gtk/GDBus/ExampleInterface 1248s # Interface: org.gtk.GDBus.ExampleInterface 1248s # Member: (any) 1248s # String argument 0: (any) 1248s # Flags: 0 1248s # Subscribing via connection 1248s # Subscribing via proxy 1248s # Waiting for AddMatch to be processed 1248s # Step 1: adding subscription 1248s # Sender: (any) 1248s # Path: /org/gtk/GDBus/ExampleInterface 1248s # Interface: (any) 1248s # Member: (any) 1248s # String argument 0: (any) 1248s # Flags: 0 1248s # Subscribing via connection 1248s # Cannot subscribe via proxy: no bus name 1248s # Waiting for AddMatch to be processed 1248s # Step 2: adding subscription 1248s # Sender: (any) 1248s # Path: (any) 1248s # Interface: org.gtk.GDBus.ExampleInterface 1248s # Member: (any) 1248s # String argument 0: (any) 1248s # Flags: 0 1248s # Subscribing via connection 1248s # Cannot subscribe via proxy: no bus name 1248s # Waiting for AddMatch to be processed 1248s # Step 3: adding subscription 1248s # Sender: service :1.1 1248s # Path: /org/gtk/GDBus/ExampleInterface 1248s # Interface: org.gtk.GDBus.ExampleInterface 1248s # Member: (any) 1248s # String argument 0: (any) 1248s # Flags: 0 1248s # Subscribing via connection 1248s # Subscribing via proxy 1248s # Waiting for AddMatch to be processed 1248s # Step 4: emitting signal 1248s # Sender: service 1248s # Destination: (broadcast) 1248s # Path: /org/gtk/GDBus/ExampleInterface 1248s # Interface: org.gtk.GDBus.ExampleInterface 1248s # Member: Foo 1248s # Argument 0: (not a string) 1248s # Waiting for signal to reach message bus 1248s # Signal received from service :1.1 1248s # Signal received from service :1.1 via connection 1248s # Path: /org/gtk/GDBus/ExampleInterface 1248s # Interface: org.gtk.GDBus.ExampleInterface 1248s # Member: Foo 1248s # Argument 0: (not a string) 1248s # Sent in step: 4 1248s # Signal received from service :1.1 1248s # Signal received from service :1.1 via proxy 1248s # Path: /org/gtk/GDBus/ExampleInterface 1248s # Interface: org.gtk.GDBus.ExampleInterface 1248s # Member: Foo 1248s # Argument 0: (not a string) 1248s # Sent in step: 4 1248s # Signal received from service :1.1 1248s # Signal received from service :1.1 via connection 1248s # Path: /org/gtk/GDBus/ExampleInterface 1248s # Interface: org.gtk.GDBus.ExampleInterface 1248s # Member: Foo 1248s # Argument 0: (not a string) 1248s # Sent in step: 4 1248s # Signal received from service :1.1 1248s # Signal received from service :1.1 via proxy 1248s # Path: /org/gtk/GDBus/ExampleInterface 1248s # Interface: org.gtk.GDBus.ExampleInterface 1248s # Member: Foo 1248s # Argument 0: (not a string) 1248s # Sent in step: 4 1248s # Signal received from service :1.1 1248s # Signal received from service :1.1 via connection 1248s # Path: /org/gtk/GDBus/ExampleInterface 1248s # Interface: org.gtk.GDBus.ExampleInterface 1248s # Member: Foo 1248s # Argument 0: (not a string) 1248s # Sent in step: 4 1248s # Signal received from service :1.1 1248s # Signal received from service :1.1 via connection 1248s # Path: /org/gtk/GDBus/ExampleInterface 1248s # Interface: org.gtk.GDBus.ExampleInterface 1248s # Member: Foo 1248s # Argument 0: (not a string) 1248s # Sent in step: 4 1248s # Received Finished signal from subscriber :1.0 1248s # Received Finished signal from service :1.1 1248s # Received Finished signal from service 2 :1.2 1248s # Received Finished signal from attacker :1.3 1248s # Signal from step 4 was received 4 times by GDBusConnection, expected 4 1248s # Signal from step 4 was received 2 times by GDBusProxy, expected 2 1248s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1248s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1248s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1248s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1248s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1248s ok 19 /gdbus/subscribe/parallel/match_twice 1248s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-subscribe_6TO7J3/gdbus/subscribe/parallel/limit_by_unique_name/.dirs/home 1248s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-subscribe_6TO7J3/gdbus/subscribe/parallel/limit_by_unique_name/.dirs/cache 1248s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-subscribe_6TO7J3/gdbus/subscribe/parallel/limit_by_unique_name/.dirs/system-config1:/tmp/test_gdbus-subscribe_6TO7J3/gdbus/subscribe/parallel/limit_by_unique_name/.dirs/system-config2 1248s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-subscribe_6TO7J3/gdbus/subscribe/parallel/limit_by_unique_name/.dirs/config 1248s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-subscribe_6TO7J3/gdbus/subscribe/parallel/limit_by_unique_name/.dirs/system-data1:/tmp/test_gdbus-subscribe_6TO7J3/gdbus/subscribe/parallel/limit_by_unique_name/.dirs/system-data2 1248s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-subscribe_6TO7J3/gdbus/subscribe/parallel/limit_by_unique_name/.dirs/data 1248s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-subscribe_6TO7J3/gdbus/subscribe/parallel/limit_by_unique_name/.dirs/state 1248s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-subscribe_6TO7J3/gdbus/subscribe/parallel/limit_by_unique_name/.dirs/runtime 1248s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1248s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1248s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1248s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1248s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1248s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1248s # subscriber is :1.0 1248s # service is :1.1 1248s # service 2 is :1.2 1248s # attacker is :1.3 1248s # Waiting for AddMatch to be processed 1248s # /gdbus/subscribe/parallel/limit_by_unique_name summary: A subscription via a unique name only accepts messages sent by that same unique name 1248s # Step 0: adding subscription 1248s # Sender: service :1.1 1248s # Path: /org/gtk/GDBus/ExampleInterface 1248s # Interface: org.gtk.GDBus.ExampleInterface 1248s # Member: (any) 1248s # String argument 0: (any) 1248s # Flags: 0 1248s # Subscribing via connection 1248s # Subscribing via proxy 1248s # Waiting for AddMatch to be processed 1248s # Step 1: emitting signal 1248s # Sender: attacker 1248s # Destination: (broadcast) 1248s # Path: /org/gtk/GDBus/ExampleInterface 1248s # Interface: org.gtk.GDBus.ExampleInterface 1248s # Member: Foo 1248s # Argument 0: (not a string) 1248s # Waiting for signal to reach message bus 1248s # Step 2: emitting signal 1248s # Sender: attacker 1248s # Destination: subscriber :1.0 1248s # Path: /org/gtk/GDBus/ExampleInterface 1248s # Interface: org.gtk.GDBus.ExampleInterface 1248s # Member: Foo 1248s # Argument 0: (not a string) 1248s # Waiting for signal to reach message bus 1248s # Step 3: emitting signal 1248s # Sender: service 1248s # Destination: (broadcast) 1248s # Path: /org/gtk/GDBus/ExampleInterface 1248s # Interface: org.gtk.GDBus.ExampleInterface 1248s # Member: Foo 1248s # Argument 0: (not a string) 1248s # Waiting for signal to reach message bus 1248s # Signal received from service :1.1 1248s # Signal received from service :1.1 via connection 1248s # Path: /org/gtk/GDBus/ExampleInterface 1248s # Interface: org.gtk.GDBus.ExampleInterface 1248s # Member: Foo 1248s # Argument 0: (not a string) 1248s # Sent in step: 3 1248s # Signal received from service :1.1 1248s # Signal received from service :1.1 via proxy 1248s # Path: /org/gtk/GDBus/ExampleInterface 1248s # Interface: org.gtk.GDBus.ExampleInterface 1248s # Member: Foo 1248s # Argument 0: (not a string) 1248s # Sent in step: 3 1248s # Received Finished signal from subscriber :1.0 1248s # Received Finished signal from service :1.1 1248s # Received Finished signal from service 2 :1.2 1248s # Received Finished signal from attacker :1.3 1248s # Signal from step 1 was received 0 times by GDBusConnection, expected 0 1248s # Signal from step 1 was received 0 times by GDBusProxy, expected 0 1248s # Signal from step 2 was received 0 times by GDBusConnection, expected 0 1248s # Signal from step 2 was received 0 times by GDBusProxy, expected 0 1248s # Signal from step 3 was received 1 times by GDBusConnection, expected 1 1248s # Signal from step 3 was received 1 times by GDBusProxy, expected 1 1248s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1248s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1248s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1248s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1248s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1248s ok 20 /gdbus/subscribe/parallel/limit_by_unique_name 1248s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-subscribe_6TO7J3/gdbus/subscribe/parallel/nonexistent_unique_name/.dirs/home 1248s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-subscribe_6TO7J3/gdbus/subscribe/parallel/nonexistent_unique_name/.dirs/cache 1248s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-subscribe_6TO7J3/gdbus/subscribe/parallel/nonexistent_unique_name/.dirs/system-config1:/tmp/test_gdbus-subscribe_6TO7J3/gdbus/subscribe/parallel/nonexistent_unique_name/.dirs/system-config2 1248s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-subscribe_6TO7J3/gdbus/subscribe/parallel/nonexistent_unique_name/.dirs/config 1248s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-subscribe_6TO7J3/gdbus/subscribe/parallel/nonexistent_unique_name/.dirs/system-data1:/tmp/test_gdbus-subscribe_6TO7J3/gdbus/subscribe/parallel/nonexistent_unique_name/.dirs/system-data2 1248s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-subscribe_6TO7J3/gdbus/subscribe/parallel/nonexistent_unique_name/.dirs/data 1248s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-subscribe_6TO7J3/gdbus/subscribe/parallel/nonexistent_unique_name/.dirs/state 1248s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-subscribe_6TO7J3/gdbus/subscribe/parallel/nonexistent_unique_name/.dirs/runtime 1248s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1248s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1248s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1248s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1248s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1248s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1248s # subscriber is :1.0 1248s # service is :1.1 1248s # service 2 is :1.2 1248s # attacker is :1.3 1248s # Waiting for AddMatch to be processed 1248s # /gdbus/subscribe/parallel/nonexistent_unique_name summary: A subscription via a unique name that doesn't exist accepts no messages 1248s # Step 0: adding subscription 1248s # Sender: :0.this.had.better.not.exist 1248s # Path: /org/gtk/GDBus/ExampleInterface 1248s # Interface: org.gtk.GDBus.ExampleInterface 1248s # Member: (any) 1248s # String argument 0: (any) 1248s # Flags: 0 1248s # Subscribing via connection 1248s # Subscribing via proxy 1248s # Waiting for AddMatch to be processed 1248s # Step 1: emitting signal 1248s # Sender: attacker 1248s # Destination: (broadcast) 1248s # Path: /org/gtk/GDBus/ExampleInterface 1248s # Interface: org.gtk.GDBus.ExampleInterface 1248s # Member: Foo 1248s # Argument 0: (not a string) 1248s # Waiting for signal to reach message bus 1248s # Step 2: emitting signal 1248s # Sender: attacker 1248s # Destination: subscriber :1.0 1248s # Path: /org/gtk/GDBus/ExampleInterface 1248s # Interface: org.gtk.GDBus.ExampleInterface 1248s # Member: Foo 1248s # Argument 0: (not a string) 1248s # Waiting for signal to reach message bus 1248s # Received Finished signal from subscriber :1.0 1248s # Received Finished signal from service :1.1 1248s # Received Finished signal from service 2 :1.2 1248s # Received Finished signal from attacker :1.3 1248s # Signal from step 1 was received 0 times by GDBusConnection, expected 0 1248s # Signal from step 1 was received 0 times by GDBusProxy, expected 0 1248s # Signal from step 2 was received 0 times by GDBusConnection, expected 0 1248s # Signal from step 2 was received 0 times by GDBusProxy, expected 0 1248s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1248s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1248s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1248s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1248s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1248s ok 21 /gdbus/subscribe/parallel/nonexistent_unique_name 1248s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-subscribe_6TO7J3/gdbus/subscribe/parallel/limit_by_well_known_name/.dirs/home 1248s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-subscribe_6TO7J3/gdbus/subscribe/parallel/limit_by_well_known_name/.dirs/cache 1248s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-subscribe_6TO7J3/gdbus/subscribe/parallel/limit_by_well_known_name/.dirs/system-config1:/tmp/test_gdbus-subscribe_6TO7J3/gdbus/subscribe/parallel/limit_by_well_known_name/.dirs/system-config2 1248s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-subscribe_6TO7J3/gdbus/subscribe/parallel/limit_by_well_known_name/.dirs/config 1248s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-subscribe_6TO7J3/gdbus/subscribe/parallel/limit_by_well_known_name/.dirs/system-data1:/tmp/test_gdbus-subscribe_6TO7J3/gdbus/subscribe/parallel/limit_by_well_known_name/.dirs/system-data2 1248s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-subscribe_6TO7J3/gdbus/subscribe/parallel/limit_by_well_known_name/.dirs/data 1248s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-subscribe_6TO7J3/gdbus/subscribe/parallel/limit_by_well_known_name/.dirs/state 1248s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-subscribe_6TO7J3/gdbus/subscribe/parallel/limit_by_well_known_name/.dirs/runtime 1248s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1248s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1248s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1248s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1248s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1248s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1248s # subscriber is :1.0 1248s # service is :1.1 1248s # service 2 is :1.2 1248s # attacker is :1.3 1248s # Waiting for AddMatch to be processed 1248s # /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 1248s # Step 0: claiming bus name 1248s # Name: org.gtk.Test.AlreadyOwned 1248s # Owner: service 1248s # Step 1: adding subscription 1248s # Sender: org.gtk.Test.AlreadyOwned 1248s # Path: /org/gtk/GDBus/ExampleInterface 1248s # Interface: org.gtk.GDBus.ExampleInterface 1248s # Member: (any) 1248s # String argument 0: (any) 1248s # Flags: 0 1248s # Subscribing via connection 1248s # Subscribing via proxy 1248s # Waiting for AddMatch to be processed 1248s # Step 2: adding subscription 1248s # Sender: org.gtk.Test.OwnedLater 1248s # Path: /org/gtk/GDBus/ExampleInterface 1248s # Interface: org.gtk.GDBus.ExampleInterface 1248s # Member: (any) 1248s # String argument 0: (any) 1248s # Flags: 0 1248s # Subscribing via connection 1248s # Subscribing via proxy 1248s # Waiting for AddMatch to be processed 1248s # Step 3: emitting signal 1248s # Sender: attacker 1248s # Destination: (broadcast) 1248s # Path: /org/gtk/GDBus/ExampleInterface 1248s # Interface: org.gtk.GDBus.ExampleInterface 1248s # Member: Foo 1248s # Argument 0: (not a string) 1248s # Waiting for signal to reach message bus 1248s # Step 4: emitting signal 1248s # Sender: attacker 1248s # Destination: subscriber :1.0 1248s # Path: /org/gtk/GDBus/ExampleInterface 1248s # Interface: org.gtk.GDBus.ExampleInterface 1248s # Member: Foo 1248s # Argument 0: (not a string) 1248s # Waiting for signal to reach message bus 1248s # Step 5: emitting signal 1248s # Sender: service 1248s # Destination: (broadcast) 1248s # Path: /org/gtk/GDBus/ExampleInterface 1248s # Interface: org.gtk.GDBus.ExampleInterface 1248s # Member: Foo 1248s # Argument 0: (not a string) 1248s # Waiting for signal to reach message bus 1248s # Step 6: claiming bus name 1248s # Name: org.gtk.Test.OwnedLater 1248s # Owner: service 1248s # Step 7: emitting signal 1248s # Sender: service 1248s # Destination: (broadcast) 1248s # Path: /org/gtk/GDBus/ExampleInterface 1248s # Interface: org.gtk.GDBus.ExampleInterface 1248s # Member: Foo 1248s # Argument 0: (not a string) 1248s # Waiting for signal to reach message bus 1248s # Signal received from service :1.1 1248s # Signal received from service :1.1 via connection 1248s # Path: /org/gtk/GDBus/ExampleInterface 1248s # Interface: org.gtk.GDBus.ExampleInterface 1248s # Member: Foo 1248s # Argument 0: (not a string) 1248s # Sent in step: 5 1248s # Signal received from service :1.1 1248s # Signal received from service :1.1 via proxy 1248s # Path: /org/gtk/GDBus/ExampleInterface 1248s # Interface: org.gtk.GDBus.ExampleInterface 1248s # Member: Foo 1248s # Argument 0: (not a string) 1248s # Sent in step: 5 1248s # Signal received from service :1.1 1248s # Signal received from service :1.1 via connection 1248s # Path: /org/gtk/GDBus/ExampleInterface 1248s # Interface: org.gtk.GDBus.ExampleInterface 1248s # Member: Foo 1248s # Argument 0: (not a string) 1248s # Sent in step: 7 1248s # Signal received from service :1.1 1248s # Signal received from service :1.1 via proxy 1248s # Path: /org/gtk/GDBus/ExampleInterface 1248s # Interface: org.gtk.GDBus.ExampleInterface 1248s # Member: Foo 1248s # Argument 0: (not a string) 1248s # Sent in step: 7 1248s # Signal received from service :1.1 1248s # Signal received from service :1.1 via connection 1248s # Path: /org/gtk/GDBus/ExampleInterface 1248s # Interface: org.gtk.GDBus.ExampleInterface 1248s # Member: Foo 1248s # Argument 0: (not a string) 1248s # Sent in step: 7 1248s # Signal received from service :1.1 1248s # Signal received from service :1.1 via proxy 1248s # Path: /org/gtk/GDBus/ExampleInterface 1248s # Interface: org.gtk.GDBus.ExampleInterface 1248s # Member: Foo 1248s # Argument 0: (not a string) 1248s # Sent in step: 7 1248s # Received Finished signal from subscriber :1.0 1248s # Received Finished signal from service :1.1 1248s # Received Finished signal from service 2 :1.2 1248s # Received Finished signal from attacker :1.3 1248s # NameOwnerChanged from step 0 was received 0 times by GDBusConnection, expected 0 1248s # NameOwnerChanged from step 0 was received 0 times by GDBusProxy, expected 0 1248s # Signal from step 3 was received 0 times by GDBusConnection, expected 0 1248s # Signal from step 3 was received 0 times by GDBusProxy, expected 0 1248s # Signal from step 4 was received 0 times by GDBusConnection, expected 0 1248s # Signal from step 4 was received 0 times by GDBusProxy, expected 0 1248s # Signal from step 5 was received 1 times by GDBusConnection, expected 1 1248s # Signal from step 5 was received 1 times by GDBusProxy, expected 1 1248s # NameOwnerChanged from step 6 was received 0 times by GDBusConnection, expected 0 1248s # NameOwnerChanged from step 6 was received 0 times by GDBusProxy, expected 0 1248s # Signal from step 7 was received 2 times by GDBusConnection, expected 2 1248s # Signal from step 7 was received 2 times by GDBusProxy, expected 2 1248s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1248s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1248s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1248s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1248s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1248s ok 22 /gdbus/subscribe/parallel/limit_by_well_known_name 1248s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-subscribe_6TO7J3/gdbus/subscribe/parallel/limit_to_message_bus/.dirs/home 1248s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-subscribe_6TO7J3/gdbus/subscribe/parallel/limit_to_message_bus/.dirs/cache 1248s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-subscribe_6TO7J3/gdbus/subscribe/parallel/limit_to_message_bus/.dirs/system-config1:/tmp/test_gdbus-subscribe_6TO7J3/gdbus/subscribe/parallel/limit_to_message_bus/.dirs/system-config2 1248s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-subscribe_6TO7J3/gdbus/subscribe/parallel/limit_to_message_bus/.dirs/config 1248s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-subscribe_6TO7J3/gdbus/subscribe/parallel/limit_to_message_bus/.dirs/system-data1:/tmp/test_gdbus-subscribe_6TO7J3/gdbus/subscribe/parallel/limit_to_message_bus/.dirs/system-data2 1248s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-subscribe_6TO7J3/gdbus/subscribe/parallel/limit_to_message_bus/.dirs/data 1248s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-subscribe_6TO7J3/gdbus/subscribe/parallel/limit_to_message_bus/.dirs/state 1248s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-subscribe_6TO7J3/gdbus/subscribe/parallel/limit_to_message_bus/.dirs/runtime 1248s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1248s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1248s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1248s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1248s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1248s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1248s # subscriber is :1.0 1248s # service is :1.1 1248s # service 2 is :1.2 1248s # attacker is :1.3 1248s # Waiting for AddMatch to be processed 1248s # /gdbus/subscribe/parallel/limit_to_message_bus summary: A subscription to the message bus only accepts messages from the message bus 1248s # Step 0: adding subscription 1248s # Sender: org.freedesktop.DBus 1248s # Path: /org/freedesktop/DBus 1248s # Interface: org.freedesktop.DBus 1248s # Member: (any) 1248s # String argument 0: (any) 1248s # Flags: 0 1248s # Subscribing via connection 1248s # Subscribing via proxy 1248s # Waiting for AddMatch to be processed 1248s # Step 1: emitting signal 1248s # Sender: attacker 1248s # Destination: (broadcast) 1248s # Path: /org/freedesktop/DBus 1248s # Interface: org.freedesktop.DBus 1248s # Member: NameOwnerChanged 1248s # String argument 0: would I lie to you? 1248s # Waiting for signal to reach message bus 1248s # Step 2: emitting signal 1248s # Sender: attacker 1248s # Destination: subscriber :1.0 1248s # Path: /org/freedesktop/DBus 1248s # Interface: org.freedesktop.DBus 1248s # Member: NameOwnerChanged 1248s # Waiting for signal to reach message bus 1248s # Step 3: claiming bus name 1248s # Name: org.gtk.Test.OwnedLater 1248s # Owner: service 1248s # Signal received from message bus org.freedesktop.DBus 1248s # Signal received from (unused) org.freedesktop.DBus via connection 1248s # Path: /org/freedesktop/DBus 1248s # Interface: org.freedesktop.DBus 1248s # Member: NameOwnerChanged 1248s # Signal received from message bus org.freedesktop.DBus 1248s # Signal received from (unused) org.freedesktop.DBus via proxy 1248s # Path: /org/freedesktop/DBus 1248s # Interface: org.freedesktop.DBus 1248s # Member: NameOwnerChanged 1248s # Received Finished signal from subscriber :1.0 1248s # Received Finished signal from service :1.1 1248s # Received Finished signal from service 2 :1.2 1248s # Received Finished signal from attacker :1.3 1248s # Signal from step 1 was received 0 times by GDBusConnection, expected 0 1248s # Signal from step 1 was received 0 times by GDBusProxy, expected 0 1248s # Signal from step 2 was received 0 times by GDBusConnection, expected 0 1248s # Signal from step 2 was received 0 times by GDBusProxy, expected 0 1248s # NameOwnerChanged from step 3 was received 1 times by GDBusConnection, expected 1 1248s # NameOwnerChanged from step 3 was received 1 times by GDBusProxy, expected 1 1248s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1248s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1248s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1248s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1248s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1248s ok 23 /gdbus/subscribe/parallel/limit_to_message_bus 1248s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-subscribe_6TO7J3/gdbus/subscribe/parallel/unsubscribe_immediately/.dirs/home 1248s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-subscribe_6TO7J3/gdbus/subscribe/parallel/unsubscribe_immediately/.dirs/cache 1248s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-subscribe_6TO7J3/gdbus/subscribe/parallel/unsubscribe_immediately/.dirs/system-config1:/tmp/test_gdbus-subscribe_6TO7J3/gdbus/subscribe/parallel/unsubscribe_immediately/.dirs/system-config2 1248s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-subscribe_6TO7J3/gdbus/subscribe/parallel/unsubscribe_immediately/.dirs/config 1248s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-subscribe_6TO7J3/gdbus/subscribe/parallel/unsubscribe_immediately/.dirs/system-data1:/tmp/test_gdbus-subscribe_6TO7J3/gdbus/subscribe/parallel/unsubscribe_immediately/.dirs/system-data2 1248s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-subscribe_6TO7J3/gdbus/subscribe/parallel/unsubscribe_immediately/.dirs/data 1248s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-subscribe_6TO7J3/gdbus/subscribe/parallel/unsubscribe_immediately/.dirs/state 1248s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-subscribe_6TO7J3/gdbus/subscribe/parallel/unsubscribe_immediately/.dirs/runtime 1248s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1248s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1248s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1248s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1248s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1248s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1248s # subscriber is :1.0 1248s # service is :1.1 1248s # service 2 is :1.2 1248s # attacker is :1.3 1248s # Waiting for AddMatch to be processed 1248s # /gdbus/subscribe/parallel/unsubscribe_immediately summary: Unsubscribing before GetNameOwner can return doesn't result in a crash 1248s # Step 0: claiming bus name 1248s # Name: org.gtk.Test.AlreadyOwned 1248s # Owner: service 1248s # Step 1: adding subscription 1248s # Sender: org.gtk.Test.AlreadyOwned 1248s # Path: /org/gtk/GDBus/ExampleInterface 1248s # Interface: org.gtk.GDBus.ExampleInterface 1248s # Member: (any) 1248s # String argument 0: (any) 1248s # Flags: 0 1248s # Subscribing via connection 1248s # Immediately unsubscribing 1248s # Subscribing via proxy 1248s # Waiting for AddMatch to be processed 1248s # Step 2: emitting signal 1248s # Sender: service 1248s # Destination: (broadcast) 1248s # Path: /org/gtk/GDBus/ExampleInterface 1248s # Interface: org.gtk.GDBus.ExampleInterface 1248s # Member: Foo 1248s # Argument 0: (not a string) 1248s # Waiting for signal to reach message bus 1248s # Signal received from service :1.1 1248s # Signal received from service :1.1 via proxy 1248s # Path: /org/gtk/GDBus/ExampleInterface 1248s # Interface: org.gtk.GDBus.ExampleInterface 1248s # Member: Foo 1248s # Argument 0: (not a string) 1248s # Sent in step: 2 1248s # Received Finished signal from subscriber :1.0 1248s # Received Finished signal from service :1.1 1248s # Received Finished signal from service 2 :1.2 1248s # Received Finished signal from attacker :1.3 1248s # NameOwnerChanged from step 0 was received 0 times by GDBusConnection, expected 0 1248s # NameOwnerChanged from step 0 was received 0 times by GDBusProxy, expected 0 1248s # Signal from step 2 was received 0 times by GDBusConnection, expected 0 1248s # Signal from step 2 was received 1 times by GDBusProxy, expected 1 1248s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1248s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1248s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1248s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1248s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1248s ok 24 /gdbus/subscribe/parallel/unsubscribe_immediately 1248s # End of parallel tests 1248s # End of subscribe tests 1248s # End of gdbus tests 1248s ok - glib/gdbus-subscribe.test 1248s # Running test: glib/sleepy-stream.test 1248s TAP version 14 1248s # random seed: R02Sbc4fae93eeabc72fce178c6998bfb5c8 1248s 1..2 1248s # Start of filter-stream tests 1248s ok 1 /filter-stream/input 1248s ok 2 /filter-stream/async 1248s # End of filter-stream tests 1248s ok - glib/sleepy-stream.test 1248s # Running test: glib/macros-c-89.test 1248s TAP version 14 1248s # random seed: R02S375bb63e677e161a9bb8c904545dc817 1248s 1..4 1248s # Start of C tests 1248s ok 1 /C/standard-89 1248s # End of C tests 1248s # Start of alignof tests 1248s ok 2 /alignof/fallback 1248s # End of alignof tests 1248s # Start of assert tests 1248s ok 3 /assert/static 1248s # End of assert tests 1248s # Start of struct tests 1248s ok 4 /struct/sizeof_member 1248s # End of struct tests 1248s ok - glib/macros-c-89.test 1248s # Running test: glib/gdbus-proxy-well-known-name.test 1248s TAP version 14 1248s # random seed: R02Sf9db63706f5c08f18d7b8233788c5b2d 1248s 1..1 1248s # Start of gdbus tests 1248s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-proxy-well-known-name_BL4LK3/gdbus/proxy-well-known-name/.dirs/home 1248s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-proxy-well-known-name_BL4LK3/gdbus/proxy-well-known-name/.dirs/cache 1248s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-proxy-well-known-name_BL4LK3/gdbus/proxy-well-known-name/.dirs/system-config1:/tmp/test_gdbus-proxy-well-known-name_BL4LK3/gdbus/proxy-well-known-name/.dirs/system-config2 1248s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-proxy-well-known-name_BL4LK3/gdbus/proxy-well-known-name/.dirs/config 1248s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-proxy-well-known-name_BL4LK3/gdbus/proxy-well-known-name/.dirs/system-data1:/tmp/test_gdbus-proxy-well-known-name_BL4LK3/gdbus/proxy-well-known-name/.dirs/system-data2 1248s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-proxy-well-known-name_BL4LK3/gdbus/proxy-well-known-name/.dirs/data 1248s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-proxy-well-known-name_BL4LK3/gdbus/proxy-well-known-name/.dirs/state 1248s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-proxy-well-known-name_BL4LK3/gdbus/proxy-well-known-name/.dirs/runtime 1248s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1248s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1248s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1248s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1248s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1248s ok 1 /gdbus/proxy-well-known-name 1248s # End of gdbus tests 1248s ok - glib/gdbus-proxy-well-known-name.test 1248s # Running test: glib/object.test 1248s TAP version 14 1248s # random seed: R02Sa6164067b5de24885c5d0fb32e8db969 1248s 1..2 1248s # Start of object tests 1248s # Start of constructor tests 1248s ok 1 /object/constructor/singleton 1248s ok 2 /object/constructor/infanticide # SKIP skip tests that rely on debug-only warnings 1248s # End of constructor tests 1248s # End of object tests 1248s ok - glib/object.test 1248s # Running test: glib/references.test 1248s TAP version 14 1248s # random seed: R02S525ca928c4145fced6118ce0f2262475 1248s 1..4 1248s # Start of gobject tests 1248s ok 1 /gobject/references 1248s ok 2 /gobject/references-many 1248s ok 3 /gobject/references_two 1248s ok 4 /gobject/references_run_dispose 1248s # End of gobject tests 1248s ok - glib/references.test 1248s # Running test: glib/tls-bindings.test 1248s TAP version 14 1248s # random seed: R02Sfc443695874a90641d21b1aa5ba0d55f 1248s 1..2 1248s # Start of tls-connection tests 1248s # GLib-GIO-DEBUG: _g_io_module_get_default: Found default implementation test (GTestTlsBackend) for ‘gio-tls-backend’ 1248s ok 1 /tls-connection/get-tls-channel-binding 1248s ok 2 /tls-connection/get-dtls-channel-binding 1248s # End of tls-connection tests 1248s ok - glib/tls-bindings.test 1248s # Running test: glib/cxx-20.test 1248s TAP version 14 1248s # random seed: R02S1b2b9aa5f606417411258e21d25c4032 1248s 1..2 1248s # Start of gtask tests 1248s # 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. 1248s ok 1 /gtask/name 1248s # Start of name tests 1248s # 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. 1248s ok 2 /gtask/name/macro-wrapper 1248s # End of name tests 1248s # End of gtask tests 1248s ok - glib/cxx-20.test 1248s # Running test: glib/proxy-test.test 1248s TAP version 14 1248s # random seed: R02S73d371465110685c267c0ce112025d0c 1248s 1..11 1248s # Start of proxy tests 1248s # GLib-GIO-DEBUG: _g_io_module_get_default: Found default implementation test (GTestProxyResolver) for ‘gio-proxy-resolver’ 1248s ok 1 /proxy/direct_sync 1248s # GLib-GIO-DEBUG: g_socket_client_connect_to_uri_async 1248s # GLib-GIO-DEBUG: g_socket_client_connect_async: starting new g_socket_client_connect_async() with GTask 0x70ba8d8 and GSocketClientAsyncConnectData 0x70b9288 1248s # GLib-GIO-DEBUG: GSocketClient: Starting new address enumeration 1248s # GLib-GIO-DEBUG: GSocketClient: Address enumeration succeeded 1248s # GLib-GIO-DEBUG: g_socket_client_enumerator_callback: starting connection attempt 0x70bb640 for GSocketClientAsyncConnectData 0x70b9288 1248s # GLib-GIO-DEBUG: GSocketClient: Starting TCP connection attempt 1248s # GLib-GIO-DEBUG: GSocketClient: TCP connection successful 1248s # GLib-GIO-DEBUG: GSocketClient: Starting application layer connection 1248s # GLib-GIO-DEBUG: GSocketClient: Connection successful! 1248s ok 2 /proxy/direct_async 1248s ok 3 /proxy/single_sync 1248s # GLib-GIO-DEBUG: g_socket_client_connect_to_uri_async 1248s # GLib-GIO-DEBUG: g_socket_client_connect_async: starting new g_socket_client_connect_async() with GTask 0x70bb1b8 and GSocketClientAsyncConnectData 0x70b9288 1248s # GLib-GIO-DEBUG: GSocketClient: Starting new address enumeration 1248s # GLib-GIO-DEBUG: GSocketClient: Address enumeration succeeded 1248s # GLib-GIO-DEBUG: g_socket_client_enumerator_callback: starting connection attempt 0x70bc308 for GSocketClientAsyncConnectData 0x70b9288 1248s # GLib-GIO-DEBUG: GSocketClient: Starting TCP connection attempt 1248s # GLib-GIO-DEBUG: GSocketClient: TCP connection successful 1248s # GLib-GIO-DEBUG: GSocketClient: Starting application layer connection 1248s # GLib-GIO-DEBUG: GSocketClient: Starting proxy connection 1248s # GLib-GIO-DEBUG: GSocketClient: Connection successful! 1248s ok 4 /proxy/single_async 1248s ok 5 /proxy/multiple_sync 1248s # GLib-GIO-DEBUG: g_socket_client_connect_to_uri_async 1248s # GLib-GIO-DEBUG: g_socket_client_connect_async: starting new g_socket_client_connect_async() with GTask 0x70bb3c8 and GSocketClientAsyncConnectData 0x70bb4d8 1248s # GLib-GIO-DEBUG: GSocketClient: Starting new address enumeration 1248s # GLib-GIO-DEBUG: GSocketClient: Address enumeration succeeded 1248s # GLib-GIO-DEBUG: g_socket_client_enumerator_callback: starting connection attempt 0x70bc308 for GSocketClientAsyncConnectData 0x70bb4d8 1248s # GLib-GIO-DEBUG: GSocketClient: Starting TCP connection attempt 1248s # GLib-GIO-DEBUG: GSocketClient: TCP connection successful 1248s # GLib-GIO-DEBUG: GSocketClient: Starting application layer connection 1248s # GLib-GIO-DEBUG: GSocketClient: Starting proxy connection 1248s # GLib-GIO-DEBUG: GSocketClient: Starting new address enumeration 1248s # GLib-GIO-DEBUG: GSocketClient: Address enumeration succeeded 1248s # GLib-GIO-DEBUG: g_socket_client_enumerator_callback: starting connection attempt 0x70bb488 for GSocketClientAsyncConnectData 0x70bb4d8 1248s # GLib-GIO-DEBUG: GSocketClient: Starting TCP connection attempt 1248s # GLib-GIO-DEBUG: GSocketClient: TCP connection successful 1248s # GLib-GIO-DEBUG: GSocketClient: Starting application layer connection 1248s # GLib-GIO-DEBUG: GSocketClient: Starting proxy connection 1248s # GLib-GIO-DEBUG: GSocketClient: Connection successful! 1248s ok 6 /proxy/multiple_async 1248s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/2597 1248s ok 7 /proxy/invalid-uris-sync 1248s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/2597 1248s # GLib-GIO-DEBUG: g_socket_client_connect_to_uri_async 1248s # GLib-GIO-DEBUG: g_socket_client_connect_async: starting new g_socket_client_connect_async() with GTask 0x70bb120 and GSocketClientAsyncConnectData 0x70bb258 1248s # GLib-GIO-DEBUG: GSocketClient: Starting new address enumeration 1248s # GLib-GIO-DEBUG: GSocketClient: Address enumeration completed (out of addresses) 1248s # GLib-GIO-DEBUG: GSocketClient: Address enumeration failed: Unspecified proxy lookup failure 1248s # GLib-GIO-DEBUG: GSocketClient: Connection failed: Unspecified proxy lookup failure 1248s # GLib-GIO-DEBUG: g_socket_client_connect_to_uri_async 1248s # GLib-GIO-DEBUG: g_socket_client_connect_async: starting new g_socket_client_connect_async() with GTask 0x70bb1b8 and GSocketClientAsyncConnectData 0x70bc530 1248s # GLib-GIO-DEBUG: GSocketClient: Starting new address enumeration 1248s # GLib-GIO-DEBUG: GSocketClient: Address enumeration completed (out of addresses) 1248s # GLib-GIO-DEBUG: GSocketClient: Address enumeration failed: Unspecified proxy lookup failure 1248s # GLib-GIO-DEBUG: GSocketClient: Connection failed: Unspecified proxy lookup failure 1248s # GLib-GIO-DEBUG: g_socket_client_connect_to_uri_async 1248s # GLib-GIO-DEBUG: g_socket_client_connect_async: starting new g_socket_client_connect_async() with GTask 0x70bb120 and GSocketClientAsyncConnectData 0x70bb258 1248s # GLib-GIO-DEBUG: GSocketClient: Starting new address enumeration 1248s # GLib-GIO-DEBUG: GSocketClient: Address enumeration succeeded 1248s # GLib-GIO-DEBUG: g_socket_client_enumerator_callback: starting connection attempt 0x70bc308 for GSocketClientAsyncConnectData 0x70bb258 1248s # GLib-GIO-DEBUG: GSocketClient: Starting TCP connection attempt 1248s # GLib-GIO-DEBUG: GSocketClient: TCP connection successful 1248s # GLib-GIO-DEBUG: GSocketClient: Starting application layer connection 1248s # GLib-GIO-DEBUG: GSocketClient: Connection successful! 1248s # GLib-GIO-DEBUG: g_socket_client_connect_to_uri_async 1248s # GLib-GIO-DEBUG: g_socket_client_connect_async: starting new g_socket_client_connect_async() with GTask 0x70bb1b8 and GSocketClientAsyncConnectData 0x70b9288 1248s # GLib-GIO-DEBUG: GSocketClient: Starting new address enumeration 1248s # GLib-GIO-DEBUG: GSocketClient: Address enumeration succeeded 1248s # GLib-GIO-DEBUG: g_socket_client_enumerator_callback: starting connection attempt 0x70bc308 for GSocketClientAsyncConnectData 0x70b9288 1248s # GLib-GIO-DEBUG: GSocketClient: Starting TCP connection attempt 1248s # GLib-GIO-DEBUG: GSocketClient: TCP connection successful 1248s # GLib-GIO-DEBUG: GSocketClient: Starting application layer connection 1248s # GLib-GIO-DEBUG: GSocketClient: Connection successful! 1248s ok 8 /proxy/invalid-uris-async 1248s # GLib-GIO-DEBUG: g_socket_client_connect_to_uri_async 1248s # GLib-GIO-DEBUG: g_socket_client_connect_async: starting new g_socket_client_connect_async() with GTask 0x70ba8d8 and GSocketClientAsyncConnectData 0x70bb448 1248s # GLib-GIO-DEBUG: GSocketClient: Starting new address enumeration 1248s # GLib-GIO-DEBUG: IPv6 DNS error: Not found 1248s # GLib-GIO-DEBUG: IPv4 DNS error: Not found 1248s # GLib-GIO-DEBUG: GSocketClient: Address enumeration completed (out of addresses) 1248s # GLib-GIO-DEBUG: GSocketClient: Address enumeration failed: Not found 1248s # GLib-GIO-DEBUG: GSocketClient: Connection failed: Not found 1248s # GLib-GIO-DEBUG: g_socket_client_connect_to_uri_async 1248s # GLib-GIO-DEBUG: g_socket_client_connect_async: starting new g_socket_client_connect_async() with GTask 0x70bc7d0 and GSocketClientAsyncConnectData 0x70bb258 1248s # GLib-GIO-DEBUG: GSocketClient: Starting new address enumeration 1248s # GLib-GIO-DEBUG: GSocketClient: Address enumeration succeeded 1248s # GLib-GIO-DEBUG: g_socket_client_enumerator_callback: starting connection attempt 0x70bc3d0 for GSocketClientAsyncConnectData 0x70bb258 1248s # GLib-GIO-DEBUG: GSocketClient: Starting TCP connection attempt 1248s # GLib-GIO-DEBUG: GSocketClient: TCP connection successful 1248s # GLib-GIO-DEBUG: GSocketClient: Starting application layer connection 1248s # GLib-GIO-DEBUG: GSocketClient: Starting proxy connection 1248s # GLib-GIO-DEBUG: GSocketClient: Starting new address enumeration 1248s # GLib-GIO-DEBUG: GSocketClient: Address enumeration completed (out of addresses) 1248s # GLib-GIO-DEBUG: GSocketClient: Address enumeration failed: (null) 1248s # GLib-GIO-DEBUG: GSocketClient: Connection failed: Unsupported protocol 1248s # GLib-GIO-DEBUG: g_socket_client_connect_to_uri_async 1248s # GLib-GIO-DEBUG: g_socket_client_connect_async: starting new g_socket_client_connect_async() with GTask 0x70bb120 and GSocketClientAsyncConnectData 0x70bb448 1248s # GLib-GIO-DEBUG: GSocketClient: Starting new address enumeration 1248s # GLib-GIO-DEBUG: GSocketClient: Address enumeration succeeded 1248s # GLib-GIO-DEBUG: g_socket_client_enumerator_callback: starting connection attempt 0x70bc3d0 for GSocketClientAsyncConnectData 0x70bb448 1248s # GLib-GIO-DEBUG: GSocketClient: Starting TCP connection attempt 1248s # GLib-GIO-DEBUG: GSocketClient: TCP connection successful 1248s # GLib-GIO-DEBUG: GSocketClient: Starting application layer connection 1248s # GLib-GIO-DEBUG: GSocketClient: Starting proxy connection 1248s # GLib-GIO-DEBUG: GSocketClient: Connection successful! 1248s ok 9 /proxy/dns 1248s # GLib-GIO-DEBUG: g_socket_client_connect_to_uri_async 1248s # GLib-GIO-DEBUG: g_socket_client_connect_async: starting new g_socket_client_connect_async() with GTask 0x70bb120 and GSocketClientAsyncConnectData 0x70bb448 1248s # GLib-GIO-DEBUG: GSocketClient: Starting new address enumeration 1248s # GLib-GIO-DEBUG: GSocketClient: Address enumeration succeeded 1248s # GLib-GIO-DEBUG: g_socket_client_enumerator_callback: starting connection attempt 0x70bc308 for GSocketClientAsyncConnectData 0x70bb448 1248s # GLib-GIO-DEBUG: GSocketClient: Starting TCP connection attempt 1248s # GLib-GIO-DEBUG: GSocketClient: TCP connection successful 1248s # GLib-GIO-DEBUG: GSocketClient: Starting application layer connection 1248s # GLib-GIO-DEBUG: GSocketClient: Starting proxy connection 1248s # GLib-GIO-DEBUG: GSocketClient: Starting new address enumeration 1248s # GLib-GIO-DEBUG: GSocketClient: Address enumeration completed (out of addresses) 1248s # GLib-GIO-DEBUG: GSocketClient: Address enumeration failed: (null) 1248s # GLib-GIO-DEBUG: GSocketClient: Connection failed: Unsupported protocol 1248s # GLib-GIO-DEBUG: g_socket_client_connect_to_uri_async 1248s # GLib-GIO-DEBUG: g_socket_client_connect_async: starting new g_socket_client_connect_async() with GTask 0x70bc7d0 and GSocketClientAsyncConnectData 0x70b9288 1248s # GLib-GIO-DEBUG: GSocketClient: Starting new address enumeration 1248s # GLib-GIO-DEBUG: GSocketClient: Address enumeration succeeded 1248s # GLib-GIO-DEBUG: g_socket_client_enumerator_callback: starting connection attempt 0x70bc308 for GSocketClientAsyncConnectData 0x70b9288 1248s # GLib-GIO-DEBUG: GSocketClient: Starting TCP connection attempt 1248s # GLib-GIO-DEBUG: GSocketClient: TCP connection successful 1248s ok - glib/proxy-test.test 1248s # Running test: glib/gdbus-introspection.test 1248s # GLib-GIO-DEBUG: GSocketClient: Starting application layer connection 1248s # GLib-GIO-DEBUG: GSocketClient: Starting proxy connection 1248s # GLib-GIO-DEBUG: GSocketClient: Connection successful! 1248s # GLib-GIO-DEBUG: g_socket_client_connect_to_uri_async 1248s # GLib-GIO-DEBUG: g_socket_client_connect_async: starting new g_socket_client_connect_async() with GTask 0x70bb120 and GSocketClientAsyncConnectData 0x70b9288 1248s # GLib-GIO-DEBUG: GSocketClient: Starting new address enumeration 1248s # GLib-GIO-DEBUG: GSocketClient: Address enumeration succeeded 1248s # GLib-GIO-DEBUG: g_socket_client_enumerator_callback: starting connection attempt 0x70bc308 for GSocketClientAsyncConnectData 0x70b9288 1248s # GLib-GIO-DEBUG: GSocketClient: Starting TCP connection attempt 1248s # GLib-GIO-DEBUG: GSocketClient: TCP connection successful 1248s # GLib-GIO-DEBUG: GSocketClient: Starting application layer connection 1248s # GLib-GIO-DEBUG: GSocketClient: Starting proxy connection 1248s # GLib-GIO-DEBUG: GSocketClient: Starting new address enumeration 1248s # GLib-GIO-DEBUG: GSocketClient: Address enumeration completed (out of addresses) 1248s # GLib-GIO-DEBUG: GSocketClient: Address enumeration failed: (null) 1248s # GLib-GIO-DEBUG: GSocketClient: Connection failed: Unsupported protocol 1248s ok 10 /proxy/override 1248s ok 11 /proxy/enumerator-ports 1248s # End of proxy tests 1248s TAP version 14 1248s # random seed: R02S5c083cebfc52939e3b51deefc8bf89ca 1248s 1..4 1248s # Start of gdbus tests 1248s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-introspection_LLXGK3/gdbus/introspection-parser/.dirs/home 1248s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-introspection_LLXGK3/gdbus/introspection-parser/.dirs/cache 1248s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-introspection_LLXGK3/gdbus/introspection-parser/.dirs/system-config1:/tmp/test_gdbus-introspection_LLXGK3/gdbus/introspection-parser/.dirs/system-config2 1248s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-introspection_LLXGK3/gdbus/introspection-parser/.dirs/config 1248s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-introspection_LLXGK3/gdbus/introspection-parser/.dirs/system-data1:/tmp/test_gdbus-introspection_LLXGK3/gdbus/introspection-parser/.dirs/system-data2 1248s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-introspection_LLXGK3/gdbus/introspection-parser/.dirs/data 1248s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-introspection_LLXGK3/gdbus/introspection-parser/.dirs/state 1248s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-introspection_LLXGK3/gdbus/introspection-parser/.dirs/runtime 1249s ok 1 /gdbus/introspection-parser 1249s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-introspection_LLXGK3/gdbus/introspection-generate/.dirs/home 1249s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-introspection_LLXGK3/gdbus/introspection-generate/.dirs/cache 1249s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-introspection_LLXGK3/gdbus/introspection-generate/.dirs/system-config1:/tmp/test_gdbus-introspection_LLXGK3/gdbus/introspection-generate/.dirs/system-config2 1249s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-introspection_LLXGK3/gdbus/introspection-generate/.dirs/config 1249s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-introspection_LLXGK3/gdbus/introspection-generate/.dirs/system-data1:/tmp/test_gdbus-introspection_LLXGK3/gdbus/introspection-generate/.dirs/system-data2 1249s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-introspection_LLXGK3/gdbus/introspection-generate/.dirs/data 1249s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-introspection_LLXGK3/gdbus/introspection-generate/.dirs/state 1249s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-introspection_LLXGK3/gdbus/introspection-generate/.dirs/runtime 1249s ok 2 /gdbus/introspection-generate 1249s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-introspection_LLXGK3/gdbus/introspection-default-direction/.dirs/home 1249s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-introspection_LLXGK3/gdbus/introspection-default-direction/.dirs/cache 1249s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-introspection_LLXGK3/gdbus/introspection-default-direction/.dirs/system-config1:/tmp/test_gdbus-introspection_LLXGK3/gdbus/introspection-default-direction/.dirs/system-config2 1249s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-introspection_LLXGK3/gdbus/introspection-default-direction/.dirs/config 1249s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-introspection_LLXGK3/gdbus/introspection-default-direction/.dirs/system-data1:/tmp/test_gdbus-introspection_LLXGK3/gdbus/introspection-default-direction/.dirs/system-data2 1249s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-introspection_LLXGK3/gdbus/introspection-default-direction/.dirs/data 1249s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-introspection_LLXGK3/gdbus/introspection-default-direction/.dirs/state 1249s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-introspection_LLXGK3/gdbus/introspection-default-direction/.dirs/runtime 1249s ok - glib/gdbus-introspection.test 1249s # Running test: glib/fileattributematcher.test 1249s ok 3 /gdbus/introspection-default-direction 1249s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-introspection_LLXGK3/gdbus/introspection-extra-data/.dirs/home 1249s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-introspection_LLXGK3/gdbus/introspection-extra-data/.dirs/cache 1249s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-introspection_LLXGK3/gdbus/introspection-extra-data/.dirs/system-config1:/tmp/test_gdbus-introspection_LLXGK3/gdbus/introspection-extra-data/.dirs/system-config2 1249s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-introspection_LLXGK3/gdbus/introspection-extra-data/.dirs/config 1249s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-introspection_LLXGK3/gdbus/introspection-extra-data/.dirs/system-data1:/tmp/test_gdbus-introspection_LLXGK3/gdbus/introspection-extra-data/.dirs/system-data2 1249s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-introspection_LLXGK3/gdbus/introspection-extra-data/.dirs/data 1249s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-introspection_LLXGK3/gdbus/introspection-extra-data/.dirs/state 1249s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-introspection_LLXGK3/gdbus/introspection-extra-data/.dirs/runtime 1249s ok 4 /gdbus/introspection-extra-data 1249s # End of gdbus tests 1249s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1249s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1249s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1249s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1249s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1249s TAP version 14 1249s # random seed: R02S5ddabdc0ab5d0f123af9a3ce08299422 1249s ok - glib/fileattributematcher.test 1249s # Running test: glib/gdbus-non-socket.test 1249s 1..3 1249s # Start of fileattributematcher tests 1249s ok 1 /fileattributematcher/exact 1249s ok 2 /fileattributematcher/equality 1249s ok 3 /fileattributematcher/subtract 1249s # End of fileattributematcher tests 1249s TAP version 14 1249s # random seed: R02Sbfb6329908618030a4acc9e5ca046a79 1249s 1..1 1249s # Start of gdbus tests 1249s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-non-socket_73LDK3/gdbus/non-socket/.dirs/home 1249s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-non-socket_73LDK3/gdbus/non-socket/.dirs/cache 1249s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-non-socket_73LDK3/gdbus/non-socket/.dirs/system-config1:/tmp/test_gdbus-non-socket_73LDK3/gdbus/non-socket/.dirs/system-config2 1249s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-non-socket_73LDK3/gdbus/non-socket/.dirs/config 1249s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-non-socket_73LDK3/gdbus/non-socket/.dirs/system-data1:/tmp/test_gdbus-non-socket_73LDK3/gdbus/non-socket/.dirs/system-data2 1249s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-non-socket_73LDK3/gdbus/non-socket/.dirs/data 1249s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-non-socket_73LDK3/gdbus/non-socket/.dirs/state 1249s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-non-socket_73LDK3/gdbus/non-socket/.dirs/runtime 1249s ok 1 /gdbus/non-socket 1249s # End of gdbus tests 1249s ok - glib/gdbus-non-socket.test 1249s # Running test: glib/memory-output-stream.test 1249s TAP version 14 1249s # random seed: R02S48c52d8780b67276f5eafb63f6a4b19b 1249s 1..10 1249s # Start of memory-output-stream tests 1249s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=540423 1249s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=720080 1249s ok 1 /memory-output-stream/truncate 1249s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=540459 1249s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=540461 1249s ok 2 /memory-output-stream/get-data-size 1249s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=605733 1249s ok 3 /memory-output-stream/properties 1249s ok 4 /memory-output-stream/write-bytes 1249s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/2471 1249s ok 5 /memory-output-stream/write-null 1249s ok 6 /memory-output-stream/writev 1249s ok 7 /memory-output-stream/writev_nonblocking 1249s ok 8 /memory-output-stream/steal_as_bytes 1249s # Start of seek tests 1249s ok 9 /memory-output-stream/seek/fixed 1249s ok 10 /memory-output-stream/seek/resizable 1249s # End of seek tests 1249s # End of memory-output-stream tests 1249s ok - glib/memory-output-stream.test 1249s # Running test: glib/overflow.test 1249s TAP version 14 1249s # random seed: R02Sb281cd8adf5686816612863e9eca255e 1249s 1..6 1249s # Start of glib tests 1249s # Start of checked-math tests 1249s ok 1 /glib/checked-math/guint-add 1249s ok 2 /glib/checked-math/guint-mul 1249s ok 3 /glib/checked-math/guint64-add 1249s ok 4 /glib/checked-math/guint64-mul 1249s ok 5 /glib/checked-math/gsize-add 1249s ok 6 /glib/checked-math/gsize-mul 1249s # End of checked-math tests 1249s # End of glib tests 1249s ok - glib/overflow.test 1249s # Running test: glib/testing.test 1249s TAP version 14 1249s # random seed: R02S395964887744fc66e1afb6cf5371e160 1249s 1..1 1249s # Start of assert tests 1249s ok 1 /assert/finalize_object 1249s # Start of finalize_object tests 1249s # Start of subprocess tests 1249s # End of subprocess tests 1249s # End of finalize_object tests 1249s # End of assert tests 1249s ok - glib/testing.test 1249s # Running test: glib/g-file-info-filesystem-readonly.test 1249s TAP version 14 1249s # random seed: R02S81a44ce357fd77c58e0fdcf71239a51e 1249s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=787731 1249s 1..2 1249s # Start of g-file-info-filesystem-readonly tests 1249s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_g-file-info-filesystem-readonly_H3BEK3/g-file-info-filesystem-readonly/test-fs-ro/.dirs/home 1249s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_g-file-info-filesystem-readonly_H3BEK3/g-file-info-filesystem-readonly/test-fs-ro/.dirs/cache 1249s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_g-file-info-filesystem-readonly_H3BEK3/g-file-info-filesystem-readonly/test-fs-ro/.dirs/system-config1:/tmp/test_g-file-info-filesystem-readonly_H3BEK3/g-file-info-filesystem-readonly/test-fs-ro/.dirs/system-config2 1249s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_g-file-info-filesystem-readonly_H3BEK3/g-file-info-filesystem-readonly/test-fs-ro/.dirs/config 1249s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_g-file-info-filesystem-readonly_H3BEK3/g-file-info-filesystem-readonly/test-fs-ro/.dirs/system-data1:/tmp/test_g-file-info-filesystem-readonly_H3BEK3/g-file-info-filesystem-readonly/test-fs-ro/.dirs/system-data2 1249s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_g-file-info-filesystem-readonly_H3BEK3/g-file-info-filesystem-readonly/test-fs-ro/.dirs/data 1249s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_g-file-info-filesystem-readonly_H3BEK3/g-file-info-filesystem-readonly/test-fs-ro/.dirs/state 1249s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_g-file-info-filesystem-readonly_H3BEK3/g-file-info-filesystem-readonly/test-fs-ro/.dirs/runtime 1249s ok 1 /g-file-info-filesystem-readonly/test-fs-ro # SKIP 'bindfs' and 'fusermount' commands are needed to run this test 1249s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_g-file-info-filesystem-readonly_H3BEK3/g-file-info-filesystem-readonly/test-fs-ro-with-mount-monitor/.dirs/home 1249s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_g-file-info-filesystem-readonly_H3BEK3/g-file-info-filesystem-readonly/test-fs-ro-with-mount-monitor/.dirs/cache 1249s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_g-file-info-filesystem-readonly_H3BEK3/g-file-info-filesystem-readonly/test-fs-ro-with-mount-monitor/.dirs/system-config1:/tmp/test_g-file-info-filesystem-readonly_H3BEK3/g-file-info-filesystem-readonly/test-fs-ro-with-mount-monitor/.dirs/system-config2 1249s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_g-file-info-filesystem-readonly_H3BEK3/g-file-info-filesystem-readonly/test-fs-ro-with-mount-monitor/.dirs/config 1249s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_g-file-info-filesystem-readonly_H3BEK3/g-file-info-filesystem-readonly/test-fs-ro-with-mount-monitor/.dirs/system-data1:/tmp/test_g-file-info-filesystem-readonly_H3BEK3/g-file-info-filesystem-readonly/test-fs-ro-with-mount-monitor/.dirs/system-data2 1249s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_g-file-info-filesystem-readonly_H3BEK3/g-file-info-filesystem-readonly/test-fs-ro-with-mount-monitor/.dirs/data 1249s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_g-file-info-filesystem-readonly_H3BEK3/g-file-info-filesystem-readonly/test-fs-ro-with-mount-monitor/.dirs/state 1249s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_g-file-info-filesystem-readonly_H3BEK3/g-file-info-filesystem-readonly/test-fs-ro-with-mount-monitor/.dirs/runtime 1249s ok 2 /g-file-info-filesystem-readonly/test-fs-ro-with-mount-monitor # SKIP 'bindfs' and 'fusermount' commands are needed to run this test 1249s # End of g-file-info-filesystem-readonly tests 1249s ok - glib/g-file-info-filesystem-readonly.test 1249s # Running test: glib/cond.test 1249s TAP version 14 1249s # random seed: R02Sea1f432796f140358da2e77b0588c493 1249s 1..4 1249s # Start of thread tests 1249s ok 1 /thread/cond1 1249s ok 2 /thread/cond2 1249s # Start of cond tests 1250s ok 3 /thread/cond/wait-until 1250s # slow test /thread/cond/wait-until executed in 1.02 secs 1250s # Start of wait-until tests 1250s # /thread/cond/wait-until/contended-and-interrupted summary: Check proper handling of errno in g_cond_wait_until with a contended mutex 1250s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/merge_requests/957 1250s # Executing: glib/cond.test 1251s ok 4 /thread/cond/wait-until/contended-and-interrupted 1251s # slow test /thread/cond/wait-until/contended-and-interrupted executed in 1.10 secs 1251s # End of wait-until tests 1251s # End of cond tests 1251s # End of thread tests 1251s ok - glib/cond.test 1251s # Running test: glib/actions.test 1251s TAP version 14 1251s # random seed: R02Sd213422bd14496eaa609f3f9f27456d7 1251s 1..13 1251s # Start of actions tests 1251s ok 1 /actions/basic 1251s ok 2 /actions/name 1251s ok 3 /actions/simplegroup 1251s ok 4 /actions/stateful 1251s ok 5 /actions/default-activate 1251s ok 6 /actions/entries 1251s ok 7 /actions/parse-detailed 1251s ok 8 /actions/property 1251s ok 9 /actions/no-properties 1251s # Start of dbus tests 1251s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1251s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1251s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1251s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1251s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1251s ok 10 /actions/dbus/export 1251s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1251s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1251s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1251s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1251s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1251s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1255s # Executing: glib/actions.test 1256s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1256s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1256s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1256s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1256s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1256s ok 11 /actions/dbus/threaded 1256s # slow test /actions/dbus/threaded executed in 4.91 secs 1256s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1256s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1256s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1256s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1256s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1256s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1256s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1256s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1256s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1256s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1256s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1256s ok 12 /actions/dbus/bug679509 1256s # Start of export tests 1256s # /actions/dbus/export/error-handling summary: Test that error handling of action group export failure works 1256s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3366 1256s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1256s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1256s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1256s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1256s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1256s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1256s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1256s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1256s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1256s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1256s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1256s ok 13 /actions/dbus/export/error-handling 1256s # End of export tests 1256s # End of dbus tests 1256s # End of actions tests 1256s ok - glib/actions.test 1256s # Running test: glib/spawn-multithreaded.test 1256s TAP version 14 1256s # random seed: R02S37f7993d422474706de55e45230eaa60 1256s 1..4 1256s # Start of gthread tests 1257s # Child 32827 (ttl 1) exited, status 0 1258s # Child 32828 (ttl 2) exited, status 0 1258s ok 1 /gthread/spawn-childs 1258s # slow test /gthread/spawn-childs executed in 2.00 secs 1258s # Created pid: 32832 (ttl 1) 1258s # Created pid: 32833 (ttl 2) 1259s # Child 32832 (ttl 1) exited, status 0 1260s # Executing: glib/spawn-multithreaded.test 1260s # Child 32833 (ttl 2) exited, status 0 1260s ok 2 /gthread/spawn-childs-threads 1260s # slow test /gthread/spawn-childs-threads executed in 2.00 secs 1260s ok 3 /gthread/spawn-sync 1260s ok 4 /gthread/spawn-async 1260s # End of gthread tests 1260s ok - glib/spawn-multithreaded.test 1260s # Running test: glib/notify-init2.test 1260s TAP version 14 1260s # random seed: R02Sb92e8a564fc38cfb91463c25bde66664 1260s 1..1 1260s # Start of properties tests 1260s # /properties/notify-in-init2 summary: Test that notify freezing during construction of objects with custom constructor works 1260s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/2665 1260s ok 1 /properties/notify-in-init2 1260s # End of properties tests 1260s ok - glib/notify-init2.test 1260s # Running test: glib/hostutils.test 1260s TAP version 14 1260s # random seed: R02Sa74a19bfca1f49f88c38d6c787e715d6 1260s 1..4 1260s # Start of hostutils tests 1260s ok 1 /hostutils/hostname_is_non_ascii 1260s ok 2 /hostutils/to_ascii 1260s ok 3 /hostutils/to_unicode 1260s ok 4 /hostutils/is_ip_addr 1260s # End of hostutils tests 1260s ok - glib/hostutils.test 1260s # Running test: glib/network-address.test 1260s TAP version 14 1260s # random seed: R02S2c11307f9aa0eed23e76e5cbc60d3d82 1260s 1..72 1260s # Start of network-address tests 1260s ok 1 /network-address/basic 1260s ok 2 /network-address/scope-id 1260s ok 3 /network-address/uri-scope-id 1260s ok 4 /network-address/to-string 1260s # Start of parse-host tests 1260s ok 5 /network-address/parse-host/0 1260s ok 6 /network-address/parse-host/1 1260s ok 7 /network-address/parse-host/2 1260s ok 8 /network-address/parse-host/3 1260s ok 9 /network-address/parse-host/4 1260s ok 10 /network-address/parse-host/5 1260s ok 11 /network-address/parse-host/6 1260s ok 12 /network-address/parse-host/7 1260s ok 13 /network-address/parse-host/8 1260s ok 14 /network-address/parse-host/9 1260s ok 15 /network-address/parse-host/10 1260s ok 16 /network-address/parse-host/11 1260s ok 17 /network-address/parse-host/12 1260s ok 18 /network-address/parse-host/13 1260s # End of parse-host tests 1260s # Start of parse-uri tests 1260s ok 19 /network-address/parse-uri/0 1260s ok 20 /network-address/parse-uri/1 1260s ok 21 /network-address/parse-uri/2 1260s ok 22 /network-address/parse-uri/3 1260s ok 23 /network-address/parse-uri/4 1260s ok 24 /network-address/parse-uri/5 1260s ok 25 /network-address/parse-uri/6 1260s ok 26 /network-address/parse-uri/7 1260s ok 27 /network-address/parse-uri/8 1260s ok 28 /network-address/parse-uri/9 1260s # End of parse-uri tests 1260s # Start of resolve-address tests 1260s # Input: 192.168.1.2 1260s ok 29 /network-address/resolve-address/0 1260s # Input: fe80::42 1260s ok 30 /network-address/resolve-address/1 1260s # Input: 192.168.1.2:80 1260s ok 31 /network-address/resolve-address/2 1260s # Input: [fe80::42] 1260s ok 32 /network-address/resolve-address/3 1260s # Input: [fe80::42]:80 1260s ok 33 /network-address/resolve-address/4 1260s # Input: 192.168.258 1260s ok 34 /network-address/resolve-address/5 1260s # Input: 192.11010306 1260s ok 35 /network-address/resolve-address/6 1260s # Input: 3232235778 1260s ok 36 /network-address/resolve-address/7 1260s # Input: 0300.0250.0001.0001 1260s ok 37 /network-address/resolve-address/8 1260s # Input: 0xC0.0xA8.0x01.0x02 1260s ok 38 /network-address/resolve-address/9 1260s # Input: 0xc0.0xa8.0x01.0x02 1260s ok 39 /network-address/resolve-address/10 1260s # Input: 0xc0a80102 1260s ok 40 /network-address/resolve-address/11 1260s # End of resolve-address tests 1260s # Start of loopback tests 1260s ok 41 /network-address/loopback/basic 1260s ok 42 /network-address/loopback/sync 1260s ok 43 /network-address/loopback/async 1260s # End of loopback tests 1260s # Start of localhost tests 1260s ok 44 /network-address/localhost/async 1260s ok 45 /network-address/localhost/sync 1260s # End of localhost tests 1260s # Start of happy-eyeballs tests 1260s ok 46 /network-address/happy-eyeballs/basic 1260s ok 47 /network-address/happy-eyeballs/parallel 1260s ok 48 /network-address/happy-eyeballs/slow-ipv4 1260s ok 49 /network-address/happy-eyeballs/slow-ipv6 1260s ok 50 /network-address/happy-eyeballs/very-slow-ipv6 1261s ok 51 /network-address/happy-eyeballs/slow-connection-and-ipv4 1261s # slow test /network-address/happy-eyeballs/slow-connection-and-ipv4 executed in 0.80 secs 1261s # GLib-GIO-DEBUG: IPv6 DNS error: IPv6 Broken 1261s ok 52 /network-address/happy-eyeballs/ipv6-error-ipv4-first 1261s # GLib-GIO-DEBUG: IPv6 DNS error: IPv6 Broken 1261s ok 53 /network-address/happy-eyeballs/ipv6-error-ipv6-first 1261s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/merge_requests/865 1261s # /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. 1261s # GLib-GIO-DEBUG: IPv6 DNS error: IPv6 Broken 1261s ok 54 /network-address/happy-eyeballs/ipv6-error-ipv4-very-slow 1261s # GLib-GIO-DEBUG: IPv4 DNS error: IPv4 Broken 1261s ok 55 /network-address/happy-eyeballs/ipv4-error-ipv6-first 1261s # GLib-GIO-DEBUG: IPv4 DNS error: IPv4 Broken 1261s ok 56 /network-address/happy-eyeballs/ipv4-error-ipv4-first 1261s # GLib-GIO-DEBUG: IPv6 DNS error: IPv6 Broken 1261s # GLib-GIO-DEBUG: IPv4 DNS error: IPv4 Broken 1261s ok 57 /network-address/happy-eyeballs/both-error 1261s # GLib-GIO-DEBUG: IPv6 DNS error: IPv6 Broken 1261s # GLib-GIO-DEBUG: IPv4 DNS error: IPv4 Broken 1261s ok 58 /network-address/happy-eyeballs/both-error-delays-1 1261s # GLib-GIO-DEBUG: IPv4 DNS error: IPv4 Broken 1261s # GLib-GIO-DEBUG: IPv6 DNS error: IPv6 Broken 1261s ok 59 /network-address/happy-eyeballs/both-error-delays-2 1261s # GLib-GIO-DEBUG: IPv4 DNS error: IPv4 Broken 1261s ok 60 /network-address/happy-eyeballs/both-error-delays-3 1261s # End of happy-eyeballs tests 1261s # End of network-address tests 1261s # Start of gresolver tests 1261s # Start of resolve-address tests 1261s # Input: 192.168.1.2 1261s ok 61 /gresolver/resolve-address/0 1261s # Input: fe80::42 1261s ok 62 /gresolver/resolve-address/1 1261s # Input: 192.168.1.2:80 1261s # GLib-GIO-DEBUG: getaddrinfo failed to resolve host string 192.168.1.2:80 1261s # GLib-GIO-DEBUG: Failed to initialize portal (GNetworkMonitorPortal) for gio-network-monitor: Not using portals 1261s # GLib-GIO-DEBUG: Failed to initialize networkmanager (GNetworkMonitorNM) for gio-network-monitor: NetworkManager not running 1261s # GLib-GIO-DEBUG: _g_io_module_get_default: Found default implementation netlink (GNetworkMonitorNetlink) for ‘gio-network-monitor’ 1261s # Error: Error resolving “192.168.1.2:80”: Name or service not known 1261s ok 63 /gresolver/resolve-address/2 1261s # Input: [fe80::42] 1261s # GLib-GIO-DEBUG: getaddrinfo failed to resolve host string [fe80::42] 1261s # Error: Error resolving “[fe80::42]”: Name or service not known 1261s ok 64 /gresolver/resolve-address/3 1261s # Input: [fe80::42]:80 1261s # GLib-GIO-DEBUG: getaddrinfo failed to resolve host string [fe80::42]:80 1261s # Error: Error resolving “[fe80::42]:80”: Name or service not known 1261s ok 65 /gresolver/resolve-address/4 1261s # Input: 192.168.258 1261s # Error: Error resolving “192.168.258”: Name or service not known 1261s ok 66 /gresolver/resolve-address/5 1261s # Input: 192.11010306 1261s # Error: Error resolving “192.11010306”: Name or service not known 1261s ok 67 /gresolver/resolve-address/6 1261s # Input: 3232235778 1261s # Error: Error resolving “3232235778”: Name or service not known 1261s ok 68 /gresolver/resolve-address/7 1261s # Input: 0300.0250.0001.0001 1261s # Error: Error resolving “0300.0250.0001.0001”: Name or service not known 1261s ok 69 /gresolver/resolve-address/8 1261s # Input: 0xC0.0xA8.0x01.0x02 1261s # Error: Error resolving “0xC0.0xA8.0x01.0x02”: Name or service not known 1261s ok 70 /gresolver/resolve-address/9 1261s # Input: 0xc0.0xa8.0x01.0x02 1261s # Error: Error resolving “0xc0.0xa8.0x01.0x02”: Name or service not known 1261s ok 71 /gresolver/resolve-address/10 1261s ok - glib/network-address.test 1261s # Running test: glib/g-icon.test 1261s # Input: 0xc0a80102 1261s # Error: Error resolving “0xc0a80102”: Name or service not known 1261s ok 72 /gresolver/resolve-address/11 1261s # End of resolve-address tests 1261s # End of gresolver tests 1261s TAP version 14 1261s # random seed: R02S7c2c5638f59727e5634622f9a17aecd1 1261s 1..6 1261s # Start of icons tests 1261s # GLib-GIO-DEBUG: _g_io_module_get_default: Found default implementation local (GLocalVfs) for ‘gio-vfs’ 1261s ok 1 /icons/to-string 1261s ok - glib/g-icon.test 1261s # Running test: glib/thumbnail-verification.test 1261s ok - glib/thumbnail-verification.test 1261s # Running test: glib/uri.test 1261s ok - glib/uri.test 1262s # Running test: glib/contenttype.test 1262s ok - glib/contenttype.test 1262s # Running test: glib/sort.test 1262s ok 2 /icons/serialize 1262s ok 3 /icons/themed 1262s ok 4 /icons/emblemed 1262s ok 5 /icons/file 1262s ok 6 /icons/bytes 1262s # End of icons tests 1262s TAP version 14 1262s # random seed: R02Sd1dc8b8646c31836f0d69c46ca15d89c 1262s 1..1 1262s # Start of png-thumbs tests 1262s ok 1 /png-thumbs/validity 1262s # End of png-thumbs tests 1262s TAP version 14 1262s # random seed: R02S7dd654dfaf8e087f448c22bd4953c29b 1262s 1..24 1262s # Start of uri tests 1262s ok 1 /uri/file-to-uri 1262s ok 2 /uri/file-from-uri 1262s ok 3 /uri/file-roundtrip 1262s ok 4 /uri/list 1262s # Test 0: %2Babc %4F 1262s # Test 1: %2Babc %4F 1262s # Test 2: %00abc %4F 1262s # Test 3: /cursors/none.png 1262s # Test 4: /cursors%2fbad-subdir/none.png 1262s # Test 5: %0 1262s # Test 6: %ra 1262s # Test 7: %2r 1262s # Test 8: Timm Bäder 1262s # Test 9: (null) 1262s ok 5 /uri/unescape-string 1262s ok 6 /uri/unescape-segment 1262s # Test 0: abcdefgABCDEFG._~ 1262s # Test 1: :+ \\?# 1262s # Test 2: a+b:c 1262s # Test 3: a+b:c\303\234 1262s # Test 4: \374;\322 1262s # Test 5: \303\261\303( 1262s ok 7 /uri/escape-string 1262s ok 8 /uri/escape-bytes 1262s ok 9 /uri/scheme 1262s ok 10 /uri/build 1262s ok 11 /uri/split 1262s ok 12 /uri/is_valid 1262s ok 13 /uri/to-string 1262s ok 14 /uri/join 1262s # /uri/join-split-round-trip summary: Test that joining different URI components survives a round trip 1262s # Combination 0 1262s # Combination 1 1262s # Combination 2 1262s # Combination 3 1262s # Combination 4 1262s # Combination 5 1262s # Combination 6 1262s # Combination 7 1262s # Combination 8 1262s # Combination 9 1262s # Combination 10 1262s # Combination 11 1262s # Combination 12 1262s # Combination 13 1262s # Combination 14 1262s # Combination 15 1262s # Combination 16 1262s # Combination 17 1262s # Combination 18 1262s # Combination 19 1262s # Combination 20 1262s # Combination 21 1262s # Combination 22 1262s # Combination 23 1262s # Combination 24 1262s # Combination 25 1262s # Combination 26 1262s # Combination 27 1262s # Combination 28 1262s # Combination 29 1262s # Combination 30 1262s # Combination 31 1262s # Combination 32 1262s # Combination 33 1262s # Combination 34 1262s # Combination 35 1262s # Combination 36 1262s # Combination 37 1262s # Combination 38 1262s # Combination 39 1262s # Combination 40 1262s # Combination 41 1262s # Combination 42 1262s # Combination 43 1262s # Combination 44 1262s # Combination 45 1262s # Combination 46 1262s # Combination 47 1262s # Combination 48 1262s # Combination 49 1262s # Combination 50 1262s # Combination 51 1262s # Combination 52 1262s # Combination 53 1262s # Combination 54 1262s # Combination 55 1262s # Combination 56 1262s # Combination 57 1262s # Combination 58 1262s # Combination 59 1262s # Combination 60 1262s # Combination 61 1262s # Combination 62 1262s # Combination 63 1262s # Combination 64 1262s # Combination 65 1262s # Combination 66 1262s # Combination 67 1262s # Combination 68 1262s # Combination 69 1262s # Combination 70 1262s # Combination 71 1262s # Combination 72 1262s # Combination 73 1262s # Combination 74 1262s # Combination 75 1262s # Combination 76 1262s # Combination 77 1262s # Combination 78 1262s # Combination 79 1262s # Combination 80 1262s # Combination 81 1262s # Combination 82 1262s # Combination 83 1262s # Combination 84 1262s # Combination 85 1262s # Combination 86 1262s # Combination 87 1262s # Combination 88 1262s # Combination 89 1262s # Combination 90 1262s # Combination 91 1262s # Combination 92 1262s # Combination 93 1262s # Combination 94 1262s # Combination 95 1262s # Combination 96 1262s # Combination 97 1262s # Combination 98 1262s # Combination 99 1262s # Combination 100 1262s # Combination 101 1262s # Combination 102 1262s # Combination 103 1262s # Combination 104 1262s # Combination 105 1262s # Combination 106 1262s # Combination 107 1262s # Combination 108 1262s # Combination 109 1262s # Combination 110 1262s # Combination 111 1262s # Combination 112 1262s # Combination 113 1262s # Combination 114 1262s # Combination 115 1262s # Combination 116 1262s # Combination 117 1262s # Combination 118 1262s # Combination 119 1262s # Combination 120 1262s # Combination 121 1262s # Combination 122 1262s # Combination 123 1262s # Combination 124 1262s # Combination 125 1262s # Combination 126 1262s # Combination 127 1262s # Combination 128 1262s # Combination 129 1262s # Combination 130 1262s # Combination 131 1262s # Combination 132 1262s # Combination 133 1262s # Combination 134 1262s # Combination 135 1262s # Combination 136 1262s # Combination 137 1262s # Combination 138 1262s # Combination 139 1262s # Combination 140 1262s # Combination 141 1262s # Combination 142 1262s # Combination 143 1262s # Combination 144 1262s # Combination 145 1262s # Combination 146 1262s # Combination 147 1262s # Combination 148 1262s # Combination 149 1262s # Combination 150 1262s # Combination 151 1262s # Combination 152 1262s # Combination 153 1262s # Combination 154 1262s # Combination 155 1262s # Combination 156 1262s # Combination 157 1262s # Combination 158 1262s # Combination 159 1262s # Combination 160 1262s # Combination 161 1262s # Combination 162 1262s # Combination 163 1262s # Combination 164 1262s # Combination 165 1262s # Combination 166 1262s # Combination 167 1262s # Combination 168 1262s # Combination 169 1262s # Combination 170 1262s # Combination 171 1262s # Combination 172 1262s # Combination 173 1262s # Combination 174 1262s # Combination 175 1262s # Combination 176 1262s # Combination 177 1262s # Combination 178 1262s # Combination 179 1262s # Combination 180 1262s # Combination 181 1262s # Combination 182 1262s # Combination 183 1262s # Combination 184 1262s # Combination 185 1262s # Combination 186 1262s # Combination 187 1262s # Combination 188 1262s # Combination 189 1262s # Combination 190 1262s # Combination 191 1262s # Combination 192 1262s # Combination 193 1262s # Combination 194 1262s # Combination 195 1262s # Combination 196 1262s # Combination 197 1262s # Combination 198 1262s # Combination 199 1262s # Combination 200 1262s # Combination 201 1262s # Combination 202 1262s # Combination 203 1262s # Combination 204 1262s # Combination 205 1262s # Combination 206 1262s # Combination 207 1262s # Combination 208 1262s # Combination 209 1262s # Combination 210 1262s # Combination 211 1262s # Combination 212 1262s # Combination 213 1262s # Combination 214 1262s # Combination 215 1262s # Combination 216 1262s # Combination 217 1262s # Combination 218 1262s # Combination 219 1262s # Combination 220 1262s # Combination 221 1262s # Combination 222 1262s # Combination 223 1262s # Combination 224 1262s # Combination 225 1262s # Combination 226 1262s # Combination 227 1262s # Combination 228 1262s # Combination 229 1262s # Combination 230 1262s # Combination 231 1262s # Combination 232 1262s # Combination 233 1262s # Combination 234 1262s # Combination 235 1262s # Combination 236 1262s # Combination 237 1262s # Combination 238 1262s # Combination 239 1262s # Combination 240 1262s # Combination 241 1262s # Combination 242 1262s # Combination 243 1262s # Combination 244 1262s # Combination 245 1262s # Combination 246 1262s # Combination 247 1262s # Combination 248 1262s # Combination 249 1262s # Combination 250 1262s # Combination 251 1262s # Combination 252 1262s # Combination 253 1262s # Combination 254 1262s # Combination 255 1262s ok 15 /uri/join-split-round-trip 1262s ok 16 /uri/normalize 1262s # Start of unescape-bytes tests 1262s # Test 0: %00%00 1262s # Test 1: /cursors/none.png 1262s # Test 2: /cursors%2fbad-subdir/none.png 1262s # Test 3: %% 1262s # Test 4: % 1262s ok 17 /uri/unescape-bytes/nul-terminated 1262s # Test 0: %00%00 1262s # Test 1: /cursors/none.png 1262s # Test 2: /cursors%2fbad-subdir/none.png 1262s # Test 3: %% 1262s # Test 4: % 1262s ok 18 /uri/unescape-bytes/length 1262s # End of unescape-bytes tests 1262s # Start of parsing tests 1262s # Test 0: foo: 1262s # Test 1: file:/dev/null 1262s # Test 2: file:///dev/null 1262s # Test 3: ftp://user@host/path 1262s # Test 4: ftp://user@host:9999/path 1262s # Test 5: ftp://user:password@host/path 1262s # Test 6: ftp://user:password@host:9999/path 1262s # Test 7: ftp://user:password@host 1262s # Test 8: http://us%65r@host 1262s # Test 9: http://us%40r@host 1262s # Test 10: http://us%3ar@host 1262s # Test 11: http://us%2fr@host 1262s # Test 12: http://us%3fr@host 1262s # Test 13: http://host?query 1262s # Test 14: http://host/path?query=http%3A%2F%2Fhost%2Fpath%3Fchildparam%3Dchildvalue¶m=value 1262s # 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 1262s # Test 16: http://space/%20 1262s # Test 17: http://delims/%3C%3E%23%25%22 1262s # Test 18: http://unwise-chars/%7B%7D%7C%5C%5E%5B%5D%60 1262s # Test 19: http://[FEDC:BA98:7654:3210:FEDC:BA98:7654:3210]:80/index.html 1262s # Test 20: http://[1080:0:0:0:8:800:200C:417A]/index.html 1262s # Test 21: http://[3ffe:2a00:100:7031::1] 1262s # Test 22: http://[1080::8:800:200C:417A]/foo 1262s # Test 23: http://[::192.9.5.5]/ipng 1262s # Test 24: http://[::FFFF:129.144.52.38]:80/index.html 1262s # Test 25: http://[2010:836B:4179::836B:4179] 1262s # Test 26: http://host/path with spaces 1262s # Test 27: http://host/path 1262s # Test 28: http://host/path 1262s # Test 29: http://host 1262s # Test 30: http://host:999 1262s # Test 31: http://host/pa 1262s # th 1262s # Test 32: http: 1262s # //host/path 1262s # Test 33: http:// host/path 1262s # Test 34: http://host/path? 1262s # Test 35: http://host/path# 1262s # Test 36: http://host/path% 1262s # Test 37: http://h%ost/path 1262s # Test 38: http://host/path%% 1262s # Test 39: http://host/path%%% 1262s # Test 40: http://host/path%/x/ 1262s # Test 41: http://host/path%0x/ 1262s # Test 42: http://host/path%ax 1262s # Test 43: http://host/päth/ 1262s # Test 44: HTTP://////////////// 1262s # Test 45: http://@host 1262s # Test 46: http://:@host 1262s # Test 47: scheme://foo%3Abar._webdav._tcp.local 1262s # Test 48: http://example.com/.. 1262s # Test 49: foo0://host/path 1262s # Test 50: f0.o://host/path 1262s # Test 51: http++://host/path 1262s # Test 52: http-ish://host/path 1262s # Test 53: http://[fe80::dead:beef%]/ 1262s # Test 54: http://[fe80::dead:beef%em1]/ 1262s # Test 55: http://[fe80::dead:beef%em1]/ 1262s # Test 56: http://[fe80::dead:beef%25em1]/ 1262s # Test 57: http://[fe80::dead:beef%25em1%20]/ 1262s # Test 58: http://[fe80::dead:beef%25em%31]/ 1262s # Test 59: http://[fe80::dead:beef%10]/ 1262s # Test 60: http://[fe80::dead:beef%10]/ 1262s # Test 61: http://[fe80::dead:beef%25]/ 1262s # Test 62: http://[fe80::dead:beef%25]/ 1262s # Test 63: http://[192.168.0.1%25em1]/ 1262s # Test 64: http://[fe80::dead:beef%2em1]/ 1262s # Test 65: http://[fe80::dead:beef%2em1]/ 1262s # Test 66: http://[fe80::dead:beef%25em1%00]/ 1262s # Test 67: http://[fe80::dead:beef%25em1%00]/ 1262s # Test 68: http://xn--mixed-üp/ 1262s # Test 69: data:./// 1262s # Test 70: data:/.// 1262s ok 19 /uri/parsing/absolute 1262s ok 20 /uri/parsing/relative 1262s # End of parsing tests 1262s # Start of iter-params tests 1262s # URI 0: p1=foo&p2=bar;p3=baz 1262s # URI 1: p1=foo&p2=bar 1262s # URI 2: p1=foo&&P1=bar 1262s # URI 3: %00=foo 1262s # URI 4: p1=%00 1262s # URI 5: p1=foo&p1=bar 1262s # URI 6: p1=foo&P1=bar 1262s # URI 7: =% 1262s # URI 8: = 1262s # URI 9: foo 1262s # URI 10: foo=bar+%26+baz&saisons=%C3%89t%C3%A9%2Bhiver 1262s # URI 11: foo=bar+%26+baz&saisons=%C3%89t%C3%A9%2Bhiver 1262s # URI 12: token=exp=123~acl=/QualityLevels(*~hmac=0cb 1262s ok 21 /uri/iter-params/nul-terminated 1262s # URI 0: p1=foo&p2=bar;p3=baz 1262s # URI 1: p1=foo&p2=bar 1262s # URI 2: p1=foo&&P1=bar 1262s # URI 3: %00=foo 1262s # URI 4: p1=%00 1262s # URI 5: p1=foo&p1=bar 1262s # URI 6: p1=foo&P1=bar 1262s # URI 7: =% 1262s # URI 8: = 1262s # URI 9: foo 1262s # URI 10: foo=bar+%26+baz&saisons=%C3%89t%C3%A9%2Bhiver 1262s # URI 11: foo=bar+%26+baz&saisons=%C3%89t%C3%A9%2Bhiver 1262s # URI 12: token=exp=123~acl=/QualityLevels(*~hmac=0cb 1262s ok 22 /uri/iter-params/length 1262s # End of iter-params tests 1262s # Start of parse-params tests 1262s # URI 0: p1=foo&p2=bar;p3=baz 1262s # URI 1: p1=foo&p2=bar 1262s # URI 2: p1=foo&&P1=bar 1262s # URI 3: %00=foo 1262s # URI 4: p1=%00 1262s # URI 5: p1=foo&p1=bar 1262s # URI 6: p1=foo&P1=bar 1262s # URI 7: =% 1262s # URI 8: = 1262s # URI 9: foo 1262s # URI 10: foo=bar+%26+baz&saisons=%C3%89t%C3%A9%2Bhiver 1262s # URI 11: foo=bar+%26+baz&saisons=%C3%89t%C3%A9%2Bhiver 1262s # URI 12: token=exp=123~acl=/QualityLevels(*~hmac=0cb 1262s ok 23 /uri/parse-params/nul-terminated 1262s # URI 0: p1=foo&p2=bar;p3=baz 1262s # URI 1: p1=foo&p2=bar 1262s # URI 2: p1=foo&&P1=bar 1262s # URI 3: %00=foo 1262s # URI 4: p1=%00 1262s # URI 5: p1=foo&p1=bar 1262s # URI 6: p1=foo&P1=bar 1262s # URI 7: =% 1262s # URI 8: = 1262s # URI 9: foo 1262s # URI 10: foo=bar+%26+baz&saisons=%C3%89t%C3%A9%2Bhiver 1262s # URI 11: foo=bar+%26+baz&saisons=%C3%89t%C3%A9%2Bhiver 1262s # URI 12: token=exp=123~acl=/QualityLevels(*~hmac=0cb 1262s ok 24 /uri/parse-params/length 1262s # End of parse-params tests 1262s # End of uri tests 1262s TAP version 14 1262s # random seed: R02S22df82a2e29389ffab32192ee5adb7da 1262s 1..14 1262s # Start of contenttype tests 1262s ok 1 /contenttype/guess 1262s ok 2 /contenttype/guess_svg_from_data 1262s ok 3 /contenttype/mime_to_content # SKIP mime from content type test not implemented on UNIX 1262s ok 4 /contenttype/mime_from_content # SKIP mime from content type test not implemented on UNIX 1262s ok 5 /contenttype/unknown 1262s ok 6 /contenttype/subtype 1262s ok 7 /contenttype/list 1262s ok 8 /contenttype/executable 1262s ok 9 /contenttype/description 1262s ok 10 /contenttype/icon 1262s ok 11 /contenttype/symbolic-icon 1262s # GLib-GIO-DEBUG: _g_io_module_get_default: Found default implementation local (GLocalVfs) for ‘gio-vfs’ 1262s ok 12 /contenttype/tree 1262s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3168 1262s ok 13 /contenttype/tree_invalid_encoding 1262s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=782311 1262s ok 14 /contenttype/test_type_is_a_special_case 1262s # End of contenttype tests 1262s TAP version 14 1262s # random seed: R02Sb400e1aea7487fc6a6720c7e519ef594 1262s 1..5 1262s # Start of sort tests 1262s ok 1 /sort/basic 1262s ok 2 /sort/zero-elements 1262s ok 3 /sort/stable 1262s ok 4 /sort/big 1262s ok 5 /sort/deprecated 1262s # End of sort tests 1262s ok - glib/sort.test 1262s # Running test: glib/function-info.test 1262s TAP version 14 1262s # random seed: R02Sbf061003062f2f8dcf9ddc4855fcd0ef 1262s 1..1 1262s # Start of function-info tests 1262s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_function-info_OWDDK3/function-info/invoker/.dirs/home 1262s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_function-info_OWDDK3/function-info/invoker/.dirs/cache 1262s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_function-info_OWDDK3/function-info/invoker/.dirs/system-config1:/tmp/test_function-info_OWDDK3/function-info/invoker/.dirs/system-config2 1262s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_function-info_OWDDK3/function-info/invoker/.dirs/config 1262s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_function-info_OWDDK3/function-info/invoker/.dirs/system-data1:/tmp/test_function-info_OWDDK3/function-info/invoker/.dirs/system-data2 1262s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_function-info_OWDDK3/function-info/invoker/.dirs/data 1262s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_function-info_OWDDK3/function-info/invoker/.dirs/state 1262s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_function-info_OWDDK3/function-info/invoker/.dirs/runtime 1262s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 1262s # /function-info/invoker summary: Test preparing a function invoker 1262s ok 1 /function-info/invoker 1262s # End of function-info tests 1262s ok - glib/function-info.test 1262s # Running test: glib/dataset.test 1262s TAP version 14 1262s # random seed: R02S680c96e7e24fa3a8c6ed74699416bb79 1262s 1..15 1262s # Start of quark tests 1262s ok 1 /quark/basic 1262s ok 2 /quark/string 1262s # End of quark tests 1262s # Start of dataset tests 1262s ok 3 /dataset/basic 1262s ok 4 /dataset/id 1262s ok 5 /dataset/full 1262s ok 6 /dataset/foreach 1262s ok 7 /dataset/destroy 1262s # End of dataset tests 1262s # Start of datalist tests 1262s ok 8 /datalist/id 1262s ok 9 /datalist/recursive-clear 1262s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/issues/2672 1262s ok 10 /datalist/id-remove-multiple 1262s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/issues/2672 1262s ok 11 /datalist/id-remove-multiple-destroy-order 1262s ok 12 /datalist/update-atomic 1262s # Start of basic tests 1262s ok 13 /datalist/basic/few 1262s ok 14 /datalist/basic/many 1262s # End of basic tests 1262s # Start of id-remove-multiple tests 1262s ok 15 /datalist/id-remove-multiple/resize 1262s # End of id-remove-multiple tests 1262s # End of datalist tests 1262s ok - glib/dataset.test 1262s # Running test: glib/dynamictype.test 1262s TAP version 14 1262s # random seed: R02Sd4e4dec2333675ebbf3464587e6b6936 1262s 1..2 1262s # Start of gobject tests 1262s ok 1 /gobject/dynamic-type 1262s # Start of dynamic-type tests 1262s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/623 1262s ok 2 /gobject/dynamic-type/query 1262s # End of dynamic-type tests 1262s # End of gobject tests 1262s ok - glib/dynamictype.test 1262s # Running test: glib/properties-refcount1.test 1262s TAP version 14 1262s # random seed: R02S7fc7bf6eff2e565ff98b1f86c63765e4 1262s 1..1 1262s # Start of gobject tests 1262s # Start of refcount tests 1262s # .c 1262s # .b 1262s # .f 1262s # .d 1262s # .e 1262s # .c 1262s # .b 1262s # .e 1262s # .f 1262s # .d 1262s # .c 1262s # .e 1262s # .b 1262s # .f 1262s # .d 1263s # .c 1263s # .e 1263s # .b 1263s # .f 1263s # .d 1263s # .e 1263s # .c 1263s # .b 1263s # .f 1263s # .d 1263s # .e 1263s # .c 1263s # .b 1263s # .f 1263s # .d 1263s # .e 1263s # .c 1264s # .b 1264s # .f 1264s # .d 1264s # .e 1264s # .c 1264s # .f 1264s # .b 1264s # .d 1264s # .e 1264s # .c 1264s # .f 1264s # .b 1264s # .d 1264s # .b 1264s # .f 1264s # .d 1264s # .e 1264s # .c 1264s # .b 1264s # .f 1264s # .e 1265s # .c 1265s ok - glib/properties-refcount1.test 1265s ok 1 /gobject/refcount/properties-1 1265s # slow test /gobject/refcount/properties-1 executed in 3.01 secs 1265s # End of refcount tests 1265s # End of gobject tests 1265s # Running test: glib/appmonitor.test 1265s TAP version 14 1265s # random seed: R02S1cd21d95e204afad9da2776ae91f4e57 1265s 1..1 1265s # Start of monitor tests 1265s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_appmonitor_OV4BK3/monitor/app/.dirs/home 1265s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_appmonitor_OV4BK3/monitor/app/.dirs/cache 1265s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_appmonitor_OV4BK3/monitor/app/.dirs/system-config1:/tmp/test_appmonitor_OV4BK3/monitor/app/.dirs/system-config2 1265s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_appmonitor_OV4BK3/monitor/app/.dirs/config 1265s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_appmonitor_OV4BK3/monitor/app/.dirs/system-data1:/tmp/test_appmonitor_OV4BK3/monitor/app/.dirs/system-data2 1265s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_appmonitor_OV4BK3/monitor/app/.dirs/data 1265s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_appmonitor_OV4BK3/monitor/app/.dirs/state 1265s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_appmonitor_OV4BK3/monitor/app/.dirs/runtime 1265s # Using data directory: /tmp/test_appmonitor_OV4BK3/monitor/app/.dirs/data 1265s ok 1 /monitor/app 1265s # End of monitor tests 1265s ok - glib/appmonitor.test 1265s # Running test: glib/network-monitor-race.test 1265s TAP version 14 1265s # random seed: R02S5a56e743ad4e0e9f4fbf7ccc54e49a71 1265s 1..1 1265s # Start of network-monitor tests 1265s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=793727 1265s # Executing: glib/network-monitor-race.test 1267s ok 1 /network-monitor/create-in-thread 1267s # slow test /network-monitor/create-in-thread executed in 2.29 secs 1267s # End of network-monitor tests 1267s ok - glib/network-monitor-race.test 1267s # Running test: glib/gobject-private.test 1267s TAP version 14 1267s # random seed: R02Sf7df728ec8d3cf7d5b431650cbf325b6 1267s 1..3 1267s # Start of private tests 1267s ok 1 /private/instance 1267s ok 2 /private/derived-instance 1267s ok 3 /private/mixed-derived-instance 1267s # End of private tests 1267s ok - glib/gobject-private.test 1267s # Running test: glib/include.test 1267s TAP version 14 1267s # random seed: R02Sec216a444a4c139dfaa5aa76c86d0923 1267s 1..1 1267s # Start of include tests 1267s ok 1 /include/rwlock 1267s # End of include tests 1267s ok - glib/include.test 1267s # Running test: glib/portal-support-snap-classic.test 1267s TAP version 14 1267s # random seed: R02S366d52db1c65d15f2e95feaa29886341 1267s 1..3 1267s # Start of portal-support tests 1267s # Start of snap-classic tests 1267s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_portal-support-snap-classic_N204J3/portal-support/snap-classic/no-snapctl/.dirs/home 1267s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_portal-support-snap-classic_N204J3/portal-support/snap-classic/no-snapctl/.dirs/cache 1267s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_portal-support-snap-classic_N204J3/portal-support/snap-classic/no-snapctl/.dirs/system-config1:/tmp/test_portal-support-snap-classic_N204J3/portal-support/snap-classic/no-snapctl/.dirs/system-config2 1267s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_portal-support-snap-classic_N204J3/portal-support/snap-classic/no-snapctl/.dirs/config 1267s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_portal-support-snap-classic_N204J3/portal-support/snap-classic/no-snapctl/.dirs/system-data1:/tmp/test_portal-support-snap-classic_N204J3/portal-support/snap-classic/no-snapctl/.dirs/system-data2 1267s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_portal-support-snap-classic_N204J3/portal-support/snap-classic/no-snapctl/.dirs/data 1267s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_portal-support-snap-classic_N204J3/portal-support/snap-classic/no-snapctl/.dirs/state 1267s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_portal-support-snap-classic_N204J3/portal-support/snap-classic/no-snapctl/.dirs/runtime 1267s Unable to clean up temporary directory /tmp/test_portal-support-snap-classic_N204J3/portal-support/snap-classic/no-snapctl: No such file or directory 1267s ok 1 /portal-support/snap-classic/no-snapctl 1267s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_portal-support-snap-classic_N204J3/portal-support/snap-classic/none/.dirs/home 1267s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_portal-support-snap-classic_N204J3/portal-support/snap-classic/none/.dirs/cache 1267s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_portal-support-snap-classic_N204J3/portal-support/snap-classic/none/.dirs/system-config1:/tmp/test_portal-support-snap-classic_N204J3/portal-support/snap-classic/none/.dirs/system-config2 1267s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_portal-support-snap-classic_N204J3/portal-support/snap-classic/none/.dirs/config 1267s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_portal-support-snap-classic_N204J3/portal-support/snap-classic/none/.dirs/system-data1:/tmp/test_portal-support-snap-classic_N204J3/portal-support/snap-classic/none/.dirs/system-data2 1267s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_portal-support-snap-classic_N204J3/portal-support/snap-classic/none/.dirs/data 1267s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_portal-support-snap-classic_N204J3/portal-support/snap-classic/none/.dirs/state 1267s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_portal-support-snap-classic_N204J3/portal-support/snap-classic/none/.dirs/runtime 1267s ok - glib/portal-support-snap-classic.test 1267s # Running test: glib/notify-init.test 1267s ok - glib/notify-init.test 1267s # Running test: glib/gdbus-error.test 1267s # Created snap.yaml in /tmp/test_portal-support-snap-classic_N204J3/meta/snap.yaml 1267s # Created snapctl in /tmp/test_portal-support-snap-classic_N204J3/portal-support/snap-classic/none/.dirs/runtime/snapctl 1267s Unable to clean up temporary directory /tmp/test_portal-support-snap-classic_N204J3/portal-support/snap-classic/none: No such file or directory 1267s ok 2 /portal-support/snap-classic/none 1267s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_portal-support-snap-classic_N204J3/portal-support/snap-classic/all/.dirs/home 1267s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_portal-support-snap-classic_N204J3/portal-support/snap-classic/all/.dirs/cache 1267s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_portal-support-snap-classic_N204J3/portal-support/snap-classic/all/.dirs/system-config1:/tmp/test_portal-support-snap-classic_N204J3/portal-support/snap-classic/all/.dirs/system-config2 1267s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_portal-support-snap-classic_N204J3/portal-support/snap-classic/all/.dirs/config 1267s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_portal-support-snap-classic_N204J3/portal-support/snap-classic/all/.dirs/system-data1:/tmp/test_portal-support-snap-classic_N204J3/portal-support/snap-classic/all/.dirs/system-data2 1267s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_portal-support-snap-classic_N204J3/portal-support/snap-classic/all/.dirs/data 1267s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_portal-support-snap-classic_N204J3/portal-support/snap-classic/all/.dirs/state 1267s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_portal-support-snap-classic_N204J3/portal-support/snap-classic/all/.dirs/runtime 1267s # Created snap.yaml in /tmp/test_portal-support-snap-classic_N204J3/meta/snap.yaml 1267s # Created snapctl in /tmp/test_portal-support-snap-classic_N204J3/portal-support/snap-classic/all/.dirs/runtime/snapctl 1267s Unable to clean up temporary directory /tmp/test_portal-support-snap-classic_N204J3/portal-support/snap-classic/all: No such file or directory 1267s ok 3 /portal-support/snap-classic/all 1267s # End of snap-classic tests 1267s # End of portal-support tests 1267s Unable to clean up temporary directory /tmp/test_portal-support-snap-classic_N204J3: No such file or directory 1267s ok - glib/gdbus-error.test 1267s # Running test: glib/network-monitor.test 1267s TAP version 14 1267s # random seed: R02S0a97b922dc0264d0c041d3d89ef42c5b 1267s 1..1 1267s # Start of properties tests 1267s # /properties/notify-in-init summary: Test that emitting notify with a handler already connected in test_object_init() works 1267s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/2665 1267s ok 1 /properties/notify-in-init 1267s # End of properties tests 1267s TAP version 14 1267s # random seed: R02S41a0af3a9b7eecffd5e2d6b448de95b2 1267s 1..4 1267s # Start of gdbus tests 1267s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-error_08G5J3/gdbus/registered-errors/.dirs/home 1267s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-error_08G5J3/gdbus/registered-errors/.dirs/cache 1267s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-error_08G5J3/gdbus/registered-errors/.dirs/system-config1:/tmp/test_gdbus-error_08G5J3/gdbus/registered-errors/.dirs/system-config2 1267s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-error_08G5J3/gdbus/registered-errors/.dirs/config 1267s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-error_08G5J3/gdbus/registered-errors/.dirs/system-data1:/tmp/test_gdbus-error_08G5J3/gdbus/registered-errors/.dirs/system-data2 1267s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-error_08G5J3/gdbus/registered-errors/.dirs/data 1267s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-error_08G5J3/gdbus/registered-errors/.dirs/state 1267s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-error_08G5J3/gdbus/registered-errors/.dirs/runtime 1267s ok 1 /gdbus/registered-errors 1267s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-error_08G5J3/gdbus/unregistered-errors/.dirs/home 1267s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-error_08G5J3/gdbus/unregistered-errors/.dirs/cache 1267s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-error_08G5J3/gdbus/unregistered-errors/.dirs/system-config1:/tmp/test_gdbus-error_08G5J3/gdbus/unregistered-errors/.dirs/system-config2 1267s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-error_08G5J3/gdbus/unregistered-errors/.dirs/config 1267s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-error_08G5J3/gdbus/unregistered-errors/.dirs/system-data1:/tmp/test_gdbus-error_08G5J3/gdbus/unregistered-errors/.dirs/system-data2 1267s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-error_08G5J3/gdbus/unregistered-errors/.dirs/data 1267s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-error_08G5J3/gdbus/unregistered-errors/.dirs/state 1267s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-error_08G5J3/gdbus/unregistered-errors/.dirs/runtime 1267s ok 2 /gdbus/unregistered-errors 1267s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-error_08G5J3/gdbus/transparent-gerror/.dirs/home 1267s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-error_08G5J3/gdbus/transparent-gerror/.dirs/cache 1267s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-error_08G5J3/gdbus/transparent-gerror/.dirs/system-config1:/tmp/test_gdbus-error_08G5J3/gdbus/transparent-gerror/.dirs/system-config2 1267s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-error_08G5J3/gdbus/transparent-gerror/.dirs/config 1267s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-error_08G5J3/gdbus/transparent-gerror/.dirs/system-data1:/tmp/test_gdbus-error_08G5J3/gdbus/transparent-gerror/.dirs/system-data2 1267s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-error_08G5J3/gdbus/transparent-gerror/.dirs/data 1267s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-error_08G5J3/gdbus/transparent-gerror/.dirs/state 1267s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-error_08G5J3/gdbus/transparent-gerror/.dirs/runtime 1267s ok 3 /gdbus/transparent-gerror 1267s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-error_08G5J3/gdbus/register-error/.dirs/home 1267s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-error_08G5J3/gdbus/register-error/.dirs/cache 1267s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-error_08G5J3/gdbus/register-error/.dirs/system-config1:/tmp/test_gdbus-error_08G5J3/gdbus/register-error/.dirs/system-config2 1267s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-error_08G5J3/gdbus/register-error/.dirs/config 1267s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-error_08G5J3/gdbus/register-error/.dirs/system-data1:/tmp/test_gdbus-error_08G5J3/gdbus/register-error/.dirs/system-data2 1267s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-error_08G5J3/gdbus/register-error/.dirs/data 1267s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-error_08G5J3/gdbus/register-error/.dirs/state 1267s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-error_08G5J3/gdbus/register-error/.dirs/runtime 1267s ok 4 /gdbus/register-error 1267s # End of gdbus tests 1267s TAP version 14 1267s # random seed: R02S925d49a61a0d458385cf63caa515811f 1267s 1..4 1267s # Start of network-monitor tests 1267s # GLib-GIO-DEBUG: Failed to initialize portal (GNetworkMonitorPortal) for gio-network-monitor: Not using portals 1267s ok - glib/network-monitor.test 1267s # Running test: glib/param.test 1267s # GLib-GIO-DEBUG: Failed to initialize networkmanager (GNetworkMonitorNM) for gio-network-monitor: NetworkManager not running 1267s # GLib-GIO-DEBUG: _g_io_module_get_default: Found default implementation netlink (GNetworkMonitorNetlink) for ‘gio-network-monitor’ 1267s # GLib-GIO-DEBUG: _g_io_module_get_default: Found default implementation dummy (GDummyProxyResolver) for ‘gio-proxy-resolver’ 1267s ok 1 /network-monitor/default 1267s ok 2 /network-monitor/remove_default 1267s ok 3 /network-monitor/add_networks 1267s ok 4 /network-monitor/remove_networks 1267s # End of network-monitor tests 1267s TAP version 14 1267s # random seed: R02S11d73bee43d888fbe69e7ef068ff79a9 1267s 1..32 1267s # Start of param tests 1267s ok 1 /param/value 1267s ok 2 /param/strings 1267s ok 3 /param/qdata 1267s ok 4 /param/validate 1267s ok 5 /param/convert 1267s ok 6 /param/implement # SKIP Skipping slow /param/implement test 1267s ok 7 /param/default 1267s ok 8 /param/is-valid-name 1267s # Start of invalid-name tests 1267s # /param/invalid-name/colon summary: Test that properties cannot be created with invalid names 1267s ok 9 /param/invalid-name/colon 1267s # /param/invalid-name/first-char summary: Test that properties cannot be created with invalid names 1267s ok 10 /param/invalid-name/first-char 1267s # /param/invalid-name/empty summary: Test that properties cannot be created with invalid names 1267s ok 11 /param/invalid-name/empty 1267s # End of invalid-name tests 1267s # Start of implement tests 1267s # Start of subprocess tests 1267s # End of subprocess tests 1267s # End of implement tests 1267s # End of param tests 1267s # Start of value tests 1267s ok 12 /value/transform 1267s # End of value tests 1267s # Start of paramspec tests 1267s ok 13 /paramspec/char 1267s ok 14 /paramspec/uchar 1267s ok 15 /paramspec/int 1267s ok 16 /paramspec/uint 1267s ok 17 /paramspec/long 1267s ok 18 /paramspec/ulong 1267s ok 19 /paramspec/int64 1267s ok 20 /paramspec/uint64 1267s ok 21 /paramspec/float 1267s ok 22 /paramspec/double 1267s ok 23 /paramspec/unichar 1267s ok 24 /paramspec/param 1267s ok 25 /paramspec/null-param 1267s ok 26 /paramspec/string 1267s ok 27 /paramspec/override 1267s ok 28 /paramspec/gtype 1267s ok 29 /paramspec/variant 1267s ok 30 /paramspec/custom 1267s ok 31 /paramspec/pool 1267s # Start of variant tests 1267s ok 32 /paramspec/variant/cmp 1267s # End of variant tests 1267s # End of paramspec tests 1267s ok - glib/param.test 1267s # Running test: glib/async-close-output-stream.test 1267s TAP version 14 1267s # random seed: R02Sf00b956176f3a3a1e392f2d9c566c52a 1267s 1..3 1267s # Start of close-async tests 1267s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=617937 1267s ok 1 /close-async/without-flush 1267s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=617937 1267s ok 2 /close-async/with-flush 1267s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=617937 1267s ok 3 /close-async/with-async-flush 1267s # End of close-async tests 1267s ok - glib/async-close-output-stream.test 1267s # Running test: glib/types.test 1267s TAP version 14 1267s # random seed: R02S31e292a53cebca0b42019588fbf599d6 1267s 1..1 1267s # Start of types tests 1267s ok 1 /types/basic_types 1267s # End of types tests 1267s ok - glib/types.test 1267s # Running test: glib/socket-listener.test 1267s TAP version 14 1267s # random seed: R02S96aa3d7ec05283005e3643dc28bdab85 1267s 1..4 1267s # Start of socket-listener tests 1267s ok 1 /socket-listener/event-signal 1267s # Start of accept tests 1267s # /socket-listener/accept/multi-simultaneously summary: Test that accepting multiple pending connections on the same GMainContext iteration works 1267s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3739 1267s # GLib-GIO-DEBUG: _g_io_module_get_default: Found default implementation dummy (GDummyProxyResolver) for ‘gio-proxy-resolver’ 1267s # GLib-GIO-DEBUG: g_socket_client_connect_async: starting new g_socket_client_connect_async() with GTask 0x10d62678 and GSocketClientAsyncConnectData 0x10d62630 1267s # GLib-GIO-DEBUG: GSocketClient: Starting new address enumeration 1267s # GLib-GIO-DEBUG: g_socket_client_connect_async: starting new g_socket_client_connect_async() with GTask 0x10d66558 and GSocketClientAsyncConnectData 0x10d66500 1267s # GLib-GIO-DEBUG: GSocketClient: Starting new address enumeration 1267s # GLib-GIO-DEBUG: g_socket_client_connect_async: starting new g_socket_client_connect_async() with GTask 0x10d66a18 and GSocketClientAsyncConnectData 0x10d669c0 1267s # GLib-GIO-DEBUG: GSocketClient: Starting new address enumeration 1267s # GLib-GIO-DEBUG: g_socket_client_connect_async: starting new g_socket_client_connect_async() with GTask 0x10d66fd8 and GSocketClientAsyncConnectData 0x10d66f80 1267s # GLib-GIO-DEBUG: GSocketClient: Starting new address enumeration 1267s # GLib-GIO-DEBUG: g_socket_client_connect_async: starting new g_socket_client_connect_async() with GTask 0x10d67508 and GSocketClientAsyncConnectData 0x10d674b0 1267s # GLib-GIO-DEBUG: GSocketClient: Starting new address enumeration 1267s # GLib-GIO-DEBUG: GSocketClient: Address enumeration succeeded 1267s # GLib-GIO-DEBUG: g_socket_client_enumerator_callback: starting connection attempt 0x10d68fb8 for GSocketClientAsyncConnectData 0x10d62630 1267s # GLib-GIO-DEBUG: GSocketClient: Starting TCP connection attempt 1267s # GLib-GIO-DEBUG: GSocketClient: Address enumeration succeeded 1267s # GLib-GIO-DEBUG: g_socket_client_enumerator_callback: starting connection attempt 0x10d6a268 for GSocketClientAsyncConnectData 0x10d66500 1267s # GLib-GIO-DEBUG: GSocketClient: Starting TCP connection attempt 1267s # GLib-GIO-DEBUG: GSocketClient: Address enumeration succeeded 1267s # GLib-GIO-DEBUG: g_socket_client_enumerator_callback: starting connection attempt 0x10d6a668 for GSocketClientAsyncConnectData 0x10d669c0 1267s # GLib-GIO-DEBUG: GSocketClient: Starting TCP connection attempt 1267s # GLib-GIO-DEBUG: GSocketClient: Address enumeration succeeded 1267s # GLib-GIO-DEBUG: g_socket_client_enumerator_callback: starting connection attempt 0x10d6ac08 for GSocketClientAsyncConnectData 0x10d66f80 1267s # GLib-GIO-DEBUG: GSocketClient: Starting TCP connection attempt 1267s # GLib-GIO-DEBUG: GSocketClient: Address enumeration succeeded 1267s # GLib-GIO-DEBUG: g_socket_client_enumerator_callback: starting connection attempt 0x10d68928 for GSocketClientAsyncConnectData 0x10d674b0 1267s # GLib-GIO-DEBUG: GSocketClient: Starting TCP connection attempt 1267s # GLib-GIO-DEBUG: GSocketClient: TCP connection successful 1267s # GLib-GIO-DEBUG: GSocketClient: Starting application layer connection 1267s # GLib-GIO-DEBUG: GSocketClient: Connection successful! 1267s # GLib-GIO-DEBUG: GSocketClient: TCP connection successful 1267s # GLib-GIO-DEBUG: GSocketClient: Starting application layer connection 1267s # GLib-GIO-DEBUG: GSocketClient: Connection successful! 1267s # GLib-GIO-DEBUG: GSocketClient: TCP connection successful 1267s # GLib-GIO-DEBUG: GSocketClient: Starting application layer connection 1267s # GLib-GIO-DEBUG: GSocketClient: Connection successful! 1267s # GLib-GIO-DEBUG: GSocketClient: TCP connection successful 1267s # GLib-GIO-DEBUG: GSocketClient: Starting application layer connection 1267s # GLib-GIO-DEBUG: GSocketClient: Connection successful! 1267s # GLib-GIO-DEBUG: GSocketClient: TCP connection successful 1267s # GLib-GIO-DEBUG: GSocketClient: Starting application layer connection 1267s # GLib-GIO-DEBUG: GSocketClient: Connection successful! 1267s ok 2 /socket-listener/accept/multi-simultaneously 1267s # End of accept tests 1267s # Start of add-any-inet-port tests 1267s ok - glib/socket-listener.test 1267s # Running test: glib/resolver-parsing.test 1267s ok - glib/resolver-parsing.test 1267s # Running test: glib/contexts.test 1267s # /socket-listener/add-any-inet-port/listen-failures summary: Test that adding a listening port succeeds if either listening on IPv4 or IPv6 succeeds 1267s # Test 0 1267s # Test 1 1267s # Test 2 1267s # Test 3 1267s # Test 4 1267s # Test 5 1267s # Test 6 1267s # Test 7 1267s # Test 8 1267s # Test 9 1267s # Test 10 1267s ok 3 /socket-listener/add-any-inet-port/listen-failures 1267s # End of add-any-inet-port tests 1267s # Start of add-inet-port tests 1267s # /socket-listener/add-inet-port/listen-failures summary: Test that adding a listening port succeeds if either listening on IPv4 or IPv6 succeeds 1267s # Test 0 1267s # Test 1 1267s # Test 2 1267s # Test 3 1267s # Test 4 1267s # Test 5 1267s # Test 6 1267s # Test 7 1267s # Test 8 1267s # Test 9 1267s # Test 10 1267s ok 4 /socket-listener/add-inet-port/listen-failures 1267s # End of add-inet-port tests 1267s # End of socket-listener tests 1267s TAP version 14 1267s # random seed: R02S8240ba33e99076edd45bf515da80eac8 1267s 1..21 1267s # Start of gresolver tests 1267s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_resolver-parsing_V1HOK3/gresolver/invalid-header/.dirs/home 1267s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_resolver-parsing_V1HOK3/gresolver/invalid-header/.dirs/cache 1267s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_resolver-parsing_V1HOK3/gresolver/invalid-header/.dirs/system-config1:/tmp/test_resolver-parsing_V1HOK3/gresolver/invalid-header/.dirs/system-config2 1267s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_resolver-parsing_V1HOK3/gresolver/invalid-header/.dirs/config 1267s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_resolver-parsing_V1HOK3/gresolver/invalid-header/.dirs/system-data1:/tmp/test_resolver-parsing_V1HOK3/gresolver/invalid-header/.dirs/system-data2 1267s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_resolver-parsing_V1HOK3/gresolver/invalid-header/.dirs/data 1267s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_resolver-parsing_V1HOK3/gresolver/invalid-header/.dirs/state 1267s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_resolver-parsing_V1HOK3/gresolver/invalid-header/.dirs/runtime 1267s ok 1 /gresolver/invalid-header 1267s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_resolver-parsing_V1HOK3/gresolver/record-ownership/.dirs/home 1267s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_resolver-parsing_V1HOK3/gresolver/record-ownership/.dirs/cache 1267s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_resolver-parsing_V1HOK3/gresolver/record-ownership/.dirs/system-config1:/tmp/test_resolver-parsing_V1HOK3/gresolver/record-ownership/.dirs/system-config2 1267s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_resolver-parsing_V1HOK3/gresolver/record-ownership/.dirs/config 1267s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_resolver-parsing_V1HOK3/gresolver/record-ownership/.dirs/system-data1:/tmp/test_resolver-parsing_V1HOK3/gresolver/record-ownership/.dirs/system-data2 1267s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_resolver-parsing_V1HOK3/gresolver/record-ownership/.dirs/data 1267s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_resolver-parsing_V1HOK3/gresolver/record-ownership/.dirs/state 1267s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_resolver-parsing_V1HOK3/gresolver/record-ownership/.dirs/runtime 1267s ok 2 /gresolver/record-ownership 1267s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_resolver-parsing_V1HOK3/gresolver/unknown-record-type/.dirs/home 1267s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_resolver-parsing_V1HOK3/gresolver/unknown-record-type/.dirs/cache 1267s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_resolver-parsing_V1HOK3/gresolver/unknown-record-type/.dirs/system-config1:/tmp/test_resolver-parsing_V1HOK3/gresolver/unknown-record-type/.dirs/system-config2 1267s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_resolver-parsing_V1HOK3/gresolver/unknown-record-type/.dirs/config 1267s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_resolver-parsing_V1HOK3/gresolver/unknown-record-type/.dirs/system-data1:/tmp/test_resolver-parsing_V1HOK3/gresolver/unknown-record-type/.dirs/system-data2 1267s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_resolver-parsing_V1HOK3/gresolver/unknown-record-type/.dirs/data 1267s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_resolver-parsing_V1HOK3/gresolver/unknown-record-type/.dirs/state 1267s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_resolver-parsing_V1HOK3/gresolver/unknown-record-type/.dirs/runtime 1267s # GLib-GIO-DEBUG: Unrecognized DNS record type 20 1267s ok 3 /gresolver/unknown-record-type 1267s # Start of mx tests 1267s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_resolver-parsing_V1HOK3/gresolver/mx/valid/.dirs/home 1267s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_resolver-parsing_V1HOK3/gresolver/mx/valid/.dirs/cache 1267s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_resolver-parsing_V1HOK3/gresolver/mx/valid/.dirs/system-config1:/tmp/test_resolver-parsing_V1HOK3/gresolver/mx/valid/.dirs/system-config2 1267s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_resolver-parsing_V1HOK3/gresolver/mx/valid/.dirs/config 1267s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_resolver-parsing_V1HOK3/gresolver/mx/valid/.dirs/system-data1:/tmp/test_resolver-parsing_V1HOK3/gresolver/mx/valid/.dirs/system-data2 1267s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_resolver-parsing_V1HOK3/gresolver/mx/valid/.dirs/data 1267s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_resolver-parsing_V1HOK3/gresolver/mx/valid/.dirs/state 1267s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_resolver-parsing_V1HOK3/gresolver/mx/valid/.dirs/runtime 1267s ok 4 /gresolver/mx/valid 1267s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_resolver-parsing_V1HOK3/gresolver/mx/invalid/.dirs/home 1267s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_resolver-parsing_V1HOK3/gresolver/mx/invalid/.dirs/cache 1267s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_resolver-parsing_V1HOK3/gresolver/mx/invalid/.dirs/system-config1:/tmp/test_resolver-parsing_V1HOK3/gresolver/mx/invalid/.dirs/system-config2 1267s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_resolver-parsing_V1HOK3/gresolver/mx/invalid/.dirs/config 1267s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_resolver-parsing_V1HOK3/gresolver/mx/invalid/.dirs/system-data1:/tmp/test_resolver-parsing_V1HOK3/gresolver/mx/invalid/.dirs/system-data2 1267s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_resolver-parsing_V1HOK3/gresolver/mx/invalid/.dirs/data 1267s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_resolver-parsing_V1HOK3/gresolver/mx/invalid/.dirs/state 1267s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_resolver-parsing_V1HOK3/gresolver/mx/invalid/.dirs/runtime 1267s ok 5 /gresolver/mx/invalid 1267s # Start of invalid tests 1267s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_resolver-parsing_V1HOK3/gresolver/mx/invalid/too-short/.dirs/home 1267s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_resolver-parsing_V1HOK3/gresolver/mx/invalid/too-short/.dirs/cache 1267s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_resolver-parsing_V1HOK3/gresolver/mx/invalid/too-short/.dirs/system-config1:/tmp/test_resolver-parsing_V1HOK3/gresolver/mx/invalid/too-short/.dirs/system-config2 1267s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_resolver-parsing_V1HOK3/gresolver/mx/invalid/too-short/.dirs/config 1267s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_resolver-parsing_V1HOK3/gresolver/mx/invalid/too-short/.dirs/system-data1:/tmp/test_resolver-parsing_V1HOK3/gresolver/mx/invalid/too-short/.dirs/system-data2 1267s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_resolver-parsing_V1HOK3/gresolver/mx/invalid/too-short/.dirs/data 1267s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_resolver-parsing_V1HOK3/gresolver/mx/invalid/too-short/.dirs/state 1267s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_resolver-parsing_V1HOK3/gresolver/mx/invalid/too-short/.dirs/runtime 1267s ok 6 /gresolver/mx/invalid/too-short 1267s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_resolver-parsing_V1HOK3/gresolver/mx/invalid/too-short2/.dirs/home 1267s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_resolver-parsing_V1HOK3/gresolver/mx/invalid/too-short2/.dirs/cache 1267s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_resolver-parsing_V1HOK3/gresolver/mx/invalid/too-short2/.dirs/system-config1:/tmp/test_resolver-parsing_V1HOK3/gresolver/mx/invalid/too-short2/.dirs/system-config2 1267s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_resolver-parsing_V1HOK3/gresolver/mx/invalid/too-short2/.dirs/config 1267s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_resolver-parsing_V1HOK3/gresolver/mx/invalid/too-short2/.dirs/system-data1:/tmp/test_resolver-parsing_V1HOK3/gresolver/mx/invalid/too-short2/.dirs/system-data2 1267s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_resolver-parsing_V1HOK3/gresolver/mx/invalid/too-short2/.dirs/data 1267s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_resolver-parsing_V1HOK3/gresolver/mx/invalid/too-short2/.dirs/state 1267s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_resolver-parsing_V1HOK3/gresolver/mx/invalid/too-short2/.dirs/runtime 1267s ok 7 /gresolver/mx/invalid/too-short2 1267s # End of invalid tests 1267s # End of mx tests 1267s # Start of ns tests 1267s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_resolver-parsing_V1HOK3/gresolver/ns/valid/.dirs/home 1267s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_resolver-parsing_V1HOK3/gresolver/ns/valid/.dirs/cache 1267s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_resolver-parsing_V1HOK3/gresolver/ns/valid/.dirs/system-config1:/tmp/test_resolver-parsing_V1HOK3/gresolver/ns/valid/.dirs/system-config2 1267s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_resolver-parsing_V1HOK3/gresolver/ns/valid/.dirs/config 1267s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_resolver-parsing_V1HOK3/gresolver/ns/valid/.dirs/system-data1:/tmp/test_resolver-parsing_V1HOK3/gresolver/ns/valid/.dirs/system-data2 1267s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_resolver-parsing_V1HOK3/gresolver/ns/valid/.dirs/data 1267s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_resolver-parsing_V1HOK3/gresolver/ns/valid/.dirs/state 1267s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_resolver-parsing_V1HOK3/gresolver/ns/valid/.dirs/runtime 1267s ok 8 /gresolver/ns/valid 1267s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_resolver-parsing_V1HOK3/gresolver/ns/invalid/.dirs/home 1267s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_resolver-parsing_V1HOK3/gresolver/ns/invalid/.dirs/cache 1267s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_resolver-parsing_V1HOK3/gresolver/ns/invalid/.dirs/system-config1:/tmp/test_resolver-parsing_V1HOK3/gresolver/ns/invalid/.dirs/system-config2 1267s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_resolver-parsing_V1HOK3/gresolver/ns/invalid/.dirs/config 1267s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_resolver-parsing_V1HOK3/gresolver/ns/invalid/.dirs/system-data1:/tmp/test_resolver-parsing_V1HOK3/gresolver/ns/invalid/.dirs/system-data2 1267s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_resolver-parsing_V1HOK3/gresolver/ns/invalid/.dirs/data 1267s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_resolver-parsing_V1HOK3/gresolver/ns/invalid/.dirs/state 1267s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_resolver-parsing_V1HOK3/gresolver/ns/invalid/.dirs/runtime 1267s ok 9 /gresolver/ns/invalid 1267s # End of ns tests 1267s # Start of soa tests 1267s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_resolver-parsing_V1HOK3/gresolver/soa/valid/.dirs/home 1267s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_resolver-parsing_V1HOK3/gresolver/soa/valid/.dirs/cache 1267s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_resolver-parsing_V1HOK3/gresolver/soa/valid/.dirs/system-config1:/tmp/test_resolver-parsing_V1HOK3/gresolver/soa/valid/.dirs/system-config2 1267s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_resolver-parsing_V1HOK3/gresolver/soa/valid/.dirs/config 1267s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_resolver-parsing_V1HOK3/gresolver/soa/valid/.dirs/system-data1:/tmp/test_resolver-parsing_V1HOK3/gresolver/soa/valid/.dirs/system-data2 1267s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_resolver-parsing_V1HOK3/gresolver/soa/valid/.dirs/data 1267s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_resolver-parsing_V1HOK3/gresolver/soa/valid/.dirs/state 1267s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_resolver-parsing_V1HOK3/gresolver/soa/valid/.dirs/runtime 1267s ok 10 /gresolver/soa/valid 1267s # Start of invalid tests 1267s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_resolver-parsing_V1HOK3/gresolver/soa/invalid/mname/.dirs/home 1267s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_resolver-parsing_V1HOK3/gresolver/soa/invalid/mname/.dirs/cache 1267s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_resolver-parsing_V1HOK3/gresolver/soa/invalid/mname/.dirs/system-config1:/tmp/test_resolver-parsing_V1HOK3/gresolver/soa/invalid/mname/.dirs/system-config2 1267s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_resolver-parsing_V1HOK3/gresolver/soa/invalid/mname/.dirs/config 1267s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_resolver-parsing_V1HOK3/gresolver/soa/invalid/mname/.dirs/system-data1:/tmp/test_resolver-parsing_V1HOK3/gresolver/soa/invalid/mname/.dirs/system-data2 1267s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_resolver-parsing_V1HOK3/gresolver/soa/invalid/mname/.dirs/data 1267s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_resolver-parsing_V1HOK3/gresolver/soa/invalid/mname/.dirs/state 1267s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_resolver-parsing_V1HOK3/gresolver/soa/invalid/mname/.dirs/runtime 1267s ok 11 /gresolver/soa/invalid/mname 1267s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_resolver-parsing_V1HOK3/gresolver/soa/invalid/rname/.dirs/home 1267s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_resolver-parsing_V1HOK3/gresolver/soa/invalid/rname/.dirs/cache 1267s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_resolver-parsing_V1HOK3/gresolver/soa/invalid/rname/.dirs/system-config1:/tmp/test_resolver-parsing_V1HOK3/gresolver/soa/invalid/rname/.dirs/system-config2 1267s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_resolver-parsing_V1HOK3/gresolver/soa/invalid/rname/.dirs/config 1267s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_resolver-parsing_V1HOK3/gresolver/soa/invalid/rname/.dirs/system-data1:/tmp/test_resolver-parsing_V1HOK3/gresolver/soa/invalid/rname/.dirs/system-data2 1267s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_resolver-parsing_V1HOK3/gresolver/soa/invalid/rname/.dirs/data 1267s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_resolver-parsing_V1HOK3/gresolver/soa/invalid/rname/.dirs/state 1267s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_resolver-parsing_V1HOK3/gresolver/soa/invalid/rname/.dirs/runtime 1267s ok 12 /gresolver/soa/invalid/rname 1267s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_resolver-parsing_V1HOK3/gresolver/soa/invalid/too-short/.dirs/home 1267s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_resolver-parsing_V1HOK3/gresolver/soa/invalid/too-short/.dirs/cache 1267s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_resolver-parsing_V1HOK3/gresolver/soa/invalid/too-short/.dirs/system-config1:/tmp/test_resolver-parsing_V1HOK3/gresolver/soa/invalid/too-short/.dirs/system-config2 1267s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_resolver-parsing_V1HOK3/gresolver/soa/invalid/too-short/.dirs/config 1267s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_resolver-parsing_V1HOK3/gresolver/soa/invalid/too-short/.dirs/system-data1:/tmp/test_resolver-parsing_V1HOK3/gresolver/soa/invalid/too-short/.dirs/system-data2 1267s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_resolver-parsing_V1HOK3/gresolver/soa/invalid/too-short/.dirs/data 1267s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_resolver-parsing_V1HOK3/gresolver/soa/invalid/too-short/.dirs/state 1267s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_resolver-parsing_V1HOK3/gresolver/soa/invalid/too-short/.dirs/runtime 1267s ok 13 /gresolver/soa/invalid/too-short 1267s # End of invalid tests 1267s # End of soa tests 1267s # Start of srv tests 1267s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_resolver-parsing_V1HOK3/gresolver/srv/valid/.dirs/home 1267s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_resolver-parsing_V1HOK3/gresolver/srv/valid/.dirs/cache 1267s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_resolver-parsing_V1HOK3/gresolver/srv/valid/.dirs/system-config1:/tmp/test_resolver-parsing_V1HOK3/gresolver/srv/valid/.dirs/system-config2 1267s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_resolver-parsing_V1HOK3/gresolver/srv/valid/.dirs/config 1267s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_resolver-parsing_V1HOK3/gresolver/srv/valid/.dirs/system-data1:/tmp/test_resolver-parsing_V1HOK3/gresolver/srv/valid/.dirs/system-data2 1267s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_resolver-parsing_V1HOK3/gresolver/srv/valid/.dirs/data 1267s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_resolver-parsing_V1HOK3/gresolver/srv/valid/.dirs/state 1267s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_resolver-parsing_V1HOK3/gresolver/srv/valid/.dirs/runtime 1267s ok 14 /gresolver/srv/valid 1267s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_resolver-parsing_V1HOK3/gresolver/srv/invalid/.dirs/home 1267s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_resolver-parsing_V1HOK3/gresolver/srv/invalid/.dirs/cache 1267s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_resolver-parsing_V1HOK3/gresolver/srv/invalid/.dirs/system-config1:/tmp/test_resolver-parsing_V1HOK3/gresolver/srv/invalid/.dirs/system-config2 1267s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_resolver-parsing_V1HOK3/gresolver/srv/invalid/.dirs/config 1267s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_resolver-parsing_V1HOK3/gresolver/srv/invalid/.dirs/system-data1:/tmp/test_resolver-parsing_V1HOK3/gresolver/srv/invalid/.dirs/system-data2 1267s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_resolver-parsing_V1HOK3/gresolver/srv/invalid/.dirs/data 1267s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_resolver-parsing_V1HOK3/gresolver/srv/invalid/.dirs/state 1267s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_resolver-parsing_V1HOK3/gresolver/srv/invalid/.dirs/runtime 1267s ok 15 /gresolver/srv/invalid 1267s # Start of invalid tests 1267s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_resolver-parsing_V1HOK3/gresolver/srv/invalid/too-short/.dirs/home 1267s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_resolver-parsing_V1HOK3/gresolver/srv/invalid/too-short/.dirs/cache 1267s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_resolver-parsing_V1HOK3/gresolver/srv/invalid/too-short/.dirs/system-config1:/tmp/test_resolver-parsing_V1HOK3/gresolver/srv/invalid/too-short/.dirs/system-config2 1267s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_resolver-parsing_V1HOK3/gresolver/srv/invalid/too-short/.dirs/config 1267s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_resolver-parsing_V1HOK3/gresolver/srv/invalid/too-short/.dirs/system-data1:/tmp/test_resolver-parsing_V1HOK3/gresolver/srv/invalid/too-short/.dirs/system-data2 1267s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_resolver-parsing_V1HOK3/gresolver/srv/invalid/too-short/.dirs/data 1267s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_resolver-parsing_V1HOK3/gresolver/srv/invalid/too-short/.dirs/state 1267s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_resolver-parsing_V1HOK3/gresolver/srv/invalid/too-short/.dirs/runtime 1267s ok 16 /gresolver/srv/invalid/too-short 1267s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_resolver-parsing_V1HOK3/gresolver/srv/invalid/too-short2/.dirs/home 1267s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_resolver-parsing_V1HOK3/gresolver/srv/invalid/too-short2/.dirs/cache 1267s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_resolver-parsing_V1HOK3/gresolver/srv/invalid/too-short2/.dirs/system-config1:/tmp/test_resolver-parsing_V1HOK3/gresolver/srv/invalid/too-short2/.dirs/system-config2 1267s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_resolver-parsing_V1HOK3/gresolver/srv/invalid/too-short2/.dirs/config 1267s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_resolver-parsing_V1HOK3/gresolver/srv/invalid/too-short2/.dirs/system-data1:/tmp/test_resolver-parsing_V1HOK3/gresolver/srv/invalid/too-short2/.dirs/system-data2 1267s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_resolver-parsing_V1HOK3/gresolver/srv/invalid/too-short2/.dirs/data 1267s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_resolver-parsing_V1HOK3/gresolver/srv/invalid/too-short2/.dirs/state 1267s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_resolver-parsing_V1HOK3/gresolver/srv/invalid/too-short2/.dirs/runtime 1267s ok 17 /gresolver/srv/invalid/too-short2 1267s # End of invalid tests 1267s # End of srv tests 1267s # Start of txt tests 1267s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_resolver-parsing_V1HOK3/gresolver/txt/valid/.dirs/home 1267s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_resolver-parsing_V1HOK3/gresolver/txt/valid/.dirs/cache 1267s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_resolver-parsing_V1HOK3/gresolver/txt/valid/.dirs/system-config1:/tmp/test_resolver-parsing_V1HOK3/gresolver/txt/valid/.dirs/system-config2 1267s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_resolver-parsing_V1HOK3/gresolver/txt/valid/.dirs/config 1267s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_resolver-parsing_V1HOK3/gresolver/txt/valid/.dirs/system-data1:/tmp/test_resolver-parsing_V1HOK3/gresolver/txt/valid/.dirs/system-data2 1267s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_resolver-parsing_V1HOK3/gresolver/txt/valid/.dirs/data 1267s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_resolver-parsing_V1HOK3/gresolver/txt/valid/.dirs/state 1267s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_resolver-parsing_V1HOK3/gresolver/txt/valid/.dirs/runtime 1267s ok 18 /gresolver/txt/valid 1267s # Start of valid tests 1267s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_resolver-parsing_V1HOK3/gresolver/txt/valid/multiple-strings/.dirs/home 1267s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_resolver-parsing_V1HOK3/gresolver/txt/valid/multiple-strings/.dirs/cache 1267s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_resolver-parsing_V1HOK3/gresolver/txt/valid/multiple-strings/.dirs/system-config1:/tmp/test_resolver-parsing_V1HOK3/gresolver/txt/valid/multiple-strings/.dirs/system-config2 1267s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_resolver-parsing_V1HOK3/gresolver/txt/valid/multiple-strings/.dirs/config 1267s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_resolver-parsing_V1HOK3/gresolver/txt/valid/multiple-strings/.dirs/system-data1:/tmp/test_resolver-parsing_V1HOK3/gresolver/txt/valid/multiple-strings/.dirs/system-data2 1267s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_resolver-parsing_V1HOK3/gresolver/txt/valid/multiple-strings/.dirs/data 1267s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_resolver-parsing_V1HOK3/gresolver/txt/valid/multiple-strings/.dirs/state 1267s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_resolver-parsing_V1HOK3/gresolver/txt/valid/multiple-strings/.dirs/runtime 1267s ok 19 /gresolver/txt/valid/multiple-strings 1267s # End of valid tests 1267s # Start of invalid tests 1267s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_resolver-parsing_V1HOK3/gresolver/txt/invalid/empty/.dirs/home 1267s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_resolver-parsing_V1HOK3/gresolver/txt/invalid/empty/.dirs/cache 1267s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_resolver-parsing_V1HOK3/gresolver/txt/invalid/empty/.dirs/system-config1:/tmp/test_resolver-parsing_V1HOK3/gresolver/txt/invalid/empty/.dirs/system-config2 1267s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_resolver-parsing_V1HOK3/gresolver/txt/invalid/empty/.dirs/config 1267s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_resolver-parsing_V1HOK3/gresolver/txt/invalid/empty/.dirs/system-data1:/tmp/test_resolver-parsing_V1HOK3/gresolver/txt/invalid/empty/.dirs/system-data2 1267s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_resolver-parsing_V1HOK3/gresolver/txt/invalid/empty/.dirs/data 1267s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_resolver-parsing_V1HOK3/gresolver/txt/invalid/empty/.dirs/state 1267s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_resolver-parsing_V1HOK3/gresolver/txt/invalid/empty/.dirs/runtime 1267s ok 20 /gresolver/txt/invalid/empty 1267s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_resolver-parsing_V1HOK3/gresolver/txt/invalid/overflow/.dirs/home 1267s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_resolver-parsing_V1HOK3/gresolver/txt/invalid/overflow/.dirs/cache 1267s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_resolver-parsing_V1HOK3/gresolver/txt/invalid/overflow/.dirs/system-config1:/tmp/test_resolver-parsing_V1HOK3/gresolver/txt/invalid/overflow/.dirs/system-config2 1267s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_resolver-parsing_V1HOK3/gresolver/txt/invalid/overflow/.dirs/config 1267s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_resolver-parsing_V1HOK3/gresolver/txt/invalid/overflow/.dirs/system-data1:/tmp/test_resolver-parsing_V1HOK3/gresolver/txt/invalid/overflow/.dirs/system-data2 1267s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_resolver-parsing_V1HOK3/gresolver/txt/invalid/overflow/.dirs/data 1267s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_resolver-parsing_V1HOK3/gresolver/txt/invalid/overflow/.dirs/state 1267s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_resolver-parsing_V1HOK3/gresolver/txt/invalid/overflow/.dirs/runtime 1267s ok 21 /gresolver/txt/invalid/overflow 1267s # End of invalid tests 1267s # End of txt tests 1267s # End of gresolver tests 1267s TAP version 14 1267s # random seed: R02S5c8d50e086d37f61845fda5a578b19ef 1267s 1..5 1267s # Start of gio tests 1267s # Start of contexts tests 1267s # GLib-GIO-DEBUG: _g_io_module_get_default: Found default implementation local (GLocalVfs) for ‘gio-vfs’ 1267s ok 1 /gio/contexts/thread-independence 1267s ok 2 /gio/contexts/context-independence 1267s # Start of context-specific tests 1267s ok 3 /gio/contexts/context-specific/identity 1267s ok 4 /gio/contexts/context-specific/emit 1267s ok 5 /gio/contexts/context-specific/emit-and-unref 1267s # End of context-specific tests 1267s # End of contexts tests 1267s # End of gio tests 1267s ok - glib/contexts.test 1267s # Running test: glib/deprecated-properties.test 1267s TAP version 14 1267s # random seed: R02S4cea2ab9fa73cc4f2511cdc0593e8d95 1267s 1..3 1267s # Start of deprecated-properties tests 1267s ok 1 /deprecated-properties/construct 1267s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/2748 1267s ok 2 /deprecated-properties/default-construct 1267s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/2748 1267s ok 3 /deprecated-properties/set 1267s # End of deprecated-properties tests 1267s ok - glib/deprecated-properties.test 1267s # Running test: glib/pattern.test 1267s TAP version 14 1267s # random seed: R02S90319c154cc34181fd1bc6d0225a59dc 1267s 1..90 1267s # Start of pattern tests 1267s # Start of compile tests 1267s ok 1 /pattern/compile/0 1267s ok 2 /pattern/compile/1 1267s ok 3 /pattern/compile/2 1267s ok 4 /pattern/compile/3 1267s ok 5 /pattern/compile/4 1267s ok 6 /pattern/compile/5 1267s ok 7 /pattern/compile/6 1267s ok 8 /pattern/compile/7 1267s ok 9 /pattern/compile/8 1267s ok 10 /pattern/compile/9 1267s ok 11 /pattern/compile/10 1267s ok 12 /pattern/compile/11 1267s ok 13 /pattern/compile/12 1267s ok 14 /pattern/compile/13 1267s # End of compile tests 1267s # Start of copy tests 1267s ok 15 /pattern/copy/0 1267s ok 16 /pattern/copy/1 1267s ok 17 /pattern/copy/2 1267s ok 18 /pattern/copy/3 1267s ok 19 /pattern/copy/4 1267s ok 20 /pattern/copy/5 1267s ok 21 /pattern/copy/6 1267s ok 22 /pattern/copy/7 1267s ok 23 /pattern/copy/8 1267s ok 24 /pattern/copy/9 1267s ok 25 /pattern/copy/10 1267s ok 26 /pattern/copy/11 1267s ok 27 /pattern/copy/12 1267s ok 28 /pattern/copy/13 1267s # End of copy tests 1267s # Start of match tests 1267s ok 29 /pattern/match/0 1267s ok 30 /pattern/match/1 1267s ok 31 /pattern/match/2 1267s ok 32 /pattern/match/3 1267s ok 33 /pattern/match/4 1267s ok 34 /pattern/match/5 1267s ok 35 /pattern/match/6 1267s ok 36 /pattern/match/7 1267s ok 37 /pattern/match/8 1267s ok 38 /pattern/match/9 1267s ok 39 /pattern/match/10 1267s ok 40 /pattern/match/11 1267s ok 41 /pattern/match/12 1267s ok 42 /pattern/match/13 1267s ok 43 /pattern/match/14 1267s ok 44 /pattern/match/15 1267s ok 45 /pattern/match/16 1267s ok 46 /pattern/match/17 1267s ok 47 /pattern/match/18 1267s ok 48 /pattern/match/19 1267s ok 49 /pattern/match/20 1267s ok 50 /pattern/match/21 1267s ok 51 /pattern/match/22 1267s ok 52 /pattern/match/23 1267s ok 53 /pattern/match/24 1267s ok 54 /pattern/match/25 1267s ok 55 /pattern/match/26 1267s ok 56 /pattern/match/27 1267s ok 57 /pattern/match/28 1267s ok 58 /pattern/match/29 1267s ok 59 /pattern/match/30 1267s ok 60 /pattern/match/31 1267s ok 61 /pattern/match/32 1267s ok 62 /pattern/match/33 1267s ok 63 /pattern/match/34 1267s ok 64 /pattern/match/35 1267s ok 65 /pattern/match/36 1267s ok 66 /pattern/match/37 1267s ok 67 /pattern/match/38 1267s ok 68 /pattern/match/39 1267s ok 69 /pattern/match/40 1267s ok 70 /pattern/match/41 1267s ok 71 /pattern/match/42 1267s ok 72 /pattern/match/43 1267s ok 73 /pattern/match/44 1267s ok 74 /pattern/match/45 1267s ok 75 /pattern/match/46 1267s ok 76 /pattern/match/47 1267s ok 77 /pattern/match/48 1267s ok 78 /pattern/match/49 1267s ok 79 /pattern/match/50 1267s # End of match tests 1267s # Start of equal tests 1267s ok 80 /pattern/equal/0 1267s ok 81 /pattern/equal/1 1267s ok 82 /pattern/equal/2 1267s ok 83 /pattern/equal/3 1267s ok 84 /pattern/equal/4 1267s ok 85 /pattern/equal/5 1267s ok 86 /pattern/equal/6 1267s ok 87 /pattern/equal/7 1267s ok 88 /pattern/equal/8 1267s ok 89 /pattern/equal/9 1267s ok 90 /pattern/equal/10 1267s # End of equal tests 1267s # End of pattern tests 1267s ok - glib/pattern.test 1267s # Running test: glib/markup-subparser.test 1267s TAP version 14 1267s # random seed: R02S7d30665d4e0299d10c444903ddbd8258 1267s 1..14 1267s # Start of glib tests 1267s # Start of markup tests 1267s # Start of subparser tests 1267s # Start of success tests 1267s ok 1 /glib/markup/subparser/success/0 1267s ok 2 /glib/markup/subparser/success/1 1267s ok 3 /glib/markup/subparser/success/2 1267s ok 4 /glib/markup/subparser/success/3 1267s ok 5 /glib/markup/subparser/success/4 1267s ok 6 /glib/markup/subparser/success/5 1267s ok 7 /glib/markup/subparser/success/6 1267s # End of success tests 1267s # Start of failure tests 1267s ok 8 /glib/markup/subparser/failure/0 1267s ok 9 /glib/markup/subparser/failure/1 1267s ok 10 /glib/markup/subparser/failure/2 1267s ok 11 /glib/markup/subparser/failure/3 1267s ok 12 /glib/markup/subparser/failure/4 1267s ok 13 /glib/markup/subparser/failure/5 1267s ok 14 /glib/markup/subparser/failure/6 1267s # End of failure tests 1267s # End of subparser tests 1267s # End of markup tests 1267s # End of glib tests 1267s ok - glib/markup-subparser.test 1267s # Running test: glib/gdbus-proxy.test 1267s TAP version 14 1267s # random seed: R02S5146d8ae941eb1be9f1ace84f99ad632 1267s 1..5 1267s # Start of gdbus tests 1267s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-proxy_DAAIK3/gdbus/proxy/.dirs/home 1267s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-proxy_DAAIK3/gdbus/proxy/.dirs/cache 1267s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-proxy_DAAIK3/gdbus/proxy/.dirs/system-config1:/tmp/test_gdbus-proxy_DAAIK3/gdbus/proxy/.dirs/system-config2 1267s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-proxy_DAAIK3/gdbus/proxy/.dirs/config 1267s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-proxy_DAAIK3/gdbus/proxy/.dirs/system-data1:/tmp/test_gdbus-proxy_DAAIK3/gdbus/proxy/.dirs/system-data2 1267s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-proxy_DAAIK3/gdbus/proxy/.dirs/data 1267s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-proxy_DAAIK3/gdbus/proxy/.dirs/state 1267s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-proxy_DAAIK3/gdbus/proxy/.dirs/runtime 1269s ok 1 /gdbus/proxy 1269s # slow test /gdbus/proxy executed in 1.74 secs 1269s # Start of proxy tests 1269s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-proxy_DAAIK3/gdbus/proxy/no-properties/.dirs/home 1269s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-proxy_DAAIK3/gdbus/proxy/no-properties/.dirs/cache 1269s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-proxy_DAAIK3/gdbus/proxy/no-properties/.dirs/system-config1:/tmp/test_gdbus-proxy_DAAIK3/gdbus/proxy/no-properties/.dirs/system-config2 1269s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-proxy_DAAIK3/gdbus/proxy/no-properties/.dirs/config 1269s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-proxy_DAAIK3/gdbus/proxy/no-properties/.dirs/system-data1:/tmp/test_gdbus-proxy_DAAIK3/gdbus/proxy/no-properties/.dirs/system-data2 1269s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-proxy_DAAIK3/gdbus/proxy/no-properties/.dirs/data 1269s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-proxy_DAAIK3/gdbus/proxy/no-properties/.dirs/state 1269s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-proxy_DAAIK3/gdbus/proxy/no-properties/.dirs/runtime 1269s ok 2 /gdbus/proxy/no-properties 1269s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-proxy_DAAIK3/gdbus/proxy/wellknown-noauto/.dirs/home 1269s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-proxy_DAAIK3/gdbus/proxy/wellknown-noauto/.dirs/cache 1269s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-proxy_DAAIK3/gdbus/proxy/wellknown-noauto/.dirs/system-config1:/tmp/test_gdbus-proxy_DAAIK3/gdbus/proxy/wellknown-noauto/.dirs/system-config2 1269s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-proxy_DAAIK3/gdbus/proxy/wellknown-noauto/.dirs/config 1269s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-proxy_DAAIK3/gdbus/proxy/wellknown-noauto/.dirs/system-data1:/tmp/test_gdbus-proxy_DAAIK3/gdbus/proxy/wellknown-noauto/.dirs/system-data2 1269s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-proxy_DAAIK3/gdbus/proxy/wellknown-noauto/.dirs/data 1269s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-proxy_DAAIK3/gdbus/proxy/wellknown-noauto/.dirs/state 1269s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-proxy_DAAIK3/gdbus/proxy/wellknown-noauto/.dirs/runtime 1269s ok 3 /gdbus/proxy/wellknown-noauto 1269s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-proxy_DAAIK3/gdbus/proxy/async/.dirs/home 1269s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-proxy_DAAIK3/gdbus/proxy/async/.dirs/cache 1269s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-proxy_DAAIK3/gdbus/proxy/async/.dirs/system-config1:/tmp/test_gdbus-proxy_DAAIK3/gdbus/proxy/async/.dirs/system-config2 1269s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-proxy_DAAIK3/gdbus/proxy/async/.dirs/config 1269s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-proxy_DAAIK3/gdbus/proxy/async/.dirs/system-data1:/tmp/test_gdbus-proxy_DAAIK3/gdbus/proxy/async/.dirs/system-data2 1269s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-proxy_DAAIK3/gdbus/proxy/async/.dirs/data 1269s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-proxy_DAAIK3/gdbus/proxy/async/.dirs/state 1269s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-proxy_DAAIK3/gdbus/proxy/async/.dirs/runtime 1270s # Executing: glib/gdbus-proxy.test 1271s ok 4 /gdbus/proxy/async 1271s # slow test /gdbus/proxy/async executed in 1.74 secs 1271s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-proxy_DAAIK3/gdbus/proxy/no-match-rule/.dirs/home 1271s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-proxy_DAAIK3/gdbus/proxy/no-match-rule/.dirs/cache 1271s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-proxy_DAAIK3/gdbus/proxy/no-match-rule/.dirs/system-config1:/tmp/test_gdbus-proxy_DAAIK3/gdbus/proxy/no-match-rule/.dirs/system-config2 1271s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-proxy_DAAIK3/gdbus/proxy/no-match-rule/.dirs/config 1271s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-proxy_DAAIK3/gdbus/proxy/no-match-rule/.dirs/system-data1:/tmp/test_gdbus-proxy_DAAIK3/gdbus/proxy/no-match-rule/.dirs/system-data2 1271s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-proxy_DAAIK3/gdbus/proxy/no-match-rule/.dirs/data 1271s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-proxy_DAAIK3/gdbus/proxy/no-match-rule/.dirs/state 1271s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-proxy_DAAIK3/gdbus/proxy/no-match-rule/.dirs/runtime 1271s # /gdbus/proxy/no-match-rule summary: Test that G_DBUS_PROXY_FLAGS_NO_MATCH_RULE works 1271s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/1109 1273s ok 5 /gdbus/proxy/no-match-rule 1273s # slow test /gdbus/proxy/no-match-rule executed in 1.74 secs 1273s # End of proxy tests 1273s # End of gdbus tests 1273s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1273s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1273s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1273s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1273s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1273s ok - glib/gdbus-proxy.test 1273s # Running test: glib/inet-address.test 1273s TAP version 14 1273s # random seed: R02S2cc7feed9a978606cdbc2c0513e324f1 1273s 1..11 1273s # Start of inet-address tests 1273s # GLib-GIO-DEBUG: getaddrinfo failed to resolve host string ::1::2 1273s # GLib-GIO-DEBUG: getaddrinfo failed to resolve host string 2001:1:2:3:4:5:6:7] 1273s # GLib-GIO-DEBUG: getaddrinfo failed to resolve host string [2001:1:2:3:4:5:6:7 1273s # GLib-GIO-DEBUG: getaddrinfo failed to resolve host string [2001:1:2:3:4:5:6:7] 1273s # GLib-GIO-DEBUG: getaddrinfo failed to resolve host string [2001:1:2:3:4:5:6:7]:80 1273s # GLib-GIO-DEBUG: getaddrinfo failed to resolve host string 0:1:2:3:4:5:6:7:8:9 1273s # GLib-GIO-DEBUG: getaddrinfo failed to resolve host string ::FFFFFFF 1273s # GLib-GIO-DEBUG: getaddrinfo failed to resolve host string 204.152.189.116:80 1273s ok 1 /inet-address/parse 1273s ok 2 /inet-address/any 1273s ok 3 /inet-address/loopback 1273s ok 4 /inet-address/bytes 1273s ok 5 /inet-address/property 1273s # End of inet-address tests 1273s # Start of socket-address tests 1273s ok 6 /socket-address/basic 1273s ok 7 /socket-address/to-string 1273s # End of socket-address tests 1273s # Start of address-mask tests 1273s ok 8 /address-mask/parse 1273s ok 9 /address-mask/property 1273s ok 10 /address-mask/equal 1273s ok 11 /address-mask/match 1273s # End of address-mask tests 1273s ok - glib/inet-address.test 1273s # Running test: glib/gdbus-test-codegen-old.test 1273s TAP version 14 1273s # random seed: R02Se62c357c0c8adf2979fece7c4f44ea12 1273s 1..8 1273s # Start of gdbus tests 1273s # Start of codegen tests 1273s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-test-codegen-old_554AK3/gdbus/codegen/annotations/.dirs/home 1273s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-test-codegen-old_554AK3/gdbus/codegen/annotations/.dirs/cache 1273s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-test-codegen-old_554AK3/gdbus/codegen/annotations/.dirs/system-config1:/tmp/test_gdbus-test-codegen-old_554AK3/gdbus/codegen/annotations/.dirs/system-config2 1273s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-test-codegen-old_554AK3/gdbus/codegen/annotations/.dirs/config 1273s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-test-codegen-old_554AK3/gdbus/codegen/annotations/.dirs/system-data1:/tmp/test_gdbus-test-codegen-old_554AK3/gdbus/codegen/annotations/.dirs/system-data2 1273s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-test-codegen-old_554AK3/gdbus/codegen/annotations/.dirs/data 1273s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-test-codegen-old_554AK3/gdbus/codegen/annotations/.dirs/state 1273s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-test-codegen-old_554AK3/gdbus/codegen/annotations/.dirs/runtime 1273s ok 1 /gdbus/codegen/annotations 1273s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-test-codegen-old_554AK3/gdbus/codegen/interface_stability/.dirs/home 1273s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-test-codegen-old_554AK3/gdbus/codegen/interface_stability/.dirs/cache 1273s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-test-codegen-old_554AK3/gdbus/codegen/interface_stability/.dirs/system-config1:/tmp/test_gdbus-test-codegen-old_554AK3/gdbus/codegen/interface_stability/.dirs/system-config2 1273s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-test-codegen-old_554AK3/gdbus/codegen/interface_stability/.dirs/config 1273s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-test-codegen-old_554AK3/gdbus/codegen/interface_stability/.dirs/system-data1:/tmp/test_gdbus-test-codegen-old_554AK3/gdbus/codegen/interface_stability/.dirs/system-data2 1273s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-test-codegen-old_554AK3/gdbus/codegen/interface_stability/.dirs/data 1273s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-test-codegen-old_554AK3/gdbus/codegen/interface_stability/.dirs/state 1273s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-test-codegen-old_554AK3/gdbus/codegen/interface_stability/.dirs/runtime 1273s ok 2 /gdbus/codegen/interface_stability 1273s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-test-codegen-old_554AK3/gdbus/codegen/object-manager/.dirs/home 1273s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-test-codegen-old_554AK3/gdbus/codegen/object-manager/.dirs/cache 1273s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-test-codegen-old_554AK3/gdbus/codegen/object-manager/.dirs/system-config1:/tmp/test_gdbus-test-codegen-old_554AK3/gdbus/codegen/object-manager/.dirs/system-config2 1273s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-test-codegen-old_554AK3/gdbus/codegen/object-manager/.dirs/config 1273s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-test-codegen-old_554AK3/gdbus/codegen/object-manager/.dirs/system-data1:/tmp/test_gdbus-test-codegen-old_554AK3/gdbus/codegen/object-manager/.dirs/system-data2 1273s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-test-codegen-old_554AK3/gdbus/codegen/object-manager/.dirs/data 1273s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-test-codegen-old_554AK3/gdbus/codegen/object-manager/.dirs/state 1273s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-test-codegen-old_554AK3/gdbus/codegen/object-manager/.dirs/runtime 1273s ok 3 /gdbus/codegen/object-manager 1273s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-test-codegen-old_554AK3/gdbus/codegen/property-naming/.dirs/home 1273s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-test-codegen-old_554AK3/gdbus/codegen/property-naming/.dirs/cache 1273s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-test-codegen-old_554AK3/gdbus/codegen/property-naming/.dirs/system-config1:/tmp/test_gdbus-test-codegen-old_554AK3/gdbus/codegen/property-naming/.dirs/system-config2 1273s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-test-codegen-old_554AK3/gdbus/codegen/property-naming/.dirs/config 1273s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-test-codegen-old_554AK3/gdbus/codegen/property-naming/.dirs/system-data1:/tmp/test_gdbus-test-codegen-old_554AK3/gdbus/codegen/property-naming/.dirs/system-data2 1273s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-test-codegen-old_554AK3/gdbus/codegen/property-naming/.dirs/data 1273s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-test-codegen-old_554AK3/gdbus/codegen/property-naming/.dirs/state 1273s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-test-codegen-old_554AK3/gdbus/codegen/property-naming/.dirs/runtime 1273s ok 4 /gdbus/codegen/property-naming 1273s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-test-codegen-old_554AK3/gdbus/codegen/autocleanups/.dirs/home 1273s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-test-codegen-old_554AK3/gdbus/codegen/autocleanups/.dirs/cache 1273s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-test-codegen-old_554AK3/gdbus/codegen/autocleanups/.dirs/system-config1:/tmp/test_gdbus-test-codegen-old_554AK3/gdbus/codegen/autocleanups/.dirs/system-config2 1273s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-test-codegen-old_554AK3/gdbus/codegen/autocleanups/.dirs/config 1273s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-test-codegen-old_554AK3/gdbus/codegen/autocleanups/.dirs/system-data1:/tmp/test_gdbus-test-codegen-old_554AK3/gdbus/codegen/autocleanups/.dirs/system-data2 1273s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-test-codegen-old_554AK3/gdbus/codegen/autocleanups/.dirs/data 1273s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-test-codegen-old_554AK3/gdbus/codegen/autocleanups/.dirs/state 1273s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-test-codegen-old_554AK3/gdbus/codegen/autocleanups/.dirs/runtime 1273s ok 5 /gdbus/codegen/autocleanups 1273s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-test-codegen-old_554AK3/gdbus/codegen/deprecations/.dirs/home 1273s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-test-codegen-old_554AK3/gdbus/codegen/deprecations/.dirs/cache 1273s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-test-codegen-old_554AK3/gdbus/codegen/deprecations/.dirs/system-config1:/tmp/test_gdbus-test-codegen-old_554AK3/gdbus/codegen/deprecations/.dirs/system-config2 1273s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-test-codegen-old_554AK3/gdbus/codegen/deprecations/.dirs/config 1273s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-test-codegen-old_554AK3/gdbus/codegen/deprecations/.dirs/system-data1:/tmp/test_gdbus-test-codegen-old_554AK3/gdbus/codegen/deprecations/.dirs/system-data2 1273s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-test-codegen-old_554AK3/gdbus/codegen/deprecations/.dirs/data 1273s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-test-codegen-old_554AK3/gdbus/codegen/deprecations/.dirs/state 1273s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-test-codegen-old_554AK3/gdbus/codegen/deprecations/.dirs/runtime 1273s ok 6 /gdbus/codegen/deprecations 1273s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-test-codegen-old_554AK3/gdbus/codegen/standalone-interface-info/.dirs/home 1273s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-test-codegen-old_554AK3/gdbus/codegen/standalone-interface-info/.dirs/cache 1273s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-test-codegen-old_554AK3/gdbus/codegen/standalone-interface-info/.dirs/system-config1:/tmp/test_gdbus-test-codegen-old_554AK3/gdbus/codegen/standalone-interface-info/.dirs/system-config2 1273s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-test-codegen-old_554AK3/gdbus/codegen/standalone-interface-info/.dirs/config 1273s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-test-codegen-old_554AK3/gdbus/codegen/standalone-interface-info/.dirs/system-data1:/tmp/test_gdbus-test-codegen-old_554AK3/gdbus/codegen/standalone-interface-info/.dirs/system-data2 1273s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-test-codegen-old_554AK3/gdbus/codegen/standalone-interface-info/.dirs/data 1273s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-test-codegen-old_554AK3/gdbus/codegen/standalone-interface-info/.dirs/state 1273s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-test-codegen-old_554AK3/gdbus/codegen/standalone-interface-info/.dirs/runtime 1273s ok 7 /gdbus/codegen/standalone-interface-info 1273s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-test-codegen-old_554AK3/gdbus/codegen/unix-fd-list/.dirs/home 1273s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-test-codegen-old_554AK3/gdbus/codegen/unix-fd-list/.dirs/cache 1273s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-test-codegen-old_554AK3/gdbus/codegen/unix-fd-list/.dirs/system-config1:/tmp/test_gdbus-test-codegen-old_554AK3/gdbus/codegen/unix-fd-list/.dirs/system-config2 1273s ok - glib/gdbus-test-codegen-old.test 1273s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-test-codegen-old_554AK3/gdbus/codegen/unix-fd-list/.dirs/config 1273s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-test-codegen-old_554AK3/gdbus/codegen/unix-fd-list/.dirs/system-data1:/tmp/test_gdbus-test-codegen-old_554AK3/gdbus/codegen/unix-fd-list/.dirs/system-data2 1273s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-test-codegen-old_554AK3/gdbus/codegen/unix-fd-list/.dirs/data 1273s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-test-codegen-old_554AK3/gdbus/codegen/unix-fd-list/.dirs/state 1273s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-test-codegen-old_554AK3/gdbus/codegen/unix-fd-list/.dirs/runtime 1273s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/issues/1726 1273s ok 8 /gdbus/codegen/unix-fd-list 1273s # End of codegen tests 1273s # End of gdbus tests 1273s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1273s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1273s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1273s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1273s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1273s # Running test: glib/gapplication.test 1273s TAP version 14 1273s # random seed: R02S15c31a3fce17a21c02403a237393c478 1273s 1..25 1273s # Start of gapplication tests 1273s ok 1 /gapplication/no-dbus 1273s ok 2 /gapplication/no-appid 1273s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1273s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1273s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1273s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1273s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1273s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1273s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1273s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1273s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1273s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1273s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1273s ok 3 /gapplication/properties 1273s ok 4 /gapplication/app-id 1273s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1273s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1273s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1273s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1273s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1273s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1273s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1273s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1273s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1273s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1273s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1273s ok 5 /gapplication/quit 1273s ok 6 /gapplication/registered 1273s ok 7 /gapplication/local-actions 1273s ok 8 /gapplication/local-command-line 1273s ok 9 /gapplication/resource-path 1273s ok 10 /gapplication/test-help 1273s ok 11 /gapplication/command-line-done 1273s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1273s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1273s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1273s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1273s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1273s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1273s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1273s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1273s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1273s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1273s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1273s ok 12 /gapplication/test-busy 1273s ok 13 /gapplication/test-handle-local-options1 1273s ok 14 /gapplication/test-handle-local-options2 1273s ok 15 /gapplication/test-handle-local-options3 1273s ok 16 /gapplication/api 1273s ok 17 /gapplication/version 1273s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1273s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1273s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1273s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1273s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1273s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1273s # launching subprocess 1274s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1275s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1275s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1275s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1275s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1275s ok 18 /gapplication/replace 1275s ok - glib/gapplication.test 1275s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1275s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1275s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1275s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1275s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1275s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1275s # launching subprocess 1275s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1275s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1275s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1275s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1275s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1275s ok 19 /gapplication/no-replace 1275s # slow test /gapplication/no-replace executed in 0.51 secs 1275s # Start of command-line tests 1275s # /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 1275s ok 20 /gapplication/command-line/arguments 1275s # End of command-line tests 1275s # Start of dbus tests 1275s # /gapplication/dbus/activate summary: Test that calling the Activate D-Bus method works 1275s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1275s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1275s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1275s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1275s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1275s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1275s # Message 0 1275s # Message 1 1275s # Message 2 1275s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1275s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1275s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1275s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1275s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1275s ok 21 /gapplication/dbus/activate 1275s # /gapplication/dbus/open summary: Test that calling the Open D-Bus method works 1275s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1275s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1275s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1275s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1275s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1275s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1275s # Message 0 1275s # GLib-GIO-DEBUG: _g_io_module_get_default: Found default implementation local (GLocalVfs) for ‘gio-vfs’ 1275s # Message 1 1275s # Message 2 1275s # Message 3 1275s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1275s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1275s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1275s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1275s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1275s ok 22 /gapplication/dbus/open 1275s # /gapplication/dbus/command-line summary: Test that calling the CommandLine D-Bus method works 1275s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1275s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1275s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1275s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1275s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1275s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1275s # Message 0 1275s # Message 1 1275s # Message 2 1275s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1275s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1275s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1275s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1275s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1275s ok 23 /gapplication/dbus/command-line 1275s # /gapplication/dbus/command-line-done summary: Test that GDBusCommandLine.done() works 1275s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1275s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1275s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1275s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1275s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1275s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1275s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1275s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1275s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1275s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1275s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1275s ok 24 /gapplication/dbus/command-line-done 1275s # /gapplication/dbus/activate-action summary: Test that calling the ActivateAction D-Bus method works 1275s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1275s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1275s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1275s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1275s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1275s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1275s # Message 0 1275s # Message 1 1275s # Message 2 1275s # Message 3 1275s # Message 4 1275s # Message 5 1275s # Message 6 1275s # Message 7 1275s # Message 8 1275s # Message 9 1275s # Message 10 1275s # Message 11 1275s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1275s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1275s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1275s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1275s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1275s ok 25 /gapplication/dbus/activate-action 1275s # End of dbus tests 1275s # End of gapplication tests 1275s TAP version 14 1275s # random seed: R02Sd42992eb0f4e8846d9d87fdad837a265 1275s 1..2 1275s # Start of socket tests 1275s # Start of address tests 1275s # Start of unix tests 1275s ok 1 /socket/address/unix/construct 1275s ok 2 /socket/address/unix/to-string 1275s # End of unix tests 1275s # End of address tests 1275s # End of socket tests 1275s TAP version 14 1275s # random seed: R02S340f1c35c3278c905bdbd8991242eff4 1275s 1..1 1275s # Start of utils tests 1275s ok 1 /utils/xdgdirs 1275s # End of utils tests 1275s TAP version 14 1275s # random seed: R02S3099dd7bfaae67ac6f0eeed897fdcb47 1275s 1..17 1275s # Start of thread tests 1275s ok 1 /thread/mutex1 1275s ok 2 /thread/mutex2 1275s ok 3 /thread/mutex3 1275s ok 4 /thread/mutex4 1275s # Running test: glib/socket-address.test 1275s ok - glib/socket-address.test 1275s # Running test: glib/utils-unisolated.test 1275s ok - glib/utils-unisolated.test 1275s # Running test: glib/mutex.test 1275s # Executing: glib/mutex.test 1275s ok 5 /thread/mutex5 1275s # slow test /thread/mutex5 executed in 1.82 secs 1275s # Start of mutex tests 1275s # /thread/mutex/errno summary: Validates that errno is not touched upon return 1275s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 1275s # /thread/mutex/errno summary: Validates that errno is not touched upon return 1275s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 1275s # /thread/mutex/errno summary: Validates that errno is not touched upon return 1275s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 1275s # /thread/mutex/errno summary: Validates that errno is not touched upon return 1275s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 1275s # /thread/mutex/errno summary: Validates that errno is not touched upon return 1275s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 1275s # /thread/mutex/errno summary: Validates that errno is not touched upon return 1275s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 1275s # /thread/mutex/errno summary: Validates that errno is not touched upon return 1275s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 1275s # /thread/mutex/errno summary: Validates that errno is not touched upon return 1275s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 1275s # /thread/mutex/errno summary: Validates that errno is not touched upon return 1275s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 1275s # /thread/mutex/errno summary: Validates that errno is not touched upon return 1275s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 1275s # /thread/mutex/errno summary: Validates that errno is not touched upon return 1275s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 1275s # /thread/mutex/errno summary: Validates that errno is not touched upon return 1275s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 1275s # /thread/mutex/errno summary: Validates that errno is not touched upon return 1275s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 1275s # /thread/mutex/errno summary: Validates that errno is not touched upon return 1275s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 1275s # /thread/mutex/errno summary: Validates that errno is not touched upon return 1275s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 1275s # /thread/mutex/errno summary: Validates that errno is not touched upon return 1275s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 1275s # /thread/mutex/errno summary: Validates that errno is not touched upon return 1275s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 1275s # /thread/mutex/errno summary: Validates that errno is not touched upon return 1275s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 1275s # /thread/mutex/errno summary: Validates that errno is not touched upon return 1275s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 1275s # /thread/mutex/errno summary: Validates that errno is not touched upon return 1275s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 1275s # /thread/mutex/errno summary: Validates that errno is not touched upon return 1275s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 1275s # /thread/mutex/errno summary: Validates that errno is not touched upon return 1275s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 1275s # /thread/mutex/errno summary: Validates that errno is not touched upon return 1275s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 1275s # /thread/mutex/errno summary: Validates that errno is not touched upon return 1275s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 1275s # /thread/mutex/errno summary: Validates that errno is not touched upon return 1275s # /thread/mutex/errno summary: Validates that errno is not touched upon return 1275s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 1275s # /thread/mutex/errno summary: Validates that errno is not touched upon return 1275s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 1275s # /thread/mutex/errno summary: Validates that errno is not touched upon return 1275s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 1275s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 1275s # /thread/mutex/errno summary: Validates that errno is not touched upon return 1275s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 1275s # /thread/mutex/errno summary: Validates that errno is not touched upon return 1275s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 1275s # /thread/mutex/errno summary: Validates that errno is not touched upon return 1275s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 1275s # /thread/mutex/errno summary: Validates that errno is not touched upon return 1275s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 1275s # /thread/mutex/errno summary: Validates that errno is not touched upon return 1275s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 1275s # /thread/mutex/errno summary: Validates that errno is not touched upon return 1275s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 1275s # /thread/mutex/errno summary: Validates that errno is not touched upon return 1275s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 1275s # /thread/mutex/errno summary: Validates that errno is not touched upon return 1275s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 1275s # /thread/mutex/errno summary: Validates that errno is not touched upon return 1275s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 1275s # /thread/mutex/errno summary: Validates that errno is not touched upon return 1275s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 1275s # /thread/mutex/errno summary: Validates that errno is not touched upon return 1275s # /thread/mutex/errno summary: Validates that errno is not touched upon return 1275s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 1275s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 1275s # /thread/mutex/errno summary: Validates that errno is not touched upon return 1275s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 1275s # /thread/mutex/errno summary: Validates that errno is not touched upon return 1275s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 1275s # /thread/mutex/errno summary: Validates that errno is not touched upon return 1275s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 1275s # /thread/mutex/errno summary: Validates that errno is not touched upon return 1275s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 1275s # /thread/mutex/errno summary: Validates that errno is not touched upon return 1275s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 1275s # /thread/mutex/errno summary: Validates that errno is not touched upon return 1275s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 1275s # /thread/mutex/errno summary: Validates that errno is not touched upon return 1275s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 1275s # /thread/mutex/errno summary: Validates that errno is not touched upon return 1275s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 1275s # /thread/mutex/errno summary: Validates that errno is not touched upon return 1275s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 1275s # /thread/mutex/errno summary: Validates that errno is not touched upon return 1275s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 1275s # /thread/mutex/errno summary: Validates that errno is not touched upon return 1275s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 1275s # /thread/mutex/errno summary: Validates that errno is not touched upon return 1275s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 1275s # /thread/mutex/errno summary: Validates that errno is not touched upon return 1275s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 1275s # /thread/mutex/errno summary: Validates that errno is not touched upon return 1275s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 1275s # /thread/mutex/errno summary: Validates that errno is not touched upon return 1275s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 1275s # /thread/mutex/errno summary: Validates that errno is not touched upon return 1275s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 1275s # /thread/mutex/errno summary: Validates that errno is not touched upon return 1275s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 1275s # /thread/mutex/errno summary: Validates that errno is not touched upon return 1275s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 1275s # /thread/mutex/errno summary: Validates that errno is not touched upon return 1275s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 1275s # /thread/mutex/errno summary: Validates that errno is not touched upon return 1275s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 1275s # /thread/mutex/errno summary: Validates that errno is not touched upon return 1275s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 1275s # /thread/mutex/errno summary: Validates that errno is not touched upon return 1275s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 1275s # /thread/mutex/errno summary: Validates that errno is not touched upon return 1275s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 1275s # /thread/mutex/errno summary: Validates that errno is not touched upon return 1275s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 1275s # /thread/mutex/errno summary: Validates that errno is not touched upon return 1275s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 1275s # /thread/mutex/errno summary: Validates that errno is not touched upon return 1275s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 1275s # /thread/mutex/errno summary: Validates that errno is not touched upon return 1275s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 1275s # /thread/mutex/errno summary: Validates that errno is not touched upon return 1275s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 1275s # /thread/mutex/errno summary: Validates that errno is not touched upon return 1275s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 1275s # /thread/mutex/errno summary: Validates that errno is not touched upon return 1275s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 1275s # /thread/mutex/errno summary: Validates that errno is not touched upon return 1275s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 1275s # /thread/mutex/errno summary: Validates that errno is not touched upon return 1275s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 1275s # /thread/mutex/errno summary: Validates that errno is not touched upon return 1275s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 1275s # /thread/mutex/errno summary: Validates that errno is not touched upon return 1275s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 1275s # /thread/mutex/errno summary: Validates that errno is not touched upon return 1275s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 1275s # /thread/mutex/errno summary: Validates that errno is not touched upon return 1275s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 1275s # /thread/mutex/errno summary: Validates that errno is not touched upon return 1275s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 1275s # /thread/mutex/errno summary: Validates that errno is not touched upon return 1275s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 1275s # /thread/mutex/errno summary: Validates that errno is not touched upon return 1275s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 1275s # /thread/mutex/errno summary: Validates that errno is not touched upon return 1275s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 1275s # /thread/mutex/errno summary: Validates that errno is not touched upon return 1275s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 1275s # /thread/mutex/errno summary: Validates that errno is not touched upon return 1275s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 1275s # /thread/mutex/errno summary: Validates that errno is not touched upon return 1275s # /thread/mutex/errno summary: Validates that errno is not touched upon return 1275s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 1275s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 1275s # /thread/mutex/errno summary: Validates that errno is not touched upon return 1275s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 1275s # /thread/mutex/errno summary: Validates that errno is not touched upon return 1275s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 1275s # /thread/mutex/errno summary: Validates that errno is not touched upon return 1275s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 1275s # /thread/mutex/errno summary: Validates that errno is not touched upon return 1275s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 1275s # /thread/mutex/errno summary: Validates that errno is not touched upon return 1275s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 1275s # /thread/mutex/errno summary: Validates that errno is not touched upon return 1275s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 1275s # /thread/mutex/errno summary: Validates that errno is not touched upon return 1275s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 1275s # /thread/mutex/errno summary: Validates that errno is not touched upon return 1275s # /thread/mutex/errno summary: Validates that errno is not touched upon return 1275s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 1275s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 1275s # /thread/mutex/errno summary: Validates that errno is not touched upon return 1275s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 1275s # /thread/mutex/errno summary: Validates that errno is not touched upon return 1275s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 1275s # /thread/mutex/errno summary: Validates that errno is not touched upon return 1275s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 1275s # /thread/mutex/errno summary: Validates that errno is not touched upon return 1275s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 1275s # /thread/mutex/errno summary: Validates that errno is not touched upon return 1275s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 1275s # /thread/mutex/errno summary: Validates that errno is not touched upon return 1275s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 1275s # /thread/mutex/errno summary: Validates that errno is not touched upon return 1275s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 1276s ok 6 /thread/mutex/errno 1276s # Start of perf tests 1276s # max perf: inf mips 1276s ok 7 /thread/mutex/perf/uncontended 1276s # Start of contended tests 1276s # max perf: inf mips 1276s ok 8 /thread/mutex/perf/contended/1 1276s # max perf: inf mips 1276s ok 9 /thread/mutex/perf/contended/2 1276s # max perf: 0.666667 mips 1276s ok 10 /thread/mutex/perf/contended/3 1276s # max perf: 0.833333 mips 1276s ok 11 /thread/mutex/perf/contended/4 1276s # max perf: 0.600000 mips 1276s ok 12 /thread/mutex/perf/contended/5 1276s # max perf: 0.538462 mips 1276s ok 13 /thread/mutex/perf/contended/6 1276s # max perf: 0.533333 mips 1276s ok 14 /thread/mutex/perf/contended/7 1276s # max perf: 0.281250 mips 1276s ok 15 /thread/mutex/perf/contended/8 1276s # max perf: 0.058480 mips 1276s ok 16 /thread/mutex/perf/contended/9 1276s # max perf: 0.053398 mips 1276s ok 17 /thread/mutex/perf/contended/10 1276s # End of contended tests 1276s # End of perf tests 1276s # End of mutex tests 1276s # End of thread tests 1276s ok - glib/mutex.test 1276s # Running test: glib/live-g-file.test 1276s TAP version 14 1276s # random seed: R02S7b09c4eea6e39178dff23703abc8e515 1276s 1..13 1276s # Start of live-g-file tests 1276s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_live-g-file_7O0CK3/live-g-file/prep_clean_structure/.dirs/home 1276s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_live-g-file_7O0CK3/live-g-file/prep_clean_structure/.dirs/cache 1276s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_live-g-file_7O0CK3/live-g-file/prep_clean_structure/.dirs/system-config1:/tmp/test_live-g-file_7O0CK3/live-g-file/prep_clean_structure/.dirs/system-config2 1276s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_live-g-file_7O0CK3/live-g-file/prep_clean_structure/.dirs/config 1276s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_live-g-file_7O0CK3/live-g-file/prep_clean_structure/.dirs/system-data1:/tmp/test_live-g-file_7O0CK3/live-g-file/prep_clean_structure/.dirs/system-data2 1276s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_live-g-file_7O0CK3/live-g-file/prep_clean_structure/.dirs/data 1276s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_live-g-file_7O0CK3/live-g-file/prep_clean_structure/.dirs/state 1276s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_live-g-file_7O0CK3/live-g-file/prep_clean_structure/.dirs/runtime 1276s # Cleaning target testing structure in '/tmp/test_live-g-file_7O0CK3/testdir_live-g-file'... 1276s # GLib-GIO-DEBUG: _g_io_module_get_default: Found default implementation local (GLocalVfs) for ‘gio-vfs’ 1276s ok 1 /live-g-file/prep_clean_structure 1276s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_live-g-file_7O0CK3/live-g-file/create_structure/.dirs/home 1276s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_live-g-file_7O0CK3/live-g-file/create_structure/.dirs/cache 1276s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_live-g-file_7O0CK3/live-g-file/create_structure/.dirs/system-config1:/tmp/test_live-g-file_7O0CK3/live-g-file/create_structure/.dirs/system-config2 1276s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_live-g-file_7O0CK3/live-g-file/create_structure/.dirs/config 1276s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_live-g-file_7O0CK3/live-g-file/create_structure/.dirs/system-data1:/tmp/test_live-g-file_7O0CK3/live-g-file/create_structure/.dirs/system-data2 1276s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_live-g-file_7O0CK3/live-g-file/create_structure/.dirs/data 1276s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_live-g-file_7O0CK3/live-g-file/create_structure/.dirs/state 1276s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_live-g-file_7O0CK3/live-g-file/create_structure/.dirs/runtime 1276s # 1276s # Going to create testing structure in '/tmp/test_live-g-file_7O0CK3/testdir_live-g-file'... 1276s # Creating directory 'dir1'... 1276s # Creating directory 'dir1/subdir'... 1276s # Creating directory 'dir2'... 1276s # Creating directory 'dir-target'... 1276s # Creating directory 'dir_no-access'... 1276s # Creating directory 'dir_no-write'... 1276s # Creating file 'target-file'... 1276s # Creating file 'normal_file'... 1276s # Creating symlink 'normal_file-symlink' --> 'normal_file'... 1276s # Creating file 'executable_file'... 1276s # Creating file 'private_file'... 1276s # Creating file 'normal_file2'... 1276s # Creating file 'readonly_file'... 1276s # Creating file 'UTF_příliš z'... 1276s # Creating directory 'dir_příliš z'... 1276s # Creating symlink 'lost_symlink' --> 'nowhere'... 1276s # Creating directory 'dir_hidden'... 1276s # Creating file 'dir_hidden/.a-hidden-file'... 1276s # Creating file 'dir_hidden/file-in-.hidden1'... 1276s # Creating file 'dir_hidden/file-in-.hidden2'... 1276s # Creating pattern file... 1276s # done. 1276s ok 2 /live-g-file/create_structure 1276s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_live-g-file_7O0CK3/live-g-file/test_initial_structure/.dirs/home 1276s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_live-g-file_7O0CK3/live-g-file/test_initial_structure/.dirs/cache 1276s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_live-g-file_7O0CK3/live-g-file/test_initial_structure/.dirs/system-config1:/tmp/test_live-g-file_7O0CK3/live-g-file/test_initial_structure/.dirs/system-config2 1276s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_live-g-file_7O0CK3/live-g-file/test_initial_structure/.dirs/config 1276s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_live-g-file_7O0CK3/live-g-file/test_initial_structure/.dirs/system-data1:/tmp/test_live-g-file_7O0CK3/live-g-file/test_initial_structure/.dirs/system-data2 1276s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_live-g-file_7O0CK3/live-g-file/test_initial_structure/.dirs/data 1276s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_live-g-file_7O0CK3/live-g-file/test_initial_structure/.dirs/state 1276s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_live-g-file_7O0CK3/live-g-file/test_initial_structure/.dirs/runtime 1276s # Testing sample structure in '/tmp/test_live-g-file_7O0CK3/testdir_live-g-file'... 1276s # Testing file 'dir1'... 1276s # Testing file 'dir1/subdir'... 1276s # Testing file 'dir2'... 1276s # Testing file 'dir-target'... 1276s # Testing file 'dir_no-access'... 1276s # Testing file 'dir_no-write'... 1276s # Testing file 'target-file'... 1276s # Testing file 'normal_file'... 1276s # Testing file 'normal_file-symlink'... 1276s # Testing file 'executable_file'... 1276s # Testing file 'private_file'... 1276s # Testing file 'normal_file2'... 1276s # Testing file 'readonly_file'... 1276s # Testing file 'UTF_příliš z'... 1276s # Testing file 'dir_příliš z'... 1276s # Testing file 'lost_symlink'... 1276s # Testing file 'dir_hidden'... 1276s # Testing file 'dir_hidden/.a-hidden-file'... 1276s # Testing file 'dir_hidden/file-in-.hidden1'... 1276s # Testing file 'dir_hidden/file-in-.hidden2'... 1276s # Testing pattern file... 1276s # read 65536 bytes, total = 65536 of 65536. 1276s ok 3 /live-g-file/test_initial_structure 1276s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_live-g-file_7O0CK3/live-g-file/test_traverse_structure/.dirs/home 1276s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_live-g-file_7O0CK3/live-g-file/test_traverse_structure/.dirs/cache 1276s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_live-g-file_7O0CK3/live-g-file/test_traverse_structure/.dirs/system-config1:/tmp/test_live-g-file_7O0CK3/live-g-file/test_traverse_structure/.dirs/system-config2 1276s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_live-g-file_7O0CK3/live-g-file/test_traverse_structure/.dirs/config 1276s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_live-g-file_7O0CK3/live-g-file/test_traverse_structure/.dirs/system-data1:/tmp/test_live-g-file_7O0CK3/live-g-file/test_traverse_structure/.dirs/system-data2 1276s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_live-g-file_7O0CK3/live-g-file/test_traverse_structure/.dirs/data 1276s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_live-g-file_7O0CK3/live-g-file/test_traverse_structure/.dirs/state 1276s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_live-g-file_7O0CK3/live-g-file/test_traverse_structure/.dirs/runtime 1276s # Traversing through the sample structure in '/tmp/test_live-g-file_7O0CK3/testdir_live-g-file'... 1276s # Found file dir1, relative to root: dir1 1276s # Found file subdir, relative to root: dir1/subdir 1276s # Found file dir2, relative to root: dir2 1276s # Found file dir-target, relative to root: dir-target 1276s # Found file dir_no-access, relative to root: dir_no-access 1276s # Found file dir_no-write, relative to root: dir_no-write 1276s # Found file target-file, relative to root: target-file 1276s ok - glib/live-g-file.test 1276s # Running test: glib/object-info.test 1276s ok - glib/object-info.test 1276s # Running test: glib/portal-support-flatpak-gsettings-only.test 1276s # Found file normal_file, relative to root: normal_file 1276s # Found file normal_file-symlink, relative to root: normal_file-symlink 1276s # Found file executable_file, relative to root: executable_file 1276s # Found file private_file, relative to root: private_file 1276s # Found file normal_file2, relative to root: normal_file2 1276s # Found file readonly_file, relative to root: readonly_file 1276s # Found file UTF_příliš z, relative to root: UTF_příliš z 1276s # Found file dir_příliš z, relative to root: dir_příliš z 1276s # Found file lost_symlink, relative to root: lost_symlink 1276s # Found file dir_hidden, relative to root: dir_hidden 1276s # Found file .a-hidden-file, relative to root: dir_hidden/.a-hidden-file 1276s # Found file file-in-.hidden1, relative to root: dir_hidden/file-in-.hidden1 1276s # Found file .hidden, relative to root: dir_hidden/.hidden 1276s # Found file file-in-.hidden2, relative to root: dir_hidden/file-in-.hidden2 1276s # Found file pattern_file, relative to root: pattern_file 1276s ok 4 /live-g-file/test_traverse_structure 1276s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_live-g-file_7O0CK3/live-g-file/test_enumerate/.dirs/home 1276s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_live-g-file_7O0CK3/live-g-file/test_enumerate/.dirs/cache 1276s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_live-g-file_7O0CK3/live-g-file/test_enumerate/.dirs/system-config1:/tmp/test_live-g-file_7O0CK3/live-g-file/test_enumerate/.dirs/system-config2 1276s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_live-g-file_7O0CK3/live-g-file/test_enumerate/.dirs/config 1276s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_live-g-file_7O0CK3/live-g-file/test_enumerate/.dirs/system-data1:/tmp/test_live-g-file_7O0CK3/live-g-file/test_enumerate/.dirs/system-data2 1276s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_live-g-file_7O0CK3/live-g-file/test_enumerate/.dirs/data 1276s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_live-g-file_7O0CK3/live-g-file/test_enumerate/.dirs/state 1276s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_live-g-file_7O0CK3/live-g-file/test_enumerate/.dirs/runtime 1276s # Test enumerate '/tmp/test_live-g-file_7O0CK3/testdir_live-g-file'... 1276s # Testing file 'dir_no-access' 1276s # Testing file 'normal_file' 1276s # Testing file 'normal_file-symlink' 1276s # Testing file 'not_exists' 1276s # Testing file 'not_exists' 1276s # Testing file 'not_exists2' 1276s # Testing file 'not_exists3' 1276s # Testing file 'not_exists4' 1276s # Testing file 'dir_no-execute/file' 1276s ok 5 /live-g-file/test_enumerate 1276s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_live-g-file_7O0CK3/live-g-file/test_open/.dirs/home 1276s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_live-g-file_7O0CK3/live-g-file/test_open/.dirs/cache 1276s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_live-g-file_7O0CK3/live-g-file/test_open/.dirs/system-config1:/tmp/test_live-g-file_7O0CK3/live-g-file/test_open/.dirs/system-config2 1276s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_live-g-file_7O0CK3/live-g-file/test_open/.dirs/config 1276s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_live-g-file_7O0CK3/live-g-file/test_open/.dirs/system-data1:/tmp/test_live-g-file_7O0CK3/live-g-file/test_open/.dirs/system-data2 1276s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_live-g-file_7O0CK3/live-g-file/test_open/.dirs/data 1276s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_live-g-file_7O0CK3/live-g-file/test_open/.dirs/state 1276s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_live-g-file_7O0CK3/live-g-file/test_open/.dirs/runtime 1276s # test_open: 'dir1' 1276s # test_open: 'dir_no-access' 1276s # test_open: 'target-file' 1276s # test_open: 'normal_file-symlink' 1276s # test_open: 'executable_file' 1276s # test_open: 'private_file' 1276s # test_open: 'readonly_file' 1276s # test_open: 'UTF_příliš z' 1276s # test_open: 'pattern_file' 1276s # test_open: 'not_exists' 1276s # test_open: 'dir_no-execute/file' 1276s # test_open: 'lost_symlink' 1276s ok 6 /live-g-file/test_open 1276s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_live-g-file_7O0CK3/live-g-file/test_create/.dirs/home 1276s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_live-g-file_7O0CK3/live-g-file/test_create/.dirs/cache 1276s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_live-g-file_7O0CK3/live-g-file/test_create/.dirs/system-config1:/tmp/test_live-g-file_7O0CK3/live-g-file/test_create/.dirs/system-config2 1276s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_live-g-file_7O0CK3/live-g-file/test_create/.dirs/config 1276s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_live-g-file_7O0CK3/live-g-file/test_create/.dirs/system-data1:/tmp/test_live-g-file_7O0CK3/live-g-file/test_create/.dirs/system-data2 1276s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_live-g-file_7O0CK3/live-g-file/test_create/.dirs/data 1276s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_live-g-file_7O0CK3/live-g-file/test_create/.dirs/state 1276s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_live-g-file_7O0CK3/live-g-file/test_create/.dirs/runtime 1276s # test_create: 'dir1' 1276s # error code 3 = Error opening file “/tmp/test_live-g-file_7O0CK3/testdir_live-g-file/dir1”: Is a directory 1276s # test_create: 'dir1/subdir' 1276s # error code 3 = Error opening file “/tmp/test_live-g-file_7O0CK3/testdir_live-g-file/dir1/subdir”: Is a directory 1276s # test_create: 'dir2' 1276s # error code 2 = Error opening file “/tmp/test_live-g-file_7O0CK3/testdir_live-g-file/dir2”: File exists 1276s # test_create: 'normal_file' 1276s # error code 2 = Error opening file “/tmp/test_live-g-file_7O0CK3/testdir_live-g-file/normal_file”: File exists 1276s # test_create: 'executable_file' 1276s # test_create: 'private_file' 1276s # test_create: 'normal_file2' 1276s # test_create: 'UTF_příliš z' 1276s # error code 2 = Error opening file “/tmp/test_live-g-file_7O0CK3/testdir_live-g-file/UTF_příliš z”: File exists 1276s # test_create: 'dir_příliš z' 1276s # error code 2 = Error opening file “/tmp/test_live-g-file_7O0CK3/testdir_live-g-file/dir_příliš z”: File exists 1276s # test_create: 'pattern_file' 1276s # test_create: 'not_exists2' 1276s # test_create: 'not_exists3' 1276s # test_create: 'not_exists4' 1276s ok 7 /live-g-file/test_create 1276s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_live-g-file_7O0CK3/live-g-file/test_copy_move/.dirs/home 1276s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_live-g-file_7O0CK3/live-g-file/test_copy_move/.dirs/cache 1276s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_live-g-file_7O0CK3/live-g-file/test_copy_move/.dirs/system-config1:/tmp/test_live-g-file_7O0CK3/live-g-file/test_copy_move/.dirs/system-config2 1276s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_live-g-file_7O0CK3/live-g-file/test_copy_move/.dirs/config 1276s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_live-g-file_7O0CK3/live-g-file/test_copy_move/.dirs/system-data1:/tmp/test_live-g-file_7O0CK3/live-g-file/test_copy_move/.dirs/system-data2 1276s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_live-g-file_7O0CK3/live-g-file/test_copy_move/.dirs/data 1276s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_live-g-file_7O0CK3/live-g-file/test_copy_move/.dirs/state 1276s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_live-g-file_7O0CK3/live-g-file/test_copy_move/.dirs/runtime 1276s # We do not have CAP_DAC_OVERRIDE or equivalent 1276s # do_copy_move: 'dir1/subdir' --> 'dir-target' 1276s # res = 0, error code 25 = Can’t recursively copy directory 1276s # We do not have CAP_DAC_OVERRIDE or equivalent 1276s # do_copy_move: 'dir1/subdir' --> '.' 1276s # res = 0, error code 2 = Target file exists 1276s # We do not have CAP_DAC_OVERRIDE or equivalent 1276s # do_copy_move: 'dir1/subdir' --> 'target-file' 1276s # res = 0, error code 4 = Error when getting information for file “/tmp/test_live-g-file_7O0CK3/testdir_live-g-file/target-file/dir1/subdir”: Not a directory 1276s # We do not have CAP_DAC_OVERRIDE or equivalent 1276s # do_copy_move: 'dir1/subdir' --> 'not_exists' 1276s # res = 0, error code 25 = Can’t recursively copy directory 1276s # We do not have CAP_DAC_OVERRIDE or equivalent 1276s # do_copy_move: 'dir1/subdir' --> 'dir_no-access' 1276s # res = 0, error code 25 = Can’t recursively copy directory 1276s # We do not have CAP_DAC_OVERRIDE or equivalent 1276s # do_copy_move: 'dir1/subdir' --> 'dir_no-write' 1276s # res = 0, error code 25 = Can’t recursively copy directory 1276s # We do not have CAP_DAC_OVERRIDE or equivalent 1276s # do_copy_move: 'dir2' --> 'dir-target' 1276s # We do not have CAP_DAC_OVERRIDE or equivalent 1276s # do_copy_move: 'dir-target' --> 'dir-target' 1276s # res = 0, error code 25 = Can’t recursively copy directory 1276s # We do not have CAP_DAC_OVERRIDE or equivalent 1276s # do_copy_move: 'dir-target' --> '.' 1276s # res = 0, error code 2 = Target file exists 1276s # We do not have CAP_DAC_OVERRIDE or equivalent 1276s # do_copy_move: 'dir-target' --> 'target-file' 1276s # res = 0, error code 4 = Error when getting information for file “/tmp/test_live-g-file_7O0CK3/testdir_live-g-file/target-file/dir-target”: Not a directory 1276s # We do not have CAP_DAC_OVERRIDE or equivalent 1276s # do_copy_move: 'dir-target' --> 'not_exists' 1276s # res = 0, error code 25 = Can’t recursively copy directory 1276s # We do not have CAP_DAC_OVERRIDE or equivalent 1276s # do_copy_move: 'dir-target' --> 'dir_no-access' 1276s # res = 0, error code 25 = Can’t recursively copy directory 1276s # We do not have CAP_DAC_OVERRIDE or equivalent 1276s # do_copy_move: 'dir-target' --> 'dir_no-write' 1276s # res = 0, error code 25 = Can’t recursively copy directory 1276s # We do not have CAP_DAC_OVERRIDE or equivalent 1276s # do_copy_move: 'target-file' --> 'dir-target' 1276s # We do not have CAP_DAC_OVERRIDE or equivalent 1276s # do_copy_move: 'target-file' --> '.' 1276s # res = 0, error code 2 = Error opening file “/tmp/test_live-g-file_7O0CK3/testdir_live-g-file/target-file”: File exists 1276s # We do not have CAP_DAC_OVERRIDE or equivalent 1276s # do_copy_move: 'target-file' --> 'target-file' 1276s # res = 0, error code 4 = Error opening file “/tmp/test_live-g-file_7O0CK3/testdir_live-g-file/target-file/target-file”: Not a directory 1276s # We do not have CAP_DAC_OVERRIDE or equivalent 1276s # do_copy_move: 'target-file' --> 'not_exists' 1276s # res = 0, error code 1 = Error opening file “/tmp/test_live-g-file_7O0CK3/testdir_live-g-file/not_exists/target-file”: No such file or directory 1276s # We do not have CAP_DAC_OVERRIDE or equivalent 1276s # do_copy_move: 'target-file' --> 'dir_no-access' 1276s # res = 0, error code 14 = Error opening file “/tmp/test_live-g-file_7O0CK3/testdir_live-g-file/dir_no-access/target-file”: Permission denied 1276s # We do not have CAP_DAC_OVERRIDE or equivalent 1276s # do_copy_move: 'target-file' --> 'dir_no-write' 1276s # res = 0, error code 14 = Error opening file “/tmp/test_live-g-file_7O0CK3/testdir_live-g-file/dir_no-write/target-file”: Permission denied 1276s # We do not have CAP_DAC_OVERRIDE or equivalent 1276s # do_copy_move: 'normal_file-symlink' --> 'dir-target' 1276s # We do not have CAP_DAC_OVERRIDE or equivalent 1276s # do_copy_move: 'normal_file-symlink' --> '.' 1276s # res = 0, error code 2 = Error making symbolic link /tmp/test_live-g-file_7O0CK3/testdir_live-g-file/normal_file-symlink: File exists 1276s # We do not have CAP_DAC_OVERRIDE or equivalent 1276s # do_copy_move: 'normal_file-symlink' --> 'target-file' 1276s # res = 0, error code 4 = Error making symbolic link /tmp/test_live-g-file_7O0CK3/testdir_live-g-file/target-file/normal_file-symlink: Not a directory 1276s # We do not have CAP_DAC_OVERRIDE or equivalent 1276s # do_copy_move: 'normal_file-symlink' --> 'not_exists' 1276s # res = 0, error code 1 = Error making symbolic link /tmp/test_live-g-file_7O0CK3/testdir_live-g-file/not_exists/normal_file-symlink: No such file or directory 1276s # We do not have CAP_DAC_OVERRIDE or equivalent 1276s # do_copy_move: 'normal_file-symlink' --> 'dir_no-access' 1276s # res = 0, error code 14 = Error making symbolic link /tmp/test_live-g-file_7O0CK3/testdir_live-g-file/dir_no-access/normal_file-symlink: Permission denied 1276s # We do not have CAP_DAC_OVERRIDE or equivalent 1276s # do_copy_move: 'normal_file-symlink' --> 'dir_no-write' 1276s # res = 0, error code 14 = Error making symbolic link /tmp/test_live-g-file_7O0CK3/testdir_live-g-file/dir_no-write/normal_file-symlink: Permission denied 1276s # We do not have CAP_DAC_OVERRIDE or equivalent 1276s # do_copy_move: 'executable_file' --> 'dir-target' 1276s # We do not have CAP_DAC_OVERRIDE or equivalent 1276s # do_copy_move: 'executable_file' --> 'dir-target' 1276s # We do not have CAP_DAC_OVERRIDE or equivalent 1276s # do_copy_move: 'executable_file' --> '.' 1276s # res = 0, error code 2 = Error opening file “/tmp/test_live-g-file_7O0CK3/testdir_live-g-file/executable_file”: File exists 1276s # We do not have CAP_DAC_OVERRIDE or equivalent 1276s # do_copy_move: 'executable_file' --> 'target-file' 1276s # res = 0, error code 4 = Error opening file “/tmp/test_live-g-file_7O0CK3/testdir_live-g-file/target-file/executable_file”: Not a directory 1276s # We do not have CAP_DAC_OVERRIDE or equivalent 1276s # do_copy_move: 'executable_file' --> 'not_exists' 1276s # res = 0, error code 1 = Error opening file “/tmp/test_live-g-file_7O0CK3/testdir_live-g-file/not_exists/executable_file”: No such file or directory 1276s # We do not have CAP_DAC_OVERRIDE or equivalent 1276s # do_copy_move: 'executable_file' --> 'dir_no-access' 1276s # res = 0, error code 14 = Error opening file “/tmp/test_live-g-file_7O0CK3/testdir_live-g-file/dir_no-access/executable_file”: Permission denied 1276s # We do not have CAP_DAC_OVERRIDE or equivalent 1276s # do_copy_move: 'executable_file' --> 'dir_no-write' 1276s # res = 0, error code 14 = Error opening file “/tmp/test_live-g-file_7O0CK3/testdir_live-g-file/dir_no-write/executable_file”: Permission denied 1276s # We do not have CAP_DAC_OVERRIDE or equivalent 1276s # do_copy_move: 'private_file' --> 'dir-target' 1276s # We do not have CAP_DAC_OVERRIDE or equivalent 1276s # do_copy_move: 'private_file' --> 'dir-target' 1276s # We do not have CAP_DAC_OVERRIDE or equivalent 1276s # do_copy_move: 'private_file' --> '.' 1276s # res = 0, error code 2 = Error opening file “/tmp/test_live-g-file_7O0CK3/testdir_live-g-file/private_file”: File exists 1276s # We do not have CAP_DAC_OVERRIDE or equivalent 1276s # do_copy_move: 'private_file' --> 'target-file' 1276s # res = 0, error code 4 = Error opening file “/tmp/test_live-g-file_7O0CK3/testdir_live-g-file/target-file/private_file”: Not a directory 1276s # We do not have CAP_DAC_OVERRIDE or equivalent 1276s # do_copy_move: 'private_file' --> 'not_exists' 1276s # res = 0, error code 1 = Error opening file “/tmp/test_live-g-file_7O0CK3/testdir_live-g-file/not_exists/private_file”: No such file or directory 1276s # We do not have CAP_DAC_OVERRIDE or equivalent 1276s # do_copy_move: 'private_file' --> 'dir_no-access' 1276s # res = 0, error code 14 = Error opening file “/tmp/test_live-g-file_7O0CK3/testdir_live-g-file/dir_no-access/private_file”: Permission denied 1276s # We do not have CAP_DAC_OVERRIDE or equivalent 1276s # do_copy_move: 'private_file' --> 'dir_no-write' 1276s # res = 0, error code 14 = Error opening file “/tmp/test_live-g-file_7O0CK3/testdir_live-g-file/dir_no-write/private_file”: Permission denied 1276s # We do not have CAP_DAC_OVERRIDE or equivalent 1276s # do_copy_move: 'normal_file2' --> 'dir-target' 1276s # We do not have CAP_DAC_OVERRIDE or equivalent 1276s # do_copy_move: 'normal_file2' --> 'dir-target' 1276s # We do not have CAP_DAC_OVERRIDE or equivalent 1276s # do_copy_move: 'normal_file2' --> '.' 1276s # res = 0, error code 2 = Error opening file “/tmp/test_live-g-file_7O0CK3/testdir_live-g-file/normal_file2”: File exists 1276s # We do not have CAP_DAC_OVERRIDE or equivalent 1276s # do_copy_move: 'normal_file2' --> 'target-file' 1276s # res = 0, error code 4 = Error opening file “/tmp/test_live-g-file_7O0CK3/testdir_live-g-file/target-file/normal_file2”: Not a directory 1276s # We do not have CAP_DAC_OVERRIDE or equivalent 1276s # do_copy_move: 'normal_file2' --> 'not_exists' 1276s # res = 0, error code 1 = Error opening file “/tmp/test_live-g-file_7O0CK3/testdir_live-g-file/not_exists/normal_file2”: No such file or directory 1276s # We do not have CAP_DAC_OVERRIDE or equivalent 1276s # do_copy_move: 'normal_file2' --> 'dir_no-access' 1276s # res = 0, error code 14 = Error opening file “/tmp/test_live-g-file_7O0CK3/testdir_live-g-file/dir_no-access/normal_file2”: Permission denied 1276s # We do not have CAP_DAC_OVERRIDE or equivalent 1276s # do_copy_move: 'normal_file2' --> 'dir_no-write' 1276s # res = 0, error code 14 = Error opening file “/tmp/test_live-g-file_7O0CK3/testdir_live-g-file/dir_no-write/normal_file2”: Permission denied 1276s # We do not have CAP_DAC_OVERRIDE or equivalent 1276s # do_copy_move: 'UTF_příliš z' --> 'dir-target' 1276s # We do not have CAP_DAC_OVERRIDE or equivalent 1276s # do_copy_move: 'UTF_příliš z' --> 'dir-target' 1276s # We do not have CAP_DAC_OVERRIDE or equivalent 1276s # do_copy_move: 'UTF_příliš z' --> '.' 1276s # res = 0, error code 2 = Error opening file “/tmp/test_live-g-file_7O0CK3/testdir_live-g-file/UTF_příliš z”: File exists 1276s # We do not have CAP_DAC_OVERRIDE or equivalent 1276s # do_copy_move: 'UTF_příliš z' --> 'target-file' 1276s # res = 0, error code 4 = Error opening file “/tmp/test_live-g-file_7O0CK3/testdir_live-g-file/target-file/UTF_příliš z”: Not a directory 1276s # We do not have CAP_DAC_OVERRIDE or equivalent 1276s # do_copy_move: 'UTF_příliš z' --> 'not_exists' 1276s # res = 0, error code 1 = Error opening file “/tmp/test_live-g-file_7O0CK3/testdir_live-g-file/not_exists/UTF_příliš z”: No such file or directory 1276s # We do not have CAP_DAC_OVERRIDE or equivalent 1276s # do_copy_move: 'UTF_příliš z' --> 'dir_no-access' 1276s # res = 0, error code 14 = Error opening file “/tmp/test_live-g-file_7O0CK3/testdir_live-g-file/dir_no-access/UTF_příliš z”: Permission denied 1276s # We do not have CAP_DAC_OVERRIDE or equivalent 1276s # do_copy_move: 'UTF_příliš z' --> 'dir_no-write' 1276s # res = 0, error code 14 = Error opening file “/tmp/test_live-g-file_7O0CK3/testdir_live-g-file/dir_no-write/UTF_příliš z”: Permission denied 1276s # We do not have CAP_DAC_OVERRIDE or equivalent 1276s # do_copy_move: 'pattern_file' --> 'dir-target' 1276s # We do not have CAP_DAC_OVERRIDE or equivalent 1276s # do_copy_move: 'pattern_file' --> '.' 1276s # res = 0, error code 2 = Error opening file “/tmp/test_live-g-file_7O0CK3/testdir_live-g-file/pattern_file”: File exists 1276s # We do not have CAP_DAC_OVERRIDE or equivalent 1276s # do_copy_move: 'pattern_file' --> 'target-file' 1276s # res = 0, error code 4 = Error opening file “/tmp/test_live-g-file_7O0CK3/testdir_live-g-file/target-file/pattern_file”: Not a directory 1276s # We do not have CAP_DAC_OVERRIDE or equivalent 1276s # do_copy_move: 'pattern_file' --> 'not_exists' 1276s # res = 0, error code 1 = Error opening file “/tmp/test_live-g-file_7O0CK3/testdir_live-g-file/not_exists/pattern_file”: No such file or directory 1276s # We do not have CAP_DAC_OVERRIDE or equivalent 1276s # do_copy_move: 'pattern_file' --> 'dir_no-access' 1276s # res = 0, error code 14 = Error opening file “/tmp/test_live-g-file_7O0CK3/testdir_live-g-file/dir_no-access/pattern_file”: Permission denied 1276s # We do not have CAP_DAC_OVERRIDE or equivalent 1276s # do_copy_move: 'pattern_file' --> 'dir_no-write' 1276s # res = 0, error code 14 = Error opening file “/tmp/test_live-g-file_7O0CK3/testdir_live-g-file/dir_no-write/pattern_file”: Permission denied 1276s # We do not have CAP_DAC_OVERRIDE or equivalent 1276s # do_copy_move: 'not_exists' --> 'dir-target' 1276s # res = 0, error code 1 = Error when getting information for file “/tmp/test_live-g-file_7O0CK3/testdir_live-g-file/not_exists”: No such file or directory 1276s # We do not have CAP_DAC_OVERRIDE or equivalent 1276s # do_copy_move: 'not_exists' --> '.' 1276s # res = 0, error code 1 = Error when getting information for file “/tmp/test_live-g-file_7O0CK3/testdir_live-g-file/not_exists”: No such file or directory 1276s # We do not have CAP_DAC_OVERRIDE or equivalent 1276s # do_copy_move: 'not_exists' --> 'target-file' 1276s # res = 0, error code 1 = Error when getting information for file “/tmp/test_live-g-file_7O0CK3/testdir_live-g-file/not_exists”: No such file or directory 1276s # We do not have CAP_DAC_OVERRIDE or equivalent 1276s # do_copy_move: 'not_exists' --> 'not_exists' 1276s # res = 0, error code 1 = Error when getting information for file “/tmp/test_live-g-file_7O0CK3/testdir_live-g-file/not_exists”: No such file or directory 1276s # We do not have CAP_DAC_OVERRIDE or equivalent 1276s # do_copy_move: 'not_exists' --> 'dir_no-access' 1276s # res = 0, error code 1 = Error when getting information for file “/tmp/test_live-g-file_7O0CK3/testdir_live-g-file/not_exists”: No such file or directory 1276s # We do not have CAP_DAC_OVERRIDE or equivalent 1276s # do_copy_move: 'not_exists' --> 'dir_no-write' 1276s # res = 0, error code 1 = Error when getting information for file “/tmp/test_live-g-file_7O0CK3/testdir_live-g-file/not_exists”: No such file or directory 1276s # We do not have CAP_DAC_OVERRIDE or equivalent 1276s # do_copy_move: 'not_exists' --> 'dir-target' 1276s # res = 0, error code 1 = Error moving file /tmp/test_live-g-file_7O0CK3/testdir_live-g-file/not_exists: No such file or directory 1276s # We do not have CAP_DAC_OVERRIDE or equivalent 1276s # do_copy_move: 'lost_symlink' --> 'dir-target' 1276s # We do not have CAP_DAC_OVERRIDE or equivalent 1276s # do_copy_move: 'lost_symlink' --> '.' 1276s # res = 0, error code 2 = Error making symbolic link /tmp/test_live-g-file_7O0CK3/testdir_live-g-file/lost_symlink: File exists 1276s # We do not have CAP_DAC_OVERRIDE or equivalent 1276s # do_copy_move: 'lost_symlink' --> 'target-file' 1276s # res = 0, error code 4 = Error making symbolic link /tmp/test_live-g-file_7O0CK3/testdir_live-g-file/target-file/lost_symlink: Not a directory 1276s # We do not have CAP_DAC_OVERRIDE or equivalent 1276s # do_copy_move: 'lost_symlink' --> 'not_exists' 1276s # res = 0, error code 1 = Error making symbolic link /tmp/test_live-g-file_7O0CK3/testdir_live-g-file/not_exists/lost_symlink: No such file or directory 1276s # We do not have CAP_DAC_OVERRIDE or equivalent 1276s # do_copy_move: 'lost_symlink' --> 'dir_no-access' 1276s # res = 0, error code 14 = Error making symbolic link /tmp/test_live-g-file_7O0CK3/testdir_live-g-file/dir_no-access/lost_symlink: Permission denied 1276s # We do not have CAP_DAC_OVERRIDE or equivalent 1276s # do_copy_move: 'lost_symlink' --> 'dir_no-write' 1276s # res = 0, error code 14 = Error making symbolic link /tmp/test_live-g-file_7O0CK3/testdir_live-g-file/dir_no-write/lost_symlink: Permission denied 1276s ok 8 /live-g-file/test_copy_move 1276s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_live-g-file_7O0CK3/live-g-file/test_delete/.dirs/home 1276s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_live-g-file_7O0CK3/live-g-file/test_delete/.dirs/cache 1276s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_live-g-file_7O0CK3/live-g-file/test_delete/.dirs/system-config1:/tmp/test_live-g-file_7O0CK3/live-g-file/test_delete/.dirs/system-config2 1276s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_live-g-file_7O0CK3/live-g-file/test_delete/.dirs/config 1276s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_live-g-file_7O0CK3/live-g-file/test_delete/.dirs/system-data1:/tmp/test_live-g-file_7O0CK3/live-g-file/test_delete/.dirs/system-data2 1276s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_live-g-file_7O0CK3/live-g-file/test_delete/.dirs/data 1276s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_live-g-file_7O0CK3/live-g-file/test_delete/.dirs/state 1276s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_live-g-file_7O0CK3/live-g-file/test_delete/.dirs/runtime 1276s # Deleting dir1, path = /tmp/test_live-g-file_7O0CK3/testdir_live-g-file/dir1 1276s # result = 0, error = Error removing file /tmp/test_live-g-file_7O0CK3/testdir_live-g-file/dir1: Directory not empty 1276s # Deleting dir2, path = /tmp/test_live-g-file_7O0CK3/testdir_live-g-file/dir2 1276s # result = 0, error = Error removing file /tmp/test_live-g-file_7O0CK3/testdir_live-g-file/dir2: No such file or directory 1276s # Deleting executable_file, path = /tmp/test_live-g-file_7O0CK3/testdir_live-g-file/executable_file 1276s # result = 0, error = Error trashing file /tmp/test_live-g-file_7O0CK3/testdir_live-g-file/executable_file: No such file or directory 1276s # Deleting readonly_file, path = /tmp/test_live-g-file_7O0CK3/testdir_live-g-file/readonly_file 1276s # Deleting dir_příliš z, path = /tmp/test_live-g-file_7O0CK3/testdir_live-g-file/dir_příliš z 1276s # Deleting not_exists, path = /tmp/test_live-g-file_7O0CK3/testdir_live-g-file/not_exists 1276s # result = 0, error = Error removing file /tmp/test_live-g-file_7O0CK3/testdir_live-g-file/not_exists: No such file or directory 1276s # Deleting not_exists, path = /tmp/test_live-g-file_7O0CK3/testdir_live-g-file/not_exists 1276s # result = 0, error = Error trashing file /tmp/test_live-g-file_7O0CK3/testdir_live-g-file/not_exists: No such file or directory 1276s # Deleting dir_no-execute/file, path = /tmp/test_live-g-file_7O0CK3/testdir_live-g-file/dir_no-execute/file 1276s # result = 0, error = Error removing file /tmp/test_live-g-file_7O0CK3/testdir_live-g-file/dir_no-execute/file: No such file or directory 1276s # Deleting lost_symlink, path = /tmp/test_live-g-file_7O0CK3/testdir_live-g-file/lost_symlink 1276s ok 9 /live-g-file/test_delete 1276s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_live-g-file_7O0CK3/live-g-file/test_make_directory_with_parents/.dirs/home 1276s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_live-g-file_7O0CK3/live-g-file/test_make_directory_with_parents/.dirs/cache 1276s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_live-g-file_7O0CK3/live-g-file/test_make_directory_with_parents/.dirs/system-config1:/tmp/test_live-g-file_7O0CK3/live-g-file/test_make_directory_with_parents/.dirs/system-config2 1276s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_live-g-file_7O0CK3/live-g-file/test_make_directory_with_parents/.dirs/config 1276s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_live-g-file_7O0CK3/live-g-file/test_make_directory_with_parents/.dirs/system-data1:/tmp/test_live-g-file_7O0CK3/live-g-file/test_make_directory_with_parents/.dirs/system-data2 1276s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_live-g-file_7O0CK3/live-g-file/test_make_directory_with_parents/.dirs/data 1276s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_live-g-file_7O0CK3/live-g-file/test_make_directory_with_parents/.dirs/state 1276s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_live-g-file_7O0CK3/live-g-file/test_make_directory_with_parents/.dirs/runtime 1276s # We do not have CAP_DAC_OVERRIDE or equivalent 1276s ok 10 /live-g-file/test_make_directory_with_parents 1276s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_live-g-file_7O0CK3/live-g-file/final_clean/.dirs/home 1276s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_live-g-file_7O0CK3/live-g-file/final_clean/.dirs/cache 1276s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_live-g-file_7O0CK3/live-g-file/final_clean/.dirs/system-config1:/tmp/test_live-g-file_7O0CK3/live-g-file/final_clean/.dirs/system-config2 1276s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_live-g-file_7O0CK3/live-g-file/final_clean/.dirs/config 1276s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_live-g-file_7O0CK3/live-g-file/final_clean/.dirs/system-data1:/tmp/test_live-g-file_7O0CK3/live-g-file/final_clean/.dirs/system-data2 1276s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_live-g-file_7O0CK3/live-g-file/final_clean/.dirs/data 1276s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_live-g-file_7O0CK3/live-g-file/final_clean/.dirs/state 1276s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_live-g-file_7O0CK3/live-g-file/final_clean/.dirs/runtime 1276s # Cleaning target testing structure in '/tmp/test_live-g-file_7O0CK3/testdir_live-g-file'... 1276s # deleting 'dir1' 1276s # deleting 'subdir' 1276s # deleting 'dir-target' 1276s # deleting 'dir2' 1276s # deleting 'target-file' 1276s # deleting 'normal_file-symlink' 1276s # deleting 'executable_file' 1276s # deleting 'private_file' 1276s # deleting 'normal_file2' 1276s # deleting 'UTF_příliš z' 1276s # deleting 'pattern_file' 1276s # deleting 'lost_symlink' 1276s # deleting 'dir_no-access' 1276s # deleting 'dir_no-write' 1276s # deleting 'target-file' 1276s # deleting 'normal_file' 1276s # deleting 'normal_file-symlink' 1276s # deleting 'executable_file~' 1276s # deleting 'private_file' 1276s # deleting 'normal_file2~' 1276s # deleting 'UTF_příliš z' 1276s # deleting 'dir_hidden' 1276s # deleting '.a-hidden-file' 1276s # deleting 'file-in-.hidden1' 1276s # deleting '.hidden' 1276s # deleting 'file-in-.hidden2' 1276s # deleting 'pattern_file' 1276s # deleting 'executable_file' 1276s # deleting 'normal_file2' 1276s # deleting 'not_exists2' 1276s # deleting 'not_exists3' 1276s # deleting 'not_exists4' 1276s # deleting 'a' 1276s ok 11 /live-g-file/final_clean 1276s # Start of test_unix_is_mountpoint tests 1276s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_live-g-file_7O0CK3/live-g-file/test_unix_is_mountpoint/sysroot/.dirs/home 1276s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_live-g-file_7O0CK3/live-g-file/test_unix_is_mountpoint/sysroot/.dirs/cache 1276s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_live-g-file_7O0CK3/live-g-file/test_unix_is_mountpoint/sysroot/.dirs/system-config1:/tmp/test_live-g-file_7O0CK3/live-g-file/test_unix_is_mountpoint/sysroot/.dirs/system-config2 1276s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_live-g-file_7O0CK3/live-g-file/test_unix_is_mountpoint/sysroot/.dirs/config 1276s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_live-g-file_7O0CK3/live-g-file/test_unix_is_mountpoint/sysroot/.dirs/system-data1:/tmp/test_live-g-file_7O0CK3/live-g-file/test_unix_is_mountpoint/sysroot/.dirs/system-data2 1276s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_live-g-file_7O0CK3/live-g-file/test_unix_is_mountpoint/sysroot/.dirs/data 1276s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_live-g-file_7O0CK3/live-g-file/test_unix_is_mountpoint/sysroot/.dirs/state 1276s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_live-g-file_7O0CK3/live-g-file/test_unix_is_mountpoint/sysroot/.dirs/runtime 1276s ok 12 /live-g-file/test_unix_is_mountpoint/sysroot 1276s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_live-g-file_7O0CK3/live-g-file/test_unix_is_mountpoint/proc/.dirs/home 1276s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_live-g-file_7O0CK3/live-g-file/test_unix_is_mountpoint/proc/.dirs/cache 1276s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_live-g-file_7O0CK3/live-g-file/test_unix_is_mountpoint/proc/.dirs/system-config1:/tmp/test_live-g-file_7O0CK3/live-g-file/test_unix_is_mountpoint/proc/.dirs/system-config2 1276s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_live-g-file_7O0CK3/live-g-file/test_unix_is_mountpoint/proc/.dirs/config 1276s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_live-g-file_7O0CK3/live-g-file/test_unix_is_mountpoint/proc/.dirs/system-data1:/tmp/test_live-g-file_7O0CK3/live-g-file/test_unix_is_mountpoint/proc/.dirs/system-data2 1276s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_live-g-file_7O0CK3/live-g-file/test_unix_is_mountpoint/proc/.dirs/data 1276s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_live-g-file_7O0CK3/live-g-file/test_unix_is_mountpoint/proc/.dirs/state 1276s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_live-g-file_7O0CK3/live-g-file/test_unix_is_mountpoint/proc/.dirs/runtime 1276s ok 13 /live-g-file/test_unix_is_mountpoint/proc 1276s # End of test_unix_is_mountpoint tests 1276s # End of live-g-file tests 1276s TAP version 14 1276s # random seed: R02S5d9ebdf416265f7fecdb983a43427b90 1276s 1..2 1276s # Start of object-info tests 1276s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_object-info_SRA6J3/object-info/find-method-using-interfaces/.dirs/home 1276s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_object-info_SRA6J3/object-info/find-method-using-interfaces/.dirs/cache 1276s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_object-info_SRA6J3/object-info/find-method-using-interfaces/.dirs/system-config1:/tmp/test_object-info_SRA6J3/object-info/find-method-using-interfaces/.dirs/system-config2 1276s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_object-info_SRA6J3/object-info/find-method-using-interfaces/.dirs/config 1276s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_object-info_SRA6J3/object-info/find-method-using-interfaces/.dirs/system-data1:/tmp/test_object-info_SRA6J3/object-info/find-method-using-interfaces/.dirs/system-data2 1276s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_object-info_SRA6J3/object-info/find-method-using-interfaces/.dirs/data 1276s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_object-info_SRA6J3/object-info/find-method-using-interfaces/.dirs/state 1276s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_object-info_SRA6J3/object-info/find-method-using-interfaces/.dirs/runtime 1276s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 1276s ok 1 /object-info/find-method-using-interfaces 1276s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_object-info_SRA6J3/object-info/find-vfunc-using-interfaces/.dirs/home 1276s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_object-info_SRA6J3/object-info/find-vfunc-using-interfaces/.dirs/cache 1276s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_object-info_SRA6J3/object-info/find-vfunc-using-interfaces/.dirs/system-config1:/tmp/test_object-info_SRA6J3/object-info/find-vfunc-using-interfaces/.dirs/system-config2 1276s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_object-info_SRA6J3/object-info/find-vfunc-using-interfaces/.dirs/config 1276s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_object-info_SRA6J3/object-info/find-vfunc-using-interfaces/.dirs/system-data1:/tmp/test_object-info_SRA6J3/object-info/find-vfunc-using-interfaces/.dirs/system-data2 1276s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_object-info_SRA6J3/object-info/find-vfunc-using-interfaces/.dirs/data 1276s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_object-info_SRA6J3/object-info/find-vfunc-using-interfaces/.dirs/state 1276s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_object-info_SRA6J3/object-info/find-vfunc-using-interfaces/.dirs/runtime 1276s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 1276s ok 2 /object-info/find-vfunc-using-interfaces 1276s # End of object-info tests 1276s TAP version 14 1276s # random seed: R02S706e48ac776b58ef0aba3ccf1a186203 1276s 1..1 1276s # Start of portal-support tests 1276s # Start of flatpak tests 1276s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_portal-support-flatpak-gsettings-only_ZXV6J3/portal-support/flatpak/gsettings/.dirs/home 1276s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_portal-support-flatpak-gsettings-only_ZXV6J3/portal-support/flatpak/gsettings/.dirs/cache 1276s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_portal-support-flatpak-gsettings-only_ZXV6J3/portal-support/flatpak/gsettings/.dirs/system-config1:/tmp/test_portal-support-flatpak-gsettings-only_ZXV6J3/portal-support/flatpak/gsettings/.dirs/system-config2 1276s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_portal-support-flatpak-gsettings-only_ZXV6J3/portal-support/flatpak/gsettings/.dirs/config 1276s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_portal-support-flatpak-gsettings-only_ZXV6J3/portal-support/flatpak/gsettings/.dirs/system-data1:/tmp/test_portal-support-flatpak-gsettings-only_ZXV6J3/portal-support/flatpak/gsettings/.dirs/system-data2 1276s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_portal-support-flatpak-gsettings-only_ZXV6J3/portal-support/flatpak/gsettings/.dirs/data 1276s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_portal-support-flatpak-gsettings-only_ZXV6J3/portal-support/flatpak/gsettings/.dirs/state 1276s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_portal-support-flatpak-gsettings-only_ZXV6J3/portal-support/flatpak/gsettings/.dirs/runtime 1276s # Creating .flatpak-info in /tmp/test_portal-support-flatpak-gsettings-only_ZXV6J3/portal-support/flatpak/gsettings/.dirs/runtime/.flatpak-info 1276s ok 1 /portal-support/flatpak/gsettings 1276s # End of flatpak tests 1276s # End of portal-support tests 1276s ok - glib/portal-support-flatpak-gsettings-only.test 1276s # Running test: glib/refcount-macro.test 1276s TAP version 14 1276s # random seed: R02Saf1030d0ad70ebb8b69fe1335bd4ed3d 1276s 1..4 1276s # Start of refcount tests 1276s ok 1 /refcount/grefcount 1276s ok 2 /refcount/gatomicrefcount 1276s # Start of grefcount tests 1276s ok 3 /refcount/grefcount/saturation 1276s # End of grefcount tests 1276s # Start of gatomicrefcount tests 1276s ok 4 /refcount/gatomicrefcount/saturation 1276s # End of gatomicrefcount tests 1276s # End of refcount tests 1276s ok - glib/refcount-macro.test 1276s # Running test: glib/spawn-path-search.test 1276s TAP version 14 1276s # random seed: R02Sbccff00b432fd20368e212449d58f17c 1276s 1..7 1276s # Start of spawn tests 1276s # /spawn/do-not-search summary: Without G_SPAWN_SEARCH_PATH, spawn-test-helper means ./spawn-test-helper. 1276s # 1276s # this is spawn-test-helper from glib/tests 1276s # 1276s ok 1 /spawn/do-not-search 1276s # /spawn/search-path summary: With G_SPAWN_SEARCH_PATH, spawn-test-helper means $PATH/spawn-test-helper. 1276s # 1276s # this is spawn-test-helper from path-test-subdir 1276s # 1276s ok 2 /spawn/search-path 1276s # /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. 1276s # 1276s # this is spawn-test-helper from path-test-subdir 1276s # 1276s ok 3 /spawn/search-path-from-envp 1276s # /spawn/search-path-ambiguous summary: With G_SPAWN_SEARCH_PATH and G_SPAWN_SEARCH_PATH_FROM_ENVP, the latter wins. 1276s # 1276s # this is spawn-test-helper from path-test-subdir 1276s # 1276s ok 4 /spawn/search-path-ambiguous 1276s # 1276s # this is spawn-test-helper from path-test-subdir 1276s # 1276s ok 5 /spawn/search-path-heap-allocation 1276s # /spawn/search-path-fallback-in-environ summary: With G_SPAWN_SEARCH_PATH but no PATH, a fallback is used. 1276s # 1276s # this is spawn-test-helper from glib/tests 1276s # 1276s ok 6 /spawn/search-path-fallback-in-environ 1276s # /spawn/search-path-fallback-in-envp summary: With G_SPAWN_SEARCH_PATH_FROM_ENVP but no PATH, a fallback is used. 1276s # 1276s # this is spawn-test-helper from glib/tests 1276s # 1276s ok 7 /spawn/search-path-fallback-in-envp 1276s # End of spawn tests 1276s ok - glib/spawn-path-search.test 1276s # Running test: glib/queue.test 1276s TAP version 14 1276s # random seed: R02Scf7b98428e920137b7902bb325bb0770 1276s 1..12 1276s # Start of queue tests 1276s ok 1 /queue/basic 1276s ok 2 /queue/copy 1276s ok 3 /queue/off-by-one 1276s ok 4 /queue/find-custom 1276s ok 5 /queue/static 1276s ok 6 /queue/clear 1276s ok 7 /queue/free-full 1276s ok 8 /queue/clear-full 1276s ok 9 /queue/insert-sibling-link 1276s ok 10 /queue/push-nth-link 1276s # Start of clear-full tests 1276s ok 11 /queue/clear-full/noop 1276s # End of clear-full tests 1276s # Start of random tests 1276s ok 12 /queue/random/seed:1420775154 1276s # End of random tests 1276s # End of queue tests 1276s ok - glib/queue.test 1276s # Running test: glib/autoptr-girepository.test 1276s TAP version 14 1276s # random seed: R02S559940d6febb0990f333ac75d80a257b 1276s 1..24 1276s # Start of autoptr tests 1276s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_autoptr-girepository_0OLPK3/autoptr/repository/.dirs/home 1276s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_autoptr-girepository_0OLPK3/autoptr/repository/.dirs/cache 1276s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_autoptr-girepository_0OLPK3/autoptr/repository/.dirs/system-config1:/tmp/test_autoptr-girepository_0OLPK3/autoptr/repository/.dirs/system-config2 1276s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_autoptr-girepository_0OLPK3/autoptr/repository/.dirs/config 1276s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_autoptr-girepository_0OLPK3/autoptr/repository/.dirs/system-data1:/tmp/test_autoptr-girepository_0OLPK3/autoptr/repository/.dirs/system-data2 1276s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_autoptr-girepository_0OLPK3/autoptr/repository/.dirs/data 1276s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_autoptr-girepository_0OLPK3/autoptr/repository/.dirs/state 1276s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_autoptr-girepository_0OLPK3/autoptr/repository/.dirs/runtime 1276s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 1276s ok 1 /autoptr/repository 1276s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_autoptr-girepository_0OLPK3/autoptr/typelib/.dirs/home 1276s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_autoptr-girepository_0OLPK3/autoptr/typelib/.dirs/cache 1276s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_autoptr-girepository_0OLPK3/autoptr/typelib/.dirs/system-config1:/tmp/test_autoptr-girepository_0OLPK3/autoptr/typelib/.dirs/system-config2 1276s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_autoptr-girepository_0OLPK3/autoptr/typelib/.dirs/config 1276s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_autoptr-girepository_0OLPK3/autoptr/typelib/.dirs/system-data1:/tmp/test_autoptr-girepository_0OLPK3/autoptr/typelib/.dirs/system-data2 1276s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_autoptr-girepository_0OLPK3/autoptr/typelib/.dirs/data 1276s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_autoptr-girepository_0OLPK3/autoptr/typelib/.dirs/state 1276s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_autoptr-girepository_0OLPK3/autoptr/typelib/.dirs/runtime 1276s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 1276s ok 2 /autoptr/typelib 1276s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_autoptr-girepository_0OLPK3/autoptr/base-info/.dirs/home 1276s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_autoptr-girepository_0OLPK3/autoptr/base-info/.dirs/cache 1276s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_autoptr-girepository_0OLPK3/autoptr/base-info/.dirs/system-config1:/tmp/test_autoptr-girepository_0OLPK3/autoptr/base-info/.dirs/system-config2 1276s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_autoptr-girepository_0OLPK3/autoptr/base-info/.dirs/config 1276s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_autoptr-girepository_0OLPK3/autoptr/base-info/.dirs/system-data1:/tmp/test_autoptr-girepository_0OLPK3/autoptr/base-info/.dirs/system-data2 1276s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_autoptr-girepository_0OLPK3/autoptr/base-info/.dirs/data 1276s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_autoptr-girepository_0OLPK3/autoptr/base-info/.dirs/state 1276s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_autoptr-girepository_0OLPK3/autoptr/base-info/.dirs/runtime 1276s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 1276s ok 3 /autoptr/base-info 1276s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_autoptr-girepository_0OLPK3/autoptr/arg-info/.dirs/home 1276s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_autoptr-girepository_0OLPK3/autoptr/arg-info/.dirs/cache 1276s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_autoptr-girepository_0OLPK3/autoptr/arg-info/.dirs/system-config1:/tmp/test_autoptr-girepository_0OLPK3/autoptr/arg-info/.dirs/system-config2 1276s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_autoptr-girepository_0OLPK3/autoptr/arg-info/.dirs/config 1276s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_autoptr-girepository_0OLPK3/autoptr/arg-info/.dirs/system-data1:/tmp/test_autoptr-girepository_0OLPK3/autoptr/arg-info/.dirs/system-data2 1276s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_autoptr-girepository_0OLPK3/autoptr/arg-info/.dirs/data 1276s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_autoptr-girepository_0OLPK3/autoptr/arg-info/.dirs/state 1276s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_autoptr-girepository_0OLPK3/autoptr/arg-info/.dirs/runtime 1276s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 1276s ok 4 /autoptr/arg-info 1276s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_autoptr-girepository_0OLPK3/autoptr/callable-info/.dirs/home 1276s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_autoptr-girepository_0OLPK3/autoptr/callable-info/.dirs/cache 1276s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_autoptr-girepository_0OLPK3/autoptr/callable-info/.dirs/system-config1:/tmp/test_autoptr-girepository_0OLPK3/autoptr/callable-info/.dirs/system-config2 1276s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_autoptr-girepository_0OLPK3/autoptr/callable-info/.dirs/config 1276s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_autoptr-girepository_0OLPK3/autoptr/callable-info/.dirs/system-data1:/tmp/test_autoptr-girepository_0OLPK3/autoptr/callable-info/.dirs/system-data2 1276s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_autoptr-girepository_0OLPK3/autoptr/callable-info/.dirs/data 1276s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_autoptr-girepository_0OLPK3/autoptr/callable-info/.dirs/state 1276s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_autoptr-girepository_0OLPK3/autoptr/callable-info/.dirs/runtime 1276s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 1276s ok 5 /autoptr/callable-info 1276s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_autoptr-girepository_0OLPK3/autoptr/callback-info/.dirs/home 1276s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_autoptr-girepository_0OLPK3/autoptr/callback-info/.dirs/cache 1276s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_autoptr-girepository_0OLPK3/autoptr/callback-info/.dirs/system-config1:/tmp/test_autoptr-girepository_0OLPK3/autoptr/callback-info/.dirs/system-config2 1276s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_autoptr-girepository_0OLPK3/autoptr/callback-info/.dirs/config 1276s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_autoptr-girepository_0OLPK3/autoptr/callback-info/.dirs/system-data1:/tmp/test_autoptr-girepository_0OLPK3/autoptr/callback-info/.dirs/system-data2 1276s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_autoptr-girepository_0OLPK3/autoptr/callback-info/.dirs/data 1276s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_autoptr-girepository_0OLPK3/autoptr/callback-info/.dirs/state 1276s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_autoptr-girepository_0OLPK3/autoptr/callback-info/.dirs/runtime 1276s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 1276s ok 6 /autoptr/callback-info 1276s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_autoptr-girepository_0OLPK3/autoptr/constant-info/.dirs/home 1276s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_autoptr-girepository_0OLPK3/autoptr/constant-info/.dirs/cache 1276s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_autoptr-girepository_0OLPK3/autoptr/constant-info/.dirs/system-config1:/tmp/test_autoptr-girepository_0OLPK3/autoptr/constant-info/.dirs/system-config2 1276s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_autoptr-girepository_0OLPK3/autoptr/constant-info/.dirs/config 1276s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_autoptr-girepository_0OLPK3/autoptr/constant-info/.dirs/system-data1:/tmp/test_autoptr-girepository_0OLPK3/autoptr/constant-info/.dirs/system-data2 1276s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_autoptr-girepository_0OLPK3/autoptr/constant-info/.dirs/data 1276s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_autoptr-girepository_0OLPK3/autoptr/constant-info/.dirs/state 1276s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_autoptr-girepository_0OLPK3/autoptr/constant-info/.dirs/runtime 1276s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 1276s ok 7 /autoptr/constant-info 1276s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_autoptr-girepository_0OLPK3/autoptr/enum-info/.dirs/home 1276s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_autoptr-girepository_0OLPK3/autoptr/enum-info/.dirs/cache 1276s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_autoptr-girepository_0OLPK3/autoptr/enum-info/.dirs/system-config1:/tmp/test_autoptr-girepository_0OLPK3/autoptr/enum-info/.dirs/system-config2 1276s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_autoptr-girepository_0OLPK3/autoptr/enum-info/.dirs/config 1276s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_autoptr-girepository_0OLPK3/autoptr/enum-info/.dirs/system-data1:/tmp/test_autoptr-girepository_0OLPK3/autoptr/enum-info/.dirs/system-data2 1276s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_autoptr-girepository_0OLPK3/autoptr/enum-info/.dirs/data 1276s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_autoptr-girepository_0OLPK3/autoptr/enum-info/.dirs/state 1276s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_autoptr-girepository_0OLPK3/autoptr/enum-info/.dirs/runtime 1276s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 1276s ok 8 /autoptr/enum-info 1276s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_autoptr-girepository_0OLPK3/autoptr/field-info/.dirs/home 1276s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_autoptr-girepository_0OLPK3/autoptr/field-info/.dirs/cache 1276s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_autoptr-girepository_0OLPK3/autoptr/field-info/.dirs/system-config1:/tmp/test_autoptr-girepository_0OLPK3/autoptr/field-info/.dirs/system-config2 1276s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_autoptr-girepository_0OLPK3/autoptr/field-info/.dirs/config 1276s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_autoptr-girepository_0OLPK3/autoptr/field-info/.dirs/system-data1:/tmp/test_autoptr-girepository_0OLPK3/autoptr/field-info/.dirs/system-data2 1276s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_autoptr-girepository_0OLPK3/autoptr/field-info/.dirs/data 1276s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_autoptr-girepository_0OLPK3/autoptr/field-info/.dirs/state 1276s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_autoptr-girepository_0OLPK3/autoptr/field-info/.dirs/runtime 1276s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 1276s ok 9 /autoptr/field-info 1276s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_autoptr-girepository_0OLPK3/autoptr/flags-info/.dirs/home 1276s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_autoptr-girepository_0OLPK3/autoptr/flags-info/.dirs/cache 1276s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_autoptr-girepository_0OLPK3/autoptr/flags-info/.dirs/system-config1:/tmp/test_autoptr-girepository_0OLPK3/autoptr/flags-info/.dirs/system-config2 1276s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_autoptr-girepository_0OLPK3/autoptr/flags-info/.dirs/config 1276s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_autoptr-girepository_0OLPK3/autoptr/flags-info/.dirs/system-data1:/tmp/test_autoptr-girepository_0OLPK3/autoptr/flags-info/.dirs/system-data2 1276s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_autoptr-girepository_0OLPK3/autoptr/flags-info/.dirs/data 1276s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_autoptr-girepository_0OLPK3/autoptr/flags-info/.dirs/state 1276s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_autoptr-girepository_0OLPK3/autoptr/flags-info/.dirs/runtime 1276s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 1276s ok 10 /autoptr/flags-info 1276s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_autoptr-girepository_0OLPK3/autoptr/function-info/.dirs/home 1276s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_autoptr-girepository_0OLPK3/autoptr/function-info/.dirs/cache 1276s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_autoptr-girepository_0OLPK3/autoptr/function-info/.dirs/system-config1:/tmp/test_autoptr-girepository_0OLPK3/autoptr/function-info/.dirs/system-config2 1276s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_autoptr-girepository_0OLPK3/autoptr/function-info/.dirs/config 1276s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_autoptr-girepository_0OLPK3/autoptr/function-info/.dirs/system-data1:/tmp/test_autoptr-girepository_0OLPK3/autoptr/function-info/.dirs/system-data2 1276s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_autoptr-girepository_0OLPK3/autoptr/function-info/.dirs/data 1276s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_autoptr-girepository_0OLPK3/autoptr/function-info/.dirs/state 1276s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_autoptr-girepository_0OLPK3/autoptr/function-info/.dirs/runtime 1276s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 1276s ok 11 /autoptr/function-info 1276s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_autoptr-girepository_0OLPK3/autoptr/interface-info/.dirs/home 1276s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_autoptr-girepository_0OLPK3/autoptr/interface-info/.dirs/cache 1276s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_autoptr-girepository_0OLPK3/autoptr/interface-info/.dirs/system-config1:/tmp/test_autoptr-girepository_0OLPK3/autoptr/interface-info/.dirs/system-config2 1276s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_autoptr-girepository_0OLPK3/autoptr/interface-info/.dirs/config 1276s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_autoptr-girepository_0OLPK3/autoptr/interface-info/.dirs/system-data1:/tmp/test_autoptr-girepository_0OLPK3/autoptr/interface-info/.dirs/system-data2 1276s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_autoptr-girepository_0OLPK3/autoptr/interface-info/.dirs/data 1276s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_autoptr-girepository_0OLPK3/autoptr/interface-info/.dirs/state 1276s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_autoptr-girepository_0OLPK3/autoptr/interface-info/.dirs/runtime 1276s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 1276s ok 12 /autoptr/interface-info 1276s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_autoptr-girepository_0OLPK3/autoptr/object-info/.dirs/home 1276s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_autoptr-girepository_0OLPK3/autoptr/object-info/.dirs/cache 1276s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_autoptr-girepository_0OLPK3/autoptr/object-info/.dirs/system-config1:/tmp/test_autoptr-girepository_0OLPK3/autoptr/object-info/.dirs/system-config2 1276s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_autoptr-girepository_0OLPK3/autoptr/object-info/.dirs/config 1276s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_autoptr-girepository_0OLPK3/autoptr/object-info/.dirs/system-data1:/tmp/test_autoptr-girepository_0OLPK3/autoptr/object-info/.dirs/system-data2 1276s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_autoptr-girepository_0OLPK3/autoptr/object-info/.dirs/data 1276s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_autoptr-girepository_0OLPK3/autoptr/object-info/.dirs/state 1276s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_autoptr-girepository_0OLPK3/autoptr/object-info/.dirs/runtime 1276s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 1276s ok 13 /autoptr/object-info 1276s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_autoptr-girepository_0OLPK3/autoptr/property-info/.dirs/home 1276s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_autoptr-girepository_0OLPK3/autoptr/property-info/.dirs/cache 1276s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_autoptr-girepository_0OLPK3/autoptr/property-info/.dirs/system-config1:/tmp/test_autoptr-girepository_0OLPK3/autoptr/property-info/.dirs/system-config2 1276s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_autoptr-girepository_0OLPK3/autoptr/property-info/.dirs/config 1276s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_autoptr-girepository_0OLPK3/autoptr/property-info/.dirs/system-data1:/tmp/test_autoptr-girepository_0OLPK3/autoptr/property-info/.dirs/system-data2 1276s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_autoptr-girepository_0OLPK3/autoptr/property-info/.dirs/data 1276s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_autoptr-girepository_0OLPK3/autoptr/property-info/.dirs/state 1276s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_autoptr-girepository_0OLPK3/autoptr/property-info/.dirs/runtime 1276s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 1276s ok 14 /autoptr/property-info 1276s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_autoptr-girepository_0OLPK3/autoptr/registered-type-info/.dirs/home 1276s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_autoptr-girepository_0OLPK3/autoptr/registered-type-info/.dirs/cache 1276s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_autoptr-girepository_0OLPK3/autoptr/registered-type-info/.dirs/system-config1:/tmp/test_autoptr-girepository_0OLPK3/autoptr/registered-type-info/.dirs/system-config2 1276s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_autoptr-girepository_0OLPK3/autoptr/registered-type-info/.dirs/config 1276s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_autoptr-girepository_0OLPK3/autoptr/registered-type-info/.dirs/system-data1:/tmp/test_autoptr-girepository_0OLPK3/autoptr/registered-type-info/.dirs/system-data2 1276s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_autoptr-girepository_0OLPK3/autoptr/registered-type-info/.dirs/data 1276s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_autoptr-girepository_0OLPK3/autoptr/registered-type-info/.dirs/state 1276s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_autoptr-girepository_0OLPK3/autoptr/registered-type-info/.dirs/runtime 1276s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 1276s ok 15 /autoptr/registered-type-info 1276s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_autoptr-girepository_0OLPK3/autoptr/signal-info/.dirs/home 1276s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_autoptr-girepository_0OLPK3/autoptr/signal-info/.dirs/cache 1276s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_autoptr-girepository_0OLPK3/autoptr/signal-info/.dirs/system-config1:/tmp/test_autoptr-girepository_0OLPK3/autoptr/signal-info/.dirs/system-config2 1276s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_autoptr-girepository_0OLPK3/autoptr/signal-info/.dirs/config 1276s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_autoptr-girepository_0OLPK3/autoptr/signal-info/.dirs/system-data1:/tmp/test_autoptr-girepository_0OLPK3/autoptr/signal-info/.dirs/system-data2 1276s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_autoptr-girepository_0OLPK3/autoptr/signal-info/.dirs/data 1276s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_autoptr-girepository_0OLPK3/autoptr/signal-info/.dirs/state 1276s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_autoptr-girepository_0OLPK3/autoptr/signal-info/.dirs/runtime 1276s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 1276s ok 16 /autoptr/signal-info 1276s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_autoptr-girepository_0OLPK3/autoptr/struct-info/.dirs/home 1276s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_autoptr-girepository_0OLPK3/autoptr/struct-info/.dirs/cache 1276s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_autoptr-girepository_0OLPK3/autoptr/struct-info/.dirs/system-config1:/tmp/test_autoptr-girepository_0OLPK3/autoptr/struct-info/.dirs/system-config2 1276s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_autoptr-girepository_0OLPK3/autoptr/struct-info/.dirs/config 1276s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_autoptr-girepository_0OLPK3/autoptr/struct-info/.dirs/system-data1:/tmp/test_autoptr-girepository_0OLPK3/autoptr/struct-info/.dirs/system-data2 1276s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_autoptr-girepository_0OLPK3/autoptr/struct-info/.dirs/data 1276s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_autoptr-girepository_0OLPK3/autoptr/struct-info/.dirs/state 1276s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_autoptr-girepository_0OLPK3/autoptr/struct-info/.dirs/runtime 1276s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 1276s ok 17 /autoptr/struct-info 1276s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_autoptr-girepository_0OLPK3/autoptr/type-info/.dirs/home 1276s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_autoptr-girepository_0OLPK3/autoptr/type-info/.dirs/cache 1276s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_autoptr-girepository_0OLPK3/autoptr/type-info/.dirs/system-config1:/tmp/test_autoptr-girepository_0OLPK3/autoptr/type-info/.dirs/system-config2 1276s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_autoptr-girepository_0OLPK3/autoptr/type-info/.dirs/config 1276s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_autoptr-girepository_0OLPK3/autoptr/type-info/.dirs/system-data1:/tmp/test_autoptr-girepository_0OLPK3/autoptr/type-info/.dirs/system-data2 1276s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_autoptr-girepository_0OLPK3/autoptr/type-info/.dirs/data 1276s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_autoptr-girepository_0OLPK3/autoptr/type-info/.dirs/state 1276s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_autoptr-girepository_0OLPK3/autoptr/type-info/.dirs/runtime 1276s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 1276s ok - glib/autoptr-girepository.test 1276s # Running test: glib/type-flags.test 1276s ok - glib/type-flags.test 1276s # Running test: glib/tls-database.test 1276s ok - glib/tls-database.test 1276s # Running test: glib/portal-support-flatpak-full.test 1276s ok - glib/portal-support-flatpak-full.test 1276s # Running test: glib/tls-certificate.test 1276s ok 18 /autoptr/type-info 1276s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_autoptr-girepository_0OLPK3/autoptr/union-info/.dirs/home 1276s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_autoptr-girepository_0OLPK3/autoptr/union-info/.dirs/cache 1276s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_autoptr-girepository_0OLPK3/autoptr/union-info/.dirs/system-config1:/tmp/test_autoptr-girepository_0OLPK3/autoptr/union-info/.dirs/system-config2 1276s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_autoptr-girepository_0OLPK3/autoptr/union-info/.dirs/config 1276s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_autoptr-girepository_0OLPK3/autoptr/union-info/.dirs/system-data1:/tmp/test_autoptr-girepository_0OLPK3/autoptr/union-info/.dirs/system-data2 1276s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_autoptr-girepository_0OLPK3/autoptr/union-info/.dirs/data 1276s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_autoptr-girepository_0OLPK3/autoptr/union-info/.dirs/state 1276s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_autoptr-girepository_0OLPK3/autoptr/union-info/.dirs/runtime 1276s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 1276s ok - glib/tls-certificate.test 1276s # Running test: glib/signals-refcount1.test 1276s ok 19 /autoptr/union-info 1276s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_autoptr-girepository_0OLPK3/autoptr/value-info/.dirs/home 1276s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_autoptr-girepository_0OLPK3/autoptr/value-info/.dirs/cache 1276s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_autoptr-girepository_0OLPK3/autoptr/value-info/.dirs/system-config1:/tmp/test_autoptr-girepository_0OLPK3/autoptr/value-info/.dirs/system-config2 1276s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_autoptr-girepository_0OLPK3/autoptr/value-info/.dirs/config 1276s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_autoptr-girepository_0OLPK3/autoptr/value-info/.dirs/system-data1:/tmp/test_autoptr-girepository_0OLPK3/autoptr/value-info/.dirs/system-data2 1276s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_autoptr-girepository_0OLPK3/autoptr/value-info/.dirs/data 1276s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_autoptr-girepository_0OLPK3/autoptr/value-info/.dirs/state 1276s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_autoptr-girepository_0OLPK3/autoptr/value-info/.dirs/runtime 1276s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 1276s ok 20 /autoptr/value-info 1276s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_autoptr-girepository_0OLPK3/autoptr/vfunc-info/.dirs/home 1276s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_autoptr-girepository_0OLPK3/autoptr/vfunc-info/.dirs/cache 1276s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_autoptr-girepository_0OLPK3/autoptr/vfunc-info/.dirs/system-config1:/tmp/test_autoptr-girepository_0OLPK3/autoptr/vfunc-info/.dirs/system-config2 1276s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_autoptr-girepository_0OLPK3/autoptr/vfunc-info/.dirs/config 1276s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_autoptr-girepository_0OLPK3/autoptr/vfunc-info/.dirs/system-data1:/tmp/test_autoptr-girepository_0OLPK3/autoptr/vfunc-info/.dirs/system-data2 1276s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_autoptr-girepository_0OLPK3/autoptr/vfunc-info/.dirs/data 1276s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_autoptr-girepository_0OLPK3/autoptr/vfunc-info/.dirs/state 1276s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_autoptr-girepository_0OLPK3/autoptr/vfunc-info/.dirs/runtime 1276s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 1276s ok 21 /autoptr/vfunc-info 1276s # End of autoptr tests 1276s # Start of auto tests 1276s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_autoptr-girepository_0OLPK3/auto/arg-info/.dirs/home 1276s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_autoptr-girepository_0OLPK3/auto/arg-info/.dirs/cache 1276s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_autoptr-girepository_0OLPK3/auto/arg-info/.dirs/system-config1:/tmp/test_autoptr-girepository_0OLPK3/auto/arg-info/.dirs/system-config2 1276s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_autoptr-girepository_0OLPK3/auto/arg-info/.dirs/config 1276s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_autoptr-girepository_0OLPK3/auto/arg-info/.dirs/system-data1:/tmp/test_autoptr-girepository_0OLPK3/auto/arg-info/.dirs/system-data2 1276s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_autoptr-girepository_0OLPK3/auto/arg-info/.dirs/data 1276s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_autoptr-girepository_0OLPK3/auto/arg-info/.dirs/state 1276s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_autoptr-girepository_0OLPK3/auto/arg-info/.dirs/runtime 1276s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 1276s ok 22 /auto/arg-info 1276s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_autoptr-girepository_0OLPK3/auto/type-info/.dirs/home 1276s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_autoptr-girepository_0OLPK3/auto/type-info/.dirs/cache 1276s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_autoptr-girepository_0OLPK3/auto/type-info/.dirs/system-config1:/tmp/test_autoptr-girepository_0OLPK3/auto/type-info/.dirs/system-config2 1276s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_autoptr-girepository_0OLPK3/auto/type-info/.dirs/config 1276s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_autoptr-girepository_0OLPK3/auto/type-info/.dirs/system-data1:/tmp/test_autoptr-girepository_0OLPK3/auto/type-info/.dirs/system-data2 1276s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_autoptr-girepository_0OLPK3/auto/type-info/.dirs/data 1276s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_autoptr-girepository_0OLPK3/auto/type-info/.dirs/state 1276s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_autoptr-girepository_0OLPK3/auto/type-info/.dirs/runtime 1276s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 1276s ok 23 /auto/type-info 1276s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_autoptr-girepository_0OLPK3/auto/function-invoker/.dirs/home 1276s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_autoptr-girepository_0OLPK3/auto/function-invoker/.dirs/cache 1276s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_autoptr-girepository_0OLPK3/auto/function-invoker/.dirs/system-config1:/tmp/test_autoptr-girepository_0OLPK3/auto/function-invoker/.dirs/system-config2 1276s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_autoptr-girepository_0OLPK3/auto/function-invoker/.dirs/config 1276s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_autoptr-girepository_0OLPK3/auto/function-invoker/.dirs/system-data1:/tmp/test_autoptr-girepository_0OLPK3/auto/function-invoker/.dirs/system-data2 1276s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_autoptr-girepository_0OLPK3/auto/function-invoker/.dirs/data 1276s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_autoptr-girepository_0OLPK3/auto/function-invoker/.dirs/state 1276s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_autoptr-girepository_0OLPK3/auto/function-invoker/.dirs/runtime 1276s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 1276s ok 24 /auto/function-invoker 1276s # End of auto tests 1276s TAP version 14 1276s # random seed: R02S0ff47140e83f50e6ec8b4738a9ba50a0 1276s 1..4 1276s # Start of type tests 1276s # Start of flags tests 1276s ok 1 /type/flags/interface 1276s ok 2 /type/flags/final 1276s # /type/flags/deprecated summary: Test that trying to instantiate a deprecated type results in a warning. 1276s ok 3 /type/flags/deprecated 1276s # Start of final tests 1276s ok 4 /type/flags/final/instance-check 1276s # End of final tests 1276s # End of flags tests 1276s # End of type tests 1276s TAP version 14 1276s # random seed: R02S8c016d5f2a0b1897ed876cf648fd54a8 1276s 1..1 1276s # Start of tls-backend tests 1276s # GLib-GIO-DEBUG: _g_io_module_get_default: Found default implementation test (GTestTlsBackend) for ‘gio-tls-backend’ 1276s ok 1 /tls-backend/set-default-database 1276s # End of tls-backend tests 1276s TAP version 14 1276s # random seed: R02S9b184da75f1e9cbade820f3905db1c34 1276s 1..1 1276s # Start of portal-support tests 1276s # Start of flatpak tests 1276s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_portal-support-flatpak-full_YB2NK3/portal-support/flatpak/full/.dirs/home 1276s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_portal-support-flatpak-full_YB2NK3/portal-support/flatpak/full/.dirs/cache 1276s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_portal-support-flatpak-full_YB2NK3/portal-support/flatpak/full/.dirs/system-config1:/tmp/test_portal-support-flatpak-full_YB2NK3/portal-support/flatpak/full/.dirs/system-config2 1276s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_portal-support-flatpak-full_YB2NK3/portal-support/flatpak/full/.dirs/config 1276s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_portal-support-flatpak-full_YB2NK3/portal-support/flatpak/full/.dirs/system-data1:/tmp/test_portal-support-flatpak-full_YB2NK3/portal-support/flatpak/full/.dirs/system-data2 1276s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_portal-support-flatpak-full_YB2NK3/portal-support/flatpak/full/.dirs/data 1276s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_portal-support-flatpak-full_YB2NK3/portal-support/flatpak/full/.dirs/state 1276s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_portal-support-flatpak-full_YB2NK3/portal-support/flatpak/full/.dirs/runtime 1276s # Creating .flatpak-info in /tmp/test_portal-support-flatpak-full_YB2NK3/portal-support/flatpak/full/.dirs/runtime/.flatpak-info 1276s ok 1 /portal-support/flatpak/full 1276s # End of flatpak tests 1276s # End of portal-support tests 1276s TAP version 14 1276s # random seed: R02S72d053fae24dc4d821a59b2637ba9442 1276s 1..19 1276s # Start of tls-certificate tests 1276s # GLib-GIO-DEBUG: _g_io_module_get_default: Found default implementation test (GTestTlsBackend) for ‘gio-tls-backend’ 1276s ok 1 /tls-certificate/pem-parser 1276s ok 2 /tls-certificate/pem-parser-handles-chain 1276s ok 3 /tls-certificate/from_file 1276s ok 4 /tls-certificate/from_files 1276s ok 5 /tls-certificate/from_files_crlf 1276s ok 6 /tls-certificate/from_files_pkcs8 1276s ok 7 /tls-certificate/from_files_pkcs8enc 1276s ok 8 /tls-certificate/list_from_file 1276s ok 9 /tls-certificate/pkcs11-uri 1276s ok 10 /tls-certificate/pkcs11-uri-unsupported 1276s ok 11 /tls-certificate/from_pkcs12 1276s ok 12 /tls-certificate/from_pkcs12_file 1276s ok 13 /tls-certificate/not-valid-before 1276s ok 14 /tls-certificate/not-valid-after 1276s ok 15 /tls-certificate/subject-name 1276s ok 16 /tls-certificate/issuer-name 1276s ok 17 /tls-certificate/dns-names 1276s ok 18 /tls-certificate/ip-addresses 1276s ok 19 /tls-certificate/pem-parser-no-sentinel 1276s # End of tls-certificate tests 1276s TAP version 14 1276s # random seed: R02S1b77d7f78991e1ebedc2138e3c5b794f 1276s 1..1 1276s # Start of gobject tests 1276s # Start of refcount tests 1276s # init 0xff67c90 1276s # 1276s # init 0xff6e510 1276s # 1280s # Executing: glib/signals-refcount1.test 1281s # dispose 0xff67c90! 1281s # 1281s # dispose 0xff6e510! 1281s # 1281s ok 1 /gobject/refcount/signals 1281s # slow test /gobject/refcount/signals executed in 5.00 secs 1281s # End of refcount tests 1281s # End of gobject tests 1281s ok - glib/signals-refcount1.test 1281s # Running test: glib/overflow-fallback.test 1281s TAP version 14 1281s # random seed: R02S8a60777b6810ef252c98ea7c7a6c1499 1281s 1..6 1281s # Start of glib tests 1281s # Start of checked-math tests 1281s ok 1 /glib/checked-math/guint-add 1281s ok 2 /glib/checked-math/guint-mul 1281s ok 3 /glib/checked-math/guint64-add 1281s ok 4 /glib/checked-math/guint64-mul 1281s ok 5 /glib/checked-math/gsize-add 1281s ok 6 /glib/checked-math/gsize-mul 1281s # End of checked-math tests 1281s # End of glib tests 1281s ok - glib/overflow-fallback.test 1281s # Running test: glib/enums.test 1281s TAP version 14 1281s # random seed: R02Saaa9d7d553f901c868cf34fd9e50065a 1281s 1..4 1281s # Start of enum tests 1281s ok 1 /enum/basic 1281s ok 2 /enum/define-type 1281s # End of enum tests 1281s # Start of flags tests 1281s ok 3 /flags/basic 1281s ok 4 /flags/define-type 1281s # End of flags tests 1281s ok - glib/enums.test 1281s # Running test: glib/onceinit.test 1281s TAP version 14 1281s # random seed: R02Sdbe46186eeb9447d5015e8c41b055afd 1281s 1..1 1281s # Start of thread tests 1281s ok - glib/onceinit.test 1281s ok 1 /thread/onceinit 1281s # End of thread tests 1281s # Running test: glib/type.test 1281s TAP version 14 1281s # random seed: R02S9460b90499c8f537e9fb0ffc5c8a6bcd 1281s 1..6 1281s # Start of type tests 1281s ok 1 /type/registration-serial 1281s ok 2 /type/interface-prerequisite 1281s ok 3 /type/interface-check 1281s ok 4 /type/next-base 1281s ok 5 /type/is-a 1281s # Invalid types can’t be queried. 1281s # Unclassed types can’t be queried. 1281s ok 6 /type/query 1281s # End of type tests 1281s ok - glib/type.test 1281s # Running test: glib/utils-c-89.test 1281s TAP version 14 1281s # random seed: R02Sa63e437cb86715834f6498e95486e82c 1281s 1..41 1281s # Start of utils tests 1281s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils-c-89_NCGLK3/utils/language-names/.dirs/home 1281s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-c-89_NCGLK3/utils/language-names/.dirs/cache 1281s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-c-89_NCGLK3/utils/language-names/.dirs/system-config1:/tmp/test_utils-c-89_NCGLK3/utils/language-names/.dirs/system-config2 1281s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-c-89_NCGLK3/utils/language-names/.dirs/config 1281s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-c-89_NCGLK3/utils/language-names/.dirs/system-data1:/tmp/test_utils-c-89_NCGLK3/utils/language-names/.dirs/system-data2 1281s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-c-89_NCGLK3/utils/language-names/.dirs/data 1281s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-c-89_NCGLK3/utils/language-names/.dirs/state 1281s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-c-89_NCGLK3/utils/language-names/.dirs/runtime 1281s ok 1 /utils/language-names 1281s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils-c-89_NCGLK3/utils/locale-variants/.dirs/home 1281s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-c-89_NCGLK3/utils/locale-variants/.dirs/cache 1281s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-c-89_NCGLK3/utils/locale-variants/.dirs/system-config1:/tmp/test_utils-c-89_NCGLK3/utils/locale-variants/.dirs/system-config2 1281s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-c-89_NCGLK3/utils/locale-variants/.dirs/config 1281s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-c-89_NCGLK3/utils/locale-variants/.dirs/system-data1:/tmp/test_utils-c-89_NCGLK3/utils/locale-variants/.dirs/system-data2 1281s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-c-89_NCGLK3/utils/locale-variants/.dirs/data 1281s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-c-89_NCGLK3/utils/locale-variants/.dirs/state 1281s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-c-89_NCGLK3/utils/locale-variants/.dirs/runtime 1281s # Testing locale ‘en’ 1281s # Testing locale ‘sr@latin’ 1281s # Testing locale ‘fr_BE’ 1281s # Testing locale ‘sr_SR@latin’ 1281s # Testing locale ‘sr_SR@latin.UTF-8’ 1281s # Testing locale ‘sr@latin_invalid’ 1281s # Testing locale ‘sr.UTF-8@latin’ 1281s # Testing locale ‘sr.UTF-8_latin’ 1281s # Testing locale ‘sr.UTF-8@latin_invalid’ 1281s ok 2 /utils/locale-variants 1281s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils-c-89_NCGLK3/utils/version/.dirs/home 1281s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-c-89_NCGLK3/utils/version/.dirs/cache 1281s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-c-89_NCGLK3/utils/version/.dirs/system-config1:/tmp/test_utils-c-89_NCGLK3/utils/version/.dirs/system-config2 1281s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-c-89_NCGLK3/utils/version/.dirs/config 1281s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-c-89_NCGLK3/utils/version/.dirs/system-data1:/tmp/test_utils-c-89_NCGLK3/utils/version/.dirs/system-data2 1281s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-c-89_NCGLK3/utils/version/.dirs/data 1281s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-c-89_NCGLK3/utils/version/.dirs/state 1281s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-c-89_NCGLK3/utils/version/.dirs/runtime 1281s ok 3 /utils/version 1281s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils-c-89_NCGLK3/utils/appname/.dirs/home 1281s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-c-89_NCGLK3/utils/appname/.dirs/cache 1281s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-c-89_NCGLK3/utils/appname/.dirs/system-config1:/tmp/test_utils-c-89_NCGLK3/utils/appname/.dirs/system-config2 1281s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-c-89_NCGLK3/utils/appname/.dirs/config 1281s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-c-89_NCGLK3/utils/appname/.dirs/system-data1:/tmp/test_utils-c-89_NCGLK3/utils/appname/.dirs/system-data2 1281s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-c-89_NCGLK3/utils/appname/.dirs/data 1281s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-c-89_NCGLK3/utils/appname/.dirs/state 1281s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-c-89_NCGLK3/utils/appname/.dirs/runtime 1281s ok 4 /utils/appname 1281s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils-c-89_NCGLK3/utils/prgname-thread-safety/.dirs/home 1281s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-c-89_NCGLK3/utils/prgname-thread-safety/.dirs/cache 1281s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-c-89_NCGLK3/utils/prgname-thread-safety/.dirs/system-config1:/tmp/test_utils-c-89_NCGLK3/utils/prgname-thread-safety/.dirs/system-config2 1281s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-c-89_NCGLK3/utils/prgname-thread-safety/.dirs/config 1281s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-c-89_NCGLK3/utils/prgname-thread-safety/.dirs/system-data1:/tmp/test_utils-c-89_NCGLK3/utils/prgname-thread-safety/.dirs/system-data2 1281s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-c-89_NCGLK3/utils/prgname-thread-safety/.dirs/data 1281s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-c-89_NCGLK3/utils/prgname-thread-safety/.dirs/state 1281s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-c-89_NCGLK3/utils/prgname-thread-safety/.dirs/runtime 1281s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/847 1281s # /utils/prgname-thread-safety summary: Test that threads racing to get and set the program name always receive a valid program name. 1281s ok 5 /utils/prgname-thread-safety 1281s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils-c-89_NCGLK3/utils/tmpdir/.dirs/home 1281s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-c-89_NCGLK3/utils/tmpdir/.dirs/cache 1281s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-c-89_NCGLK3/utils/tmpdir/.dirs/system-config1:/tmp/test_utils-c-89_NCGLK3/utils/tmpdir/.dirs/system-config2 1281s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-c-89_NCGLK3/utils/tmpdir/.dirs/config 1281s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-c-89_NCGLK3/utils/tmpdir/.dirs/system-data1:/tmp/test_utils-c-89_NCGLK3/utils/tmpdir/.dirs/system-data2 1281s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-c-89_NCGLK3/utils/tmpdir/.dirs/data 1281s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-c-89_NCGLK3/utils/tmpdir/.dirs/state 1281s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-c-89_NCGLK3/utils/tmpdir/.dirs/runtime 1281s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=627969 1281s # /utils/tmpdir summary: Test that g_get_tmp_dir() returns a correct default if TMPDIR is set to the empty string 1281s Unable to clean up temporary directory /tmp/test_utils-c-89_NCGLK3/utils/tmpdir: No such file or directory 1281s ok 6 /utils/tmpdir 1281s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils-c-89_NCGLK3/utils/basic_bits/.dirs/home 1281s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-c-89_NCGLK3/utils/basic_bits/.dirs/cache 1281s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-c-89_NCGLK3/utils/basic_bits/.dirs/system-config1:/tmp/test_utils-c-89_NCGLK3/utils/basic_bits/.dirs/system-config2 1281s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-c-89_NCGLK3/utils/basic_bits/.dirs/config 1281s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-c-89_NCGLK3/utils/basic_bits/.dirs/system-data1:/tmp/test_utils-c-89_NCGLK3/utils/basic_bits/.dirs/system-data2 1281s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-c-89_NCGLK3/utils/basic_bits/.dirs/data 1281s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-c-89_NCGLK3/utils/basic_bits/.dirs/state 1281s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-c-89_NCGLK3/utils/basic_bits/.dirs/runtime 1281s ok 7 /utils/basic_bits 1281s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils-c-89_NCGLK3/utils/bits/.dirs/home 1281s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-c-89_NCGLK3/utils/bits/.dirs/cache 1281s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-c-89_NCGLK3/utils/bits/.dirs/system-config1:/tmp/test_utils-c-89_NCGLK3/utils/bits/.dirs/system-config2 1281s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-c-89_NCGLK3/utils/bits/.dirs/config 1281s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-c-89_NCGLK3/utils/bits/.dirs/system-data1:/tmp/test_utils-c-89_NCGLK3/utils/bits/.dirs/system-data2 1281s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-c-89_NCGLK3/utils/bits/.dirs/data 1281s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-c-89_NCGLK3/utils/bits/.dirs/state 1281s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-c-89_NCGLK3/utils/bits/.dirs/runtime 1281s ok 8 /utils/bits 1281s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils-c-89_NCGLK3/utils/swap/.dirs/home 1281s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-c-89_NCGLK3/utils/swap/.dirs/cache 1281s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-c-89_NCGLK3/utils/swap/.dirs/system-config1:/tmp/test_utils-c-89_NCGLK3/utils/swap/.dirs/system-config2 1281s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-c-89_NCGLK3/utils/swap/.dirs/config 1281s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-c-89_NCGLK3/utils/swap/.dirs/system-data1:/tmp/test_utils-c-89_NCGLK3/utils/swap/.dirs/system-data2 1281s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-c-89_NCGLK3/utils/swap/.dirs/data 1281s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-c-89_NCGLK3/utils/swap/.dirs/state 1281s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-c-89_NCGLK3/utils/swap/.dirs/runtime 1281s ok 9 /utils/swap 1281s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils-c-89_NCGLK3/utils/find-program/.dirs/home 1281s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-c-89_NCGLK3/utils/find-program/.dirs/cache 1281s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-c-89_NCGLK3/utils/find-program/.dirs/system-config1:/tmp/test_utils-c-89_NCGLK3/utils/find-program/.dirs/system-config2 1281s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-c-89_NCGLK3/utils/find-program/.dirs/config 1281s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-c-89_NCGLK3/utils/find-program/.dirs/system-data1:/tmp/test_utils-c-89_NCGLK3/utils/find-program/.dirs/system-data2 1281s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-c-89_NCGLK3/utils/find-program/.dirs/data 1281s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-c-89_NCGLK3/utils/find-program/.dirs/state 1281s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-c-89_NCGLK3/utils/find-program/.dirs/runtime 1281s ok 10 /utils/find-program 1281s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils-c-89_NCGLK3/utils/find-program-for-path/.dirs/home 1281s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-c-89_NCGLK3/utils/find-program-for-path/.dirs/cache 1281s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-c-89_NCGLK3/utils/find-program-for-path/.dirs/system-config1:/tmp/test_utils-c-89_NCGLK3/utils/find-program-for-path/.dirs/system-config2 1281s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-c-89_NCGLK3/utils/find-program-for-path/.dirs/config 1281s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-c-89_NCGLK3/utils/find-program-for-path/.dirs/system-data1:/tmp/test_utils-c-89_NCGLK3/utils/find-program-for-path/.dirs/system-data2 1281s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-c-89_NCGLK3/utils/find-program-for-path/.dirs/data 1281s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-c-89_NCGLK3/utils/find-program-for-path/.dirs/state 1281s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-c-89_NCGLK3/utils/find-program-for-path/.dirs/runtime 1281s ok 11 /utils/find-program-for-path 1281s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils-c-89_NCGLK3/utils/debug/.dirs/home 1281s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-c-89_NCGLK3/utils/debug/.dirs/cache 1281s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-c-89_NCGLK3/utils/debug/.dirs/system-config1:/tmp/test_utils-c-89_NCGLK3/utils/debug/.dirs/system-config2 1281s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-c-89_NCGLK3/utils/debug/.dirs/config 1281s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-c-89_NCGLK3/utils/debug/.dirs/system-data1:/tmp/test_utils-c-89_NCGLK3/utils/debug/.dirs/system-data2 1281s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-c-89_NCGLK3/utils/debug/.dirs/data 1281s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-c-89_NCGLK3/utils/debug/.dirs/state 1281s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-c-89_NCGLK3/utils/debug/.dirs/runtime 1281s Unable to clean up temporary directory /tmp/test_utils-c-89_NCGLK3/utils/debug: No such file or directory 1281s ok 12 /utils/debug 1281s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils-c-89_NCGLK3/utils/codeset/.dirs/home 1281s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-c-89_NCGLK3/utils/codeset/.dirs/cache 1281s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-c-89_NCGLK3/utils/codeset/.dirs/system-config1:/tmp/test_utils-c-89_NCGLK3/utils/codeset/.dirs/system-config2 1281s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-c-89_NCGLK3/utils/codeset/.dirs/config 1281s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-c-89_NCGLK3/utils/codeset/.dirs/system-data1:/tmp/test_utils-c-89_NCGLK3/utils/codeset/.dirs/system-data2 1281s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-c-89_NCGLK3/utils/codeset/.dirs/data 1281s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-c-89_NCGLK3/utils/codeset/.dirs/state 1281s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-c-89_NCGLK3/utils/codeset/.dirs/runtime 1281s ok 13 /utils/codeset 1281s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils-c-89_NCGLK3/utils/codeset2/.dirs/home 1281s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-c-89_NCGLK3/utils/codeset2/.dirs/cache 1281s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-c-89_NCGLK3/utils/codeset2/.dirs/system-config1:/tmp/test_utils-c-89_NCGLK3/utils/codeset2/.dirs/system-config2 1281s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-c-89_NCGLK3/utils/codeset2/.dirs/config 1281s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-c-89_NCGLK3/utils/codeset2/.dirs/system-data1:/tmp/test_utils-c-89_NCGLK3/utils/codeset2/.dirs/system-data2 1281s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-c-89_NCGLK3/utils/codeset2/.dirs/data 1281s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-c-89_NCGLK3/utils/codeset2/.dirs/state 1281s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-c-89_NCGLK3/utils/codeset2/.dirs/runtime 1281s Unable to clean up temporary directory /tmp/test_utils-c-89_NCGLK3/utils/codeset2: No such file or directory 1281s ok 14 /utils/codeset2 1281s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils-c-89_NCGLK3/utils/console-charset/.dirs/home 1281s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-c-89_NCGLK3/utils/console-charset/.dirs/cache 1281s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-c-89_NCGLK3/utils/console-charset/.dirs/system-config1:/tmp/test_utils-c-89_NCGLK3/utils/console-charset/.dirs/system-config2 1281s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-c-89_NCGLK3/utils/console-charset/.dirs/config 1281s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-c-89_NCGLK3/utils/console-charset/.dirs/system-data1:/tmp/test_utils-c-89_NCGLK3/utils/console-charset/.dirs/system-data2 1281s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-c-89_NCGLK3/utils/console-charset/.dirs/data 1281s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-c-89_NCGLK3/utils/console-charset/.dirs/state 1281s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-c-89_NCGLK3/utils/console-charset/.dirs/runtime 1281s ok 15 /utils/console-charset 1281s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils-c-89_NCGLK3/utils/gettext/.dirs/home 1281s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-c-89_NCGLK3/utils/gettext/.dirs/cache 1281s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-c-89_NCGLK3/utils/gettext/.dirs/system-config1:/tmp/test_utils-c-89_NCGLK3/utils/gettext/.dirs/system-config2 1281s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-c-89_NCGLK3/utils/gettext/.dirs/config 1281s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-c-89_NCGLK3/utils/gettext/.dirs/system-data1:/tmp/test_utils-c-89_NCGLK3/utils/gettext/.dirs/system-data2 1281s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-c-89_NCGLK3/utils/gettext/.dirs/data 1281s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-c-89_NCGLK3/utils/gettext/.dirs/state 1281s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-c-89_NCGLK3/utils/gettext/.dirs/runtime 1281s ok 16 /utils/gettext 1281s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils-c-89_NCGLK3/utils/username/.dirs/home 1281s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-c-89_NCGLK3/utils/username/.dirs/cache 1281s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-c-89_NCGLK3/utils/username/.dirs/system-config1:/tmp/test_utils-c-89_NCGLK3/utils/username/.dirs/system-config2 1281s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-c-89_NCGLK3/utils/username/.dirs/config 1281s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-c-89_NCGLK3/utils/username/.dirs/system-data1:/tmp/test_utils-c-89_NCGLK3/utils/username/.dirs/system-data2 1281s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-c-89_NCGLK3/utils/username/.dirs/data 1281s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-c-89_NCGLK3/utils/username/.dirs/state 1281s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-c-89_NCGLK3/utils/username/.dirs/runtime 1281s ok 17 /utils/username 1281s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils-c-89_NCGLK3/utils/realname/.dirs/home 1281s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-c-89_NCGLK3/utils/realname/.dirs/cache 1281s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-c-89_NCGLK3/utils/realname/.dirs/system-config1:/tmp/test_utils-c-89_NCGLK3/utils/realname/.dirs/system-config2 1281s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-c-89_NCGLK3/utils/realname/.dirs/config 1281s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-c-89_NCGLK3/utils/realname/.dirs/system-data1:/tmp/test_utils-c-89_NCGLK3/utils/realname/.dirs/system-data2 1281s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-c-89_NCGLK3/utils/realname/.dirs/data 1281s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-c-89_NCGLK3/utils/realname/.dirs/state 1281s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-c-89_NCGLK3/utils/realname/.dirs/runtime 1281s ok 18 /utils/realname 1281s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils-c-89_NCGLK3/utils/hostname/.dirs/home 1281s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-c-89_NCGLK3/utils/hostname/.dirs/cache 1281s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-c-89_NCGLK3/utils/hostname/.dirs/system-config1:/tmp/test_utils-c-89_NCGLK3/utils/hostname/.dirs/system-config2 1281s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-c-89_NCGLK3/utils/hostname/.dirs/config 1281s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-c-89_NCGLK3/utils/hostname/.dirs/system-data1:/tmp/test_utils-c-89_NCGLK3/utils/hostname/.dirs/system-data2 1281s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-c-89_NCGLK3/utils/hostname/.dirs/data 1281s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-c-89_NCGLK3/utils/hostname/.dirs/state 1281s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-c-89_NCGLK3/utils/hostname/.dirs/runtime 1281s ok 19 /utils/hostname 1281s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils-c-89_NCGLK3/utils/os-info/.dirs/home 1281s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-c-89_NCGLK3/utils/os-info/.dirs/cache 1281s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-c-89_NCGLK3/utils/os-info/.dirs/system-config1:/tmp/test_utils-c-89_NCGLK3/utils/os-info/.dirs/system-config2 1281s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-c-89_NCGLK3/utils/os-info/.dirs/config 1281s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-c-89_NCGLK3/utils/os-info/.dirs/system-data1:/tmp/test_utils-c-89_NCGLK3/utils/os-info/.dirs/system-data2 1281s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-c-89_NCGLK3/utils/os-info/.dirs/data 1281s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-c-89_NCGLK3/utils/os-info/.dirs/state 1281s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-c-89_NCGLK3/utils/os-info/.dirs/runtime 1281s # NAME: Ubuntu 1281s ok 20 /utils/os-info 1281s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils-c-89_NCGLK3/utils/clear-pointer/.dirs/home 1281s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-c-89_NCGLK3/utils/clear-pointer/.dirs/cache 1281s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-c-89_NCGLK3/utils/clear-pointer/.dirs/system-config1:/tmp/test_utils-c-89_NCGLK3/utils/clear-pointer/.dirs/system-config2 1281s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-c-89_NCGLK3/utils/clear-pointer/.dirs/config 1281s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-c-89_NCGLK3/utils/clear-pointer/.dirs/system-data1:/tmp/test_utils-c-89_NCGLK3/utils/clear-pointer/.dirs/system-data2 1281s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-c-89_NCGLK3/utils/clear-pointer/.dirs/data 1281s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-c-89_NCGLK3/utils/clear-pointer/.dirs/state 1281s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-c-89_NCGLK3/utils/clear-pointer/.dirs/runtime 1281s ok 21 /utils/clear-pointer 1281s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils-c-89_NCGLK3/utils/clear-pointer-cast/.dirs/home 1281s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-c-89_NCGLK3/utils/clear-pointer-cast/.dirs/cache 1281s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-c-89_NCGLK3/utils/clear-pointer-cast/.dirs/system-config1:/tmp/test_utils-c-89_NCGLK3/utils/clear-pointer-cast/.dirs/system-config2 1281s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-c-89_NCGLK3/utils/clear-pointer-cast/.dirs/config 1281s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-c-89_NCGLK3/utils/clear-pointer-cast/.dirs/system-data1:/tmp/test_utils-c-89_NCGLK3/utils/clear-pointer-cast/.dirs/system-data2 1281s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-c-89_NCGLK3/utils/clear-pointer-cast/.dirs/data 1281s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-c-89_NCGLK3/utils/clear-pointer-cast/.dirs/state 1281s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-c-89_NCGLK3/utils/clear-pointer-cast/.dirs/runtime 1281s ok 22 /utils/clear-pointer-cast 1281s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils-c-89_NCGLK3/utils/take-pointer/.dirs/home 1281s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-c-89_NCGLK3/utils/take-pointer/.dirs/cache 1281s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-c-89_NCGLK3/utils/take-pointer/.dirs/system-config1:/tmp/test_utils-c-89_NCGLK3/utils/take-pointer/.dirs/system-config2 1281s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-c-89_NCGLK3/utils/take-pointer/.dirs/config 1281s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-c-89_NCGLK3/utils/take-pointer/.dirs/system-data1:/tmp/test_utils-c-89_NCGLK3/utils/take-pointer/.dirs/system-data2 1281s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-c-89_NCGLK3/utils/take-pointer/.dirs/data 1281s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-c-89_NCGLK3/utils/take-pointer/.dirs/state 1281s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-c-89_NCGLK3/utils/take-pointer/.dirs/runtime 1281s ok 23 /utils/take-pointer 1281s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils-c-89_NCGLK3/utils/clear-source/.dirs/home 1281s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-c-89_NCGLK3/utils/clear-source/.dirs/cache 1281s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-c-89_NCGLK3/utils/clear-source/.dirs/system-config1:/tmp/test_utils-c-89_NCGLK3/utils/clear-source/.dirs/system-config2 1281s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-c-89_NCGLK3/utils/clear-source/.dirs/config 1281s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-c-89_NCGLK3/utils/clear-source/.dirs/system-data1:/tmp/test_utils-c-89_NCGLK3/utils/clear-source/.dirs/system-data2 1281s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-c-89_NCGLK3/utils/clear-source/.dirs/data 1281s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-c-89_NCGLK3/utils/clear-source/.dirs/state 1281s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-c-89_NCGLK3/utils/clear-source/.dirs/runtime 1281s ok 24 /utils/clear-source 1281s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils-c-89_NCGLK3/utils/misc-mem/.dirs/home 1281s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-c-89_NCGLK3/utils/misc-mem/.dirs/cache 1281s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-c-89_NCGLK3/utils/misc-mem/.dirs/system-config1:/tmp/test_utils-c-89_NCGLK3/utils/misc-mem/.dirs/system-config2 1281s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-c-89_NCGLK3/utils/misc-mem/.dirs/config 1281s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-c-89_NCGLK3/utils/misc-mem/.dirs/system-data1:/tmp/test_utils-c-89_NCGLK3/utils/misc-mem/.dirs/system-data2 1281s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-c-89_NCGLK3/utils/misc-mem/.dirs/data 1281s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-c-89_NCGLK3/utils/misc-mem/.dirs/state 1281s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-c-89_NCGLK3/utils/misc-mem/.dirs/runtime 1281s ok 25 /utils/misc-mem 1281s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils-c-89_NCGLK3/utils/aligned-mem/.dirs/home 1281s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-c-89_NCGLK3/utils/aligned-mem/.dirs/cache 1281s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-c-89_NCGLK3/utils/aligned-mem/.dirs/system-config1:/tmp/test_utils-c-89_NCGLK3/utils/aligned-mem/.dirs/system-config2 1281s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-c-89_NCGLK3/utils/aligned-mem/.dirs/config 1281s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-c-89_NCGLK3/utils/aligned-mem/.dirs/system-data1:/tmp/test_utils-c-89_NCGLK3/utils/aligned-mem/.dirs/system-data2 1281s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-c-89_NCGLK3/utils/aligned-mem/.dirs/data 1281s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-c-89_NCGLK3/utils/aligned-mem/.dirs/state 1281s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-c-89_NCGLK3/utils/aligned-mem/.dirs/runtime 1281s # /utils/aligned-mem summary: Aligned memory allocator 1281s # Alignment must not be zero 1281s # Alignment must be a power of two 1281s # Alignment must be a multiple of sizeof(void*) 1281s ok 26 /utils/aligned-mem 1281s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils-c-89_NCGLK3/utils/free-sized/.dirs/home 1281s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-c-89_NCGLK3/utils/free-sized/.dirs/cache 1281s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-c-89_NCGLK3/utils/free-sized/.dirs/system-config1:/tmp/test_utils-c-89_NCGLK3/utils/free-sized/.dirs/system-config2 1281s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-c-89_NCGLK3/utils/free-sized/.dirs/config 1281s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-c-89_NCGLK3/utils/free-sized/.dirs/system-data1:/tmp/test_utils-c-89_NCGLK3/utils/free-sized/.dirs/system-data2 1281s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-c-89_NCGLK3/utils/free-sized/.dirs/data 1281s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-c-89_NCGLK3/utils/free-sized/.dirs/state 1281s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-c-89_NCGLK3/utils/free-sized/.dirs/runtime 1281s # /utils/free-sized summary: Check that g_free_sized() works 1281s ok 27 /utils/free-sized 1281s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils-c-89_NCGLK3/utils/nullify/.dirs/home 1281s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-c-89_NCGLK3/utils/nullify/.dirs/cache 1281s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-c-89_NCGLK3/utils/nullify/.dirs/system-config1:/tmp/test_utils-c-89_NCGLK3/utils/nullify/.dirs/system-config2 1281s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-c-89_NCGLK3/utils/nullify/.dirs/config 1281s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-c-89_NCGLK3/utils/nullify/.dirs/system-data1:/tmp/test_utils-c-89_NCGLK3/utils/nullify/.dirs/system-data2 1281s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-c-89_NCGLK3/utils/nullify/.dirs/data 1281s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-c-89_NCGLK3/utils/nullify/.dirs/state 1281s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-c-89_NCGLK3/utils/nullify/.dirs/runtime 1281s ok 28 /utils/nullify 1281s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils-c-89_NCGLK3/utils/atexit/.dirs/home 1281s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-c-89_NCGLK3/utils/atexit/.dirs/cache 1281s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-c-89_NCGLK3/utils/atexit/.dirs/system-config1:/tmp/test_utils-c-89_NCGLK3/utils/atexit/.dirs/system-config2 1281s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-c-89_NCGLK3/utils/atexit/.dirs/config 1281s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-c-89_NCGLK3/utils/atexit/.dirs/system-data1:/tmp/test_utils-c-89_NCGLK3/utils/atexit/.dirs/system-data2 1281s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-c-89_NCGLK3/utils/atexit/.dirs/data 1281s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-c-89_NCGLK3/utils/atexit/.dirs/state 1281s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-c-89_NCGLK3/utils/atexit/.dirs/runtime 1281s Unable to clean up temporary directory /tmp/test_utils-c-89_NCGLK3/utils/atexit: No such file or directory 1281s ok 29 /utils/atexit 1281s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils-c-89_NCGLK3/utils/check-setuid/.dirs/home 1281s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-c-89_NCGLK3/utils/check-setuid/.dirs/cache 1281s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-c-89_NCGLK3/utils/check-setuid/.dirs/system-config1:/tmp/test_utils-c-89_NCGLK3/utils/check-setuid/.dirs/system-config2 1281s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-c-89_NCGLK3/utils/check-setuid/.dirs/config 1281s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-c-89_NCGLK3/utils/check-setuid/.dirs/system-data1:/tmp/test_utils-c-89_NCGLK3/utils/check-setuid/.dirs/system-data2 1281s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-c-89_NCGLK3/utils/check-setuid/.dirs/data 1281s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-c-89_NCGLK3/utils/check-setuid/.dirs/state 1281s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-c-89_NCGLK3/utils/check-setuid/.dirs/runtime 1281s ok 30 /utils/check-setuid 1281s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils-c-89_NCGLK3/utils/int-limits/.dirs/home 1281s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-c-89_NCGLK3/utils/int-limits/.dirs/cache 1281s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-c-89_NCGLK3/utils/int-limits/.dirs/system-config1:/tmp/test_utils-c-89_NCGLK3/utils/int-limits/.dirs/system-config2 1281s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-c-89_NCGLK3/utils/int-limits/.dirs/config 1281s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-c-89_NCGLK3/utils/int-limits/.dirs/system-data1:/tmp/test_utils-c-89_NCGLK3/utils/int-limits/.dirs/system-data2 1281s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-c-89_NCGLK3/utils/int-limits/.dirs/data 1281s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-c-89_NCGLK3/utils/int-limits/.dirs/state 1281s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-c-89_NCGLK3/utils/int-limits/.dirs/runtime 1281s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/issues/1663 1281s ok 31 /utils/int-limits 1281s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils-c-89_NCGLK3/utils/clear-list/.dirs/home 1281s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-c-89_NCGLK3/utils/clear-list/.dirs/cache 1281s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-c-89_NCGLK3/utils/clear-list/.dirs/system-config1:/tmp/test_utils-c-89_NCGLK3/utils/clear-list/.dirs/system-config2 1281s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-c-89_NCGLK3/utils/clear-list/.dirs/config 1281s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-c-89_NCGLK3/utils/clear-list/.dirs/system-data1:/tmp/test_utils-c-89_NCGLK3/utils/clear-list/.dirs/system-data2 1281s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-c-89_NCGLK3/utils/clear-list/.dirs/data 1281s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-c-89_NCGLK3/utils/clear-list/.dirs/state 1281s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-c-89_NCGLK3/utils/clear-list/.dirs/runtime 1281s ok 32 /utils/clear-list 1281s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils-c-89_NCGLK3/utils/clear-slist/.dirs/home 1281s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-c-89_NCGLK3/utils/clear-slist/.dirs/cache 1281s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-c-89_NCGLK3/utils/clear-slist/.dirs/system-config1:/tmp/test_utils-c-89_NCGLK3/utils/clear-slist/.dirs/system-config2 1281s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-c-89_NCGLK3/utils/clear-slist/.dirs/config 1281s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-c-89_NCGLK3/utils/clear-slist/.dirs/system-data1:/tmp/test_utils-c-89_NCGLK3/utils/clear-slist/.dirs/system-data2 1281s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-c-89_NCGLK3/utils/clear-slist/.dirs/data 1281s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-c-89_NCGLK3/utils/clear-slist/.dirs/state 1281s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-c-89_NCGLK3/utils/clear-slist/.dirs/runtime 1281s ok 33 /utils/clear-slist 1281s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils-c-89_NCGLK3/utils/steal-handle-id/.dirs/home 1281s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-c-89_NCGLK3/utils/steal-handle-id/.dirs/cache 1281s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-c-89_NCGLK3/utils/steal-handle-id/.dirs/system-config1:/tmp/test_utils-c-89_NCGLK3/utils/steal-handle-id/.dirs/system-config2 1281s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-c-89_NCGLK3/utils/steal-handle-id/.dirs/config 1281s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-c-89_NCGLK3/utils/steal-handle-id/.dirs/system-data1:/tmp/test_utils-c-89_NCGLK3/utils/steal-handle-id/.dirs/system-data2 1281s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-c-89_NCGLK3/utils/steal-handle-id/.dirs/data 1281s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-c-89_NCGLK3/utils/steal-handle-id/.dirs/state 1281s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-c-89_NCGLK3/utils/steal-handle-id/.dirs/runtime 1281s ok 34 /utils/steal-handle-id 1281s # Start of user-special-dirs tests 1281s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils-c-89_NCGLK3/utils/user-special-dirs/desktop/.dirs/home 1281s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-c-89_NCGLK3/utils/user-special-dirs/desktop/.dirs/cache 1281s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-c-89_NCGLK3/utils/user-special-dirs/desktop/.dirs/system-config1:/tmp/test_utils-c-89_NCGLK3/utils/user-special-dirs/desktop/.dirs/system-config2 1281s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-c-89_NCGLK3/utils/user-special-dirs/desktop/.dirs/config 1281s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-c-89_NCGLK3/utils/user-special-dirs/desktop/.dirs/system-data1:/tmp/test_utils-c-89_NCGLK3/utils/user-special-dirs/desktop/.dirs/system-data2 1281s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-c-89_NCGLK3/utils/user-special-dirs/desktop/.dirs/data 1281s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-c-89_NCGLK3/utils/user-special-dirs/desktop/.dirs/state 1281s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-c-89_NCGLK3/utils/user-special-dirs/desktop/.dirs/runtime 1281s ok 35 /utils/user-special-dirs/desktop 1281s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils-c-89_NCGLK3/utils/user-special-dirs/load-unlocked/.dirs/home 1281s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-c-89_NCGLK3/utils/user-special-dirs/load-unlocked/.dirs/cache 1281s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-c-89_NCGLK3/utils/user-special-dirs/load-unlocked/.dirs/system-config1:/tmp/test_utils-c-89_NCGLK3/utils/user-special-dirs/load-unlocked/.dirs/system-config2 1281s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-c-89_NCGLK3/utils/user-special-dirs/load-unlocked/.dirs/config 1281s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-c-89_NCGLK3/utils/user-special-dirs/load-unlocked/.dirs/system-data1:/tmp/test_utils-c-89_NCGLK3/utils/user-special-dirs/load-unlocked/.dirs/system-data2 1281s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-c-89_NCGLK3/utils/user-special-dirs/load-unlocked/.dirs/data 1281s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-c-89_NCGLK3/utils/user-special-dirs/load-unlocked/.dirs/state 1281s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-c-89_NCGLK3/utils/user-special-dirs/load-unlocked/.dirs/runtime 1281s # /utils/user-special-dirs/load-unlocked summary: Tests error and corner cases of user-dirs.dirs content. 1281s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/merge_requests/4800 1281s Unable to clean up temporary directory /tmp/test_utils-c-89_NCGLK3/utils/user-special-dirs/load-unlocked: No such file or directory 1281s ok 36 /utils/user-special-dirs/load-unlocked 1281s ok - glib/utils-c-89.test 1281s # Running test: glib/mkenums.py.test 1281s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils-c-89_NCGLK3/utils/user-special-dirs/reload-leaks/.dirs/home 1281s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-c-89_NCGLK3/utils/user-special-dirs/reload-leaks/.dirs/cache 1281s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-c-89_NCGLK3/utils/user-special-dirs/reload-leaks/.dirs/system-config1:/tmp/test_utils-c-89_NCGLK3/utils/user-special-dirs/reload-leaks/.dirs/system-config2 1281s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-c-89_NCGLK3/utils/user-special-dirs/reload-leaks/.dirs/config 1281s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-c-89_NCGLK3/utils/user-special-dirs/reload-leaks/.dirs/system-data1:/tmp/test_utils-c-89_NCGLK3/utils/user-special-dirs/reload-leaks/.dirs/system-data2 1281s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-c-89_NCGLK3/utils/user-special-dirs/reload-leaks/.dirs/data 1281s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-c-89_NCGLK3/utils/user-special-dirs/reload-leaks/.dirs/state 1281s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-c-89_NCGLK3/utils/user-special-dirs/reload-leaks/.dirs/runtime 1281s # /utils/user-special-dirs/reload-leaks summary: Tests that old user special dirs values are deliberately leaked on reload. 1281s Unable to clean up temporary directory /tmp/test_utils-c-89_NCGLK3/utils/user-special-dirs/reload-leaks: No such file or directory 1281s ok 37 /utils/user-special-dirs/reload-leaks 1281s # End of user-special-dirs tests 1281s # Start of clear-pointer tests 1281s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils-c-89_NCGLK3/utils/clear-pointer/side-effects/.dirs/home 1281s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-c-89_NCGLK3/utils/clear-pointer/side-effects/.dirs/cache 1281s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-c-89_NCGLK3/utils/clear-pointer/side-effects/.dirs/system-config1:/tmp/test_utils-c-89_NCGLK3/utils/clear-pointer/side-effects/.dirs/system-config2 1281s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-c-89_NCGLK3/utils/clear-pointer/side-effects/.dirs/config 1281s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-c-89_NCGLK3/utils/clear-pointer/side-effects/.dirs/system-data1:/tmp/test_utils-c-89_NCGLK3/utils/clear-pointer/side-effects/.dirs/system-data2 1281s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-c-89_NCGLK3/utils/clear-pointer/side-effects/.dirs/data 1281s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-c-89_NCGLK3/utils/clear-pointer/side-effects/.dirs/state 1281s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-c-89_NCGLK3/utils/clear-pointer/side-effects/.dirs/runtime 1281s ok 38 /utils/clear-pointer/side-effects 1281s # End of clear-pointer tests 1281s # Start of aligned-mem tests 1281s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils-c-89_NCGLK3/utils/aligned-mem/alignment/.dirs/home 1281s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-c-89_NCGLK3/utils/aligned-mem/alignment/.dirs/cache 1281s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-c-89_NCGLK3/utils/aligned-mem/alignment/.dirs/system-config1:/tmp/test_utils-c-89_NCGLK3/utils/aligned-mem/alignment/.dirs/system-config2 1281s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-c-89_NCGLK3/utils/aligned-mem/alignment/.dirs/config 1281s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-c-89_NCGLK3/utils/aligned-mem/alignment/.dirs/system-data1:/tmp/test_utils-c-89_NCGLK3/utils/aligned-mem/alignment/.dirs/system-data2 1281s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-c-89_NCGLK3/utils/aligned-mem/alignment/.dirs/data 1281s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-c-89_NCGLK3/utils/aligned-mem/alignment/.dirs/state 1281s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-c-89_NCGLK3/utils/aligned-mem/alignment/.dirs/runtime 1281s # /utils/aligned-mem/alignment summary: Check that g_aligned_alloc() returns a correctly aligned pointer 1281s ok 39 /utils/aligned-mem/alignment 1281s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils-c-89_NCGLK3/utils/aligned-mem/zeroed/.dirs/home 1281s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-c-89_NCGLK3/utils/aligned-mem/zeroed/.dirs/cache 1281s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-c-89_NCGLK3/utils/aligned-mem/zeroed/.dirs/system-config1:/tmp/test_utils-c-89_NCGLK3/utils/aligned-mem/zeroed/.dirs/system-config2 1281s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-c-89_NCGLK3/utils/aligned-mem/zeroed/.dirs/config 1281s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-c-89_NCGLK3/utils/aligned-mem/zeroed/.dirs/system-data1:/tmp/test_utils-c-89_NCGLK3/utils/aligned-mem/zeroed/.dirs/system-data2 1281s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-c-89_NCGLK3/utils/aligned-mem/zeroed/.dirs/data 1281s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-c-89_NCGLK3/utils/aligned-mem/zeroed/.dirs/state 1281s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-c-89_NCGLK3/utils/aligned-mem/zeroed/.dirs/runtime 1281s # /utils/aligned-mem/zeroed summary: Check that g_aligned_alloc0() zeroes out its allocation 1281s ok 40 /utils/aligned-mem/zeroed 1281s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils-c-89_NCGLK3/utils/aligned-mem/free-sized/.dirs/home 1281s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-c-89_NCGLK3/utils/aligned-mem/free-sized/.dirs/cache 1281s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-c-89_NCGLK3/utils/aligned-mem/free-sized/.dirs/system-config1:/tmp/test_utils-c-89_NCGLK3/utils/aligned-mem/free-sized/.dirs/system-config2 1281s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-c-89_NCGLK3/utils/aligned-mem/free-sized/.dirs/config 1281s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-c-89_NCGLK3/utils/aligned-mem/free-sized/.dirs/system-data1:/tmp/test_utils-c-89_NCGLK3/utils/aligned-mem/free-sized/.dirs/system-data2 1281s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-c-89_NCGLK3/utils/aligned-mem/free-sized/.dirs/data 1281s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-c-89_NCGLK3/utils/aligned-mem/free-sized/.dirs/state 1281s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-c-89_NCGLK3/utils/aligned-mem/free-sized/.dirs/runtime 1281s # /utils/aligned-mem/free-sized summary: Check that g_aligned_free_sized() works 1281s ok 41 /utils/aligned-mem/free-sized 1281s # Start of subprocess tests 1281s # End of subprocess tests 1281s # End of aligned-mem tests 1281s # End of utils tests 1282s TAP version 13 1282s ok 1 __main__.TestMkenums.test_available_in 1282s # glib-mkenums: /usr/bin/glib-mkenums 1282s # tmpdir: /tmp/tmp8nfhhvge 1282s # rspfile: False 1282s # /tmp/tmp8nfhhvge/tmpa3r2t57n.h: 1282s # typedef enum { 1282s # G_DBUS_SERVER_FLAGS_AUTHENTICATION_REQUIRE_SAME_USER GLIB_AVAILABLE_ENUMERATOR_IN_2_68 = (1<<2) 1282s # } GDBusServerFlags; 1282s # 1282s # /tmp/tmp8nfhhvge/tmp7_hw9ham.template: 1282s # /*** BEGIN file-header ***/ 1282s # file-header 1282s # /*** END file-header ***/ 1282s # 1282s # /*** BEGIN file-production ***/ 1282s # file-production 1282s # filename: @filename@ 1282s # basename: @basename@ 1282s # /*** END file-production ***/ 1282s # 1282s # /*** BEGIN enumeration-production ***/ 1282s # enumeration-production 1282s # EnumName: @EnumName@ 1282s # enum_name: @enum_name@ 1282s # ENUMNAME: @ENUMNAME@ 1282s # ENUMSHORT: @ENUMSHORT@ 1282s # ENUMPREFIX: @ENUMPREFIX@ 1282s # enumsince: @enumsince@ 1282s # type: @type@ 1282s # Type: @Type@ 1282s # TYPE: @TYPE@ 1282s # /*** END enumeration-production ***/ 1282s # 1282s # /*** BEGIN value-header ***/ 1282s # value-header 1282s # EnumName: @EnumName@ 1282s # enum_name: @enum_name@ 1282s # ENUMNAME: @ENUMNAME@ 1282s # ENUMSHORT: @ENUMSHORT@ 1282s # ENUMPREFIX: @ENUMPREFIX@ 1282s # enumsince: @enumsince@ 1282s # type: @type@ 1282s # Type: @Type@ 1282s # TYPE: @TYPE@ 1282s # /*** END value-header ***/ 1282s # 1282s # /*** BEGIN value-production ***/ 1282s # value-production 1282s # VALUENAME: @VALUENAME@ 1282s # valuenick: @valuenick@ 1282s # valuenum: @valuenum@ 1282s # type: @type@ 1282s # Type: @Type@ 1282s # TYPE: @TYPE@ 1282s # /*** END value-production ***/ 1282s # 1282s # /*** BEGIN value-tail ***/ 1282s # value-tail 1282s # EnumName: @EnumName@ 1282s # enum_name: @enum_name@ 1282s # ENUMNAME: @ENUMNAME@ 1282s # ENUMSHORT: @ENUMSHORT@ 1282s # ENUMPREFIX: @ENUMPREFIX@ 1282s # enumsince: @enumsince@ 1282s # type: @type@ 1282s # Type: @Type@ 1282s # TYPE: @TYPE@ 1282s # /*** END value-tail ***/ 1282s # 1282s # /*** BEGIN comment ***/ 1282s # comment 1282s # comment: @comment@ 1282s # /*** END comment ***/ 1282s # 1282s # /*** BEGIN file-tail ***/ 1282s # file-tail 1282s # /*** END file-tail ***/ 1282s # 1282s # Running: ['/usr/bin/glib-mkenums', '--template', '/tmp/tmp8nfhhvge/tmp7_hw9ham.template', '/tmp/tmp8nfhhvge/tmpa3r2t57n.h'] 1282s # Return code: 0 1282s # Output: 1282s # comment 1282s # 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. 1282s # 1282s # 1282s # file-header 1282s # file-production 1282s # filename: /tmp/tmp8nfhhvge/tmpa3r2t57n.h 1282s # basename: tmpa3r2t57n.h 1282s # enumeration-production 1282s # EnumName: GDBusServerFlags 1282s # enum_name: g_dbus_server_flags 1282s # ENUMNAME: G_DBUS_SERVER_FLAGS 1282s # ENUMSHORT: DBUS_SERVER_FLAGS 1282s # ENUMPREFIX: G 1282s # enumsince: 1282s # type: flags 1282s # Type: Flags 1282s # TYPE: FLAGS 1282s # value-header 1282s # EnumName: GDBusServerFlags 1282s # enum_name: g_dbus_server_flags 1282s # ENUMNAME: G_DBUS_SERVER_FLAGS 1282s # ENUMSHORT: DBUS_SERVER_FLAGS 1282s # ENUMPREFIX: G 1282s # enumsince: 1282s # type: flags 1282s # Type: Flags 1282s # TYPE: FLAGS 1282s # value-production 1282s # VALUENAME: G_DBUS_SERVER_FLAGS_AUTHENTICATION_REQUIRE_SAME_USER 1282s # valuenick: user 1282s # valuenum: 4 1282s # type: flags 1282s # Type: Flags 1282s # TYPE: FLAGS 1282s # value-tail 1282s # EnumName: GDBusServerFlags 1282s # enum_name: g_dbus_server_flags 1282s # ENUMNAME: G_DBUS_SERVER_FLAGS 1282s # ENUMSHORT: DBUS_SERVER_FLAGS 1282s # ENUMPREFIX: G 1282s # enumsince: 1282s # type: flags 1282s # Type: Flags 1282s # TYPE: FLAGS 1282s # file-tail 1282s # 1282s # comment 1282s # comment: Generated data ends here 1282s # Error: 1282s ok 2 __main__.TestMkenums.test_comma_in_enum_value 1282s # glib-mkenums: /usr/bin/glib-mkenums 1282s # tmpdir: /tmp/tmp4a758gn3 1282s # rspfile: False 1282s # /tmp/tmp4a758gn3/tmpkh0ykpy7.h: 1282s # typedef enum { 1282s # ENUM_VALUE_WITH_COMMA = ',', 1282s # } TestCommaEnum; 1282s # 1282s # /tmp/tmp4a758gn3/tmp3gg5s8lb.template: 1282s # /*** BEGIN file-header ***/ 1282s # file-header 1282s # /*** END file-header ***/ 1282s # 1282s # /*** BEGIN file-production ***/ 1282s # file-production 1282s # filename: @filename@ 1282s # basename: @basename@ 1282s # /*** END file-production ***/ 1282s # 1282s # /*** BEGIN enumeration-production ***/ 1282s # enumeration-production 1282s # EnumName: @EnumName@ 1282s # enum_name: @enum_name@ 1282s # ENUMNAME: @ENUMNAME@ 1282s # ENUMSHORT: @ENUMSHORT@ 1282s # ENUMPREFIX: @ENUMPREFIX@ 1282s # enumsince: @enumsince@ 1282s # type: @type@ 1282s # Type: @Type@ 1282s # TYPE: @TYPE@ 1282s # /*** END enumeration-production ***/ 1282s # 1282s # /*** BEGIN value-header ***/ 1282s # value-header 1282s # EnumName: @EnumName@ 1282s # enum_name: @enum_name@ 1282s # ENUMNAME: @ENUMNAME@ 1282s # ENUMSHORT: @ENUMSHORT@ 1282s # ENUMPREFIX: @ENUMPREFIX@ 1282s # enumsince: @enumsince@ 1282s # type: @type@ 1282s # Type: @Type@ 1282s # TYPE: @TYPE@ 1282s # /*** END value-header ***/ 1282s # 1282s # /*** BEGIN value-production ***/ 1282s # value-production 1282s # VALUENAME: @VALUENAME@ 1282s # valuenick: @valuenick@ 1282s # valuenum: @valuenum@ 1282s # type: @type@ 1282s # Type: @Type@ 1282s # TYPE: @TYPE@ 1282s # /*** END value-production ***/ 1282s # 1282s # /*** BEGIN value-tail ***/ 1282s # value-tail 1282s # EnumName: @EnumName@ 1282s # enum_name: @enum_name@ 1282s # ENUMNAME: @ENUMNAME@ 1282s # ENUMSHORT: @ENUMSHORT@ 1282s # ENUMPREFIX: @ENUMPREFIX@ 1282s # enumsince: @enumsince@ 1282s # type: @type@ 1282s # Type: @Type@ 1282s # TYPE: @TYPE@ 1282s # /*** END value-tail ***/ 1282s # 1282s # /*** BEGIN comment ***/ 1282s # comment 1282s # comment: @comment@ 1282s # /*** END comment ***/ 1282s # 1282s # /*** BEGIN file-tail ***/ 1282s # file-tail 1282s # /*** END file-tail ***/ 1282s # 1282s # Running: ['/usr/bin/glib-mkenums', '--template', '/tmp/tmp4a758gn3/tmp3gg5s8lb.template', '/tmp/tmp4a758gn3/tmpkh0ykpy7.h'] 1282s # Return code: 0 1282s # Output: 1282s # comment 1282s # 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. 1282s # 1282s # 1282s # file-header 1282s # file-production 1282s # filename: /tmp/tmp4a758gn3/tmpkh0ykpy7.h 1282s # basename: tmpkh0ykpy7.h 1282s # enumeration-production 1282s # EnumName: TestCommaEnum 1282s # enum_name: test_comma_enum 1282s # ENUMNAME: TEST_COMMA_ENUM 1282s # ENUMSHORT: COMMA_ENUM 1282s # ENUMPREFIX: TEST 1282s # enumsince: 1282s # type: enum 1282s # Type: Enum 1282s # TYPE: ENUM 1282s # value-header 1282s # EnumName: TestCommaEnum 1282s # enum_name: test_comma_enum 1282s # ENUMNAME: TEST_COMMA_ENUM 1282s # ENUMSHORT: COMMA_ENUM 1282s # ENUMPREFIX: TEST 1282s # enumsince: 1282s # type: enum 1282s # Type: Enum 1282s # TYPE: ENUM 1282s # value-production 1282s # VALUENAME: ENUM_VALUE_WITH_COMMA 1282s # valuenick: comma 1282s # valuenum: 44 1282s # type: enum 1282s # Type: Enum 1282s # TYPE: ENUM 1282s # value-tail 1282s # EnumName: TestCommaEnum 1282s # enum_name: test_comma_enum 1282s # ENUMNAME: TEST_COMMA_ENUM 1282s # ENUMSHORT: COMMA_ENUM 1282s # ENUMPREFIX: TEST 1282s # enumsince: 1282s # type: enum 1282s # Type: Enum 1282s # TYPE: ENUM 1282s # file-tail 1282s # 1282s # comment 1282s # comment: Generated data ends here 1282s # Error: 1282s ok 3 __main__.TestMkenums.test_deprecated_in 1282s # glib-mkenums: /usr/bin/glib-mkenums 1282s # tmpdir: /tmp/tmplzy31f4h 1282s # rspfile: False 1282s # /tmp/tmplzy31f4h/tmpwi9lcvax.h: 1282s # typedef enum { 1282s # G_DBUS_SERVER_FLAGS_AUTHENTICATION_REQUIRE_SAME_USER GLIB_DEPRECATED_ENUMERATOR_IN_2_68 = (1<<2) 1282s # } GDBusServerFlags; 1282s # 1282s # /tmp/tmplzy31f4h/tmp0_j9dduv.template: 1282s # /*** BEGIN file-header ***/ 1282s # file-header 1282s # /*** END file-header ***/ 1282s # 1282s # /*** BEGIN file-production ***/ 1282s # file-production 1282s # filename: @filename@ 1282s # basename: @basename@ 1282s # /*** END file-production ***/ 1282s # 1282s # /*** BEGIN enumeration-production ***/ 1282s # enumeration-production 1282s # EnumName: @EnumName@ 1282s # enum_name: @enum_name@ 1282s # ENUMNAME: @ENUMNAME@ 1282s # ENUMSHORT: @ENUMSHORT@ 1282s # ENUMPREFIX: @ENUMPREFIX@ 1282s # enumsince: @enumsince@ 1282s # type: @type@ 1282s # Type: @Type@ 1282s # TYPE: @TYPE@ 1282s # /*** END enumeration-production ***/ 1282s # 1282s # /*** BEGIN value-header ***/ 1282s # value-header 1282s # EnumName: @EnumName@ 1282s # enum_name: @enum_name@ 1282s # ENUMNAME: @ENUMNAME@ 1282s # ENUMSHORT: @ENUMSHORT@ 1282s # ENUMPREFIX: @ENUMPREFIX@ 1282s # enumsince: @enumsince@ 1282s # type: @type@ 1282s # Type: @Type@ 1282s # TYPE: @TYPE@ 1282s # /*** END value-header ***/ 1282s # 1282s # /*** BEGIN value-production ***/ 1282s # value-production 1282s # VALUENAME: @VALUENAME@ 1282s # valuenick: @valuenick@ 1282s # valuenum: @valuenum@ 1282s # type: @type@ 1282s # Type: @Type@ 1282s # TYPE: @TYPE@ 1282s # /*** END value-production ***/ 1282s # 1282s # /*** BEGIN value-tail ***/ 1282s # value-tail 1282s # EnumName: @EnumName@ 1282s # enum_name: @enum_name@ 1282s # ENUMNAME: @ENUMNAME@ 1282s # ENUMSHORT: @ENUMSHORT@ 1282s # ENUMPREFIX: @ENUMPREFIX@ 1282s # enumsince: @enumsince@ 1282s # type: @type@ 1282s # Type: @Type@ 1282s # TYPE: @TYPE@ 1282s # /*** END value-tail ***/ 1282s # 1282s # /*** BEGIN comment ***/ 1282s # comment 1282s # comment: @comment@ 1282s # /*** END comment ***/ 1282s # 1282s # /*** BEGIN file-tail ***/ 1282s # file-tail 1282s # /*** END file-tail ***/ 1282s # 1282s # Running: ['/usr/bin/glib-mkenums', '--template', '/tmp/tmplzy31f4h/tmp0_j9dduv.template', '/tmp/tmplzy31f4h/tmpwi9lcvax.h'] 1282s # Return code: 0 1282s # Output: 1282s # comment 1282s # 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. 1282s # 1282s # 1282s # file-header 1282s # file-production 1282s # filename: /tmp/tmplzy31f4h/tmpwi9lcvax.h 1282s # basename: tmpwi9lcvax.h 1282s # enumeration-production 1282s # EnumName: GDBusServerFlags 1282s # enum_name: g_dbus_server_flags 1282s # ENUMNAME: G_DBUS_SERVER_FLAGS 1282s # ENUMSHORT: DBUS_SERVER_FLAGS 1282s # ENUMPREFIX: G 1282s # enumsince: 1282s # type: flags 1282s # Type: Flags 1282s # TYPE: FLAGS 1282s # value-header 1282s # EnumName: GDBusServerFlags 1282s # enum_name: g_dbus_server_flags 1282s # ENUMNAME: G_DBUS_SERVER_FLAGS 1282s # ENUMSHORT: DBUS_SERVER_FLAGS 1282s # ENUMPREFIX: G 1282s # enumsince: 1282s # type: flags 1282s # Type: Flags 1282s # TYPE: FLAGS 1282s # value-production 1282s # VALUENAME: G_DBUS_SERVER_FLAGS_AUTHENTICATION_REQUIRE_SAME_USER 1282s # valuenick: user 1282s # valuenum: 4 1282s # type: flags 1282s # Type: Flags 1282s # TYPE: FLAGS 1282s # value-tail 1282s # EnumName: GDBusServerFlags 1282s # enum_name: g_dbus_server_flags 1282s # ENUMNAME: G_DBUS_SERVER_FLAGS 1282s # ENUMSHORT: DBUS_SERVER_FLAGS 1282s # ENUMPREFIX: G 1282s # enumsince: 1282s # type: flags 1282s # Type: Flags 1282s # TYPE: FLAGS 1282s # file-tail 1282s # 1282s # comment 1282s # comment: Generated data ends here 1282s # Error: 1282s ok 4 __main__.TestMkenums.test_deprecated_in_for 1282s # glib-mkenums: /usr/bin/glib-mkenums 1282s # tmpdir: /tmp/tmp55fkagwq 1282s # rspfile: False 1282s # /tmp/tmp55fkagwq/tmp6tk4otz_.h: 1282s # typedef enum { 1282s # 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) 1282s # } GDBusServerFlags; 1282s # 1282s # /tmp/tmp55fkagwq/tmpnl04qwih.template: 1282s # /*** BEGIN file-header ***/ 1282s # file-header 1282s # /*** END file-header ***/ 1282s # 1282s # /*** BEGIN file-production ***/ 1282s # file-production 1282s # filename: @filename@ 1282s # basename: @basename@ 1282s # /*** END file-production ***/ 1282s # 1282s # /*** BEGIN enumeration-production ***/ 1282s # enumeration-production 1282s # EnumName: @EnumName@ 1282s # enum_name: @enum_name@ 1282s # ENUMNAME: @ENUMNAME@ 1282s # ENUMSHORT: @ENUMSHORT@ 1282s # ENUMPREFIX: @ENUMPREFIX@ 1282s # enumsince: @enumsince@ 1282s # type: @type@ 1282s # Type: @Type@ 1282s # TYPE: @TYPE@ 1282s # /*** END enumeration-production ***/ 1282s # 1282s # /*** BEGIN value-header ***/ 1282s # value-header 1282s # EnumName: @EnumName@ 1282s # enum_name: @enum_name@ 1282s # ENUMNAME: @ENUMNAME@ 1282s # ENUMSHORT: @ENUMSHORT@ 1282s # ENUMPREFIX: @ENUMPREFIX@ 1282s # enumsince: @enumsince@ 1282s # type: @type@ 1282s # Type: @Type@ 1282s # TYPE: @TYPE@ 1282s # /*** END value-header ***/ 1282s # 1282s # /*** BEGIN value-production ***/ 1282s # value-production 1282s # VALUENAME: @VALUENAME@ 1282s # valuenick: @valuenick@ 1282s # valuenum: @valuenum@ 1282s # type: @type@ 1282s # Type: @Type@ 1282s # TYPE: @TYPE@ 1282s # /*** END value-production ***/ 1282s # 1282s # /*** BEGIN value-tail ***/ 1282s # value-tail 1282s # EnumName: @EnumName@ 1282s # enum_name: @enum_name@ 1282s # ENUMNAME: @ENUMNAME@ 1282s # ENUMSHORT: @ENUMSHORT@ 1282s # ENUMPREFIX: @ENUMPREFIX@ 1282s # enumsince: @enumsince@ 1282s # type: @type@ 1282s # Type: @Type@ 1282s # TYPE: @TYPE@ 1282s # /*** END value-tail ***/ 1282s # 1282s # /*** BEGIN comment ***/ 1282s # comment 1282s # comment: @comment@ 1282s # /*** END comment ***/ 1282s # 1282s # /*** BEGIN file-tail ***/ 1282s # file-tail 1282s # /*** END file-tail ***/ 1282s # 1282s # Running: ['/usr/bin/glib-mkenums', '--template', '/tmp/tmp55fkagwq/tmpnl04qwih.template', '/tmp/tmp55fkagwq/tmp6tk4otz_.h'] 1282s # Return code: 0 1282s # Output: 1282s # comment 1282s # 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. 1282s # 1282s # 1282s # file-header 1282s # file-production 1282s # filename: /tmp/tmp55fkagwq/tmp6tk4otz_.h 1282s # basename: tmp6tk4otz_.h 1282s # enumeration-production 1282s # EnumName: GDBusServerFlags 1282s # enum_name: g_dbus_server_flags 1282s # ENUMNAME: G_DBUS_SERVER_FLAGS 1282s # ENUMSHORT: DBUS_SERVER_FLAGS 1282s # ENUMPREFIX: G 1282s # enumsince: 1282s # type: flags 1282s # Type: Flags 1282s # TYPE: FLAGS 1282s # value-header 1282s # EnumName: GDBusServerFlags 1282s # enum_name: g_dbus_server_flags 1282s # ENUMNAME: G_DBUS_SERVER_FLAGS 1282s # ENUMSHORT: DBUS_SERVER_FLAGS 1282s # ENUMPREFIX: G 1282s # enumsince: 1282s # type: flags 1282s # Type: Flags 1282s # TYPE: FLAGS 1282s # value-production 1282s # VALUENAME: G_DBUS_SERVER_FLAGS_AUTHENTICATION_REQUIRE_SAME_USER 1282s # valuenick: user 1282s # valuenum: 4 1282s # type: flags 1282s # Type: Flags 1282s # TYPE: FLAGS 1282s # value-tail 1282s # EnumName: GDBusServerFlags 1282s # enum_name: g_dbus_server_flags 1282s # ENUMNAME: G_DBUS_SERVER_FLAGS 1282s # ENUMSHORT: DBUS_SERVER_FLAGS 1282s # ENUMPREFIX: G 1282s # enumsince: 1282s # type: flags 1282s # Type: Flags 1282s # TYPE: FLAGS 1282s # file-tail 1282s # 1282s # comment 1282s # comment: Generated data ends here 1282s # Error: 1282s ok 5 __main__.TestMkenums.test_empty_header 1282s # glib-mkenums: /usr/bin/glib-mkenums 1282s # tmpdir: /tmp/tmpjqm3eotr 1282s # rspfile: False 1282s # /tmp/tmpjqm3eotr/tmpkzupbeu_.h: 1282s # /tmp/tmpjqm3eotr/tmpyfo4955d.template: 1282s # /*** BEGIN file-header ***/ 1282s # file-header 1282s # /*** END file-header ***/ 1282s # 1282s # /*** BEGIN file-production ***/ 1282s # file-production 1282s # filename: @filename@ 1282s # basename: @basename@ 1282s # /*** END file-production ***/ 1282s # 1282s # /*** BEGIN enumeration-production ***/ 1282s # enumeration-production 1282s # EnumName: @EnumName@ 1282s # enum_name: @enum_name@ 1282s # ENUMNAME: @ENUMNAME@ 1282s # ENUMSHORT: @ENUMSHORT@ 1282s # ENUMPREFIX: @ENUMPREFIX@ 1282s # enumsince: @enumsince@ 1282s # type: @type@ 1282s # Type: @Type@ 1282s # TYPE: @TYPE@ 1282s # /*** END enumeration-production ***/ 1282s # 1282s # /*** BEGIN value-header ***/ 1282s # value-header 1282s # EnumName: @EnumName@ 1282s # enum_name: @enum_name@ 1282s # ENUMNAME: @ENUMNAME@ 1282s # ENUMSHORT: @ENUMSHORT@ 1282s # ENUMPREFIX: @ENUMPREFIX@ 1282s # enumsince: @enumsince@ 1282s # type: @type@ 1282s # Type: @Type@ 1282s # TYPE: @TYPE@ 1282s # /*** END value-header ***/ 1282s # 1282s # /*** BEGIN value-production ***/ 1282s # value-production 1282s # VALUENAME: @VALUENAME@ 1282s # valuenick: @valuenick@ 1282s # valuenum: @valuenum@ 1282s # type: @type@ 1282s # Type: @Type@ 1282s # TYPE: @TYPE@ 1282s # /*** END value-production ***/ 1282s # 1282s # /*** BEGIN value-tail ***/ 1282s # value-tail 1282s # EnumName: @EnumName@ 1282s # enum_name: @enum_name@ 1282s # ENUMNAME: @ENUMNAME@ 1282s # ENUMSHORT: @ENUMSHORT@ 1282s # ENUMPREFIX: @ENUMPREFIX@ 1282s # enumsince: @enumsince@ 1282s # type: @type@ 1282s # Type: @Type@ 1282s # TYPE: @TYPE@ 1282s # /*** END value-tail ***/ 1282s # 1282s # /*** BEGIN comment ***/ 1282s # comment 1282s # comment: @comment@ 1282s # /*** END comment ***/ 1282s # 1282s # /*** BEGIN file-tail ***/ 1282s # file-tail 1282s # /*** END file-tail ***/ 1282s # 1282s # Running: ['/usr/bin/glib-mkenums', '--template', '/tmp/tmpjqm3eotr/tmpyfo4955d.template', '/tmp/tmpjqm3eotr/tmpkzupbeu_.h'] 1282s # Return code: 0 1282s # Output: 1282s # comment 1282s # 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. 1282s # 1282s # 1282s # file-header 1282s # file-tail 1282s # 1282s # comment 1282s # comment: Generated data ends here 1282s # Error: 1282s ok 6 __main__.TestMkenums.test_empty_template 1282s # glib-mkenums: /usr/bin/glib-mkenums 1282s # tmpdir: /tmp/tmpp0eowuog 1282s # rspfile: False 1282s # /tmp/tmpp0eowuog/tmpx16wjyc9.template: 1282s # Running: ['/usr/bin/glib-mkenums', '--template', '/tmp/tmpp0eowuog/tmpx16wjyc9.template'] 1282s # Return code: 0 1282s # Output: 1282s # /* 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. */ 1282s # 1282s # 1282s # /* Generated data ends here */ 1282s # Error: 1282s ok 7 __main__.TestMkenums.test_enum_name 1282s # glib-mkenums: /usr/bin/glib-mkenums 1282s # tmpdir: /tmp/tmpyyi6z_6l 1282s # rspfile: False 1282s # /tmp/tmpyyi6z_6l/tmp4hqp5i4r.h: 1282s # typedef enum _SomeEnumIdentifier { 1282s # ENUM_VALUE 1282s # } SomeEnumIdentifier; 1282s # 1282s # /tmp/tmpyyi6z_6l/tmp7je4ab_l.template: 1282s # /*** BEGIN file-header ***/ 1282s # file-header 1282s # /*** END file-header ***/ 1282s # 1282s # /*** BEGIN file-production ***/ 1282s # file-production 1282s # filename: @filename@ 1282s # basename: @basename@ 1282s # /*** END file-production ***/ 1282s # 1282s # /*** BEGIN enumeration-production ***/ 1282s # enumeration-production 1282s # EnumName: @EnumName@ 1282s # enum_name: @enum_name@ 1282s # ENUMNAME: @ENUMNAME@ 1282s # ENUMSHORT: @ENUMSHORT@ 1282s # ENUMPREFIX: @ENUMPREFIX@ 1282s # enumsince: @enumsince@ 1282s # type: @type@ 1282s # Type: @Type@ 1282s # TYPE: @TYPE@ 1282s # /*** END enumeration-production ***/ 1282s # 1282s # /*** BEGIN value-header ***/ 1282s # value-header 1282s # EnumName: @EnumName@ 1282s # enum_name: @enum_name@ 1282s # ENUMNAME: @ENUMNAME@ 1282s # ENUMSHORT: @ENUMSHORT@ 1282s # ENUMPREFIX: @ENUMPREFIX@ 1282s # enumsince: @enumsince@ 1282s # type: @type@ 1282s # Type: @Type@ 1282s # TYPE: @TYPE@ 1282s # /*** END value-header ***/ 1282s # 1282s # /*** BEGIN value-production ***/ 1282s # value-production 1282s # VALUENAME: @VALUENAME@ 1282s # valuenick: @valuenick@ 1282s # valuenum: @valuenum@ 1282s # type: @type@ 1282s # Type: @Type@ 1282s # TYPE: @TYPE@ 1282s # /*** END value-production ***/ 1282s # 1282s # /*** BEGIN value-tail ***/ 1282s # value-tail 1282s # EnumName: @EnumName@ 1282s # enum_name: @enum_name@ 1282s # ENUMNAME: @ENUMNAME@ 1282s # ENUMSHORT: @ENUMSHORT@ 1282s # ENUMPREFIX: @ENUMPREFIX@ 1282s # enumsince: @enumsince@ 1282s # type: @type@ 1282s # Type: @Type@ 1282s # TYPE: @TYPE@ 1282s # /*** END value-tail ***/ 1282s # 1282s # /*** BEGIN comment ***/ 1282s # comment 1282s # comment: @comment@ 1282s # /*** END comment ***/ 1282s # 1282s # /*** BEGIN file-tail ***/ 1282s # file-tail 1282s # /*** END file-tail ***/ 1282s # 1282s # Running: ['/usr/bin/glib-mkenums', '--template', '/tmp/tmpyyi6z_6l/tmp7je4ab_l.template', '/tmp/tmpyyi6z_6l/tmp4hqp5i4r.h'] 1282s # Return code: 0 1282s # Output: 1282s # comment 1282s # 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. 1282s # 1282s # 1282s # file-header 1282s # file-production 1282s # filename: /tmp/tmpyyi6z_6l/tmp4hqp5i4r.h 1282s # basename: tmp4hqp5i4r.h 1282s # enumeration-production 1282s # EnumName: SomeEnumIdentifier 1282s # enum_name: some_enum_identifier 1282s # ENUMNAME: SOME_ENUM_IDENTIFIER 1282s # ENUMSHORT: ENUM_IDENTIFIER 1282s # ENUMPREFIX: SOME 1282s # enumsince: 1282s # type: enum 1282s # Type: Enum 1282s # TYPE: ENUM 1282s # value-header 1282s # EnumName: SomeEnumIdentifier 1282s # enum_name: some_enum_identifier 1282s # ENUMNAME: SOME_ENUM_IDENTIFIER 1282s # ENUMSHORT: ENUM_IDENTIFIER 1282s # ENUMPREFIX: SOME 1282s # enumsince: 1282s # type: enum 1282s # Type: Enum 1282s # TYPE: ENUM 1282s # value-production 1282s # VALUENAME: ENUM_VALUE 1282s # valuenick: value 1282s # valuenum: 0 1282s # type: enum 1282s # Type: Enum 1282s # TYPE: ENUM 1282s # value-tail 1282s # EnumName: SomeEnumIdentifier 1282s # enum_name: some_enum_identifier 1282s # ENUMNAME: SOME_ENUM_IDENTIFIER 1282s # ENUMSHORT: ENUM_IDENTIFIER 1282s # ENUMPREFIX: SOME 1282s # enumsince: 1282s # type: enum 1282s # Type: Enum 1282s # TYPE: ENUM 1282s # file-tail 1282s # 1282s # comment 1282s # comment: Generated data ends here 1282s # Error: 1282s ok 8 __main__.TestMkenums.test_enum_private_public 1282s # glib-mkenums: /usr/bin/glib-mkenums 1282s # tmpdir: /tmp/tmpihx40wrg 1282s # rspfile: False 1282s # /tmp/tmpihx40wrg/tmpvi1iouck.h: 1282s # typedef enum { 1282s # ENUM_VALUE_PUBLIC1, 1282s # /*< private >*/ 1282s # ENUM_VALUE_PRIVATE, 1282s # } SomeEnumA 1282s # 1282s # /tmp/tmpihx40wrg/tmpg8v1o0le.template: 1282s # /*** BEGIN file-header ***/ 1282s # file-header 1282s # /*** END file-header ***/ 1282s # 1282s # /*** BEGIN file-production ***/ 1282s # file-production 1282s # filename: @filename@ 1282s # basename: @basename@ 1282s # /*** END file-production ***/ 1282s # 1282s # /*** BEGIN enumeration-production ***/ 1282s # enumeration-production 1282s # EnumName: @EnumName@ 1282s # enum_name: @enum_name@ 1282s # ENUMNAME: @ENUMNAME@ 1282s # ENUMSHORT: @ENUMSHORT@ 1282s # ENUMPREFIX: @ENUMPREFIX@ 1282s # enumsince: @enumsince@ 1282s # type: @type@ 1282s # Type: @Type@ 1282s # TYPE: @TYPE@ 1282s # /*** END enumeration-production ***/ 1282s # 1282s # /*** BEGIN value-header ***/ 1282s # value-header 1282s # EnumName: @EnumName@ 1282s # enum_name: @enum_name@ 1282s # ENUMNAME: @ENUMNAME@ 1282s # ENUMSHORT: @ENUMSHORT@ 1282s # ENUMPREFIX: @ENUMPREFIX@ 1282s # enumsince: @enumsince@ 1282s # type: @type@ 1282s # Type: @Type@ 1282s # TYPE: @TYPE@ 1282s # /*** END value-header ***/ 1282s # 1282s # /*** BEGIN value-production ***/ 1282s # value-production 1282s # VALUENAME: @VALUENAME@ 1282s # valuenick: @valuenick@ 1282s # valuenum: @valuenum@ 1282s # type: @type@ 1282s # Type: @Type@ 1282s # TYPE: @TYPE@ 1282s # /*** END value-production ***/ 1282s # 1282s # /*** BEGIN value-tail ***/ 1282s # value-tail 1282s # EnumName: @EnumName@ 1282s # enum_name: @enum_name@ 1282s # ENUMNAME: @ENUMNAME@ 1282s # ENUMSHORT: @ENUMSHORT@ 1282s # ENUMPREFIX: @ENUMPREFIX@ 1282s # enumsince: @enumsince@ 1282s # type: @type@ 1282s # Type: @Type@ 1282s # TYPE: @TYPE@ 1282s # /*** END value-tail ***/ 1282s # 1282s # /*** BEGIN comment ***/ 1282s # comment 1282s # comment: @comment@ 1282s # /*** END comment ***/ 1282s # 1282s # /*** BEGIN file-tail ***/ 1282s # file-tail 1282s # /*** END file-tail ***/ 1282s # 1282s # Running: ['/usr/bin/glib-mkenums', '--template', '/tmp/tmpihx40wrg/tmpg8v1o0le.template', '/tmp/tmpihx40wrg/tmpvi1iouck.h'] 1282s # Return code: 0 1282s # Output: 1282s # comment 1282s # 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. 1282s # 1282s # 1282s # file-header 1282s # file-production 1282s # filename: /tmp/tmpihx40wrg/tmpvi1iouck.h 1282s # basename: tmpvi1iouck.h 1282s # enumeration-production 1282s # EnumName: SomeEnumA 1282s # enum_name: some_enum_a 1282s # ENUMNAME: SOME_ENUM_A 1282s # ENUMSHORT: ENUM_A 1282s # ENUMPREFIX: SOME 1282s # enumsince: 1282s # type: enum 1282s # Type: Enum 1282s # TYPE: ENUM 1282s # value-header 1282s # EnumName: SomeEnumA 1282s # enum_name: some_enum_a 1282s # ENUMNAME: SOME_ENUM_A 1282s # ENUMSHORT: ENUM_A 1282s # ENUMPREFIX: SOME 1282s # enumsince: 1282s # type: enum 1282s # Type: Enum 1282s # TYPE: ENUM 1282s # value-production 1282s # VALUENAME: ENUM_VALUE_PUBLIC1 1282s # valuenick: public1 1282s # valuenum: 0 1282s # type: enum 1282s # Type: Enum 1282s # TYPE: ENUM 1282s # value-tail 1282s # EnumName: SomeEnumA 1282s # enum_name: some_enum_a 1282s # ENUMNAME: SOME_ENUM_A 1282s # ENUMSHORT: ENUM_A 1282s # ENUMPREFIX: SOME 1282s # enumsince: 1282s # type: enum 1282s # Type: Enum 1282s # TYPE: ENUM 1282s # file-tail 1282s # 1282s # comment 1282s # comment: Generated data ends here 1282s # Error: 1282s # 1282s # /tmp/tmpihx40wrg/tmp31p0msue.h: 1282s # typedef enum { 1282s # /*< private >*/ 1282s # ENUM_VALUE_PRIVATE, 1282s # /*< public >*/ 1282s # ENUM_VALUE_PUBLIC2, 1282s # } SomeEnumB; 1282s # 1282s # /tmp/tmpihx40wrg/tmplrpaolbz.template: 1282s # /*** BEGIN file-header ***/ 1282s # file-header 1282s # /*** END file-header ***/ 1282s # 1282s # /*** BEGIN file-production ***/ 1282s # file-production 1282s # filename: @filename@ 1282s # basename: @basename@ 1282s # /*** END file-production ***/ 1282s # 1282s # /*** BEGIN enumeration-production ***/ 1282s # enumeration-production 1282s # EnumName: @EnumName@ 1282s # enum_name: @enum_name@ 1282s # ENUMNAME: @ENUMNAME@ 1282s # ENUMSHORT: @ENUMSHORT@ 1282s # ENUMPREFIX: @ENUMPREFIX@ 1282s # enumsince: @enumsince@ 1282s # type: @type@ 1282s # Type: @Type@ 1282s # TYPE: @TYPE@ 1282s # /*** END enumeration-production ***/ 1282s # 1282s # /*** BEGIN value-header ***/ 1282s # value-header 1282s # EnumName: @EnumName@ 1282s # enum_name: @enum_name@ 1282s # ENUMNAME: @ENUMNAME@ 1282s # ENUMSHORT: @ENUMSHORT@ 1282s # ENUMPREFIX: @ENUMPREFIX@ 1282s # enumsince: @enumsince@ 1282s # type: @type@ 1282s # Type: @Type@ 1282s # TYPE: @TYPE@ 1282s # /*** END value-header ***/ 1282s # 1282s # /*** BEGIN value-production ***/ 1282s # value-production 1282s # VALUENAME: @VALUENAME@ 1282s # valuenick: @valuenick@ 1282s # valuenum: @valuenum@ 1282s # type: @type@ 1282s # Type: @Type@ 1282s # TYPE: @TYPE@ 1282s # /*** END value-production ***/ 1282s # 1282s # /*** BEGIN value-tail ***/ 1282s # value-tail 1282s # EnumName: @EnumName@ 1282s # enum_name: @enum_name@ 1282s # ENUMNAME: @ENUMNAME@ 1282s # ENUMSHORT: @ENUMSHORT@ 1282s # ENUMPREFIX: @ENUMPREFIX@ 1282s # enumsince: @enumsince@ 1282s # type: @type@ 1282s # Type: @Type@ 1282s # TYPE: @TYPE@ 1282s # /*** END value-tail ***/ 1282s # 1282s # /*** BEGIN comment ***/ 1282s # comment 1282s # comment: @comment@ 1282s # /*** END comment ***/ 1282s # 1282s # /*** BEGIN file-tail ***/ 1282s # file-tail 1282s # /*** END file-tail ***/ 1282s # 1282s # Running: ['/usr/bin/glib-mkenums', '--template', '/tmp/tmpihx40wrg/tmplrpaolbz.template', '/tmp/tmpihx40wrg/tmp31p0msue.h'] 1282s # Return code: 0 1282s # Output: 1282s # comment 1282s # 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. 1282s # 1282s # 1282s # file-header 1282s # file-production 1282s # filename: /tmp/tmpihx40wrg/tmp31p0msue.h 1282s # basename: tmp31p0msue.h 1282s # enumeration-production 1282s # EnumName: SomeEnumB 1282s # enum_name: some_enum_b 1282s # ENUMNAME: SOME_ENUM_B 1282s # ENUMSHORT: ENUM_B 1282s # ENUMPREFIX: SOME 1282s # enumsince: 1282s # type: enum 1282s # Type: Enum 1282s # TYPE: ENUM 1282s # value-header 1282s # EnumName: SomeEnumB 1282s # enum_name: some_enum_b 1282s # ENUMNAME: SOME_ENUM_B 1282s # ENUMSHORT: ENUM_B 1282s # ENUMPREFIX: SOME 1282s # enumsince: 1282s # type: enum 1282s # Type: Enum 1282s # TYPE: ENUM 1282s # value-production 1282s # VALUENAME: ENUM_VALUE_PUBLIC2 1282s # valuenick: public2 1282s # valuenum: 1 1282s # type: enum 1282s # Type: Enum 1282s # TYPE: ENUM 1282s # value-tail 1282s # EnumName: SomeEnumB 1282s # enum_name: some_enum_b 1282s # ENUMNAME: SOME_ENUM_B 1282s # ENUMSHORT: ENUM_B 1282s # ENUMPREFIX: SOME 1282s # enumsince: 1282s # type: enum 1282s # Type: Enum 1282s # TYPE: ENUM 1282s # file-tail 1282s # 1282s # comment 1282s # comment: Generated data ends here 1282s # Error: 1282s ok 9 __main__.TestMkenums.test_enum_symbolic_expression 1282s # glib-mkenums: /usr/bin/glib-mkenums 1282s # tmpdir: /tmp/tmp_w56l52a 1282s # rspfile: False 1282s # /tmp/tmp_w56l52a/tmphqkvu3f2.h: 1282s # typedef enum { 1282s # /*< private >*/ 1282s # ENUM_VALUE_PRIVATE = 5, 1282s # /*< public >*/ 1282s # ENUM_VALUE_PUBLIC = ENUM_VALUE_PRIVATE + 2, 1282s # } TestSymbolicEnum; 1282s # 1282s # /tmp/tmp_w56l52a/tmppz71m6eq.template: 1282s # /*** BEGIN file-header ***/ 1282s # file-header 1282s # /*** END file-header ***/ 1282s # 1282s # /*** BEGIN file-production ***/ 1282s # file-production 1282s # filename: @filename@ 1282s # basename: @basename@ 1282s # /*** END file-production ***/ 1282s # 1282s # /*** BEGIN enumeration-production ***/ 1282s # enumeration-production 1282s # EnumName: @EnumName@ 1282s # enum_name: @enum_name@ 1282s # ENUMNAME: @ENUMNAME@ 1282s # ENUMSHORT: @ENUMSHORT@ 1282s # ENUMPREFIX: @ENUMPREFIX@ 1282s # enumsince: @enumsince@ 1282s # type: @type@ 1282s # Type: @Type@ 1282s # TYPE: @TYPE@ 1282s # /*** END enumeration-production ***/ 1282s # 1282s # /*** BEGIN value-header ***/ 1282s # value-header 1282s # EnumName: @EnumName@ 1282s # enum_name: @enum_name@ 1282s # ENUMNAME: @ENUMNAME@ 1282s # ENUMSHORT: @ENUMSHORT@ 1282s # ENUMPREFIX: @ENUMPREFIX@ 1282s # enumsince: @enumsince@ 1282s # type: @type@ 1282s # Type: @Type@ 1282s # TYPE: @TYPE@ 1282s # /*** END value-header ***/ 1282s # 1282s # /*** BEGIN value-production ***/ 1282s # value-production 1282s # VALUENAME: @VALUENAME@ 1282s # valuenick: @valuenick@ 1282s # valuenum: @valuenum@ 1282s # type: @type@ 1282s # Type: @Type@ 1282s # TYPE: @TYPE@ 1282s # /*** END value-production ***/ 1282s # 1282s # /*** BEGIN value-tail ***/ 1282s # value-tail 1282s # EnumName: @EnumName@ 1282s # enum_name: @enum_name@ 1282s # ENUMNAME: @ENUMNAME@ 1282s # ENUMSHORT: @ENUMSHORT@ 1282s # ENUMPREFIX: @ENUMPREFIX@ 1282s # enumsince: @enumsince@ 1282s # type: @type@ 1282s # Type: @Type@ 1282s # TYPE: @TYPE@ 1282s # /*** END value-tail ***/ 1282s # 1282s # /*** BEGIN comment ***/ 1282s # comment 1282s # comment: @comment@ 1282s # /*** END comment ***/ 1282s # 1282s # /*** BEGIN file-tail ***/ 1282s # file-tail 1282s # /*** END file-tail ***/ 1282s # 1282s # Running: ['/usr/bin/glib-mkenums', '--template', '/tmp/tmp_w56l52a/tmppz71m6eq.template', '/tmp/tmp_w56l52a/tmphqkvu3f2.h'] 1282s # Return code: 0 1282s # Output: 1282s # comment 1282s # 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. 1282s # 1282s # 1282s # file-header 1282s # file-production 1282s # filename: /tmp/tmp_w56l52a/tmphqkvu3f2.h 1282s # basename: tmphqkvu3f2.h 1282s # enumeration-production 1282s # EnumName: TestSymbolicEnum 1282s # enum_name: test_symbolic_enum 1282s # ENUMNAME: TEST_SYMBOLIC_ENUM 1282s # ENUMSHORT: SYMBOLIC_ENUM 1282s # ENUMPREFIX: TEST 1282s # enumsince: 1282s # type: enum 1282s # Type: Enum 1282s # TYPE: ENUM 1282s # value-header 1282s # EnumName: TestSymbolicEnum 1282s # enum_name: test_symbolic_enum 1282s # ENUMNAME: TEST_SYMBOLIC_ENUM 1282s # ENUMSHORT: SYMBOLIC_ENUM 1282s # ENUMPREFIX: TEST 1282s # enumsince: 1282s # type: enum 1282s # Type: Enum 1282s # TYPE: ENUM 1282s # value-production 1282s # VALUENAME: ENUM_VALUE_PUBLIC 1282s # valuenick: public 1282s # valuenum: 7 1282s # type: enum 1282s # Type: Enum 1282s # TYPE: ENUM 1282s # value-tail 1282s # EnumName: TestSymbolicEnum 1282s # enum_name: test_symbolic_enum 1282s # ENUMNAME: TEST_SYMBOLIC_ENUM 1282s # ENUMSHORT: SYMBOLIC_ENUM 1282s # ENUMPREFIX: TEST 1282s # enumsince: 1282s # type: enum 1282s # Type: Enum 1282s # TYPE: ENUM 1282s # file-tail 1282s # 1282s # comment 1282s # comment: Generated data ends here 1282s # Error: 1282s ok 10 __main__.TestMkenums.test_filename_basename_in_fhead_ftail 1282s # glib-mkenums: /usr/bin/glib-mkenums 1282s # tmpdir: /tmp/tmphmfxkgut 1282s # rspfile: False 1282s # /tmp/tmphmfxkgut/tmp_39pwjvc.template: 1282s # /*** BEGIN file-header ***/ 1282s # file-header 1282s # filename: @filename@ 1282s # basename: @basename@ 1282s # /*** END file-header ***/ 1282s # 1282s # /*** BEGIN comment ***/ 1282s # comment 1282s # comment: @comment@ 1282s # /*** END comment ***/ 1282s # 1282s # /*** BEGIN file-tail ***/ 1282s # file-tail 1282s # filename: @filename@ 1282s # basename: @basename@ 1282s # /*** END file-tail ***/ 1282s # Running: ['/usr/bin/glib-mkenums', '--template', '/tmp/tmphmfxkgut/tmp_39pwjvc.template'] 1282s # Return code: 0 1282s # Output: 1282s # comment 1282s # 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. 1282s # 1282s # 1282s # file-header 1282s # filename: @filename@ 1282s # basename: @basename@ 1282s # file-tail 1282s # filename: @filename@ 1282s # basename: @basename@ 1282s # 1282s # comment 1282s # comment: Generated data ends here 1282s # Error: 1282s # WARNING: @filename@ used in file-header section. 1282s # WARNING: @basename@ used in file-header section. 1282s # WARNING: @filename@ used in file-tail section. 1282s # WARNING: @basename@ used in file-tail section. 1282s ok 11 __main__.TestMkenums.test_help 1282s # glib-mkenums: /usr/bin/glib-mkenums 1282s # tmpdir: /tmp/tmp089_h_tp 1282s # rspfile: False 1282s # Running: ['/usr/bin/glib-mkenums', '--help'] 1282s # Return code: 0 1282s # Output: 1282s # usage: glib-mkenums [-h] [--identifier-prefix IDPREFIX] 1282s # [--symbol-prefix SYMPREFIX] [--fhead FHEAD] 1282s # [--ftail FTAIL] [--fprod FPROD] [--eprod EPROD] 1282s # [--vhead VHEAD] [--vprod VPROD] [--vtail VTAIL] 1282s # [--comments COMMENT_TMPL] [--template TEMPLATE] 1282s # [--output OUTPUT] [--version] 1282s # [args ...] 1282s # 1282s # positional arguments: 1282s # args One or more input files, or a single argument 1282s # @rspfile_path pointing to a file that contains the 1282s # actual arguments 1282s # 1282s # options: 1282s # -h, --help show this help message and exit 1282s # --identifier-prefix IDPREFIX 1282s # Identifier prefix 1282s # --symbol-prefix SYMPREFIX 1282s # Symbol prefix 1282s # --fhead FHEAD Output file header 1282s # --ftail FTAIL Output file footer 1282s # --fprod FPROD Put out TEXT every time a new input file is being 1282s # processed. 1282s # --eprod EPROD Per enum text, produced prior to value iterations 1282s # --vhead VHEAD Value header, produced before iterating over enum 1282s # values 1282s # --vprod VPROD Value text, produced for each enum value. 1282s # --vtail VTAIL Value tail, produced after iterating over enum values 1282s # --comments COMMENT_TMPL 1282s # Comment structure 1282s # --template TEMPLATE Template file 1282s # --output OUTPUT 1282s # --version, -v Print version information 1282s # 1282s # Production text substitutions: 1282s # @EnumName@ PrefixTheXEnum 1282s # @enum_name@ prefix_the_xenum 1282s # @ENUMNAME@ PREFIX_THE_XENUM 1282s # @ENUMSHORT@ THE_XENUM 1282s # @ENUMPREFIX@ PREFIX 1282s # @enumsince@ the user-provided since value given 1282s # @VALUENAME@ PREFIX_THE_XVALUE 1282s # @valuenick@ the-xvalue 1282s # @valuenum@ the integer value (limited support, Since: 2.26) 1282s # @type@ either enum or flags 1282s # @Type@ either Enum or Flags 1282s # @TYPE@ either ENUM or FLAGS 1282s # @filename@ name of current input file 1282s # @basename@ base name of the current input file (Since: 2.22) 1282s # Error: 1282s ok 12 __main__.TestMkenums.test_no_args 1282s # glib-mkenums: /usr/bin/glib-mkenums 1282s # tmpdir: /tmp/tmp_ezeuv_o 1282s # rspfile: False 1282s # Running: ['/usr/bin/glib-mkenums'] 1282s # Return code: 0 1282s # Output: 1282s # /* 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. */ 1282s # 1282s # 1282s # /* Generated data ends here */ 1282s # Error: 1283s ok 13 __main__.TestMkenums.test_no_headers 1283s # glib-mkenums: /usr/bin/glib-mkenums 1283s # tmpdir: /tmp/tmp_r_gxuap 1283s # rspfile: False 1283s # /tmp/tmp_r_gxuap/tmpi0w_hnza.template: 1283s # /*** BEGIN file-header ***/ 1283s # file-header 1283s # /*** END file-header ***/ 1283s # 1283s # /*** BEGIN file-production ***/ 1283s # file-production 1283s # filename: @filename@ 1283s # basename: @basename@ 1283s # /*** END file-production ***/ 1283s # 1283s # /*** BEGIN enumeration-production ***/ 1283s # enumeration-production 1283s # EnumName: @EnumName@ 1283s # enum_name: @enum_name@ 1283s # ENUMNAME: @ENUMNAME@ 1283s # ENUMSHORT: @ENUMSHORT@ 1283s # ENUMPREFIX: @ENUMPREFIX@ 1283s # enumsince: @enumsince@ 1283s # type: @type@ 1283s # Type: @Type@ 1283s # TYPE: @TYPE@ 1283s # /*** END enumeration-production ***/ 1283s # 1283s # /*** BEGIN value-header ***/ 1283s # value-header 1283s # EnumName: @EnumName@ 1283s # enum_name: @enum_name@ 1283s # ENUMNAME: @ENUMNAME@ 1283s # ENUMSHORT: @ENUMSHORT@ 1283s # ENUMPREFIX: @ENUMPREFIX@ 1283s # enumsince: @enumsince@ 1283s # type: @type@ 1283s # Type: @Type@ 1283s # TYPE: @TYPE@ 1283s # /*** END value-header ***/ 1283s # 1283s # /*** BEGIN value-production ***/ 1283s # value-production 1283s # VALUENAME: @VALUENAME@ 1283s # valuenick: @valuenick@ 1283s # valuenum: @valuenum@ 1283s # type: @type@ 1283s # Type: @Type@ 1283s # TYPE: @TYPE@ 1283s # /*** END value-production ***/ 1283s # 1283s # /*** BEGIN value-tail ***/ 1283s # value-tail 1283s # EnumName: @EnumName@ 1283s # enum_name: @enum_name@ 1283s # ENUMNAME: @ENUMNAME@ 1283s # ENUMSHORT: @ENUMSHORT@ 1283s # ENUMPREFIX: @ENUMPREFIX@ 1283s # enumsince: @enumsince@ 1283s # type: @type@ 1283s # Type: @Type@ 1283s # TYPE: @TYPE@ 1283s # /*** END value-tail ***/ 1283s # 1283s # /*** BEGIN comment ***/ 1283s # comment 1283s # comment: @comment@ 1283s # /*** END comment ***/ 1283s # 1283s # /*** BEGIN file-tail ***/ 1283s # file-tail 1283s # /*** END file-tail ***/ 1283s # 1283s # Running: ['/usr/bin/glib-mkenums', '--template', '/tmp/tmp_r_gxuap/tmpi0w_hnza.template'] 1283s # Return code: 0 1283s # Output: 1283s # comment 1283s # 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. 1283s # 1283s # 1283s # file-header 1283s # file-tail 1283s # 1283s # comment 1283s # comment: Generated data ends here 1283s # Error: 1283s ok 14 __main__.TestMkenums.test_no_nick 1283s # glib-mkenums: /usr/bin/glib-mkenums 1283s # tmpdir: /tmp/tmp54spt57a 1283s # rspfile: False 1283s # /tmp/tmp54spt57a/tmpd2_satir.h: 1283s # typedef enum { 1283s # GEGL_SAMPLER_NEAREST = 0, /*< desc="nearest" >*/ 1283s # } GeglSamplerType; 1283s # 1283s # /tmp/tmp54spt57a/tmpbghwklsu.template: 1283s # /*** BEGIN file-header ***/ 1283s # file-header 1283s # /*** END file-header ***/ 1283s # 1283s # /*** BEGIN file-production ***/ 1283s # file-production 1283s # filename: @filename@ 1283s # basename: @basename@ 1283s # /*** END file-production ***/ 1283s # 1283s # /*** BEGIN enumeration-production ***/ 1283s # enumeration-production 1283s # EnumName: @EnumName@ 1283s # enum_name: @enum_name@ 1283s # ENUMNAME: @ENUMNAME@ 1283s # ENUMSHORT: @ENUMSHORT@ 1283s # ENUMPREFIX: @ENUMPREFIX@ 1283s # enumsince: @enumsince@ 1283s # type: @type@ 1283s # Type: @Type@ 1283s # TYPE: @TYPE@ 1283s # /*** END enumeration-production ***/ 1283s # 1283s # /*** BEGIN value-header ***/ 1283s # value-header 1283s # EnumName: @EnumName@ 1283s # enum_name: @enum_name@ 1283s # ENUMNAME: @ENUMNAME@ 1283s # ENUMSHORT: @ENUMSHORT@ 1283s # ENUMPREFIX: @ENUMPREFIX@ 1283s # enumsince: @enumsince@ 1283s # type: @type@ 1283s # Type: @Type@ 1283s # TYPE: @TYPE@ 1283s # /*** END value-header ***/ 1283s # 1283s # /*** BEGIN value-production ***/ 1283s # value-production 1283s # VALUENAME: @VALUENAME@ 1283s # valuenick: @valuenick@ 1283s # valuenum: @valuenum@ 1283s # type: @type@ 1283s # Type: @Type@ 1283s # TYPE: @TYPE@ 1283s # /*** END value-production ***/ 1283s # 1283s # /*** BEGIN value-tail ***/ 1283s # value-tail 1283s # EnumName: @EnumName@ 1283s # enum_name: @enum_name@ 1283s # ENUMNAME: @ENUMNAME@ 1283s # ENUMSHORT: @ENUMSHORT@ 1283s # ENUMPREFIX: @ENUMPREFIX@ 1283s # enumsince: @enumsince@ 1283s # type: @type@ 1283s # Type: @Type@ 1283s # TYPE: @TYPE@ 1283s # /*** END value-tail ***/ 1283s # 1283s # /*** BEGIN comment ***/ 1283s # comment 1283s # comment: @comment@ 1283s # /*** END comment ***/ 1283s # 1283s # /*** BEGIN file-tail ***/ 1283s # file-tail 1283s # /*** END file-tail ***/ 1283s # 1283s # Running: ['/usr/bin/glib-mkenums', '--template', '/tmp/tmp54spt57a/tmpbghwklsu.template', '/tmp/tmp54spt57a/tmpd2_satir.h'] 1283s # Return code: 0 1283s # Output: 1283s # comment 1283s # 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. 1283s # 1283s # 1283s # file-header 1283s # file-production 1283s # filename: /tmp/tmp54spt57a/tmpd2_satir.h 1283s # basename: tmpd2_satir.h 1283s # enumeration-production 1283s # EnumName: GeglSamplerType 1283s # enum_name: gegl_sampler_type 1283s # ENUMNAME: GEGL_SAMPLER_TYPE 1283s # ENUMSHORT: SAMPLER_TYPE 1283s # ENUMPREFIX: GEGL 1283s # enumsince: 1283s # type: enum 1283s # Type: Enum 1283s # TYPE: ENUM 1283s # value-header 1283s # EnumName: GeglSamplerType 1283s # enum_name: gegl_sampler_type 1283s # ENUMNAME: GEGL_SAMPLER_TYPE 1283s # ENUMSHORT: SAMPLER_TYPE 1283s # ENUMPREFIX: GEGL 1283s # enumsince: 1283s # type: enum 1283s # Type: Enum 1283s # TYPE: ENUM 1283s # value-production 1283s # VALUENAME: GEGL_SAMPLER_NEAREST 1283s # valuenick: nearest 1283s # valuenum: 0 1283s # type: enum 1283s # Type: Enum 1283s # TYPE: ENUM 1283s # value-tail 1283s # EnumName: GeglSamplerType 1283s # enum_name: gegl_sampler_type 1283s # ENUMNAME: GEGL_SAMPLER_TYPE 1283s # ENUMSHORT: SAMPLER_TYPE 1283s # ENUMPREFIX: GEGL 1283s # enumsince: 1283s # type: enum 1283s # Type: Enum 1283s # TYPE: ENUM 1283s # file-tail 1283s # 1283s # comment 1283s # comment: Generated data ends here 1283s # Error: 1283s ok 15 __main__.TestMkenums.test_non_utf8_encoding 1283s # glib-mkenums: /usr/bin/glib-mkenums 1283s # tmpdir: /tmp/tmplf60dt1t 1283s # rspfile: False 1283s # /tmp/tmplf60dt1t/tmpqmnyg22y.h: 1283s # /* Copyright © La Peña */ 1283s # typedef enum { 1283s # ENUM_VALUE 1283s # } SomeEnumIdentifier; 1283s # 1283s # /tmp/tmplf60dt1t/tmphwsaunou.template: 1283s # /*** BEGIN file-header ***/ 1283s # file-header 1283s # /*** END file-header ***/ 1283s # 1283s # /*** BEGIN file-production ***/ 1283s # file-production 1283s # filename: @filename@ 1283s # basename: @basename@ 1283s # /*** END file-production ***/ 1283s # 1283s # /*** BEGIN enumeration-production ***/ 1283s # enumeration-production 1283s # EnumName: @EnumName@ 1283s # enum_name: @enum_name@ 1283s # ENUMNAME: @ENUMNAME@ 1283s # ENUMSHORT: @ENUMSHORT@ 1283s # ENUMPREFIX: @ENUMPREFIX@ 1283s # enumsince: @enumsince@ 1283s # type: @type@ 1283s # Type: @Type@ 1283s # TYPE: @TYPE@ 1283s # /*** END enumeration-production ***/ 1283s # 1283s # /*** BEGIN value-header ***/ 1283s # value-header 1283s # EnumName: @EnumName@ 1283s # enum_name: @enum_name@ 1283s # ENUMNAME: @ENUMNAME@ 1283s # ENUMSHORT: @ENUMSHORT@ 1283s # ENUMPREFIX: @ENUMPREFIX@ 1283s # enumsince: @enumsince@ 1283s # type: @type@ 1283s # Type: @Type@ 1283s # TYPE: @TYPE@ 1283s # /*** END value-header ***/ 1283s # 1283s # /*** BEGIN value-production ***/ 1283s # value-production 1283s # VALUENAME: @VALUENAME@ 1283s # valuenick: @valuenick@ 1283s # valuenum: @valuenum@ 1283s # type: @type@ 1283s # Type: @Type@ 1283s # TYPE: @TYPE@ 1283s # /*** END value-production ***/ 1283s # 1283s # /*** BEGIN value-tail ***/ 1283s # value-tail 1283s # EnumName: @EnumName@ 1283s # enum_name: @enum_name@ 1283s # ENUMNAME: @ENUMNAME@ 1283s # ENUMSHORT: @ENUMSHORT@ 1283s # ENUMPREFIX: @ENUMPREFIX@ 1283s # enumsince: @enumsince@ 1283s # type: @type@ 1283s # Type: @Type@ 1283s # TYPE: @TYPE@ 1283s # /*** END value-tail ***/ 1283s # 1283s # /*** BEGIN comment ***/ 1283s # comment 1283s # comment: @comment@ 1283s # /*** END comment ***/ 1283s # 1283s # /*** BEGIN file-tail ***/ 1283s # file-tail 1283s # /*** END file-tail ***/ 1283s # 1283s # Running: ['/usr/bin/glib-mkenums', '--template', '/tmp/tmplf60dt1t/tmphwsaunou.template', '/tmp/tmplf60dt1t/tmpqmnyg22y.h'] 1283s # Return code: 0 1283s # Output: 1283s # comment 1283s # 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. 1283s # 1283s # 1283s # file-header 1283s # file-production 1283s # filename: /tmp/tmplf60dt1t/tmpqmnyg22y.h 1283s # basename: tmpqmnyg22y.h 1283s # enumeration-production 1283s # EnumName: SomeEnumIdentifier 1283s # enum_name: some_enum_identifier 1283s # ENUMNAME: SOME_ENUM_IDENTIFIER 1283s # ENUMSHORT: ENUM_IDENTIFIER 1283s # ENUMPREFIX: SOME 1283s # enumsince: 1283s # type: enum 1283s # Type: Enum 1283s # TYPE: ENUM 1283s # value-header 1283s # EnumName: SomeEnumIdentifier 1283s # enum_name: some_enum_identifier 1283s # ENUMNAME: SOME_ENUM_IDENTIFIER 1283s # ENUMSHORT: ENUM_IDENTIFIER 1283s # ENUMPREFIX: SOME 1283s # enumsince: 1283s # type: enum 1283s # Type: Enum 1283s # TYPE: ENUM 1283s # value-production 1283s # VALUENAME: ENUM_VALUE 1283s # valuenick: value 1283s # valuenum: 0 1283s # type: enum 1283s # Type: Enum 1283s # TYPE: ENUM 1283s # value-tail 1283s # EnumName: SomeEnumIdentifier 1283s # enum_name: some_enum_identifier 1283s # ENUMNAME: SOME_ENUM_IDENTIFIER 1283s # ENUMSHORT: ENUM_IDENTIFIER 1283s # ENUMPREFIX: SOME 1283s # enumsince: 1283s # type: enum 1283s # Type: Enum 1283s # TYPE: ENUM 1283s # file-tail 1283s # 1283s # comment 1283s # comment: Generated data ends here 1283s # Error: 1283s # WARNING: UnicodeWarning: invalid start byte at 22 (b'yright \xa9 La Pe\xf1') 1283s # WARNING: UnicodeWarning: invalid continuation byte at 29 (b'\xa9 La Pe\xf1a */\n ') 1283s ok 16 __main__.TestMkenums.test_reproducible 1283s # glib-mkenums: /usr/bin/glib-mkenums 1283s # tmpdir: /tmp/tmporzd4vl5 1283s # rspfile: False 1283s # /tmp/tmporzd4vl5/tmppamo1p_u.template: template 1283s # Running: ['/usr/bin/glib-mkenums', '--template', '/tmp/tmporzd4vl5/tmppamo1p_u.template', '/tmp/tmporzd4vl5/tmptqcguko61.h', '/tmp/tmporzd4vl5/tmplg28x3kl2.h'] 1283s # Return code: 0 1283s # Output: 1283s # /* 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. */ 1283s # 1283s # 1283s # /* Generated data ends here */ 1283s # Error: 1283s # 1283s # /tmp/tmporzd4vl5/tmpa39vx0wo.template: template 1283s # Running: ['/usr/bin/glib-mkenums', '--template', '/tmp/tmporzd4vl5/tmpa39vx0wo.template', '/tmp/tmporzd4vl5/tmplg28x3kl2.h', '/tmp/tmporzd4vl5/tmptqcguko61.h'] 1283s # Return code: 0 1283s # Output: 1283s # /* 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. */ 1283s # 1283s # 1283s # /* Generated data ends here */ 1283s # Error: 1283s ok 17 __main__.TestMkenums.test_since 1283s # glib-mkenums: /usr/bin/glib-mkenums 1283s # tmpdir: /tmp/tmptc7e1h_b 1283s # rspfile: False 1283s # /tmp/tmptc7e1h_b/tmpclcoe8_6.h: 1283s # typedef enum { /*< since=1.0 >*/ 1283s # QMI_WMS_MESSAGE_PROTOCOL_CDMA = 0, 1283s # } QmiWmsMessageProtocol; 1283s # 1283s # /tmp/tmptc7e1h_b/tmpj8pit57z.template: 1283s # /*** BEGIN file-header ***/ 1283s # file-header 1283s # /*** END file-header ***/ 1283s # 1283s # /*** BEGIN file-production ***/ 1283s # file-production 1283s # filename: @filename@ 1283s # basename: @basename@ 1283s # /*** END file-production ***/ 1283s # 1283s # /*** BEGIN enumeration-production ***/ 1283s # enumeration-production 1283s # EnumName: @EnumName@ 1283s # enum_name: @enum_name@ 1283s # ENUMNAME: @ENUMNAME@ 1283s # ENUMSHORT: @ENUMSHORT@ 1283s # ENUMPREFIX: @ENUMPREFIX@ 1283s # enumsince: @enumsince@ 1283s # type: @type@ 1283s # Type: @Type@ 1283s # TYPE: @TYPE@ 1283s # /*** END enumeration-production ***/ 1283s # 1283s # /*** BEGIN value-header ***/ 1283s # value-header 1283s # EnumName: @EnumName@ 1283s # enum_name: @enum_name@ 1283s # ENUMNAME: @ENUMNAME@ 1283s # ENUMSHORT: @ENUMSHORT@ 1283s # ENUMPREFIX: @ENUMPREFIX@ 1283s # enumsince: @enumsince@ 1283s # type: @type@ 1283s # Type: @Type@ 1283s # TYPE: @TYPE@ 1283s # /*** END value-header ***/ 1283s # 1283s # /*** BEGIN value-production ***/ 1283s # value-production 1283s # VALUENAME: @VALUENAME@ 1283s # valuenick: @valuenick@ 1283s # valuenum: @valuenum@ 1283s # type: @type@ 1283s # Type: @Type@ 1283s # TYPE: @TYPE@ 1283s # /*** END value-production ***/ 1283s # 1283s # /*** BEGIN value-tail ***/ 1283s # value-tail 1283s # EnumName: @EnumName@ 1283s # enum_name: @enum_name@ 1283s # ENUMNAME: @ENUMNAME@ 1283s # ENUMSHORT: @ENUMSHORT@ 1283s # ENUMPREFIX: @ENUMPREFIX@ 1283s # enumsince: @enumsince@ 1283s # type: @type@ 1283s # Type: @Type@ 1283s # TYPE: @TYPE@ 1283s # /*** END value-tail ***/ 1283s # 1283s # /*** BEGIN comment ***/ 1283s # comment 1283s # comment: @comment@ 1283s # /*** END comment ***/ 1283s # 1283s # /*** BEGIN file-tail ***/ 1283s # file-tail 1283s # /*** END file-tail ***/ 1283s # 1283s # Running: ['/usr/bin/glib-mkenums', '--template', '/tmp/tmptc7e1h_b/tmpj8pit57z.template', '/tmp/tmptc7e1h_b/tmpclcoe8_6.h'] 1283s # Return code: 0 1283s # Output: 1283s # comment 1283s # 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. 1283s # 1283s # 1283s # file-header 1283s # file-production 1283s # filename: /tmp/tmptc7e1h_b/tmpclcoe8_6.h 1283s # basename: tmpclcoe8_6.h 1283s # enumeration-production 1283s # EnumName: QmiWmsMessageProtocol 1283s # enum_name: qmi_wms_message_protocol 1283s # ENUMNAME: QMI_WMS_MESSAGE_PROTOCOL 1283s # ENUMSHORT: WMS_MESSAGE_PROTOCOL 1283s # ENUMPREFIX: QMI 1283s # enumsince: 1.0 1283s # type: enum 1283s # Type: Enum 1283s # TYPE: ENUM 1283s # value-header 1283s # EnumName: QmiWmsMessageProtocol 1283s # enum_name: qmi_wms_message_protocol 1283s # ENUMNAME: QMI_WMS_MESSAGE_PROTOCOL 1283s # ENUMSHORT: WMS_MESSAGE_PROTOCOL 1283s # ENUMPREFIX: QMI 1283s # enumsince: 1.0 1283s # type: enum 1283s # Type: Enum 1283s # TYPE: ENUM 1283s # value-production 1283s # VALUENAME: QMI_WMS_MESSAGE_PROTOCOL_CDMA 1283s # valuenick: cdma 1283s # valuenum: 0 1283s # type: enum 1283s # Type: Enum 1283s # TYPE: ENUM 1283s # value-tail 1283s # EnumName: QmiWmsMessageProtocol 1283s # enum_name: qmi_wms_message_protocol 1283s # ENUMNAME: QMI_WMS_MESSAGE_PROTOCOL 1283s # ENUMSHORT: WMS_MESSAGE_PROTOCOL 1283s # ENUMPREFIX: QMI 1283s # enumsince: 1.0 1283s # type: enum 1283s # Type: Enum 1283s # TYPE: ENUM 1283s # file-tail 1283s # 1283s # comment 1283s # comment: Generated data ends here 1283s # Error: 1283s ok 18 __main__.TestMkenums.test_with_double_quotes 1283s # glib-mkenums: /usr/bin/glib-mkenums 1283s # tmpdir: /tmp/tmpcs6npei7 1283s # rspfile: False 1283s # /tmp/tmpcs6npei7/tmphmj9sx6m.h: 1283s # typedef enum { 1283s # FOO_VALUE /*< nick="eek, a comma" >*/ 1283s # } Foo; 1283s # 1283s # /tmp/tmpcs6npei7/tmpkpp9fqfn.template: 1283s # /*** BEGIN file-header ***/ 1283s # file-header 1283s # /*** END file-header ***/ 1283s # 1283s # /*** BEGIN file-production ***/ 1283s # file-production 1283s # filename: @filename@ 1283s # basename: @basename@ 1283s # /*** END file-production ***/ 1283s # 1283s # /*** BEGIN enumeration-production ***/ 1283s # enumeration-production 1283s # EnumName: @EnumName@ 1283s # enum_name: @enum_name@ 1283s # ENUMNAME: @ENUMNAME@ 1283s # ENUMSHORT: @ENUMSHORT@ 1283s # ENUMPREFIX: @ENUMPREFIX@ 1283s # enumsince: @enumsince@ 1283s # type: @type@ 1283s # Type: @Type@ 1283s # TYPE: @TYPE@ 1283s # /*** END enumeration-production ***/ 1283s # 1283s # /*** BEGIN value-header ***/ 1283s # value-header 1283s # EnumName: @EnumName@ 1283s # enum_name: @enum_name@ 1283s # ENUMNAME: @ENUMNAME@ 1283s # ENUMSHORT: @ENUMSHORT@ 1283s # ENUMPREFIX: @ENUMPREFIX@ 1283s # enumsince: @enumsince@ 1283s # type: @type@ 1283s # Type: @Type@ 1283s # TYPE: @TYPE@ 1283s # /*** END value-header ***/ 1283s # 1283s # /*** BEGIN value-production ***/ 1283s # value-production 1283s # VALUENAME: @VALUENAME@ 1283s # valuenick: @valuenick@ 1283s # valuenum: @valuenum@ 1283s # type: @type@ 1283s # Type: @Type@ 1283s # TYPE: @TYPE@ 1283s # /*** END value-production ***/ 1283s # 1283s # /*** BEGIN value-tail ***/ 1283s # value-tail 1283s # EnumName: @EnumName@ 1283s # enum_name: @enum_name@ 1283s # ENUMNAME: @ENUMNAME@ 1283s # ENUMSHORT: @ENUMSHORT@ 1283s # ENUMPREFIX: @ENUMPREFIX@ 1283s # enumsince: @enumsince@ 1283s # type: @type@ 1283s # Type: @Type@ 1283s # TYPE: @TYPE@ 1283s # /*** END value-tail ***/ 1283s # 1283s # /*** BEGIN comment ***/ 1283s # comment 1283s # comment: @comment@ 1283s # /*** END comment ***/ 1283s # 1283s # /*** BEGIN file-tail ***/ 1283s # file-tail 1283s # /*** END file-tail ***/ 1283s # 1283s # Running: ['/usr/bin/glib-mkenums', '--template', '/tmp/tmpcs6npei7/tmpkpp9fqfn.template', '/tmp/tmpcs6npei7/tmphmj9sx6m.h'] 1283s # Return code: 0 1283s # Output: 1283s # comment 1283s # 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. 1283s # 1283s # 1283s # file-header 1283s # file-production 1283s # filename: /tmp/tmpcs6npei7/tmphmj9sx6m.h 1283s # basename: tmphmj9sx6m.h 1283s # enumeration-production 1283s # EnumName: Foo 1283s # enum_name: foo_ 1283s # ENUMNAME: FOO_ 1283s # ENUMSHORT: 1283s # ENUMPREFIX: FOO 1283s # enumsince: 1283s # type: enum 1283s # Type: Enum 1283s # TYPE: ENUM 1283s # value-header 1283s # EnumName: Foo 1283s # enum_name: foo_ 1283s # ENUMNAME: FOO_ 1283s # ENUMSHORT: 1283s # ENUMPREFIX: FOO 1283s # enumsince: 1283s # type: enum 1283s # Type: Enum 1283s # TYPE: ENUM 1283s # value-production 1283s # VALUENAME: FOO_VALUE 1283s # valuenick: eek, a comma 1283s # valuenum: 0 1283s # type: enum 1283s # Type: Enum 1283s # TYPE: ENUM 1283s # value-tail 1283s # EnumName: Foo 1283s # enum_name: foo_ 1283s # ENUMNAME: FOO_ 1283s # ENUMSHORT: 1283s # ENUMPREFIX: FOO 1283s # enumsince: 1283s # type: enum 1283s # Type: Enum 1283s # TYPE: ENUM 1283s # file-tail 1283s # 1283s # comment 1283s # comment: Generated data ends here 1283s # Error: 1283s ok 19 __main__.TestRspMkenums.test_available_in 1283s # glib-mkenums: /usr/bin/glib-mkenums 1283s # tmpdir: /tmp/tmpeog1ra_7 1283s # rspfile: True 1283s # /tmp/tmpeog1ra_7/tmp8wen1djh.h: 1283s # typedef enum { 1283s # G_DBUS_SERVER_FLAGS_AUTHENTICATION_REQUIRE_SAME_USER GLIB_AVAILABLE_ENUMERATOR_IN_2_68 = (1<<2) 1283s # } GDBusServerFlags; 1283s # 1283s # /tmp/tmpeog1ra_7/tmpb9_4v060.template: 1283s # /*** BEGIN file-header ***/ 1283s # file-header 1283s # /*** END file-header ***/ 1283s # 1283s # /*** BEGIN file-production ***/ 1283s # file-production 1283s # filename: @filename@ 1283s # basename: @basename@ 1283s # /*** END file-production ***/ 1283s # 1283s # /*** BEGIN enumeration-production ***/ 1283s # enumeration-production 1283s # EnumName: @EnumName@ 1283s # enum_name: @enum_name@ 1283s # ENUMNAME: @ENUMNAME@ 1283s # ENUMSHORT: @ENUMSHORT@ 1283s # ENUMPREFIX: @ENUMPREFIX@ 1283s # enumsince: @enumsince@ 1283s # type: @type@ 1283s # Type: @Type@ 1283s # TYPE: @TYPE@ 1283s # /*** END enumeration-production ***/ 1283s # 1283s # /*** BEGIN value-header ***/ 1283s # value-header 1283s # EnumName: @EnumName@ 1283s # enum_name: @enum_name@ 1283s # ENUMNAME: @ENUMNAME@ 1283s # ENUMSHORT: @ENUMSHORT@ 1283s # ENUMPREFIX: @ENUMPREFIX@ 1283s # enumsince: @enumsince@ 1283s # type: @type@ 1283s # Type: @Type@ 1283s # TYPE: @TYPE@ 1283s # /*** END value-header ***/ 1283s # 1283s # /*** BEGIN value-production ***/ 1283s # value-production 1283s # VALUENAME: @VALUENAME@ 1283s # valuenick: @valuenick@ 1283s # valuenum: @valuenum@ 1283s # type: @type@ 1283s # Type: @Type@ 1283s # TYPE: @TYPE@ 1283s # /*** END value-production ***/ 1283s # 1283s # /*** BEGIN value-tail ***/ 1283s # value-tail 1283s # EnumName: @EnumName@ 1283s # enum_name: @enum_name@ 1283s # ENUMNAME: @ENUMNAME@ 1283s # ENUMSHORT: @ENUMSHORT@ 1283s # ENUMPREFIX: @ENUMPREFIX@ 1283s # enumsince: @enumsince@ 1283s # type: @type@ 1283s # Type: @Type@ 1283s # TYPE: @TYPE@ 1283s # /*** END value-tail ***/ 1283s # 1283s # /*** BEGIN comment ***/ 1283s # comment 1283s # comment: @comment@ 1283s # /*** END comment ***/ 1283s # 1283s # /*** BEGIN file-tail ***/ 1283s # file-tail 1283s # /*** END file-tail ***/ 1283s # 1283s # Response file contains: --template /tmp/tmpeog1ra_7/tmpb9_4v060.template /tmp/tmpeog1ra_7/tmp8wen1djh.h 1283s # Running: ['/usr/bin/glib-mkenums', '@/tmp/tmpeog1ra_7/tmpalt3g3gh'] 1283s # Return code: 0 1283s # Output: 1283s # comment 1283s # 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. 1283s # 1283s # 1283s # file-header 1283s # file-production 1283s # filename: /tmp/tmpeog1ra_7/tmp8wen1djh.h 1283s # basename: tmp8wen1djh.h 1283s # enumeration-production 1283s # EnumName: GDBusServerFlags 1283s # enum_name: g_dbus_server_flags 1283s # ENUMNAME: G_DBUS_SERVER_FLAGS 1283s # ENUMSHORT: DBUS_SERVER_FLAGS 1283s # ENUMPREFIX: G 1283s # enumsince: 1283s # type: flags 1283s # Type: Flags 1283s # TYPE: FLAGS 1283s # value-header 1283s # EnumName: GDBusServerFlags 1283s # enum_name: g_dbus_server_flags 1283s # ENUMNAME: G_DBUS_SERVER_FLAGS 1283s # ENUMSHORT: DBUS_SERVER_FLAGS 1283s # ENUMPREFIX: G 1283s # enumsince: 1283s # type: flags 1283s # Type: Flags 1283s # TYPE: FLAGS 1283s # value-production 1283s # VALUENAME: G_DBUS_SERVER_FLAGS_AUTHENTICATION_REQUIRE_SAME_USER 1283s # valuenick: user 1283s # valuenum: 4 1283s # type: flags 1283s # Type: Flags 1283s # TYPE: FLAGS 1283s # value-tail 1283s # EnumName: GDBusServerFlags 1283s # enum_name: g_dbus_server_flags 1283s # ENUMNAME: G_DBUS_SERVER_FLAGS 1283s # ENUMSHORT: DBUS_SERVER_FLAGS 1283s # ENUMPREFIX: G 1283s # enumsince: 1283s # type: flags 1283s # Type: Flags 1283s # TYPE: FLAGS 1283s # file-tail 1283s # 1283s # comment 1283s # comment: Generated data ends here 1283s # Error: 1283s ok 20 __main__.TestRspMkenums.test_comma_in_enum_value 1283s # glib-mkenums: /usr/bin/glib-mkenums 1283s # tmpdir: /tmp/tmpnz6mp6pl 1283s # rspfile: True 1283s # /tmp/tmpnz6mp6pl/tmpttd3fjf2.h: 1283s # typedef enum { 1283s # ENUM_VALUE_WITH_COMMA = ',', 1283s # } TestCommaEnum; 1283s # 1283s # /tmp/tmpnz6mp6pl/tmpzjubr2e3.template: 1283s # /*** BEGIN file-header ***/ 1283s # file-header 1283s # /*** END file-header ***/ 1283s # 1283s # /*** BEGIN file-production ***/ 1283s # file-production 1283s # filename: @filename@ 1283s # basename: @basename@ 1283s # /*** END file-production ***/ 1283s # 1283s # /*** BEGIN enumeration-production ***/ 1283s # enumeration-production 1283s # EnumName: @EnumName@ 1283s # enum_name: @enum_name@ 1283s # ENUMNAME: @ENUMNAME@ 1283s # ENUMSHORT: @ENUMSHORT@ 1283s # ENUMPREFIX: @ENUMPREFIX@ 1283s # enumsince: @enumsince@ 1283s # type: @type@ 1283s # Type: @Type@ 1283s # TYPE: @TYPE@ 1283s # /*** END enumeration-production ***/ 1283s # 1283s # /*** BEGIN value-header ***/ 1283s # value-header 1283s # EnumName: @EnumName@ 1283s # enum_name: @enum_name@ 1283s # ENUMNAME: @ENUMNAME@ 1283s # ENUMSHORT: @ENUMSHORT@ 1283s # ENUMPREFIX: @ENUMPREFIX@ 1283s # enumsince: @enumsince@ 1283s # type: @type@ 1283s # Type: @Type@ 1283s # TYPE: @TYPE@ 1283s # /*** END value-header ***/ 1283s # 1283s # /*** BEGIN value-production ***/ 1283s # value-production 1283s # VALUENAME: @VALUENAME@ 1283s # valuenick: @valuenick@ 1283s # valuenum: @valuenum@ 1283s # type: @type@ 1283s # Type: @Type@ 1283s # TYPE: @TYPE@ 1283s # /*** END value-production ***/ 1283s # 1283s # /*** BEGIN value-tail ***/ 1283s # value-tail 1283s # EnumName: @EnumName@ 1283s # enum_name: @enum_name@ 1283s # ENUMNAME: @ENUMNAME@ 1283s # ENUMSHORT: @ENUMSHORT@ 1283s # ENUMPREFIX: @ENUMPREFIX@ 1283s # enumsince: @enumsince@ 1283s # type: @type@ 1283s # Type: @Type@ 1283s # TYPE: @TYPE@ 1283s # /*** END value-tail ***/ 1283s # 1283s # /*** BEGIN comment ***/ 1283s # comment 1283s # comment: @comment@ 1283s # /*** END comment ***/ 1283s # 1283s # /*** BEGIN file-tail ***/ 1283s # file-tail 1283s # /*** END file-tail ***/ 1283s # 1283s # Response file contains: --template /tmp/tmpnz6mp6pl/tmpzjubr2e3.template /tmp/tmpnz6mp6pl/tmpttd3fjf2.h 1283s # Running: ['/usr/bin/glib-mkenums', '@/tmp/tmpnz6mp6pl/tmpiwna4h9y'] 1283s # Return code: 0 1283s # Output: 1283s # comment 1283s # 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. 1283s # 1283s # 1283s # file-header 1283s # file-production 1283s # filename: /tmp/tmpnz6mp6pl/tmpttd3fjf2.h 1283s # basename: tmpttd3fjf2.h 1283s # enumeration-production 1283s # EnumName: TestCommaEnum 1283s # enum_name: test_comma_enum 1283s # ENUMNAME: TEST_COMMA_ENUM 1283s # ENUMSHORT: COMMA_ENUM 1283s # ENUMPREFIX: TEST 1283s # enumsince: 1283s # type: enum 1283s # Type: Enum 1283s # TYPE: ENUM 1283s # value-header 1283s # EnumName: TestCommaEnum 1283s # enum_name: test_comma_enum 1283s # ENUMNAME: TEST_COMMA_ENUM 1283s # ENUMSHORT: COMMA_ENUM 1283s # ENUMPREFIX: TEST 1283s # enumsince: 1283s # type: enum 1283s # Type: Enum 1283s # TYPE: ENUM 1283s # value-production 1283s # VALUENAME: ENUM_VALUE_WITH_COMMA 1283s # valuenick: comma 1283s # valuenum: 44 1283s # type: enum 1283s # Type: Enum 1283s # TYPE: ENUM 1283s # value-tail 1283s # EnumName: TestCommaEnum 1283s # enum_name: test_comma_enum 1283s # ENUMNAME: TEST_COMMA_ENUM 1283s # ENUMSHORT: COMMA_ENUM 1283s # ENUMPREFIX: TEST 1283s # enumsince: 1283s # type: enum 1283s # Type: Enum 1283s # TYPE: ENUM 1283s # file-tail 1283s # 1283s # comment 1283s # comment: Generated data ends here 1283s # Error: 1283s ok 21 __main__.TestRspMkenums.test_deprecated_in 1283s # glib-mkenums: /usr/bin/glib-mkenums 1283s # tmpdir: /tmp/tmpgu0grll8 1283s # rspfile: True 1283s # /tmp/tmpgu0grll8/tmpwga9v52q.h: 1283s # typedef enum { 1283s # G_DBUS_SERVER_FLAGS_AUTHENTICATION_REQUIRE_SAME_USER GLIB_DEPRECATED_ENUMERATOR_IN_2_68 = (1<<2) 1283s # } GDBusServerFlags; 1283s # 1283s # /tmp/tmpgu0grll8/tmp2d09d9hm.template: 1283s # /*** BEGIN file-header ***/ 1283s # file-header 1283s # /*** END file-header ***/ 1283s # 1283s # /*** BEGIN file-production ***/ 1283s # file-production 1283s # filename: @filename@ 1283s # basename: @basename@ 1283s # /*** END file-production ***/ 1283s # 1283s # /*** BEGIN enumeration-production ***/ 1283s # enumeration-production 1283s # EnumName: @EnumName@ 1283s # enum_name: @enum_name@ 1283s # ENUMNAME: @ENUMNAME@ 1283s # ENUMSHORT: @ENUMSHORT@ 1283s # ENUMPREFIX: @ENUMPREFIX@ 1283s # enumsince: @enumsince@ 1283s # type: @type@ 1283s # Type: @Type@ 1283s # TYPE: @TYPE@ 1283s # /*** END enumeration-production ***/ 1283s # 1283s # /*** BEGIN value-header ***/ 1283s # value-header 1283s # EnumName: @EnumName@ 1283s # enum_name: @enum_name@ 1283s # ENUMNAME: @ENUMNAME@ 1283s # ENUMSHORT: @ENUMSHORT@ 1283s # ENUMPREFIX: @ENUMPREFIX@ 1283s # enumsince: @enumsince@ 1283s # type: @type@ 1283s # Type: @Type@ 1283s # TYPE: @TYPE@ 1283s # /*** END value-header ***/ 1283s # 1283s # /*** BEGIN value-production ***/ 1283s # value-production 1283s # VALUENAME: @VALUENAME@ 1283s # valuenick: @valuenick@ 1283s # valuenum: @valuenum@ 1283s # type: @type@ 1283s # Type: @Type@ 1283s # TYPE: @TYPE@ 1283s # /*** END value-production ***/ 1283s # 1283s # /*** BEGIN value-tail ***/ 1283s # value-tail 1283s # EnumName: @EnumName@ 1283s # enum_name: @enum_name@ 1283s # ENUMNAME: @ENUMNAME@ 1283s # ENUMSHORT: @ENUMSHORT@ 1283s # ENUMPREFIX: @ENUMPREFIX@ 1283s # enumsince: @enumsince@ 1283s # type: @type@ 1283s # Type: @Type@ 1283s # TYPE: @TYPE@ 1283s # /*** END value-tail ***/ 1283s # 1283s # /*** BEGIN comment ***/ 1283s # comment 1283s # comment: @comment@ 1283s # /*** END comment ***/ 1283s # 1283s # /*** BEGIN file-tail ***/ 1283s # file-tail 1283s # /*** END file-tail ***/ 1283s # 1283s # Response file contains: --template /tmp/tmpgu0grll8/tmp2d09d9hm.template /tmp/tmpgu0grll8/tmpwga9v52q.h 1283s # Running: ['/usr/bin/glib-mkenums', '@/tmp/tmpgu0grll8/tmp78qiorxm'] 1283s # Return code: 0 1283s # Output: 1283s # comment 1283s # 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. 1283s # 1283s # 1283s # file-header 1283s # file-production 1283s # filename: /tmp/tmpgu0grll8/tmpwga9v52q.h 1283s # basename: tmpwga9v52q.h 1283s # enumeration-production 1283s # EnumName: GDBusServerFlags 1283s # enum_name: g_dbus_server_flags 1283s # ENUMNAME: G_DBUS_SERVER_FLAGS 1283s # ENUMSHORT: DBUS_SERVER_FLAGS 1283s # ENUMPREFIX: G 1283s # enumsince: 1283s # type: flags 1283s # Type: Flags 1283s # TYPE: FLAGS 1283s # value-header 1283s # EnumName: GDBusServerFlags 1283s # enum_name: g_dbus_server_flags 1283s # ENUMNAME: G_DBUS_SERVER_FLAGS 1283s # ENUMSHORT: DBUS_SERVER_FLAGS 1283s # ENUMPREFIX: G 1283s # enumsince: 1283s # type: flags 1283s # Type: Flags 1283s # TYPE: FLAGS 1283s # value-production 1283s # VALUENAME: G_DBUS_SERVER_FLAGS_AUTHENTICATION_REQUIRE_SAME_USER 1283s # valuenick: user 1283s # valuenum: 4 1283s # type: flags 1283s # Type: Flags 1283s # TYPE: FLAGS 1283s # value-tail 1283s # EnumName: GDBusServerFlags 1283s # enum_name: g_dbus_server_flags 1283s # ENUMNAME: G_DBUS_SERVER_FLAGS 1283s # ENUMSHORT: DBUS_SERVER_FLAGS 1283s # ENUMPREFIX: G 1283s # enumsince: 1283s # type: flags 1283s # Type: Flags 1283s # TYPE: FLAGS 1283s # file-tail 1283s # 1283s # comment 1283s # comment: Generated data ends here 1283s # Error: 1283s ok 22 __main__.TestRspMkenums.test_deprecated_in_for 1283s # glib-mkenums: /usr/bin/glib-mkenums 1283s # tmpdir: /tmp/tmpfzrpd3ew 1283s # rspfile: True 1283s # /tmp/tmpfzrpd3ew/tmp92s2lap5.h: 1283s # typedef enum { 1283s # 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) 1283s # } GDBusServerFlags; 1283s # 1283s # /tmp/tmpfzrpd3ew/tmpwmkucqra.template: 1283s # /*** BEGIN file-header ***/ 1283s # file-header 1283s # /*** END file-header ***/ 1283s # 1283s # /*** BEGIN file-production ***/ 1283s # file-production 1283s # filename: @filename@ 1283s # basename: @basename@ 1283s # /*** END file-production ***/ 1283s # 1283s # /*** BEGIN enumeration-production ***/ 1283s # enumeration-production 1283s # EnumName: @EnumName@ 1283s # enum_name: @enum_name@ 1283s # ENUMNAME: @ENUMNAME@ 1283s # ENUMSHORT: @ENUMSHORT@ 1283s # ENUMPREFIX: @ENUMPREFIX@ 1283s # enumsince: @enumsince@ 1283s # type: @type@ 1283s # Type: @Type@ 1283s # TYPE: @TYPE@ 1283s # /*** END enumeration-production ***/ 1283s # 1283s # /*** BEGIN value-header ***/ 1283s # value-header 1283s # EnumName: @EnumName@ 1283s # enum_name: @enum_name@ 1283s # ENUMNAME: @ENUMNAME@ 1283s # ENUMSHORT: @ENUMSHORT@ 1283s # ENUMPREFIX: @ENUMPREFIX@ 1283s # enumsince: @enumsince@ 1283s # type: @type@ 1283s # Type: @Type@ 1283s # TYPE: @TYPE@ 1283s # /*** END value-header ***/ 1283s # 1283s # /*** BEGIN value-production ***/ 1283s # value-production 1283s # VALUENAME: @VALUENAME@ 1283s # valuenick: @valuenick@ 1283s # valuenum: @valuenum@ 1283s # type: @type@ 1283s # Type: @Type@ 1283s # TYPE: @TYPE@ 1283s # /*** END value-production ***/ 1283s # 1283s # /*** BEGIN value-tail ***/ 1283s # value-tail 1283s # EnumName: @EnumName@ 1283s # enum_name: @enum_name@ 1283s # ENUMNAME: @ENUMNAME@ 1283s # ENUMSHORT: @ENUMSHORT@ 1283s # ENUMPREFIX: @ENUMPREFIX@ 1283s # enumsince: @enumsince@ 1283s # type: @type@ 1283s # Type: @Type@ 1283s # TYPE: @TYPE@ 1283s # /*** END value-tail ***/ 1283s # 1283s # /*** BEGIN comment ***/ 1283s # comment 1283s # comment: @comment@ 1283s # /*** END comment ***/ 1283s # 1283s # /*** BEGIN file-tail ***/ 1283s # file-tail 1283s # /*** END file-tail ***/ 1283s # 1283s # Response file contains: --template /tmp/tmpfzrpd3ew/tmpwmkucqra.template /tmp/tmpfzrpd3ew/tmp92s2lap5.h 1283s # Running: ['/usr/bin/glib-mkenums', '@/tmp/tmpfzrpd3ew/tmpfhvyixzw'] 1283s # Return code: 0 1283s # Output: 1283s # comment 1283s # 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. 1283s # 1283s # 1283s # file-header 1283s # file-production 1283s # filename: /tmp/tmpfzrpd3ew/tmp92s2lap5.h 1283s # basename: tmp92s2lap5.h 1283s # enumeration-production 1283s # EnumName: GDBusServerFlags 1283s # enum_name: g_dbus_server_flags 1283s # ENUMNAME: G_DBUS_SERVER_FLAGS 1283s # ENUMSHORT: DBUS_SERVER_FLAGS 1283s # ENUMPREFIX: G 1283s # enumsince: 1283s # type: flags 1283s # Type: Flags 1283s # TYPE: FLAGS 1283s # value-header 1283s # EnumName: GDBusServerFlags 1283s # enum_name: g_dbus_server_flags 1283s # ENUMNAME: G_DBUS_SERVER_FLAGS 1283s # ENUMSHORT: DBUS_SERVER_FLAGS 1283s # ENUMPREFIX: G 1283s # enumsince: 1283s # type: flags 1283s # Type: Flags 1283s # TYPE: FLAGS 1283s # value-production 1283s # VALUENAME: G_DBUS_SERVER_FLAGS_AUTHENTICATION_REQUIRE_SAME_USER 1283s # valuenick: user 1283s # valuenum: 4 1283s # type: flags 1283s # Type: Flags 1283s # TYPE: FLAGS 1283s # value-tail 1283s # EnumName: GDBusServerFlags 1283s # enum_name: g_dbus_server_flags 1283s # ENUMNAME: G_DBUS_SERVER_FLAGS 1283s # ENUMSHORT: DBUS_SERVER_FLAGS 1283s # ENUMPREFIX: G 1283s # enumsince: 1283s # type: flags 1283s # Type: Flags 1283s # TYPE: FLAGS 1283s # file-tail 1283s # 1283s # comment 1283s # comment: Generated data ends here 1283s # Error: 1283s ok 23 __main__.TestRspMkenums.test_empty_header 1283s # glib-mkenums: /usr/bin/glib-mkenums 1283s # tmpdir: /tmp/tmp3niym4_0 1283s # rspfile: True 1283s # /tmp/tmp3niym4_0/tmp7wzxua8u.h: 1283s # /tmp/tmp3niym4_0/tmp939fj8fr.template: 1283s # /*** BEGIN file-header ***/ 1283s # file-header 1283s # /*** END file-header ***/ 1283s # 1283s # /*** BEGIN file-production ***/ 1283s # file-production 1283s # filename: @filename@ 1283s # basename: @basename@ 1283s # /*** END file-production ***/ 1283s # 1283s # /*** BEGIN enumeration-production ***/ 1283s # enumeration-production 1283s # EnumName: @EnumName@ 1283s # enum_name: @enum_name@ 1283s # ENUMNAME: @ENUMNAME@ 1283s # ENUMSHORT: @ENUMSHORT@ 1283s # ENUMPREFIX: @ENUMPREFIX@ 1283s # enumsince: @enumsince@ 1283s # type: @type@ 1283s # Type: @Type@ 1283s # TYPE: @TYPE@ 1283s # /*** END enumeration-production ***/ 1283s # 1283s # /*** BEGIN value-header ***/ 1283s # value-header 1283s # EnumName: @EnumName@ 1283s # enum_name: @enum_name@ 1283s # ENUMNAME: @ENUMNAME@ 1283s # ENUMSHORT: @ENUMSHORT@ 1283s # ENUMPREFIX: @ENUMPREFIX@ 1283s # enumsince: @enumsince@ 1283s # type: @type@ 1283s # Type: @Type@ 1283s # TYPE: @TYPE@ 1283s # /*** END value-header ***/ 1283s # 1283s # /*** BEGIN value-production ***/ 1283s # value-production 1283s # VALUENAME: @VALUENAME@ 1283s # valuenick: @valuenick@ 1283s # valuenum: @valuenum@ 1283s # type: @type@ 1283s # Type: @Type@ 1283s # TYPE: @TYPE@ 1283s # /*** END value-production ***/ 1283s # 1283s # /*** BEGIN value-tail ***/ 1283s # value-tail 1283s # EnumName: @EnumName@ 1283s # enum_name: @enum_name@ 1283s # ENUMNAME: @ENUMNAME@ 1283s # ENUMSHORT: @ENUMSHORT@ 1283s # ENUMPREFIX: @ENUMPREFIX@ 1283s # enumsince: @enumsince@ 1283s # type: @type@ 1283s # Type: @Type@ 1283s # TYPE: @TYPE@ 1283s # /*** END value-tail ***/ 1283s # 1283s # /*** BEGIN comment ***/ 1283s # comment 1283s # comment: @comment@ 1283s # /*** END comment ***/ 1283s # 1283s # /*** BEGIN file-tail ***/ 1283s # file-tail 1283s # /*** END file-tail ***/ 1283s # 1283s # Response file contains: --template /tmp/tmp3niym4_0/tmp939fj8fr.template /tmp/tmp3niym4_0/tmp7wzxua8u.h 1283s # Running: ['/usr/bin/glib-mkenums', '@/tmp/tmp3niym4_0/tmp3k89_o23'] 1283s # Return code: 0 1283s # Output: 1283s # comment 1283s # 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. 1283s # 1283s # 1283s # file-header 1283s # file-tail 1283s # 1283s # comment 1283s # comment: Generated data ends here 1283s # Error: 1284s ok 24 __main__.TestRspMkenums.test_empty_template 1284s # glib-mkenums: /usr/bin/glib-mkenums 1284s # tmpdir: /tmp/tmp1e34zder 1284s # rspfile: True 1284s # /tmp/tmp1e34zder/tmpallyezuw.template: 1284s # Response file contains: --template /tmp/tmp1e34zder/tmpallyezuw.template 1284s # Running: ['/usr/bin/glib-mkenums', '@/tmp/tmp1e34zder/tmp25mlv3iq'] 1284s # Return code: 0 1284s # Output: 1284s # /* 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. */ 1284s # 1284s # 1284s # /* Generated data ends here */ 1284s # Error: 1284s ok 25 __main__.TestRspMkenums.test_enum_name 1284s # glib-mkenums: /usr/bin/glib-mkenums 1284s # tmpdir: /tmp/tmpkpddio63 1284s # rspfile: True 1284s # /tmp/tmpkpddio63/tmp5n8xliu3.h: 1284s # typedef enum _SomeEnumIdentifier { 1284s # ENUM_VALUE 1284s # } SomeEnumIdentifier; 1284s # 1284s # /tmp/tmpkpddio63/tmphpitl3jp.template: 1284s # /*** BEGIN file-header ***/ 1284s # file-header 1284s # /*** END file-header ***/ 1284s # 1284s # /*** BEGIN file-production ***/ 1284s # file-production 1284s # filename: @filename@ 1284s # basename: @basename@ 1284s # /*** END file-production ***/ 1284s # 1284s # /*** BEGIN enumeration-production ***/ 1284s # enumeration-production 1284s # EnumName: @EnumName@ 1284s # enum_name: @enum_name@ 1284s # ENUMNAME: @ENUMNAME@ 1284s # ENUMSHORT: @ENUMSHORT@ 1284s # ENUMPREFIX: @ENUMPREFIX@ 1284s # enumsince: @enumsince@ 1284s # type: @type@ 1284s # Type: @Type@ 1284s # TYPE: @TYPE@ 1284s # /*** END enumeration-production ***/ 1284s # 1284s # /*** BEGIN value-header ***/ 1284s # value-header 1284s # EnumName: @EnumName@ 1284s # enum_name: @enum_name@ 1284s # ENUMNAME: @ENUMNAME@ 1284s # ENUMSHORT: @ENUMSHORT@ 1284s # ENUMPREFIX: @ENUMPREFIX@ 1284s # enumsince: @enumsince@ 1284s # type: @type@ 1284s # Type: @Type@ 1284s # TYPE: @TYPE@ 1284s # /*** END value-header ***/ 1284s # 1284s # /*** BEGIN value-production ***/ 1284s # value-production 1284s # VALUENAME: @VALUENAME@ 1284s # valuenick: @valuenick@ 1284s # valuenum: @valuenum@ 1284s # type: @type@ 1284s # Type: @Type@ 1284s # TYPE: @TYPE@ 1284s # /*** END value-production ***/ 1284s # 1284s # /*** BEGIN value-tail ***/ 1284s # value-tail 1284s # EnumName: @EnumName@ 1284s # enum_name: @enum_name@ 1284s # ENUMNAME: @ENUMNAME@ 1284s # ENUMSHORT: @ENUMSHORT@ 1284s # ENUMPREFIX: @ENUMPREFIX@ 1284s # enumsince: @enumsince@ 1284s # type: @type@ 1284s # Type: @Type@ 1284s # TYPE: @TYPE@ 1284s # /*** END value-tail ***/ 1284s # 1284s # /*** BEGIN comment ***/ 1284s # comment 1284s # comment: @comment@ 1284s # /*** END comment ***/ 1284s # 1284s # /*** BEGIN file-tail ***/ 1284s # file-tail 1284s # /*** END file-tail ***/ 1284s # 1284s # Response file contains: --template /tmp/tmpkpddio63/tmphpitl3jp.template /tmp/tmpkpddio63/tmp5n8xliu3.h 1284s # Running: ['/usr/bin/glib-mkenums', '@/tmp/tmpkpddio63/tmpsthwgk65'] 1284s # Return code: 0 1284s # Output: 1284s # comment 1284s # 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. 1284s # 1284s # 1284s # file-header 1284s # file-production 1284s # filename: /tmp/tmpkpddio63/tmp5n8xliu3.h 1284s # basename: tmp5n8xliu3.h 1284s # enumeration-production 1284s # EnumName: SomeEnumIdentifier 1284s # enum_name: some_enum_identifier 1284s # ENUMNAME: SOME_ENUM_IDENTIFIER 1284s # ENUMSHORT: ENUM_IDENTIFIER 1284s # ENUMPREFIX: SOME 1284s # enumsince: 1284s # type: enum 1284s # Type: Enum 1284s # TYPE: ENUM 1284s # value-header 1284s # EnumName: SomeEnumIdentifier 1284s # enum_name: some_enum_identifier 1284s # ENUMNAME: SOME_ENUM_IDENTIFIER 1284s # ENUMSHORT: ENUM_IDENTIFIER 1284s # ENUMPREFIX: SOME 1284s # enumsince: 1284s # type: enum 1284s # Type: Enum 1284s # TYPE: ENUM 1284s # value-production 1284s # VALUENAME: ENUM_VALUE 1284s # valuenick: value 1284s # valuenum: 0 1284s # type: enum 1284s # Type: Enum 1284s # TYPE: ENUM 1284s # value-tail 1284s # EnumName: SomeEnumIdentifier 1284s # enum_name: some_enum_identifier 1284s # ENUMNAME: SOME_ENUM_IDENTIFIER 1284s # ENUMSHORT: ENUM_IDENTIFIER 1284s # ENUMPREFIX: SOME 1284s # enumsince: 1284s # type: enum 1284s # Type: Enum 1284s # TYPE: ENUM 1284s # file-tail 1284s # 1284s # comment 1284s # comment: Generated data ends here 1284s # Error: 1284s ok 26 __main__.TestRspMkenums.test_enum_private_public 1284s # glib-mkenums: /usr/bin/glib-mkenums 1284s # tmpdir: /tmp/tmpgefr9pw2 1284s # rspfile: True 1284s # /tmp/tmpgefr9pw2/tmpm7e6mi7l.h: 1284s # typedef enum { 1284s # ENUM_VALUE_PUBLIC1, 1284s # /*< private >*/ 1284s # ENUM_VALUE_PRIVATE, 1284s # } SomeEnumA 1284s # 1284s # /tmp/tmpgefr9pw2/tmpsxvaokol.template: 1284s # /*** BEGIN file-header ***/ 1284s # file-header 1284s # /*** END file-header ***/ 1284s # 1284s # /*** BEGIN file-production ***/ 1284s # file-production 1284s # filename: @filename@ 1284s # basename: @basename@ 1284s # /*** END file-production ***/ 1284s # 1284s # /*** BEGIN enumeration-production ***/ 1284s # enumeration-production 1284s # EnumName: @EnumName@ 1284s # enum_name: @enum_name@ 1284s # ENUMNAME: @ENUMNAME@ 1284s # ENUMSHORT: @ENUMSHORT@ 1284s # ENUMPREFIX: @ENUMPREFIX@ 1284s # enumsince: @enumsince@ 1284s # type: @type@ 1284s # Type: @Type@ 1284s # TYPE: @TYPE@ 1284s # /*** END enumeration-production ***/ 1284s # 1284s # /*** BEGIN value-header ***/ 1284s # value-header 1284s # EnumName: @EnumName@ 1284s # enum_name: @enum_name@ 1284s # ENUMNAME: @ENUMNAME@ 1284s # ENUMSHORT: @ENUMSHORT@ 1284s # ENUMPREFIX: @ENUMPREFIX@ 1284s # enumsince: @enumsince@ 1284s # type: @type@ 1284s # Type: @Type@ 1284s # TYPE: @TYPE@ 1284s # /*** END value-header ***/ 1284s # 1284s # /*** BEGIN value-production ***/ 1284s # value-production 1284s # VALUENAME: @VALUENAME@ 1284s # valuenick: @valuenick@ 1284s # valuenum: @valuenum@ 1284s # type: @type@ 1284s # Type: @Type@ 1284s # TYPE: @TYPE@ 1284s # /*** END value-production ***/ 1284s # 1284s # /*** BEGIN value-tail ***/ 1284s # value-tail 1284s # EnumName: @EnumName@ 1284s # enum_name: @enum_name@ 1284s # ENUMNAME: @ENUMNAME@ 1284s # ENUMSHORT: @ENUMSHORT@ 1284s # ENUMPREFIX: @ENUMPREFIX@ 1284s # enumsince: @enumsince@ 1284s # type: @type@ 1284s # Type: @Type@ 1284s # TYPE: @TYPE@ 1284s # /*** END value-tail ***/ 1284s # 1284s # /*** BEGIN comment ***/ 1284s # comment 1284s # comment: @comment@ 1284s # /*** END comment ***/ 1284s # 1284s # /*** BEGIN file-tail ***/ 1284s # file-tail 1284s # /*** END file-tail ***/ 1284s # 1284s # Response file contains: --template /tmp/tmpgefr9pw2/tmpsxvaokol.template /tmp/tmpgefr9pw2/tmpm7e6mi7l.h 1284s # Running: ['/usr/bin/glib-mkenums', '@/tmp/tmpgefr9pw2/tmp0piqlxym'] 1284s # Return code: 0 1284s # Output: 1284s # comment 1284s # 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. 1284s # 1284s # 1284s # file-header 1284s # file-production 1284s # filename: /tmp/tmpgefr9pw2/tmpm7e6mi7l.h 1284s # basename: tmpm7e6mi7l.h 1284s # enumeration-production 1284s # EnumName: SomeEnumA 1284s # enum_name: some_enum_a 1284s # ENUMNAME: SOME_ENUM_A 1284s # ENUMSHORT: ENUM_A 1284s # ENUMPREFIX: SOME 1284s # enumsince: 1284s # type: enum 1284s # Type: Enum 1284s # TYPE: ENUM 1284s # value-header 1284s # EnumName: SomeEnumA 1284s # enum_name: some_enum_a 1284s # ENUMNAME: SOME_ENUM_A 1284s # ENUMSHORT: ENUM_A 1284s # ENUMPREFIX: SOME 1284s # enumsince: 1284s # type: enum 1284s # Type: Enum 1284s # TYPE: ENUM 1284s # value-production 1284s # VALUENAME: ENUM_VALUE_PUBLIC1 1284s # valuenick: public1 1284s # valuenum: 0 1284s # type: enum 1284s # Type: Enum 1284s # TYPE: ENUM 1284s # value-tail 1284s # EnumName: SomeEnumA 1284s # enum_name: some_enum_a 1284s # ENUMNAME: SOME_ENUM_A 1284s # ENUMSHORT: ENUM_A 1284s # ENUMPREFIX: SOME 1284s # enumsince: 1284s # type: enum 1284s # Type: Enum 1284s # TYPE: ENUM 1284s # file-tail 1284s # 1284s # comment 1284s # comment: Generated data ends here 1284s # Error: 1284s # 1284s # /tmp/tmpgefr9pw2/tmphs5j9rn9.h: 1284s # typedef enum { 1284s # /*< private >*/ 1284s # ENUM_VALUE_PRIVATE, 1284s # /*< public >*/ 1284s # ENUM_VALUE_PUBLIC2, 1284s # } SomeEnumB; 1284s # 1284s # /tmp/tmpgefr9pw2/tmp61ic15gk.template: 1284s # /*** BEGIN file-header ***/ 1284s # file-header 1284s # /*** END file-header ***/ 1284s # 1284s # /*** BEGIN file-production ***/ 1284s # file-production 1284s # filename: @filename@ 1284s # basename: @basename@ 1284s # /*** END file-production ***/ 1284s # 1284s # /*** BEGIN enumeration-production ***/ 1284s # enumeration-production 1284s # EnumName: @EnumName@ 1284s # enum_name: @enum_name@ 1284s # ENUMNAME: @ENUMNAME@ 1284s # ENUMSHORT: @ENUMSHORT@ 1284s # ENUMPREFIX: @ENUMPREFIX@ 1284s # enumsince: @enumsince@ 1284s # type: @type@ 1284s # Type: @Type@ 1284s # TYPE: @TYPE@ 1284s # /*** END enumeration-production ***/ 1284s # 1284s # /*** BEGIN value-header ***/ 1284s # value-header 1284s # EnumName: @EnumName@ 1284s # enum_name: @enum_name@ 1284s # ENUMNAME: @ENUMNAME@ 1284s # ENUMSHORT: @ENUMSHORT@ 1284s # ENUMPREFIX: @ENUMPREFIX@ 1284s # enumsince: @enumsince@ 1284s # type: @type@ 1284s # Type: @Type@ 1284s # TYPE: @TYPE@ 1284s # /*** END value-header ***/ 1284s # 1284s # /*** BEGIN value-production ***/ 1284s # value-production 1284s # VALUENAME: @VALUENAME@ 1284s # valuenick: @valuenick@ 1284s # valuenum: @valuenum@ 1284s # type: @type@ 1284s # Type: @Type@ 1284s # TYPE: @TYPE@ 1284s # /*** END value-production ***/ 1284s # 1284s # /*** BEGIN value-tail ***/ 1284s # value-tail 1284s # EnumName: @EnumName@ 1284s # enum_name: @enum_name@ 1284s # ENUMNAME: @ENUMNAME@ 1284s # ENUMSHORT: @ENUMSHORT@ 1284s # ENUMPREFIX: @ENUMPREFIX@ 1284s # enumsince: @enumsince@ 1284s # type: @type@ 1284s # Type: @Type@ 1284s # TYPE: @TYPE@ 1284s # /*** END value-tail ***/ 1284s # 1284s # /*** BEGIN comment ***/ 1284s # comment 1284s # comment: @comment@ 1284s # /*** END comment ***/ 1284s # 1284s # /*** BEGIN file-tail ***/ 1284s # file-tail 1284s # /*** END file-tail ***/ 1284s # 1284s # Response file contains: --template /tmp/tmpgefr9pw2/tmp61ic15gk.template /tmp/tmpgefr9pw2/tmphs5j9rn9.h 1284s # Running: ['/usr/bin/glib-mkenums', '@/tmp/tmpgefr9pw2/tmpjpsuuzd2'] 1284s # Return code: 0 1284s # Output: 1284s # comment 1284s # 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. 1284s # 1284s # 1284s # file-header 1284s # file-production 1284s # filename: /tmp/tmpgefr9pw2/tmphs5j9rn9.h 1284s # basename: tmphs5j9rn9.h 1284s # enumeration-production 1284s # EnumName: SomeEnumB 1284s # enum_name: some_enum_b 1284s # ENUMNAME: SOME_ENUM_B 1284s # ENUMSHORT: ENUM_B 1284s # ENUMPREFIX: SOME 1284s # enumsince: 1284s # type: enum 1284s # Type: Enum 1284s # TYPE: ENUM 1284s # value-header 1284s # EnumName: SomeEnumB 1284s # enum_name: some_enum_b 1284s # ENUMNAME: SOME_ENUM_B 1284s # ENUMSHORT: ENUM_B 1284s # ENUMPREFIX: SOME 1284s # enumsince: 1284s # type: enum 1284s # Type: Enum 1284s # TYPE: ENUM 1284s # value-production 1284s # VALUENAME: ENUM_VALUE_PUBLIC2 1284s # valuenick: public2 1284s # valuenum: 1 1284s # type: enum 1284s # Type: Enum 1284s # TYPE: ENUM 1284s # value-tail 1284s # EnumName: SomeEnumB 1284s # enum_name: some_enum_b 1284s # ENUMNAME: SOME_ENUM_B 1284s # ENUMSHORT: ENUM_B 1284s # ENUMPREFIX: SOME 1284s # enumsince: 1284s # type: enum 1284s # Type: Enum 1284s # TYPE: ENUM 1284s # file-tail 1284s # 1284s # comment 1284s # comment: Generated data ends here 1284s # Error: 1284s ok 27 __main__.TestRspMkenums.test_enum_symbolic_expression 1284s # glib-mkenums: /usr/bin/glib-mkenums 1284s # tmpdir: /tmp/tmpbupo6w48 1284s # rspfile: True 1284s # /tmp/tmpbupo6w48/tmpylmwug40.h: 1284s # typedef enum { 1284s # /*< private >*/ 1284s # ENUM_VALUE_PRIVATE = 5, 1284s # /*< public >*/ 1284s # ENUM_VALUE_PUBLIC = ENUM_VALUE_PRIVATE + 2, 1284s # } TestSymbolicEnum; 1284s # 1284s # /tmp/tmpbupo6w48/tmpqha99l15.template: 1284s # /*** BEGIN file-header ***/ 1284s # file-header 1284s # /*** END file-header ***/ 1284s # 1284s # /*** BEGIN file-production ***/ 1284s # file-production 1284s # filename: @filename@ 1284s # basename: @basename@ 1284s # /*** END file-production ***/ 1284s # 1284s # /*** BEGIN enumeration-production ***/ 1284s # enumeration-production 1284s # EnumName: @EnumName@ 1284s # enum_name: @enum_name@ 1284s # ENUMNAME: @ENUMNAME@ 1284s # ENUMSHORT: @ENUMSHORT@ 1284s # ENUMPREFIX: @ENUMPREFIX@ 1284s # enumsince: @enumsince@ 1284s # type: @type@ 1284s # Type: @Type@ 1284s # TYPE: @TYPE@ 1284s # /*** END enumeration-production ***/ 1284s # 1284s # /*** BEGIN value-header ***/ 1284s # value-header 1284s # EnumName: @EnumName@ 1284s # enum_name: @enum_name@ 1284s # ENUMNAME: @ENUMNAME@ 1284s # ENUMSHORT: @ENUMSHORT@ 1284s # ENUMPREFIX: @ENUMPREFIX@ 1284s # enumsince: @enumsince@ 1284s # type: @type@ 1284s # Type: @Type@ 1284s # TYPE: @TYPE@ 1284s # /*** END value-header ***/ 1284s # 1284s # /*** BEGIN value-production ***/ 1284s # value-production 1284s # VALUENAME: @VALUENAME@ 1284s # valuenick: @valuenick@ 1284s # valuenum: @valuenum@ 1284s # type: @type@ 1284s # Type: @Type@ 1284s # TYPE: @TYPE@ 1284s # /*** END value-production ***/ 1284s # 1284s # /*** BEGIN value-tail ***/ 1284s # value-tail 1284s # EnumName: @EnumName@ 1284s # enum_name: @enum_name@ 1284s # ENUMNAME: @ENUMNAME@ 1284s # ENUMSHORT: @ENUMSHORT@ 1284s # ENUMPREFIX: @ENUMPREFIX@ 1284s # enumsince: @enumsince@ 1284s # type: @type@ 1284s # Type: @Type@ 1284s # TYPE: @TYPE@ 1284s # /*** END value-tail ***/ 1284s # 1284s # /*** BEGIN comment ***/ 1284s # comment 1284s # comment: @comment@ 1284s # /*** END comment ***/ 1284s # 1284s # /*** BEGIN file-tail ***/ 1284s # file-tail 1284s # /*** END file-tail ***/ 1284s # 1284s # Response file contains: --template /tmp/tmpbupo6w48/tmpqha99l15.template /tmp/tmpbupo6w48/tmpylmwug40.h 1284s # Running: ['/usr/bin/glib-mkenums', '@/tmp/tmpbupo6w48/tmpx34shl3d'] 1284s # Return code: 0 1284s # Output: 1284s # comment 1284s # 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. 1284s # 1284s # 1284s # file-header 1284s # file-production 1284s # filename: /tmp/tmpbupo6w48/tmpylmwug40.h 1284s # basename: tmpylmwug40.h 1284s # enumeration-production 1284s # EnumName: TestSymbolicEnum 1284s # enum_name: test_symbolic_enum 1284s # ENUMNAME: TEST_SYMBOLIC_ENUM 1284s # ENUMSHORT: SYMBOLIC_ENUM 1284s # ENUMPREFIX: TEST 1284s # enumsince: 1284s # type: enum 1284s # Type: Enum 1284s # TYPE: ENUM 1284s # value-header 1284s # EnumName: TestSymbolicEnum 1284s # enum_name: test_symbolic_enum 1284s # ENUMNAME: TEST_SYMBOLIC_ENUM 1284s # ENUMSHORT: SYMBOLIC_ENUM 1284s # ENUMPREFIX: TEST 1284s # enumsince: 1284s # type: enum 1284s # Type: Enum 1284s # TYPE: ENUM 1284s # value-production 1284s # VALUENAME: ENUM_VALUE_PUBLIC 1284s # valuenick: public 1284s # valuenum: 7 1284s # type: enum 1284s # Type: Enum 1284s # TYPE: ENUM 1284s # value-tail 1284s # EnumName: TestSymbolicEnum 1284s # enum_name: test_symbolic_enum 1284s # ENUMNAME: TEST_SYMBOLIC_ENUM 1284s # ENUMSHORT: SYMBOLIC_ENUM 1284s # ENUMPREFIX: TEST 1284s # enumsince: 1284s # type: enum 1284s # Type: Enum 1284s # TYPE: ENUM 1284s # file-tail 1284s # 1284s # comment 1284s # comment: Generated data ends here 1284s # Error: 1284s ok 28 __main__.TestRspMkenums.test_filename_basename_in_fhead_ftail 1284s # glib-mkenums: /usr/bin/glib-mkenums 1284s # tmpdir: /tmp/tmpacqju8ms 1284s # rspfile: True 1284s # /tmp/tmpacqju8ms/tmpk12gijwe.template: 1284s # /*** BEGIN file-header ***/ 1284s # file-header 1284s # filename: @filename@ 1284s # basename: @basename@ 1284s # /*** END file-header ***/ 1284s # 1284s # /*** BEGIN comment ***/ 1284s # comment 1284s # comment: @comment@ 1284s # /*** END comment ***/ 1284s # 1284s # /*** BEGIN file-tail ***/ 1284s # file-tail 1284s # filename: @filename@ 1284s # basename: @basename@ 1284s # /*** END file-tail ***/ 1284s # Response file contains: --template /tmp/tmpacqju8ms/tmpk12gijwe.template 1284s # Running: ['/usr/bin/glib-mkenums', '@/tmp/tmpacqju8ms/tmp7rmlbyht'] 1284s # Return code: 0 1284s # Output: 1284s # comment 1284s # 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. 1284s # 1284s # 1284s # file-header 1284s # filename: @filename@ 1284s # basename: @basename@ 1284s # file-tail 1284s # filename: @filename@ 1284s # basename: @basename@ 1284s # 1284s # comment 1284s # comment: Generated data ends here 1284s # Error: 1284s # WARNING: @filename@ used in file-header section. 1284s # WARNING: @basename@ used in file-header section. 1284s # WARNING: @filename@ used in file-tail section. 1284s # WARNING: @basename@ used in file-tail section. 1284s ok 29 __main__.TestRspMkenums.test_help 1284s # glib-mkenums: /usr/bin/glib-mkenums 1284s # tmpdir: /tmp/tmpfc1940t1 1284s # rspfile: True 1284s # Response file contains: --help 1284s # Running: ['/usr/bin/glib-mkenums', '@/tmp/tmpfc1940t1/tmpiljer5kf'] 1284s # Return code: 0 1284s # Output: 1284s # usage: glib-mkenums [-h] [--identifier-prefix IDPREFIX] 1284s # [--symbol-prefix SYMPREFIX] [--fhead FHEAD] 1284s # [--ftail FTAIL] [--fprod FPROD] [--eprod EPROD] 1284s # [--vhead VHEAD] [--vprod VPROD] [--vtail VTAIL] 1284s # [--comments COMMENT_TMPL] [--template TEMPLATE] 1284s # [--output OUTPUT] [--version] 1284s # [args ...] 1284s # 1284s # positional arguments: 1284s # args One or more input files, or a single argument 1284s # @rspfile_path pointing to a file that contains the 1284s # actual arguments 1284s # 1284s # options: 1284s # -h, --help show this help message and exit 1284s # --identifier-prefix IDPREFIX 1284s # Identifier prefix 1284s # --symbol-prefix SYMPREFIX 1284s # Symbol prefix 1284s # --fhead FHEAD Output file header 1284s # --ftail FTAIL Output file footer 1284s # --fprod FPROD Put out TEXT every time a new input file is being 1284s # processed. 1284s # --eprod EPROD Per enum text, produced prior to value iterations 1284s # --vhead VHEAD Value header, produced before iterating over enum 1284s # values 1284s # --vprod VPROD Value text, produced for each enum value. 1284s # --vtail VTAIL Value tail, produced after iterating over enum values 1284s # --comments COMMENT_TMPL 1284s # Comment structure 1284s # --template TEMPLATE Template file 1284s # --output OUTPUT 1284s # --version, -v Print version information 1284s # 1284s # Production text substitutions: 1284s # @EnumName@ PrefixTheXEnum 1284s # @enum_name@ prefix_the_xenum 1284s # @ENUMNAME@ PREFIX_THE_XENUM 1284s # @ENUMSHORT@ THE_XENUM 1284s # @ENUMPREFIX@ PREFIX 1284s # @enumsince@ the user-provided since value given 1284s # @VALUENAME@ PREFIX_THE_XVALUE 1284s # @valuenick@ the-xvalue 1284s # @valuenum@ the integer value (limited support, Since: 2.26) 1284s # @type@ either enum or flags 1284s # @Type@ either Enum or Flags 1284s # @TYPE@ either ENUM or FLAGS 1284s # @filename@ name of current input file 1284s # @basename@ base name of the current input file (Since: 2.22) 1284s # Error: 1284s ok 30 __main__.TestRspMkenums.test_no_args 1284s # glib-mkenums: /usr/bin/glib-mkenums 1284s # tmpdir: /tmp/tmp1znszfql 1284s # rspfile: True 1284s # Response file contains: 1284s # Running: ['/usr/bin/glib-mkenums', '@/tmp/tmp1znszfql/tmpxa783kms'] 1284s # Return code: 0 1284s # Output: 1284s # /* 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. */ 1284s # 1284s # 1284s # /* Generated data ends here */ 1284s # Error: 1284s ok 31 __main__.TestRspMkenums.test_no_headers 1284s # glib-mkenums: /usr/bin/glib-mkenums 1284s # tmpdir: /tmp/tmphabk2kf3 1284s # rspfile: True 1284s # /tmp/tmphabk2kf3/tmppz1l_q59.template: 1284s # /*** BEGIN file-header ***/ 1284s # file-header 1284s # /*** END file-header ***/ 1284s # 1284s # /*** BEGIN file-production ***/ 1284s # file-production 1284s # filename: @filename@ 1284s # basename: @basename@ 1284s # /*** END file-production ***/ 1284s # 1284s # /*** BEGIN enumeration-production ***/ 1284s # enumeration-production 1284s # EnumName: @EnumName@ 1284s # enum_name: @enum_name@ 1284s # ENUMNAME: @ENUMNAME@ 1284s # ENUMSHORT: @ENUMSHORT@ 1284s # ENUMPREFIX: @ENUMPREFIX@ 1284s # enumsince: @enumsince@ 1284s # type: @type@ 1284s # Type: @Type@ 1284s # TYPE: @TYPE@ 1284s # /*** END enumeration-production ***/ 1284s # 1284s # /*** BEGIN value-header ***/ 1284s # value-header 1284s # EnumName: @EnumName@ 1284s # enum_name: @enum_name@ 1284s # ENUMNAME: @ENUMNAME@ 1284s # ENUMSHORT: @ENUMSHORT@ 1284s # ENUMPREFIX: @ENUMPREFIX@ 1284s # enumsince: @enumsince@ 1284s # type: @type@ 1284s # Type: @Type@ 1284s # TYPE: @TYPE@ 1284s # /*** END value-header ***/ 1284s # 1284s # /*** BEGIN value-production ***/ 1284s # value-production 1284s # VALUENAME: @VALUENAME@ 1284s # valuenick: @valuenick@ 1284s # valuenum: @valuenum@ 1284s # type: @type@ 1284s # Type: @Type@ 1284s # TYPE: @TYPE@ 1284s # /*** END value-production ***/ 1284s # 1284s # /*** BEGIN value-tail ***/ 1284s # value-tail 1284s # EnumName: @EnumName@ 1284s # enum_name: @enum_name@ 1284s # ENUMNAME: @ENUMNAME@ 1284s # ENUMSHORT: @ENUMSHORT@ 1284s # ENUMPREFIX: @ENUMPREFIX@ 1284s # enumsince: @enumsince@ 1284s # type: @type@ 1284s # Type: @Type@ 1284s # TYPE: @TYPE@ 1284s # /*** END value-tail ***/ 1284s # 1284s # /*** BEGIN comment ***/ 1284s # comment 1284s # comment: @comment@ 1284s # /*** END comment ***/ 1284s # 1284s # /*** BEGIN file-tail ***/ 1284s # file-tail 1284s # /*** END file-tail ***/ 1284s # 1284s # Response file contains: --template /tmp/tmphabk2kf3/tmppz1l_q59.template 1284s # Running: ['/usr/bin/glib-mkenums', '@/tmp/tmphabk2kf3/tmp2yk8oy9a'] 1284s # Return code: 0 1284s # Output: 1284s # comment 1284s # 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. 1284s # 1284s # 1284s # file-header 1284s # file-tail 1284s # 1284s # comment 1284s # comment: Generated data ends here 1284s # Error: 1284s ok 32 __main__.TestRspMkenums.test_no_nick 1284s # glib-mkenums: /usr/bin/glib-mkenums 1284s # tmpdir: /tmp/tmpkwhe3lrz 1284s # rspfile: True 1284s # /tmp/tmpkwhe3lrz/tmpjgjfc5at.h: 1284s # typedef enum { 1284s # GEGL_SAMPLER_NEAREST = 0, /*< desc="nearest" >*/ 1284s # } GeglSamplerType; 1284s # 1284s # /tmp/tmpkwhe3lrz/tmpuy9kk9aa.template: 1284s # /*** BEGIN file-header ***/ 1284s # file-header 1284s # /*** END file-header ***/ 1284s # 1284s # /*** BEGIN file-production ***/ 1284s # file-production 1284s # filename: @filename@ 1284s # basename: @basename@ 1284s # /*** END file-production ***/ 1284s # 1284s # /*** BEGIN enumeration-production ***/ 1284s # enumeration-production 1284s # EnumName: @EnumName@ 1284s # enum_name: @enum_name@ 1284s # ENUMNAME: @ENUMNAME@ 1284s # ENUMSHORT: @ENUMSHORT@ 1284s # ENUMPREFIX: @ENUMPREFIX@ 1284s # enumsince: @enumsince@ 1284s # type: @type@ 1284s # Type: @Type@ 1284s # TYPE: @TYPE@ 1284s # /*** END enumeration-production ***/ 1284s # 1284s # /*** BEGIN value-header ***/ 1284s # value-header 1284s # EnumName: @EnumName@ 1284s # enum_name: @enum_name@ 1284s # ENUMNAME: @ENUMNAME@ 1284s # ENUMSHORT: @ENUMSHORT@ 1284s # ENUMPREFIX: @ENUMPREFIX@ 1284s # enumsince: @enumsince@ 1284s # type: @type@ 1284s # Type: @Type@ 1284s # TYPE: @TYPE@ 1284s # /*** END value-header ***/ 1284s # 1284s # /*** BEGIN value-production ***/ 1284s # value-production 1284s # VALUENAME: @VALUENAME@ 1284s # valuenick: @valuenick@ 1284s # valuenum: @valuenum@ 1284s # type: @type@ 1284s # Type: @Type@ 1284s # TYPE: @TYPE@ 1284s # /*** END value-production ***/ 1284s # 1284s # /*** BEGIN value-tail ***/ 1284s # value-tail 1284s # EnumName: @EnumName@ 1284s # enum_name: @enum_name@ 1284s # ENUMNAME: @ENUMNAME@ 1284s # ENUMSHORT: @ENUMSHORT@ 1284s # ENUMPREFIX: @ENUMPREFIX@ 1284s # enumsince: @enumsince@ 1284s # type: @type@ 1284s # Type: @Type@ 1284s # TYPE: @TYPE@ 1284s # /*** END value-tail ***/ 1284s # 1284s # /*** BEGIN comment ***/ 1284s # comment 1284s # comment: @comment@ 1284s # /*** END comment ***/ 1284s # 1284s # /*** BEGIN file-tail ***/ 1284s # file-tail 1284s # /*** END file-tail ***/ 1284s # 1284s # Response file contains: --template /tmp/tmpkwhe3lrz/tmpuy9kk9aa.template /tmp/tmpkwhe3lrz/tmpjgjfc5at.h 1284s # Running: ['/usr/bin/glib-mkenums', '@/tmp/tmpkwhe3lrz/tmp7rbzidsi'] 1284s # Return code: 0 1284s # Output: 1284s # comment 1284s # 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. 1284s # 1284s # 1284s # file-header 1284s # file-production 1284s # filename: /tmp/tmpkwhe3lrz/tmpjgjfc5at.h 1284s # basename: tmpjgjfc5at.h 1284s # enumeration-production 1284s # EnumName: GeglSamplerType 1284s # enum_name: gegl_sampler_type 1284s # ENUMNAME: GEGL_SAMPLER_TYPE 1284s # ENUMSHORT: SAMPLER_TYPE 1284s # ENUMPREFIX: GEGL 1284s # enumsince: 1284s # type: enum 1284s # Type: Enum 1284s # TYPE: ENUM 1284s # value-header 1284s # EnumName: GeglSamplerType 1284s # enum_name: gegl_sampler_type 1284s # ENUMNAME: GEGL_SAMPLER_TYPE 1284s # ENUMSHORT: SAMPLER_TYPE 1284s # ENUMPREFIX: GEGL 1284s # enumsince: 1284s # type: enum 1284s # Type: Enum 1284s # TYPE: ENUM 1284s # value-production 1284s # VALUENAME: GEGL_SAMPLER_NEAREST 1284s # valuenick: nearest 1284s # valuenum: 0 1284s # type: enum 1284s # Type: Enum 1284s # TYPE: ENUM 1284s # value-tail 1284s # EnumName: GeglSamplerType 1284s # enum_name: gegl_sampler_type 1284s # ENUMNAME: GEGL_SAMPLER_TYPE 1284s # ENUMSHORT: SAMPLER_TYPE 1284s # ENUMPREFIX: GEGL 1284s # enumsince: 1284s # type: enum 1284s # Type: Enum 1284s # TYPE: ENUM 1284s # file-tail 1284s # 1284s # comment 1284s # comment: Generated data ends here 1284s # Error: 1284s ok 33 __main__.TestRspMkenums.test_non_utf8_encoding 1284s # glib-mkenums: /usr/bin/glib-mkenums 1284s # tmpdir: /tmp/tmp8ruus1qh 1284s # rspfile: True 1284s # /tmp/tmp8ruus1qh/tmpnpd2x5zn.h: 1284s # /* Copyright © La Peña */ 1284s # typedef enum { 1284s # ENUM_VALUE 1284s # } SomeEnumIdentifier; 1284s # 1284s # /tmp/tmp8ruus1qh/tmp3tw5c36l.template: 1284s # /*** BEGIN file-header ***/ 1284s # file-header 1284s # /*** END file-header ***/ 1284s # 1284s # /*** BEGIN file-production ***/ 1284s # file-production 1284s # filename: @filename@ 1284s # basename: @basename@ 1284s # /*** END file-production ***/ 1284s # 1284s # /*** BEGIN enumeration-production ***/ 1284s # enumeration-production 1284s # EnumName: @EnumName@ 1284s # enum_name: @enum_name@ 1284s # ENUMNAME: @ENUMNAME@ 1284s # ENUMSHORT: @ENUMSHORT@ 1284s # ENUMPREFIX: @ENUMPREFIX@ 1284s # enumsince: @enumsince@ 1284s # type: @type@ 1284s # Type: @Type@ 1284s # TYPE: @TYPE@ 1284s # /*** END enumeration-production ***/ 1284s # 1284s # /*** BEGIN value-header ***/ 1284s # value-header 1284s # EnumName: @EnumName@ 1284s # enum_name: @enum_name@ 1284s # ENUMNAME: @ENUMNAME@ 1284s # ENUMSHORT: @ENUMSHORT@ 1284s # ENUMPREFIX: @ENUMPREFIX@ 1284s # enumsince: @enumsince@ 1284s # type: @type@ 1284s # Type: @Type@ 1284s # TYPE: @TYPE@ 1284s # /*** END value-header ***/ 1284s # 1284s # /*** BEGIN value-production ***/ 1284s # value-production 1284s # VALUENAME: @VALUENAME@ 1284s # valuenick: @valuenick@ 1284s # valuenum: @valuenum@ 1284s # type: @type@ 1284s # Type: @Type@ 1284s # TYPE: @TYPE@ 1284s # /*** END value-production ***/ 1284s # 1284s # /*** BEGIN value-tail ***/ 1284s # value-tail 1284s # EnumName: @EnumName@ 1284s # enum_name: @enum_name@ 1284s # ENUMNAME: @ENUMNAME@ 1284s # ENUMSHORT: @ENUMSHORT@ 1284s # ENUMPREFIX: @ENUMPREFIX@ 1284s # enumsince: @enumsince@ 1284s # type: @type@ 1284s # Type: @Type@ 1284s # TYPE: @TYPE@ 1284s # /*** END value-tail ***/ 1284s # 1284s # /*** BEGIN comment ***/ 1284s # comment 1284s # comment: @comment@ 1284s # /*** END comment ***/ 1284s # 1284s # /*** BEGIN file-tail ***/ 1284s # file-tail 1284s # /*** END file-tail ***/ 1284s # 1284s # Response file contains: --template /tmp/tmp8ruus1qh/tmp3tw5c36l.template /tmp/tmp8ruus1qh/tmpnpd2x5zn.h 1284s # Running: ['/usr/bin/glib-mkenums', '@/tmp/tmp8ruus1qh/tmpfhz99_az'] 1284s # Return code: 0 1284s # Output: 1284s # comment 1284s # 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. 1284s # 1284s # 1284s # file-header 1284s # file-production 1284s # filename: /tmp/tmp8ruus1qh/tmpnpd2x5zn.h 1284s # basename: tmpnpd2x5zn.h 1284s # enumeration-production 1284s # EnumName: SomeEnumIdentifier 1284s # enum_name: some_enum_identifier 1284s # ENUMNAME: SOME_ENUM_IDENTIFIER 1284s # ENUMSHORT: ENUM_IDENTIFIER 1284s # ENUMPREFIX: SOME 1284s # enumsince: 1284s # type: enum 1284s # Type: Enum 1284s # TYPE: ENUM 1284s # value-header 1284s # EnumName: SomeEnumIdentifier 1284s # enum_name: some_enum_identifier 1284s # ENUMNAME: SOME_ENUM_IDENTIFIER 1284s # ENUMSHORT: ENUM_IDENTIFIER 1284s # ENUMPREFIX: SOME 1284s # enumsince: 1284s # type: enum 1284s # Type: Enum 1284s # TYPE: ENUM 1284s # value-production 1284s # VALUENAME: ENUM_VALUE 1284s # valuenick: value 1284s # valuenum: 0 1284s # type: enum 1284s # Type: Enum 1284s # TYPE: ENUM 1284s # value-tail 1284s # EnumName: SomeEnumIdentifier 1284s # enum_name: some_enum_identifier 1284s # ENUMNAME: SOME_ENUM_IDENTIFIER 1284s # ENUMSHORT: ENUM_IDENTIFIER 1284s # ENUMPREFIX: SOME 1284s # enumsince: 1284s # type: enum 1284s # Type: Enum 1284s # TYPE: ENUM 1284s # file-tail 1284s # 1284s # comment 1284s # comment: Generated data ends here 1284s # Error: 1284s # WARNING: UnicodeWarning: invalid start byte at 22 (b'yright \xa9 La Pe\xf1') 1284s # WARNING: UnicodeWarning: invalid continuation byte at 29 (b'\xa9 La Pe\xf1a */\n ') 1284s ok 34 __main__.TestRspMkenums.test_reproducible 1284s # glib-mkenums: /usr/bin/glib-mkenums 1284s # tmpdir: /tmp/tmpjym1lc49 1284s # rspfile: True 1284s # /tmp/tmpjym1lc49/tmpak4a0llt.template: template 1284s # Response file contains: --template /tmp/tmpjym1lc49/tmpak4a0llt.template /tmp/tmpjym1lc49/tmpihlls1gc1.h /tmp/tmpjym1lc49/tmptx46yocd2.h 1284s # Running: ['/usr/bin/glib-mkenums', '@/tmp/tmpjym1lc49/tmptqkchjg5'] 1284s # Return code: 0 1284s # Output: 1284s # /* 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. */ 1284s # 1284s # 1284s # /* Generated data ends here */ 1284s # Error: 1284s # 1284s # /tmp/tmpjym1lc49/tmpjbdiwasf.template: template 1284s # Response file contains: --template /tmp/tmpjym1lc49/tmpjbdiwasf.template /tmp/tmpjym1lc49/tmptx46yocd2.h /tmp/tmpjym1lc49/tmpihlls1gc1.h 1284s # Running: ['/usr/bin/glib-mkenums', '@/tmp/tmpjym1lc49/tmpxw_l8lop'] 1284s # Return code: 0 1284s # Output: 1284s # /* 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. */ 1284s # 1284s # 1284s # /* Generated data ends here */ 1284s # Error: 1285s ok 35 __main__.TestRspMkenums.test_since 1285s # glib-mkenums: /usr/bin/glib-mkenums 1285s # tmpdir: /tmp/tmpmisiqni8 1285s # rspfile: True 1285s # /tmp/tmpmisiqni8/tmpbts4o8ea.h: 1285s # typedef enum { /*< since=1.0 >*/ 1285s # QMI_WMS_MESSAGE_PROTOCOL_CDMA = 0, 1285s # } QmiWmsMessageProtocol; 1285s # 1285s # /tmp/tmpmisiqni8/tmpfnj2lezo.template: 1285s # /*** BEGIN file-header ***/ 1285s # file-header 1285s # /*** END file-header ***/ 1285s # 1285s # /*** BEGIN file-production ***/ 1285s # file-production 1285s # filename: @filename@ 1285s # basename: @basename@ 1285s # /*** END file-production ***/ 1285s # 1285s # /*** BEGIN enumeration-production ***/ 1285s # enumeration-production 1285s # EnumName: @EnumName@ 1285s # enum_name: @enum_name@ 1285s # ENUMNAME: @ENUMNAME@ 1285s # ENUMSHORT: @ENUMSHORT@ 1285s # ENUMPREFIX: @ENUMPREFIX@ 1285s # enumsince: @enumsince@ 1285s # type: @type@ 1285s # Type: @Type@ 1285s # TYPE: @TYPE@ 1285s # /*** END enumeration-production ***/ 1285s # 1285s # /*** BEGIN value-header ***/ 1285s # value-header 1285s # EnumName: @EnumName@ 1285s # enum_name: @enum_name@ 1285s # ENUMNAME: @ENUMNAME@ 1285s # ENUMSHORT: @ENUMSHORT@ 1285s # ENUMPREFIX: @ENUMPREFIX@ 1285s # enumsince: @enumsince@ 1285s # type: @type@ 1285s # Type: @Type@ 1285s # TYPE: @TYPE@ 1285s # /*** END value-header ***/ 1285s # 1285s # /*** BEGIN value-production ***/ 1285s # value-production 1285s # VALUENAME: @VALUENAME@ 1285s # valuenick: @valuenick@ 1285s # valuenum: @valuenum@ 1285s # type: @type@ 1285s # Type: @Type@ 1285s # TYPE: @TYPE@ 1285s # /*** END value-production ***/ 1285s # 1285s # /*** BEGIN value-tail ***/ 1285s # value-tail 1285s # EnumName: @EnumName@ 1285s # enum_name: @enum_name@ 1285s # ENUMNAME: @ENUMNAME@ 1285s # ENUMSHORT: @ENUMSHORT@ 1285s # ENUMPREFIX: @ENUMPREFIX@ 1285s # enumsince: @enumsince@ 1285s # type: @type@ 1285s # Type: @Type@ 1285s # TYPE: @TYPE@ 1285s # /*** END value-tail ***/ 1285s # 1285s # /*** BEGIN comment ***/ 1285s # comment 1285s # comment: @comment@ 1285s # /*** END comment ***/ 1285s # 1285s # /*** BEGIN file-tail ***/ 1285s # file-tail 1285s # /*** END file-tail ***/ 1285s # 1285s # Response file contains: --template /tmp/tmpmisiqni8/tmpfnj2lezo.template /tmp/tmpmisiqni8/tmpbts4o8ea.h 1285s # Running: ['/usr/bin/glib-mkenums', '@/tmp/tmpmisiqni8/tmpaftr7a5o'] 1285s # Return code: 0 1285s # Output: 1285s # comment 1285s # 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. 1285s # 1285s # 1285s # file-header 1285s # file-production 1285s # filename: /tmp/tmpmisiqni8/tmpbts4o8ea.h 1285s # basename: tmpbts4o8ea.h 1285s # enumeration-production 1285s # EnumName: QmiWmsMessageProtocol 1285s # enum_name: qmi_wms_message_protocol 1285s # ENUMNAME: QMI_WMS_MESSAGE_PROTOCOL 1285s # ENUMSHORT: WMS_MESSAGE_PROTOCOL 1285s # ENUMPREFIX: QMI 1285s # enumsince: 1.0 1285s # type: enum 1285s # Type: Enum 1285s # TYPE: ENUM 1285s # value-header 1285s # EnumName: QmiWmsMessageProtocol 1285s # enum_name: qmi_wms_message_protocol 1285s # ENUMNAME: QMI_WMS_MESSAGE_PROTOCOL 1285s # ENUMSHORT: WMS_MESSAGE_PROTOCOL 1285s # ENUMPREFIX: QMI 1285s # enumsince: 1.0 1285s # type: enum 1285s # Type: Enum 1285s # TYPE: ENUM 1285s # value-production 1285s # VALUENAME: QMI_WMS_MESSAGE_PROTOCOL_CDMA 1285s # valuenick: cdma 1285s # valuenum: 0 1285s # type: enum 1285s # Type: Enum 1285s # TYPE: ENUM 1285s # value-tail 1285s # EnumName: QmiWmsMessageProtocol 1285s # enum_name: qmi_wms_message_protocol 1285s # ENUMNAME: QMI_WMS_MESSAGE_PROTOCOL 1285s # ENUMSHORT: WMS_MESSAGE_PROTOCOL 1285s # ENUMPREFIX: QMI 1285s # enumsince: 1.0 1285s # type: enum 1285s # Type: Enum 1285s # TYPE: ENUM 1285s # file-tail 1285s # 1285s # comment 1285s # comment: Generated data ends here 1285s # Error: 1285s ok 36 __main__.TestRspMkenums.test_with_double_quotes 1285s # glib-mkenums: /usr/bin/glib-mkenums 1285s # tmpdir: /tmp/tmpg_ny38ar 1285s # rspfile: True 1285s # /tmp/tmpg_ny38ar/tmpugv22564.h: 1285s # typedef enum { 1285s # FOO_VALUE /*< nick="eek, a comma" >*/ 1285s # } Foo; 1285s # 1285s # /tmp/tmpg_ny38ar/tmpghi7bq05.template: 1285s # /*** BEGIN file-header ***/ 1285s # file-header 1285s # /*** END file-header ***/ 1285s # 1285s # /*** BEGIN file-production ***/ 1285s # file-production 1285s # filename: @filename@ 1285s # basename: @basename@ 1285s # /*** END file-production ***/ 1285s # 1285s # /*** BEGIN enumeration-production ***/ 1285s # enumeration-production 1285s # EnumName: @EnumName@ 1285s # enum_name: @enum_name@ 1285s # ENUMNAME: @ENUMNAME@ 1285s # ENUMSHORT: @ENUMSHORT@ 1285s # ENUMPREFIX: @ENUMPREFIX@ 1285s # enumsince: @enumsince@ 1285s # type: @type@ 1285s # Type: @Type@ 1285s # TYPE: @TYPE@ 1285s # /*** END enumeration-production ***/ 1285s # 1285s # /*** BEGIN value-header ***/ 1285s # value-header 1285s # EnumName: @EnumName@ 1285s # enum_name: @enum_name@ 1285s # ENUMNAME: @ENUMNAME@ 1285s # ENUMSHORT: @ENUMSHORT@ 1285s # ENUMPREFIX: @ENUMPREFIX@ 1285s # enumsince: @enumsince@ 1285s # type: @type@ 1285s # Type: @Type@ 1285s # TYPE: @TYPE@ 1285s # /*** END value-header ***/ 1285s # 1285s # /*** BEGIN value-production ***/ 1285s # value-production 1285s # VALUENAME: @VALUENAME@ 1285s # valuenick: @valuenick@ 1285s # valuenum: @valuenum@ 1285s # type: @type@ 1285s # Type: @Type@ 1285s # TYPE: @TYPE@ 1285s # /*** END value-production ***/ 1285s # 1285s # /*** BEGIN value-tail ***/ 1285s # value-tail 1285s # EnumName: @EnumName@ 1285s # enum_name: @enum_name@ 1285s # ENUMNAME: @ENUMNAME@ 1285s # ENUMSHORT: @ENUMSHORT@ 1285s # ENUMPREFIX: @ENUMPREFIX@ 1285s # enumsince: @enumsince@ 1285s # type: @type@ 1285s # Type: @Type@ 1285s # TYPE: @TYPE@ 1285s # /*** END value-tail ***/ 1285s # 1285s # /*** BEGIN comment ***/ 1285s # comment 1285s # comment: @comment@ 1285s # /*** END comment ***/ 1285s # 1285s # /*** BEGIN file-tail ***/ 1285s # file-tail 1285s # /*** END file-tail ***/ 1285s # 1285s # Response file contains: --template /tmp/tmpg_ny38ar/tmpghi7bq05.template /tmp/tmpg_ny38ar/tmpugv22564.h 1285s # Running: ['/usr/bin/glib-mkenums', '@/tmp/tmpg_ny38ar/tmp3yjlu9os'] 1285s # Return code: 0 1285s # Output: 1285s # comment 1285s # 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. 1285s # 1285s # 1285s # file-header 1285s # file-production 1285s # filename: /tmp/tmpg_ny38ar/tmpugv22564.h 1285s # basename: tmpugv22564.h 1285s # enumeration-production 1285s # EnumName: Foo 1285s # enum_name: foo_ 1285s # ENUMNAME: FOO_ 1285s # ENUMSHORT: 1285s # ENUMPREFIX: FOO 1285s # enumsince: 1285s # type: enum 1285s # Type: Enum 1285s # TYPE: ENUM 1285s # value-header 1285s # EnumName: Foo 1285s # enum_name: foo_ 1285s # ENUMNAME: FOO_ 1285s # ENUMSHORT: 1285s # ENUMPREFIX: FOO 1285s # enumsince: 1285s # type: enum 1285s # Type: Enum 1285s # TYPE: ENUM 1285s # value-production 1285s # VALUENAME: FOO_VALUE 1285s # valuenick: eek, a comma 1285s # valuenum: 0 1285s # type: enum 1285s # Type: Enum 1285s # TYPE: ENUM 1285s # value-tail 1285s # EnumName: Foo 1285s # enum_name: foo_ 1285s # ENUMNAME: FOO_ 1285s # ENUMSHORT: 1285s # ENUMPREFIX: FOO 1285s # enumsince: 1285s # type: enum 1285s # Type: Enum 1285s # TYPE: ENUM 1285s # file-tail 1285s # 1285s # comment 1285s # comment: Generated data ends here 1285s # Error: 1285s 1..36 1285s ok - glib/mkenums.py.test 1285s # Running test: glib/sandbox.test 1285s TAP version 14 1285s # random seed: R02S617bf54151729c11b565961c07bdf4bd 1285s 1..4 1285s # Start of sandbox tests 1285s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_sandbox_NMVAK3/sandbox/none/.dirs/home 1285s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_sandbox_NMVAK3/sandbox/none/.dirs/cache 1285s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_sandbox_NMVAK3/sandbox/none/.dirs/system-config1:/tmp/test_sandbox_NMVAK3/sandbox/none/.dirs/system-config2 1285s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_sandbox_NMVAK3/sandbox/none/.dirs/config 1285s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_sandbox_NMVAK3/sandbox/none/.dirs/system-data1:/tmp/test_sandbox_NMVAK3/sandbox/none/.dirs/system-data2 1285s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_sandbox_NMVAK3/sandbox/none/.dirs/data 1285s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_sandbox_NMVAK3/sandbox/none/.dirs/state 1285s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_sandbox_NMVAK3/sandbox/none/.dirs/runtime 1285s ok 1 /sandbox/none 1285s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_sandbox_NMVAK3/sandbox/snap/.dirs/home 1285s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_sandbox_NMVAK3/sandbox/snap/.dirs/cache 1285s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_sandbox_NMVAK3/sandbox/snap/.dirs/system-config1:/tmp/test_sandbox_NMVAK3/sandbox/snap/.dirs/system-config2 1285s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_sandbox_NMVAK3/sandbox/snap/.dirs/config 1285s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_sandbox_NMVAK3/sandbox/snap/.dirs/system-data1:/tmp/test_sandbox_NMVAK3/sandbox/snap/.dirs/system-data2 1285s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_sandbox_NMVAK3/sandbox/snap/.dirs/data 1285s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_sandbox_NMVAK3/sandbox/snap/.dirs/state 1285s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_sandbox_NMVAK3/sandbox/snap/.dirs/runtime 1285s # Created snap.yaml in /tmp/test_sandbox_NMVAK3/snap/current/meta/snap.yaml 1285s ok 2 /sandbox/snap 1285s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_sandbox_NMVAK3/sandbox/classic-snap/.dirs/home 1285s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_sandbox_NMVAK3/sandbox/classic-snap/.dirs/cache 1285s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_sandbox_NMVAK3/sandbox/classic-snap/.dirs/system-config1:/tmp/test_sandbox_NMVAK3/sandbox/classic-snap/.dirs/system-config2 1285s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_sandbox_NMVAK3/sandbox/classic-snap/.dirs/config 1285s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_sandbox_NMVAK3/sandbox/classic-snap/.dirs/system-data1:/tmp/test_sandbox_NMVAK3/sandbox/classic-snap/.dirs/system-data2 1285s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_sandbox_NMVAK3/sandbox/classic-snap/.dirs/data 1285s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_sandbox_NMVAK3/sandbox/classic-snap/.dirs/state 1285s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_sandbox_NMVAK3/sandbox/classic-snap/.dirs/runtime 1285s # Created snap.yaml in /tmp/test_sandbox_NMVAK3/snap/current/meta/snap.yaml 1285s ok 3 /sandbox/classic-snap 1285s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_sandbox_NMVAK3/sandbox/flatpak/.dirs/home 1285s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_sandbox_NMVAK3/sandbox/flatpak/.dirs/cache 1285s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_sandbox_NMVAK3/sandbox/flatpak/.dirs/system-config1:/tmp/test_sandbox_NMVAK3/sandbox/flatpak/.dirs/system-config2 1285s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_sandbox_NMVAK3/sandbox/flatpak/.dirs/config 1285s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_sandbox_NMVAK3/sandbox/flatpak/.dirs/system-data1:/tmp/test_sandbox_NMVAK3/sandbox/flatpak/.dirs/system-data2 1285s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_sandbox_NMVAK3/sandbox/flatpak/.dirs/data 1285s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_sandbox_NMVAK3/sandbox/flatpak/.dirs/state 1285s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_sandbox_NMVAK3/sandbox/flatpak/.dirs/runtime 1285s # Creating .flatpak-info in /tmp/test_sandbox_NMVAK3/sandbox/flatpak/.dirs/runtime/.flatpak-info 1285s ok 4 /sandbox/flatpak 1285s # End of sandbox tests 1285s ok - glib/sandbox.test 1285s # Running test: glib/module-test-library.test 1285s TAP version 14 1285s # random seed: R02S9dfd65ba10e1e7ea9a653dd5ec33cf11 1285s 1..3 1285s # Start of module tests 1285s ok 1 /module/basics 1285s # /module/invalid-libtool-archive summary: Test that opening an invalid .la file fails 1285s ok 2 /module/invalid-libtool-archive 1285s # /module/local-binding summary: Test that binding a library's symbols locally does not add them globally 1285s ok 3 /module/local-binding 1285s # End of module tests 1285s ok - glib/module-test-library.test 1285s # Running test: glib/refstring.test 1285s TAP version 14 1285s # random seed: R02S863cc055dfd73e0e65a784152bbdccad 1285s 1..8 1285s # Start of refstring tests 1285s # s = 'hello, world' (0x4823f48) 1285s ok 1 /refstring/base 1285s ok 2 /refstring/length 1285s ok 3 /refstring/length-auto 1285s ok 4 /refstring/length-nuls 1285s # s = 'hello, world' (0x4823f98) 1285s # p = s = 'hello, world' (0x4823f98) 1285s # releasing p[0x4823f98] ('hello, world') 1285s # p = 'goodbye, world' (0x48240a8) 1285s # releasing p[0x48240a8] ('goodbye, world') 1285s # releasing s[0x4823f98] ('hello, world') 1285s ok 5 /refstring/intern 1285s # /refstring/hash_equal summary: Test g_ref_string_equal() in GHashTable 1285s ok 6 /refstring/hash_equal 1285s # /refstring/equal summary: Test g_ref_string_equal() standalone 1285s ok 7 /refstring/equal 1285s # Executing: glib/refstring.test 1285s ok 8 /refstring/intern-thread-safety 1285s # slow test /refstring/intern-thread-safety executed in 0.62 secs 1285s # End of refstring tests 1285s ok - glib/refstring.test 1285s # Running test: glib/autoptr-gio.test 1285s TAP version 14 1285s # random seed: R02S427fc8861682c3de6fe2fc58148e41a5 1285s 1..1 1285s # Start of autoptr tests 1285s # GLib-GIO-DEBUG: _g_io_module_get_default: Found default implementation local (GLocalVfs) for ‘gio-vfs’ 1285s ok 1 /autoptr/autoptr 1285s # End of autoptr tests 1285s ok - glib/autoptr-gio.test 1285s # Running test: glib/override.test 1285s TAP version 14 1285s # random seed: R02S47bc894be25d9d59160df29a804fcf48 1285s 1..1 1285s # Start of gobject tests 1285s # *** emitting foo on a TestA instance 1285s # Expecting: TestA::foo,TestI::foo 1285s # Got: TestA::foo,TestI::foo 1285s # *** emitting bar on a TestA instance 1285s # Expecting: TestA::bar 1285s # Got: TestA::bar 1285s # *** emitting baz on a TestA instance 1285s # Expecting: TestA::baz 1285s # Got: TestA::baz 1285s # *** emitting foo on a TestB instance 1285s # Expecting: TestB::foo,TestA::foo,TestI::foo 1285s # Got: TestB::foo,TestA::foo,TestI::foo 1285s # *** emitting bar on a TestB instance 1285s # Expecting: TestB::bar,TestA::bar 1285s # Got: TestB::bar,TestA::bar 1285s # *** emitting baz on a TestB instance 1285s # Expecting: TestB::baz,TestA::baz 1285s # Got: TestB::baz,TestA::baz 1285s # *** emitting foo on a TestC instance 1285s # Expecting: TestC::foo,TestB::foo,TestA::foo,TestI::foo 1285s # Got: TestC::foo,TestB::foo,TestA::foo,TestI::foo 1285s # *** emitting bar on a TestC instance 1285s # Expecting: TestC::bar,TestB::bar,TestA::bar 1285s # Got: TestC::bar,TestB::bar,TestA::bar 1285s # *** emitting baz on a TestC instance 1285s # Expecting: TestC::baz,TestB::baz,TestA::baz 1285s # Got: TestC::baz,TestB::baz,TestA::baz 1285s ok 1 /gobject/override 1285s # End of gobject tests 1285s ok - glib/override.test 1285s # Running test: glib/utils-c-17.test 1285s TAP version 14 1285s # random seed: R02Seeec84ce5802de61fcab6a5f703991c2 1285s 1..41 1285s # Start of utils tests 1285s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils-c-17_PQ8JK3/utils/language-names/.dirs/home 1285s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-c-17_PQ8JK3/utils/language-names/.dirs/cache 1285s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-c-17_PQ8JK3/utils/language-names/.dirs/system-config1:/tmp/test_utils-c-17_PQ8JK3/utils/language-names/.dirs/system-config2 1285s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-c-17_PQ8JK3/utils/language-names/.dirs/config 1285s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-c-17_PQ8JK3/utils/language-names/.dirs/system-data1:/tmp/test_utils-c-17_PQ8JK3/utils/language-names/.dirs/system-data2 1285s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-c-17_PQ8JK3/utils/language-names/.dirs/data 1285s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-c-17_PQ8JK3/utils/language-names/.dirs/state 1285s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-c-17_PQ8JK3/utils/language-names/.dirs/runtime 1285s ok 1 /utils/language-names 1285s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils-c-17_PQ8JK3/utils/locale-variants/.dirs/home 1285s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-c-17_PQ8JK3/utils/locale-variants/.dirs/cache 1285s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-c-17_PQ8JK3/utils/locale-variants/.dirs/system-config1:/tmp/test_utils-c-17_PQ8JK3/utils/locale-variants/.dirs/system-config2 1285s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-c-17_PQ8JK3/utils/locale-variants/.dirs/config 1285s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-c-17_PQ8JK3/utils/locale-variants/.dirs/system-data1:/tmp/test_utils-c-17_PQ8JK3/utils/locale-variants/.dirs/system-data2 1285s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-c-17_PQ8JK3/utils/locale-variants/.dirs/data 1285s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-c-17_PQ8JK3/utils/locale-variants/.dirs/state 1285s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-c-17_PQ8JK3/utils/locale-variants/.dirs/runtime 1285s # Testing locale ‘en’ 1285s # Testing locale ‘sr@latin’ 1285s # Testing locale ‘fr_BE’ 1285s # Testing locale ‘sr_SR@latin’ 1285s # Testing locale ‘sr_SR@latin.UTF-8’ 1285s # Testing locale ‘sr@latin_invalid’ 1285s # Testing locale ‘sr.UTF-8@latin’ 1285s # Testing locale ‘sr.UTF-8_latin’ 1285s # Testing locale ‘sr.UTF-8@latin_invalid’ 1285s ok 2 /utils/locale-variants 1285s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils-c-17_PQ8JK3/utils/version/.dirs/home 1285s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-c-17_PQ8JK3/utils/version/.dirs/cache 1285s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-c-17_PQ8JK3/utils/version/.dirs/system-config1:/tmp/test_utils-c-17_PQ8JK3/utils/version/.dirs/system-config2 1285s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-c-17_PQ8JK3/utils/version/.dirs/config 1285s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-c-17_PQ8JK3/utils/version/.dirs/system-data1:/tmp/test_utils-c-17_PQ8JK3/utils/version/.dirs/system-data2 1285s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-c-17_PQ8JK3/utils/version/.dirs/data 1285s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-c-17_PQ8JK3/utils/version/.dirs/state 1285s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-c-17_PQ8JK3/utils/version/.dirs/runtime 1285s ok 3 /utils/version 1285s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils-c-17_PQ8JK3/utils/appname/.dirs/home 1285s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-c-17_PQ8JK3/utils/appname/.dirs/cache 1285s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-c-17_PQ8JK3/utils/appname/.dirs/system-config1:/tmp/test_utils-c-17_PQ8JK3/utils/appname/.dirs/system-config2 1285s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-c-17_PQ8JK3/utils/appname/.dirs/config 1285s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-c-17_PQ8JK3/utils/appname/.dirs/system-data1:/tmp/test_utils-c-17_PQ8JK3/utils/appname/.dirs/system-data2 1285s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-c-17_PQ8JK3/utils/appname/.dirs/data 1285s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-c-17_PQ8JK3/utils/appname/.dirs/state 1285s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-c-17_PQ8JK3/utils/appname/.dirs/runtime 1285s ok 4 /utils/appname 1285s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils-c-17_PQ8JK3/utils/prgname-thread-safety/.dirs/home 1285s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-c-17_PQ8JK3/utils/prgname-thread-safety/.dirs/cache 1285s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-c-17_PQ8JK3/utils/prgname-thread-safety/.dirs/system-config1:/tmp/test_utils-c-17_PQ8JK3/utils/prgname-thread-safety/.dirs/system-config2 1285s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-c-17_PQ8JK3/utils/prgname-thread-safety/.dirs/config 1285s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-c-17_PQ8JK3/utils/prgname-thread-safety/.dirs/system-data1:/tmp/test_utils-c-17_PQ8JK3/utils/prgname-thread-safety/.dirs/system-data2 1285s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-c-17_PQ8JK3/utils/prgname-thread-safety/.dirs/data 1285s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-c-17_PQ8JK3/utils/prgname-thread-safety/.dirs/state 1285s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-c-17_PQ8JK3/utils/prgname-thread-safety/.dirs/runtime 1285s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/847 1285s # /utils/prgname-thread-safety summary: Test that threads racing to get and set the program name always receive a valid program name. 1285s ok 5 /utils/prgname-thread-safety 1285s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils-c-17_PQ8JK3/utils/tmpdir/.dirs/home 1285s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-c-17_PQ8JK3/utils/tmpdir/.dirs/cache 1285s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-c-17_PQ8JK3/utils/tmpdir/.dirs/system-config1:/tmp/test_utils-c-17_PQ8JK3/utils/tmpdir/.dirs/system-config2 1285s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-c-17_PQ8JK3/utils/tmpdir/.dirs/config 1285s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-c-17_PQ8JK3/utils/tmpdir/.dirs/system-data1:/tmp/test_utils-c-17_PQ8JK3/utils/tmpdir/.dirs/system-data2 1285s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-c-17_PQ8JK3/utils/tmpdir/.dirs/data 1285s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-c-17_PQ8JK3/utils/tmpdir/.dirs/state 1285s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-c-17_PQ8JK3/utils/tmpdir/.dirs/runtime 1285s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=627969 1285s # /utils/tmpdir summary: Test that g_get_tmp_dir() returns a correct default if TMPDIR is set to the empty string 1285s Unable to clean up temporary directory /tmp/test_utils-c-17_PQ8JK3/utils/tmpdir: No such file or directory 1285s ok 6 /utils/tmpdir 1285s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils-c-17_PQ8JK3/utils/basic_bits/.dirs/home 1285s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-c-17_PQ8JK3/utils/basic_bits/.dirs/cache 1285s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-c-17_PQ8JK3/utils/basic_bits/.dirs/system-config1:/tmp/test_utils-c-17_PQ8JK3/utils/basic_bits/.dirs/system-config2 1285s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-c-17_PQ8JK3/utils/basic_bits/.dirs/config 1285s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-c-17_PQ8JK3/utils/basic_bits/.dirs/system-data1:/tmp/test_utils-c-17_PQ8JK3/utils/basic_bits/.dirs/system-data2 1285s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-c-17_PQ8JK3/utils/basic_bits/.dirs/data 1285s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-c-17_PQ8JK3/utils/basic_bits/.dirs/state 1285s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-c-17_PQ8JK3/utils/basic_bits/.dirs/runtime 1285s ok 7 /utils/basic_bits 1285s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils-c-17_PQ8JK3/utils/bits/.dirs/home 1285s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-c-17_PQ8JK3/utils/bits/.dirs/cache 1285s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-c-17_PQ8JK3/utils/bits/.dirs/system-config1:/tmp/test_utils-c-17_PQ8JK3/utils/bits/.dirs/system-config2 1285s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-c-17_PQ8JK3/utils/bits/.dirs/config 1285s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-c-17_PQ8JK3/utils/bits/.dirs/system-data1:/tmp/test_utils-c-17_PQ8JK3/utils/bits/.dirs/system-data2 1285s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-c-17_PQ8JK3/utils/bits/.dirs/data 1285s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-c-17_PQ8JK3/utils/bits/.dirs/state 1285s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-c-17_PQ8JK3/utils/bits/.dirs/runtime 1285s ok 8 /utils/bits 1285s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils-c-17_PQ8JK3/utils/swap/.dirs/home 1285s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-c-17_PQ8JK3/utils/swap/.dirs/cache 1285s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-c-17_PQ8JK3/utils/swap/.dirs/system-config1:/tmp/test_utils-c-17_PQ8JK3/utils/swap/.dirs/system-config2 1285s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-c-17_PQ8JK3/utils/swap/.dirs/config 1285s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-c-17_PQ8JK3/utils/swap/.dirs/system-data1:/tmp/test_utils-c-17_PQ8JK3/utils/swap/.dirs/system-data2 1285s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-c-17_PQ8JK3/utils/swap/.dirs/data 1285s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-c-17_PQ8JK3/utils/swap/.dirs/state 1285s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-c-17_PQ8JK3/utils/swap/.dirs/runtime 1285s ok 9 /utils/swap 1285s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils-c-17_PQ8JK3/utils/find-program/.dirs/home 1285s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-c-17_PQ8JK3/utils/find-program/.dirs/cache 1285s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-c-17_PQ8JK3/utils/find-program/.dirs/system-config1:/tmp/test_utils-c-17_PQ8JK3/utils/find-program/.dirs/system-config2 1285s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-c-17_PQ8JK3/utils/find-program/.dirs/config 1285s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-c-17_PQ8JK3/utils/find-program/.dirs/system-data1:/tmp/test_utils-c-17_PQ8JK3/utils/find-program/.dirs/system-data2 1285s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-c-17_PQ8JK3/utils/find-program/.dirs/data 1285s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-c-17_PQ8JK3/utils/find-program/.dirs/state 1285s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-c-17_PQ8JK3/utils/find-program/.dirs/runtime 1285s ok 10 /utils/find-program 1285s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils-c-17_PQ8JK3/utils/find-program-for-path/.dirs/home 1285s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-c-17_PQ8JK3/utils/find-program-for-path/.dirs/cache 1285s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-c-17_PQ8JK3/utils/find-program-for-path/.dirs/system-config1:/tmp/test_utils-c-17_PQ8JK3/utils/find-program-for-path/.dirs/system-config2 1285s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-c-17_PQ8JK3/utils/find-program-for-path/.dirs/config 1285s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-c-17_PQ8JK3/utils/find-program-for-path/.dirs/system-data1:/tmp/test_utils-c-17_PQ8JK3/utils/find-program-for-path/.dirs/system-data2 1285s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-c-17_PQ8JK3/utils/find-program-for-path/.dirs/data 1285s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-c-17_PQ8JK3/utils/find-program-for-path/.dirs/state 1285s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-c-17_PQ8JK3/utils/find-program-for-path/.dirs/runtime 1285s ok 11 /utils/find-program-for-path 1285s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils-c-17_PQ8JK3/utils/debug/.dirs/home 1285s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-c-17_PQ8JK3/utils/debug/.dirs/cache 1285s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-c-17_PQ8JK3/utils/debug/.dirs/system-config1:/tmp/test_utils-c-17_PQ8JK3/utils/debug/.dirs/system-config2 1285s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-c-17_PQ8JK3/utils/debug/.dirs/config 1285s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-c-17_PQ8JK3/utils/debug/.dirs/system-data1:/tmp/test_utils-c-17_PQ8JK3/utils/debug/.dirs/system-data2 1285s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-c-17_PQ8JK3/utils/debug/.dirs/data 1285s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-c-17_PQ8JK3/utils/debug/.dirs/state 1285s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-c-17_PQ8JK3/utils/debug/.dirs/runtime 1285s Unable to clean up temporary directory /tmp/test_utils-c-17_PQ8JK3/utils/debug: No such file or directory 1285s ok 12 /utils/debug 1285s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils-c-17_PQ8JK3/utils/codeset/.dirs/home 1285s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-c-17_PQ8JK3/utils/codeset/.dirs/cache 1285s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-c-17_PQ8JK3/utils/codeset/.dirs/system-config1:/tmp/test_utils-c-17_PQ8JK3/utils/codeset/.dirs/system-config2 1285s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-c-17_PQ8JK3/utils/codeset/.dirs/config 1285s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-c-17_PQ8JK3/utils/codeset/.dirs/system-data1:/tmp/test_utils-c-17_PQ8JK3/utils/codeset/.dirs/system-data2 1285s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-c-17_PQ8JK3/utils/codeset/.dirs/data 1285s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-c-17_PQ8JK3/utils/codeset/.dirs/state 1285s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-c-17_PQ8JK3/utils/codeset/.dirs/runtime 1285s ok 13 /utils/codeset 1285s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils-c-17_PQ8JK3/utils/codeset2/.dirs/home 1285s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-c-17_PQ8JK3/utils/codeset2/.dirs/cache 1285s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-c-17_PQ8JK3/utils/codeset2/.dirs/system-config1:/tmp/test_utils-c-17_PQ8JK3/utils/codeset2/.dirs/system-config2 1285s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-c-17_PQ8JK3/utils/codeset2/.dirs/config 1285s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-c-17_PQ8JK3/utils/codeset2/.dirs/system-data1:/tmp/test_utils-c-17_PQ8JK3/utils/codeset2/.dirs/system-data2 1285s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-c-17_PQ8JK3/utils/codeset2/.dirs/data 1285s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-c-17_PQ8JK3/utils/codeset2/.dirs/state 1285s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-c-17_PQ8JK3/utils/codeset2/.dirs/runtime 1285s Unable to clean up temporary directory /tmp/test_utils-c-17_PQ8JK3/utils/codeset2: No such file or directory 1285s ok 14 /utils/codeset2 1285s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils-c-17_PQ8JK3/utils/console-charset/.dirs/home 1285s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-c-17_PQ8JK3/utils/console-charset/.dirs/cache 1285s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-c-17_PQ8JK3/utils/console-charset/.dirs/system-config1:/tmp/test_utils-c-17_PQ8JK3/utils/console-charset/.dirs/system-config2 1285s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-c-17_PQ8JK3/utils/console-charset/.dirs/config 1285s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-c-17_PQ8JK3/utils/console-charset/.dirs/system-data1:/tmp/test_utils-c-17_PQ8JK3/utils/console-charset/.dirs/system-data2 1285s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-c-17_PQ8JK3/utils/console-charset/.dirs/data 1285s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-c-17_PQ8JK3/utils/console-charset/.dirs/state 1285s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-c-17_PQ8JK3/utils/console-charset/.dirs/runtime 1285s ok 15 /utils/console-charset 1285s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils-c-17_PQ8JK3/utils/gettext/.dirs/home 1285s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-c-17_PQ8JK3/utils/gettext/.dirs/cache 1285s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-c-17_PQ8JK3/utils/gettext/.dirs/system-config1:/tmp/test_utils-c-17_PQ8JK3/utils/gettext/.dirs/system-config2 1285s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-c-17_PQ8JK3/utils/gettext/.dirs/config 1285s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-c-17_PQ8JK3/utils/gettext/.dirs/system-data1:/tmp/test_utils-c-17_PQ8JK3/utils/gettext/.dirs/system-data2 1285s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-c-17_PQ8JK3/utils/gettext/.dirs/data 1285s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-c-17_PQ8JK3/utils/gettext/.dirs/state 1285s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-c-17_PQ8JK3/utils/gettext/.dirs/runtime 1285s ok 16 /utils/gettext 1285s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils-c-17_PQ8JK3/utils/username/.dirs/home 1285s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-c-17_PQ8JK3/utils/username/.dirs/cache 1285s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-c-17_PQ8JK3/utils/username/.dirs/system-config1:/tmp/test_utils-c-17_PQ8JK3/utils/username/.dirs/system-config2 1285s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-c-17_PQ8JK3/utils/username/.dirs/config 1285s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-c-17_PQ8JK3/utils/username/.dirs/system-data1:/tmp/test_utils-c-17_PQ8JK3/utils/username/.dirs/system-data2 1285s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-c-17_PQ8JK3/utils/username/.dirs/data 1285s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-c-17_PQ8JK3/utils/username/.dirs/state 1285s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-c-17_PQ8JK3/utils/username/.dirs/runtime 1285s ok 17 /utils/username 1285s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils-c-17_PQ8JK3/utils/realname/.dirs/home 1285s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-c-17_PQ8JK3/utils/realname/.dirs/cache 1285s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-c-17_PQ8JK3/utils/realname/.dirs/system-config1:/tmp/test_utils-c-17_PQ8JK3/utils/realname/.dirs/system-config2 1285s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-c-17_PQ8JK3/utils/realname/.dirs/config 1285s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-c-17_PQ8JK3/utils/realname/.dirs/system-data1:/tmp/test_utils-c-17_PQ8JK3/utils/realname/.dirs/system-data2 1285s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-c-17_PQ8JK3/utils/realname/.dirs/data 1285s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-c-17_PQ8JK3/utils/realname/.dirs/state 1285s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-c-17_PQ8JK3/utils/realname/.dirs/runtime 1285s ok 18 /utils/realname 1285s ok - glib/utils-c-17.test 1285s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils-c-17_PQ8JK3/utils/hostname/.dirs/home 1285s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-c-17_PQ8JK3/utils/hostname/.dirs/cache 1285s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-c-17_PQ8JK3/utils/hostname/.dirs/system-config1:/tmp/test_utils-c-17_PQ8JK3/utils/hostname/.dirs/system-config2 1285s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-c-17_PQ8JK3/utils/hostname/.dirs/config 1285s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-c-17_PQ8JK3/utils/hostname/.dirs/system-data1:/tmp/test_utils-c-17_PQ8JK3/utils/hostname/.dirs/system-data2 1285s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-c-17_PQ8JK3/utils/hostname/.dirs/data 1285s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-c-17_PQ8JK3/utils/hostname/.dirs/state 1285s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-c-17_PQ8JK3/utils/hostname/.dirs/runtime 1285s ok 19 /utils/hostname 1285s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils-c-17_PQ8JK3/utils/os-info/.dirs/home 1285s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-c-17_PQ8JK3/utils/os-info/.dirs/cache 1285s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-c-17_PQ8JK3/utils/os-info/.dirs/system-config1:/tmp/test_utils-c-17_PQ8JK3/utils/os-info/.dirs/system-config2 1285s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-c-17_PQ8JK3/utils/os-info/.dirs/config 1285s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-c-17_PQ8JK3/utils/os-info/.dirs/system-data1:/tmp/test_utils-c-17_PQ8JK3/utils/os-info/.dirs/system-data2 1285s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-c-17_PQ8JK3/utils/os-info/.dirs/data 1285s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-c-17_PQ8JK3/utils/os-info/.dirs/state 1285s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-c-17_PQ8JK3/utils/os-info/.dirs/runtime 1285s # NAME: Ubuntu 1285s ok 20 /utils/os-info 1285s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils-c-17_PQ8JK3/utils/clear-pointer/.dirs/home 1285s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-c-17_PQ8JK3/utils/clear-pointer/.dirs/cache 1285s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-c-17_PQ8JK3/utils/clear-pointer/.dirs/system-config1:/tmp/test_utils-c-17_PQ8JK3/utils/clear-pointer/.dirs/system-config2 1285s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-c-17_PQ8JK3/utils/clear-pointer/.dirs/config 1285s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-c-17_PQ8JK3/utils/clear-pointer/.dirs/system-data1:/tmp/test_utils-c-17_PQ8JK3/utils/clear-pointer/.dirs/system-data2 1285s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-c-17_PQ8JK3/utils/clear-pointer/.dirs/data 1285s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-c-17_PQ8JK3/utils/clear-pointer/.dirs/state 1285s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-c-17_PQ8JK3/utils/clear-pointer/.dirs/runtime 1285s ok 21 /utils/clear-pointer 1285s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils-c-17_PQ8JK3/utils/clear-pointer-cast/.dirs/home 1285s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-c-17_PQ8JK3/utils/clear-pointer-cast/.dirs/cache 1285s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-c-17_PQ8JK3/utils/clear-pointer-cast/.dirs/system-config1:/tmp/test_utils-c-17_PQ8JK3/utils/clear-pointer-cast/.dirs/system-config2 1285s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-c-17_PQ8JK3/utils/clear-pointer-cast/.dirs/config 1285s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-c-17_PQ8JK3/utils/clear-pointer-cast/.dirs/system-data1:/tmp/test_utils-c-17_PQ8JK3/utils/clear-pointer-cast/.dirs/system-data2 1285s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-c-17_PQ8JK3/utils/clear-pointer-cast/.dirs/data 1285s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-c-17_PQ8JK3/utils/clear-pointer-cast/.dirs/state 1285s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-c-17_PQ8JK3/utils/clear-pointer-cast/.dirs/runtime 1285s ok 22 /utils/clear-pointer-cast 1285s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils-c-17_PQ8JK3/utils/take-pointer/.dirs/home 1285s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-c-17_PQ8JK3/utils/take-pointer/.dirs/cache 1285s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-c-17_PQ8JK3/utils/take-pointer/.dirs/system-config1:/tmp/test_utils-c-17_PQ8JK3/utils/take-pointer/.dirs/system-config2 1285s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-c-17_PQ8JK3/utils/take-pointer/.dirs/config 1285s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-c-17_PQ8JK3/utils/take-pointer/.dirs/system-data1:/tmp/test_utils-c-17_PQ8JK3/utils/take-pointer/.dirs/system-data2 1285s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-c-17_PQ8JK3/utils/take-pointer/.dirs/data 1285s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-c-17_PQ8JK3/utils/take-pointer/.dirs/state 1285s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-c-17_PQ8JK3/utils/take-pointer/.dirs/runtime 1285s ok 23 /utils/take-pointer 1285s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils-c-17_PQ8JK3/utils/clear-source/.dirs/home 1285s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-c-17_PQ8JK3/utils/clear-source/.dirs/cache 1285s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-c-17_PQ8JK3/utils/clear-source/.dirs/system-config1:/tmp/test_utils-c-17_PQ8JK3/utils/clear-source/.dirs/system-config2 1285s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-c-17_PQ8JK3/utils/clear-source/.dirs/config 1285s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-c-17_PQ8JK3/utils/clear-source/.dirs/system-data1:/tmp/test_utils-c-17_PQ8JK3/utils/clear-source/.dirs/system-data2 1285s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-c-17_PQ8JK3/utils/clear-source/.dirs/data 1285s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-c-17_PQ8JK3/utils/clear-source/.dirs/state 1285s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-c-17_PQ8JK3/utils/clear-source/.dirs/runtime 1285s ok 24 /utils/clear-source 1285s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils-c-17_PQ8JK3/utils/misc-mem/.dirs/home 1285s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-c-17_PQ8JK3/utils/misc-mem/.dirs/cache 1285s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-c-17_PQ8JK3/utils/misc-mem/.dirs/system-config1:/tmp/test_utils-c-17_PQ8JK3/utils/misc-mem/.dirs/system-config2 1285s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-c-17_PQ8JK3/utils/misc-mem/.dirs/config 1285s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-c-17_PQ8JK3/utils/misc-mem/.dirs/system-data1:/tmp/test_utils-c-17_PQ8JK3/utils/misc-mem/.dirs/system-data2 1285s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-c-17_PQ8JK3/utils/misc-mem/.dirs/data 1285s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-c-17_PQ8JK3/utils/misc-mem/.dirs/state 1285s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-c-17_PQ8JK3/utils/misc-mem/.dirs/runtime 1285s ok 25 /utils/misc-mem 1285s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils-c-17_PQ8JK3/utils/aligned-mem/.dirs/home 1285s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-c-17_PQ8JK3/utils/aligned-mem/.dirs/cache 1285s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-c-17_PQ8JK3/utils/aligned-mem/.dirs/system-config1:/tmp/test_utils-c-17_PQ8JK3/utils/aligned-mem/.dirs/system-config2 1285s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-c-17_PQ8JK3/utils/aligned-mem/.dirs/config 1285s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-c-17_PQ8JK3/utils/aligned-mem/.dirs/system-data1:/tmp/test_utils-c-17_PQ8JK3/utils/aligned-mem/.dirs/system-data2 1285s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-c-17_PQ8JK3/utils/aligned-mem/.dirs/data 1285s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-c-17_PQ8JK3/utils/aligned-mem/.dirs/state 1285s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-c-17_PQ8JK3/utils/aligned-mem/.dirs/runtime 1285s # /utils/aligned-mem summary: Aligned memory allocator 1285s # Alignment must not be zero 1285s # Alignment must be a power of two 1285s # Alignment must be a multiple of sizeof(void*) 1285s ok 26 /utils/aligned-mem 1285s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils-c-17_PQ8JK3/utils/free-sized/.dirs/home 1285s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-c-17_PQ8JK3/utils/free-sized/.dirs/cache 1285s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-c-17_PQ8JK3/utils/free-sized/.dirs/system-config1:/tmp/test_utils-c-17_PQ8JK3/utils/free-sized/.dirs/system-config2 1285s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-c-17_PQ8JK3/utils/free-sized/.dirs/config 1285s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-c-17_PQ8JK3/utils/free-sized/.dirs/system-data1:/tmp/test_utils-c-17_PQ8JK3/utils/free-sized/.dirs/system-data2 1285s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-c-17_PQ8JK3/utils/free-sized/.dirs/data 1285s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-c-17_PQ8JK3/utils/free-sized/.dirs/state 1285s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-c-17_PQ8JK3/utils/free-sized/.dirs/runtime 1285s # /utils/free-sized summary: Check that g_free_sized() works 1285s ok 27 /utils/free-sized 1285s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils-c-17_PQ8JK3/utils/nullify/.dirs/home 1285s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-c-17_PQ8JK3/utils/nullify/.dirs/cache 1285s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-c-17_PQ8JK3/utils/nullify/.dirs/system-config1:/tmp/test_utils-c-17_PQ8JK3/utils/nullify/.dirs/system-config2 1285s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-c-17_PQ8JK3/utils/nullify/.dirs/config 1285s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-c-17_PQ8JK3/utils/nullify/.dirs/system-data1:/tmp/test_utils-c-17_PQ8JK3/utils/nullify/.dirs/system-data2 1285s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-c-17_PQ8JK3/utils/nullify/.dirs/data 1285s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-c-17_PQ8JK3/utils/nullify/.dirs/state 1285s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-c-17_PQ8JK3/utils/nullify/.dirs/runtime 1285s ok 28 /utils/nullify 1285s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils-c-17_PQ8JK3/utils/atexit/.dirs/home 1285s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-c-17_PQ8JK3/utils/atexit/.dirs/cache 1285s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-c-17_PQ8JK3/utils/atexit/.dirs/system-config1:/tmp/test_utils-c-17_PQ8JK3/utils/atexit/.dirs/system-config2 1285s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-c-17_PQ8JK3/utils/atexit/.dirs/config 1285s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-c-17_PQ8JK3/utils/atexit/.dirs/system-data1:/tmp/test_utils-c-17_PQ8JK3/utils/atexit/.dirs/system-data2 1285s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-c-17_PQ8JK3/utils/atexit/.dirs/data 1285s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-c-17_PQ8JK3/utils/atexit/.dirs/state 1285s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-c-17_PQ8JK3/utils/atexit/.dirs/runtime 1285s Unable to clean up temporary directory /tmp/test_utils-c-17_PQ8JK3/utils/atexit: No such file or directory 1285s ok 29 /utils/atexit 1285s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils-c-17_PQ8JK3/utils/check-setuid/.dirs/home 1285s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-c-17_PQ8JK3/utils/check-setuid/.dirs/cache 1285s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-c-17_PQ8JK3/utils/check-setuid/.dirs/system-config1:/tmp/test_utils-c-17_PQ8JK3/utils/check-setuid/.dirs/system-config2 1285s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-c-17_PQ8JK3/utils/check-setuid/.dirs/config 1285s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-c-17_PQ8JK3/utils/check-setuid/.dirs/system-data1:/tmp/test_utils-c-17_PQ8JK3/utils/check-setuid/.dirs/system-data2 1285s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-c-17_PQ8JK3/utils/check-setuid/.dirs/data 1285s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-c-17_PQ8JK3/utils/check-setuid/.dirs/state 1285s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-c-17_PQ8JK3/utils/check-setuid/.dirs/runtime 1285s ok 30 /utils/check-setuid 1285s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils-c-17_PQ8JK3/utils/int-limits/.dirs/home 1285s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-c-17_PQ8JK3/utils/int-limits/.dirs/cache 1285s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-c-17_PQ8JK3/utils/int-limits/.dirs/system-config1:/tmp/test_utils-c-17_PQ8JK3/utils/int-limits/.dirs/system-config2 1285s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-c-17_PQ8JK3/utils/int-limits/.dirs/config 1285s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-c-17_PQ8JK3/utils/int-limits/.dirs/system-data1:/tmp/test_utils-c-17_PQ8JK3/utils/int-limits/.dirs/system-data2 1285s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-c-17_PQ8JK3/utils/int-limits/.dirs/data 1285s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-c-17_PQ8JK3/utils/int-limits/.dirs/state 1285s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-c-17_PQ8JK3/utils/int-limits/.dirs/runtime 1285s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/issues/1663 1285s ok 31 /utils/int-limits 1285s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils-c-17_PQ8JK3/utils/clear-list/.dirs/home 1285s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-c-17_PQ8JK3/utils/clear-list/.dirs/cache 1285s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-c-17_PQ8JK3/utils/clear-list/.dirs/system-config1:/tmp/test_utils-c-17_PQ8JK3/utils/clear-list/.dirs/system-config2 1285s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-c-17_PQ8JK3/utils/clear-list/.dirs/config 1285s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-c-17_PQ8JK3/utils/clear-list/.dirs/system-data1:/tmp/test_utils-c-17_PQ8JK3/utils/clear-list/.dirs/system-data2 1285s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-c-17_PQ8JK3/utils/clear-list/.dirs/data 1285s # Running test: glib/signal-handler.test 1285s ok - glib/signal-handler.test 1285s # Running test: glib/mem-overflow.test 1285s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-c-17_PQ8JK3/utils/clear-list/.dirs/state 1285s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-c-17_PQ8JK3/utils/clear-list/.dirs/runtime 1285s ok 32 /utils/clear-list 1285s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils-c-17_PQ8JK3/utils/clear-slist/.dirs/home 1285s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-c-17_PQ8JK3/utils/clear-slist/.dirs/cache 1285s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-c-17_PQ8JK3/utils/clear-slist/.dirs/system-config1:/tmp/test_utils-c-17_PQ8JK3/utils/clear-slist/.dirs/system-config2 1285s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-c-17_PQ8JK3/utils/clear-slist/.dirs/config 1285s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-c-17_PQ8JK3/utils/clear-slist/.dirs/system-data1:/tmp/test_utils-c-17_PQ8JK3/utils/clear-slist/.dirs/system-data2 1285s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-c-17_PQ8JK3/utils/clear-slist/.dirs/data 1285s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-c-17_PQ8JK3/utils/clear-slist/.dirs/state 1285s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-c-17_PQ8JK3/utils/clear-slist/.dirs/runtime 1285s ok 33 /utils/clear-slist 1285s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils-c-17_PQ8JK3/utils/steal-handle-id/.dirs/home 1285s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-c-17_PQ8JK3/utils/steal-handle-id/.dirs/cache 1285s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-c-17_PQ8JK3/utils/steal-handle-id/.dirs/system-config1:/tmp/test_utils-c-17_PQ8JK3/utils/steal-handle-id/.dirs/system-config2 1285s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-c-17_PQ8JK3/utils/steal-handle-id/.dirs/config 1285s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-c-17_PQ8JK3/utils/steal-handle-id/.dirs/system-data1:/tmp/test_utils-c-17_PQ8JK3/utils/steal-handle-id/.dirs/system-data2 1285s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-c-17_PQ8JK3/utils/steal-handle-id/.dirs/data 1285s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-c-17_PQ8JK3/utils/steal-handle-id/.dirs/state 1285s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-c-17_PQ8JK3/utils/steal-handle-id/.dirs/runtime 1285s ok 34 /utils/steal-handle-id 1285s # Start of user-special-dirs tests 1285s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils-c-17_PQ8JK3/utils/user-special-dirs/desktop/.dirs/home 1285s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-c-17_PQ8JK3/utils/user-special-dirs/desktop/.dirs/cache 1285s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-c-17_PQ8JK3/utils/user-special-dirs/desktop/.dirs/system-config1:/tmp/test_utils-c-17_PQ8JK3/utils/user-special-dirs/desktop/.dirs/system-config2 1285s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-c-17_PQ8JK3/utils/user-special-dirs/desktop/.dirs/config 1285s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-c-17_PQ8JK3/utils/user-special-dirs/desktop/.dirs/system-data1:/tmp/test_utils-c-17_PQ8JK3/utils/user-special-dirs/desktop/.dirs/system-data2 1285s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-c-17_PQ8JK3/utils/user-special-dirs/desktop/.dirs/data 1285s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-c-17_PQ8JK3/utils/user-special-dirs/desktop/.dirs/state 1285s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-c-17_PQ8JK3/utils/user-special-dirs/desktop/.dirs/runtime 1285s ok 35 /utils/user-special-dirs/desktop 1285s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils-c-17_PQ8JK3/utils/user-special-dirs/load-unlocked/.dirs/home 1285s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-c-17_PQ8JK3/utils/user-special-dirs/load-unlocked/.dirs/cache 1285s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-c-17_PQ8JK3/utils/user-special-dirs/load-unlocked/.dirs/system-config1:/tmp/test_utils-c-17_PQ8JK3/utils/user-special-dirs/load-unlocked/.dirs/system-config2 1285s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-c-17_PQ8JK3/utils/user-special-dirs/load-unlocked/.dirs/config 1285s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-c-17_PQ8JK3/utils/user-special-dirs/load-unlocked/.dirs/system-data1:/tmp/test_utils-c-17_PQ8JK3/utils/user-special-dirs/load-unlocked/.dirs/system-data2 1285s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-c-17_PQ8JK3/utils/user-special-dirs/load-unlocked/.dirs/data 1285s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-c-17_PQ8JK3/utils/user-special-dirs/load-unlocked/.dirs/state 1285s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-c-17_PQ8JK3/utils/user-special-dirs/load-unlocked/.dirs/runtime 1285s # /utils/user-special-dirs/load-unlocked summary: Tests error and corner cases of user-dirs.dirs content. 1285s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/merge_requests/4800 1285s Unable to clean up temporary directory /tmp/test_utils-c-17_PQ8JK3/utils/user-special-dirs/load-unlocked: No such file or directory 1285s ok 36 /utils/user-special-dirs/load-unlocked 1285s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils-c-17_PQ8JK3/utils/user-special-dirs/reload-leaks/.dirs/home 1285s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-c-17_PQ8JK3/utils/user-special-dirs/reload-leaks/.dirs/cache 1285s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-c-17_PQ8JK3/utils/user-special-dirs/reload-leaks/.dirs/system-config1:/tmp/test_utils-c-17_PQ8JK3/utils/user-special-dirs/reload-leaks/.dirs/system-config2 1285s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-c-17_PQ8JK3/utils/user-special-dirs/reload-leaks/.dirs/config 1285s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-c-17_PQ8JK3/utils/user-special-dirs/reload-leaks/.dirs/system-data1:/tmp/test_utils-c-17_PQ8JK3/utils/user-special-dirs/reload-leaks/.dirs/system-data2 1285s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-c-17_PQ8JK3/utils/user-special-dirs/reload-leaks/.dirs/data 1285s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-c-17_PQ8JK3/utils/user-special-dirs/reload-leaks/.dirs/state 1285s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-c-17_PQ8JK3/utils/user-special-dirs/reload-leaks/.dirs/runtime 1285s # /utils/user-special-dirs/reload-leaks summary: Tests that old user special dirs values are deliberately leaked on reload. 1285s Unable to clean up temporary directory /tmp/test_utils-c-17_PQ8JK3/utils/user-special-dirs/reload-leaks: No such file or directory 1285s ok 37 /utils/user-special-dirs/reload-leaks 1285s # End of user-special-dirs tests 1285s # Start of clear-pointer tests 1285s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils-c-17_PQ8JK3/utils/clear-pointer/side-effects/.dirs/home 1285s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-c-17_PQ8JK3/utils/clear-pointer/side-effects/.dirs/cache 1285s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-c-17_PQ8JK3/utils/clear-pointer/side-effects/.dirs/system-config1:/tmp/test_utils-c-17_PQ8JK3/utils/clear-pointer/side-effects/.dirs/system-config2 1285s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-c-17_PQ8JK3/utils/clear-pointer/side-effects/.dirs/config 1285s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-c-17_PQ8JK3/utils/clear-pointer/side-effects/.dirs/system-data1:/tmp/test_utils-c-17_PQ8JK3/utils/clear-pointer/side-effects/.dirs/system-data2 1285s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-c-17_PQ8JK3/utils/clear-pointer/side-effects/.dirs/data 1285s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-c-17_PQ8JK3/utils/clear-pointer/side-effects/.dirs/state 1285s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-c-17_PQ8JK3/utils/clear-pointer/side-effects/.dirs/runtime 1285s ok 38 /utils/clear-pointer/side-effects 1285s # End of clear-pointer tests 1285s # Start of aligned-mem tests 1285s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils-c-17_PQ8JK3/utils/aligned-mem/alignment/.dirs/home 1285s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-c-17_PQ8JK3/utils/aligned-mem/alignment/.dirs/cache 1285s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-c-17_PQ8JK3/utils/aligned-mem/alignment/.dirs/system-config1:/tmp/test_utils-c-17_PQ8JK3/utils/aligned-mem/alignment/.dirs/system-config2 1285s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-c-17_PQ8JK3/utils/aligned-mem/alignment/.dirs/config 1285s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-c-17_PQ8JK3/utils/aligned-mem/alignment/.dirs/system-data1:/tmp/test_utils-c-17_PQ8JK3/utils/aligned-mem/alignment/.dirs/system-data2 1285s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-c-17_PQ8JK3/utils/aligned-mem/alignment/.dirs/data 1285s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-c-17_PQ8JK3/utils/aligned-mem/alignment/.dirs/state 1285s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-c-17_PQ8JK3/utils/aligned-mem/alignment/.dirs/runtime 1285s # /utils/aligned-mem/alignment summary: Check that g_aligned_alloc() returns a correctly aligned pointer 1285s ok 39 /utils/aligned-mem/alignment 1285s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils-c-17_PQ8JK3/utils/aligned-mem/zeroed/.dirs/home 1285s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-c-17_PQ8JK3/utils/aligned-mem/zeroed/.dirs/cache 1285s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-c-17_PQ8JK3/utils/aligned-mem/zeroed/.dirs/system-config1:/tmp/test_utils-c-17_PQ8JK3/utils/aligned-mem/zeroed/.dirs/system-config2 1285s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-c-17_PQ8JK3/utils/aligned-mem/zeroed/.dirs/config 1285s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-c-17_PQ8JK3/utils/aligned-mem/zeroed/.dirs/system-data1:/tmp/test_utils-c-17_PQ8JK3/utils/aligned-mem/zeroed/.dirs/system-data2 1285s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-c-17_PQ8JK3/utils/aligned-mem/zeroed/.dirs/data 1285s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-c-17_PQ8JK3/utils/aligned-mem/zeroed/.dirs/state 1285s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-c-17_PQ8JK3/utils/aligned-mem/zeroed/.dirs/runtime 1285s # /utils/aligned-mem/zeroed summary: Check that g_aligned_alloc0() zeroes out its allocation 1285s ok 40 /utils/aligned-mem/zeroed 1285s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils-c-17_PQ8JK3/utils/aligned-mem/free-sized/.dirs/home 1285s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-c-17_PQ8JK3/utils/aligned-mem/free-sized/.dirs/cache 1285s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-c-17_PQ8JK3/utils/aligned-mem/free-sized/.dirs/system-config1:/tmp/test_utils-c-17_PQ8JK3/utils/aligned-mem/free-sized/.dirs/system-config2 1285s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-c-17_PQ8JK3/utils/aligned-mem/free-sized/.dirs/config 1285s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-c-17_PQ8JK3/utils/aligned-mem/free-sized/.dirs/system-data1:/tmp/test_utils-c-17_PQ8JK3/utils/aligned-mem/free-sized/.dirs/system-data2 1285s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-c-17_PQ8JK3/utils/aligned-mem/free-sized/.dirs/data 1285s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-c-17_PQ8JK3/utils/aligned-mem/free-sized/.dirs/state 1285s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-c-17_PQ8JK3/utils/aligned-mem/free-sized/.dirs/runtime 1285s # /utils/aligned-mem/free-sized summary: Check that g_aligned_free_sized() works 1285s ok 41 /utils/aligned-mem/free-sized 1285s # Start of subprocess tests 1285s # End of subprocess tests 1285s # End of aligned-mem tests 1285s # End of utils tests 1285s TAP version 14 1285s # random seed: R02Sde19e64bd06eec686b2b94892ab13082 1285s 1..7 1285s # Start of signal tests 1285s # Start of handler tests 1285s # min perf: connected 1 handlers in 0.000 seconds 1285s ok 1 /signal/handler/connect-many 1285s # min perf: disconnected 1 handlers in 0.000 seconds 1285s ok 2 /signal/handler/disconnect-many-ordered 1285s # min perf: disconnected 1 handlers in 0.000 seconds 1285s ok 3 /signal/handler/disconnect-many-inverse 1285s # min perf: disconnected 1 handlers in 0.000 seconds 1285s ok 4 /signal/handler/disconnect-many-random 1285s # min perf: disconnected 1 handlers in 0.000 seconds 1285s ok 5 /signal/handler/disconnect-2-signals 1285s # min perf: disconnected 1 handlers in 0.000 seconds 1285s ok 6 /signal/handler/disconnect-2-objects 1285s # min perf: blocked and unblocked 1 handlers in 0.000 seconds 1285s ok 7 /signal/handler/block-many 1285s # End of handler tests 1285s # End of signal tests 1285s TAP version 14 1285s # random seed: R02Sd821e6548712f5b216523ea51c60b3db 1285s 1..2 1285s # Start of mem tests 1286s ok 1 /mem/overflow 1286s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=615379 1286s ok 2 /mem/empty-alloc 1286s # Start of overflow tests 1286s # Start of subprocess tests 1286s # End of subprocess tests 1286s # End of overflow tests 1286s # Start of empty-alloc tests 1286s # End of empty-alloc tests 1286s # End of mem tests 1286s ok - glib/mem-overflow.test 1286s # Running test: glib/strvbuilder.test 1286s TAP version 14 1286s # random seed: R02Se7e6a799607bd75b57738cf53af84aa5 1286s 1..7 1286s # Start of strvbuilder tests 1286s ok 1 /strvbuilder/empty 1286s ok 2 /strvbuilder/add 1286s ok 3 /strvbuilder/addv 1286s ok 4 /strvbuilder/add_many 1286s ok 5 /strvbuilder/take 1286s ok 6 /strvbuilder/ref 1286s ok 7 /strvbuilder/unref_to_strv 1286s # End of strvbuilder tests 1286s ok - glib/strvbuilder.test 1286s # Running test: glib/resources.test 1286s TAP version 14 1286s # random seed: R02S5e1bdd4fb0a24fd5318c532a0694e711 1286s 1..19 1286s # Start of resource tests 1286s ok 1 /resource/file 1286s # GLib-GIO-DEBUG: _g_io_module_get_default: Found default implementation local (GLocalVfs) for ‘gio-vfs’ 1286s ok 2 /resource/file-path 1286s ok 3 /resource/data 1286s ok 4 /resource/data_unaligned 1286s ok 5 /resource/data-corrupt 1286s # /resource/data-corrupt-compression summary: Test error handling for corrupt GResource files (specifically, corrupt zlib compression). 1286s ok 6 /resource/data-corrupt-compression 1286s ok 7 /resource/data-empty 1286s ok 8 /resource/registered 1286s ok 9 /resource/manual 1286s ok 10 /resource/manual2 1286s ok 11 /resource/automatic 1286s ok 12 /resource/module 1286s ok 13 /resource/binary-linked 1286s ok 14 /resource/64k 1286s GLib-GIO-Message: 11:36:06.011: Adding GResources overlay '/auto_loaded/test1.txt=/usr/libexec/installed-tests/glib/test1.overlay' 1286s GLib-GIO-Message: 11:36:06.012: Opened file '/usr/libexec/installed-tests/glib/test1.overlay' as a resource overlay 1286s GLib-GIO-Message: 11:36:06.012: Mapped file '/usr/libexec/installed-tests/glib/test1.overlay' as a resource overlay 1286s ok 15 /resource/overlay 1286s ok 16 /resource/digits 1286s ok 17 /resource/has-children 1286s # Start of uri tests 1286s ok 18 /resource/uri/query-info 1286s ok 19 /resource/uri/file 1286s # End of uri tests 1286s # End of resource tests 1286s ok - glib/resources.test 1286s # Running test: glib/gvariant.test 1286s TAP version 14 1286s # random seed: R02Sdc482944a55f00b8b4a0a6ca643bf86d 1286s 1..69 1286s # Start of gvariant tests 1286s ok 1 /gvariant/type 1286s ok 2 /gvariant/typeinfo 1286s ok 3 /gvariant/string 1286s ok 4 /gvariant/utf8 1286s ok 5 /gvariant/utf8-new-strings 1286s ok 6 /gvariant/containers 1286s ok 7 /gvariant/format-strings 1286s ok 8 /gvariant/invalid-varargs 1286s ok 9 /gvariant/varargs 1286s ok 10 /gvariant/valist 1286s ok 11 /gvariant/builder-memory 1286s ok 12 /gvariant/hashing 1286s ok 13 /gvariant/byteswap 1286s ok 14 /gvariant/parser 1286s ok 15 /gvariant/parse-failures 1286s ok 16 /gvariant/parse-positional 1286s ok 17 /gvariant/floating 1286s ok 18 /gvariant/bytestring 1286s ok 19 /gvariant/lookup-value 1286s ok 20 /gvariant/lookup 1286s ok 21 /gvariant/compare 1286s ok 22 /gvariant/equal 1286s ok 23 /gvariant/fixed-array 1286s ok 24 /gvariant/check-format-string 1286s ok 25 /gvariant/checksum-basic 1286s ok 26 /gvariant/checksum-nested 1286s ok 27 /gvariant/gbytes 1286s ok 28 /gvariant/print-context 1286s ok 29 /gvariant/error-quark 1286s ok 30 /gvariant/stack-builder-init 1286s ok 31 /gvariant/stack-builder-init-static 1286s ok 32 /gvariant/stack-builder-init-unset 1286s ok 33 /gvariant/stack-dict-init 1286s ok 34 /gvariant/unaligned-construction 1286s # Start of type tests 1286s # Start of string-scan tests 1286s # Start of recursion tests 1286s ok 35 /gvariant/type/string-scan/recursion/tuple 1286s ok 36 /gvariant/type/string-scan/recursion/array 1286s # End of recursion tests 1286s # End of string-scan tests 1286s # End of type tests 1286s # Start of serialiser tests 1286s ok 37 /gvariant/serialiser/maybe 1287s ok 38 /gvariant/serialiser/array 1287s ok 39 /gvariant/serialiser/tuple 1287s ok 40 /gvariant/serialiser/variant 1287s ok 41 /gvariant/serialiser/strings 1288s ok 42 /gvariant/serialiser/byteswap 1288s # slow test /gvariant/serialiser/byteswap executed in 1.07 secs 1288s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/issues/1865 1288s # /gvariant/serialiser/children summary: Test that getting a child variant before and after serialisation of the parent works 1288s ok 43 /gvariant/serialiser/children 1288s # Start of byteswap tests 1288s ok 44 /gvariant/serialiser/byteswap/zero-sized 1288s # End of byteswap tests 1288s # Start of fuzz tests 1288s ok 45 /gvariant/serialiser/fuzz/1% 1290s ok 46 /gvariant/serialiser/fuzz/5% 1290s # slow test /gvariant/serialiser/fuzz/5% executed in 1.32 secs 1290s # Executing: glib/gvariant.test 1290s ok 47 /gvariant/serialiser/fuzz/9% 1290s # slow test /gvariant/serialiser/fuzz/9% executed in 0.72 secs 1292s ok 48 /gvariant/serialiser/fuzz/13% 1292s # slow test /gvariant/serialiser/fuzz/13% executed in 1.47 secs 1292s ok 49 /gvariant/serialiser/fuzz/17% 1292s # slow test /gvariant/serialiser/fuzz/17% executed in 0.69 secs 1292s # End of fuzz tests 1292s # End of serialiser tests 1292s # Start of utf8 tests 1292s # Start of subprocess tests 1292s # End of subprocess tests 1292s # End of utf8 tests 1292s # Start of varargs tests 1292s # Start of subprocess tests 1292s # End of subprocess tests 1292s # End of varargs tests 1292s # Start of byteswap tests 1292s # /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. 1292s ok 50 /gvariant/byteswap/non-normal-non-aligned 1292s # End of byteswap tests 1292s # Start of parser tests 1292s ok 51 /gvariant/parser/integer-bounds 1292s ok 52 /gvariant/parser/recursion 1292s # Start of recursion tests 1292s ok 53 /gvariant/parser/recursion/typedecls 1292s # /gvariant/parser/recursion/maybes summary: Test that nested maybes are handled correctly when parsing text-form variants 1292s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/2782 1292s # Text form 0: @mmmu 5 1292s # Text form 1: @mmmas ['hello'] 1292s # Text form 2: @mmmu just just nothing 1292s # Text form 3: @mmmas just just nothing 1292s # Text form 4: @mmmu just nothing 1292s # Text form 5: @mmmas just nothing 1292s # Text form 6: @mmmu nothing 1292s # Text form 7: @mmmas nothing 1292s ok 54 /gvariant/parser/recursion/maybes 1292s # End of recursion tests 1292s # End of parser tests 1292s # Start of parse tests 1292s # Start of subprocess tests 1292s # End of subprocess tests 1292s # End of parse tests 1292s # Start of normal-checking tests 1292s ok 55 /gvariant/normal-checking/tuples 1292s ok 56 /gvariant/normal-checking/array-offsets 1292s ok 57 /gvariant/normal-checking/array-offsets2 1292s ok 58 /gvariant/normal-checking/tuple-offsets 1292s ok 59 /gvariant/normal-checking/tuple-offsets2 1292s ok 60 /gvariant/normal-checking/tuple-offsets3 1292s ok 61 /gvariant/normal-checking/tuple-offsets4 1292s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/2840 1292s ok 62 /gvariant/normal-checking/tuple-offsets5 1292s ok 63 /gvariant/normal-checking/empty-object-path 1292s # Start of array-offsets tests 1292s ok 64 /gvariant/normal-checking/array-offsets/overlapped 1292s ok 65 /gvariant/normal-checking/array-offsets/minimal-sized 1292s # End of array-offsets tests 1292s # Start of tuple-offsets tests 1292s ok 66 /gvariant/normal-checking/tuple-offsets/minimal-sized 1292s # End of tuple-offsets tests 1292s # End of normal-checking tests 1292s # Start of recursion-limits tests 1292s ok 67 /gvariant/recursion-limits/variant-in-variant 1292s ok 68 /gvariant/recursion-limits/array-in-variant 1292s # End of recursion-limits tests 1292s # End of gvariant tests 1292s # Start of gvarianttype tests 1292s ok 69 /gvarianttype/hash 1292s # End of gvarianttype tests 1292s ok - glib/gvariant.test 1292s # Running test: glib/date.test 1292s TAP version 14 1292s # random seed: R02Se2f97eb067e44a59c0a2e201c1c12580 1292s 1..122 1292s # Start of date tests 1292s ok 1 /date/basic 1292s ok 2 /date/empty 1292s ok 3 /date/dmy 1292s ok 4 /date/julian 1292s ok 5 /date/compare 1292s ok 6 /date/dates 1293s ok 7 /date/strftime 1293s ok 8 /date/two-digit-years 1293s ok 9 /date/parse 1293s ok 10 /date/parse_locale_change # SKIP locale th_TH not available 1293s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=793550 1293s ok 11 /date/month_substring 1293s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=749206 1293s ok 12 /date/month_names # SKIP libc doesn’t support all alternative month names 1293s ok 13 /date/clamp 1293s ok 14 /date/order 1293s ok 15 /date/copy 1293s # Vector 0: 0000-00-00, invalid 1293s # Vector 1: 0001-01-01, valid 1293s # Vector 2: 0000-01-01, invalid 1293s # Vector 3: 2000-02-30, invalid 1293s # Vector 4: 2000-02-29, valid 1293s # Vector 5: 2001-02-29, invalid 1293s # Vector 6: 65535-01-01, valid 1293s ok 16 /date/valid-dmy 1293s # Considering 2000-01-01 1293s # Considering 2000-01-07 1293s # Considering 2000-01-08 1293s # Considering 2001-01-01 1293s # Considering 2001-01-07 1293s # Considering 2001-01-08 1293s # Considering 2002-01-01 1293s # Considering 2002-01-07 1293s # Considering 2002-01-08 1293s # Considering 2003-01-01 1293s # Considering 2003-01-07 1293s # Considering 2003-01-08 1293s # Considering 2004-01-01 1293s # Considering 2004-01-07 1293s # Considering 2004-01-08 1293s # Considering 2006-01-01 1293s # Considering 2006-01-07 1293s # Considering 2006-01-08 1293s # Considering 2010-01-01 1293s # Considering 2010-01-07 1293s # Considering 2010-01-08 1293s ok 17 /date/week-of-year 1293s # Start of parse tests 1293s # Test 0 1293s # Test 1 1293s ok 18 /date/parse/invalid 1293s # End of parse tests 1293s # Start of year tests 1293s ok 19 /date/year/1 1293s ok 20 /date/year/2 1293s ok 21 /date/year/3 1293s ok 22 /date/year/4 1293s ok 23 /date/year/5 1293s ok 24 /date/year/6 1293s ok 25 /date/year/7 1293s ok 26 /date/year/8 1293s ok 27 /date/year/9 1293s ok 28 /date/year/10 1293s ok 29 /date/year/11 1293s ok 30 /date/year/12 1293s ok 31 /date/year/13 1293s ok 32 /date/year/14 1293s ok 33 /date/year/98 1293s ok 34 /date/year/99 1293s ok 35 /date/year/100 1293s ok 36 /date/year/101 1293s ok 37 /date/year/102 1293s ok 38 /date/year/103 1293s ok 39 /date/year/397 1293s ok 40 /date/year/398 1293s ok 41 /date/year/399 1293s ok 42 /date/year/400 1293s ok 43 /date/year/401 1293s ok 44 /date/year/402 1293s ok 45 /date/year/403 1293s ok 46 /date/year/404 1293s ok 47 /date/year/405 1293s ok 48 /date/year/406 1293s ok 49 /date/year/1598 1293s ok 50 /date/year/1599 1293s ok 51 /date/year/1600 1293s ok 52 /date/year/1601 1293s ok 53 /date/year/1602 1293s ok 54 /date/year/1650 1293s ok 55 /date/year/1651 1293s ok 56 /date/year/1897 1293s ok 57 /date/year/1898 1293s ok 58 /date/year/1899 1293s ok 59 /date/year/1900 1293s ok 60 /date/year/1901 1293s ok 61 /date/year/1902 1293s ok 62 /date/year/1903 1293s ok 63 /date/year/1961 1293s ok 64 /date/year/1962 1293s ok 65 /date/year/1963 1293s ok 66 /date/year/1964 1293s ok 67 /date/year/1965 1293s ok 68 /date/year/1967 1293s ok 69 /date/year/1968 1293s ok 70 /date/year/1969 1293s ok 71 /date/year/1970 1293s ok 72 /date/year/1971 1293s ok 73 /date/year/1972 1293s ok 74 /date/year/1973 1293s ok 75 /date/year/1974 1293s ok 76 /date/year/1975 1293s ok 77 /date/year/1976 1293s ok 78 /date/year/1977 1293s ok 79 /date/year/1978 1293s ok 80 /date/year/1979 1293s ok 81 /date/year/1980 1293s ok 82 /date/year/1981 1293s ok 83 /date/year/1982 1293s ok 84 /date/year/1983 1293s ok 85 /date/year/1984 1293s ok 86 /date/year/1985 1293s ok 87 /date/year/1986 1293s ok 88 /date/year/1987 1293s ok 89 /date/year/1988 1293s ok 90 /date/year/1989 1293s ok 91 /date/year/1990 1293s ok 92 /date/year/1991 1293s ok 93 /date/year/1992 1293s ok 94 /date/year/1993 1293s ok 95 /date/year/1994 1293s ok 96 /date/year/1995 1293s ok 97 /date/year/1996 1293s ok 98 /date/year/1997 1293s ok 99 /date/year/1998 1293s ok 100 /date/year/1999 1293s ok 101 /date/year/2000 1293s ok 102 /date/year/2001 1293s ok 103 /date/year/2002 1293s ok 104 /date/year/2003 1293s ok 105 /date/year/2004 1293s ok 106 /date/year/2005 1293s ok 107 /date/year/2006 1293s ok 108 /date/year/2007 1293s ok 109 /date/year/2008 1293s ok 110 /date/year/2009 1293s ok 111 /date/year/2010 1293s ok 112 /date/year/2011 1293s ok 113 /date/year/2012 1293s ok 114 /date/year/3000 1293s ok 115 /date/year/3001 1293s ok 116 /date/year/3002 1293s ok 117 /date/year/3998 1293s ok 118 /date/year/3999 1293s ok 119 /date/year/4000 1293s ok 120 /date/year/4001 1293s ok 121 /date/year/4002 1293s ok 122 /date/year/4003 1293s # End of year tests 1293s # End of date tests 1293s ok - glib/date.test 1293s # Running test: glib/readwrite.test 1293s TAP version 14 1293s # random seed: R02S54ed8daa8c3b28cbcdc1d93d65a175de 1293s 1..3 1293s # Start of readwrite tests 1293s # GLib-GIO-DEBUG: _g_io_module_get_default: Found default implementation local (GLocalVfs) for ‘gio-vfs’ 1293s ok 1 /readwrite/test_g_file_open_readwrite 1293s ok 2 /readwrite/test_g_file_create_readwrite 1293s ok 3 /readwrite/test_g_file_replace_readwrite 1293s # End of readwrite tests 1293s ok - glib/readwrite.test 1293s # Running test: glib/memory-monitor-poll.test 1293s TAP version 14 1293s # random seed: R02Sa9f622619cc38039c16015ad3618d0fb 1293s 1..4 1293s # Start of memory-monitor-poll tests 1293s # GLib-GIO-DEBUG: _g_io_module_get_default: Found default implementation poll (GMemoryMonitorPoll) for ‘gio-memory-monitor’ 1293s ok 1 /memory-monitor-poll/dup-default 1293s # GLib-GIO-DEBUG: memory free ratio 0.190000 1293s # GLib-GIO-DEBUG: Send low memory signal with warning level 2 1293s ok 2 /memory-monitor-poll/critical-event 1293s # GLib-GIO-DEBUG: memory free ratio 0.290000 1293s # GLib-GIO-DEBUG: Send low memory signal with warning level 1 1293s ok 3 /memory-monitor-poll/medium-event 1293s # GLib-GIO-DEBUG: memory free ratio 0.390000 1293s # GLib-GIO-DEBUG: Send low memory signal with warning level 0 1293s ok 4 /memory-monitor-poll/low-event 1293s # End of memory-monitor-poll tests 1293s ok - glib/memory-monitor-poll.test 1293s # Running test: glib/atomic-c-17.test 1293s TAP version 14 1293s # random seed: R02Sf499a5d67dbef7fe41251023c588eb17 1293s 1..2 1293s # Start of atomic tests 1293s ok 1 /atomic/types 1293s ok 2 /atomic/threaded 1293s # End of atomic tests 1293s ok - glib/atomic-c-17.test 1293s # Running test: glib/markup-collect.test 1293s TAP version 14 1293s # random seed: R02Saa0c16f0c3f7468193522195080aa13e 1293s 1..21 1293s # Start of markup tests 1293s # Start of collect tests 1293s ok 1 /markup/collect/0 1293s ok 2 /markup/collect/1 1293s ok 3 /markup/collect/2 1293s ok 4 /markup/collect/3 1293s ok 5 /markup/collect/4 1293s ok 6 /markup/collect/5 1293s ok 7 /markup/collect/6 1293s ok 8 /markup/collect/7 1293s ok 9 /markup/collect/8 1293s ok 10 /markup/collect/9 1293s ok 11 /markup/collect/10 1293s ok 12 /markup/collect/11 1293s ok 13 /markup/collect/12 1293s ok 14 /markup/collect/13 1293s ok 15 /markup/collect/14 1293s ok 16 /markup/collect/15 1293s ok 17 /markup/collect/16 1293s ok 18 /markup/collect/17 1293s ok 19 /markup/collect/18 1293s ok 20 /markup/collect/19 1293s ok 21 /markup/collect/cleanup 1293s # End of collect tests 1293s # End of markup tests 1293s ok - glib/markup-collect.test 1293s # Running test: glib/assert-msg-test.py.test 1293s TAP version 13 1293s ok 1 __main__.TestAssertMessage.test_gassert 1293s # assert-msg-test: /usr/libexec/installed-tests/glib/assert-msg-test 1293s # tmpdir: /tmp/tmpr_9a9n0l 1293s # Running: ['/usr/libexec/installed-tests/glib/assert-msg-test'] 1293s # Return code: -6 1293s # Output: 1293s # Bail out! GLib:ERROR:../../../glib/tests/assert-msg-test.c:31:main: assertion failed: (42 < 0) 1293s # Error: 1293s # ** 1293s # GLib:ERROR:../../../glib/tests/assert-msg-test.c:31:main: assertion failed: (42 < 0) 1293s ok 2 __main__.TestAssertMessage.test_gdb_gassert # SKIP GDB is not installed, skipping this test! 1293s # assert-msg-test: /usr/libexec/installed-tests/glib/assert-msg-test 1293s # tmpdir: /tmp/tmpax8bxuro 1293s 1..2 1293s ok - glib/assert-msg-test.py.test 1293s # Running test: glib/dump.test 1293s TAP version 14 1293s # random seed: R02Sed142be62195b094d4fa58f35822fef7 1293s 1..4 1293s # Start of dump tests 1293s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_dump_YV9NK3/dump/empty-file/.dirs/home 1293s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_dump_YV9NK3/dump/empty-file/.dirs/cache 1293s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_dump_YV9NK3/dump/empty-file/.dirs/system-config1:/tmp/test_dump_YV9NK3/dump/empty-file/.dirs/system-config2 1293s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_dump_YV9NK3/dump/empty-file/.dirs/config 1293s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_dump_YV9NK3/dump/empty-file/.dirs/system-data1:/tmp/test_dump_YV9NK3/dump/empty-file/.dirs/system-data2 1293s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_dump_YV9NK3/dump/empty-file/.dirs/data 1293s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_dump_YV9NK3/dump/empty-file/.dirs/state 1293s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_dump_YV9NK3/dump/empty-file/.dirs/runtime 1293s ok 1 /dump/empty-file 1293s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_dump_YV9NK3/dump/missing-get-type/.dirs/home 1293s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_dump_YV9NK3/dump/missing-get-type/.dirs/cache 1293s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_dump_YV9NK3/dump/missing-get-type/.dirs/system-config1:/tmp/test_dump_YV9NK3/dump/missing-get-type/.dirs/system-config2 1293s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_dump_YV9NK3/dump/missing-get-type/.dirs/config 1293s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_dump_YV9NK3/dump/missing-get-type/.dirs/system-data1:/tmp/test_dump_YV9NK3/dump/missing-get-type/.dirs/system-data2 1293s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_dump_YV9NK3/dump/missing-get-type/.dirs/data 1293s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_dump_YV9NK3/dump/missing-get-type/.dirs/state 1293s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_dump_YV9NK3/dump/missing-get-type/.dirs/runtime 1293s Invalid GType function: 'does_not_exist_get_type' 1293s ok 2 /dump/missing-get-type 1293s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_dump_YV9NK3/dump/missing-quark/.dirs/home 1293s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_dump_YV9NK3/dump/missing-quark/.dirs/cache 1293s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_dump_YV9NK3/dump/missing-quark/.dirs/system-config1:/tmp/test_dump_YV9NK3/dump/missing-quark/.dirs/system-config2 1293s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_dump_YV9NK3/dump/missing-quark/.dirs/config 1293s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_dump_YV9NK3/dump/missing-quark/.dirs/system-data1:/tmp/test_dump_YV9NK3/dump/missing-quark/.dirs/system-data2 1293s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_dump_YV9NK3/dump/missing-quark/.dirs/data 1293s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_dump_YV9NK3/dump/missing-quark/.dirs/state 1293s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_dump_YV9NK3/dump/missing-quark/.dirs/runtime 1293s Invalid error quark function: 'does_not_exist_error' 1293s ok 3 /dump/missing-quark 1293s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_dump_YV9NK3/dump/basic/.dirs/home 1293s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_dump_YV9NK3/dump/basic/.dirs/cache 1293s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_dump_YV9NK3/dump/basic/.dirs/system-config1:/tmp/test_dump_YV9NK3/dump/basic/.dirs/system-config2 1293s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_dump_YV9NK3/dump/basic/.dirs/config 1293s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_dump_YV9NK3/dump/basic/.dirs/system-data1:/tmp/test_dump_YV9NK3/dump/basic/.dirs/system-data2 1293s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_dump_YV9NK3/dump/basic/.dirs/data 1293s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_dump_YV9NK3/dump/basic/.dirs/state 1293s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_dump_YV9NK3/dump/basic/.dirs/runtime 1293s ok 4 /dump/basic 1293s # End of dump tests 1293s ok - glib/dump.test 1293s # Running test: glib/module-test-plugin.test 1293s TAP version 14 1293s # random seed: R02Sd7f17f9c176d1ca60b7cf8042ab2ddc4 1293s 1..3 1293s # Start of module tests 1293s ok 1 /module/basics 1293s # /module/invalid-libtool-archive summary: Test that opening an invalid .la file fails 1293s ok 2 /module/invalid-libtool-archive 1293s # /module/local-binding summary: Test that binding a library's symbols locally does not add them globally 1293s ok 3 /module/local-binding 1293s # End of module tests 1293s ok - glib/module-test-plugin.test 1293s # Running test: glib/tree.test 1293s TAP version 14 1293s # random seed: R02S6c290685e85cec854edc32b6453457c6 1293s 1..7 1293s # Start of tree tests 1293s ok 1 /tree/search 1293s ok 2 /tree/remove 1293s ok 3 /tree/destroy 1293s ok 4 /tree/traverse 1293s ok 5 /tree/insert 1293s ok 6 /tree/bounds 1293s ok 7 /tree/remove-all 1293s # End of tree tests 1293s ok - glib/tree.test 1293s # Running test: glib/markup-parse.test 1293s TAP version 14 1293s # random seed: R02S8d2f967dfb917b6350c8221cd5cecdf1 1293s 1..71 1293s # Start of markup tests 1293s # Start of parse tests 1293s ok 1 /markup/parse/fail-1.gmarkup 1293s ok 2 /markup/parse/fail-10.gmarkup 1293s ok 3 /markup/parse/fail-11.gmarkup 1293s ok 4 /markup/parse/fail-12.gmarkup 1293s ok 5 /markup/parse/fail-13.gmarkup 1293s ok 6 /markup/parse/fail-14.gmarkup 1293s ok 7 /markup/parse/fail-15.gmarkup 1293s ok 8 /markup/parse/fail-16.gmarkup 1293s ok 9 /markup/parse/fail-17.gmarkup 1293s ok 10 /markup/parse/fail-18.gmarkup 1293s ok 11 /markup/parse/fail-19.gmarkup 1293s ok 12 /markup/parse/fail-2.gmarkup 1293s ok 13 /markup/parse/fail-20.gmarkup 1293s ok 14 /markup/parse/fail-21.gmarkup 1293s ok 15 /markup/parse/fail-22.gmarkup 1293s ok 16 /markup/parse/fail-23.gmarkup 1293s ok 17 /markup/parse/fail-24.gmarkup 1293s ok 18 /markup/parse/fail-25.gmarkup 1293s ok 19 /markup/parse/fail-26.gmarkup 1293s ok 20 /markup/parse/fail-27.gmarkup 1293s ok 21 /markup/parse/fail-28.gmarkup 1293s ok 22 /markup/parse/fail-29.gmarkup 1293s ok 23 /markup/parse/fail-3.gmarkup 1293s ok 24 /markup/parse/fail-30.gmarkup 1293s ok 25 /markup/parse/fail-31.gmarkup 1293s ok 26 /markup/parse/fail-32.gmarkup 1293s ok 27 /markup/parse/fail-33.gmarkup 1293s ok 28 /markup/parse/fail-34.gmarkup 1293s ok 29 /markup/parse/fail-35.gmarkup 1293s ok 30 /markup/parse/fail-36.gmarkup 1293s ok 31 /markup/parse/fail-37.gmarkup 1293s ok 32 /markup/parse/fail-38.gmarkup 1293s ok 33 /markup/parse/fail-39.gmarkup 1293s ok 34 /markup/parse/fail-4.gmarkup 1293s ok 35 /markup/parse/fail-40.gmarkup 1293s ok 36 /markup/parse/fail-41.gmarkup 1293s ok 37 /markup/parse/fail-42.gmarkup 1293s ok 38 /markup/parse/fail-43.gmarkup 1293s ok 39 /markup/parse/fail-44.gmarkup 1293s ok 40 /markup/parse/fail-45.gmarkup 1293s ok 41 /markup/parse/fail-46.gmarkup 1293s ok 42 /markup/parse/fail-47.gmarkup 1293s ok 43 /markup/parse/fail-48.gmarkup 1293s ok 44 /markup/parse/fail-49.gmarkup 1293s ok 45 /markup/parse/fail-5.gmarkup 1293s ok 46 /markup/parse/fail-50.gmarkup 1293s ok 47 /markup/parse/fail-51.gmarkup 1293s ok 48 /markup/parse/fail-52.gmarkup 1293s ok 49 /markup/parse/fail-53.gmarkup 1293s ok 50 /markup/parse/fail-54.gmarkup 1293s ok 51 /markup/parse/fail-6.gmarkup 1293s ok 52 /markup/parse/fail-7.gmarkup 1293s ok 53 /markup/parse/fail-8.gmarkup 1293s ok 54 /markup/parse/fail-9.gmarkup 1293s ok 55 /markup/parse/valid-1.gmarkup 1293s ok 56 /markup/parse/valid-10.gmarkup 1293s ok 57 /markup/parse/valid-11.gmarkup 1293s ok 58 /markup/parse/valid-12.gmarkup 1293s ok 59 /markup/parse/valid-13.gmarkup 1293s ok 60 /markup/parse/valid-14.gmarkup 1293s ok - glib/markup-parse.test 1293s # Running test: glib/defaultvalue.test 1293s ok - glib/defaultvalue.test 1293s ok 61 /markup/parse/valid-15.gmarkup 1293s ok 62 /markup/parse/valid-16.gmarkup 1293s ok 63 /markup/parse/valid-17.gmarkup 1293s ok 64 /markup/parse/valid-2.gmarkup 1293s ok 65 /markup/parse/valid-3.gmarkup 1293s ok 66 /markup/parse/valid-4.gmarkup 1293s ok 67 /markup/parse/valid-5.gmarkup 1293s ok 68 /markup/parse/valid-6.gmarkup 1293s ok 69 /markup/parse/valid-7.gmarkup 1293s ok 70 /markup/parse/valid-8.gmarkup 1293s ok 71 /markup/parse/valid-9.gmarkup 1293s # End of parse tests 1293s # End of markup tests 1293s TAP version 14 1293s # random seed: R02S877b3c97e7a98d39a9c8dd10e5fd63eb 1293s 1..84 1293s # Start of Default Values tests 1293s ok 1 /Default Values/GAppInfoMonitor # SKIP singleton 1293s ok 2 /Default Values/GAppLaunchContext 1293s ok 3 /Default Values/GApplicationCommandLine 1293s # skipping GApplication:is-remote 1293s ok 4 /Default Values/GApplication 1293s ok 5 /Default Values/GBinding # SKIP mandatory construct params 1293s ok 6 /Default Values/GBindingGroup 1293s ok 7 /Default Values/GBufferedInputStream # SKIP mandatory construct params 1293s ok 8 /Default Values/GBufferedOutputStream # SKIP mandatory construct params 1293s ok 9 /Default Values/GBytesIcon 1293s ok 10 /Default Values/GCancellable 1293s ok 11 /Default Values/GCharsetConverter # SKIP mandatory construct params 1293s ok 12 /Default Values/GConverterInputStream # SKIP mandatory construct params 1293s ok 13 /Default Values/GConverterOutputStream # SKIP mandatory construct params 1293s ok 14 /Default Values/GCredentials 1293s ok 15 /Default Values/GDataInputStream # SKIP mandatory construct params 1293s ok 16 /Default Values/GDataOutputStream # SKIP mandatory construct params 1293s ok 17 /Default Values/GDBusActionGroup # SKIP mandatory construct params 1293s ok 18 /Default Values/GDBusAuthObserver 1293s ok 19 /Default Values/GDBusConnection # SKIP mandatory construct params 1293s ok 20 /Default Values/GDBusMenuModel # SKIP crash in finalize 1293s ok 21 /Default Values/GDBusMessage 1293s ok 22 /Default Values/GDBusMethodInvocation # SKIP crash in finalize 1293s ok 23 /Default Values/GDBusObjectManagerClient # SKIP mandatory construct params 1293s ok 24 /Default Values/GDBusObjectManagerServer # SKIP mandatory construct params 1293s ok 25 /Default Values/GDBusObjectProxy 1293s ok 26 /Default Values/GDBusObjectSkeleton 1293s ok 27 /Default Values/GDBusProxy # SKIP mandatory construct params 1293s ok 28 /Default Values/GDBusServer # SKIP mandatory construct params 1293s ok 29 /Default Values/GEmblem 1293s ok 30 /Default Values/GEmblemedIcon 1293s ok 31 /Default Values/GFileEnumerator # SKIP should be abstract 1293s ok 32 /Default Values/GFileInfo 1293s ok 33 /Default Values/GFileInputStream 1293s ok 34 /Default Values/GFileIOStream # SKIP should be abstract 1293s ok 35 /Default Values/GFileOutputStream 1293s ok 36 /Default Values/GFilenameCompleter 1293s ok 37 /Default Values/GInetAddress # SKIP mandatory construct params 1293s ok 38 /Default Values/GInetAddressMask # SKIP initialization failed 1293s ok 39 /Default Values/GInetSocketAddress # SKIP mandatory construct params 1293s ok 40 /Default Values/GInitiallyUnowned 1293s ok 41 /Default Values/GIOModule 1293s ok 42 /Default Values/GListStore 1293s ok 43 /Default Values/GMemoryInputStream 1293s ok 44 /Default Values/GMemoryOutputStream 1293s ok 45 /Default Values/GMenu 1293s ok 46 /Default Values/GMenuItem 1293s ok 47 /Default Values/GMountOperation 1293s ok 48 /Default Values/GNativeSocketAddress 1293s ok 49 /Default Values/GNetworkAddress 1293s ok 50 /Default Values/GNetworkService 1293s ok 51 /Default Values/GNotification 1293s ok 52 /Default Values/GObject 1293s ok 53 /Default Values/GPropertyAction # SKIP mandatory construct params 1293s # GLib-GIO-DEBUG: _g_io_module_get_default: Found default implementation dummy (GDummyProxyResolver) for ‘gio-proxy-resolver’ 1293s # skipping GProxyAddressEnumerator:proxy-resolver 1293s ok 54 /Default Values/GProxyAddressEnumerator 1293s ok 55 /Default Values/GProxyAddress # SKIP mandatory construct params 1293s ok 56 /Default Values/GSettings # SKIP mandatory construct params 1293s ok 57 /Default Values/GSignalGroup 1293s ok 58 /Default Values/GSimpleAction 1293s ok 59 /Default Values/GSimpleActionGroup 1293s ok 60 /Default Values/GSimpleAsyncResult 1293s ok 61 /Default Values/GSimpleIOStream # SKIP mandatory construct params 1293s ok 62 /Default Values/GSimplePermission 1293s ok 63 /Default Values/GSimpleProxyResolver 1293s # skipping GSocketClient:proxy-resolver 1293s ok 64 /Default Values/GSocketClient 1293s ok 65 /Default Values/GSocketConnection # SKIP mandatory construct params 1293s ok 66 /Default Values/GSocket # SKIP initialization failed 1293s ok 67 /Default Values/GSocketListener 1293s ok 68 /Default Values/GSocketService 1293s ok 69 /Default Values/GSubprocess # SKIP initialization failed 1293s ok 70 /Default Values/GSubprocessLauncher 1293s # GLib-GIO-DEBUG: GTask 0x16e80a8 (source object: (nil), source tag: (nil)) finalized without ever returning (using g_task_return_*()). This potentially indicates a bug in the program. 1293s ok 71 /Default Values/GTask 1293s ok 72 /Default Values/GTcpConnection # SKIP mandatory construct params 1293s ok 73 /Default Values/GTcpWrapperConnection # SKIP mandatory construct params 1293s ok 74 /Default Values/GTestDBus 1293s ok 75 /Default Values/GThemedIcon # SKIP mandatory construct params 1293s ok 76 /Default Values/GThreadedSocketService 1293s ok 77 /Default Values/GTlsInteraction 1293s ok 78 /Default Values/GTlsPassword 1293s ok 79 /Default Values/GUnixConnection # SKIP mandatory construct params 1293s ok 80 /Default Values/GUnixFDList 1293s ok 81 /Default Values/GVfs 1293s ok 82 /Default Values/GVolumeMonitor 1293s ok 83 /Default Values/GZlibCompressor 1293s ok 84 /Default Values/GZlibDecompressor 1293s # End of Default Values tests 1293s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1293s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1293s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1293s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1293s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1293s # Running test: glib/threadtests.test 1293s TAP version 14 1293s # random seed: R02S73c0f8bf573eb1925f84efd7437d0bfa 1293s 1..5 1293s # Start of GObject tests 1293s ok 1 /GObject/threaded-object-init 1294s ok 2 /GObject/threaded-weak-ref 1294s # slow test /GObject/threaded-weak-ref executed in 1.09 secs 1294s ok 3 /GObject/threaded-toggle-notify # SKIP Not reliable on 32-bit ARM 1294s ok 4 /GObject/threaded-g-pointer-bit-unlock-and-set 1294s # Start of threaded-weak-ref tests 1294s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/2390 1294s # /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. 1294s ok 5 /GObject/threaded-weak-ref/on-finalization 1294s # End of threaded-weak-ref tests 1294s # End of GObject tests 1294s ok - glib/threadtests.test 1294s # Running test: glib/gdbus-connection.test 1294s TAP version 14 1294s # random seed: R02S7a9a2e6f3a85ca2d82660a6e7cb86627 1294s 1..9 1294s # Start of gdbus tests 1294s # Start of connection tests 1294s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-connection_FJMHK3/gdbus/connection/bus-failure/.dirs/home 1294s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-connection_FJMHK3/gdbus/connection/bus-failure/.dirs/cache 1294s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-connection_FJMHK3/gdbus/connection/bus-failure/.dirs/system-config1:/tmp/test_gdbus-connection_FJMHK3/gdbus/connection/bus-failure/.dirs/system-config2 1294s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-connection_FJMHK3/gdbus/connection/bus-failure/.dirs/config 1294s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-connection_FJMHK3/gdbus/connection/bus-failure/.dirs/system-data1:/tmp/test_gdbus-connection_FJMHK3/gdbus/connection/bus-failure/.dirs/system-data2 1294s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-connection_FJMHK3/gdbus/connection/bus-failure/.dirs/data 1294s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-connection_FJMHK3/gdbus/connection/bus-failure/.dirs/state 1294s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-connection_FJMHK3/gdbus/connection/bus-failure/.dirs/runtime 1294s ok 1 /gdbus/connection/bus-failure 1294s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-connection_FJMHK3/gdbus/connection/basic/.dirs/home 1294s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-connection_FJMHK3/gdbus/connection/basic/.dirs/cache 1294s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-connection_FJMHK3/gdbus/connection/basic/.dirs/system-config1:/tmp/test_gdbus-connection_FJMHK3/gdbus/connection/basic/.dirs/system-config2 1294s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-connection_FJMHK3/gdbus/connection/basic/.dirs/config 1294s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-connection_FJMHK3/gdbus/connection/basic/.dirs/system-data1:/tmp/test_gdbus-connection_FJMHK3/gdbus/connection/basic/.dirs/system-data2 1294s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-connection_FJMHK3/gdbus/connection/basic/.dirs/data 1294s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-connection_FJMHK3/gdbus/connection/basic/.dirs/state 1294s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-connection_FJMHK3/gdbus/connection/basic/.dirs/runtime 1294s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1294s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1294s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1294s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1294s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1294s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1294s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1294s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1294s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1294s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1294s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1294s ok 2 /gdbus/connection/basic 1294s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-connection_FJMHK3/gdbus/connection/life-cycle/.dirs/home 1294s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-connection_FJMHK3/gdbus/connection/life-cycle/.dirs/cache 1294s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-connection_FJMHK3/gdbus/connection/life-cycle/.dirs/system-config1:/tmp/test_gdbus-connection_FJMHK3/gdbus/connection/life-cycle/.dirs/system-config2 1294s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-connection_FJMHK3/gdbus/connection/life-cycle/.dirs/config 1294s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-connection_FJMHK3/gdbus/connection/life-cycle/.dirs/system-data1:/tmp/test_gdbus-connection_FJMHK3/gdbus/connection/life-cycle/.dirs/system-data2 1294s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-connection_FJMHK3/gdbus/connection/life-cycle/.dirs/data 1294s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-connection_FJMHK3/gdbus/connection/life-cycle/.dirs/state 1294s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-connection_FJMHK3/gdbus/connection/life-cycle/.dirs/runtime 1294s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1294s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1294s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1294s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1294s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1294s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1294s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1294s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1294s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1294s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1294s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1294s ok 3 /gdbus/connection/life-cycle 1294s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-connection_FJMHK3/gdbus/connection/send/.dirs/home 1294s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-connection_FJMHK3/gdbus/connection/send/.dirs/cache 1294s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-connection_FJMHK3/gdbus/connection/send/.dirs/system-config1:/tmp/test_gdbus-connection_FJMHK3/gdbus/connection/send/.dirs/system-config2 1294s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-connection_FJMHK3/gdbus/connection/send/.dirs/config 1294s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-connection_FJMHK3/gdbus/connection/send/.dirs/system-data1:/tmp/test_gdbus-connection_FJMHK3/gdbus/connection/send/.dirs/system-data2 1294s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-connection_FJMHK3/gdbus/connection/send/.dirs/data 1294s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-connection_FJMHK3/gdbus/connection/send/.dirs/state 1294s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-connection_FJMHK3/gdbus/connection/send/.dirs/runtime 1294s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1294s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1294s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1294s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1294s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1294s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1294s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1294s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1294s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1294s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1294s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1294s ok 4 /gdbus/connection/send 1294s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-connection_FJMHK3/gdbus/connection/signals/.dirs/home 1294s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-connection_FJMHK3/gdbus/connection/signals/.dirs/cache 1294s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-connection_FJMHK3/gdbus/connection/signals/.dirs/system-config1:/tmp/test_gdbus-connection_FJMHK3/gdbus/connection/signals/.dirs/system-config2 1294s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-connection_FJMHK3/gdbus/connection/signals/.dirs/config 1294s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-connection_FJMHK3/gdbus/connection/signals/.dirs/system-data1:/tmp/test_gdbus-connection_FJMHK3/gdbus/connection/signals/.dirs/system-data2 1294s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-connection_FJMHK3/gdbus/connection/signals/.dirs/data 1294s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-connection_FJMHK3/gdbus/connection/signals/.dirs/state 1294s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-connection_FJMHK3/gdbus/connection/signals/.dirs/runtime 1294s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1294s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1294s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1294s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1294s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1294s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1294s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1294s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1294s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1294s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1294s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1294s ok 5 /gdbus/connection/signals 1294s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-connection_FJMHK3/gdbus/connection/signal-match-rules/.dirs/home 1294s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-connection_FJMHK3/gdbus/connection/signal-match-rules/.dirs/cache 1294s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-connection_FJMHK3/gdbus/connection/signal-match-rules/.dirs/system-config1:/tmp/test_gdbus-connection_FJMHK3/gdbus/connection/signal-match-rules/.dirs/system-config2 1294s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-connection_FJMHK3/gdbus/connection/signal-match-rules/.dirs/config 1294s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-connection_FJMHK3/gdbus/connection/signal-match-rules/.dirs/system-data1:/tmp/test_gdbus-connection_FJMHK3/gdbus/connection/signal-match-rules/.dirs/system-data2 1294s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-connection_FJMHK3/gdbus/connection/signal-match-rules/.dirs/data 1294s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-connection_FJMHK3/gdbus/connection/signal-match-rules/.dirs/state 1294s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-connection_FJMHK3/gdbus/connection/signal-match-rules/.dirs/runtime 1294s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1294s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1294s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1294s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1294s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1294s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1294s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1294s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1294s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1294s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1294s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1294s ok 6 /gdbus/connection/signal-match-rules 1294s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-connection_FJMHK3/gdbus/connection/filter/.dirs/home 1294s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-connection_FJMHK3/gdbus/connection/filter/.dirs/cache 1294s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-connection_FJMHK3/gdbus/connection/filter/.dirs/system-config1:/tmp/test_gdbus-connection_FJMHK3/gdbus/connection/filter/.dirs/system-config2 1294s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-connection_FJMHK3/gdbus/connection/filter/.dirs/config 1294s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-connection_FJMHK3/gdbus/connection/filter/.dirs/system-data1:/tmp/test_gdbus-connection_FJMHK3/gdbus/connection/filter/.dirs/system-data2 1294s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-connection_FJMHK3/gdbus/connection/filter/.dirs/data 1294s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-connection_FJMHK3/gdbus/connection/filter/.dirs/state 1294s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-connection_FJMHK3/gdbus/connection/filter/.dirs/runtime 1294s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1294s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1294s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1294s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1294s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1294s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1294s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1294s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1294s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1294s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1294s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1294s ok 7 /gdbus/connection/filter 1294s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-connection_FJMHK3/gdbus/connection/serials/.dirs/home 1294s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-connection_FJMHK3/gdbus/connection/serials/.dirs/cache 1294s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-connection_FJMHK3/gdbus/connection/serials/.dirs/system-config1:/tmp/test_gdbus-connection_FJMHK3/gdbus/connection/serials/.dirs/system-config2 1294s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-connection_FJMHK3/gdbus/connection/serials/.dirs/config 1294s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-connection_FJMHK3/gdbus/connection/serials/.dirs/system-data1:/tmp/test_gdbus-connection_FJMHK3/gdbus/connection/serials/.dirs/system-data2 1294s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-connection_FJMHK3/gdbus/connection/serials/.dirs/data 1294s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-connection_FJMHK3/gdbus/connection/serials/.dirs/state 1294s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-connection_FJMHK3/gdbus/connection/serials/.dirs/runtime 1294s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1294s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1294s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1294s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1294s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1294s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1295s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1295s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1295s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1295s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1295s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1295s ok 8 /gdbus/connection/serials 1295s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-connection_FJMHK3/gdbus/connection/cancel/.dirs/home 1295s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-connection_FJMHK3/gdbus/connection/cancel/.dirs/cache 1295s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-connection_FJMHK3/gdbus/connection/cancel/.dirs/system-config1:/tmp/test_gdbus-connection_FJMHK3/gdbus/connection/cancel/.dirs/system-config2 1295s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-connection_FJMHK3/gdbus/connection/cancel/.dirs/config 1295s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-connection_FJMHK3/gdbus/connection/cancel/.dirs/system-data1:/tmp/test_gdbus-connection_FJMHK3/gdbus/connection/cancel/.dirs/system-data2 1295s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-connection_FJMHK3/gdbus/connection/cancel/.dirs/data 1295s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-connection_FJMHK3/gdbus/connection/cancel/.dirs/state 1295s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-connection_FJMHK3/gdbus/connection/cancel/.dirs/runtime 1295s # /gdbus/connection/cancel summary: Test that cancelling one of two racing g_bus_get() calls does not cancel the other one 1295s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1295s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1295s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1295s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1295s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1295s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1295s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1295s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1295s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1295s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1295s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1295s ok 9 /gdbus/connection/cancel 1295s # End of connection tests 1295s # End of gdbus tests 1295s ok - glib/gdbus-connection.test 1295s # Running test: glib/objects-refcount2.test 1295s TAP version 14 1295s # random seed: R02Sc3e48fb0685949a3bba8b5a9c105451f 1295s 1..1 1295s # Start of gobject tests 1295s # Start of refcount tests 1295s # init 0x99d3ee8 1295s # 1295s # . 1295s # . 1295s # . 1295s # . 1295s # . 1295s # . 1295s # . 1295s # . 1295s # . 1295s # . 1295s # . 1295s # . 1295s # . 1295s # . 1295s # . 1295s # . 1295s # Executing: glib/objects-refcount2.test 1295s # . 1295s # . 1295s # . 1295s # . 1295s # . 1295s # . 1295s # . 1295s # . 1295s # . 1295s # . 1295s # . 1295s # . 1295s # . 1295s # . 1295s # . 1295s # . 1295s # . 1295s # . 1295s # . 1295s # . 1295s # . 1295s # . 1295s # . 1295s # . 1295s # . 1295s # . 1295s # . 1295s # . 1295s # . 1295s # . 1295s # . 1295s # . 1295s # . 1295s # . 1295s # . 1295s # . 1295s # . 1295s # . 1295s # . 1295s # . 1295s # . 1295s # . 1295s # . 1295s # . 1295s # . 1295s # . 1295s # . 1295s # . 1295s # . 1295s # . 1295s # . 1295s # . 1295s # . 1295s # . 1295s # . 1295s # . 1295s # . 1295s # . 1295s # . 1295s # . 1295s # . 1296s # . 1296s # . 1296s # . 1296s # . 1296s # . 1296s # . 1296s # . 1296s # . 1296s # . 1296s # . 1296s # . 1296s # . 1296s # . 1296s # . 1296s # . 1296s # . 1296s # . 1296s # . 1296s # . 1296s # . 1296s # . 1296s # . 1296s # . 1296s # . 1296s # . 1296s # . 1296s # . 1296s # . 1296s # . 1296s # . 1296s # . 1296s # . 1296s # . 1296s # . 1296s # . 1296s # . 1296s # . 1296s # . 1296s # . 1296s # . 1296s # . 1296s # . 1296s # . 1296s # . 1296s # . 1296s # . 1296s # . 1296s # . 1296s # . 1296s # . 1296s # . 1296s # . 1296s # . 1296s # . 1296s # . 1296s # . 1296s # . 1296s # . 1296s # . 1296s # . 1296s # . 1296s # . 1296s # . 1296s # . 1296s # . 1296s # . 1296s # . 1296s # . 1296s # . 1296s # . 1296s # . 1296s # . 1296s # . 1296s # . 1296s # . 1296s # . 1296s # . 1296s # . 1296s # . 1296s # . 1296s # . 1297s # . 1297s # . 1297s # . 1297s # . 1297s # . 1297s # . 1297s # . 1297s # . 1297s # . 1297s # . 1297s # . 1297s # . 1297s # . 1297s # . 1297s # . 1297s # . 1297s # . 1297s # . 1297s # . 1297s # . 1297s # . 1297s # . 1297s # . 1297s # . 1297s # . 1297s # . 1297s # . 1297s # . 1297s # . 1297s # . 1297s # . 1297s # . 1297s # . 1297s # . 1297s # . 1297s # . 1297s # . 1297s # . 1297s # . 1297s # . 1297s # . 1297s # . 1297s # . 1297s # . 1297s # . 1297s # . 1297s # . 1297s # . 1297s # . 1297s # . 1297s # . 1297s # . 1297s # . 1297s # . 1297s # . 1297s # . 1297s # . 1297s # . 1297s # . 1297s # . 1297s # . 1297s # . 1297s # . 1297s # . 1297s # . 1297s # . 1297s # . 1297s # . 1297s # . 1297s # . 1297s # . 1297s # . 1297s # . 1297s # . 1297s # . 1297s # . 1297s # . 1297s # . 1297s # . 1298s # . 1298s # . 1298s # . 1298s # . 1298s # . 1298s # . 1298s # . 1298s # . 1298s # . 1298s # . 1298s # . 1298s # . 1298s # . 1298s # . 1298s # . 1298s # . 1298s # . 1298s # . 1298s # . 1298s # . 1298s # . 1298s # . 1298s # . 1298s # . 1298s # . 1298s # . 1298s # . 1298s # . 1298s # . 1298s # . 1298s # . 1298s # . 1298s # . 1298s # . 1298s # . 1298s # . 1298s # . 1298s # . 1298s # . 1298s # . 1298s # . 1298s # . 1298s # . 1298s # . 1298s # . 1298s # . 1298s # . 1298s # . 1298s # . 1298s # . 1298s # . 1298s # . 1298s # . 1298s # . 1298s # . 1298s # . 1298s # . 1298s # . 1298s # . 1298s # . 1298s # . 1298s # . 1298s # . 1298s # . 1298s # . 1298s # . 1298s # . 1298s # . 1298s # . 1298s # . 1298s # . 1298s # . 1298s # . 1298s # . 1298s # . 1299s # . 1299s # . 1299s # . 1299s # . 1299s # . 1299s # . 1299s # . 1299s # . 1299s # . 1299s # . 1299s # . 1299s # . 1299s # . 1299s # . 1299s # . 1299s # . 1299s # . 1299s # . 1299s # . 1299s # . 1299s # . 1299s # . 1299s # . 1299s # . 1299s # . 1299s # . 1299s # . 1299s # . 1299s # . 1299s # . 1299s # . 1299s # . 1299s # . 1299s # . 1299s # . 1299s # . 1299s # . 1299s # . 1299s # . 1299s # . 1299s # . 1299s # . 1299s # . 1299s # . 1299s # . 1299s # . 1299s # . 1299s # . 1299s # . 1299s # . 1299s # . 1299s # . 1299s # . 1299s # . 1299s # . 1299s # . 1299s # . 1299s # . 1299s # . 1299s # . 1299s # . 1299s # . 1299s # . 1299s # . 1299s # . 1299s # . 1299s # . 1299s # . 1299s # . 1299s # . 1299s # . 1299s # . 1299s # . 1299s # . 1299s # . 1299s # . 1299s # . 1299s # . 1299s # . 1299s # . 1300s # . 1300s # . 1300s # . 1300s # . 1300s # . 1300s # . 1300s # . 1300s # . 1300s # . 1300s # . 1300s # . 1300s # . 1300s # . 1300s # . 1300s # . 1300s # . 1300s # . 1300s # . 1300s # . 1300s # Executing: glib/objects-refcount2.test 1300s # . 1300s # . 1300s # . 1300s # . 1300s # . 1300s # . 1300s # . 1300s # . 1300s # . 1300s # . 1300s # . 1300s # . 1300s # . 1300s # . 1300s # . 1300s # . 1300s # . 1300s # . 1300s # . 1300s # . 1300s # . 1300s # . 1300s # . 1300s # . 1300s # . 1300s # . 1300s # . 1300s # . 1300s # . 1300s # . 1300s # . 1300s # . 1300s # . 1300s # . 1300s # . 1300s # . 1300s # . 1300s # . 1300s # . 1300s # . 1300s # . 1300s # . 1300s # . 1300s # . 1300s # . 1300s # . 1300s # . 1300s # . 1300s # . 1300s # . 1300s # . 1300s # . 1300s # . 1300s # . 1300s # . 1300s # . 1300s # . 1300s # . 1300s # . 1300s # . 1300s # . 1300s # . 1301s # . 1301s # . 1301s # . 1301s # . 1301s # . 1301s # . 1301s # . 1301s # . 1301s # . 1301s # . 1301s # . 1301s # . 1301s # . 1301s # . 1301s # . 1301s # . 1301s # . 1301s # . 1301s # . 1301s # . 1301s # . 1301s # . 1301s # . 1301s # . 1301s # . 1301s # . 1301s # . 1301s # . 1301s # . 1301s # . 1301s # . 1301s # . 1301s # . 1301s # . 1301s # . 1301s # . 1301s # . 1301s # . 1301s # . 1301s # . 1301s # . 1301s # . 1301s # . 1301s # . 1301s # . 1301s # . 1301s # . 1301s # . 1301s # . 1301s # . 1301s # . 1301s # . 1301s # . 1301s # . 1301s # . 1301s # . 1301s # . 1301s # . 1301s # . 1301s # . 1301s # . 1301s # . 1301s # . 1301s # . 1301s # . 1301s # . 1301s # . 1301s # . 1301s # . 1301s # . 1301s # . 1301s # . 1301s # . 1301s # . 1301s # . 1301s # . 1301s # . 1301s # . 1301s # . 1301s # . 1302s # . 1302s # . 1302s # . 1302s # . 1302s # . 1302s # . 1302s # . 1302s # . 1302s # . 1302s # . 1302s # . 1302s # . 1302s # . 1302s # . 1302s # . 1302s # . 1302s # . 1302s # . 1302s # . 1302s # . 1302s # . 1302s # . 1302s # . 1302s # . 1302s # . 1302s # . 1302s # . 1302s # . 1302s # . 1302s # . 1302s # . 1302s # . 1302s # . 1302s # . 1302s # . 1302s # . 1302s # . 1302s # . 1302s # . 1302s # . 1302s # . 1302s # . 1302s # . 1302s # . 1302s # . 1302s # . 1302s # . 1302s # . 1302s # . 1302s # . 1302s # . 1302s # . 1302s # . 1302s # . 1302s # . 1302s # . 1302s # . 1302s # . 1302s # . 1302s # . 1302s # . 1302s # . 1302s # . 1302s # . 1302s # . 1302s # . 1302s # . 1302s # . 1302s # . 1302s # . 1302s # . 1302s # . 1302s # . 1302s # . 1302s # . 1302s # . 1302s # . 1302s # . 1302s # . 1302s # . 1302s # . 1303s # . 1303s # . 1303s # . 1303s # . 1303s # . 1303s # . 1303s # . 1303s # . 1303s # . 1303s # . 1303s # . 1303s # . 1303s # . 1303s # . 1303s # . 1303s # . 1303s # . 1303s # . 1303s # . 1303s # . 1303s # . 1303s # . 1303s # . 1303s # . 1303s # . 1303s # . 1303s # . 1303s # . 1303s # . 1303s # . 1303s # . 1303s # . 1303s # . 1303s # . 1303s # . 1303s # . 1303s # . 1303s # . 1303s # . 1303s # . 1303s # . 1303s # . 1303s # . 1303s # . 1303s # . 1303s # . 1303s # . 1303s # . 1303s # . 1303s # . 1303s # . 1303s # . 1303s # . 1303s # . 1303s # . 1303s # . 1303s # . 1303s # . 1303s # . 1303s # . 1303s # . 1303s # . 1303s # . 1303s # . 1303s # . 1303s # . 1303s # . 1303s # . 1303s # . 1303s # . 1303s # . 1303s # . 1303s # . 1303s # . 1303s # . 1303s # . 1303s # . 1303s # . 1303s # . 1303s # . 1304s # . 1304s # . 1304s # . 1304s # . 1304s # . 1304s # . 1304s # . 1304s # . 1304s # . 1304s # . 1304s # . 1304s # . 1304s # . 1304s # . 1304s # . 1304s # . 1304s # . 1304s # . 1304s # . 1304s # . 1304s # . 1304s # . 1304s # . 1304s # . 1304s # . 1304s # . 1304s # . 1304s # . 1304s # . 1304s # . 1304s # . 1304s # . 1304s # . 1304s # . 1304s # . 1304s # . 1304s # . 1304s # . 1304s # . 1304s # . 1304s # . 1304s # . 1304s # . 1304s # . 1304s # . 1304s # . 1304s # . 1304s # . 1304s # . 1304s # . 1304s # . 1304s # . 1304s # . 1304s # . 1304s # . 1304s # . 1304s # . 1304s # . 1304s # . 1304s # . 1304s # . 1304s # . 1304s # . 1304s # . 1304s # . 1304s # . 1304s # . 1304s # . 1304s # . 1304s # . 1304s # . 1304s # . 1304s # . 1304s # . 1304s # . 1304s # . 1304s # . 1304s # . 1304s # . 1305s # . 1305s # . 1305s # . 1305s # . 1305s # . 1305s # . 1305s # . 1305s # . 1305s # . 1305s # . 1305s # . 1305s # . 1305s # . 1305s # . 1305s # . 1305s # . 1305s # . 1305s # . 1305s # . 1305s # Executing: glib/objects-refcount2.test 1305s # . 1305s # . 1305s # . 1305s # . 1305s # . 1305s # . 1305s # . 1305s # . 1305s # . 1305s # . 1305s # . 1305s # . 1305s # . 1305s # . 1305s # . 1305s # . 1305s # . 1305s # . 1305s # . 1305s # . 1305s # . 1305s # . 1305s # . 1305s # . 1305s # . 1305s # . 1305s # . 1305s # . 1305s # . 1305s # . 1305s # . 1305s # . 1305s # . 1305s # . 1305s # . 1305s # . 1305s # . 1305s # . 1305s # . 1305s # . 1305s # . 1305s # . 1305s # . 1305s # . 1305s # . 1305s # . 1305s # . 1305s # . 1305s # . 1305s # . 1305s # . 1305s # . 1305s # . 1305s # . 1305s # . 1305s # . 1305s # . 1305s # . 1305s # . 1305s # . 1305s # . 1305s # . 1306s # . 1306s # . 1306s # . 1306s # . 1306s # . 1306s # . 1306s # . 1306s # . 1306s # . 1306s # . 1306s # . 1306s # . 1306s # . 1306s # . 1306s # . 1306s # . 1306s # . 1306s # . 1306s # . 1306s # . 1306s # . 1306s # . 1306s # . 1306s # . 1306s # . 1306s # . 1306s # . 1306s # . 1306s # . 1306s # . 1306s # . 1306s # . 1306s # . 1306s # . 1306s # . 1306s # . 1306s # . 1306s # . 1306s # . 1306s # . 1306s # . 1306s # . 1306s # . 1306s # . 1306s # . 1306s # . 1306s # . 1306s # . 1306s # . 1306s # . 1306s # . 1306s # . 1306s # . 1306s # . 1306s # . 1306s # . 1306s # . 1306s # . 1306s # . 1306s # . 1306s # . 1306s # . 1306s # . 1306s # . 1306s # . 1306s # . 1306s # . 1306s # . 1306s # . 1306s # . 1306s # . 1306s # . 1306s # . 1306s # . 1306s # . 1306s # . 1306s # . 1306s # . 1306s # . 1306s # . 1307s # . 1307s # . 1307s # . 1307s # . 1307s # . 1307s # . 1307s # . 1307s # . 1307s # . 1307s # . 1307s # . 1307s # . 1307s # . 1307s # . 1307s # . 1307s # . 1307s # . 1307s # . 1307s # . 1307s # . 1307s # . 1307s # . 1307s # . 1307s # . 1307s # . 1307s # . 1307s # . 1307s # . 1307s # . 1307s # . 1307s # . 1307s # . 1307s # . 1307s # . 1307s # . 1307s # . 1307s # . 1307s # . 1307s # . 1307s # . 1307s # . 1307s # . 1307s # . 1307s # . 1307s # . 1307s # . 1307s # dispose 0x99d3ee8! 1307s # 1307s ok 1 /gobject/refcount/object-advanced 1307s # slow test /gobject/refcount/object-advanced executed in 12.56 secs 1307s # End of refcount tests 1307s # End of gobject tests 1307s ok - glib/objects-refcount2.test 1307s # Running test: glib/memory-monitor-portal.test 1308s TAP version 13 1308s ok 1 __main__.TestLowMemoryMonitorPortal.test_low_memory_warning_portal_signal # SKIP xdg-desktop-portal not available 1308s 1..1 1308s ok - glib/memory-monitor-portal.test 1308s # Running test: glib/data-input-stream.test 1308s TAP version 14 1308s # random seed: R02S5da58dd63ee385df3c26ea36c6cfa421 1308s 1..10 1308s # Start of data-input-stream tests 1308s ok 1 /data-input-stream/basic 1308s ok 2 /data-input-stream/read-lines-LF 1308s ok 3 /data-input-stream/read-lines-LF-valid-utf8 1308s ok 4 /data-input-stream/read-lines-LF-invalid-utf8 1308s ok 5 /data-input-stream/read-lines-CR 1308s ok 6 /data-input-stream/read-lines-CR-LF 1308s ok 7 /data-input-stream/read-lines-any 1308s ok 8 /data-input-stream/read-until 1308s # Test vector 0: part1 # part2 $ part3 ? part4 ? and #$?^ 1308s # Test vector 1: {"key": "value"}? and ? 1308s ok 9 /data-input-stream/read-upto 1308s ok 10 /data-input-stream/read-int 1308s # End of data-input-stream tests 1308s ok - glib/data-input-stream.test 1308s # Running test: glib/value.test 1308s TAP version 14 1308s # random seed: R02S3edabb2d415cec9607d7f1dc373d65ed 1308s 1..9 1308s # Start of value tests 1308s ok 1 /value/basic 1308s ok 2 /value/collection 1308s ok 3 /value/copying 1308s ok 4 /value/enum-transformation 1308s ok 5 /value/gtype 1308s # /value/string summary: Test that G_TYPE_STRING GValue copy properly 1308s ok 6 /value/string 1308s # Next: GObject object in GValue of GObject to GValue of GObject 1308s # Next: GObject object in GValue of GObject to GValue of TestInterface 1308s # Next: GObject object in GValue of GObject to GValue of TestObjectA 1308s # Next: GObject object in GValue of GObject to GValue of TestObjectB 1308s # Next: GObject object in GValue of GObject to GValue of TestObjectA1 1308s # Next: GObject object in GValue of GObject to GValue of TestObjectA2 1308s # Next: TestObjectA object in GValue of GObject to GValue of GObject 1308s # Next: TestObjectA object in GValue of GObject to GValue of TestInterface 1308s # Next: TestObjectA object in GValue of GObject to GValue of TestObjectA 1308s # Next: TestObjectA object in GValue of GObject to GValue of TestObjectB 1308s # Next: TestObjectA object in GValue of GObject to GValue of TestObjectA1 1308s # Next: TestObjectA object in GValue of GObject to GValue of TestObjectA2 1308s # Next: TestObjectA object in GValue of TestObjectA to GValue of GObject 1308s # Next: TestObjectA object in GValue of TestObjectA to GValue of TestInterface 1308s # Next: TestObjectA object in GValue of TestObjectA to GValue of TestObjectA 1308s # Next: TestObjectA object in GValue of TestObjectA to GValue of TestObjectB 1308s # Next: TestObjectA object in GValue of TestObjectA to GValue of TestObjectA1 1308s # Next: TestObjectA object in GValue of TestObjectA to GValue of TestObjectA2 1308s # Next: TestObjectB object in GValue of GObject to GValue of GObject 1308s # Next: TestObjectB object in GValue of GObject to GValue of TestInterface 1308s # Next: TestObjectB object in GValue of GObject to GValue of TestObjectA 1308s # Next: TestObjectB object in GValue of GObject to GValue of TestObjectB 1308s # Next: TestObjectB object in GValue of GObject to GValue of TestObjectA1 1308s # Next: TestObjectB object in GValue of GObject to GValue of TestObjectA2 1308s # Next: TestObjectB object in GValue of TestInterface to GValue of GObject 1308s # Next: TestObjectB object in GValue of TestInterface to GValue of TestInterface 1308s # Next: TestObjectB object in GValue of TestInterface to GValue of TestObjectA 1308s # Next: TestObjectB object in GValue of TestInterface to GValue of TestObjectB 1308s # Next: TestObjectB object in GValue of TestInterface to GValue of TestObjectA1 1308s # Next: TestObjectB object in GValue of TestInterface to GValue of TestObjectA2 1308s # Next: TestObjectB object in GValue of TestObjectB to GValue of GObject 1308s # Next: TestObjectB object in GValue of TestObjectB to GValue of TestInterface 1308s # Next: TestObjectB object in GValue of TestObjectB to GValue of TestObjectA 1308s # Next: TestObjectB object in GValue of TestObjectB to GValue of TestObjectB 1308s # Next: TestObjectB object in GValue of TestObjectB to GValue of TestObjectA1 1308s # Next: TestObjectB object in GValue of TestObjectB to GValue of TestObjectA2 1308s # Next: TestObjectA1 object in GValue of GObject to GValue of GObject 1308s # Next: TestObjectA1 object in GValue of GObject to GValue of TestInterface 1308s # Next: TestObjectA1 object in GValue of GObject to GValue of TestObjectA 1308s # Next: TestObjectA1 object in GValue of GObject to GValue of TestObjectB 1308s # Next: TestObjectA1 object in GValue of GObject to GValue of TestObjectA1 1308s # Next: TestObjectA1 object in GValue of GObject to GValue of TestObjectA2 1308s # Next: TestObjectA1 object in GValue of TestObjectA to GValue of GObject 1308s # Next: TestObjectA1 object in GValue of TestObjectA to GValue of TestInterface 1308s # Next: TestObjectA1 object in GValue of TestObjectA to GValue of TestObjectA 1308s # Next: TestObjectA1 object in GValue of TestObjectA to GValue of TestObjectB 1308s # Next: TestObjectA1 object in GValue of TestObjectA to GValue of TestObjectA1 1308s # Next: TestObjectA1 object in GValue of TestObjectA to GValue of TestObjectA2 1308s # Next: TestObjectA1 object in GValue of TestObjectA1 to GValue of GObject 1308s # Next: TestObjectA1 object in GValue of TestObjectA1 to GValue of TestInterface 1308s # Next: TestObjectA1 object in GValue of TestObjectA1 to GValue of TestObjectA 1308s # Next: TestObjectA1 object in GValue of TestObjectA1 to GValue of TestObjectB 1308s # Next: TestObjectA1 object in GValue of TestObjectA1 to GValue of TestObjectA1 1308s # Next: TestObjectA1 object in GValue of TestObjectA1 to GValue of TestObjectA2 1308s # Next: TestObjectA2 object in GValue of GObject to GValue of GObject 1308s # Next: TestObjectA2 object in GValue of GObject to GValue of TestInterface 1308s # Next: TestObjectA2 object in GValue of GObject to GValue of TestObjectA 1308s # Next: TestObjectA2 object in GValue of GObject to GValue of TestObjectB 1308s # Next: TestObjectA2 object in GValue of GObject to GValue of TestObjectA1 1308s # Next: TestObjectA2 object in GValue of GObject to GValue of TestObjectA2 1308s # Next: TestObjectA2 object in GValue of TestInterface to GValue of GObject 1308s # Next: TestObjectA2 object in GValue of TestInterface to GValue of TestInterface 1308s # Next: TestObjectA2 object in GValue of TestInterface to GValue of TestObjectA 1308s # Next: TestObjectA2 object in GValue of TestInterface to GValue of TestObjectB 1308s # Next: TestObjectA2 object in GValue of TestInterface to GValue of TestObjectA1 1308s # Next: TestObjectA2 object in GValue of TestInterface to GValue of TestObjectA2 1308s # Next: TestObjectA2 object in GValue of TestObjectA to GValue of GObject 1308s # Next: TestObjectA2 object in GValue of TestObjectA to GValue of TestInterface 1308s # Next: TestObjectA2 object in GValue of TestObjectA to GValue of TestObjectA 1308s # Next: TestObjectA2 object in GValue of TestObjectA to GValue of TestObjectB 1308s # Next: TestObjectA2 object in GValue of TestObjectA to GValue of TestObjectA1 1308s # Next: TestObjectA2 object in GValue of TestObjectA to GValue of TestObjectA2 1308s # Next: TestObjectA2 object in GValue of TestObjectA2 to GValue of GObject 1308s # Next: TestObjectA2 object in GValue of TestObjectA2 to GValue of TestInterface 1308s # Next: TestObjectA2 object in GValue of TestObjectA2 to GValue of TestObjectA 1308s # Next: TestObjectA2 object in GValue of TestObjectA2 to GValue of TestObjectB 1308s # Next: TestObjectA2 object in GValue of TestObjectA2 to GValue of TestObjectA1 1308s # Next: TestObjectA2 object in GValue of TestObjectA2 to GValue of TestObjectA2 1308s ok 7 /value/transform-object 1308s # Start of array tests 1308s ok 8 /value/array/basic 1308s ok 9 /value/array/sort-with-data 1308s # End of array tests 1308s # End of value tests 1308s ok - glib/value.test 1308s # Running test: glib/option-context.test 1308s TAP version 14 1308s # random seed: R02S75686010b661bd1c76607feab960b03b 1308s 1..61 1308s # Start of option tests 1308s ok 1 /option/basic 1308s ok 2 /option/translate 1308s ok 3 /option/strict-posix 1308s # Testing command: program --double abc 1308s # Testing command: program --double 2e309 1308s # Testing command: program --int abc 1308s # Testing command: program --int 99999999999999999999999999999999999 1308s # Testing command: program --int64 abc 1308s # Testing command: program --int64 99999999999999999999999999999999999 1308s ok 4 /option/parsing-errors 1308s # Start of help tests 1308s ok 5 /option/help/options 1308s ok 6 /option/help/no-options 1308s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=697652 1308s ok 7 /option/help/no-help-options 1308s # Usage: 1308s # /usr/libexec/installed-tests/glib/option-context [OPTION…] blabla 1308s # 1308s # Summary 1308s # 1308s # Help Options: 1308s # -h, --help Show help options 1308s # 1308s # Application Options: 1308s # -t, --test=Argument to use in test (deprecated) Test tests 1308s # --test2 Tests also 1308s # 1308s # Description 1308s # 1308s ok 8 /option/help/deprecated 1308s ok 9 /option/help/main-get_help-format 1308s ok 10 /option/help/group-get_help-format 1308s # End of help tests 1308s # Start of group tests 1308s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=504142 1308s ok 11 /option/group/captions 1308s ok 12 /option/group/main 1308s ok 13 /option/group/error-hook 1308s ok 14 /option/group/parse 1308s # Start of captions tests 1308s # Start of subprocess tests 1308s # End of subprocess tests 1308s # End of captions tests 1308s # End of group tests 1308s # Start of restoration tests 1308s ok 15 /option/restoration/int 1308s ok 16 /option/restoration/string 1308s ok 17 /option/restoration/boolean 1308s # End of restoration tests 1308s # Start of arg tests 1308s ok 18 /option/arg/reverse-string 1308s ok 19 /option/arg/optional-int 1308s # Start of repetition tests 1308s ok 20 /option/arg/repetition/int 1308s ok 21 /option/arg/repetition/string 1308s ok 22 /option/arg/repetition/filename 1308s ok 23 /option/arg/repetition/double 1308s ok 24 /option/arg/repetition/locale 1308s ok 25 /option/arg/repetition/int64 1308s # End of repetition tests 1308s # Start of array tests 1308s ok 26 /option/arg/array/string 1308s # End of array tests 1308s # Start of callback tests 1308s ok 27 /option/arg/callback/string 1308s ok 28 /option/arg/callback/count 1308s ok 29 /option/arg/callback/optional1 1308s ok 30 /option/arg/callback/optional2 1308s ok 31 /option/arg/callback/optional3 1308s ok 32 /option/arg/callback/optional4 1308s ok 33 /option/arg/callback/optional5 1308s ok 34 /option/arg/callback/optional6 1308s ok 35 /option/arg/callback/optional7 1308s ok 36 /option/arg/callback/optional8 1308s # End of callback tests 1308s # Start of remaining tests 1308s ok 37 /option/arg/remaining/callback 1308s ok 38 /option/arg/remaining/callback-false 1308s ok 39 /option/arg/remaining/non-option 1308s ok 40 /option/arg/remaining/separator 1308s ok 41 /option/arg/remaining/array 1308s # End of remaining tests 1308s # Start of ignore tests 1308s ok 42 /option/arg/ignore/long 1308s ok 43 /option/arg/ignore/short 1308s ok 44 /option/arg/ignore/arg 1308s # End of ignore tests 1308s # Start of rest tests 1308s ok 45 /option/arg/rest/non-option 1308s ok 46 /option/arg/rest/separator1 1308s ok 47 /option/arg/rest/separator2 1308s ok 48 /option/arg/rest/separator3 1308s ok 49 /option/arg/rest/separator4 1308s ok 50 /option/arg/rest/separator5 1308s # End of rest tests 1308s # End of arg tests 1308s # Start of context tests 1308s ok 51 /option/context/add 1308s ok 52 /option/context/empty2 1308s ok 53 /option/context/empty3 1308s # End of context tests 1308s # Start of bug tests 1308s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=166609 1308s ok 54 /option/bug/unknown-short 1308s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=168008 1308s ok 55 /option/bug/lonely-dash 1308s ok 56 /option/bug/triple-dash 1308s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=305576 1308s ok 57 /option/bug/missing-arg 1308s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=577638 1308s ok 58 /option/bug/dash-arg 1308s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=729563 1308s ok 59 /option/bug/short-remaining 1308s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=646926 1308s ok 60 /option/bug/double-free 1308s ok 61 /option/bug/double-zero 1308s # End of bug tests 1308s # End of option tests 1308s ok - glib/option-context.test 1308s # Running test: glib/gdbus-server-auth.test 1308s TAP version 14 1308s # random seed: R02S60f7c373bbb033c843ab1ebb1d812170 1308s 1..9 1308s # Start of gdbus tests 1308s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-server-auth_MBC7J3/gdbus/server-auth/.dirs/home 1308s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-server-auth_MBC7J3/gdbus/server-auth/.dirs/cache 1308s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-server-auth_MBC7J3/gdbus/server-auth/.dirs/system-config1:/tmp/test_gdbus-server-auth_MBC7J3/gdbus/server-auth/.dirs/system-config2 1308s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-server-auth_MBC7J3/gdbus/server-auth/.dirs/config 1308s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-server-auth_MBC7J3/gdbus/server-auth/.dirs/system-data1:/tmp/test_gdbus-server-auth_MBC7J3/gdbus/server-auth/.dirs/system-data2 1308s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-server-auth_MBC7J3/gdbus/server-auth/.dirs/data 1308s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-server-auth_MBC7J3/gdbus/server-auth/.dirs/state 1308s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-server-auth_MBC7J3/gdbus/server-auth/.dirs/runtime 1308s # Testing GDBus server at unix:dir=/tmp/test_gdbus-server-auth_MBC7J3/gdbus-server-auth-82B7J3 / libdbus client, with flags: external:false anonymous:false sha1:false abstract:false tcp:false 1308s # Connectable address: unix:path=/tmp/test_gdbus-server-auth_MBC7J3/gdbus-server-auth-82B7J3/dbus-O1EWcgi3 1308s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1308s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1308s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1308s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=38776,uid=1000,gid=1000 1308s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=38776,uid=1000,gid=1000 1308s # GLib-GIO-DEBUG: Server says GDBus client is uid 1000, pid 38776 1308s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1308s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1308s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1308s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1308s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=38776,uid=1000,gid=1000 1308s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=38776,uid=1000,gid=1000 1308s # GLib-GIO-DEBUG: Server says libdbus client 0 is uid 1000, pid 38776 1308s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1308s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1308s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1308s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1308s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=38776,uid=1000,gid=1000 1308s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=38776,uid=1000,gid=1000 1308s # GLib-GIO-DEBUG: Server says libdbus client 1 is uid 1000, pid 38776 1308s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1308s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1308s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1308s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1308s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=38776,uid=1000,gid=1000 1308s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=38776,uid=1000,gid=1000 1308s # GLib-GIO-DEBUG: Server says libdbus client 2 is uid 1000, pid 38776 1308s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1308s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1308s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1308s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1308s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=38776,uid=1000,gid=1000 1308s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=38776,uid=1000,gid=1000 1308s # GLib-GIO-DEBUG: Server says libdbus client 3 is uid 1000, pid 38776 1308s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1308s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1308s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1308s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1308s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=38776,uid=1000,gid=1000 1308s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=38776,uid=1000,gid=1000 1308s # GLib-GIO-DEBUG: Server says libdbus client 4 is uid 1000, pid 38776 1308s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1308s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1308s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1308s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1308s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=38776,uid=1000,gid=1000 1308s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=38776,uid=1000,gid=1000 1308s # GLib-GIO-DEBUG: Server says libdbus client 5 is uid 1000, pid 38776 1308s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1308s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1308s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1308s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1308s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=38776,uid=1000,gid=1000 1308s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=38776,uid=1000,gid=1000 1308s # GLib-GIO-DEBUG: Server says libdbus client 6 is uid 1000, pid 38776 1308s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1308s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1308s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1308s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1308s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=38776,uid=1000,gid=1000 1308s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=38776,uid=1000,gid=1000 1308s # GLib-GIO-DEBUG: Server says libdbus client 7 is uid 1000, pid 38776 1308s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1308s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1308s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1308s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1308s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=38776,uid=1000,gid=1000 1308s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=38776,uid=1000,gid=1000 1308s # GLib-GIO-DEBUG: Server says libdbus client 8 is uid 1000, pid 38776 1308s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1308s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1308s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1308s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1308s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=38776,uid=1000,gid=1000 1308s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=38776,uid=1000,gid=1000 1308s # GLib-GIO-DEBUG: Server says libdbus client 9 is uid 1000, pid 38776 1308s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1308s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1308s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1308s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1308s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=38776,uid=1000,gid=1000 1308s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=38776,uid=1000,gid=1000 1308s # GLib-GIO-DEBUG: Server says libdbus client 10 is uid 1000, pid 38776 1308s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1308s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1308s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1308s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1308s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=38776,uid=1000,gid=1000 1308s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=38776,uid=1000,gid=1000 1308s # GLib-GIO-DEBUG: Server says libdbus client 11 is uid 1000, pid 38776 1308s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1308s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1308s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1308s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1308s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=38776,uid=1000,gid=1000 1308s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=38776,uid=1000,gid=1000 1308s # GLib-GIO-DEBUG: Server says libdbus client 12 is uid 1000, pid 38776 1308s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1308s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1308s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1308s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1308s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=38776,uid=1000,gid=1000 1308s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=38776,uid=1000,gid=1000 1308s # GLib-GIO-DEBUG: Server says libdbus client 13 is uid 1000, pid 38776 1308s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1308s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1308s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1308s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1308s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=38776,uid=1000,gid=1000 1308s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=38776,uid=1000,gid=1000 1308s # GLib-GIO-DEBUG: Server says libdbus client 14 is uid 1000, pid 38776 1308s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1308s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1308s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1308s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1308s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=38776,uid=1000,gid=1000 1308s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=38776,uid=1000,gid=1000 1308s # GLib-GIO-DEBUG: Server says libdbus client 15 is uid 1000, pid 38776 1308s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1308s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1308s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1308s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1308s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=38776,uid=1000,gid=1000 1308s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=38776,uid=1000,gid=1000 1308s # GLib-GIO-DEBUG: Server says libdbus client 16 is uid 1000, pid 38776 1308s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1308s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1308s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1308s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1308s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=38776,uid=1000,gid=1000 1308s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=38776,uid=1000,gid=1000 1308s # GLib-GIO-DEBUG: Server says libdbus client 17 is uid 1000, pid 38776 1308s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1308s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1308s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1308s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1308s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=38776,uid=1000,gid=1000 1308s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=38776,uid=1000,gid=1000 1308s # GLib-GIO-DEBUG: Server says libdbus client 18 is uid 1000, pid 38776 1308s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1308s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1308s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1308s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1308s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=38776,uid=1000,gid=1000 1308s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=38776,uid=1000,gid=1000 1308s # GLib-GIO-DEBUG: Server says libdbus client 19 is uid 1000, pid 38776 1308s ok 1 /gdbus/server-auth 1308s # Start of server-auth tests 1308s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-server-auth_MBC7J3/gdbus/server-auth/abstract/.dirs/home 1308s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-server-auth_MBC7J3/gdbus/server-auth/abstract/.dirs/cache 1308s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-server-auth_MBC7J3/gdbus/server-auth/abstract/.dirs/system-config1:/tmp/test_gdbus-server-auth_MBC7J3/gdbus/server-auth/abstract/.dirs/system-config2 1308s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-server-auth_MBC7J3/gdbus/server-auth/abstract/.dirs/config 1308s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-server-auth_MBC7J3/gdbus/server-auth/abstract/.dirs/system-data1:/tmp/test_gdbus-server-auth_MBC7J3/gdbus/server-auth/abstract/.dirs/system-data2 1308s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-server-auth_MBC7J3/gdbus/server-auth/abstract/.dirs/data 1308s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-server-auth_MBC7J3/gdbus/server-auth/abstract/.dirs/state 1308s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-server-auth_MBC7J3/gdbus/server-auth/abstract/.dirs/runtime 1308s # Testing GDBus server at unix:tmpdir=/tmp/test_gdbus-server-auth_MBC7J3/gdbus-server-auth-R0Z4J3 / libdbus client, with flags: external:false anonymous:false sha1:false abstract:true tcp:false 1308s # Connectable address: unix:path=/tmp/test_gdbus-server-auth_MBC7J3/gdbus-server-auth-R0Z4J3/dbus-oXnYqjJu 1308s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1308s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1308s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1308s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=38776,uid=1000,gid=1000 1308s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=38776,uid=1000,gid=1000 1308s # GLib-GIO-DEBUG: Server says GDBus client is uid 1000, pid 38776 1308s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1308s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1308s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1308s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1308s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=38776,uid=1000,gid=1000 1308s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=38776,uid=1000,gid=1000 1308s # GLib-GIO-DEBUG: Server says libdbus client 0 is uid 1000, pid 38776 1308s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1308s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1308s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1308s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1308s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=38776,uid=1000,gid=1000 1308s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=38776,uid=1000,gid=1000 1308s # GLib-GIO-DEBUG: Server says libdbus client 1 is uid 1000, pid 38776 1308s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1308s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1308s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1308s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1308s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=38776,uid=1000,gid=1000 1308s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=38776,uid=1000,gid=1000 1308s # GLib-GIO-DEBUG: Server says libdbus client 2 is uid 1000, pid 38776 1308s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1308s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1308s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1308s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1308s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=38776,uid=1000,gid=1000 1308s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=38776,uid=1000,gid=1000 1308s # GLib-GIO-DEBUG: Server says libdbus client 3 is uid 1000, pid 38776 1308s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1308s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1308s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1308s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1308s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=38776,uid=1000,gid=1000 1308s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=38776,uid=1000,gid=1000 1308s # GLib-GIO-DEBUG: Server says libdbus client 4 is uid 1000, pid 38776 1308s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1308s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1308s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1308s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1308s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=38776,uid=1000,gid=1000 1308s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=38776,uid=1000,gid=1000 1308s # GLib-GIO-DEBUG: Server says libdbus client 5 is uid 1000, pid 38776 1308s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1308s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1308s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1308s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1308s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=38776,uid=1000,gid=1000 1308s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=38776,uid=1000,gid=1000 1308s # GLib-GIO-DEBUG: Server says libdbus client 6 is uid 1000, pid 38776 1308s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1308s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1308s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1308s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1308s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=38776,uid=1000,gid=1000 1308s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=38776,uid=1000,gid=1000 1308s # GLib-GIO-DEBUG: Server says libdbus client 7 is uid 1000, pid 38776 1308s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1308s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1308s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1308s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1308s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=38776,uid=1000,gid=1000 1308s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=38776,uid=1000,gid=1000 1308s # GLib-GIO-DEBUG: Server says libdbus client 8 is uid 1000, pid 38776 1308s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1308s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1308s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1308s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1308s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=38776,uid=1000,gid=1000 1308s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=38776,uid=1000,gid=1000 1308s # GLib-GIO-DEBUG: Server says libdbus client 9 is uid 1000, pid 38776 1308s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1308s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1308s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1308s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1308s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=38776,uid=1000,gid=1000 1308s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=38776,uid=1000,gid=1000 1308s # GLib-GIO-DEBUG: Server says libdbus client 10 is uid 1000, pid 38776 1308s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1308s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1308s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1308s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1308s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=38776,uid=1000,gid=1000 1308s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=38776,uid=1000,gid=1000 1308s # GLib-GIO-DEBUG: Server says libdbus client 11 is uid 1000, pid 38776 1308s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1308s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1308s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1308s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1308s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=38776,uid=1000,gid=1000 1308s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=38776,uid=1000,gid=1000 1308s # GLib-GIO-DEBUG: Server says libdbus client 12 is uid 1000, pid 38776 1308s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1308s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1308s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1308s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1308s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=38776,uid=1000,gid=1000 1308s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=38776,uid=1000,gid=1000 1308s # GLib-GIO-DEBUG: Server says libdbus client 13 is uid 1000, pid 38776 1308s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1308s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1308s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1308s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1308s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=38776,uid=1000,gid=1000 1308s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=38776,uid=1000,gid=1000 1308s # GLib-GIO-DEBUG: Server says libdbus client 14 is uid 1000, pid 38776 1308s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1308s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1308s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1308s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1308s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=38776,uid=1000,gid=1000 1308s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=38776,uid=1000,gid=1000 1308s # GLib-GIO-DEBUG: Server says libdbus client 15 is uid 1000, pid 38776 1308s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1308s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1308s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1308s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1308s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=38776,uid=1000,gid=1000 1308s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=38776,uid=1000,gid=1000 1308s # GLib-GIO-DEBUG: Server says libdbus client 16 is uid 1000, pid 38776 1308s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1308s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1308s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1308s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1308s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=38776,uid=1000,gid=1000 1308s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=38776,uid=1000,gid=1000 1308s # GLib-GIO-DEBUG: Server says libdbus client 17 is uid 1000, pid 38776 1308s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1308s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1308s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1308s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1308s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=38776,uid=1000,gid=1000 1308s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=38776,uid=1000,gid=1000 1308s # GLib-GIO-DEBUG: Server says libdbus client 18 is uid 1000, pid 38776 1308s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1308s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1308s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1308s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1308s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=38776,uid=1000,gid=1000 1308s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=38776,uid=1000,gid=1000 1308s # GLib-GIO-DEBUG: Server says libdbus client 19 is uid 1000, pid 38776 1308s ok 2 /gdbus/server-auth/abstract 1308s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-server-auth_MBC7J3/gdbus/server-auth/tcp/.dirs/home 1308s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-server-auth_MBC7J3/gdbus/server-auth/tcp/.dirs/cache 1308s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-server-auth_MBC7J3/gdbus/server-auth/tcp/.dirs/system-config1:/tmp/test_gdbus-server-auth_MBC7J3/gdbus/server-auth/tcp/.dirs/system-config2 1308s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-server-auth_MBC7J3/gdbus/server-auth/tcp/.dirs/config 1308s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-server-auth_MBC7J3/gdbus/server-auth/tcp/.dirs/system-data1:/tmp/test_gdbus-server-auth_MBC7J3/gdbus/server-auth/tcp/.dirs/system-data2 1308s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-server-auth_MBC7J3/gdbus/server-auth/tcp/.dirs/data 1308s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-server-auth_MBC7J3/gdbus/server-auth/tcp/.dirs/state 1308s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-server-auth_MBC7J3/gdbus/server-auth/tcp/.dirs/runtime 1308s # Testing GDBus server at tcp:host=127.0.0.1 / libdbus client, with flags: external:false anonymous:false sha1:false abstract:false tcp:true 1308s ok 3 /gdbus/server-auth/tcp # SKIP https://gitlab.gnome.org/GNOME/glib/-/issues/2206 1308s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-server-auth_MBC7J3/gdbus/server-auth/anonymous/.dirs/home 1308s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-server-auth_MBC7J3/gdbus/server-auth/anonymous/.dirs/cache 1308s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-server-auth_MBC7J3/gdbus/server-auth/anonymous/.dirs/system-config1:/tmp/test_gdbus-server-auth_MBC7J3/gdbus/server-auth/anonymous/.dirs/system-config2 1308s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-server-auth_MBC7J3/gdbus/server-auth/anonymous/.dirs/config 1308s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-server-auth_MBC7J3/gdbus/server-auth/anonymous/.dirs/system-data1:/tmp/test_gdbus-server-auth_MBC7J3/gdbus/server-auth/anonymous/.dirs/system-data2 1308s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-server-auth_MBC7J3/gdbus/server-auth/anonymous/.dirs/data 1308s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-server-auth_MBC7J3/gdbus/server-auth/anonymous/.dirs/state 1308s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-server-auth_MBC7J3/gdbus/server-auth/anonymous/.dirs/runtime 1308s # Testing GDBus server at unix:dir=/tmp/test_gdbus-server-auth_MBC7J3/gdbus-server-auth-THD5J3 / libdbus client, with flags: external:false anonymous:true sha1:false abstract:false tcp:false 1308s # Connectable address: unix:path=/tmp/test_gdbus-server-auth_MBC7J3/gdbus-server-auth-THD5J3/dbus-t5T8Arp2 1308s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 1308s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 1308s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 1308s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=38776,uid=1000,gid=1000 1308s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=38776,uid=1000,gid=1000 1308s # GLib-GIO-DEBUG: Server says GDBus client is uid 1000, pid 38776 1308s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1308s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 1308s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 1308s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 1308s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=38776,uid=1000,gid=1000 1308s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=38776,uid=1000,gid=1000 1308s # GLib-GIO-DEBUG: Server says libdbus client 0 is uid 1000, pid 38776 1308s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1308s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 1308s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 1308s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 1308s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=38776,uid=1000,gid=1000 1308s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=38776,uid=1000,gid=1000 1308s # GLib-GIO-DEBUG: Server says libdbus client 1 is uid 1000, pid 38776 1308s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1308s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 1308s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 1308s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 1308s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=38776,uid=1000,gid=1000 1308s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=38776,uid=1000,gid=1000 1308s # GLib-GIO-DEBUG: Server says libdbus client 2 is uid 1000, pid 38776 1308s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1308s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 1308s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 1308s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 1308s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=38776,uid=1000,gid=1000 1308s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=38776,uid=1000,gid=1000 1308s # GLib-GIO-DEBUG: Server says libdbus client 3 is uid 1000, pid 38776 1308s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1308s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 1308s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 1308s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 1308s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=38776,uid=1000,gid=1000 1308s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=38776,uid=1000,gid=1000 1308s # GLib-GIO-DEBUG: Server says libdbus client 4 is uid 1000, pid 38776 1308s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1308s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 1308s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 1308s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 1308s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=38776,uid=1000,gid=1000 1308s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=38776,uid=1000,gid=1000 1308s # GLib-GIO-DEBUG: Server says libdbus client 5 is uid 1000, pid 38776 1308s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1308s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 1308s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 1308s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 1308s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=38776,uid=1000,gid=1000 1308s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=38776,uid=1000,gid=1000 1308s # GLib-GIO-DEBUG: Server says libdbus client 6 is uid 1000, pid 38776 1308s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1308s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 1308s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 1308s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 1308s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=38776,uid=1000,gid=1000 1308s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=38776,uid=1000,gid=1000 1308s # GLib-GIO-DEBUG: Server says libdbus client 7 is uid 1000, pid 38776 1308s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1308s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 1308s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 1308s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 1308s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=38776,uid=1000,gid=1000 1308s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=38776,uid=1000,gid=1000 1308s # GLib-GIO-DEBUG: Server says libdbus client 8 is uid 1000, pid 38776 1308s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1308s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 1308s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 1308s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 1308s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=38776,uid=1000,gid=1000 1308s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=38776,uid=1000,gid=1000 1308s # GLib-GIO-DEBUG: Server says libdbus client 9 is uid 1000, pid 38776 1308s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1308s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 1308s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 1308s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 1308s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=38776,uid=1000,gid=1000 1308s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=38776,uid=1000,gid=1000 1308s # GLib-GIO-DEBUG: Server says libdbus client 10 is uid 1000, pid 38776 1308s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1308s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 1308s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 1308s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 1308s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=38776,uid=1000,gid=1000 1308s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=38776,uid=1000,gid=1000 1308s # GLib-GIO-DEBUG: Server says libdbus client 11 is uid 1000, pid 38776 1308s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1308s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 1308s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 1308s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 1308s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=38776,uid=1000,gid=1000 1308s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=38776,uid=1000,gid=1000 1308s # GLib-GIO-DEBUG: Server says libdbus client 12 is uid 1000, pid 38776 1308s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1308s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 1308s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 1308s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 1308s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=38776,uid=1000,gid=1000 1308s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=38776,uid=1000,gid=1000 1308s # GLib-GIO-DEBUG: Server says libdbus client 13 is uid 1000, pid 38776 1308s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1308s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 1308s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 1308s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 1308s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=38776,uid=1000,gid=1000 1308s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=38776,uid=1000,gid=1000 1308s # GLib-GIO-DEBUG: Server says libdbus client 14 is uid 1000, pid 38776 1308s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1308s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 1308s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 1308s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 1308s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=38776,uid=1000,gid=1000 1308s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=38776,uid=1000,gid=1000 1308s # GLib-GIO-DEBUG: Server says libdbus client 15 is uid 1000, pid 38776 1308s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1308s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 1308s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 1308s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 1308s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=38776,uid=1000,gid=1000 1308s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=38776,uid=1000,gid=1000 1308s # GLib-GIO-DEBUG: Server says libdbus client 16 is uid 1000, pid 38776 1308s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1308s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 1308s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 1308s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 1308s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=38776,uid=1000,gid=1000 1308s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=38776,uid=1000,gid=1000 1308s # GLib-GIO-DEBUG: Server says libdbus client 17 is uid 1000, pid 38776 1308s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1308s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 1308s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 1308s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 1308s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=38776,uid=1000,gid=1000 1308s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=38776,uid=1000,gid=1000 1308s # GLib-GIO-DEBUG: Server says libdbus client 18 is uid 1000, pid 38776 1308s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1308s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 1308s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 1308s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 1308s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=38776,uid=1000,gid=1000 1308s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=38776,uid=1000,gid=1000 1308s # GLib-GIO-DEBUG: Server says libdbus client 19 is uid 1000, pid 38776 1308s ok 4 /gdbus/server-auth/anonymous 1308s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-server-auth_MBC7J3/gdbus/server-auth/external/.dirs/home 1308s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-server-auth_MBC7J3/gdbus/server-auth/external/.dirs/cache 1308s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-server-auth_MBC7J3/gdbus/server-auth/external/.dirs/system-config1:/tmp/test_gdbus-server-auth_MBC7J3/gdbus/server-auth/external/.dirs/system-config2 1308s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-server-auth_MBC7J3/gdbus/server-auth/external/.dirs/config 1308s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-server-auth_MBC7J3/gdbus/server-auth/external/.dirs/system-data1:/tmp/test_gdbus-server-auth_MBC7J3/gdbus/server-auth/external/.dirs/system-data2 1308s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-server-auth_MBC7J3/gdbus/server-auth/external/.dirs/data 1308s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-server-auth_MBC7J3/gdbus/server-auth/external/.dirs/state 1308s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-server-auth_MBC7J3/gdbus/server-auth/external/.dirs/runtime 1308s # Testing GDBus server at unix:dir=/tmp/test_gdbus-server-auth_MBC7J3/gdbus-server-auth-RUM3J3 / libdbus client, with flags: external:true anonymous:false sha1:false abstract:false tcp:false 1308s # Connectable address: unix:path=/tmp/test_gdbus-server-auth_MBC7J3/gdbus-server-auth-RUM3J3/dbus-9mAfBMJx 1308s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 1308s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 1308s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 1308s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=38776,uid=1000,gid=1000 1308s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=38776,uid=1000,gid=1000 1308s # GLib-GIO-DEBUG: Server says GDBus client is uid 1000, pid 38776 1308s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1308s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 1308s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 1308s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 1308s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=38776,uid=1000,gid=1000 1308s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=38776,uid=1000,gid=1000 1308s # GLib-GIO-DEBUG: Server says libdbus client 0 is uid 1000, pid 38776 1308s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1308s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 1308s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 1308s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 1308s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=38776,uid=1000,gid=1000 1308s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=38776,uid=1000,gid=1000 1308s # GLib-GIO-DEBUG: Server says libdbus client 1 is uid 1000, pid 38776 1308s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1308s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 1308s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 1308s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 1308s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=38776,uid=1000,gid=1000 1308s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=38776,uid=1000,gid=1000 1308s # GLib-GIO-DEBUG: Server says libdbus client 2 is uid 1000, pid 38776 1308s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1308s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 1308s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 1308s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 1308s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=38776,uid=1000,gid=1000 1308s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=38776,uid=1000,gid=1000 1308s # GLib-GIO-DEBUG: Server says libdbus client 3 is uid 1000, pid 38776 1308s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1308s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 1308s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 1308s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 1308s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=38776,uid=1000,gid=1000 1308s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=38776,uid=1000,gid=1000 1308s # GLib-GIO-DEBUG: Server says libdbus client 4 is uid 1000, pid 38776 1308s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1308s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 1308s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 1308s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 1308s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=38776,uid=1000,gid=1000 1308s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=38776,uid=1000,gid=1000 1308s # GLib-GIO-DEBUG: Server says libdbus client 5 is uid 1000, pid 38776 1308s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1308s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 1308s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 1308s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 1308s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=38776,uid=1000,gid=1000 1308s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=38776,uid=1000,gid=1000 1308s # GLib-GIO-DEBUG: Server says libdbus client 6 is uid 1000, pid 38776 1308s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1308s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 1308s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 1308s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 1308s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=38776,uid=1000,gid=1000 1308s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=38776,uid=1000,gid=1000 1308s # GLib-GIO-DEBUG: Server says libdbus client 7 is uid 1000, pid 38776 1308s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1308s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 1308s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 1308s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 1308s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=38776,uid=1000,gid=1000 1308s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=38776,uid=1000,gid=1000 1308s # GLib-GIO-DEBUG: Server says libdbus client 8 is uid 1000, pid 38776 1308s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1308s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 1308s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 1308s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 1308s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=38776,uid=1000,gid=1000 1308s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=38776,uid=1000,gid=1000 1308s # GLib-GIO-DEBUG: Server says libdbus client 9 is uid 1000, pid 38776 1308s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1308s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 1308s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 1308s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 1308s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=38776,uid=1000,gid=1000 1308s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=38776,uid=1000,gid=1000 1308s # GLib-GIO-DEBUG: Server says libdbus client 10 is uid 1000, pid 38776 1308s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1308s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 1308s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 1308s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 1308s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=38776,uid=1000,gid=1000 1308s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=38776,uid=1000,gid=1000 1308s # GLib-GIO-DEBUG: Server says libdbus client 11 is uid 1000, pid 38776 1308s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1308s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 1308s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 1308s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 1308s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=38776,uid=1000,gid=1000 1308s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=38776,uid=1000,gid=1000 1308s # GLib-GIO-DEBUG: Server says libdbus client 12 is uid 1000, pid 38776 1308s ok - glib/gdbus-server-auth.test 1308s # Running test: glib/fileutils.test 1308s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1308s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 1308s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 1308s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 1308s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=38776,uid=1000,gid=1000 1308s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=38776,uid=1000,gid=1000 1308s # GLib-GIO-DEBUG: Server says libdbus client 13 is uid 1000, pid 38776 1308s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1308s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 1308s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 1308s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 1308s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=38776,uid=1000,gid=1000 1308s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=38776,uid=1000,gid=1000 1308s # GLib-GIO-DEBUG: Server says libdbus client 14 is uid 1000, pid 38776 1308s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1308s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 1308s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 1308s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 1308s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=38776,uid=1000,gid=1000 1308s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=38776,uid=1000,gid=1000 1308s # GLib-GIO-DEBUG: Server says libdbus client 15 is uid 1000, pid 38776 1308s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1308s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 1308s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 1308s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 1308s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=38776,uid=1000,gid=1000 1308s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=38776,uid=1000,gid=1000 1308s # GLib-GIO-DEBUG: Server says libdbus client 16 is uid 1000, pid 38776 1308s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1308s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 1308s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 1308s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 1308s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=38776,uid=1000,gid=1000 1308s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=38776,uid=1000,gid=1000 1308s # GLib-GIO-DEBUG: Server says libdbus client 17 is uid 1000, pid 38776 1308s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1308s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 1308s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 1308s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 1308s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=38776,uid=1000,gid=1000 1308s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=38776,uid=1000,gid=1000 1308s # GLib-GIO-DEBUG: Server says libdbus client 18 is uid 1000, pid 38776 1308s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1308s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 1308s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 1308s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 1308s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=38776,uid=1000,gid=1000 1308s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=38776,uid=1000,gid=1000 1308s # GLib-GIO-DEBUG: Server says libdbus client 19 is uid 1000, pid 38776 1308s ok 5 /gdbus/server-auth/external 1308s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-server-auth_MBC7J3/gdbus/server-auth/sha1/.dirs/home 1308s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-server-auth_MBC7J3/gdbus/server-auth/sha1/.dirs/cache 1308s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-server-auth_MBC7J3/gdbus/server-auth/sha1/.dirs/system-config1:/tmp/test_gdbus-server-auth_MBC7J3/gdbus/server-auth/sha1/.dirs/system-config2 1308s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-server-auth_MBC7J3/gdbus/server-auth/sha1/.dirs/config 1308s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-server-auth_MBC7J3/gdbus/server-auth/sha1/.dirs/system-data1:/tmp/test_gdbus-server-auth_MBC7J3/gdbus/server-auth/sha1/.dirs/system-data2 1308s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-server-auth_MBC7J3/gdbus/server-auth/sha1/.dirs/data 1308s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-server-auth_MBC7J3/gdbus/server-auth/sha1/.dirs/state 1308s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-server-auth_MBC7J3/gdbus/server-auth/sha1/.dirs/runtime 1308s # Testing GDBus server at unix:dir=/tmp/test_gdbus-server-auth_MBC7J3/gdbus-server-auth-VI13J3 / libdbus client, with flags: external:false anonymous:false sha1:true abstract:false tcp:false 1308s ok 6 /gdbus/server-auth/sha1 # SKIP https://gitlab.gnome.org/GNOME/glib/-/issues/2206 1308s # Start of anonymous tests 1308s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-server-auth_MBC7J3/gdbus/server-auth/anonymous/tcp/.dirs/home 1308s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-server-auth_MBC7J3/gdbus/server-auth/anonymous/tcp/.dirs/cache 1308s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-server-auth_MBC7J3/gdbus/server-auth/anonymous/tcp/.dirs/system-config1:/tmp/test_gdbus-server-auth_MBC7J3/gdbus/server-auth/anonymous/tcp/.dirs/system-config2 1308s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-server-auth_MBC7J3/gdbus/server-auth/anonymous/tcp/.dirs/config 1308s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-server-auth_MBC7J3/gdbus/server-auth/anonymous/tcp/.dirs/system-data1:/tmp/test_gdbus-server-auth_MBC7J3/gdbus/server-auth/anonymous/tcp/.dirs/system-data2 1308s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-server-auth_MBC7J3/gdbus/server-auth/anonymous/tcp/.dirs/data 1308s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-server-auth_MBC7J3/gdbus/server-auth/anonymous/tcp/.dirs/state 1308s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-server-auth_MBC7J3/gdbus/server-auth/anonymous/tcp/.dirs/runtime 1308s # Testing GDBus server at tcp:host=127.0.0.1 / libdbus client, with flags: external:false anonymous:true sha1:false abstract:false tcp:true 1308s ok 7 /gdbus/server-auth/anonymous/tcp # SKIP https://gitlab.gnome.org/GNOME/glib/-/issues/2206 1308s # End of anonymous tests 1308s # Start of external tests 1308s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-server-auth_MBC7J3/gdbus/server-auth/external/require-same-user/.dirs/home 1308s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-server-auth_MBC7J3/gdbus/server-auth/external/require-same-user/.dirs/cache 1308s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-server-auth_MBC7J3/gdbus/server-auth/external/require-same-user/.dirs/system-config1:/tmp/test_gdbus-server-auth_MBC7J3/gdbus/server-auth/external/require-same-user/.dirs/system-config2 1308s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-server-auth_MBC7J3/gdbus/server-auth/external/require-same-user/.dirs/config 1308s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-server-auth_MBC7J3/gdbus/server-auth/external/require-same-user/.dirs/system-data1:/tmp/test_gdbus-server-auth_MBC7J3/gdbus/server-auth/external/require-same-user/.dirs/system-data2 1308s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-server-auth_MBC7J3/gdbus/server-auth/external/require-same-user/.dirs/data 1308s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-server-auth_MBC7J3/gdbus/server-auth/external/require-same-user/.dirs/state 1308s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-server-auth_MBC7J3/gdbus/server-auth/external/require-same-user/.dirs/runtime 1308s # Testing GDBus server at unix:dir=/tmp/test_gdbus-server-auth_MBC7J3/gdbus-server-auth-YM23J3 / libdbus client, with flags: external:true anonymous:false sha1:false abstract:false tcp:false 1308s # Connectable address: unix:path=/tmp/test_gdbus-server-auth_MBC7J3/gdbus-server-auth-YM23J3/dbus-URRXP77e 1308s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 1308s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 1308s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 1308s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=38776,uid=1000,gid=1000 1308s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=38776,uid=1000,gid=1000 1308s # GLib-GIO-DEBUG: Server says GDBus client is uid 1000, pid 38776 1308s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1308s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 1308s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 1308s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 1308s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=38776,uid=1000,gid=1000 1308s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=38776,uid=1000,gid=1000 1308s # GLib-GIO-DEBUG: Server says libdbus client 0 is uid 1000, pid 38776 1308s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1308s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 1308s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 1308s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 1308s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=38776,uid=1000,gid=1000 1308s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=38776,uid=1000,gid=1000 1308s # GLib-GIO-DEBUG: Server says libdbus client 1 is uid 1000, pid 38776 1308s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1308s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 1308s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 1308s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 1308s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=38776,uid=1000,gid=1000 1308s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=38776,uid=1000,gid=1000 1308s # GLib-GIO-DEBUG: Server says libdbus client 2 is uid 1000, pid 38776 1308s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1308s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 1308s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 1308s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 1308s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=38776,uid=1000,gid=1000 1308s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=38776,uid=1000,gid=1000 1308s # GLib-GIO-DEBUG: Server says libdbus client 3 is uid 1000, pid 38776 1308s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1308s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 1308s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 1308s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 1308s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=38776,uid=1000,gid=1000 1308s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=38776,uid=1000,gid=1000 1308s # GLib-GIO-DEBUG: Server says libdbus client 4 is uid 1000, pid 38776 1308s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1308s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 1308s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 1308s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 1308s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=38776,uid=1000,gid=1000 1308s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=38776,uid=1000,gid=1000 1308s # GLib-GIO-DEBUG: Server says libdbus client 5 is uid 1000, pid 38776 1308s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1308s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 1308s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 1308s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 1308s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=38776,uid=1000,gid=1000 1308s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=38776,uid=1000,gid=1000 1308s # GLib-GIO-DEBUG: Server says libdbus client 6 is uid 1000, pid 38776 1308s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1308s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 1308s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 1308s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 1308s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=38776,uid=1000,gid=1000 1308s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=38776,uid=1000,gid=1000 1308s # GLib-GIO-DEBUG: Server says libdbus client 7 is uid 1000, pid 38776 1308s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1308s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 1308s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 1308s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 1308s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=38776,uid=1000,gid=1000 1308s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=38776,uid=1000,gid=1000 1308s # GLib-GIO-DEBUG: Server says libdbus client 8 is uid 1000, pid 38776 1308s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1308s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 1308s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 1308s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 1308s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=38776,uid=1000,gid=1000 1308s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=38776,uid=1000,gid=1000 1308s # GLib-GIO-DEBUG: Server says libdbus client 9 is uid 1000, pid 38776 1308s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1308s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 1308s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 1308s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 1308s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=38776,uid=1000,gid=1000 1308s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=38776,uid=1000,gid=1000 1308s # GLib-GIO-DEBUG: Server says libdbus client 10 is uid 1000, pid 38776 1308s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1308s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 1308s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 1308s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 1308s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=38776,uid=1000,gid=1000 1308s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=38776,uid=1000,gid=1000 1308s # GLib-GIO-DEBUG: Server says libdbus client 11 is uid 1000, pid 38776 1308s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1308s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 1308s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 1308s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 1308s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=38776,uid=1000,gid=1000 1308s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=38776,uid=1000,gid=1000 1308s # GLib-GIO-DEBUG: Server says libdbus client 12 is uid 1000, pid 38776 1308s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1308s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 1308s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 1308s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 1308s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=38776,uid=1000,gid=1000 1308s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=38776,uid=1000,gid=1000 1308s # GLib-GIO-DEBUG: Server says libdbus client 13 is uid 1000, pid 38776 1308s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1308s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 1308s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 1308s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 1308s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=38776,uid=1000,gid=1000 1308s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=38776,uid=1000,gid=1000 1308s # GLib-GIO-DEBUG: Server says libdbus client 14 is uid 1000, pid 38776 1308s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1308s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 1308s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 1308s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 1308s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=38776,uid=1000,gid=1000 1308s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=38776,uid=1000,gid=1000 1308s # GLib-GIO-DEBUG: Server says libdbus client 15 is uid 1000, pid 38776 1308s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1308s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 1308s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 1308s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 1308s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=38776,uid=1000,gid=1000 1308s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=38776,uid=1000,gid=1000 1308s # GLib-GIO-DEBUG: Server says libdbus client 16 is uid 1000, pid 38776 1308s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1308s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 1308s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 1308s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 1308s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=38776,uid=1000,gid=1000 1308s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=38776,uid=1000,gid=1000 1308s # GLib-GIO-DEBUG: Server says libdbus client 17 is uid 1000, pid 38776 1308s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1308s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 1308s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 1308s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 1308s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=38776,uid=1000,gid=1000 1308s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=38776,uid=1000,gid=1000 1308s # GLib-GIO-DEBUG: Server says libdbus client 18 is uid 1000, pid 38776 1308s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1308s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 1308s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 1308s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 1308s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=38776,uid=1000,gid=1000 1308s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=38776,uid=1000,gid=1000 1308s # GLib-GIO-DEBUG: Server says libdbus client 19 is uid 1000, pid 38776 1308s ok 8 /gdbus/server-auth/external/require-same-user 1308s # End of external tests 1308s # Start of sha1 tests 1308s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-server-auth_MBC7J3/gdbus/server-auth/sha1/tcp/.dirs/home 1308s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-server-auth_MBC7J3/gdbus/server-auth/sha1/tcp/.dirs/cache 1308s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-server-auth_MBC7J3/gdbus/server-auth/sha1/tcp/.dirs/system-config1:/tmp/test_gdbus-server-auth_MBC7J3/gdbus/server-auth/sha1/tcp/.dirs/system-config2 1308s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-server-auth_MBC7J3/gdbus/server-auth/sha1/tcp/.dirs/config 1308s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-server-auth_MBC7J3/gdbus/server-auth/sha1/tcp/.dirs/system-data1:/tmp/test_gdbus-server-auth_MBC7J3/gdbus/server-auth/sha1/tcp/.dirs/system-data2 1308s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-server-auth_MBC7J3/gdbus/server-auth/sha1/tcp/.dirs/data 1308s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-server-auth_MBC7J3/gdbus/server-auth/sha1/tcp/.dirs/state 1308s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-server-auth_MBC7J3/gdbus/server-auth/sha1/tcp/.dirs/runtime 1308s # Testing GDBus server at tcp:host=127.0.0.1 / libdbus client, with flags: external:false anonymous:false sha1:true abstract:false tcp:true 1308s ok 9 /gdbus/server-auth/sha1/tcp # SKIP https://gitlab.gnome.org/GNOME/glib/-/issues/2206 1308s # End of sha1 tests 1308s # End of server-auth tests 1308s # End of gdbus tests 1308s TAP version 14 1308s # random seed: R02S92e75c38b2db9a5473e0366722187de7 1308s 1..27 1308s # Start of fileutils tests 1308s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_fileutils_2TA4J3/fileutils/paths/.dirs/home 1308s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_fileutils_2TA4J3/fileutils/paths/.dirs/cache 1308s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_fileutils_2TA4J3/fileutils/paths/.dirs/system-config1:/tmp/test_fileutils_2TA4J3/fileutils/paths/.dirs/system-config2 1308s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_fileutils_2TA4J3/fileutils/paths/.dirs/config 1308s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_fileutils_2TA4J3/fileutils/paths/.dirs/system-data1:/tmp/test_fileutils_2TA4J3/fileutils/paths/.dirs/system-data2 1308s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_fileutils_2TA4J3/fileutils/paths/.dirs/data 1308s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_fileutils_2TA4J3/fileutils/paths/.dirs/state 1308s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_fileutils_2TA4J3/fileutils/paths/.dirs/runtime 1308s ok 1 /fileutils/paths 1308s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_fileutils_2TA4J3/fileutils/build-path/.dirs/home 1308s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_fileutils_2TA4J3/fileutils/build-path/.dirs/cache 1308s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_fileutils_2TA4J3/fileutils/build-path/.dirs/system-config1:/tmp/test_fileutils_2TA4J3/fileutils/build-path/.dirs/system-config2 1308s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_fileutils_2TA4J3/fileutils/build-path/.dirs/config 1308s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_fileutils_2TA4J3/fileutils/build-path/.dirs/system-data1:/tmp/test_fileutils_2TA4J3/fileutils/build-path/.dirs/system-data2 1308s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_fileutils_2TA4J3/fileutils/build-path/.dirs/data 1308s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_fileutils_2TA4J3/fileutils/build-path/.dirs/state 1308s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_fileutils_2TA4J3/fileutils/build-path/.dirs/runtime 1308s ok 2 /fileutils/build-path 1308s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_fileutils_2TA4J3/fileutils/build-pathv/.dirs/home 1308s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_fileutils_2TA4J3/fileutils/build-pathv/.dirs/cache 1308s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_fileutils_2TA4J3/fileutils/build-pathv/.dirs/system-config1:/tmp/test_fileutils_2TA4J3/fileutils/build-pathv/.dirs/system-config2 1308s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_fileutils_2TA4J3/fileutils/build-pathv/.dirs/config 1308s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_fileutils_2TA4J3/fileutils/build-pathv/.dirs/system-data1:/tmp/test_fileutils_2TA4J3/fileutils/build-pathv/.dirs/system-data2 1308s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_fileutils_2TA4J3/fileutils/build-pathv/.dirs/data 1308s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_fileutils_2TA4J3/fileutils/build-pathv/.dirs/state 1308s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_fileutils_2TA4J3/fileutils/build-pathv/.dirs/runtime 1308s ok 3 /fileutils/build-pathv 1308s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_fileutils_2TA4J3/fileutils/build-filename/.dirs/home 1308s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_fileutils_2TA4J3/fileutils/build-filename/.dirs/cache 1308s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_fileutils_2TA4J3/fileutils/build-filename/.dirs/system-config1:/tmp/test_fileutils_2TA4J3/fileutils/build-filename/.dirs/system-config2 1308s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_fileutils_2TA4J3/fileutils/build-filename/.dirs/config 1308s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_fileutils_2TA4J3/fileutils/build-filename/.dirs/system-data1:/tmp/test_fileutils_2TA4J3/fileutils/build-filename/.dirs/system-data2 1308s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_fileutils_2TA4J3/fileutils/build-filename/.dirs/data 1308s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_fileutils_2TA4J3/fileutils/build-filename/.dirs/state 1308s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_fileutils_2TA4J3/fileutils/build-filename/.dirs/runtime 1308s ok 4 /fileutils/build-filename 1308s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_fileutils_2TA4J3/fileutils/build-filenamev/.dirs/home 1308s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_fileutils_2TA4J3/fileutils/build-filenamev/.dirs/cache 1308s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_fileutils_2TA4J3/fileutils/build-filenamev/.dirs/system-config1:/tmp/test_fileutils_2TA4J3/fileutils/build-filenamev/.dirs/system-config2 1308s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_fileutils_2TA4J3/fileutils/build-filenamev/.dirs/config 1308s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_fileutils_2TA4J3/fileutils/build-filenamev/.dirs/system-data1:/tmp/test_fileutils_2TA4J3/fileutils/build-filenamev/.dirs/system-data2 1308s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_fileutils_2TA4J3/fileutils/build-filenamev/.dirs/data 1308s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_fileutils_2TA4J3/fileutils/build-filenamev/.dirs/state 1308s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_fileutils_2TA4J3/fileutils/build-filenamev/.dirs/runtime 1308s ok 5 /fileutils/build-filenamev 1308s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_fileutils_2TA4J3/fileutils/mkdir-with-parents/.dirs/home 1308s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_fileutils_2TA4J3/fileutils/mkdir-with-parents/.dirs/cache 1308s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_fileutils_2TA4J3/fileutils/mkdir-with-parents/.dirs/system-config1:/tmp/test_fileutils_2TA4J3/fileutils/mkdir-with-parents/.dirs/system-config2 1308s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_fileutils_2TA4J3/fileutils/mkdir-with-parents/.dirs/config 1308s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_fileutils_2TA4J3/fileutils/mkdir-with-parents/.dirs/system-data1:/tmp/test_fileutils_2TA4J3/fileutils/mkdir-with-parents/.dirs/system-data2 1308s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_fileutils_2TA4J3/fileutils/mkdir-with-parents/.dirs/data 1308s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_fileutils_2TA4J3/fileutils/mkdir-with-parents/.dirs/state 1308s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_fileutils_2TA4J3/fileutils/mkdir-with-parents/.dirs/runtime 1308s # We do not have CAP_DAC_OVERRIDE or equivalent 1308s # Checking g_mkdir_with_parents() in subdir ./hum/ 1308s # Checking g_mkdir_with_parents() in subdir ./hii///haa/hee/ 1308s ok 6 /fileutils/mkdir-with-parents 1308s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_fileutils_2TA4J3/fileutils/mkdir-with-parents-permission/.dirs/home 1308s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_fileutils_2TA4J3/fileutils/mkdir-with-parents-permission/.dirs/cache 1308s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_fileutils_2TA4J3/fileutils/mkdir-with-parents-permission/.dirs/system-config1:/tmp/test_fileutils_2TA4J3/fileutils/mkdir-with-parents-permission/.dirs/system-config2 1308s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_fileutils_2TA4J3/fileutils/mkdir-with-parents-permission/.dirs/config 1308s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_fileutils_2TA4J3/fileutils/mkdir-with-parents-permission/.dirs/system-data1:/tmp/test_fileutils_2TA4J3/fileutils/mkdir-with-parents-permission/.dirs/system-data2 1308s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_fileutils_2TA4J3/fileutils/mkdir-with-parents-permission/.dirs/data 1308s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_fileutils_2TA4J3/fileutils/mkdir-with-parents-permission/.dirs/state 1308s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_fileutils_2TA4J3/fileutils/mkdir-with-parents-permission/.dirs/runtime 1308s # We do not have CAP_DAC_OVERRIDE or equivalent 1308s ok 7 /fileutils/mkdir-with-parents-permission 1308s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_fileutils_2TA4J3/fileutils/format-size-for-display/.dirs/home 1308s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_fileutils_2TA4J3/fileutils/format-size-for-display/.dirs/cache 1308s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_fileutils_2TA4J3/fileutils/format-size-for-display/.dirs/system-config1:/tmp/test_fileutils_2TA4J3/fileutils/format-size-for-display/.dirs/system-config2 1308s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_fileutils_2TA4J3/fileutils/format-size-for-display/.dirs/config 1308s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_fileutils_2TA4J3/fileutils/format-size-for-display/.dirs/system-data1:/tmp/test_fileutils_2TA4J3/fileutils/format-size-for-display/.dirs/system-data2 1308s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_fileutils_2TA4J3/fileutils/format-size-for-display/.dirs/data 1308s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_fileutils_2TA4J3/fileutils/format-size-for-display/.dirs/state 1308s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_fileutils_2TA4J3/fileutils/format-size-for-display/.dirs/runtime 1308s ok 8 /fileutils/format-size-for-display 1308s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_fileutils_2TA4J3/fileutils/errors/.dirs/home 1308s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_fileutils_2TA4J3/fileutils/errors/.dirs/cache 1308s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_fileutils_2TA4J3/fileutils/errors/.dirs/system-config1:/tmp/test_fileutils_2TA4J3/fileutils/errors/.dirs/system-config2 1308s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_fileutils_2TA4J3/fileutils/errors/.dirs/config 1308s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_fileutils_2TA4J3/fileutils/errors/.dirs/system-data1:/tmp/test_fileutils_2TA4J3/fileutils/errors/.dirs/system-data2 1308s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_fileutils_2TA4J3/fileutils/errors/.dirs/data 1308s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_fileutils_2TA4J3/fileutils/errors/.dirs/state 1308s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_fileutils_2TA4J3/fileutils/errors/.dirs/runtime 1308s ok 9 /fileutils/errors 1308s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_fileutils_2TA4J3/fileutils/basename/.dirs/home 1308s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_fileutils_2TA4J3/fileutils/basename/.dirs/cache 1308s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_fileutils_2TA4J3/fileutils/basename/.dirs/system-config1:/tmp/test_fileutils_2TA4J3/fileutils/basename/.dirs/system-config2 1308s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_fileutils_2TA4J3/fileutils/basename/.dirs/config 1308s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_fileutils_2TA4J3/fileutils/basename/.dirs/system-data1:/tmp/test_fileutils_2TA4J3/fileutils/basename/.dirs/system-data2 1308s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_fileutils_2TA4J3/fileutils/basename/.dirs/data 1308s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_fileutils_2TA4J3/fileutils/basename/.dirs/state 1308s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_fileutils_2TA4J3/fileutils/basename/.dirs/runtime 1308s ok 10 /fileutils/basename 1308s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_fileutils_2TA4J3/fileutils/get-basename/.dirs/home 1308s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_fileutils_2TA4J3/fileutils/get-basename/.dirs/cache 1308s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_fileutils_2TA4J3/fileutils/get-basename/.dirs/system-config1:/tmp/test_fileutils_2TA4J3/fileutils/get-basename/.dirs/system-config2 1308s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_fileutils_2TA4J3/fileutils/get-basename/.dirs/config 1308s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_fileutils_2TA4J3/fileutils/get-basename/.dirs/system-data1:/tmp/test_fileutils_2TA4J3/fileutils/get-basename/.dirs/system-data2 1308s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_fileutils_2TA4J3/fileutils/get-basename/.dirs/data 1308s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_fileutils_2TA4J3/fileutils/get-basename/.dirs/state 1308s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_fileutils_2TA4J3/fileutils/get-basename/.dirs/runtime 1308s ok 11 /fileutils/get-basename 1308s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_fileutils_2TA4J3/fileutils/dirname/.dirs/home 1308s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_fileutils_2TA4J3/fileutils/dirname/.dirs/cache 1308s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_fileutils_2TA4J3/fileutils/dirname/.dirs/system-config1:/tmp/test_fileutils_2TA4J3/fileutils/dirname/.dirs/system-config2 1308s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_fileutils_2TA4J3/fileutils/dirname/.dirs/config 1308s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_fileutils_2TA4J3/fileutils/dirname/.dirs/system-data1:/tmp/test_fileutils_2TA4J3/fileutils/dirname/.dirs/system-data2 1308s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_fileutils_2TA4J3/fileutils/dirname/.dirs/data 1308s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_fileutils_2TA4J3/fileutils/dirname/.dirs/state 1308s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_fileutils_2TA4J3/fileutils/dirname/.dirs/runtime 1308s ok 12 /fileutils/dirname 1308s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_fileutils_2TA4J3/fileutils/dir-make-tmp/.dirs/home 1308s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_fileutils_2TA4J3/fileutils/dir-make-tmp/.dirs/cache 1308s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_fileutils_2TA4J3/fileutils/dir-make-tmp/.dirs/system-config1:/tmp/test_fileutils_2TA4J3/fileutils/dir-make-tmp/.dirs/system-config2 1308s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_fileutils_2TA4J3/fileutils/dir-make-tmp/.dirs/config 1308s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_fileutils_2TA4J3/fileutils/dir-make-tmp/.dirs/system-data1:/tmp/test_fileutils_2TA4J3/fileutils/dir-make-tmp/.dirs/system-data2 1308s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_fileutils_2TA4J3/fileutils/dir-make-tmp/.dirs/data 1308s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_fileutils_2TA4J3/fileutils/dir-make-tmp/.dirs/state 1308s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_fileutils_2TA4J3/fileutils/dir-make-tmp/.dirs/runtime 1308s ok 13 /fileutils/dir-make-tmp 1308s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_fileutils_2TA4J3/fileutils/file-open-tmp/.dirs/home 1308s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_fileutils_2TA4J3/fileutils/file-open-tmp/.dirs/cache 1308s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_fileutils_2TA4J3/fileutils/file-open-tmp/.dirs/system-config1:/tmp/test_fileutils_2TA4J3/fileutils/file-open-tmp/.dirs/system-config2 1308s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_fileutils_2TA4J3/fileutils/file-open-tmp/.dirs/config 1308s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_fileutils_2TA4J3/fileutils/file-open-tmp/.dirs/system-data1:/tmp/test_fileutils_2TA4J3/fileutils/file-open-tmp/.dirs/system-data2 1308s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_fileutils_2TA4J3/fileutils/file-open-tmp/.dirs/data 1308s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_fileutils_2TA4J3/fileutils/file-open-tmp/.dirs/state 1308s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_fileutils_2TA4J3/fileutils/file-open-tmp/.dirs/runtime 1308s ok 14 /fileutils/file-open-tmp 1308s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_fileutils_2TA4J3/fileutils/file-test/.dirs/home 1308s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_fileutils_2TA4J3/fileutils/file-test/.dirs/cache 1308s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_fileutils_2TA4J3/fileutils/file-test/.dirs/system-config1:/tmp/test_fileutils_2TA4J3/fileutils/file-test/.dirs/system-config2 1308s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_fileutils_2TA4J3/fileutils/file-test/.dirs/config 1308s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_fileutils_2TA4J3/fileutils/file-test/.dirs/system-data1:/tmp/test_fileutils_2TA4J3/fileutils/file-test/.dirs/system-data2 1308s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_fileutils_2TA4J3/fileutils/file-test/.dirs/data 1308s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_fileutils_2TA4J3/fileutils/file-test/.dirs/state 1308s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_fileutils_2TA4J3/fileutils/file-test/.dirs/runtime 1308s ok 15 /fileutils/file-test 1308s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_fileutils_2TA4J3/fileutils/mkstemp/.dirs/home 1308s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_fileutils_2TA4J3/fileutils/mkstemp/.dirs/cache 1308s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_fileutils_2TA4J3/fileutils/mkstemp/.dirs/system-config1:/tmp/test_fileutils_2TA4J3/fileutils/mkstemp/.dirs/system-config2 1308s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_fileutils_2TA4J3/fileutils/mkstemp/.dirs/config 1308s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_fileutils_2TA4J3/fileutils/mkstemp/.dirs/system-data1:/tmp/test_fileutils_2TA4J3/fileutils/mkstemp/.dirs/system-data2 1308s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_fileutils_2TA4J3/fileutils/mkstemp/.dirs/data 1308s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_fileutils_2TA4J3/fileutils/mkstemp/.dirs/state 1308s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_fileutils_2TA4J3/fileutils/mkstemp/.dirs/runtime 1308s ok 16 /fileutils/mkstemp 1308s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_fileutils_2TA4J3/fileutils/mkdtemp/.dirs/home 1308s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_fileutils_2TA4J3/fileutils/mkdtemp/.dirs/cache 1308s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_fileutils_2TA4J3/fileutils/mkdtemp/.dirs/system-config1:/tmp/test_fileutils_2TA4J3/fileutils/mkdtemp/.dirs/system-config2 1308s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_fileutils_2TA4J3/fileutils/mkdtemp/.dirs/config 1308s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_fileutils_2TA4J3/fileutils/mkdtemp/.dirs/system-data1:/tmp/test_fileutils_2TA4J3/fileutils/mkdtemp/.dirs/system-data2 1308s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_fileutils_2TA4J3/fileutils/mkdtemp/.dirs/data 1308s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_fileutils_2TA4J3/fileutils/mkdtemp/.dirs/state 1308s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_fileutils_2TA4J3/fileutils/mkdtemp/.dirs/runtime 1308s ok 17 /fileutils/mkdtemp 1308s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_fileutils_2TA4J3/fileutils/get-contents/.dirs/home 1308s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_fileutils_2TA4J3/fileutils/get-contents/.dirs/cache 1308s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_fileutils_2TA4J3/fileutils/get-contents/.dirs/system-config1:/tmp/test_fileutils_2TA4J3/fileutils/get-contents/.dirs/system-config2 1308s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_fileutils_2TA4J3/fileutils/get-contents/.dirs/config 1308s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_fileutils_2TA4J3/fileutils/get-contents/.dirs/system-data1:/tmp/test_fileutils_2TA4J3/fileutils/get-contents/.dirs/system-data2 1308s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_fileutils_2TA4J3/fileutils/get-contents/.dirs/data 1308s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_fileutils_2TA4J3/fileutils/get-contents/.dirs/state 1308s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_fileutils_2TA4J3/fileutils/get-contents/.dirs/runtime 1308s ok 18 /fileutils/get-contents 1308s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_fileutils_2TA4J3/fileutils/get-contents-large-file/.dirs/home 1308s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_fileutils_2TA4J3/fileutils/get-contents-large-file/.dirs/cache 1308s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_fileutils_2TA4J3/fileutils/get-contents-large-file/.dirs/system-config1:/tmp/test_fileutils_2TA4J3/fileutils/get-contents-large-file/.dirs/system-config2 1308s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_fileutils_2TA4J3/fileutils/get-contents-large-file/.dirs/config 1308s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_fileutils_2TA4J3/fileutils/get-contents-large-file/.dirs/system-data1:/tmp/test_fileutils_2TA4J3/fileutils/get-contents-large-file/.dirs/system-data2 1308s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_fileutils_2TA4J3/fileutils/get-contents-large-file/.dirs/data 1308s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_fileutils_2TA4J3/fileutils/get-contents-large-file/.dirs/state 1308s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_fileutils_2TA4J3/fileutils/get-contents-large-file/.dirs/runtime 1308s ok 19 /fileutils/get-contents-large-file # SKIP Skipping slow largefile test 1308s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_fileutils_2TA4J3/fileutils/set-contents/.dirs/home 1308s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_fileutils_2TA4J3/fileutils/set-contents/.dirs/cache 1308s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_fileutils_2TA4J3/fileutils/set-contents/.dirs/system-config1:/tmp/test_fileutils_2TA4J3/fileutils/set-contents/.dirs/system-config2 1308s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_fileutils_2TA4J3/fileutils/set-contents/.dirs/config 1308s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_fileutils_2TA4J3/fileutils/set-contents/.dirs/system-data1:/tmp/test_fileutils_2TA4J3/fileutils/set-contents/.dirs/system-data2 1308s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_fileutils_2TA4J3/fileutils/set-contents/.dirs/data 1308s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_fileutils_2TA4J3/fileutils/set-contents/.dirs/state 1308s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_fileutils_2TA4J3/fileutils/set-contents/.dirs/runtime 1308s ok 20 /fileutils/set-contents 1308s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_fileutils_2TA4J3/fileutils/set-contents-full/.dirs/home 1308s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_fileutils_2TA4J3/fileutils/set-contents-full/.dirs/cache 1308s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_fileutils_2TA4J3/fileutils/set-contents-full/.dirs/system-config1:/tmp/test_fileutils_2TA4J3/fileutils/set-contents-full/.dirs/system-config2 1308s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_fileutils_2TA4J3/fileutils/set-contents-full/.dirs/config 1308s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_fileutils_2TA4J3/fileutils/set-contents-full/.dirs/system-data1:/tmp/test_fileutils_2TA4J3/fileutils/set-contents-full/.dirs/system-data2 1308s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_fileutils_2TA4J3/fileutils/set-contents-full/.dirs/data 1308s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_fileutils_2TA4J3/fileutils/set-contents-full/.dirs/state 1308s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_fileutils_2TA4J3/fileutils/set-contents-full/.dirs/runtime 1308s # /fileutils/set-contents-full summary: Test g_file_set_contents_full() with various flags 1308s # Flags 0 and test 0 1308s # Flags 0 and test 1 1308s # Flags 0 and test 2 1308s # Flags 0 and test 3 1308s # Flags 0 and test 4 1308s # Flags 0 and test 5 1308s # Flags 0 and test 6 1308s # Flags 1 and test 0 1308s # Flags 1 and test 1 1308s # Flags 1 and test 2 1308s # Flags 1 and test 3 1308s # Flags 1 and test 4 1308s # Flags 1 and test 5 1308s # Flags 1 and test 6 1308s # Flags 2 and test 0 1308s # Flags 2 and test 1 1308s # Flags 2 and test 2 1308s # Flags 2 and test 3 1308s # Flags 2 and test 4 1308s # Flags 2 and test 5 1308s # Flags 2 and test 6 1308s # Flags 3 and test 0 1308s # Flags 3 and test 1 1308s # Flags 3 and test 2 1308s # Flags 3 and test 3 1308s # Flags 3 and test 4 1308s # Flags 3 and test 5 1308s # Flags 3 and test 6 1308s # Flags 4 and test 0 1308s # Flags 4 and test 1 1308s # Flags 4 and test 2 1308s # Flags 4 and test 3 1308s # Flags 4 and test 4 1308s # Flags 4 and test 5 1308s # Flags 4 and test 6 1308s # Flags 5 and test 0 1308s # Flags 5 and test 1 1308s # Flags 5 and test 2 1308s # Flags 5 and test 3 1308s # Flags 5 and test 4 1308s # Flags 5 and test 5 1308s # Flags 5 and test 6 1308s # Flags 6 and test 0 1308s # Flags 6 and test 1 1308s # Flags 6 and test 2 1308s # Flags 6 and test 3 1308s # Flags 6 and test 4 1308s # Flags 6 and test 5 1308s # Flags 6 and test 6 1308s ok 21 /fileutils/set-contents-full 1308s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_fileutils_2TA4J3/fileutils/read-link/.dirs/home 1308s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_fileutils_2TA4J3/fileutils/read-link/.dirs/cache 1308s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_fileutils_2TA4J3/fileutils/read-link/.dirs/system-config1:/tmp/test_fileutils_2TA4J3/fileutils/read-link/.dirs/system-config2 1308s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_fileutils_2TA4J3/fileutils/read-link/.dirs/config 1308s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_fileutils_2TA4J3/fileutils/read-link/.dirs/system-data1:/tmp/test_fileutils_2TA4J3/fileutils/read-link/.dirs/system-data2 1308s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_fileutils_2TA4J3/fileutils/read-link/.dirs/data 1308s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_fileutils_2TA4J3/fileutils/read-link/.dirs/state 1308s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_fileutils_2TA4J3/fileutils/read-link/.dirs/runtime 1308s ok 22 /fileutils/read-link 1308s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_fileutils_2TA4J3/fileutils/stdio-wrappers/.dirs/home 1308s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_fileutils_2TA4J3/fileutils/stdio-wrappers/.dirs/cache 1308s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_fileutils_2TA4J3/fileutils/stdio-wrappers/.dirs/system-config1:/tmp/test_fileutils_2TA4J3/fileutils/stdio-wrappers/.dirs/system-config2 1308s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_fileutils_2TA4J3/fileutils/stdio-wrappers/.dirs/config 1308s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_fileutils_2TA4J3/fileutils/stdio-wrappers/.dirs/system-data1:/tmp/test_fileutils_2TA4J3/fileutils/stdio-wrappers/.dirs/system-data2 1308s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_fileutils_2TA4J3/fileutils/stdio-wrappers/.dirs/data 1308s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_fileutils_2TA4J3/fileutils/stdio-wrappers/.dirs/state 1308s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_fileutils_2TA4J3/fileutils/stdio-wrappers/.dirs/runtime 1308s # We do not have CAP_DAC_OVERRIDE or equivalent 1308s ok 23 /fileutils/stdio-wrappers 1308s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_fileutils_2TA4J3/fileutils/fopen-modes/.dirs/home 1308s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_fileutils_2TA4J3/fileutils/fopen-modes/.dirs/cache 1308s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_fileutils_2TA4J3/fileutils/fopen-modes/.dirs/system-config1:/tmp/test_fileutils_2TA4J3/fileutils/fopen-modes/.dirs/system-config2 1308s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_fileutils_2TA4J3/fileutils/fopen-modes/.dirs/config 1308s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_fileutils_2TA4J3/fileutils/fopen-modes/.dirs/system-data1:/tmp/test_fileutils_2TA4J3/fileutils/fopen-modes/.dirs/system-data2 1308s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_fileutils_2TA4J3/fileutils/fopen-modes/.dirs/data 1308s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_fileutils_2TA4J3/fileutils/fopen-modes/.dirs/state 1308s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_fileutils_2TA4J3/fileutils/fopen-modes/.dirs/runtime 1308s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/merge_requests/119 1308s # Testing fopen() mode 'w' 1308s # Testing fopen() mode 'r' 1308s # Testing fopen() mode 'a' 1308s # Testing fopen() mode 'w+' 1308s # Testing fopen() mode 'r+' 1308s # Testing fopen() mode 'a+' 1308s # Testing fopen() mode 'wb' 1308s # Testing fopen() mode 'rb' 1308s # Testing fopen() mode 'ab' 1308s # Testing fopen() mode 'w+b' 1308s # Testing fopen() mode 'r+b' 1308s # Testing fopen() mode 'a+b' 1308s # Testing fopen() mode 'wb+' 1308s # Testing fopen() mode 'rb+' 1308s # Testing fopen() mode 'ab+' 1308s # Testing fopen() mode 'we' 1308s # Testing fopen() mode 're' 1308s # Testing fopen() mode 'ae' 1308s # Testing fopen() mode 'w+e' 1308s # Testing fopen() mode 'r+e' 1308s # Testing fopen() mode 'a+e' 1308s # Testing fopen() mode 'wbe' 1308s # Testing fopen() mode 'rbe' 1308s # Testing fopen() mode 'abe' 1308s # Testing fopen() mode 'w+be' 1308s # Testing fopen() mode 'r+be' 1308s # Testing fopen() mode 'a+be' 1308s # Testing fopen() mode 'wb+e' 1308s # Testing fopen() mode 'rb+e' 1308s # Testing fopen() mode 'ab+e' 1308s # Testing fopen() mode 'web' 1308s # Testing fopen() mode 'reb' 1308s # Testing fopen() mode 'aeb' 1308s # Testing fopen() mode 'w+eb' 1308s # Testing fopen() mode 'r+eb' 1308s # Testing fopen() mode 'a+eb' 1308s # Testing fopen() mode 'web+' 1308s # Testing fopen() mode 'reb+' 1308s # Testing fopen() mode 'aeb+' 1308s ok 24 /fileutils/fopen-modes 1308s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_fileutils_2TA4J3/fileutils/clear-fd/.dirs/home 1308s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_fileutils_2TA4J3/fileutils/clear-fd/.dirs/cache 1308s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_fileutils_2TA4J3/fileutils/clear-fd/.dirs/system-config1:/tmp/test_fileutils_2TA4J3/fileutils/clear-fd/.dirs/system-config2 1308s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_fileutils_2TA4J3/fileutils/clear-fd/.dirs/config 1308s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_fileutils_2TA4J3/fileutils/clear-fd/.dirs/system-data1:/tmp/test_fileutils_2TA4J3/fileutils/clear-fd/.dirs/system-data2 1308s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_fileutils_2TA4J3/fileutils/clear-fd/.dirs/data 1308s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_fileutils_2TA4J3/fileutils/clear-fd/.dirs/state 1308s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_fileutils_2TA4J3/fileutils/clear-fd/.dirs/runtime 1308s # /fileutils/clear-fd summary: Test g_clear_fd() and g_autofd 1308s # Will be closed by autocleanup: 3, -42 1308s # Testing error handling 1308s ok 25 /fileutils/clear-fd 1308s # Start of set-contents-full tests 1308s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_fileutils_2TA4J3/fileutils/set-contents-full/read-only-file/.dirs/home 1308s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_fileutils_2TA4J3/fileutils/set-contents-full/read-only-file/.dirs/cache 1308s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_fileutils_2TA4J3/fileutils/set-contents-full/read-only-file/.dirs/system-config1:/tmp/test_fileutils_2TA4J3/fileutils/set-contents-full/read-only-file/.dirs/system-config2 1308s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_fileutils_2TA4J3/fileutils/set-contents-full/read-only-file/.dirs/config 1308s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_fileutils_2TA4J3/fileutils/set-contents-full/read-only-file/.dirs/system-data1:/tmp/test_fileutils_2TA4J3/fileutils/set-contents-full/read-only-file/.dirs/system-data2 1308s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_fileutils_2TA4J3/fileutils/set-contents-full/read-only-file/.dirs/data 1308s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_fileutils_2TA4J3/fileutils/set-contents-full/read-only-file/.dirs/state 1308s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_fileutils_2TA4J3/fileutils/set-contents-full/read-only-file/.dirs/runtime 1308s # We do not have CAP_DAC_OVERRIDE or equivalent 1308s # /fileutils/set-contents-full/read-only-file summary: Test g_file_set_contents_full() on a read-only file 1308s ok 26 /fileutils/set-contents-full/read-only-file 1308s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_fileutils_2TA4J3/fileutils/set-contents-full/read-only-directory/.dirs/home 1308s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_fileutils_2TA4J3/fileutils/set-contents-full/read-only-directory/.dirs/cache 1308s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_fileutils_2TA4J3/fileutils/set-contents-full/read-only-directory/.dirs/system-config1:/tmp/test_fileutils_2TA4J3/fileutils/set-contents-full/read-only-directory/.dirs/system-config2 1308s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_fileutils_2TA4J3/fileutils/set-contents-full/read-only-directory/.dirs/config 1308s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_fileutils_2TA4J3/fileutils/set-contents-full/read-only-directory/.dirs/system-data1:/tmp/test_fileutils_2TA4J3/fileutils/set-contents-full/read-only-directory/.dirs/system-data2 1308s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_fileutils_2TA4J3/fileutils/set-contents-full/read-only-directory/.dirs/data 1308s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_fileutils_2TA4J3/fileutils/set-contents-full/read-only-directory/.dirs/state 1308s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_fileutils_2TA4J3/fileutils/set-contents-full/read-only-directory/.dirs/runtime 1308s # /fileutils/set-contents-full/read-only-directory summary: Test g_file_set_contents_full() on a file in a read-only directory 1308s # Flags 0 1308s # We do not have CAP_DAC_OVERRIDE or equivalent 1308s # Flags 1 1308s # We do not have CAP_DAC_OVERRIDE or equivalent 1308s # Flags 2 1308s # We do not have CAP_DAC_OVERRIDE or equivalent 1308s # Flags 3 1308s # We do not have CAP_DAC_OVERRIDE or equivalent 1308s # Flags 4 1308s # We do not have CAP_DAC_OVERRIDE or equivalent 1308s # Flags 5 1308s # We do not have CAP_DAC_OVERRIDE or equivalent 1308s # Flags 6 1308s # We do not have CAP_DAC_OVERRIDE or equivalent 1308s ok 27 /fileutils/set-contents-full/read-only-directory 1308s # End of set-contents-full tests 1308s # Start of clear-fd tests 1308s # Start of subprocess tests 1308s # End of subprocess tests 1308s # End of clear-fd tests 1308s # End of fileutils tests 1308s Unable to clean up temporary directory /tmp/test_fileutils_2TA4J3/glib-file-set-contents-full-rodir-U2FOK3: Directory not empty 1308s Unable to clean up temporary directory /tmp/test_fileutils_2TA4J3/glib-file-set-contents-full-rodir-NKHOK3: Directory not empty 1308s Unable to clean up temporary directory /tmp/test_fileutils_2TA4J3/glib-file-set-contents-full-rodir-Y65NK3: Directory not empty 1308s Unable to clean up temporary directory /tmp/test_fileutils_2TA4J3/glib-file-set-contents-full-rodir-N47NK3: Directory not empty 1308s Unable to clean up temporary directory /tmp/test_fileutils_2TA4J3/glib-file-set-contents-full-rodir-ZX9NK3: Directory not empty 1308s Unable to clean up temporary directory /tmp/test_fileutils_2TA4J3/glib-file-set-contents-full-rodir-OJBOK3: Directory not empty 1308s Unable to clean up temporary directory /tmp/test_fileutils_2TA4J3/glib-file-set-contents-full-rodir-L4BOK3: Directory not empty 1308s Unable to clean up temporary directory /tmp/test_fileutils_2TA4J3: Directory not empty 1308s ok - glib/fileutils.test 1308s # Running test: glib/gsubprocess.test 1308s TAP version 14 1308s # random seed: R02S7dad3108d18b258660edb514ded91d39 1308s 1..84 1308s # Start of gsubprocess tests 1308s ok 1 /gsubprocess/noop 1308s ok 2 /gsubprocess/noop-all-to-null 1308s ok 3 /gsubprocess/noop-no-wait 1308s ok 4 /gsubprocess/noop-stdin-inherit 1308s ok 5 /gsubprocess/search-path 1308s ok 6 /gsubprocess/search-path-from-envp 1310s # Executing: glib/gsubprocess.test 1312s ok 7 /gsubprocess/signal 1312s # slow test /gsubprocess/signal executed in 3.51 secs 1312s ok 8 /gsubprocess/exit1 1312s ok 9 /gsubprocess/echo1 1312s ok 10 /gsubprocess/echo-merged 1312s ok 11 /gsubprocess/cat-utf8 1313s ok 12 /gsubprocess/cat-eof 1313s # slow test /gsubprocess/cat-eof executed in 1.00 secs 1315s # Executing: glib/gsubprocess.test 1316s ok 13 /gsubprocess/multi1 1316s # slow test /gsubprocess/multi1 executed in 3.01 secs 1316s ok 14 /gsubprocess/communicate 1319s ok 15 /gsubprocess/terminate 1319s # slow test /gsubprocess/terminate executed in 2.95 secs 1319s ok 16 /gsubprocess/fail-initialization 1319s ok 17 /gsubprocess/env 1319s ok 18 /gsubprocess/cwd 1319s ok 19 /gsubprocess/launcher-close 1319s # GLib-GIO-DEBUG: _g_io_module_get_default: Found default implementation local (GLocalVfs) for ‘gio-vfs’ 1319s ok 20 /gsubprocess/stdout-file 1319s ok 21 /gsubprocess/stdout-fd 1319s ok 22 /gsubprocess/child-setup 1319s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1319s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1319s ok 23 /gsubprocess/launcher-environment 1319s # Start of exit1 tests 1319s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=786456 1319s ok 24 /gsubprocess/exit1/cancel 1319s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=786456 1319s ok 25 /gsubprocess/exit1/cancel_in_cb 1319s # End of exit1 tests 1319s # Start of communicate tests 1319s ok 26 /gsubprocess/communicate/cancelled 1319s ok 27 /gsubprocess/communicate/async 1319s ok 28 /gsubprocess/communicate/utf8 1319s # hello world 1319s ok 29 /gsubprocess/communicate/no-pipes 1319s ok 30 /gsubprocess/communicate/separate-stderr 1319s ok 31 /gsubprocess/communicate/stdout-only 1319s # hello world 1319s ok 32 /gsubprocess/communicate/stderr-only 1319s ok 33 /gsubprocess/communicate/stdout-silence 1319s ok 34 /gsubprocess/communicate/nothing 1319s # Start of async tests 1319s ok 35 /gsubprocess/communicate/async/cancelled 1319s # hello world 1319s ok 36 /gsubprocess/communicate/async/no-pipes 1319s ok 37 /gsubprocess/communicate/async/separate-stderr 1319s ok 38 /gsubprocess/communicate/async/stdout-only 1319s # hello world 1319s ok 39 /gsubprocess/communicate/async/stderr-only 1319s ok 40 /gsubprocess/communicate/async/stdout-silence 1319s # Start of cancelled tests 1319s ok 41 /gsubprocess/communicate/async/cancelled/no-pipes 1319s ok 42 /gsubprocess/communicate/async/cancelled/separate-stderr 1319s ok 43 /gsubprocess/communicate/async/cancelled/stdout-only 1319s ok 44 /gsubprocess/communicate/async/cancelled/stderr-only 1319s ok 45 /gsubprocess/communicate/async/cancelled/stdout-silence 1319s # End of cancelled tests 1319s # End of async tests 1319s # Start of utf8 tests 1319s ok 46 /gsubprocess/communicate/utf8/cancelled 1319s ok 47 /gsubprocess/communicate/utf8/async 1319s # hello world 1319s ok 48 /gsubprocess/communicate/utf8/no-pipes 1319s ok 49 /gsubprocess/communicate/utf8/separate-stderr 1319s ok 50 /gsubprocess/communicate/utf8/stdout-only 1319s # hello world 1319s ok 51 /gsubprocess/communicate/utf8/stderr-only 1319s ok 52 /gsubprocess/communicate/utf8/stdout-silence 1319s ok 53 /gsubprocess/communicate/utf8/invalid 1319s # Start of async tests 1319s ok 54 /gsubprocess/communicate/utf8/async/cancelled 1319s # hello world 1319s ok 55 /gsubprocess/communicate/utf8/async/no-pipes 1319s ok 56 /gsubprocess/communicate/utf8/async/separate-stderr 1319s ok 57 /gsubprocess/communicate/utf8/async/stdout-only 1319s # hello world 1319s ok 58 /gsubprocess/communicate/utf8/async/stderr-only 1319s ok 59 /gsubprocess/communicate/utf8/async/stdout-silence 1319s ok 60 /gsubprocess/communicate/utf8/async/invalid 1319s # Start of cancelled tests 1319s ok 61 /gsubprocess/communicate/utf8/async/cancelled/no-pipes 1319s ok 62 /gsubprocess/communicate/utf8/async/cancelled/separate-stderr 1319s ok 63 /gsubprocess/communicate/utf8/async/cancelled/stdout-only 1319s ok 64 /gsubprocess/communicate/utf8/async/cancelled/stderr-only 1319s ok 65 /gsubprocess/communicate/utf8/async/cancelled/stdout-silence 1319s # End of cancelled tests 1319s # End of async tests 1319s # Start of cancelled tests 1319s ok 66 /gsubprocess/communicate/utf8/cancelled/no-pipes 1319s ok 67 /gsubprocess/communicate/utf8/cancelled/separate-stderr 1319s ok 68 /gsubprocess/communicate/utf8/cancelled/stdout-only 1319s ok 69 /gsubprocess/communicate/utf8/cancelled/stderr-only 1319s ok 70 /gsubprocess/communicate/utf8/cancelled/stdout-silence 1319s # End of cancelled tests 1319s # End of utf8 tests 1319s # Start of cancelled tests 1319s ok 71 /gsubprocess/communicate/cancelled/no-pipes 1319s ok 72 /gsubprocess/communicate/cancelled/separate-stderr 1319s ok 73 /gsubprocess/communicate/cancelled/stdout-only 1319s ok 74 /gsubprocess/communicate/cancelled/stderr-only 1319s ok 75 /gsubprocess/communicate/cancelled/stdout-silence 1319s # End of cancelled tests 1319s # End of communicate tests 1319s # Start of env tests 1319s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1319s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1319s ok 76 /gsubprocess/env/inherit 1319s # End of env tests 1319s # Start of pass-fd tests 1319s ok 77 /gsubprocess/pass-fd/basic 1319s ok 78 /gsubprocess/pass-fd/empty-child-setup 1319s ok 79 /gsubprocess/pass-fd/inherit-fds 1319s # End of pass-fd tests 1319s # Start of fd-conflation tests 1319s ok 80 /gsubprocess/fd-conflation/basic 1319s ok 81 /gsubprocess/fd-conflation/empty-child-setup 1319s ok 82 /gsubprocess/fd-conflation/inherit-fds 1319s ok 83 /gsubprocess/fd-conflation/child-err-report-fd 1319s # End of fd-conflation tests 1319s # Start of exit-status tests 1319s # /gsubprocess/exit-status/trapped summary: Test that exit status is reported correctly for ptrace()d child processes 1319s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/merge_requests/3433 1319s ok 84 /gsubprocess/exit-status/trapped 1319s # End of exit-status tests 1319s # End of gsubprocess tests 1319s TAP version 14 1319s # random seed: R02S1cee57e724361b69daf46e1dd298b134 1319s 1..7 1319s # Start of file-thumbnail tests 1319s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file-thumbnail_MRXOK3/file-thumbnail/fail/.dirs/home 1319s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file-thumbnail_MRXOK3/file-thumbnail/fail/.dirs/cache 1319s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file-thumbnail_MRXOK3/file-thumbnail/fail/.dirs/system-config1:/tmp/test_file-thumbnail_MRXOK3/file-thumbnail/fail/.dirs/system-config2 1319s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file-thumbnail_MRXOK3/file-thumbnail/fail/.dirs/config 1319s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file-thumbnail_MRXOK3/file-thumbnail/fail/.dirs/system-data1:/tmp/test_file-thumbnail_MRXOK3/file-thumbnail/fail/.dirs/system-data2 1319s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file-thumbnail_MRXOK3/file-thumbnail/fail/.dirs/data 1319s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file-thumbnail_MRXOK3/file-thumbnail/fail/.dirs/state 1319s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file-thumbnail_MRXOK3/file-thumbnail/fail/.dirs/runtime 1319s # GLib-GIO-DEBUG: _g_io_module_get_default: Found default implementation local (GLocalVfs) for ‘gio-vfs’ 1319s # Created test thumbnail at /tmp/test_file-thumbnail_MRXOK3/file-thumbnail/fail/.dirs/cache/thumbnails/fail/gnome-thumbnail-factory/f098bcae74f8241ee3835bded7284cdd.png 1319s ok - glib/gsubprocess.test 1319s ok 1 /file-thumbnail/fail 1319s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file-thumbnail_MRXOK3/file-thumbnail/size-priority/.dirs/home 1319s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file-thumbnail_MRXOK3/file-thumbnail/size-priority/.dirs/cache 1319s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file-thumbnail_MRXOK3/file-thumbnail/size-priority/.dirs/system-config1:/tmp/test_file-thumbnail_MRXOK3/file-thumbnail/size-priority/.dirs/system-config2 1319s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file-thumbnail_MRXOK3/file-thumbnail/size-priority/.dirs/config 1319s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file-thumbnail_MRXOK3/file-thumbnail/size-priority/.dirs/system-data1:/tmp/test_file-thumbnail_MRXOK3/file-thumbnail/size-priority/.dirs/system-data2 1319s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file-thumbnail_MRXOK3/file-thumbnail/size-priority/.dirs/data 1319s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file-thumbnail_MRXOK3/file-thumbnail/size-priority/.dirs/state 1319s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file-thumbnail_MRXOK3/file-thumbnail/size-priority/.dirs/runtime 1319s # Created test thumbnail at /tmp/test_file-thumbnail_MRXOK3/file-thumbnail/size-priority/.dirs/cache/thumbnails/fail/gnome-thumbnail-factory/f098bcae74f8241ee3835bded7284cdd.png 1319s # Created test thumbnail at /tmp/test_file-thumbnail_MRXOK3/file-thumbnail/size-priority/.dirs/cache/thumbnails/normal/f098bcae74f8241ee3835bded7284cdd.png 1319s # Created test thumbnail at /tmp/test_file-thumbnail_MRXOK3/file-thumbnail/size-priority/.dirs/cache/thumbnails/large/f098bcae74f8241ee3835bded7284cdd.png 1319s # Created test thumbnail at /tmp/test_file-thumbnail_MRXOK3/file-thumbnail/size-priority/.dirs/cache/thumbnails/x-large/f098bcae74f8241ee3835bded7284cdd.png 1319s # Running test: glib/file-thumbnail.test 1319s # Created test thumbnail at /tmp/test_file-thumbnail_MRXOK3/file-thumbnail/size-priority/.dirs/cache/thumbnails/xx-large/f098bcae74f8241ee3835bded7284cdd.png 1319s ok 2 /file-thumbnail/size-priority 1319s # Start of valid tests 1319s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file-thumbnail_MRXOK3/file-thumbnail/valid/normal/.dirs/home 1319s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file-thumbnail_MRXOK3/file-thumbnail/valid/normal/.dirs/cache 1319s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file-thumbnail_MRXOK3/file-thumbnail/valid/normal/.dirs/system-config1:/tmp/test_file-thumbnail_MRXOK3/file-thumbnail/valid/normal/.dirs/system-config2 1319s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file-thumbnail_MRXOK3/file-thumbnail/valid/normal/.dirs/config 1319s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file-thumbnail_MRXOK3/file-thumbnail/valid/normal/.dirs/system-data1:/tmp/test_file-thumbnail_MRXOK3/file-thumbnail/valid/normal/.dirs/system-data2 1319s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file-thumbnail_MRXOK3/file-thumbnail/valid/normal/.dirs/data 1319s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file-thumbnail_MRXOK3/file-thumbnail/valid/normal/.dirs/state 1319s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file-thumbnail_MRXOK3/file-thumbnail/valid/normal/.dirs/runtime 1319s # Created test thumbnail at /tmp/test_file-thumbnail_MRXOK3/file-thumbnail/valid/normal/.dirs/cache/thumbnails/normal/f098bcae74f8241ee3835bded7284cdd.png 1319s ok 3 /file-thumbnail/valid/normal 1319s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file-thumbnail_MRXOK3/file-thumbnail/valid/large/.dirs/home 1319s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file-thumbnail_MRXOK3/file-thumbnail/valid/large/.dirs/cache 1319s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file-thumbnail_MRXOK3/file-thumbnail/valid/large/.dirs/system-config1:/tmp/test_file-thumbnail_MRXOK3/file-thumbnail/valid/large/.dirs/system-config2 1319s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file-thumbnail_MRXOK3/file-thumbnail/valid/large/.dirs/config 1319s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file-thumbnail_MRXOK3/file-thumbnail/valid/large/.dirs/system-data1:/tmp/test_file-thumbnail_MRXOK3/file-thumbnail/valid/large/.dirs/system-data2 1319s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file-thumbnail_MRXOK3/file-thumbnail/valid/large/.dirs/data 1319s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file-thumbnail_MRXOK3/file-thumbnail/valid/large/.dirs/state 1319s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file-thumbnail_MRXOK3/file-thumbnail/valid/large/.dirs/runtime 1319s # Created test thumbnail at /tmp/test_file-thumbnail_MRXOK3/file-thumbnail/valid/large/.dirs/cache/thumbnails/large/f098bcae74f8241ee3835bded7284cdd.png 1319s ok 4 /file-thumbnail/valid/large 1319s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file-thumbnail_MRXOK3/file-thumbnail/valid/x-large/.dirs/home 1319s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file-thumbnail_MRXOK3/file-thumbnail/valid/x-large/.dirs/cache 1319s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file-thumbnail_MRXOK3/file-thumbnail/valid/x-large/.dirs/system-config1:/tmp/test_file-thumbnail_MRXOK3/file-thumbnail/valid/x-large/.dirs/system-config2 1319s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file-thumbnail_MRXOK3/file-thumbnail/valid/x-large/.dirs/config 1319s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file-thumbnail_MRXOK3/file-thumbnail/valid/x-large/.dirs/system-data1:/tmp/test_file-thumbnail_MRXOK3/file-thumbnail/valid/x-large/.dirs/system-data2 1319s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file-thumbnail_MRXOK3/file-thumbnail/valid/x-large/.dirs/data 1319s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file-thumbnail_MRXOK3/file-thumbnail/valid/x-large/.dirs/state 1319s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file-thumbnail_MRXOK3/file-thumbnail/valid/x-large/.dirs/runtime 1319s # Created test thumbnail at /tmp/test_file-thumbnail_MRXOK3/file-thumbnail/valid/x-large/.dirs/cache/thumbnails/x-large/f098bcae74f8241ee3835bded7284cdd.png 1319s ok 5 /file-thumbnail/valid/x-large 1319s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file-thumbnail_MRXOK3/file-thumbnail/valid/xx-large/.dirs/home 1319s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file-thumbnail_MRXOK3/file-thumbnail/valid/xx-large/.dirs/cache 1319s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file-thumbnail_MRXOK3/file-thumbnail/valid/xx-large/.dirs/system-config1:/tmp/test_file-thumbnail_MRXOK3/file-thumbnail/valid/xx-large/.dirs/system-config2 1319s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file-thumbnail_MRXOK3/file-thumbnail/valid/xx-large/.dirs/config 1319s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file-thumbnail_MRXOK3/file-thumbnail/valid/xx-large/.dirs/system-data1:/tmp/test_file-thumbnail_MRXOK3/file-thumbnail/valid/xx-large/.dirs/system-data2 1319s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file-thumbnail_MRXOK3/file-thumbnail/valid/xx-large/.dirs/data 1319s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file-thumbnail_MRXOK3/file-thumbnail/valid/xx-large/.dirs/state 1319s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file-thumbnail_MRXOK3/file-thumbnail/valid/xx-large/.dirs/runtime 1319s # Created test thumbnail at /tmp/test_file-thumbnail_MRXOK3/file-thumbnail/valid/xx-large/.dirs/cache/thumbnails/xx-large/f098bcae74f8241ee3835bded7284cdd.png 1319s ok 6 /file-thumbnail/valid/xx-large 1319s # End of valid tests 1319s # Start of unknown tests 1319s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file-thumbnail_MRXOK3/file-thumbnail/unknown/super-large/.dirs/home 1319s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file-thumbnail_MRXOK3/file-thumbnail/unknown/super-large/.dirs/cache 1319s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file-thumbnail_MRXOK3/file-thumbnail/unknown/super-large/.dirs/system-config1:/tmp/test_file-thumbnail_MRXOK3/file-thumbnail/unknown/super-large/.dirs/system-config2 1319s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file-thumbnail_MRXOK3/file-thumbnail/unknown/super-large/.dirs/config 1319s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file-thumbnail_MRXOK3/file-thumbnail/unknown/super-large/.dirs/system-data1:/tmp/test_file-thumbnail_MRXOK3/file-thumbnail/unknown/super-large/.dirs/system-data2 1319s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file-thumbnail_MRXOK3/file-thumbnail/unknown/super-large/.dirs/data 1319s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file-thumbnail_MRXOK3/file-thumbnail/unknown/super-large/.dirs/state 1319s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file-thumbnail_MRXOK3/file-thumbnail/unknown/super-large/.dirs/runtime 1319s # Created test thumbnail at /tmp/test_file-thumbnail_MRXOK3/file-thumbnail/unknown/super-large/.dirs/cache/thumbnails/super-large/f098bcae74f8241ee3835bded7284cdd.png 1319s ok 7 /file-thumbnail/unknown/super-large 1319s # End of unknown tests 1319s # End of file-thumbnail tests 1319s ok - glib/file-thumbnail.test 1319s TAP version 14 1319s # random seed: R02S3fe1d670284d143459179c2a53646a12 1319s 1..2 1319s # Start of spawn tests 1319s # Running test: glib/spawn-test.test 1319s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_spawn-test_OVRPK3/spawn/basics/.dirs/home 1319s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_spawn-test_OVRPK3/spawn/basics/.dirs/cache 1319s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_spawn-test_OVRPK3/spawn/basics/.dirs/system-config1:/tmp/test_spawn-test_OVRPK3/spawn/basics/.dirs/system-config2 1319s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_spawn-test_OVRPK3/spawn/basics/.dirs/config 1319s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_spawn-test_OVRPK3/spawn/basics/.dirs/system-data1:/tmp/test_spawn-test_OVRPK3/spawn/basics/.dirs/system-data2 1319s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_spawn-test_OVRPK3/spawn/basics/.dirs/data 1319s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_spawn-test_OVRPK3/spawn/basics/.dirs/state 1319s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_spawn-test_OVRPK3/spawn/basics/.dirs/runtime 1319s ok 1 /spawn/basics 1319s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_spawn-test_OVRPK3/spawn/stdio-overwrite/.dirs/home 1319s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_spawn-test_OVRPK3/spawn/stdio-overwrite/.dirs/cache 1319s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_spawn-test_OVRPK3/spawn/stdio-overwrite/.dirs/system-config1:/tmp/test_spawn-test_OVRPK3/spawn/stdio-overwrite/.dirs/system-config2 1319s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_spawn-test_OVRPK3/spawn/stdio-overwrite/.dirs/config 1319s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_spawn-test_OVRPK3/spawn/stdio-overwrite/.dirs/system-data1:/tmp/test_spawn-test_OVRPK3/spawn/stdio-overwrite/.dirs/system-data2 1319s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_spawn-test_OVRPK3/spawn/stdio-overwrite/.dirs/data 1319s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_spawn-test_OVRPK3/spawn/stdio-overwrite/.dirs/state 1319s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_spawn-test_OVRPK3/spawn/stdio-overwrite/.dirs/runtime 1319s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/16 1319s # Fetching GSpawn result output and error output with stdin open, stdout open, stderr open 1319s # Fetching GSpawn result output and error output with stdin open, stdout open, stderr already closed 1319s # Fetching GSpawn result output and error output with stdin open, stdout already closed, stderr open 1319s # Fetching GSpawn result output and error output with stdin open, stdout already closed, stderr already closed 1319s # Fetching GSpawn result output and error output with stdin already closed, stdout open, stderr open 1319s # Fetching GSpawn result output and error output with stdin already closed, stdout open, stderr already closed 1319s # Fetching GSpawn result output and error output with stdin already closed, stdout already closed, stderr open 1319s # Fetching GSpawn result output and error output with stdin already closed, stdout already closed, stderr already closed 1319s # Fetching GSpawn result output with stdin open, stdout open, stderr open 1319s # Fetching GSpawn result output with stdin open, stdout open, stderr already closed 1319s # Fetching GSpawn result output with stdin open, stdout already closed, stderr open 1319s # Fetching GSpawn result output with stdin open, stdout already closed, stderr already closed 1319s # Fetching GSpawn result output with stdin already closed, stdout open, stderr open 1319s # Fetching GSpawn result output with stdin already closed, stdout open, stderr already closed 1319s # Fetching GSpawn result output with stdin already closed, stdout already closed, stderr open 1319s # Fetching GSpawn result output with stdin already closed, stdout already closed, stderr already closed 1319s # Fetching GSpawn result error output with stdin open, stdout open, stderr open 1319s # Fetching GSpawn result error output with stdin open, stdout open, stderr already closed 1319s # Fetching GSpawn result error output with stdin open, stdout already closed, stderr open 1319s # Fetching GSpawn result error output with stdin open, stdout already closed, stderr already closed 1319s # Fetching GSpawn result error output with stdin already closed, stdout open, stderr open 1319s # Fetching GSpawn result error output with stdin already closed, stdout open, stderr already closed 1319s # Fetching GSpawn result error output with stdin already closed, stdout already closed, stderr open 1319s # Fetching GSpawn result error output with stdin already closed, stdout already closed, stderr already closed 1319s # Fetching GSpawn result with stdin open, stdout open, stderr open 1319s # Fetching GSpawn result with stdin open, stdout open, stderr already closed 1319s # Fetching GSpawn result with stdin open, stdout already closed, stderr open 1319s # Fetching GSpawn result with stdin open, stdout already closed, stderr already closed 1319s # Fetching GSpawn result with stdin already closed, stdout open, stderr open 1319s # Fetching GSpawn result with stdin already closed, stdout open, stderr already closed 1319s # Fetching GSpawn result with stdin already closed, stdout already closed, stderr open 1319s # Fetching GSpawn result with stdin already closed, stdout already closed, stderr already closed 1319s ok 2 /spawn/stdio-overwrite 1319s # End of spawn tests 1319s ok - glib/spawn-test.test 1319s # Running test: glib/memory-input-stream.test 1319s TAP version 14 1319s # random seed: R02S59a70ebfdc1d826bc1bf1ad9a4b6644e 1319s 1..6 1319s # Start of memory-input-stream tests 1319s ok 1 /memory-input-stream/read-chunks 1319s ok 2 /memory-input-stream/async 1319s ok 3 /memory-input-stream/seek 1319s ok 4 /memory-input-stream/truncate 1319s ok 5 /memory-input-stream/read-bytes 1319s ok 6 /memory-input-stream/from-bytes 1319s # End of memory-input-stream tests 1319s ok - glib/memory-input-stream.test 1319s # Running test: glib/performance.test 1320s # Executing: glib/performance.test 1325s # Executing: glib/performance.test 1327s simple-construction: Millions of constructed objects per second: 11.703 1330s # Executing: glib/performance.test 1330s simple-construction1: Millions of constructed objects per second: 67.578 1334s complex-construction: Millions of constructed objects per second: 4.672 1335s # Executing: glib/performance.test 1340s # Executing: glib/performance.test 1340s complex-construction1: Millions of constructed objects per second: 8.074 1345s # Executing: glib/performance.test 1346s complex-construction2: Millions of constructed objects per second: 8.833 1347s finalization: Millions of finalized objects per second: 2.064 1349s type-check: Million type checks per second: 40.72 1350s # Executing: glib/performance.test 1350s emit-unhandled: Emissions per second: 2453097 1352s emit-unhandled-empty: Emissions per second: 20667293 1353s emit-unhandled-generic: Emissions per second: 3221943 1354s emit-unhandled-generic-empty: Emissions per second: 20641988 1355s # Executing: glib/performance.test 1355s emit-unhandled-args: Emissions per second: 2185292 1357s emit-handled: Emissions per second: 1588361 1358s emit-handled-empty: Emissions per second: 1669381 1359s not ok - Test timed out after 300 seconds 1359s emit-handled-generic: Emissions per second: 1632674 1360s # Executing: glib/performance.test 1360s emit-handled-generic-empty: Emissions per second: 2755673 1362s emit-handled-args: Emissions per second: 1543204 1363s notify-unhandled: Notify (unhandled) per second: 10033409 1364s notify-by-pspec-unhandled: Notify (unhandled) per second: 74839723 1365s # Executing: glib/performance.test 1366s notify-handled: Notify per second: 1043074 1367s notify-by-pspec-handled: Notify per second: 1135162 1368s property-set: Property set per second: 10096987 1369s property-set-signaled: Property set per second: 2607598 1370s # Executing: glib/performance.test 1371s property-get: Property get per second: 10053419 1372s refcount: Million refs+unref per second: 16.23 1373s refcount-1: Million refs+unref per second: 41.70 1374s refcount-toggle: Million refs+unref per second: 32.40 1374s ok - glib/performance.test 1374s # Running test: glib/slice.test 1374s TAP version 14 1374s # random seed: R02S847f5eb59d44f110edc402a709dc5942 1374s 1..3 1374s # Start of slice tests 1374s ok 1 /slice/copy 1374s ok 2 /slice/chain 1375s # Executing: glib/slice.test 1376s ok 3 /slice/allocate 1376s # slow test /slice/allocate executed in 1.21 secs 1376s # End of slice tests 1376s ok - glib/slice.test 1376s # Running test: glib/portal-support-none.test 1376s TAP version 14 1376s # random seed: R02S70a5a664bf4453ed1062d349fc17a646 1376s 1..1 1376s # Start of portal-support tests 1376s ok 1 /portal-support/none 1376s # End of portal-support tests 1376s ok - glib/portal-support-none.test 1376s # Running test: glib/spawn-singlethread.test 1376s TAP version 14 1376s # random seed: R02S0fe3d66679b702cf23d3e130ea0a95e4 1376s 1..9 1376s # Start of gthread tests 1376s ok 1 /gthread/spawn-single-sync 1376s # /gthread/spawn-stderr-socket summary: Test calling g_spawn_sync() with its stderr FD set to a socket 1376s ok 2 /gthread/spawn-stderr-socket 1376s ok 3 /gthread/spawn-single-async 1376s # thread 1 1376s # thread 1 1376s ok 4 /gthread/spawn-single-async-with-fds 1376s ok 5 /gthread/spawn-async-with-invalid-fds 1376s ok 6 /gthread/spawn-script 1376s ok 7 /gthread/spawn-posix-spawn 1376s # Start of spawn tests 1376s ok 8 /gthread/spawn/nonexistent 1376s ok - glib/spawn-singlethread.test 1376s # Running test: glib/atomic.test 1376s # FD map: 1376s # • 5 → 15 1376s # • 6 → 16 1376s # • 7 → 17 1376s # • 8 → 18 1376s # • 9 → 19 1376s # • 10 → 20 1376s # • 11 → 21 1376s # • 12 → 22 1376s # • 13 → 23 1376s # • 3 → 13 1376s ok 9 /gthread/spawn/fd-assignment-clash 1376s # End of spawn tests 1376s # End of gthread tests 1376s TAP version 14 1376s # random seed: R02Sfe4243bad3d35b5a7baa179b5595ba78 1376s 1..2 1376s # Start of atomic tests 1376s ok 1 /atomic/types 1376s ok 2 /atomic/threaded 1376s # End of atomic tests 1376s ok - glib/atomic.test 1376s # SUMMARY: total=332; passed=331; skipped=1; failed=0; user=385.4s; system=152.8s; maxrss=151680 1377s autopkgtest [11:37:37]: test installed-tests: -----------------------] 1381s autopkgtest [11:37:41]: test installed-tests: - - - - - - - - - - results - - - - - - - - - - 1381s installed-tests PASS 1385s autopkgtest [11:37:45]: test closure-refcount: preparing testbed 1387s Reading package lists... 1387s Building dependency tree... 1387s Reading state information... 1387s Solving dependencies... 1388s 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 1395s autopkgtest [11:37:55]: test closure-refcount: [----------------------- 1397s Running test: glib/closure-refcount.test 1397s TAP version 14 1397s # random seed: R02Sbcff94f0539a375860bd561746aba951 1397s 1..1 1397s # Start of closure tests 1397s ok 1 /closure/refcount # SKIP Known to be flaky on arm* (#880883, #917983) 1397s # End of closure tests 1397s PASS: glib/closure-refcount.test 1397s SUMMARY: total=1; passed=1; skipped=0; failed=0; user=0.0s; system=0.0s; maxrss=2432 1398s autopkgtest [11:37:58]: test closure-refcount: -----------------------] 1401s closure-refcount PASS 1401s autopkgtest [11:38:01]: test closure-refcount: - - - - - - - - - - results - - - - - - - - - - 1405s autopkgtest [11:38:05]: test debugcontroller: preparing testbed 1407s Reading package lists... 1407s Building dependency tree... 1407s Reading state information... 1407s Solving dependencies... 1408s 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 1415s autopkgtest [11:38:15]: test debugcontroller: [----------------------- 1418s Running test: glib/debugcontroller.test 1418s TAP version 14 1418s # random seed: R02Sff8b1b229cb1e87d1eaaded61ec076ba 1418s 1..3 1418s # Start of debug-controller tests 1418s # Start of dbus tests 1418s # /debug-controller/dbus/basic summary: Smoketest for construction and setting of a #GDebugControllerDBus. 1418s # GLib-GIO-DEBUG: Debug output enabled 1418s # GLib-GIO-DEBUG: Debug output disabled 1418s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1418s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1418s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1418s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1418s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1418s ok 1 /debug-controller/dbus/basic 1418s # /debug-controller/dbus/duplicate summary: Test that creating a second #GDebugControllerDBus on the same D-Bus connection fails. 1418s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1418s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1418s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1418s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1418s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1418s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1418s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1418s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1418s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1418s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1418s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1418s ok 2 /debug-controller/dbus/duplicate 1418s # /debug-controller/dbus/properties summary: Test getting and setting properties on a #GDebugControllerDBus. 1418s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1418s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1418s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1418s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1418s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1418s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1418s # GLib-GIO-DEBUG: Debug output enabled 1418s # GLib-GIO-DEBUG: Debug output disabled 1418s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1418s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1418s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1418s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1418s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1418s ok 3 /debug-controller/dbus/properties 1418s # End of dbus tests 1418s # End of debug-controller tests 1418s PASS: glib/debugcontroller.test 1418s SUMMARY: total=1; passed=1; skipped=0; failed=0; user=0.0s; system=0.0s; maxrss=4608 1418s autopkgtest [11:38:18]: test debugcontroller: -----------------------] 1422s debugcontroller PASS 1422s autopkgtest [11:38:22]: test debugcontroller: - - - - - - - - - - results - - - - - - - - - - 1426s autopkgtest [11:38:26]: test gdbus-server-auth: preparing testbed 1428s Reading package lists... 1428s Building dependency tree... 1428s Reading state information... 1428s Solving dependencies... 1429s 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 1436s autopkgtest [11:38:36]: test gdbus-server-auth: [----------------------- 1438s Running test: glib/gdbus-server-auth.test 1438s TAP version 14 1438s # random seed: R02S95c49ed1aebe33f5083013dff2f2a2fd 1438s 1..9 1438s # Start of gdbus tests 1438s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-server-auth_1JTKK3/gdbus/server-auth/.dirs/home 1438s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-server-auth_1JTKK3/gdbus/server-auth/.dirs/cache 1438s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-server-auth_1JTKK3/gdbus/server-auth/.dirs/system-config1:/tmp/test_gdbus-server-auth_1JTKK3/gdbus/server-auth/.dirs/system-config2 1438s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-server-auth_1JTKK3/gdbus/server-auth/.dirs/config 1438s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-server-auth_1JTKK3/gdbus/server-auth/.dirs/system-data1:/tmp/test_gdbus-server-auth_1JTKK3/gdbus/server-auth/.dirs/system-data2 1438s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-server-auth_1JTKK3/gdbus/server-auth/.dirs/data 1438s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-server-auth_1JTKK3/gdbus/server-auth/.dirs/state 1438s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-server-auth_1JTKK3/gdbus/server-auth/.dirs/runtime 1438s # Testing GDBus server at unix:dir=/tmp/test_gdbus-server-auth_1JTKK3/gdbus-server-auth-UQTKK3 / libdbus client, with flags: external:false anonymous:false sha1:false abstract:false tcp:false 1438s # Connectable address: unix:path=/tmp/test_gdbus-server-auth_1JTKK3/gdbus-server-auth-UQTKK3/dbus-HiNpKrm3 1438s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1438s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1438s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1438s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=39667,uid=1000,gid=1000 1438s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=39667,uid=1000,gid=1000 1438s # GLib-GIO-DEBUG: Server says GDBus client is uid 1000, pid 39667 1438s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1438s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1438s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1438s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1438s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=39667,uid=1000,gid=1000 1438s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=39667,uid=1000,gid=1000 1438s # GLib-GIO-DEBUG: Server says libdbus client 0 is uid 1000, pid 39667 1438s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1438s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1438s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1438s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1438s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=39667,uid=1000,gid=1000 1438s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=39667,uid=1000,gid=1000 1438s # GLib-GIO-DEBUG: Server says libdbus client 1 is uid 1000, pid 39667 1438s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1438s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1438s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1438s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1438s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=39667,uid=1000,gid=1000 1438s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=39667,uid=1000,gid=1000 1438s # GLib-GIO-DEBUG: Server says libdbus client 2 is uid 1000, pid 39667 1438s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1438s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1438s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1438s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1438s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=39667,uid=1000,gid=1000 1438s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=39667,uid=1000,gid=1000 1438s # GLib-GIO-DEBUG: Server says libdbus client 3 is uid 1000, pid 39667 1438s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1438s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1438s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1438s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1438s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=39667,uid=1000,gid=1000 1438s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=39667,uid=1000,gid=1000 1438s # GLib-GIO-DEBUG: Server says libdbus client 4 is uid 1000, pid 39667 1438s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1438s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1438s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1438s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1438s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=39667,uid=1000,gid=1000 1438s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=39667,uid=1000,gid=1000 1438s # GLib-GIO-DEBUG: Server says libdbus client 5 is uid 1000, pid 39667 1438s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1438s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1438s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1438s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1438s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=39667,uid=1000,gid=1000 1438s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=39667,uid=1000,gid=1000 1438s # GLib-GIO-DEBUG: Server says libdbus client 6 is uid 1000, pid 39667 1438s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1438s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1438s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1438s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1438s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=39667,uid=1000,gid=1000 1438s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=39667,uid=1000,gid=1000 1438s # GLib-GIO-DEBUG: Server says libdbus client 7 is uid 1000, pid 39667 1438s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1438s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1438s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1438s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1438s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=39667,uid=1000,gid=1000 1438s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=39667,uid=1000,gid=1000 1438s # GLib-GIO-DEBUG: Server says libdbus client 8 is uid 1000, pid 39667 1438s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1438s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1438s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1438s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1438s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=39667,uid=1000,gid=1000 1438s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=39667,uid=1000,gid=1000 1438s # GLib-GIO-DEBUG: Server says libdbus client 9 is uid 1000, pid 39667 1438s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1438s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1438s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1438s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1438s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=39667,uid=1000,gid=1000 1438s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=39667,uid=1000,gid=1000 1438s # GLib-GIO-DEBUG: Server says libdbus client 10 is uid 1000, pid 39667 1438s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1438s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1438s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1438s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1438s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=39667,uid=1000,gid=1000 1438s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=39667,uid=1000,gid=1000 1438s # GLib-GIO-DEBUG: Server says libdbus client 11 is uid 1000, pid 39667 1438s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1438s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1438s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1438s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1438s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=39667,uid=1000,gid=1000 1438s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=39667,uid=1000,gid=1000 1438s # GLib-GIO-DEBUG: Server says libdbus client 12 is uid 1000, pid 39667 1438s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1438s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1438s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1438s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1438s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=39667,uid=1000,gid=1000 1438s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=39667,uid=1000,gid=1000 1438s # GLib-GIO-DEBUG: Server says libdbus client 13 is uid 1000, pid 39667 1438s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1438s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1438s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1438s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1438s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=39667,uid=1000,gid=1000 1438s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=39667,uid=1000,gid=1000 1438s # GLib-GIO-DEBUG: Server says libdbus client 14 is uid 1000, pid 39667 1438s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1438s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1438s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1438s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1438s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=39667,uid=1000,gid=1000 1438s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=39667,uid=1000,gid=1000 1438s # GLib-GIO-DEBUG: Server says libdbus client 15 is uid 1000, pid 39667 1438s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1438s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1438s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1438s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1438s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=39667,uid=1000,gid=1000 1438s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=39667,uid=1000,gid=1000 1438s # GLib-GIO-DEBUG: Server says libdbus client 16 is uid 1000, pid 39667 1438s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1438s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1438s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1438s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1438s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=39667,uid=1000,gid=1000 1438s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=39667,uid=1000,gid=1000 1438s # GLib-GIO-DEBUG: Server says libdbus client 17 is uid 1000, pid 39667 1438s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1438s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1438s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1438s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1438s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=39667,uid=1000,gid=1000 1438s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=39667,uid=1000,gid=1000 1438s # GLib-GIO-DEBUG: Server says libdbus client 18 is uid 1000, pid 39667 1438s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1438s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1438s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1438s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1438s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=39667,uid=1000,gid=1000 1438s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=39667,uid=1000,gid=1000 1438s # GLib-GIO-DEBUG: Server says libdbus client 19 is uid 1000, pid 39667 1438s ok 1 /gdbus/server-auth 1438s # Start of server-auth tests 1438s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-server-auth_1JTKK3/gdbus/server-auth/abstract/.dirs/home 1438s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-server-auth_1JTKK3/gdbus/server-auth/abstract/.dirs/cache 1438s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-server-auth_1JTKK3/gdbus/server-auth/abstract/.dirs/system-config1:/tmp/test_gdbus-server-auth_1JTKK3/gdbus/server-auth/abstract/.dirs/system-config2 1438s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-server-auth_1JTKK3/gdbus/server-auth/abstract/.dirs/config 1438s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-server-auth_1JTKK3/gdbus/server-auth/abstract/.dirs/system-data1:/tmp/test_gdbus-server-auth_1JTKK3/gdbus/server-auth/abstract/.dirs/system-data2 1438s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-server-auth_1JTKK3/gdbus/server-auth/abstract/.dirs/data 1438s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-server-auth_1JTKK3/gdbus/server-auth/abstract/.dirs/state 1438s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-server-auth_1JTKK3/gdbus/server-auth/abstract/.dirs/runtime 1438s # Testing GDBus server at unix:tmpdir=/tmp/test_gdbus-server-auth_1JTKK3/gdbus-server-auth-TKLLK3 / libdbus client, with flags: external:false anonymous:false sha1:false abstract:true tcp:false 1438s # Connectable address: unix:path=/tmp/test_gdbus-server-auth_1JTKK3/gdbus-server-auth-TKLLK3/dbus-Wl8wxTKV 1438s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1438s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1438s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1438s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=39667,uid=1000,gid=1000 1438s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=39667,uid=1000,gid=1000 1438s # GLib-GIO-DEBUG: Server says GDBus client is uid 1000, pid 39667 1438s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1438s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1438s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1438s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1438s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=39667,uid=1000,gid=1000 1438s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=39667,uid=1000,gid=1000 1438s # GLib-GIO-DEBUG: Server says libdbus client 0 is uid 1000, pid 39667 1438s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1438s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1438s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1438s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1438s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=39667,uid=1000,gid=1000 1438s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=39667,uid=1000,gid=1000 1438s # GLib-GIO-DEBUG: Server says libdbus client 1 is uid 1000, pid 39667 1438s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1438s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1438s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1438s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1438s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=39667,uid=1000,gid=1000 1438s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=39667,uid=1000,gid=1000 1438s # GLib-GIO-DEBUG: Server says libdbus client 2 is uid 1000, pid 39667 1438s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1438s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1438s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1438s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1438s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=39667,uid=1000,gid=1000 1438s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=39667,uid=1000,gid=1000 1438s # GLib-GIO-DEBUG: Server says libdbus client 3 is uid 1000, pid 39667 1438s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1438s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1438s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1438s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1438s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=39667,uid=1000,gid=1000 1438s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=39667,uid=1000,gid=1000 1438s # GLib-GIO-DEBUG: Server says libdbus client 4 is uid 1000, pid 39667 1438s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1438s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1438s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1438s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1438s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=39667,uid=1000,gid=1000 1438s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=39667,uid=1000,gid=1000 1438s # GLib-GIO-DEBUG: Server says libdbus client 5 is uid 1000, pid 39667 1438s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1438s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1438s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1438s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1438s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=39667,uid=1000,gid=1000 1438s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=39667,uid=1000,gid=1000 1438s # GLib-GIO-DEBUG: Server says libdbus client 6 is uid 1000, pid 39667 1438s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1438s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1438s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1438s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1438s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=39667,uid=1000,gid=1000 1438s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=39667,uid=1000,gid=1000 1438s # GLib-GIO-DEBUG: Server says libdbus client 7 is uid 1000, pid 39667 1438s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1438s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1438s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1438s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1438s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=39667,uid=1000,gid=1000 1438s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=39667,uid=1000,gid=1000 1438s # GLib-GIO-DEBUG: Server says libdbus client 8 is uid 1000, pid 39667 1438s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1438s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1438s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1438s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1438s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=39667,uid=1000,gid=1000 1438s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=39667,uid=1000,gid=1000 1438s # GLib-GIO-DEBUG: Server says libdbus client 9 is uid 1000, pid 39667 1438s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1438s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1438s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1438s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1438s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=39667,uid=1000,gid=1000 1438s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=39667,uid=1000,gid=1000 1438s # GLib-GIO-DEBUG: Server says libdbus client 10 is uid 1000, pid 39667 1438s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1438s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1438s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1438s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1438s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=39667,uid=1000,gid=1000 1438s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=39667,uid=1000,gid=1000 1438s # GLib-GIO-DEBUG: Server says libdbus client 11 is uid 1000, pid 39667 1438s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1438s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1438s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1438s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1438s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=39667,uid=1000,gid=1000 1438s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=39667,uid=1000,gid=1000 1438s # GLib-GIO-DEBUG: Server says libdbus client 12 is uid 1000, pid 39667 1438s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1438s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1438s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1438s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1438s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=39667,uid=1000,gid=1000 1438s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=39667,uid=1000,gid=1000 1438s # GLib-GIO-DEBUG: Server says libdbus client 13 is uid 1000, pid 39667 1438s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1438s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1438s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1438s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1438s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=39667,uid=1000,gid=1000 1438s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=39667,uid=1000,gid=1000 1438s # GLib-GIO-DEBUG: Server says libdbus client 14 is uid 1000, pid 39667 1438s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1438s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1438s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1438s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1438s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=39667,uid=1000,gid=1000 1438s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=39667,uid=1000,gid=1000 1438s # GLib-GIO-DEBUG: Server says libdbus client 15 is uid 1000, pid 39667 1438s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1438s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1438s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1438s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1438s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=39667,uid=1000,gid=1000 1438s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=39667,uid=1000,gid=1000 1438s # GLib-GIO-DEBUG: Server says libdbus client 16 is uid 1000, pid 39667 1438s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1438s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1438s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1438s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1438s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=39667,uid=1000,gid=1000 1438s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=39667,uid=1000,gid=1000 1438s # GLib-GIO-DEBUG: Server says libdbus client 17 is uid 1000, pid 39667 1438s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1438s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1438s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1438s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1438s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=39667,uid=1000,gid=1000 1438s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=39667,uid=1000,gid=1000 1438s # GLib-GIO-DEBUG: Server says libdbus client 18 is uid 1000, pid 39667 1438s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1438s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1438s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1438s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1438s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=39667,uid=1000,gid=1000 1438s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=39667,uid=1000,gid=1000 1438s # GLib-GIO-DEBUG: Server says libdbus client 19 is uid 1000, pid 39667 1438s ok 2 /gdbus/server-auth/abstract 1438s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-server-auth_1JTKK3/gdbus/server-auth/tcp/.dirs/home 1438s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-server-auth_1JTKK3/gdbus/server-auth/tcp/.dirs/cache 1438s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-server-auth_1JTKK3/gdbus/server-auth/tcp/.dirs/system-config1:/tmp/test_gdbus-server-auth_1JTKK3/gdbus/server-auth/tcp/.dirs/system-config2 1438s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-server-auth_1JTKK3/gdbus/server-auth/tcp/.dirs/config 1438s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-server-auth_1JTKK3/gdbus/server-auth/tcp/.dirs/system-data1:/tmp/test_gdbus-server-auth_1JTKK3/gdbus/server-auth/tcp/.dirs/system-data2 1438s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-server-auth_1JTKK3/gdbus/server-auth/tcp/.dirs/data 1438s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-server-auth_1JTKK3/gdbus/server-auth/tcp/.dirs/state 1438s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-server-auth_1JTKK3/gdbus/server-auth/tcp/.dirs/runtime 1438s # Testing GDBus server at tcp:host=127.0.0.1 / libdbus client, with flags: external:false anonymous:false sha1:false abstract:false tcp:true 1438s # Connectable address: tcp:host=127.0.0.1,port=32873 1438s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1438s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1438s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1438s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 1438s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 1438s # GLib-GIO-DEBUG: Server says GDBus client is uid 4294967295, pid -1 1438s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1438s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1438s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1438s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1438s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 1438s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 1438s # GLib-GIO-DEBUG: Server says libdbus client 0 is uid 4294967295, pid -1 1438s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1438s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1438s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1438s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1438s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 1438s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 1438s # GLib-GIO-DEBUG: Server says libdbus client 1 is uid 4294967295, pid -1 1438s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1438s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1438s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1438s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1438s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 1438s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 1438s # GLib-GIO-DEBUG: Server says libdbus client 2 is uid 4294967295, pid -1 1438s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1438s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1438s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1438s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1438s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 1438s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 1438s # GLib-GIO-DEBUG: Server says libdbus client 3 is uid 4294967295, pid -1 1438s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1438s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1438s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1438s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1438s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 1438s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 1439s # GLib-GIO-DEBUG: Server says libdbus client 4 is uid 4294967295, pid -1 1439s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1439s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1439s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1439s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1439s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 1439s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 1439s # GLib-GIO-DEBUG: Server says libdbus client 5 is uid 4294967295, pid -1 1439s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1439s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1439s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1439s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1439s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 1439s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 1439s # GLib-GIO-DEBUG: Server says libdbus client 6 is uid 4294967295, pid -1 1439s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1439s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1439s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1439s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1439s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 1439s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 1439s # GLib-GIO-DEBUG: Server says libdbus client 7 is uid 4294967295, pid -1 1439s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1439s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1439s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1439s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1439s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 1439s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 1439s # GLib-GIO-DEBUG: Server says libdbus client 8 is uid 4294967295, pid -1 1439s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1439s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1439s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1439s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1439s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 1439s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 1439s # GLib-GIO-DEBUG: Server says libdbus client 9 is uid 4294967295, pid -1 1439s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1439s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1439s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1439s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1439s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 1439s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 1439s # GLib-GIO-DEBUG: Server says libdbus client 10 is uid 4294967295, pid -1 1439s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1439s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1439s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1439s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1439s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 1439s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 1439s # GLib-GIO-DEBUG: Server says libdbus client 11 is uid 4294967295, pid -1 1439s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1439s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1439s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1439s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1439s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 1439s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 1439s # GLib-GIO-DEBUG: Server says libdbus client 12 is uid 4294967295, pid -1 1439s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1439s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1439s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1439s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1439s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 1439s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 1439s # GLib-GIO-DEBUG: Server says libdbus client 13 is uid 4294967295, pid -1 1439s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1439s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1439s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1439s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1439s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 1439s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 1439s # GLib-GIO-DEBUG: Server says libdbus client 14 is uid 4294967295, pid -1 1439s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1439s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1439s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1439s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1439s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 1439s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 1439s # GLib-GIO-DEBUG: Server says libdbus client 15 is uid 4294967295, pid -1 1439s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1439s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1439s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1439s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1439s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 1439s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 1439s # GLib-GIO-DEBUG: Server says libdbus client 16 is uid 4294967295, pid -1 1439s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1439s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1439s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1439s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1439s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 1439s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 1439s # GLib-GIO-DEBUG: Server says libdbus client 17 is uid 4294967295, pid -1 1439s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1439s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1439s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1439s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1439s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 1439s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 1439s # GLib-GIO-DEBUG: Server says libdbus client 18 is uid 4294967295, pid -1 1439s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1439s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1439s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1439s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1439s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 1439s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 1439s # GLib-GIO-DEBUG: Server says libdbus client 19 is uid 4294967295, pid -1 1439s ok 3 /gdbus/server-auth/tcp 1439s # slow test /gdbus/server-auth/tcp executed in 0.87 secs 1439s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-server-auth_1JTKK3/gdbus/server-auth/anonymous/.dirs/home 1439s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-server-auth_1JTKK3/gdbus/server-auth/anonymous/.dirs/cache 1439s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-server-auth_1JTKK3/gdbus/server-auth/anonymous/.dirs/system-config1:/tmp/test_gdbus-server-auth_1JTKK3/gdbus/server-auth/anonymous/.dirs/system-config2 1439s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-server-auth_1JTKK3/gdbus/server-auth/anonymous/.dirs/config 1439s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-server-auth_1JTKK3/gdbus/server-auth/anonymous/.dirs/system-data1:/tmp/test_gdbus-server-auth_1JTKK3/gdbus/server-auth/anonymous/.dirs/system-data2 1439s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-server-auth_1JTKK3/gdbus/server-auth/anonymous/.dirs/data 1439s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-server-auth_1JTKK3/gdbus/server-auth/anonymous/.dirs/state 1439s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-server-auth_1JTKK3/gdbus/server-auth/anonymous/.dirs/runtime 1439s # Testing GDBus server at unix:dir=/tmp/test_gdbus-server-auth_1JTKK3/gdbus-server-auth-PQ1LK3 / libdbus client, with flags: external:false anonymous:true sha1:false abstract:false tcp:false 1439s # Connectable address: unix:path=/tmp/test_gdbus-server-auth_1JTKK3/gdbus-server-auth-PQ1LK3/dbus-YHibNYxm 1439s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 1439s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 1439s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 1439s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=39667,uid=1000,gid=1000 1439s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=39667,uid=1000,gid=1000 1439s # GLib-GIO-DEBUG: Server says GDBus client is uid 1000, pid 39667 1439s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1439s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 1439s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 1439s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 1439s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=39667,uid=1000,gid=1000 1439s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=39667,uid=1000,gid=1000 1439s # GLib-GIO-DEBUG: Server says libdbus client 0 is uid 1000, pid 39667 1439s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1439s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 1439s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 1439s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 1439s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=39667,uid=1000,gid=1000 1439s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=39667,uid=1000,gid=1000 1439s # GLib-GIO-DEBUG: Server says libdbus client 1 is uid 1000, pid 39667 1439s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1439s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 1439s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 1439s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 1439s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=39667,uid=1000,gid=1000 1439s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=39667,uid=1000,gid=1000 1439s # GLib-GIO-DEBUG: Server says libdbus client 2 is uid 1000, pid 39667 1439s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1439s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 1439s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 1439s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 1439s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=39667,uid=1000,gid=1000 1439s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=39667,uid=1000,gid=1000 1439s # GLib-GIO-DEBUG: Server says libdbus client 3 is uid 1000, pid 39667 1439s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1439s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 1439s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 1439s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 1439s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=39667,uid=1000,gid=1000 1439s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=39667,uid=1000,gid=1000 1439s # GLib-GIO-DEBUG: Server says libdbus client 4 is uid 1000, pid 39667 1439s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1439s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 1439s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 1439s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 1439s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=39667,uid=1000,gid=1000 1439s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=39667,uid=1000,gid=1000 1439s # GLib-GIO-DEBUG: Server says libdbus client 5 is uid 1000, pid 39667 1439s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1439s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 1439s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 1439s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 1439s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=39667,uid=1000,gid=1000 1439s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=39667,uid=1000,gid=1000 1439s # GLib-GIO-DEBUG: Server says libdbus client 6 is uid 1000, pid 39667 1439s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1439s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 1439s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 1439s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 1439s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=39667,uid=1000,gid=1000 1439s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=39667,uid=1000,gid=1000 1439s # GLib-GIO-DEBUG: Server says libdbus client 7 is uid 1000, pid 39667 1439s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1439s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 1439s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 1439s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 1439s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=39667,uid=1000,gid=1000 1439s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=39667,uid=1000,gid=1000 1439s # GLib-GIO-DEBUG: Server says libdbus client 8 is uid 1000, pid 39667 1439s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1439s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 1439s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 1439s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 1439s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=39667,uid=1000,gid=1000 1439s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=39667,uid=1000,gid=1000 1439s # GLib-GIO-DEBUG: Server says libdbus client 9 is uid 1000, pid 39667 1439s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1439s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 1439s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 1439s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 1439s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=39667,uid=1000,gid=1000 1439s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=39667,uid=1000,gid=1000 1439s # GLib-GIO-DEBUG: Server says libdbus client 10 is uid 1000, pid 39667 1439s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1439s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 1439s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 1439s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 1439s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=39667,uid=1000,gid=1000 1439s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=39667,uid=1000,gid=1000 1439s # GLib-GIO-DEBUG: Server says libdbus client 11 is uid 1000, pid 39667 1439s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1439s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 1439s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 1439s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 1439s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=39667,uid=1000,gid=1000 1439s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=39667,uid=1000,gid=1000 1439s # GLib-GIO-DEBUG: Server says libdbus client 12 is uid 1000, pid 39667 1439s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1439s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 1439s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 1439s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 1439s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=39667,uid=1000,gid=1000 1439s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=39667,uid=1000,gid=1000 1439s # GLib-GIO-DEBUG: Server says libdbus client 13 is uid 1000, pid 39667 1439s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1439s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 1439s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 1439s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 1439s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=39667,uid=1000,gid=1000 1439s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=39667,uid=1000,gid=1000 1439s # GLib-GIO-DEBUG: Server says libdbus client 14 is uid 1000, pid 39667 1439s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1439s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 1439s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 1439s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 1439s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=39667,uid=1000,gid=1000 1439s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=39667,uid=1000,gid=1000 1439s # GLib-GIO-DEBUG: Server says libdbus client 15 is uid 1000, pid 39667 1439s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1439s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 1439s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 1439s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 1439s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=39667,uid=1000,gid=1000 1439s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=39667,uid=1000,gid=1000 1439s # GLib-GIO-DEBUG: Server says libdbus client 16 is uid 1000, pid 39667 1439s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1439s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 1439s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 1439s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 1439s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=39667,uid=1000,gid=1000 1439s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=39667,uid=1000,gid=1000 1439s # GLib-GIO-DEBUG: Server says libdbus client 17 is uid 1000, pid 39667 1439s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1439s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 1439s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 1439s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 1439s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=39667,uid=1000,gid=1000 1439s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=39667,uid=1000,gid=1000 1439s # GLib-GIO-DEBUG: Server says libdbus client 18 is uid 1000, pid 39667 1439s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1439s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 1439s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 1439s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 1439s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=39667,uid=1000,gid=1000 1439s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=39667,uid=1000,gid=1000 1439s # GLib-GIO-DEBUG: Server says libdbus client 19 is uid 1000, pid 39667 1439s ok 4 /gdbus/server-auth/anonymous 1439s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-server-auth_1JTKK3/gdbus/server-auth/external/.dirs/home 1439s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-server-auth_1JTKK3/gdbus/server-auth/external/.dirs/cache 1439s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-server-auth_1JTKK3/gdbus/server-auth/external/.dirs/system-config1:/tmp/test_gdbus-server-auth_1JTKK3/gdbus/server-auth/external/.dirs/system-config2 1439s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-server-auth_1JTKK3/gdbus/server-auth/external/.dirs/config 1439s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-server-auth_1JTKK3/gdbus/server-auth/external/.dirs/system-data1:/tmp/test_gdbus-server-auth_1JTKK3/gdbus/server-auth/external/.dirs/system-data2 1439s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-server-auth_1JTKK3/gdbus/server-auth/external/.dirs/data 1439s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-server-auth_1JTKK3/gdbus/server-auth/external/.dirs/state 1439s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-server-auth_1JTKK3/gdbus/server-auth/external/.dirs/runtime 1439s # Testing GDBus server at unix:dir=/tmp/test_gdbus-server-auth_1JTKK3/gdbus-server-auth-GL3LK3 / libdbus client, with flags: external:true anonymous:false sha1:false abstract:false tcp:false 1439s # Connectable address: unix:path=/tmp/test_gdbus-server-auth_1JTKK3/gdbus-server-auth-GL3LK3/dbus-eojyXoLc 1439s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 1439s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 1439s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 1439s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=39667,uid=1000,gid=1000 1439s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=39667,uid=1000,gid=1000 1439s # GLib-GIO-DEBUG: Server says GDBus client is uid 1000, pid 39667 1439s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1439s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 1439s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 1439s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 1439s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=39667,uid=1000,gid=1000 1439s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=39667,uid=1000,gid=1000 1439s # GLib-GIO-DEBUG: Server says libdbus client 0 is uid 1000, pid 39667 1439s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1439s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 1439s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 1439s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 1439s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=39667,uid=1000,gid=1000 1439s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=39667,uid=1000,gid=1000 1439s # GLib-GIO-DEBUG: Server says libdbus client 1 is uid 1000, pid 39667 1439s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1439s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 1439s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 1439s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 1439s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=39667,uid=1000,gid=1000 1439s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=39667,uid=1000,gid=1000 1439s # GLib-GIO-DEBUG: Server says libdbus client 2 is uid 1000, pid 39667 1439s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1439s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 1439s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 1439s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 1439s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=39667,uid=1000,gid=1000 1439s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=39667,uid=1000,gid=1000 1439s # GLib-GIO-DEBUG: Server says libdbus client 3 is uid 1000, pid 39667 1439s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1439s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 1439s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 1439s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 1439s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=39667,uid=1000,gid=1000 1439s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=39667,uid=1000,gid=1000 1439s # GLib-GIO-DEBUG: Server says libdbus client 4 is uid 1000, pid 39667 1439s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1439s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 1439s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 1439s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 1439s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=39667,uid=1000,gid=1000 1439s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=39667,uid=1000,gid=1000 1439s # GLib-GIO-DEBUG: Server says libdbus client 5 is uid 1000, pid 39667 1439s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1439s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 1439s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 1439s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 1439s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=39667,uid=1000,gid=1000 1439s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=39667,uid=1000,gid=1000 1439s # GLib-GIO-DEBUG: Server says libdbus client 6 is uid 1000, pid 39667 1439s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1439s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 1439s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 1439s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 1439s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=39667,uid=1000,gid=1000 1439s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=39667,uid=1000,gid=1000 1439s # GLib-GIO-DEBUG: Server says libdbus client 7 is uid 1000, pid 39667 1439s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1439s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 1439s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 1439s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 1439s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=39667,uid=1000,gid=1000 1439s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=39667,uid=1000,gid=1000 1439s # GLib-GIO-DEBUG: Server says libdbus client 8 is uid 1000, pid 39667 1439s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1439s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 1439s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 1439s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 1439s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=39667,uid=1000,gid=1000 1439s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=39667,uid=1000,gid=1000 1439s # GLib-GIO-DEBUG: Server says libdbus client 9 is uid 1000, pid 39667 1439s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1439s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 1439s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 1439s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 1439s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=39667,uid=1000,gid=1000 1439s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=39667,uid=1000,gid=1000 1439s # GLib-GIO-DEBUG: Server says libdbus client 10 is uid 1000, pid 39667 1439s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1439s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 1439s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 1439s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 1439s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=39667,uid=1000,gid=1000 1439s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=39667,uid=1000,gid=1000 1439s # GLib-GIO-DEBUG: Server says libdbus client 11 is uid 1000, pid 39667 1439s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1439s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 1439s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 1439s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 1439s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=39667,uid=1000,gid=1000 1439s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=39667,uid=1000,gid=1000 1439s # GLib-GIO-DEBUG: Server says libdbus client 12 is uid 1000, pid 39667 1439s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1439s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 1439s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 1439s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 1439s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=39667,uid=1000,gid=1000 1439s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=39667,uid=1000,gid=1000 1439s # GLib-GIO-DEBUG: Server says libdbus client 13 is uid 1000, pid 39667 1439s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1439s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 1439s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 1439s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 1439s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=39667,uid=1000,gid=1000 1439s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=39667,uid=1000,gid=1000 1439s # GLib-GIO-DEBUG: Server says libdbus client 14 is uid 1000, pid 39667 1439s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1439s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 1439s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 1439s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 1439s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=39667,uid=1000,gid=1000 1439s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=39667,uid=1000,gid=1000 1439s # GLib-GIO-DEBUG: Server says libdbus client 15 is uid 1000, pid 39667 1439s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1439s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 1439s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 1439s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 1439s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=39667,uid=1000,gid=1000 1439s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=39667,uid=1000,gid=1000 1439s # GLib-GIO-DEBUG: Server says libdbus client 16 is uid 1000, pid 39667 1439s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1439s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 1439s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 1439s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 1439s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=39667,uid=1000,gid=1000 1439s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=39667,uid=1000,gid=1000 1439s # GLib-GIO-DEBUG: Server says libdbus client 17 is uid 1000, pid 39667 1439s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1439s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 1439s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 1439s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 1439s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=39667,uid=1000,gid=1000 1439s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=39667,uid=1000,gid=1000 1439s # GLib-GIO-DEBUG: Server says libdbus client 18 is uid 1000, pid 39667 1439s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1439s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 1439s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 1439s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 1439s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=39667,uid=1000,gid=1000 1439s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=39667,uid=1000,gid=1000 1439s # GLib-GIO-DEBUG: Server says libdbus client 19 is uid 1000, pid 39667 1439s ok 5 /gdbus/server-auth/external 1439s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-server-auth_1JTKK3/gdbus/server-auth/sha1/.dirs/home 1439s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-server-auth_1JTKK3/gdbus/server-auth/sha1/.dirs/cache 1439s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-server-auth_1JTKK3/gdbus/server-auth/sha1/.dirs/system-config1:/tmp/test_gdbus-server-auth_1JTKK3/gdbus/server-auth/sha1/.dirs/system-config2 1439s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-server-auth_1JTKK3/gdbus/server-auth/sha1/.dirs/config 1439s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-server-auth_1JTKK3/gdbus/server-auth/sha1/.dirs/system-data1:/tmp/test_gdbus-server-auth_1JTKK3/gdbus/server-auth/sha1/.dirs/system-data2 1439s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-server-auth_1JTKK3/gdbus/server-auth/sha1/.dirs/data 1439s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-server-auth_1JTKK3/gdbus/server-auth/sha1/.dirs/state 1439s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-server-auth_1JTKK3/gdbus/server-auth/sha1/.dirs/runtime 1439s # Testing GDBus server at unix:dir=/tmp/test_gdbus-server-auth_1JTKK3/gdbus-server-auth-REQMK3 / libdbus client, with flags: external:false anonymous:false sha1:true abstract:false tcp:false 1439s # Connectable address: unix:path=/tmp/test_gdbus-server-auth_1JTKK3/gdbus-server-auth-REQMK3/dbus-1Rro9J4g 1439s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not DBUS_COOKIE_SHA1 1439s # GLib-GIO-DEBUG: Accepting DBUS_COOKIE_SHA1 authentication 1439s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not DBUS_COOKIE_SHA1 1439s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=39667,uid=1000,gid=1000 1439s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=39667,uid=1000,gid=1000 1439s # GLib-GIO-DEBUG: Server says GDBus client is uid 1000, pid 39667 1439s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1439s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not DBUS_COOKIE_SHA1 1439s # GLib-GIO-DEBUG: Accepting DBUS_COOKIE_SHA1 authentication 1439s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not DBUS_COOKIE_SHA1 1439s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=39667,uid=1000,gid=1000 1439s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=39667,uid=1000,gid=1000 1439s # GLib-GIO-DEBUG: Server says libdbus client 0 is uid 1000, pid 39667 1439s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1439s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not DBUS_COOKIE_SHA1 1439s # GLib-GIO-DEBUG: Accepting DBUS_COOKIE_SHA1 authentication 1439s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not DBUS_COOKIE_SHA1 1439s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=39667,uid=1000,gid=1000 1439s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=39667,uid=1000,gid=1000 1439s # GLib-GIO-DEBUG: Server says libdbus client 1 is uid 1000, pid 39667 1439s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1439s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not DBUS_COOKIE_SHA1 1439s # GLib-GIO-DEBUG: Accepting DBUS_COOKIE_SHA1 authentication 1439s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not DBUS_COOKIE_SHA1 1439s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=39667,uid=1000,gid=1000 1439s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=39667,uid=1000,gid=1000 1439s # GLib-GIO-DEBUG: Server says libdbus client 2 is uid 1000, pid 39667 1439s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1439s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not DBUS_COOKIE_SHA1 1439s # GLib-GIO-DEBUG: Accepting DBUS_COOKIE_SHA1 authentication 1439s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not DBUS_COOKIE_SHA1 1439s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=39667,uid=1000,gid=1000 1439s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=39667,uid=1000,gid=1000 1439s # GLib-GIO-DEBUG: Server says libdbus client 3 is uid 1000, pid 39667 1439s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1439s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not DBUS_COOKIE_SHA1 1439s # GLib-GIO-DEBUG: Accepting DBUS_COOKIE_SHA1 authentication 1439s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not DBUS_COOKIE_SHA1 1439s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=39667,uid=1000,gid=1000 1439s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=39667,uid=1000,gid=1000 1439s # GLib-GIO-DEBUG: Server says libdbus client 4 is uid 1000, pid 39667 1439s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1439s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not DBUS_COOKIE_SHA1 1439s # GLib-GIO-DEBUG: Accepting DBUS_COOKIE_SHA1 authentication 1439s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not DBUS_COOKIE_SHA1 1439s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=39667,uid=1000,gid=1000 1439s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=39667,uid=1000,gid=1000 1439s # GLib-GIO-DEBUG: Server says libdbus client 5 is uid 1000, pid 39667 1439s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1439s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not DBUS_COOKIE_SHA1 1439s # GLib-GIO-DEBUG: Accepting DBUS_COOKIE_SHA1 authentication 1439s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not DBUS_COOKIE_SHA1 1439s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=39667,uid=1000,gid=1000 1439s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=39667,uid=1000,gid=1000 1439s # GLib-GIO-DEBUG: Server says libdbus client 6 is uid 1000, pid 39667 1439s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1439s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not DBUS_COOKIE_SHA1 1439s # GLib-GIO-DEBUG: Accepting DBUS_COOKIE_SHA1 authentication 1439s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not DBUS_COOKIE_SHA1 1439s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=39667,uid=1000,gid=1000 1439s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=39667,uid=1000,gid=1000 1439s # GLib-GIO-DEBUG: Server says libdbus client 7 is uid 1000, pid 39667 1439s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1439s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not DBUS_COOKIE_SHA1 1439s # GLib-GIO-DEBUG: Accepting DBUS_COOKIE_SHA1 authentication 1439s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not DBUS_COOKIE_SHA1 1439s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=39667,uid=1000,gid=1000 1439s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=39667,uid=1000,gid=1000 1439s # GLib-GIO-DEBUG: Server says libdbus client 8 is uid 1000, pid 39667 1439s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1439s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not DBUS_COOKIE_SHA1 1439s # GLib-GIO-DEBUG: Accepting DBUS_COOKIE_SHA1 authentication 1439s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not DBUS_COOKIE_SHA1 1439s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=39667,uid=1000,gid=1000 1439s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=39667,uid=1000,gid=1000 1439s # GLib-GIO-DEBUG: Server says libdbus client 9 is uid 1000, pid 39667 1439s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1439s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not DBUS_COOKIE_SHA1 1439s # GLib-GIO-DEBUG: Accepting DBUS_COOKIE_SHA1 authentication 1439s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not DBUS_COOKIE_SHA1 1439s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=39667,uid=1000,gid=1000 1439s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=39667,uid=1000,gid=1000 1439s # GLib-GIO-DEBUG: Server says libdbus client 10 is uid 1000, pid 39667 1439s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1439s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not DBUS_COOKIE_SHA1 1439s # GLib-GIO-DEBUG: Accepting DBUS_COOKIE_SHA1 authentication 1439s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not DBUS_COOKIE_SHA1 1439s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=39667,uid=1000,gid=1000 1439s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=39667,uid=1000,gid=1000 1439s # GLib-GIO-DEBUG: Server says libdbus client 11 is uid 1000, pid 39667 1439s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1439s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not DBUS_COOKIE_SHA1 1439s # GLib-GIO-DEBUG: Accepting DBUS_COOKIE_SHA1 authentication 1439s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not DBUS_COOKIE_SHA1 1439s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=39667,uid=1000,gid=1000 1439s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=39667,uid=1000,gid=1000 1439s # GLib-GIO-DEBUG: Server says libdbus client 12 is uid 1000, pid 39667 1439s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1439s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not DBUS_COOKIE_SHA1 1439s # GLib-GIO-DEBUG: Accepting DBUS_COOKIE_SHA1 authentication 1439s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not DBUS_COOKIE_SHA1 1439s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=39667,uid=1000,gid=1000 1439s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=39667,uid=1000,gid=1000 1439s # GLib-GIO-DEBUG: Server says libdbus client 13 is uid 1000, pid 39667 1439s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1439s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not DBUS_COOKIE_SHA1 1439s # GLib-GIO-DEBUG: Accepting DBUS_COOKIE_SHA1 authentication 1439s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not DBUS_COOKIE_SHA1 1439s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=39667,uid=1000,gid=1000 1439s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=39667,uid=1000,gid=1000 1439s # GLib-GIO-DEBUG: Server says libdbus client 14 is uid 1000, pid 39667 1439s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1439s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not DBUS_COOKIE_SHA1 1439s # GLib-GIO-DEBUG: Accepting DBUS_COOKIE_SHA1 authentication 1439s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not DBUS_COOKIE_SHA1 1439s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=39667,uid=1000,gid=1000 1439s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=39667,uid=1000,gid=1000 1439s # GLib-GIO-DEBUG: Server says libdbus client 15 is uid 1000, pid 39667 1439s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1439s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not DBUS_COOKIE_SHA1 1439s # GLib-GIO-DEBUG: Accepting DBUS_COOKIE_SHA1 authentication 1439s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not DBUS_COOKIE_SHA1 1439s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=39667,uid=1000,gid=1000 1439s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=39667,uid=1000,gid=1000 1439s # GLib-GIO-DEBUG: Server says libdbus client 16 is uid 1000, pid 39667 1439s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1439s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not DBUS_COOKIE_SHA1 1439s # GLib-GIO-DEBUG: Accepting DBUS_COOKIE_SHA1 authentication 1439s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not DBUS_COOKIE_SHA1 1439s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=39667,uid=1000,gid=1000 1439s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=39667,uid=1000,gid=1000 1439s # GLib-GIO-DEBUG: Server says libdbus client 17 is uid 1000, pid 39667 1439s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1439s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not DBUS_COOKIE_SHA1 1439s # GLib-GIO-DEBUG: Accepting DBUS_COOKIE_SHA1 authentication 1439s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not DBUS_COOKIE_SHA1 1439s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=39667,uid=1000,gid=1000 1439s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=39667,uid=1000,gid=1000 1439s # GLib-GIO-DEBUG: Server says libdbus client 18 is uid 1000, pid 39667 1439s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1439s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not DBUS_COOKIE_SHA1 1439s # GLib-GIO-DEBUG: Accepting DBUS_COOKIE_SHA1 authentication 1439s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not DBUS_COOKIE_SHA1 1439s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=39667,uid=1000,gid=1000 1439s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=39667,uid=1000,gid=1000 1439s # GLib-GIO-DEBUG: Server says libdbus client 19 is uid 1000, pid 39667 1439s ok 6 /gdbus/server-auth/sha1 1439s # Start of anonymous tests 1439s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-server-auth_1JTKK3/gdbus/server-auth/anonymous/tcp/.dirs/home 1439s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-server-auth_1JTKK3/gdbus/server-auth/anonymous/tcp/.dirs/cache 1439s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-server-auth_1JTKK3/gdbus/server-auth/anonymous/tcp/.dirs/system-config1:/tmp/test_gdbus-server-auth_1JTKK3/gdbus/server-auth/anonymous/tcp/.dirs/system-config2 1439s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-server-auth_1JTKK3/gdbus/server-auth/anonymous/tcp/.dirs/config 1439s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-server-auth_1JTKK3/gdbus/server-auth/anonymous/tcp/.dirs/system-data1:/tmp/test_gdbus-server-auth_1JTKK3/gdbus/server-auth/anonymous/tcp/.dirs/system-data2 1439s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-server-auth_1JTKK3/gdbus/server-auth/anonymous/tcp/.dirs/data 1439s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-server-auth_1JTKK3/gdbus/server-auth/anonymous/tcp/.dirs/state 1439s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-server-auth_1JTKK3/gdbus/server-auth/anonymous/tcp/.dirs/runtime 1439s # Testing GDBus server at tcp:host=127.0.0.1 / libdbus client, with flags: external:false anonymous:true sha1:false abstract:false tcp:true 1439s # Connectable address: tcp:host=127.0.0.1,port=36843 1439s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 1439s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 1439s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 1439s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 1439s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 1439s # GLib-GIO-DEBUG: Server says GDBus client is uid 4294967295, pid -1 1439s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1439s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 1439s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 1439s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 1439s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 1439s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 1439s # GLib-GIO-DEBUG: Server says libdbus client 0 is uid 4294967295, pid -1 1439s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1439s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 1439s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 1439s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 1439s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 1439s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 1439s # GLib-GIO-DEBUG: Server says libdbus client 1 is uid 4294967295, pid -1 1439s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1439s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 1439s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 1439s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 1439s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 1439s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 1439s # GLib-GIO-DEBUG: Server says libdbus client 2 is uid 4294967295, pid -1 1439s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1439s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 1439s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 1439s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 1439s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 1439s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 1439s # GLib-GIO-DEBUG: Server says libdbus client 3 is uid 4294967295, pid -1 1439s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1439s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 1439s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 1439s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 1439s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 1439s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 1439s # GLib-GIO-DEBUG: Server says libdbus client 4 is uid 4294967295, pid -1 1439s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1439s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 1439s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 1439s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 1439s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 1439s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 1440s # GLib-GIO-DEBUG: Server says libdbus client 5 is uid 4294967295, pid -1 1440s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1440s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 1440s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 1440s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 1440s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 1440s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 1440s # GLib-GIO-DEBUG: Server says libdbus client 6 is uid 4294967295, pid -1 1440s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1440s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 1440s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 1440s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 1440s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 1440s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 1440s # GLib-GIO-DEBUG: Server says libdbus client 7 is uid 4294967295, pid -1 1440s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1440s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 1440s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 1440s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 1440s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 1440s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 1440s # GLib-GIO-DEBUG: Server says libdbus client 8 is uid 4294967295, pid -1 1440s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1440s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 1440s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 1440s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 1440s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 1440s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 1440s # GLib-GIO-DEBUG: Server says libdbus client 9 is uid 4294967295, pid -1 1440s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1440s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 1440s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 1440s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 1440s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 1440s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 1440s # GLib-GIO-DEBUG: Server says libdbus client 10 is uid 4294967295, pid -1 1440s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1440s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 1440s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 1440s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 1440s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 1440s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 1440s # GLib-GIO-DEBUG: Server says libdbus client 11 is uid 4294967295, pid -1 1440s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1440s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 1440s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 1440s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 1440s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 1440s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 1440s # GLib-GIO-DEBUG: Server says libdbus client 12 is uid 4294967295, pid -1 1440s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1440s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 1440s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 1440s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 1440s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 1440s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 1440s # GLib-GIO-DEBUG: Server says libdbus client 13 is uid 4294967295, pid -1 1440s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1440s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 1440s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 1440s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 1440s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 1440s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 1440s # GLib-GIO-DEBUG: Server says libdbus client 14 is uid 4294967295, pid -1 1440s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1440s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 1440s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 1440s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 1440s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 1440s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 1440s # GLib-GIO-DEBUG: Server says libdbus client 15 is uid 4294967295, pid -1 1440s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1440s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 1440s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 1440s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 1440s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 1440s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 1440s # GLib-GIO-DEBUG: Server says libdbus client 16 is uid 4294967295, pid -1 1440s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1440s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 1440s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 1440s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 1440s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 1440s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 1440s # GLib-GIO-DEBUG: Server says libdbus client 17 is uid 4294967295, pid -1 1440s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1440s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 1440s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 1440s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 1440s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 1440s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 1440s # GLib-GIO-DEBUG: Server says libdbus client 18 is uid 4294967295, pid -1 1440s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1440s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 1440s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 1440s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 1440s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 1440s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 1440s # GLib-GIO-DEBUG: Server says libdbus client 19 is uid 4294967295, pid -1 1440s ok 7 /gdbus/server-auth/anonymous/tcp 1440s # slow test /gdbus/server-auth/anonymous/tcp executed in 0.84 secs 1440s # End of anonymous tests 1440s # Start of external tests 1440s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-server-auth_1JTKK3/gdbus/server-auth/external/require-same-user/.dirs/home 1440s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-server-auth_1JTKK3/gdbus/server-auth/external/require-same-user/.dirs/cache 1440s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-server-auth_1JTKK3/gdbus/server-auth/external/require-same-user/.dirs/system-config1:/tmp/test_gdbus-server-auth_1JTKK3/gdbus/server-auth/external/require-same-user/.dirs/system-config2 1440s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-server-auth_1JTKK3/gdbus/server-auth/external/require-same-user/.dirs/config 1440s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-server-auth_1JTKK3/gdbus/server-auth/external/require-same-user/.dirs/system-data1:/tmp/test_gdbus-server-auth_1JTKK3/gdbus/server-auth/external/require-same-user/.dirs/system-data2 1440s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-server-auth_1JTKK3/gdbus/server-auth/external/require-same-user/.dirs/data 1440s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-server-auth_1JTKK3/gdbus/server-auth/external/require-same-user/.dirs/state 1440s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-server-auth_1JTKK3/gdbus/server-auth/external/require-same-user/.dirs/runtime 1440s # Testing GDBus server at unix:dir=/tmp/test_gdbus-server-auth_1JTKK3/gdbus-server-auth-RPSPK3 / libdbus client, with flags: external:true anonymous:false sha1:false abstract:false tcp:false 1440s # Connectable address: unix:path=/tmp/test_gdbus-server-auth_1JTKK3/gdbus-server-auth-RPSPK3/dbus-yANBbsot 1440s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 1440s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 1440s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 1440s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=39667,uid=1000,gid=1000 1440s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=39667,uid=1000,gid=1000 1440s # GLib-GIO-DEBUG: Server says GDBus client is uid 1000, pid 39667 1440s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1440s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 1440s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 1440s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 1440s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=39667,uid=1000,gid=1000 1440s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=39667,uid=1000,gid=1000 1440s # GLib-GIO-DEBUG: Server says libdbus client 0 is uid 1000, pid 39667 1440s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1440s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 1440s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 1440s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 1440s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=39667,uid=1000,gid=1000 1440s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=39667,uid=1000,gid=1000 1440s # GLib-GIO-DEBUG: Server says libdbus client 1 is uid 1000, pid 39667 1440s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1440s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 1440s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 1440s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 1440s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=39667,uid=1000,gid=1000 1440s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=39667,uid=1000,gid=1000 1440s # GLib-GIO-DEBUG: Server says libdbus client 2 is uid 1000, pid 39667 1440s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1440s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 1440s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 1440s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 1440s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=39667,uid=1000,gid=1000 1440s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=39667,uid=1000,gid=1000 1440s # GLib-GIO-DEBUG: Server says libdbus client 3 is uid 1000, pid 39667 1440s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1440s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 1440s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 1440s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 1440s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=39667,uid=1000,gid=1000 1440s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=39667,uid=1000,gid=1000 1440s # GLib-GIO-DEBUG: Server says libdbus client 4 is uid 1000, pid 39667 1440s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1440s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 1440s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 1440s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 1440s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=39667,uid=1000,gid=1000 1440s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=39667,uid=1000,gid=1000 1440s # GLib-GIO-DEBUG: Server says libdbus client 5 is uid 1000, pid 39667 1440s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1440s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 1440s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 1440s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 1440s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=39667,uid=1000,gid=1000 1440s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=39667,uid=1000,gid=1000 1440s # GLib-GIO-DEBUG: Server says libdbus client 6 is uid 1000, pid 39667 1440s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1440s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 1440s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 1440s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 1440s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=39667,uid=1000,gid=1000 1440s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=39667,uid=1000,gid=1000 1440s # GLib-GIO-DEBUG: Server says libdbus client 7 is uid 1000, pid 39667 1440s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1440s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 1440s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 1440s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 1440s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=39667,uid=1000,gid=1000 1440s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=39667,uid=1000,gid=1000 1440s # GLib-GIO-DEBUG: Server says libdbus client 8 is uid 1000, pid 39667 1440s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1440s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 1440s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 1440s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 1440s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=39667,uid=1000,gid=1000 1440s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=39667,uid=1000,gid=1000 1440s # GLib-GIO-DEBUG: Server says libdbus client 9 is uid 1000, pid 39667 1440s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1440s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 1440s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 1440s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 1440s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=39667,uid=1000,gid=1000 1440s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=39667,uid=1000,gid=1000 1440s # GLib-GIO-DEBUG: Server says libdbus client 10 is uid 1000, pid 39667 1440s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1440s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 1440s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 1440s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 1440s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=39667,uid=1000,gid=1000 1440s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=39667,uid=1000,gid=1000 1440s # GLib-GIO-DEBUG: Server says libdbus client 11 is uid 1000, pid 39667 1440s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1440s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 1440s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 1440s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 1440s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=39667,uid=1000,gid=1000 1440s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=39667,uid=1000,gid=1000 1440s # GLib-GIO-DEBUG: Server says libdbus client 12 is uid 1000, pid 39667 1440s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1440s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 1440s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 1440s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 1440s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=39667,uid=1000,gid=1000 1440s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=39667,uid=1000,gid=1000 1440s # GLib-GIO-DEBUG: Server says libdbus client 13 is uid 1000, pid 39667 1440s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1440s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 1440s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 1440s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 1440s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=39667,uid=1000,gid=1000 1440s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=39667,uid=1000,gid=1000 1440s # GLib-GIO-DEBUG: Server says libdbus client 14 is uid 1000, pid 39667 1440s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1440s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 1440s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 1440s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 1440s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=39667,uid=1000,gid=1000 1440s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=39667,uid=1000,gid=1000 1440s # GLib-GIO-DEBUG: Server says libdbus client 15 is uid 1000, pid 39667 1440s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1440s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 1440s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 1440s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 1440s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=39667,uid=1000,gid=1000 1440s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=39667,uid=1000,gid=1000 1440s # GLib-GIO-DEBUG: Server says libdbus client 16 is uid 1000, pid 39667 1440s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1440s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 1440s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 1440s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 1440s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=39667,uid=1000,gid=1000 1440s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=39667,uid=1000,gid=1000 1440s # GLib-GIO-DEBUG: Server says libdbus client 17 is uid 1000, pid 39667 1440s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1440s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 1440s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 1440s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 1440s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=39667,uid=1000,gid=1000 1440s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=39667,uid=1000,gid=1000 1440s # GLib-GIO-DEBUG: Server says libdbus client 18 is uid 1000, pid 39667 1440s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1440s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 1440s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 1440s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 1440s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=39667,uid=1000,gid=1000 1440s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=39667,uid=1000,gid=1000 1440s # GLib-GIO-DEBUG: Server says libdbus client 19 is uid 1000, pid 39667 1440s ok 8 /gdbus/server-auth/external/require-same-user 1440s # End of external tests 1440s # Start of sha1 tests 1440s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-server-auth_1JTKK3/gdbus/server-auth/sha1/tcp/.dirs/home 1440s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-server-auth_1JTKK3/gdbus/server-auth/sha1/tcp/.dirs/cache 1440s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-server-auth_1JTKK3/gdbus/server-auth/sha1/tcp/.dirs/system-config1:/tmp/test_gdbus-server-auth_1JTKK3/gdbus/server-auth/sha1/tcp/.dirs/system-config2 1440s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-server-auth_1JTKK3/gdbus/server-auth/sha1/tcp/.dirs/config 1440s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-server-auth_1JTKK3/gdbus/server-auth/sha1/tcp/.dirs/system-data1:/tmp/test_gdbus-server-auth_1JTKK3/gdbus/server-auth/sha1/tcp/.dirs/system-data2 1440s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-server-auth_1JTKK3/gdbus/server-auth/sha1/tcp/.dirs/data 1440s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-server-auth_1JTKK3/gdbus/server-auth/sha1/tcp/.dirs/state 1440s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-server-auth_1JTKK3/gdbus/server-auth/sha1/tcp/.dirs/runtime 1440s # Testing GDBus server at tcp:host=127.0.0.1 / libdbus client, with flags: external:false anonymous:false sha1:true abstract:false tcp:true 1440s # Connectable address: tcp:host=127.0.0.1,port=35975 1440s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not DBUS_COOKIE_SHA1 1440s # GLib-GIO-DEBUG: Accepting DBUS_COOKIE_SHA1 authentication 1440s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not DBUS_COOKIE_SHA1 1440s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 1440s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 1440s # GLib-GIO-DEBUG: Server says GDBus client is uid 4294967295, pid -1 1440s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1440s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not DBUS_COOKIE_SHA1 1440s # GLib-GIO-DEBUG: Accepting DBUS_COOKIE_SHA1 authentication 1440s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not DBUS_COOKIE_SHA1 1440s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 1440s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 1440s # GLib-GIO-DEBUG: Server says libdbus client 0 is uid 4294967295, pid -1 1440s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1440s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not DBUS_COOKIE_SHA1 1440s # GLib-GIO-DEBUG: Accepting DBUS_COOKIE_SHA1 authentication 1440s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not DBUS_COOKIE_SHA1 1440s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 1440s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 1440s # GLib-GIO-DEBUG: Server says libdbus client 1 is uid 4294967295, pid -1 1440s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1440s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not DBUS_COOKIE_SHA1 1440s # GLib-GIO-DEBUG: Accepting DBUS_COOKIE_SHA1 authentication 1440s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not DBUS_COOKIE_SHA1 1440s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 1440s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 1440s # GLib-GIO-DEBUG: Server says libdbus client 2 is uid 4294967295, pid -1 1440s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1440s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not DBUS_COOKIE_SHA1 1440s # GLib-GIO-DEBUG: Accepting DBUS_COOKIE_SHA1 authentication 1440s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not DBUS_COOKIE_SHA1 1440s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 1440s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 1440s # GLib-GIO-DEBUG: Server says libdbus client 3 is uid 4294967295, pid -1 1440s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1440s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not DBUS_COOKIE_SHA1 1440s # GLib-GIO-DEBUG: Accepting DBUS_COOKIE_SHA1 authentication 1440s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not DBUS_COOKIE_SHA1 1440s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 1440s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 1440s # GLib-GIO-DEBUG: Server says libdbus client 4 is uid 4294967295, pid -1 1440s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1440s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not DBUS_COOKIE_SHA1 1440s # GLib-GIO-DEBUG: Accepting DBUS_COOKIE_SHA1 authentication 1440s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not DBUS_COOKIE_SHA1 1440s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 1440s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 1440s # GLib-GIO-DEBUG: Server says libdbus client 5 is uid 4294967295, pid -1 1440s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1440s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not DBUS_COOKIE_SHA1 1440s # GLib-GIO-DEBUG: Accepting DBUS_COOKIE_SHA1 authentication 1440s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not DBUS_COOKIE_SHA1 1440s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 1440s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 1440s # GLib-GIO-DEBUG: Server says libdbus client 6 is uid 4294967295, pid -1 1440s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1440s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not DBUS_COOKIE_SHA1 1440s # GLib-GIO-DEBUG: Accepting DBUS_COOKIE_SHA1 authentication 1440s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not DBUS_COOKIE_SHA1 1440s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 1440s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 1440s # GLib-GIO-DEBUG: Server says libdbus client 7 is uid 4294967295, pid -1 1440s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1440s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not DBUS_COOKIE_SHA1 1440s # GLib-GIO-DEBUG: Accepting DBUS_COOKIE_SHA1 authentication 1440s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not DBUS_COOKIE_SHA1 1440s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 1440s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 1440s # GLib-GIO-DEBUG: Server says libdbus client 8 is uid 4294967295, pid -1 1440s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1440s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not DBUS_COOKIE_SHA1 1440s # GLib-GIO-DEBUG: Accepting DBUS_COOKIE_SHA1 authentication 1440s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not DBUS_COOKIE_SHA1 1440s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 1440s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 1441s # GLib-GIO-DEBUG: Server says libdbus client 9 is uid 4294967295, pid -1 1441s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1441s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not DBUS_COOKIE_SHA1 1441s # GLib-GIO-DEBUG: Accepting DBUS_COOKIE_SHA1 authentication 1441s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not DBUS_COOKIE_SHA1 1441s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 1441s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 1441s # GLib-GIO-DEBUG: Server says libdbus client 10 is uid 4294967295, pid -1 1441s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1441s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not DBUS_COOKIE_SHA1 1441s # GLib-GIO-DEBUG: Accepting DBUS_COOKIE_SHA1 authentication 1441s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not DBUS_COOKIE_SHA1 1441s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 1441s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 1441s # GLib-GIO-DEBUG: Server says libdbus client 11 is uid 4294967295, pid -1 1441s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1441s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not DBUS_COOKIE_SHA1 1441s # GLib-GIO-DEBUG: Accepting DBUS_COOKIE_SHA1 authentication 1441s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not DBUS_COOKIE_SHA1 1441s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 1441s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 1441s # GLib-GIO-DEBUG: Server says libdbus client 12 is uid 4294967295, pid -1 1441s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1441s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not DBUS_COOKIE_SHA1 1441s # GLib-GIO-DEBUG: Accepting DBUS_COOKIE_SHA1 authentication 1441s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not DBUS_COOKIE_SHA1 1441s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 1441s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 1441s # GLib-GIO-DEBUG: Server says libdbus client 13 is uid 4294967295, pid -1 1441s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1441s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not DBUS_COOKIE_SHA1 1441s # GLib-GIO-DEBUG: Accepting DBUS_COOKIE_SHA1 authentication 1441s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not DBUS_COOKIE_SHA1 1441s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 1441s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 1441s # GLib-GIO-DEBUG: Server says libdbus client 14 is uid 4294967295, pid -1 1441s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1441s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not DBUS_COOKIE_SHA1 1441s # GLib-GIO-DEBUG: Accepting DBUS_COOKIE_SHA1 authentication 1441s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not DBUS_COOKIE_SHA1 1441s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 1441s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 1441s # GLib-GIO-DEBUG: Server says libdbus client 15 is uid 4294967295, pid -1 1441s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1441s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not DBUS_COOKIE_SHA1 1441s # GLib-GIO-DEBUG: Accepting DBUS_COOKIE_SHA1 authentication 1441s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not DBUS_COOKIE_SHA1 1441s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 1441s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 1441s # GLib-GIO-DEBUG: Server says libdbus client 16 is uid 4294967295, pid -1 1441s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1441s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not DBUS_COOKIE_SHA1 1441s # GLib-GIO-DEBUG: Accepting DBUS_COOKIE_SHA1 authentication 1441s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not DBUS_COOKIE_SHA1 1441s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 1441s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 1441s # GLib-GIO-DEBUG: Server says libdbus client 17 is uid 4294967295, pid -1 1441s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1441s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not DBUS_COOKIE_SHA1 1441s # GLib-GIO-DEBUG: Accepting DBUS_COOKIE_SHA1 authentication 1441s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not DBUS_COOKIE_SHA1 1441s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 1441s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 1441s # GLib-GIO-DEBUG: Server says libdbus client 18 is uid 4294967295, pid -1 1441s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1441s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not DBUS_COOKIE_SHA1 1441s # GLib-GIO-DEBUG: Accepting DBUS_COOKIE_SHA1 authentication 1441s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not DBUS_COOKIE_SHA1 1441s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 1441s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 1441s # GLib-GIO-DEBUG: Server says libdbus client 19 is uid 4294967295, pid -1 1441s ok 9 /gdbus/server-auth/sha1/tcp 1441s # slow test /gdbus/server-auth/sha1/tcp executed in 0.85 secs 1441s # End of sha1 tests 1441s # End of server-auth tests 1441s # End of gdbus tests 1441s PASS: glib/gdbus-server-auth.test 1441s SUMMARY: total=1; passed=1; skipped=0; failed=0; user=0.1s; system=0.1s; maxrss=5888 1441s autopkgtest [11:38:41]: test gdbus-server-auth: -----------------------] 1445s gdbus-server-auth PASS 1445s autopkgtest [11:38:45]: test gdbus-server-auth: - - - - - - - - - - results - - - - - - - - - - 1449s autopkgtest [11:38:49]: test gdbus-threading: preparing testbed 1451s Reading package lists... 1451s Building dependency tree... 1451s Reading state information... 1451s Solving dependencies... 1452s 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 1459s autopkgtest [11:38:59]: test gdbus-threading: [----------------------- 1461s Running test: glib/gdbus-threading.test 1461s TAP version 14 1461s # random seed: R02S47d2d4e5a6585c8b9c272d139b36d3f2 1461s 1..3 1461s # Start of gdbus tests 1461s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-threading_1JU3J3/gdbus/delivery-in-thread/.dirs/home 1461s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-threading_1JU3J3/gdbus/delivery-in-thread/.dirs/cache 1461s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-threading_1JU3J3/gdbus/delivery-in-thread/.dirs/system-config1:/tmp/test_gdbus-threading_1JU3J3/gdbus/delivery-in-thread/.dirs/system-config2 1461s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-threading_1JU3J3/gdbus/delivery-in-thread/.dirs/config 1461s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-threading_1JU3J3/gdbus/delivery-in-thread/.dirs/system-data1:/tmp/test_gdbus-threading_1JU3J3/gdbus/delivery-in-thread/.dirs/system-data2 1461s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-threading_1JU3J3/gdbus/delivery-in-thread/.dirs/data 1461s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-threading_1JU3J3/gdbus/delivery-in-thread/.dirs/state 1461s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-threading_1JU3J3/gdbus/delivery-in-thread/.dirs/runtime 1461s ok 1 /gdbus/delivery-in-thread 1461s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-threading_1JU3J3/gdbus/method-calls-in-thread/.dirs/home 1461s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-threading_1JU3J3/gdbus/method-calls-in-thread/.dirs/cache 1461s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-threading_1JU3J3/gdbus/method-calls-in-thread/.dirs/system-config1:/tmp/test_gdbus-threading_1JU3J3/gdbus/method-calls-in-thread/.dirs/system-config2 1461s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-threading_1JU3J3/gdbus/method-calls-in-thread/.dirs/config 1461s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-threading_1JU3J3/gdbus/method-calls-in-thread/.dirs/system-data1:/tmp/test_gdbus-threading_1JU3J3/gdbus/method-calls-in-thread/.dirs/system-data2 1461s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-threading_1JU3J3/gdbus/method-calls-in-thread/.dirs/data 1461s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-threading_1JU3J3/gdbus/method-calls-in-thread/.dirs/state 1461s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-threading_1JU3J3/gdbus/method-calls-in-thread/.dirs/runtime 1462s ok 2 /gdbus/method-calls-in-thread 1462s # slow test /gdbus/method-calls-in-thread executed in 0.84 secs 1462s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-threading_1JU3J3/gdbus/threaded-singleton/.dirs/home 1462s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-threading_1JU3J3/gdbus/threaded-singleton/.dirs/cache 1462s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-threading_1JU3J3/gdbus/threaded-singleton/.dirs/system-config1:/tmp/test_gdbus-threading_1JU3J3/gdbus/threaded-singleton/.dirs/system-config2 1462s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-threading_1JU3J3/gdbus/threaded-singleton/.dirs/config 1462s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-threading_1JU3J3/gdbus/threaded-singleton/.dirs/system-data1:/tmp/test_gdbus-threading_1JU3J3/gdbus/threaded-singleton/.dirs/system-data2 1462s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-threading_1JU3J3/gdbus/threaded-singleton/.dirs/data 1462s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-threading_1JU3J3/gdbus/threaded-singleton/.dirs/state 1462s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-threading_1JU3J3/gdbus/threaded-singleton/.dirs/runtime 1463s ok 3 /gdbus/threaded-singleton 1463s # slow test /gdbus/threaded-singleton executed in 1.41 secs 1463s # End of gdbus tests 1463s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1463s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1463s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1463s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1463s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1463s PASS: glib/gdbus-threading.test 1463s SUMMARY: total=1; passed=1; skipped=0; failed=0; user=0.6s; system=0.5s; maxrss=4352 1464s autopkgtest [11:39:04]: test gdbus-threading: -----------------------] 1468s gdbus-threading PASS 1468s autopkgtest [11:39:08]: test gdbus-threading: - - - - - - - - - - results - - - - - - - - - - 1471s autopkgtest [11:39:11]: test gmenumodel: preparing testbed 1473s Reading package lists... 1474s Building dependency tree... 1474s Reading state information... 1474s Solving dependencies... 1475s 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 1483s autopkgtest [11:39:23]: test gmenumodel: [----------------------- 1485s Running test: glib/gmenumodel.test 1485s TAP version 14 1485s # random seed: R02S94cb360f6657f1b0f2c562284321718a 1485s 1..15 1485s # Start of gmenu tests 1485s ok 1 /gmenu/equality 1485s # slow test /gmenu/equality executed in 0.78 secs 1486s ok 2 /gmenu/random 1486s # slow test /gmenu/random executed in 0.87 secs 1486s ok 3 /gmenu/attributes 1486s ok 4 /gmenu/links 1486s ok 5 /gmenu/mutable 1486s ok 6 /gmenu/convenience 1486s ok 7 /gmenu/menuitem 1486s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/861 1486s ok 8 /gmenu/input-validation 1486s # Start of dbus tests 1487s ok 9 /gmenu/dbus/roundtrip 1487s # slow test /gmenu/dbus/roundtrip executed in 1.01 secs 1488s ok 10 /gmenu/dbus/subscriptions 1489s ok 11 /gmenu/dbus/threaded 1489s # slow test /gmenu/dbus/threaded executed in 1.29 secs 1489s # Start of peer tests 1490s Executing: glib/gmenumodel.test 1490s ok 12 /gmenu/dbus/peer/roundtrip 1490s # slow test /gmenu/dbus/peer/roundtrip executed in 1.02 secs 1491s ok 13 /gmenu/dbus/peer/subscriptions 1491s # End of peer tests 1491s # Start of export tests 1491s # /gmenu/dbus/export/error-handling summary: Test that error handling of menu model export failure works 1491s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3366 1491s ok 14 /gmenu/dbus/export/error-handling 1491s # End of export tests 1491s # End of dbus tests 1491s # Start of attributes tests 1491s ok 15 /gmenu/attributes/iterate 1491s # End of attributes tests 1491s # End of gmenu tests 1491s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1491s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1491s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1491s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1491s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1491s PASS: glib/gmenumodel.test 1491s SUMMARY: total=1; passed=1; skipped=0; failed=0; user=6.1s; system=1.2s; maxrss=12160 1491s autopkgtest [11:39:31]: test gmenumodel: -----------------------] 1495s gmenumodel PASS 1495s autopkgtest [11:39:35]: test gmenumodel: - - - - - - - - - - results - - - - - - - - - - 1498s autopkgtest [11:39:38]: test mainloop: preparing testbed 1500s Reading package lists... 1500s Building dependency tree... 1500s Reading state information... 1501s Solving dependencies... 1501s 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 1509s autopkgtest [11:39:49]: test mainloop: [----------------------- 1510s Running test: glib/mainloop.test 1510s TAP version 14 1510s # random seed: R02S7866d5818834da3eafb7b929ce6fee4d 1510s 1..47 1510s # Start of maincontext tests 1510s ok 1 /maincontext/basic 1510s # Add same-priority sources: 35 1510s # Find each source: 7 1511s # Remove in random order: 53 1511s ok 2 /maincontext/nsources_same_priority 1511s # Add different-priority sources: 41 1511s # Find each source: 7 1511s # Remove in random order: 59 1511s ok 3 /maincontext/nsources_different_priority 1511s # Add sources from threads: 250 1511s # Remove sources from threads: 283 1511s ok 4 /maincontext/nsources_threadpool 1511s # slow test /maincontext/nsources_threadpool executed in 0.54 secs 1511s ok 5 /maincontext/source_finalization 1511s # /maincontext/idle-once summary: Test g_idle_add_once() works 1511s ok 6 /maincontext/idle-once 1511s # /maincontext/timeout-once summary: Test g_timeout_add_once() works 1511s ok 7 /maincontext/timeout-once 1511s # /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. 1511s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/issues/3725 1511s ok 8 /maincontext/context-ref-in-source-callbackfuncs-unref 1511s # Start of source_finalization_from_source tests 1511s # /maincontext/source_finalization_from_source/0 summary: Tests if freeing a GSource as part of another GSource during main context destruction works. 1511s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/merge_requests/1353 1511s ok 9 /maincontext/source_finalization_from_source/0 1511s # /maincontext/source_finalization_from_source/1 summary: Tests if freeing a GSource as part of another GSource during main context destruction works. 1511s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/merge_requests/1353 1511s ok 10 /maincontext/source_finalization_from_source/1 1511s # /maincontext/source_finalization_from_source/2 summary: Tests if freeing a GSource as part of another GSource during main context destruction works. 1511s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/merge_requests/1353 1511s ok 11 /maincontext/source_finalization_from_source/2 1511s # /maincontext/source_finalization_from_source/3 summary: Tests if freeing a GSource as part of another GSource during main context destruction works. 1511s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/merge_requests/1353 1511s ok 12 /maincontext/source_finalization_from_source/3 1511s # /maincontext/source_finalization_from_source/4 summary: Tests if freeing a GSource as part of another GSource during main context destruction works. 1511s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/merge_requests/1353 1511s ok 13 /maincontext/source_finalization_from_source/4 1511s # /maincontext/source_finalization_from_source/5 summary: Tests if freeing a GSource as part of another GSource during main context destruction works. 1511s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/merge_requests/1353 1511s ok 14 /maincontext/source_finalization_from_source/5 1511s # /maincontext/source_finalization_from_source/6 summary: Tests if freeing a GSource as part of another GSource during main context destruction works. 1511s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/merge_requests/1353 1511s ok 15 /maincontext/source_finalization_from_source/6 1511s # /maincontext/source_finalization_from_source/7 summary: Tests if freeing a GSource as part of another GSource during main context destruction works. 1511s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/merge_requests/1353 1511s ok 16 /maincontext/source_finalization_from_source/7 1511s # /maincontext/source_finalization_from_source/8 summary: Tests if freeing a GSource as part of another GSource during main context destruction works. 1511s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/merge_requests/1353 1511s ok 17 /maincontext/source_finalization_from_source/8 1511s # /maincontext/source_finalization_from_source/9 summary: Tests if freeing a GSource as part of another GSource during main context destruction works. 1511s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/merge_requests/1353 1511s ok 18 /maincontext/source_finalization_from_source/9 1511s # End of source_finalization_from_source tests 1511s # Start of source_finalization_from_dispatch tests 1511s # /maincontext/source_finalization_from_dispatch/0 summary: Tests if freeing a GSource as part of another GSource during main context iteration works. 1511s ok 19 /maincontext/source_finalization_from_dispatch/0 1511s # /maincontext/source_finalization_from_dispatch/1 summary: Tests if freeing a GSource as part of another GSource during main context iteration works. 1511s ok 20 /maincontext/source_finalization_from_dispatch/1 1511s # /maincontext/source_finalization_from_dispatch/2 summary: Tests if freeing a GSource as part of another GSource during main context iteration works. 1511s ok 21 /maincontext/source_finalization_from_dispatch/2 1511s # End of source_finalization_from_dispatch tests 1511s # End of maincontext tests 1511s # Start of mainloop tests 1511s ok 22 /mainloop/basic 1511s ok 23 /mainloop/timeouts # SKIP Not running timing heavy test 1511s ok 24 /mainloop/priorities 1512s ok 25 /mainloop/invoke 1512s # slow test /mainloop/invoke executed in 0.50 secs 1513s ok 26 /mainloop/child_sources 1513s # slow test /mainloop/child_sources executed in 1.20 secs 1515s ok 27 /mainloop/recursive_child_sources 1515s # slow test /mainloop/recursive_child_sources executed in 2.19 secs 1515s ok 28 /mainloop/recursive_loop_child_sources 1515s ok 29 /mainloop/swapping_child_sources 1515s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=701283 1515s ok 30 /mainloop/blocked_child_sources 1516s Executing: glib/mainloop.test 1516s ok 31 /mainloop/source_time 1516s # slow test /mainloop/source_time executed in 1.00 secs 1516s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=687098 1516s ok 32 /mainloop/overflow 1517s ok 33 /mainloop/ready-time 1517s # slow test /mainloop/ready-time executed in 0.50 secs 1517s ok 34 /mainloop/wakeup 1517s ok 35 /mainloop/remove-invalid 1517s ok 36 /mainloop/unref-while-pending 1518s ok 37 /mainloop/unix-fd 1518s # slow test /mainloop/unix-fd executed in 0.89 secs 1518s ok 38 /mainloop/unix-fd-source 1518s ok 39 /mainloop/source-unix-fd-api 1518s ok 40 /mainloop/wait 1518s ok 41 /mainloop/unix-file-poll 1518s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/1592 1518s ok 42 /mainloop/unix-fd-priority 1518s ok 43 /mainloop/nfds 1518s ok 44 /mainloop/steal-fd 1519s ok 45 /mainloop/simultaneous-source-context-destruction 1519s # slow test /mainloop/simultaneous-source-context-destruction executed in 1.49 secs 1519s # Start of ownerless-polling tests 1519s ok 46 /mainloop/ownerless-polling/attach-first 1519s ok 47 /mainloop/ownerless-polling/pop-first 1519s # End of ownerless-polling tests 1519s # End of mainloop tests 1519s PASS: glib/mainloop.test 1519s SUMMARY: total=1; passed=1; skipped=0; failed=0; user=1.9s; system=6.7s; maxrss=10668 1520s autopkgtest [11:40:00]: test mainloop: -----------------------] 1524s autopkgtest [11:40:04]: test mainloop: - - - - - - - - - - results - - - - - - - - - - 1524s mainloop PASS 1527s autopkgtest [11:40:07]: test memory-monitor-dbus: preparing testbed 1529s Reading package lists... 1529s Building dependency tree... 1529s Reading state information... 1529s Solving dependencies... 1530s 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 1537s autopkgtest [11:40:17]: test memory-monitor-dbus: [----------------------- 1539s Running test: glib/memory-monitor-dbus.test 1539s TAP version 13 1539s ok 1 __main__.TestLowMemoryMonitor.test_low_memory_warning_signal 1539s # Received memory warning signal, level 0 1539s # Received memory warning signal, level 100 1539s # Received memory warning signal, level 255 1539s 1..1 1539s PASS: glib/memory-monitor-dbus.test 1539s SUMMARY: total=1; passed=1; skipped=0; failed=0; user=0.2s; system=0.1s; maxrss=21556 1540s autopkgtest [11:40:20]: test memory-monitor-dbus: -----------------------] 1543s autopkgtest [11:40:23]: test memory-monitor-dbus: - - - - - - - - - - results - - - - - - - - - - 1543s memory-monitor-dbus PASS 1547s autopkgtest [11:40:27]: test socket: preparing testbed 1549s Reading package lists... 1549s Building dependency tree... 1549s Reading state information... 1549s Solving dependencies... 1550s 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 1557s autopkgtest [11:40:37]: test socket: [----------------------- 1559s Running test: glib/socket.test 1559s TAP version 14 1559s # random seed: R02S90714cce45bfdd0c61f3a96903ec92ca 1559s 1..30 1559s # Start of socket tests 1560s ok 1 /socket/ipv4_sync 1560s # slow test /socket/ipv4_sync executed in 1.00 secs 1561s ok 2 /socket/ipv4_async 1561s # slow test /socket/ipv4_async executed in 1.00 secs 1561s ok 3 /socket/ipv6_sync 1561s ok 4 /socket/ipv6_async 1561s ok 5 /socket/ipv6_v4mapped 1562s ok 6 /socket/close_graceful 1562s # slow test /socket/close_graceful executed in 1.00 secs 1562s ok 7 /socket/timed_wait # SKIP Not running timing heavy test 1562s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=741707 1562s ok 8 /socket/fd_reuse 1562s ok 9 /socket/address 1562s ok 10 /socket/unix-from-fd 1562s ok 11 /socket/unix-connection 1562s ok 12 /socket/unix-connection-ancillary-data 1562s ok 13 /socket/source-postmortem 1562s ok 14 /socket/read_write 1562s ok 15 /socket/read_writev 1562s # /socket/receive_bytes summary: Test basic functionality of g_socket_receive_bytes() 1562s ok 16 /socket/receive_bytes 1562s # /socket/receive_bytes_from summary: Test basic functionality of g_socket_receive_bytes_from() 1562s ok 17 /socket/receive_bytes_from 1562s # Start of ipv4_sync tests 1562s ok 18 /socket/ipv4_sync/datagram 1562s # Start of datagram tests 1563s ok 19 /socket/ipv4_sync/datagram/timeouts 1563s # slow test /socket/ipv4_sync/datagram/timeouts executed in 1.10 secs 1563s # End of datagram tests 1563s # End of ipv4_sync tests 1563s # Start of ipv6_sync tests 1563s ok 20 /socket/ipv6_sync/datagram 1563s # Start of datagram tests 1564s Executing: glib/socket.test 1564s ok 21 /socket/ipv6_sync/datagram/timeouts 1564s # slow test /socket/ipv6_sync/datagram/timeouts executed in 1.10 secs 1564s # End of datagram tests 1564s # End of ipv6_sync tests 1564s # Start of reuse tests 1564s ok 22 /socket/reuse/tcp 1564s ok 23 /socket/reuse/udp 1564s # End of reuse tests 1564s # Start of get_available tests 1564s ok 24 /socket/get_available/datagram 1564s ok 25 /socket/get_available/stream 1564s # End of get_available tests 1564s # Start of credentials tests 1564s # Supported on this OS: GCredentials:linux-ucred:pid=0 1564s ok 26 /socket/credentials/tcp_client 1564s # Supported on this OS: GCredentials:linux-ucred:pid=0 1564s ok 27 /socket/credentials/tcp_server 1564s # Supported on this OS: GCredentials:linux-ucred:pid=65858,uid=1000,gid=1000 1564s ok 28 /socket/credentials/unix_socketpair 1564s # End of credentials tests 1564s # Start of accept tests 1564s # /socket/accept/cancelled summary: Calling g_socket_accept() with a cancelled cancellable should return immediately regardless of whether the socket is blocking 1564s ok 29 /socket/accept/cancelled 1564s # End of accept tests 1564s # Start of connect tests 1564s # /socket/connect/cancelled summary: Calling g_socket_connect() with a cancelled cancellable should return immediately regardless of whether the socket is blocking 1564s ok 30 /socket/connect/cancelled 1564s # End of connect tests 1564s # End of socket tests 1564s PASS: glib/socket.test 1564s SUMMARY: total=1; passed=1; skipped=0; failed=0; user=0.0s; system=0.0s; maxrss=4096 1565s autopkgtest [11:40:45]: test socket: -----------------------] 1569s autopkgtest [11:40:49]: test socket: - - - - - - - - - - results - - - - - - - - - - 1569s socket PASS 1572s autopkgtest [11:40:52]: test testfilemonitor: preparing testbed 1574s Reading package lists... 1574s Building dependency tree... 1574s Reading state information... 1574s Solving dependencies... 1575s 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 1582s autopkgtest [11:41:02]: test testfilemonitor: [----------------------- 1584s Running test: glib/testfilemonitor.test 1584s TAP version 14 1584s # random seed: R02Sb55c2c4690a244e1389290479e7f27f1 1584s 1..8 1584s # Start of monitor tests 1584s # GLib-GIO-DEBUG: _g_io_module_get_default: Found default implementation local (GLocalVfs) for ‘gio-vfs’ 1584s # Using temporary directory: /tmp/gio-test-testfilemonitor_QSP4J3 1584s # Using GFileMonitor GInotifyFileMonitor 1586s ok 1 /monitor/atomic-replace 1586s # slow test /monitor/atomic-replace executed in 2.00 secs 1586s # Using temporary directory: /tmp/gio-test-testfilemonitor_EGS4J3 1586s # Using GFileMonitor GInotifyFileMonitor 1589s ok 2 /monitor/file-changes 1589s # slow test /monitor/file-changes executed in 2.50 secs 1589s # Using temporary directory: /tmp/gio-test-testfilemonitor_AWEDK3 1589s # Using GFileMonitor GInotifyFileMonitor 1589s Executing: glib/testfilemonitor.test 1592s ok 3 /monitor/dir-monitor 1592s # slow test /monitor/dir-monitor executed in 3.51 secs 1592s # Using temporary directory: /tmp/gio-test-testfilemonitor_1HM4J3 1592s # Using GFileMonitor GInotifyFileMonitor 1594s Executing: glib/testfilemonitor.test 1599s Executing: glib/testfilemonitor.test 1604s Executing: glib/testfilemonitor.test 1609s Executing: glib/testfilemonitor.test 1614s Executing: glib/testfilemonitor.test 1617s ok 4 /monitor/dir-not-existent 1617s # slow test /monitor/dir-not-existent executed in 25.02 secs 1617s # Using temporary directory: /tmp/gio-test-testfilemonitor_QJ3OK3 1617s # Using GFileMonitor 0 GInotifyFileMonitor 1617s # Using GFileMonitor 1 GInotifyFileMonitor 1619s Executing: glib/testfilemonitor.test 1619s ok 5 /monitor/cross-dir-moves 1619s # slow test /monitor/cross-dir-moves executed in 2.00 secs 1619s # Using temporary directory: /tmp/gio-test-testfilemonitor_796OK3 1619s # /monitor/finalize-in-callback summary: Test that finalization of a GFileMonitor in one of its callbacks doesn’t cause a deadlock. 1619s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/1941 1619s ok 6 /monitor/finalize-in-callback 1619s # Using temporary directory: /tmp/gio-test-testfilemonitor_BXWOK3 1619s # /monitor/root summary: Test that GFileMonitor can monitor the root directory. 1619s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/merge_requests/3241 1619s ok 7 /monitor/root 1619s # Start of file tests 1619s # Using temporary directory: /tmp/gio-test-testfilemonitor_Y8WOK3 1619s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=755721 1619s # Running with hard link tests 1619s # Using GFileMonitor GInotifyFileMonitor 1623s # Event 0 at expected index 7 skipped because it is marked as optional 1623s # Event 2 at expected index 11 skipped because it is marked as optional 1623s ok 8 /monitor/file/hard-links 1623s # slow test /monitor/file/hard-links executed in 3.50 secs 1623s # End of file tests 1623s # End of monitor tests 1623s PASS: glib/testfilemonitor.test 1623s SUMMARY: total=1; passed=1; skipped=0; failed=0; user=0.0s; system=0.0s; maxrss=4224 1623s autopkgtest [11:41:43]: test testfilemonitor: -----------------------] 1627s autopkgtest [11:41:47]: test testfilemonitor: - - - - - - - - - - results - - - - - - - - - - 1627s testfilemonitor PASS 1630s autopkgtest [11:41:50]: test thread-pool-slow: preparing testbed 1632s Reading package lists... 1632s Building dependency tree... 1632s Reading state information... 1632s Solving dependencies... 1633s 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 1640s autopkgtest [11:42:00]: test thread-pool-slow: [----------------------- 1642s Running test: glib/thread-pool-slow.test 1642s TAP version 14 1642s # random seed: R02Saea90aedd99a6b7c117c60060cb996e4 1642s 1..7 1642s # Start of threadpool tests 1642s ok 1 /threadpool/functions 1643s ok 2 /threadpool/stop-unused 1643s # slow test /threadpool/stop-unused executed in 0.51 secs 1643s ok 3 /threadpool/pools 1643s # [unsorted] ===> pushed new thread with id:84, number of threads:1, unprocessed:0 1643s # [unsorted] ===> pushed new thread with id:30, number of threads:2, unprocessed:1 1643s # [unsorted] ===> pushed new thread with id:2, number of threads:3, unprocessed:2 1643s # [unsorted] ===> pushed new thread with id:67, number of threads:4, unprocessed:3 1643s # [unsorted] ===> pushed new thread with id:65, number of threads:5, unprocessed:4 1643s # [unsorted] ===> pushed new thread with id:70, number of threads:6, unprocessed:5 1643s # [unsorted] ===> pushed new thread with id:39, number of threads:7, unprocessed:4 1643s # [unsorted] ===> pushed new thread with id:24, number of threads:8, unprocessed:4 1643s # [unsorted] ===> pushed new thread with id:91, number of threads:9, unprocessed:2 1643s # [unsorted] ===> pushed new thread with id:83, number of threads:10, unprocessed:1 1643s # [unsorted] ===> pushed new thread with id:9, number of threads:10, unprocessed:1 1643s # [unsorted] ===> pushed new thread with id:69, number of threads:10, unprocessed:2 1643s # [unsorted] ===> pushed new thread with id:64, number of threads:10, unprocessed:3 1643s # [unsorted] ===> pushed new thread with id:96, number of threads:10, unprocessed:4 1643s # [unsorted] ===> pushed new thread with id:57, number of threads:10, unprocessed:5 1643s # [unsorted] ===> pushed new thread with id:38, number of threads:10, unprocessed:6 1643s # [unsorted] ===> pushed new thread with id:100, number of threads:10, unprocessed:7 1643s # [unsorted] ===> pushed new thread with id:3, number of threads:10, unprocessed:8 1643s # [unsorted] ===> pushed new thread with id:26, number of threads:10, unprocessed:9 1643s # [unsorted] ===> pushed new thread with id:98, number of threads:10, unprocessed:10 1643s # [unsorted] ===> pushed new thread with id:79, number of threads:10, unprocessed:11 1643s # [unsorted] ===> pushed new thread with id:3, number of threads:10, unprocessed:12 1643s # [unsorted] ===> pushed new thread with id:84, number of threads:10, unprocessed:13 1643s # [unsorted] ===> pushed new thread with id:47, number of threads:10, unprocessed:14 1643s # [unsorted] ===> pushed new thread with id:37, number of threads:10, unprocessed:15 1643s # [unsorted] ===> pushed new thread with id:78, number of threads:10, unprocessed:16 1643s # [unsorted] ===> pushed new thread with id:34, number of threads:10, unprocessed:17 1643s # [unsorted] ===> pushed new thread with id:52, number of threads:10, unprocessed:18 1643s # [unsorted] ===> pushed new thread with id:57, number of threads:10, unprocessed:19 1643s # [unsorted] ===> pushed new thread with id:41, number of threads:10, unprocessed:20 1643s # [unsorted] ===> pushed new thread with id:52, number of threads:10, unprocessed:21 1643s # [unsorted] ===> pushed new thread with id:89, number of threads:10, unprocessed:22 1643s # [unsorted] ===> pushed new thread with id:33, number of threads:10, unprocessed:23 1643s # [unsorted] ===> pushed new thread with id:17, number of threads:10, unprocessed:24 1643s # [unsorted] ===> pushed new thread with id:27, number of threads:10, unprocessed:25 1643s # [unsorted] ===> pushed new thread with id:10, number of threads:10, unprocessed:26 1643s # [unsorted] ===> pushed new thread with id:43, number of threads:10, unprocessed:27 1643s # [unsorted] ===> pushed new thread with id:30, number of threads:10, unprocessed:28 1643s # [unsorted] ===> pushed new thread with id:89, number of threads:10, unprocessed:29 1643s # [unsorted] ===> pushed new thread with id:80, number of threads:10, unprocessed:30 1643s # [unsorted] ===> pushed new thread with id:88, number of threads:10, unprocessed:31 1643s # [unsorted] ===> pushed new thread with id:3, number of threads:10, unprocessed:32 1643s # [unsorted] ===> pushed new thread with id:32, number of threads:10, unprocessed:33 1643s # [unsorted] ===> pushed new thread with id:15, number of threads:10, unprocessed:34 1643s # [unsorted] ===> pushed new thread with id:87, number of threads:10, unprocessed:35 1643s # [unsorted] ===> pushed new thread with id:99, number of threads:10, unprocessed:36 1643s # [unsorted] ===> pushed new thread with id:97, number of threads:10, unprocessed:37 1643s # [unsorted] ===> pushed new thread with id:31, number of threads:10, unprocessed:38 1643s # [unsorted] ===> pushed new thread with id:25, number of threads:10, unprocessed:39 1643s # [unsorted] ===> pushed new thread with id:29, number of threads:10, unprocessed:40 1643s # [unsorted] ===> pushed new thread with id:34, number of threads:10, unprocessed:41 1643s # [unsorted] ===> pushed new thread with id:17, number of threads:10, unprocessed:42 1643s # [unsorted] ===> pushed new thread with id:61, number of threads:10, unprocessed:43 1643s # [unsorted] ===> pushed new thread with id:66, number of threads:10, unprocessed:44 1643s # [unsorted] ===> pushed new thread with id:34, number of threads:10, unprocessed:45 1643s # [unsorted] ===> pushed new thread with id:37, number of threads:10, unprocessed:46 1643s # [unsorted] ===> pushed new thread with id:70, number of threads:10, unprocessed:47 1643s # [unsorted] ===> pushed new thread with id:48, number of threads:10, unprocessed:48 1643s # [unsorted] ===> pushed new thread with id:67, number of threads:10, unprocessed:49 1643s # [unsorted] ===> pushed new thread with id:88, number of threads:10, unprocessed:50 1643s # [unsorted] ===> pushed new thread with id:69, number of threads:10, unprocessed:51 1643s # [unsorted] ===> pushed new thread with id:74, number of threads:10, unprocessed:52 1643s # [unsorted] ===> pushed new thread with id:67, number of threads:10, unprocessed:53 1643s # [unsorted] ===> pushed new thread with id:29, number of threads:10, unprocessed:54 1643s # [unsorted] ===> pushed new thread with id:77, number of threads:10, unprocessed:55 1643s # [unsorted] ===> pushed new thread with id:39, number of threads:10, unprocessed:56 1643s # [unsorted] ===> pushed new thread with id:69, number of threads:10, unprocessed:57 1643s # [unsorted] ===> pushed new thread with id:2, number of threads:10, unprocessed:58 1643s # [unsorted] ===> pushed new thread with id:4, number of threads:10, unprocessed:59 1643s # [unsorted] ===> pushed new thread with id:23, number of threads:10, unprocessed:60 1643s # [unsorted] ===> pushed new thread with id:17, number of threads:10, unprocessed:61 1643s # [unsorted] ===> pushed new thread with id:89, number of threads:10, unprocessed:62 1643s # [unsorted] ===> pushed new thread with id:39, number of threads:10, unprocessed:63 1643s # [unsorted] ===> pushed new thread with id:69, number of threads:10, unprocessed:64 1643s # [unsorted] ===> pushed new thread with id:95, number of threads:10, unprocessed:65 1643s # [unsorted] ===> pushed new thread with id:37, number of threads:10, unprocessed:66 1643s # [unsorted] ===> pushed new thread with id:73, number of threads:10, unprocessed:67 1643s # [unsorted] ===> pushed new thread with id:96, number of threads:10, unprocessed:68 1643s # [unsorted] ===> pushed new thread with id:8, number of threads:10, unprocessed:69 1643s # [unsorted] ===> pushed new thread with id:31, number of threads:10, unprocessed:70 1643s # [unsorted] ===> pushed new thread with id:92, number of threads:10, unprocessed:71 1643s # [unsorted] ===> pushed new thread with id:4, number of threads:10, unprocessed:72 1643s # [unsorted] ===> pushed new thread with id:6, number of threads:10, unprocessed:73 1643s # [unsorted] ===> pushed new thread with id:35, number of threads:10, unprocessed:74 1643s # [unsorted] ===> pushed new thread with id:76, number of threads:10, unprocessed:75 1643s # [unsorted] ===> pushed new thread with id:25, number of threads:10, unprocessed:76 1643s # [unsorted] ===> pushed new thread with id:35, number of threads:10, unprocessed:77 1643s # [unsorted] ===> pushed new thread with id:88, number of threads:10, unprocessed:78 1643s # [unsorted] ===> pushed new thread with id:85, number of threads:10, unprocessed:79 1643s # [unsorted] ===> pushed new thread with id:88, number of threads:10, unprocessed:80 1643s # [unsorted] ===> pushed new thread with id:50, number of threads:10, unprocessed:81 1643s # [unsorted] ===> pushed new thread with id:41, number of threads:10, unprocessed:82 1643s # [unsorted] ===> pushed new thread with id:89, number of threads:10, unprocessed:83 1643s # [unsorted] ===> pushed new thread with id:85, number of threads:10, unprocessed:84 1643s # [unsorted] ===> pushed new thread with id:55, number of threads:10, unprocessed:85 1643s # [unsorted] ===> pushed new thread with id:83, number of threads:10, unprocessed:86 1643s # [unsorted] ===> pushed new thread with id:43, number of threads:10, unprocessed:87 1643s # [unsorted] ===> pushed new thread with id:30, number of threads:10, unprocessed:88 1643s # [unsorted] ===> pushed new thread with id:7, number of threads:10, unprocessed:89 1643s # [unsorted] ===> pushed new thread with id:82, number of threads:10, unprocessed:90 1643s ok 4 /threadpool/no-sort 1643s # [ sorted] ===> pushed new thread with id:23, number of threads:0, unprocessed:1 1643s # [ sorted] ===> pushed new thread with id:60, number of threads:0, unprocessed:2 1643s # [ sorted] ===> pushed new thread with id:12, number of threads:0, unprocessed:3 1643s # [ sorted] ===> pushed new thread with id:80, number of threads:0, unprocessed:4 1643s # [ sorted] ===> pushed new thread with id:51, number of threads:0, unprocessed:5 1643s # [ sorted] ===> pushed new thread with id:53, number of threads:0, unprocessed:6 1643s # [ sorted] ===> pushed new thread with id:70, number of threads:0, unprocessed:7 1643s # [ sorted] ===> pushed new thread with id:53, number of threads:0, unprocessed:8 1643s # [ sorted] ===> pushed new thread with id:49, number of threads:0, unprocessed:9 1643s # [ sorted] ===> pushed new thread with id:79, number of threads:0, unprocessed:10 1643s # [ sorted] ===> pushed new thread with id:27, number of threads:0, unprocessed:11 1643s # [ sorted] ===> pushed new thread with id:20, number of threads:0, unprocessed:12 1643s # [ sorted] ===> pushed new thread with id:57, number of threads:0, unprocessed:13 1643s # [ sorted] ===> pushed new thread with id:42, number of threads:0, unprocessed:14 1643s # [ sorted] ===> pushed new thread with id:91, number of threads:0, unprocessed:15 1643s # [ sorted] ===> pushed new thread with id:51, number of threads:0, unprocessed:16 1643s # [ sorted] ===> pushed new thread with id:29, number of threads:0, unprocessed:17 1643s # [ sorted] ===> pushed new thread with id:93, number of threads:0, unprocessed:18 1643s # [ sorted] ===> pushed new thread with id:74, number of threads:0, unprocessed:19 1643s # [ sorted] ===> pushed new thread with id:52, number of threads:0, unprocessed:20 1643s # [ sorted] ===> pushed new thread with id:66, number of threads:0, unprocessed:21 1643s # [ sorted] ===> pushed new thread with id:14, number of threads:0, unprocessed:22 1643s # [ sorted] ===> pushed new thread with id:28, number of threads:0, unprocessed:23 1643s # [ sorted] ===> pushed new thread with id:50, number of threads:0, unprocessed:24 1643s # [ sorted] ===> pushed new thread with id:96, number of threads:0, unprocessed:25 1643s # [ sorted] ===> pushed new thread with id:27, number of threads:0, unprocessed:26 1643s # [ sorted] ===> pushed new thread with id:88, number of threads:0, unprocessed:27 1643s # [ sorted] ===> pushed new thread with id:3, number of threads:0, unprocessed:28 1643s # [ sorted] ===> pushed new thread with id:73, number of threads:0, unprocessed:29 1643s # [ sorted] ===> pushed new thread with id:55, number of threads:0, unprocessed:30 1643s # [ sorted] ===> pushed new thread with id:32, number of threads:0, unprocessed:31 1643s # [ sorted] ===> pushed new thread with id:52, number of threads:0, unprocessed:32 1643s # [ sorted] ===> pushed new thread with id:72, number of threads:0, unprocessed:33 1643s # [ sorted] ===> pushed new thread with id:22, number of threads:0, unprocessed:34 1643s # [ sorted] ===> pushed new thread with id:68, number of threads:0, unprocessed:35 1643s # [ sorted] ===> pushed new thread with id:36, number of threads:0, unprocessed:36 1643s # [ sorted] ===> pushed new thread with id:31, number of threads:0, unprocessed:37 1643s # [ sorted] ===> pushed new thread with id:81, number of threads:0, unprocessed:38 1643s # [ sorted] ===> pushed new thread with id:29, number of threads:0, unprocessed:39 1643s # [ sorted] ===> pushed new thread with id:36, number of threads:0, unprocessed:40 1643s # [ sorted] ===> pushed new thread with id:56, number of threads:0, unprocessed:41 1643s # [ sorted] ===> pushed new thread with id:83, number of threads:0, unprocessed:42 1643s # [ sorted] ===> pushed new thread with id:44, number of threads:0, unprocessed:43 1643s # [ sorted] ===> pushed new thread with id:89, number of threads:0, unprocessed:44 1643s # [ sorted] ===> pushed new thread with id:62, number of threads:0, unprocessed:45 1643s # [ sorted] ===> pushed new thread with id:35, number of threads:0, unprocessed:46 1643s # [ sorted] ===> pushed new thread with id:92, number of threads:0, unprocessed:47 1643s # [ sorted] ===> pushed new thread with id:24, number of threads:0, unprocessed:48 1643s # [ sorted] ===> pushed new thread with id:74, number of threads:0, unprocessed:49 1643s # [ sorted] ===> pushed new thread with id:9, number of threads:0, unprocessed:50 1643s # [ sorted] ===> pushed new thread with id:67, number of threads:0, unprocessed:51 1643s # [ sorted] ===> pushed new thread with id:82, number of threads:0, unprocessed:52 1643s # [ sorted] ===> pushed new thread with id:22, number of threads:0, unprocessed:53 1643s # [ sorted] ===> pushed new thread with id:66, number of threads:0, unprocessed:54 1643s # [ sorted] ===> pushed new thread with id:83, number of threads:0, unprocessed:55 1643s # [ sorted] ===> pushed new thread with id:95, number of threads:0, unprocessed:56 1643s # [ sorted] ===> pushed new thread with id:22, number of threads:0, unprocessed:57 1643s # [ sorted] ===> pushed new thread with id:36, number of threads:0, unprocessed:58 1643s # [ sorted] ===> pushed new thread with id:14, number of threads:0, unprocessed:59 1643s # [ sorted] ===> pushed new thread with id:4, number of threads:0, unprocessed:60 1643s # [ sorted] ===> pushed new thread with id:25, number of threads:0, unprocessed:61 1643s # [ sorted] ===> pushed new thread with id:63, number of threads:0, unprocessed:62 1643s # [ sorted] ===> pushed new thread with id:80, number of threads:0, unprocessed:63 1643s # [ sorted] ===> pushed new thread with id:57, number of threads:0, unprocessed:64 1643s # [ sorted] ===> pushed new thread with id:15, number of threads:0, unprocessed:65 1643s # [ sorted] ===> pushed new thread with id:47, number of threads:0, unprocessed:66 1643s # [ sorted] ===> pushed new thread with id:97, number of threads:0, unprocessed:67 1643s # [ sorted] ===> pushed new thread with id:46, number of threads:0, unprocessed:68 1643s # [ sorted] ===> pushed new thread with id:70, number of threads:0, unprocessed:69 1643s # [ sorted] ===> pushed new thread with id:97, number of threads:0, unprocessed:70 1643s # [ sorted] ===> pushed new thread with id:98, number of threads:0, unprocessed:71 1643s # [ sorted] ===> pushed new thread with id:59, number of threads:0, unprocessed:72 1643s # [ sorted] ===> pushed new thread with id:95, number of threads:0, unprocessed:73 1643s # [ sorted] ===> pushed new thread with id:61, number of threads:0, unprocessed:74 1643s # [ sorted] ===> pushed new thread with id:5, number of threads:0, unprocessed:75 1643s # [ sorted] ===> pushed new thread with id:19, number of threads:0, unprocessed:76 1643s # [ sorted] ===> pushed new thread with id:71, number of threads:0, unprocessed:77 1643s # [ sorted] ===> pushed new thread with id:2, number of threads:0, unprocessed:78 1643s # [ sorted] ===> pushed new thread with id:33, number of threads:0, unprocessed:79 1643s # [ sorted] ===> pushed new thread with id:40, number of threads:0, unprocessed:80 1643s # [ sorted] ===> pushed new thread with id:62, number of threads:0, unprocessed:81 1643s # [ sorted] ===> pushed new thread with id:65, number of threads:0, unprocessed:82 1643s # [ sorted] ===> pushed new thread with id:51, number of threads:0, unprocessed:83 1643s # [ sorted] ===> pushed new thread with id:73, number of threads:0, unprocessed:84 1643s # [ sorted] ===> pushed new thread with id:96, number of threads:0, unprocessed:85 1643s # [ sorted] ===> pushed new thread with id:45, number of threads:0, unprocessed:86 1643s # [ sorted] ===> pushed new thread with id:17, number of threads:0, unprocessed:87 1643s # [ sorted] ===> pushed new thread with id:69, number of threads:0, unprocessed:88 1643s # [ sorted] ===> pushed new thread with id:7, number of threads:0, unprocessed:89 1643s # [ sorted] ===> pushed new thread with id:81, number of threads:0, unprocessed:90 1643s # [ sorted] ===> pushed new thread with id:63, number of threads:0, unprocessed:91 1643s # [ sorted] ===> pushed new thread with id:28, number of threads:0, unprocessed:92 1643s # [ sorted] ===> pushed new thread with id:6, number of threads:0, unprocessed:93 1643s # [ sorted] ===> pushed new thread with id:56, number of threads:0, unprocessed:94 1643s # [ sorted] ===> pushed new thread with id:5, number of threads:0, unprocessed:95 1643s # [ sorted] ===> pushed new thread with id:74, number of threads:0, unprocessed:96 1643s # [ sorted] ===> pushed new thread with id:20, number of threads:0, unprocessed:97 1643s # [ sorted] ===> pushed new thread with id:43, number of threads:0, unprocessed:98 1643s # [ sorted] ===> pushed new thread with id:5, number of threads:0, unprocessed:99 1643s # [ sorted] ===> pushed new thread with id:69, number of threads:0, unprocessed:100 1643s # Starting thread pool processing 1643s ok 5 /threadpool/sort 1644s ok 6 /threadpool/stop-unused-multiple 1644s # slow test /threadpool/stop-unused-multiple executed in 0.51 secs 1644s # Pool idle thread count: 0, unprocessed jobs: 47 1644s # Pool idle thread count: 0, unprocessed jobs: 0 1644s # Pool idle thread count: 0, unprocessed jobs: 0 1645s # Pool idle thread count: 10, unprocessed jobs: 0 1645s # Pool idle thread count: 10, unprocessed jobs: 0 1645s # Pool idle thread count: 10, unprocessed jobs: 0 1645s # Pool idle thread count: 10, unprocessed jobs: 0 1646s # Pool idle thread count: 10, unprocessed jobs: 0 1646s # Pool idle thread count: 10, unprocessed jobs: 0 1646s # Pool idle thread count: 10, unprocessed jobs: 0 1646s # Pool idle thread count: 10, unprocessed jobs: 0 1647s # Pool idle thread count: 10, unprocessed jobs: 0 1647s # Pool idle thread count: 10, unprocessed jobs: 0 1647s # Pool idle thread count: 10, unprocessed jobs: 0 1647s # Pool idle thread count: 10, unprocessed jobs: 0 1648s # Pool idle thread count: 10, unprocessed jobs: 0 1648s # Pool idle thread count: 10, unprocessed jobs: 0 1648s Executing: glib/thread-pool-slow.test 1648s # Pool idle thread count: 10, unprocessed jobs: 0 1648s # Pool idle thread count: 10, unprocessed jobs: 0 1649s # Pool idle thread count: 10, unprocessed jobs: 0 1649s # Pool idle thread count: 10, unprocessed jobs: 0 1649s # Pool idle thread count: 10, unprocessed jobs: 0 1649s # Pool idle thread count: 10, unprocessed jobs: 0 1650s # Pool idle thread count: 10, unprocessed jobs: 0 1650s # Pool idle thread count: 10, unprocessed jobs: 0 1650s # Pool idle thread count: 10, unprocessed jobs: 0 1650s # Pool idle thread count: 10, unprocessed jobs: 0 1651s # Pool idle thread count: 10, unprocessed jobs: 0 1651s # Pool idle thread count: 10, unprocessed jobs: 0 1651s # Pool idle thread count: 10, unprocessed jobs: 0 1651s # Pool idle thread count: 10, unprocessed jobs: 0 1652s # Pool idle thread count: 10, unprocessed jobs: 0 1652s # Pool idle thread count: 10, unprocessed jobs: 0 1652s # Pool idle thread count: 10, unprocessed jobs: 0 1652s # Pool idle thread count: 10, unprocessed jobs: 0 1653s # Pool idle thread count: 10, unprocessed jobs: 2 1653s # Pool idle thread count: 9, unprocessed jobs: 1 1653s # Pool idle thread count: 8, unprocessed jobs: 0 1653s # Pool idle thread count: 8, unprocessed jobs: 0 1653s Executing: glib/thread-pool-slow.test 1653s # Pool idle thread count: 10, unprocessed jobs: 0 1653s # Pool idle thread count: 10, unprocessed jobs: 0 1654s # Pool idle thread count: 10, unprocessed jobs: 0 1654s # Pool idle thread count: 10, unprocessed jobs: 0 1654s # Pool idle thread count: 10, unprocessed jobs: 0 1654s # Pool idle thread count: 10, unprocessed jobs: 0 1655s # Pool idle thread count: 2, unprocessed jobs: 0 1655s # Pool idle thread count: 2, unprocessed jobs: 0 1655s # Pool idle thread count: 2, unprocessed jobs: 0 1655s # Pool idle thread count: 2, unprocessed jobs: 0 1656s # Pool idle thread count: 2, unprocessed jobs: 0 1656s # Pool idle thread count: 2, unprocessed jobs: 0 1656s # Pool idle thread count: 2, unprocessed jobs: 0 1656s # Pool idle thread count: 2, unprocessed jobs: 0 1657s # Pool idle thread count: 2, unprocessed jobs: 0 1657s # Pool idle thread count: 2, unprocessed jobs: 0 1657s # Pool idle thread count: 2, unprocessed jobs: 0 1657s # Pool idle thread count: 2, unprocessed jobs: 0 1658s # Pool idle thread count: 2, unprocessed jobs: 0 1658s # Pool idle thread count: 2, unprocessed jobs: 0 1658s Executing: glib/thread-pool-slow.test 1658s # Pool idle thread count: 2, unprocessed jobs: 0 1658s # Pool idle thread count: 2, unprocessed jobs: 0 1659s # Pool idle thread count: 2, unprocessed jobs: 0 1659s # Pool idle thread count: 2, unprocessed jobs: 0 1659s # Pool idle thread count: 2, unprocessed jobs: 0 1659s # Pool idle thread count: 2, unprocessed jobs: 0 1660s # Pool idle thread count: 2, unprocessed jobs: 0 1660s # Pool idle thread count: 2, unprocessed jobs: 0 1660s # Pool idle thread count: 2, unprocessed jobs: 0 1660s # Pool idle thread count: 2, unprocessed jobs: 0 1661s # Pool idle thread count: 2, unprocessed jobs: 0 1661s # Pool idle thread count: 2, unprocessed jobs: 0 1661s # Pool idle thread count: 2, unprocessed jobs: 0 1661s # Pool idle thread count: 2, unprocessed jobs: 0 1662s # Pool idle thread count: 2, unprocessed jobs: 0 1662s # Pool idle thread count: 2, unprocessed jobs: 0 1662s # Pool idle thread count: 2, unprocessed jobs: 0 1662s # Pool idle thread count: 2, unprocessed jobs: 0 1663s # Pool idle thread count: 2, unprocessed jobs: 0 1663s # Pool idle thread count: 2, unprocessed jobs: 0 1663s Executing: glib/thread-pool-slow.test 1663s ok 7 /threadpool/idle-time 1663s # slow test /threadpool/idle-time executed in 19.53 secs 1663s # End of threadpool tests 1663s PASS: glib/thread-pool-slow.test 1663s SUMMARY: total=1; passed=1; skipped=0; failed=0; user=0.5s; system=0.0s; maxrss=2688 1663s autopkgtest [11:42:23]: test thread-pool-slow: -----------------------] 1667s thread-pool-slow PASS 1667s autopkgtest [11:42:27]: test thread-pool-slow: - - - - - - - - - - results - - - - - - - - - - 1671s autopkgtest [11:42:31]: test threadtests: preparing testbed 1672s Reading package lists... 1673s Building dependency tree... 1673s Reading state information... 1673s Solving dependencies... 1673s 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 1681s autopkgtest [11:42:41]: test threadtests: [----------------------- 1683s Running test: glib/threadtests.test 1683s TAP version 14 1683s # random seed: R02S600539ec5e84fe10ac3a2a92670fdcdd 1683s 1..5 1683s # Start of GObject tests 1683s ok 1 /GObject/threaded-object-init 1684s ok 2 /GObject/threaded-weak-ref 1684s # slow test /GObject/threaded-weak-ref executed in 0.88 secs 1684s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/issues/2394 1684s # /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 1688s Executing: glib/threadtests.test 1693s Executing: glib/threadtests.test 1698s Executing: glib/threadtests.test 1703s Executing: glib/threadtests.test 1708s Executing: glib/threadtests.test 1713s Executing: glib/threadtests.test 1714s ok 3 /GObject/threaded-toggle-notify 1714s # slow test /GObject/threaded-toggle-notify executed in 30.84 secs 1714s ok 4 /GObject/threaded-g-pointer-bit-unlock-and-set 1714s # Start of threaded-weak-ref tests 1714s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/2390 1714s # /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. 1714s ok 5 /GObject/threaded-weak-ref/on-finalization 1714s # End of threaded-weak-ref tests 1714s # End of GObject tests 1714s PASS: glib/threadtests.test 1714s SUMMARY: total=1; passed=1; skipped=0; failed=0; user=120.9s; system=0.6s; maxrss=2560 1715s autopkgtest [11:43:15]: test threadtests: -----------------------] 1718s threadtests PASS 1718s autopkgtest [11:43:18]: test threadtests: - - - - - - - - - - results - - - - - - - - - - 1722s autopkgtest [11:43:22]: test timeout: preparing testbed 1724s Reading package lists... 1724s Building dependency tree... 1724s Reading state information... 1724s Solving dependencies... 1725s 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 1732s autopkgtest [11:43:32]: test timeout: [----------------------- 1734s Running test: glib/timeout.test 1734s TAP version 14 1734s # random seed: R02S4dfc98622f503abf77ea3328edf655a9 1734s 1..5 1734s # Start of timeout tests 1734s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=642052 1736s ok 1 /timeout/seconds 1736s # slow test /timeout/seconds executed in 2.10 secs 1738s ok 2 /timeout/seconds-once 1738s # slow test /timeout/seconds-once executed in 2.10 secs 1738s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/issues/1600 1739s Executing: glib/timeout.test 1740s ok 3 /timeout/weeks-overflow 1740s # slow test /timeout/weeks-overflow executed in 2.10 secs 1740s ok 4 /timeout/far-future-ready-time 1744s Executing: glib/timeout.test 1749s Executing: glib/timeout.test 1750s ok 5 /timeout/rounding 1750s # slow test /timeout/rounding executed in 9.90 secs 1750s # End of timeout tests 1750s PASS: glib/timeout.test 1750s SUMMARY: total=1; passed=1; skipped=0; failed=0; user=0.0s; system=0.0s; maxrss=2048 1750s autopkgtest [11:43:50]: test timeout: -----------------------] 1754s timeout PASS 1754s autopkgtest [11:43:54]: test timeout: - - - - - - - - - - results - - - - - - - - - - 1758s autopkgtest [11:43:58]: test timer: preparing testbed 1760s Reading package lists... 1760s Building dependency tree... 1760s Reading state information... 1760s Solving dependencies... 1761s 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 1768s autopkgtest [11:44:08]: test timer: [----------------------- 1770s Running test: glib/timer.test 1770s TAP version 14 1770s # random seed: R02S5ef73de53c077ef0a3331a755139b9c9 1770s 1..10 1770s # Start of timer tests 1770s ok 1 /timer/basic 1770s ok 2 /timer/stop 1770s ok 3 /timer/continue 1770s ok 4 /timer/reset 1770s ok 5 /timer/is_active 1770s # End of timer tests 1770s # Start of timeval tests 1770s ok 6 /timeval/add 1770s ok 7 /timeval/from-iso8601 1770s ok 8 /timeval/to-iso8601 1770s # Start of to-iso8601 tests 1770s ok 9 /timeval/to-iso8601/overflow # SKIP G_MAXINT == G_MAXLONG - we can't make g_time_val_to_iso8601() overflow. 1770s # End of to-iso8601 tests 1770s # End of timeval tests 1770s # Start of usleep tests 1770s ok 10 /usleep/with-zero-wait 1770s # End of usleep tests 1770s PASS: glib/timer.test 1770s SUMMARY: total=1; passed=1; skipped=0; failed=0; user=0.0s; system=0.0s; maxrss=2048 1770s autopkgtest [11:44:10]: test timer: -----------------------] 1774s timer PASS 1774s autopkgtest [11:44:14]: test timer: - - - - - - - - - - results - - - - - - - - - - 1777s autopkgtest [11:44:17]: test 1065022-futureproofing: preparing testbed 1799s autopkgtest [11:44:39]: testbed dpkg architecture: armhf 1801s autopkgtest [11:44:41]: testbed apt version: 3.1.15 1804s autopkgtest [11:44:44]: @@@@@@@@@@@@@@@@@@@@ test bed setup 1806s autopkgtest [11:44:46]: testbed release detected to be: resolute 1813s autopkgtest [11:44:53]: updating testbed package index (apt update) 1815s Get:1 http://ftpmaster.internal/ubuntu resolute-proposed InRelease [124 kB] 1816s Get:2 http://ftpmaster.internal/ubuntu resolute InRelease [124 kB] 1816s Get:3 http://ftpmaster.internal/ubuntu resolute-updates InRelease [124 kB] 1816s Get:4 http://ftpmaster.internal/ubuntu resolute-security InRelease [124 kB] 1816s Get:5 http://ftpmaster.internal/ubuntu resolute-proposed/multiverse Sources [35.1 kB] 1816s Get:6 http://ftpmaster.internal/ubuntu resolute-proposed/main Sources [196 kB] 1816s Get:7 http://ftpmaster.internal/ubuntu resolute-proposed/restricted Sources [10.7 kB] 1816s Get:8 http://ftpmaster.internal/ubuntu resolute-proposed/universe Sources [1606 kB] 1816s Get:9 http://ftpmaster.internal/ubuntu resolute-proposed/main armhf Packages [231 kB] 1816s Get:10 http://ftpmaster.internal/ubuntu resolute-proposed/universe armhf Packages [1361 kB] 1816s Get:11 http://ftpmaster.internal/ubuntu resolute-proposed/multiverse armhf Packages [9992 B] 1816s Get:12 http://ftpmaster.internal/ubuntu resolute/universe Sources [21.3 MB] 1817s Get:13 http://ftpmaster.internal/ubuntu resolute/multiverse Sources [311 kB] 1817s Get:14 http://ftpmaster.internal/ubuntu resolute/main Sources [1412 kB] 1817s Get:15 http://ftpmaster.internal/ubuntu resolute/main armhf Packages [1374 kB] 1817s Get:16 http://ftpmaster.internal/ubuntu resolute/universe armhf Packages [14.9 MB] 1817s Get:17 http://ftpmaster.internal/ubuntu resolute/multiverse armhf Packages [177 kB] 1821s Fetched 43.4 MB in 5s (8113 kB/s) 1822s Reading package lists... 1827s autopkgtest [11:45:07]: upgrading testbed (apt dist-upgrade and autopurge) 1829s Reading package lists... 1829s Building dependency tree... 1829s Reading state information... 1830s Calculating upgrade... 1831s The following packages will be upgraded: 1831s 3cpio distro-info libevent-core-2.1-7t64 libpcap0.8t64 1832s 4 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 1832s Need to get 515 kB of archives. 1832s After this operation, 0 B of additional disk space will be used. 1832s Get:1 http://ftpmaster.internal/ubuntu resolute/main armhf distro-info armhf 1.14build1 [19.3 kB] 1832s Get:2 http://ftpmaster.internal/ubuntu resolute/main armhf libpcap0.8t64 armhf 1.10.5-2ubuntu3 [140 kB] 1832s Get:3 http://ftpmaster.internal/ubuntu resolute/main armhf 3cpio armhf 0.14.0-1ubuntu1 [271 kB] 1832s Get:4 http://ftpmaster.internal/ubuntu resolute/main armhf libevent-core-2.1-7t64 armhf 2.1.12-stable-10build2 [84.9 kB] 1833s Fetched 515 kB in 1s (929 kB/s) 1833s (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 ... 68506 files and directories currently installed.) 1833s Preparing to unpack .../distro-info_1.14build1_armhf.deb ... 1833s Unpacking distro-info (1.14build1) over (1.14) ... 1833s Preparing to unpack .../libpcap0.8t64_1.10.5-2ubuntu3_armhf.deb ... 1833s Unpacking libpcap0.8t64:armhf (1.10.5-2ubuntu3) over (1.10.5-2ubuntu2) ... 1833s Preparing to unpack .../3cpio_0.14.0-1ubuntu1_armhf.deb ... 1833s Unpacking 3cpio (0.14.0-1ubuntu1) over (0.13.1-1ubuntu1) ... 1833s Preparing to unpack .../libevent-core-2.1-7t64_2.1.12-stable-10build2_armhf.deb ... 1833s Unpacking libevent-core-2.1-7t64:armhf (2.1.12-stable-10build2) over (2.1.12-stable-10build1) ... 1833s Setting up distro-info (1.14build1) ... 1833s Setting up 3cpio (0.14.0-1ubuntu1) ... 1833s Setting up libpcap0.8t64:armhf (1.10.5-2ubuntu3) ... 1833s Setting up libevent-core-2.1-7t64:armhf (2.1.12-stable-10build2) ... 1833s Processing triggers for man-db (2.13.1-1) ... 1834s Processing triggers for libc-bin (2.42-2ubuntu4) ... 1836s Reading package lists... 1837s Building dependency tree... 1837s Reading state information... 1837s Solving dependencies... 1837s 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 1839s autopkgtest [11:45:19]: rebooting testbed after setup commands that affected boot 1901s Reading package lists... 1901s Building dependency tree... 1901s Reading state information... 1902s Solving dependencies... 1902s The following NEW packages will be installed: 1902s dconf-gsettings-backend dconf-service dpkg-repack gsettings-desktop-schemas 1902s libdconf1 1902s 0 upgraded, 5 newly installed, 0 to remove and 0 not upgraded. 1902s Need to get 145 kB of archives. 1902s After this operation, 635 kB of additional disk space will be used. 1902s Get:1 http://ftpmaster.internal/ubuntu resolute/main armhf libdconf1 armhf 0.49.0-4 [40.5 kB] 1902s Get:2 http://ftpmaster.internal/ubuntu resolute/main armhf dconf-service armhf 0.49.0-4 [28.8 kB] 1903s Get:3 http://ftpmaster.internal/ubuntu resolute/main armhf dconf-gsettings-backend armhf 0.49.0-4 [25.1 kB] 1903s Get:4 http://ftpmaster.internal/ubuntu resolute/main armhf dpkg-repack all 1.54build1 [11.2 kB] 1903s Get:5 http://ftpmaster.internal/ubuntu resolute/main armhf gsettings-desktop-schemas all 50~alpha-1ubuntu1 [38.9 kB] 1903s Fetched 145 kB in 0s (311 kB/s) 1903s Selecting previously unselected package libdconf1:armhf. 1903s (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 ... 68506 files and directories currently installed.) 1903s Preparing to unpack .../libdconf1_0.49.0-4_armhf.deb ... 1903s Unpacking libdconf1:armhf (0.49.0-4) ... 1903s Selecting previously unselected package dconf-service. 1903s Preparing to unpack .../dconf-service_0.49.0-4_armhf.deb ... 1903s Unpacking dconf-service (0.49.0-4) ... 1903s Selecting previously unselected package dconf-gsettings-backend:armhf. 1903s Preparing to unpack .../dconf-gsettings-backend_0.49.0-4_armhf.deb ... 1903s Unpacking dconf-gsettings-backend:armhf (0.49.0-4) ... 1903s Selecting previously unselected package dpkg-repack. 1903s Preparing to unpack .../dpkg-repack_1.54build1_all.deb ... 1903s Unpacking dpkg-repack (1.54build1) ... 1903s Selecting previously unselected package gsettings-desktop-schemas. 1903s Preparing to unpack .../gsettings-desktop-schemas_50~alpha-1ubuntu1_all.deb ... 1903s Unpacking gsettings-desktop-schemas (50~alpha-1ubuntu1) ... 1903s Setting up dpkg-repack (1.54build1) ... 1903s Setting up libdconf1:armhf (0.49.0-4) ... 1903s Setting up dconf-service (0.49.0-4) ... 1903s Setting up dconf-gsettings-backend:armhf (0.49.0-4) ... 1903s Setting up gsettings-desktop-schemas (50~alpha-1ubuntu1) ... 1903s Processing triggers for man-db (2.13.1-1) ... 1904s Processing triggers for libglib2.0-0t64:armhf (2.86.3-4) ... 1904s Processing triggers for libc-bin (2.42-2ubuntu4) ... 1923s autopkgtest [11:46:43]: test 1065022-futureproofing: [----------------------- 1925s + export DEBIAN_FRONTEND=noninteractive 1925s + n=0 1925s + failed=0 1925s + binary_package=libglib2.0-0t64 1925s + future_binary_package=libglib2.0-0xyz 1925s + pwd 1925s + srcdir=/tmp/autopkgtest.IRmvvB/build.JD2/src 1925s + mktemp -d 1925s + tmpdir=/tmp/tmp.H6cktug6ds 1925s + cd /tmp/tmp.H6cktug6ds 1925s + exec 1925s + [ -e /tmp/autopkgtest.IRmvvB/build.JD2/src/debian/tests/manual/local-1065022.sources ] 1925s + dpkg-query -W dpkg-repack 1925s dpkg-repack 1.54build1 1925s + dpkg-query -s libglib2.0-0t64 1925s Package: libglib2.0-0t64 1925s Status: install ok installed 1925s Priority: important 1925s Section: libs 1925s Installed-Size: 3451 1925s Maintainer: Ubuntu Developers 1925s Architecture: armhf 1925s Multi-Arch: same 1925s Source: glib2.0 1925s Version: 2.86.3-4 1925s Replaces: libglib2.0-0 (<< 2.80.0-7~) 1925s Provides: libgio-2.0-0 (= 2.86.3-4), libglib-2.0-0 (= 2.86.3-4), libgmodule-2.0-0 (= 2.86.3-4), libgobject-2.0-0 (= 2.86.3-4), libgthread-2.0-0 (= 2.86.3-4) 1925s 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) 1925s Recommends: libglib2.0-data, shared-mime-info, xdg-user-dirs 1925s Suggests: low-memory-monitor 1925s Breaks: gnome-shell (<< 44.9-2~), libglib2.0-0 (<< 2.80.0-7~) 1925s Description: GLib library of C routines 1925s GLib is a library containing many useful C routines for things such 1925s as trees, hashes, lists, and strings. It is a useful general-purpose 1925s C library used by projects such as GTK+, GIMP, and GNOME. 1925s . 1925s This package contains the shared libraries. 1925s Original-Maintainer: Debian GNOME Maintainers 1925s Homepage: https://gitlab.gnome.org/GNOME/glib 1925s + dpkg-query -W -f ${Version} libglib2.0-0t64 1925s + binary_version=2.86.3-4 1925s + dpkg-repack --generate libglib2.0-0t64 1925s dpkg-repack: warning: unknown information field 'Original-Maintainer' in input data in stanza in dpkg's status file 1925s dpkg-repack: info: created dpkg-repack.libglib2.0-0t64.X8SU6l for libglib2.0-0t64 1925s dpkg-repack: info: to build use: "dpkg-deb --build dpkg-repack.libglib2.0-0t64.X8SU6l ." 1925s + grep -q ^Breaks: dpkg-repack.libglib2.0-0t64.X8SU6l/DEBIAN/control 1925s + grep -q ^Provides: dpkg-repack.libglib2.0-0t64.X8SU6l/DEBIAN/control 1925s + grep -q ^Replaces: dpkg-repack.libglib2.0-0t64.X8SU6l/DEBIAN/control 1925s + env binary_package=libglib2.0-0t64 binary_version=2.86.3-4 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.X8SU6l/DEBIAN/control 1925s + dpkg-deb --build dpkg-repack.libglib2.0-0t64.X8SU6l libglib2.0-0xyz.deb 1925s dpkg-deb: building package 'libglib2.0-0xyz' in 'libglib2.0-0xyz.deb'. 1927s + dpkg-deb --info libglib2.0-0xyz.deb 1927s new Debian package, version 2.0. 1927s size 1483498 bytes: control archive=25762 bytes. 1927s 1191 bytes, 24 lines control 1927s 1168 bytes, 14 lines md5sums 1927s 1312 bytes, 44 lines * postinst #!/bin/sh 1927s 2580 bytes, 87 lines * postrm #!/bin/sh 1927s 2408 bytes, 53 lines * preinst #!/bin/sh 1927s 466 bytes, 10 lines shlibs 1927s 172677 bytes, 4529 lines symbols 1927s 174 bytes, 4 lines triggers 1927s Package: libglib2.0-0xyz 1927s Source: glib2.0 1927s Version: 2.86.3-4 1927s Architecture: armhf 1927s Maintainer: Ubuntu Developers 1927s Installed-Size: 3451 1927s 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) 1927s Recommends: libglib2.0-data, shared-mime-info, xdg-user-dirs 1927s Suggests: low-memory-monitor 1927s Breaks: gnome-shell (<< 44.9-2~), libglib2.0-0 (<< 2.80.0-7~), libglib2.0-0t64 1927s Replaces: libglib2.0-0 (<< 2.80.0-7~), libglib2.0-0t64 1927s Provides: libgio-2.0-0 (= 2.86.3-4), libglib-2.0-0 (= 2.86.3-4), libgmodule-2.0-0 (= 2.86.3-4), libgobject-2.0-0 (= 2.86.3-4), libgthread-2.0-0 (= 2.86.3-4), libglib2.0-0t64 (= 2.86.3-4) 1927s Section: libs 1927s Priority: important 1927s Multi-Arch: same 1927s Homepage: https://gitlab.gnome.org/GNOME/glib 1927s Description: GLib library of C routines 1927s GLib is a library containing many useful C routines for things such 1927s as trees, hashes, lists, and strings. It is a useful general-purpose 1927s C library used by projects such as GTK+, GIMP, and GNOME. 1927s . 1927s This package contains the shared libraries. 1927s . 1927s (Repackaged on Sat, 07 Feb 2026 11:46:45 +0000 by dpkg-repack.) 1927s + dpkg-deb --contents libglib2.0-0xyz.deb 1927s drwxr-xr-x root/root 0 2026-02-07 11:46 ./ 1927s drwxr-xr-x root/root 0 2026-02-07 11:46 ./usr/ 1927s drwxr-xr-x root/root 0 2026-02-07 11:46 ./usr/lib/ 1927s drwxr-xr-x root/root 0 2026-02-07 11:46 ./usr/lib/arm-linux-gnueabihf/ 1927s drwxr-xr-x root/root 0 2026-02-07 11:46 ./usr/lib/arm-linux-gnueabihf/gio/ 1927s drwxr-xr-x root/root 0 2026-02-07 11:46 ./usr/lib/arm-linux-gnueabihf/gio/modules/ 1927s drwxr-xr-x root/root 0 2026-02-07 11:46 ./usr/lib/arm-linux-gnueabihf/glib-2.0/ 1927s -rwxr-xr-x root/root 67176 2026-01-01 12:59 ./usr/lib/arm-linux-gnueabihf/glib-2.0/gio-launch-desktop 1927s -rwxr-xr-x root/root 67176 2026-01-01 12:59 ./usr/lib/arm-linux-gnueabihf/glib-2.0/gio-querymodules 1927s -rwxr-xr-x root/root 67196 2026-01-01 12:59 ./usr/lib/arm-linux-gnueabihf/glib-2.0/glib-compile-schemas 1927s -rw-r--r-- root/root 1312984 2026-01-01 12:59 ./usr/lib/arm-linux-gnueabihf/libgio-2.0.so.0.8600.3 1927s -rw-r--r-- root/root 1051024 2026-01-01 12:59 ./usr/lib/arm-linux-gnueabihf/libglib-2.0.so.0.8600.3 1927s -rw-r--r-- root/root 67048 2026-01-01 12:59 ./usr/lib/arm-linux-gnueabihf/libgmodule-2.0.so.0.8600.3 1927s -rw-r--r-- root/root 264408 2026-01-01 12:59 ./usr/lib/arm-linux-gnueabihf/libgobject-2.0.so.0.8600.3 1927s -rw-r--r-- root/root 67016 2026-01-01 12:59 ./usr/lib/arm-linux-gnueabihf/libgthread-2.0.so.0.8600.3 1927s drwxr-xr-x root/root 0 2026-02-07 11:46 ./usr/share/ 1927s drwxr-xr-x root/root 0 2026-02-07 11:46 ./usr/share/doc/ 1927s drwxr-xr-x root/root 0 2026-02-07 11:46 ./usr/share/doc/libglib2.0-0t64/ 1927s -rw-r--r-- root/root 258310 2025-12-08 15:46 ./usr/share/doc/libglib2.0-0t64/NEWS.gz 1927s -rw-r--r-- root/root 1703 2026-01-01 12:59 ./usr/share/doc/libglib2.0-0t64/README.Debian 1927s -rw-r--r-- root/root 3248 2025-12-08 15:46 ./usr/share/doc/libglib2.0-0t64/README.md 1927s -rw-r--r-- root/root 39086 2026-01-01 12:59 ./usr/share/doc/libglib2.0-0t64/changelog.Debian.gz 1927s -rw-r--r-- root/root 55103 2026-01-01 12:59 ./usr/share/doc/libglib2.0-0t64/copyright 1927s drwxr-xr-x root/root 0 2026-02-07 11:46 ./usr/share/glib-2.0/ 1927s drwxr-xr-x root/root 0 2026-02-07 11:46 ./usr/share/glib-2.0/schemas/ 1927s drwxr-xr-x root/root 0 2026-02-07 11:46 ./usr/share/lintian/ 1927s drwxr-xr-x root/root 0 2026-02-07 11:46 ./usr/share/lintian/overrides/ 1927s -rw-r--r-- root/root 520 2026-01-01 12:59 ./usr/share/lintian/overrides/libglib2.0-0t64 1927s lrwxrwxrwx root/root 0 2026-01-01 12:59 ./usr/lib/arm-linux-gnueabihf/libgio-2.0.so.0 -> libgio-2.0.so.0.8600.3 1927s lrwxrwxrwx root/root 0 2026-01-01 12:59 ./usr/lib/arm-linux-gnueabihf/libglib-2.0.so.0 -> libglib-2.0.so.0.8600.3 1927s lrwxrwxrwx root/root 0 2026-01-01 12:59 ./usr/lib/arm-linux-gnueabihf/libgmodule-2.0.so.0 -> libgmodule-2.0.so.0.8600.3 1927s lrwxrwxrwx root/root 0 2026-01-01 12:59 ./usr/lib/arm-linux-gnueabihf/libgobject-2.0.so.0 -> libgobject-2.0.so.0.8600.3 1927s lrwxrwxrwx root/root 0 2026-01-01 12:59 ./usr/lib/arm-linux-gnueabihf/libgthread-2.0.so.0 -> libgthread-2.0.so.0.8600.3 1927s + apt-get -y install ./libglib2.0-0xyz.deb dconf-gsettings-backend gsettings-desktop-schemas 1927s Reading package lists... 1927s Building dependency tree... 1927s Reading state information... 1927s dconf-gsettings-backend is already the newest version (0.49.0-4). 1927s gsettings-desktop-schemas is already the newest version (50~alpha-1ubuntu1). 1928s Solving dependencies... 1928s The following additional packages will be installed: 1928s xdg-user-dirs 1928s Suggested packages: 1928s low-memory-monitor 1928s The following packages will be REMOVED: 1928s libglib2.0-0t64 1928s The following NEW packages will be installed: 1928s libglib2.0-0xyz xdg-user-dirs 1928s 0 upgraded, 2 newly installed, 1 to remove and 0 not upgraded. 1928s Need to get 18.1 kB/1502 kB of archives. 1928s After this operation, 213 kB of additional disk space will be used. 1928s Get:1 /tmp/tmp.H6cktug6ds/libglib2.0-0xyz.deb libglib2.0-0xyz armhf 2.86.3-4 [1483 kB] 1929s Get:2 http://ftpmaster.internal/ubuntu resolute/main armhf xdg-user-dirs armhf 0.19-1 [18.1 kB] 1929s Fetched 18.1 kB in 0s (65.7 kB/s) 1929s dpkg: libglib2.0-0t64:armhf: dependency problems, but removing anyway as you requested: 1929s udisks2 depends on libglib2.0-0t64 (>= 2.80.0). 1929s shared-mime-info depends on libglib2.0-0t64 (>= 2.76.0). 1929s python3-gi depends on libglib2.0-0t64 (>= 2.86.0-7~). 1929s python3-dbus depends on libglib2.0-0t64 (>= 2.16.0). 1929s netplan.io depends on libglib2.0-0t64 (>= 2.70.0). 1929s netplan-generator depends on libglib2.0-0t64 (>= 2.16.0). 1929s libxmlb2:armhf depends on libglib2.0-0t64 (>= 2.54.0). 1929s libvolume-key1:armhf depends on libglib2.0-0t64 (>= 2.18.0). 1929s libudisks2-0:armhf depends on libglib2.0-0t64 (>= 2.83.0). 1929s libqrtr-glib0:armhf depends on libglib2.0-0t64 (>= 2.56). 1929s libqmi-proxy depends on libglib2.0-0t64 (>= 2.30.0). 1929s libqmi-glib5:armhf depends on libglib2.0-0t64 (>= 2.54.0). 1929s libpolkit-gobject-1-0:armhf depends on libglib2.0-0t64 (>= 2.38.0). 1929s libpolkit-agent-1-0:armhf depends on libglib2.0-0t64 (>= 2.38.0). 1929s libnetplan1:armhf depends on libglib2.0-0t64 (>= 2.76.0). 1929s libmm-glib0:armhf depends on libglib2.0-0t64 (>= 2.62.0). 1929s libmbim-proxy depends on libglib2.0-0t64 (>= 2.56). 1929s libmbim-glib4:armhf depends on libglib2.0-0t64 (>= 2.56). 1929s libjson-glib-1.0-0:armhf depends on libglib2.0-0t64 (>= 2.80.0). 1929s libjcat1:armhf depends on libglib2.0-0t64 (>= 2.80.0). 1929s libgudev-1.0-0:armhf depends on libglib2.0-0t64 (>= 2.80.0). 1929s libgirepository-2.0-0:armhf depends on libglib2.0-0t64 (= 2.86.3-4). 1929s libfwupd3:armhf depends on libglib2.0-0t64 (>= 2.80.0). 1929s libdconf1:armhf depends on libglib2.0-0t64 (>= 2.80.0). 1929s libblockdev3:armhf depends on libglib2.0-0t64 (>= 2.42.2). 1929s libblockdev-utils3:armhf depends on libglib2.0-0t64 (>= 2.76.0). 1929s libblockdev-swap3:armhf depends on libglib2.0-0t64 (>= 2.42.2). 1929s libblockdev-smart3:armhf depends on libglib2.0-0t64 (>= 2.42.2). 1929s libblockdev-part3:armhf depends on libglib2.0-0t64 (>= 2.42.2). 1929s libblockdev-nvme3:armhf depends on libglib2.0-0t64 (>= 2.42.2). 1929s libblockdev-mdraid3:armhf depends on libglib2.0-0t64 (>= 2.42.2). 1929s libblockdev-loop3:armhf depends on libglib2.0-0t64 (>= 2.42.2). 1929s libblockdev-fs3:armhf depends on libglib2.0-0t64 (>= 2.42.2). 1929s libblockdev-crypto3:armhf depends on libglib2.0-0t64 (>= 2.42.2). 1929s gir1.2-glib-2.0:armhf depends on libglib2.0-0t64 (= 2.86.3-4). 1929s fwupd depends on libglib2.0-0t64 (>= 2.80.0). 1929s dconf-service depends on libglib2.0-0t64 (>= 2.83.0). 1929s dconf-gsettings-backend:armhf depends on libglib2.0-0t64 (>= 2.80.0). 1929s bolt depends on libglib2.0-0t64 (>= 2.80.0). 1929s 1929s (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 ... 68573 files and directories currently installed.) 1929s Removing libglib2.0-0t64:armhf (2.86.3-4) ... 1929s Selecting previously unselected package libglib2.0-0xyz:armhf. 1929s (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 ... 68554 files and directories currently installed.) 1929s Preparing to unpack .../libglib2.0-0xyz.deb ... 1929s Unpacking libglib2.0-0xyz:armhf (2.86.3-4) ... 1929s Selecting previously unselected package xdg-user-dirs. 1930s Preparing to unpack .../xdg-user-dirs_0.19-1_armhf.deb ... 1930s Unpacking xdg-user-dirs (0.19-1) ... 1930s Setting up xdg-user-dirs (0.19-1) ... 1930s Created symlink '/etc/systemd/user/graphical-session-pre.target.wants/xdg-user-dirs.service' → '/usr/lib/systemd/user/xdg-user-dirs.service'. 1930s Setting up libglib2.0-0xyz:armhf (2.86.3-4) ... 1930s Processing triggers for libc-bin (2.42-2ubuntu4) ... 1930s Processing triggers for man-db (2.13.1-1) ... 1931s + assert test -e /usr/share/glib-2.0/schemas/org.gnome.desktop.interface.gschema.xml 1931s + n=1 1931s + test -e /usr/share/glib-2.0/schemas/org.gnome.desktop.interface.gschema.xml 1931s + echo ok 1 - test -e /usr/share/glib-2.0/schemas/org.gnome.desktop.interface.gschema.xml 1931s + assert test -s /usr/share/glib-2.0/schemas/gschemas.compiled 1931s + n=2 1931s + test -s /usr/share/glib-2.0/schemas/gschemas.compiled 1931s + echo ok 2 - test -s /usr/share/glib-2.0/schemas/gschemas.compiled 1931s ok 1 - test -e /usr/share/glib-2.0/schemas/org.gnome.desktop.interface.gschema.xml 1931s + assert test -e /usr/lib/arm-linux-gnueabihf/gio/modules/libdconfsettings.so 1931s + n=3 1931s + test -e /usr/lib/arm-linux-gnueabihf/gio/modules/libdconfsettings.so 1931s + echo ok 3 - test -e /usr/lib/arm-linux-gnueabihf/gio/modules/libdconfsettings.so 1931s + assert test -s /usr/lib/arm-linux-gnueabihf/gio/modules/libdconfsettings.so 1931s + n=4 1931s + test -s /usr/lib/arm-linux-gnueabihf/gio/modules/libdconfsettings.so 1931s + echo ok 4 - test -s /usr/lib/arm-linux-gnueabihf/gio/modules/libdconfsettings.so 1931s ok 2 - test -s /usr/share/glib-2.0/schemas/gschemas.compiled 1931s + assert test -e /usr/lib/arm-linux-gnueabihf/gio/modules/giomodule.cache 1931s + n=5 1931s + test -e /usr/lib/arm-linux-gnueabihf/gio/modules/giomodule.cache 1931s + echo ok 5 - test -e /usr/lib/arm-linux-gnueabihf/gio/modules/giomodule.cache 1931s + assert test -s /usr/lib/arm-linux-gnueabihf/gio/modules/giomodule.cache 1931s + n=6 1931s + test -s /usr/lib/arm-linux-gnueabihf/gio/modules/giomodule.cache 1931s + echo ok 6 - test -s /usr/lib/arm-linux-gnueabihf/gio/modules/giomodule.cache 1931s + apt-get -y purge libglib2.0-0t64 1931s ok 3 - test -e /usr/lib/arm-linux-gnueabihf/gio/modules/libdconfsettings.so 1931s ok 4 - test -s /usr/lib/arm-linux-gnueabihf/gio/modules/libdconfsettings.so 1931s ok 5 - test -e /usr/lib/arm-linux-gnueabihf/gio/modules/giomodule.cache 1931s ok 6 - test -s /usr/lib/arm-linux-gnueabihf/gio/modules/giomodule.cache 1931s Reading package lists... 1931s Building dependency tree... 1931s Reading state information... 1931s Solving dependencies... 1932s The following packages will be REMOVED: 1932s libglib2.0-0t64* 1932s 0 upgraded, 0 newly installed, 1 to remove and 0 not upgraded. 1932s After this operation, 0 B of additional disk space will be used. 1932s (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 ... 68588 files and directories currently installed.) 1932s Purging configuration files for libglib2.0-0t64:armhf (2.86.3-4) ... 1932s + assert test -e /usr/share/glib-2.0/schemas/org.gnome.desktop.interface.gschema.xml 1932s + n=7 1932s + test -e /usr/share/glib-2.0/schemas/org.gnome.desktop.interface.gschema.xml 1932s + echo ok 7 - test -e /usr/share/glib-2.0/schemas/org.gnome.desktop.interface.gschema.xml 1932s + assert test -s /usr/share/glib-2.0/schemas/gschemas.compiled 1932s + n=8 1932s + test -s /usr/share/glib-2.0/schemas/gschemas.compiled 1932s + echo ok 8 - test -s /usr/share/glib-2.0/schemas/gschemas.compiled 1932s + assert test -e /usr/lib/arm-linux-gnueabihf/gio/modules/libdconfsettings.so 1932s + n=9 1932s + test -e /usr/lib/arm-linux-gnueabihf/gio/modules/libdconfsettings.so 1932s + echo ok 9 - test -e /usr/lib/arm-linux-gnueabihf/gio/modules/libdconfsettings.so 1932s + assert test -s /usr/lib/arm-linux-gnueabihf/gio/modules/libdconfsettings.so 1932s + n=10 1932s + test -s /usr/lib/arm-linux-gnueabihf/gio/modules/libdconfsettings.so 1932s + echo ok 10 - test -s /usr/lib/arm-linux-gnueabihf/gio/modules/libdconfsettings.so 1932s ok 7 - test -e /usr/share/glib-2.0/schemas/org.gnome.desktop.interface.gschema.xml 1932s ok 8 - test -s /usr/share/glib-2.0/schemas/gschemas.compiled 1932s + assert test -e /usr/lib/arm-linux-gnueabihf/gio/modules/giomodule.cache 1932s + n=11 1932s + test -e /usr/lib/arm-linux-gnueabihf/gio/modules/giomodule.cache 1932s + echo ok 11 - test -e /usr/lib/arm-linux-gnueabihf/gio/modules/giomodule.cache 1932s + assert test -s /usr/lib/arm-linux-gnueabihf/gio/modules/giomodule.cache 1932s + n=12 1932s + test -s /usr/lib/arm-linux-gnueabihf/gio/modules/giomodule.cache 1932s + echo ok 12 - test -s /usr/lib/arm-linux-gnueabihf/gio/modules/giomodule.cache 1932s + apt-get -y purge libglib2.0-0xyz 1932s ok 9 - test -e /usr/lib/arm-linux-gnueabihf/gio/modules/libdconfsettings.so 1932s ok 10 - test -s /usr/lib/arm-linux-gnueabihf/gio/modules/libdconfsettings.so 1932s ok 11 - test -e /usr/lib/arm-linux-gnueabihf/gio/modules/giomodule.cache 1932s ok 12 - test -s /usr/lib/arm-linux-gnueabihf/gio/modules/giomodule.cache 1932s Reading package lists... 1933s Building dependency tree... 1933s Reading state information... 1933s Solving dependencies... 1933s The following additional packages will be installed: 1933s libglib2.0-0t64 1933s Suggested packages: 1933s low-memory-monitor 1934s The following packages will be REMOVED: 1934s libglib2.0-0xyz* 1934s The following NEW packages will be installed: 1934s libglib2.0-0t64 1934s 0 upgraded, 1 newly installed, 1 to remove and 0 not upgraded. 1934s Need to get 1484 kB of archives. 1934s After this operation, 0 B of additional disk space will be used. 1934s Get:1 http://ftpmaster.internal/ubuntu resolute/main armhf libglib2.0-0t64 armhf 2.86.3-4 [1484 kB] 1935s Fetched 1484 kB in 1s (2507 kB/s) 1935s dpkg: libglib2.0-0xyz:armhf: dependency problems, but removing anyway as you requested: 1935s udisks2 depends on libglib2.0-0t64 (>= 2.80.0); however: 1935s Package libglib2.0-0t64 is not installed. 1935s Package libglib2.0-0xyz:armhf which provides libglib2.0-0t64 is to be removed. 1935s shared-mime-info depends on libglib2.0-0t64 (>= 2.76.0); however: 1935s Package libglib2.0-0t64 is not installed. 1935s Package libglib2.0-0xyz:armhf which provides libglib2.0-0t64 is to be removed. 1935s python3-gi depends on libglib2.0-0t64 (>= 2.86.0-7~); however: 1935s Package libglib2.0-0t64 is not installed. 1935s Package libglib2.0-0xyz:armhf which provides libglib2.0-0t64 is to be removed. 1935s python3-dbus depends on libglib2.0-0t64 (>= 2.16.0); however: 1935s Package libglib2.0-0t64 is not installed. 1935s Package libglib2.0-0xyz:armhf which provides libglib2.0-0t64 is to be removed. 1935s netplan.io depends on libglib2.0-0t64 (>= 2.70.0); however: 1935s Package libglib2.0-0t64 is not installed. 1935s Package libglib2.0-0xyz:armhf which provides libglib2.0-0t64 is to be removed. 1935s netplan-generator depends on libglib2.0-0t64 (>= 2.16.0); however: 1935s Package libglib2.0-0t64 is not installed. 1935s Package libglib2.0-0xyz:armhf which provides libglib2.0-0t64 is to be removed. 1935s libxmlb2:armhf depends on libglib2.0-0t64 (>= 2.54.0); however: 1935s Package libglib2.0-0t64 is not installed. 1935s Package libglib2.0-0xyz:armhf which provides libglib2.0-0t64 is to be removed. 1935s libvolume-key1:armhf depends on libglib2.0-0t64 (>= 2.18.0); however: 1935s Package libglib2.0-0t64 is not installed. 1935s Package libglib2.0-0xyz:armhf which provides libglib2.0-0t64 is to be removed. 1935s libudisks2-0:armhf depends on libglib2.0-0t64 (>= 2.83.0); however: 1935s Package libglib2.0-0t64 is not installed. 1935s Package libglib2.0-0xyz:armhf which provides libglib2.0-0t64 is to be removed. 1935s libqrtr-glib0:armhf depends on libglib2.0-0t64 (>= 2.56); however: 1935s Package libglib2.0-0t64 is not installed. 1935s Package libglib2.0-0xyz:armhf which provides libglib2.0-0t64 is to be removed. 1935s libqmi-proxy depends on libglib2.0-0t64 (>= 2.30.0); however: 1935s Package libglib2.0-0t64 is not installed. 1935s Package libglib2.0-0xyz:armhf which provides libglib2.0-0t64 is to be removed. 1935s libqmi-glib5:armhf depends on libglib2.0-0t64 (>= 2.54.0); however: 1935s Package libglib2.0-0t64 is not installed. 1935s Package libglib2.0-0xyz:armhf which provides libglib2.0-0t64 is to be removed. 1935s libpolkit-gobject-1-0:armhf depends on libglib2.0-0t64 (>= 2.38.0); however: 1935s Package libglib2.0-0t64 is not installed. 1935s Package libglib2.0-0xyz:armhf which provides libglib2.0-0t64 is to be removed. 1935s libpolkit-agent-1-0:armhf depends on libglib2.0-0t64 (>= 2.38.0); however: 1935s Package libglib2.0-0t64 is not installed. 1935s Package libglib2.0-0xyz:armhf which provides libglib2.0-0t64 is to be removed. 1935s libnetplan1:armhf depends on libglib2.0-0t64 (>= 2.76.0); however: 1935s Package libglib2.0-0t64 is not installed. 1935s Package libglib2.0-0xyz:armhf which provides libglib2.0-0t64 is to be removed. 1935s libmm-glib0:armhf depends on libglib2.0-0t64 (>= 2.62.0); however: 1935s Package libglib2.0-0t64 is not installed. 1935s Package libglib2.0-0xyz:armhf which provides libglib2.0-0t64 is to be removed. 1935s libmbim-proxy depends on libglib2.0-0t64 (>= 2.56); however: 1935s Package libglib2.0-0t64 is not installed. 1935s Package libglib2.0-0xyz:armhf which provides libglib2.0-0t64 is to be removed. 1935s libmbim-glib4:armhf depends on libglib2.0-0t64 (>= 2.56); however: 1935s Package libglib2.0-0t64 is not installed. 1935s Package libglib2.0-0xyz:armhf which provides libglib2.0-0t64 is to be removed. 1935s libjson-glib-1.0-0:armhf depends on libglib2.0-0t64 (>= 2.80.0); however: 1935s Package libglib2.0-0t64 is not installed. 1935s Package libglib2.0-0xyz:armhf which provides libglib2.0-0t64 is to be removed. 1935s libjcat1:armhf depends on libglib2.0-0t64 (>= 2.80.0); however: 1935s Package libglib2.0-0t64 is not installed. 1935s Package libglib2.0-0xyz:armhf which provides libglib2.0-0t64 is to be removed. 1935s libgudev-1.0-0:armhf depends on libglib2.0-0t64 (>= 2.80.0); however: 1935s Package libglib2.0-0t64 is not installed. 1935s Package libglib2.0-0xyz:armhf which provides libglib2.0-0t64 is to be removed. 1935s libgirepository-2.0-0:armhf depends on libglib2.0-0t64 (= 2.86.3-4); however: 1935s Package libglib2.0-0t64 is not installed. 1935s Package libglib2.0-0xyz:armhf which provides libglib2.0-0t64 is to be removed. 1935s libfwupd3:armhf depends on libglib2.0-0t64 (>= 2.80.0); however: 1935s Package libglib2.0-0t64 is not installed. 1935s Package libglib2.0-0xyz:armhf which provides libglib2.0-0t64 is to be removed. 1935s libdconf1:armhf depends on libglib2.0-0t64 (>= 2.80.0); however: 1935s Package libglib2.0-0t64 is not installed. 1935s Package libglib2.0-0xyz:armhf which provides libglib2.0-0t64 is to be removed. 1935s libblockdev3:armhf depends on libglib2.0-0t64 (>= 2.42.2); however: 1935s Package libglib2.0-0t64 is not installed. 1935s Package libglib2.0-0xyz:armhf which provides libglib2.0-0t64 is to be removed. 1935s libblockdev-utils3:armhf depends on libglib2.0-0t64 (>= 2.76.0); however: 1935s Package libglib2.0-0t64 is not installed. 1935s Package libglib2.0-0xyz:armhf which provides libglib2.0-0t64 is to be removed. 1935s libblockdev-swap3:armhf depends on libglib2.0-0t64 (>= 2.42.2); however: 1935s Package libglib2.0-0t64 is not installed. 1935s Package libglib2.0-0xyz:armhf which provides libglib2.0-0t64 is to be removed. 1935s libblockdev-smart3:armhf depends on libglib2.0-0t64 (>= 2.42.2); however: 1935s Package libglib2.0-0t64 is not installed. 1935s Package libglib2.0-0xyz:armhf which provides libglib2.0-0t64 is to be removed. 1935s libblockdev-part3:armhf depends on libglib2.0-0t64 (>= 2.42.2); however: 1935s Package libglib2.0-0t64 is not installed. 1935s Package libglib2.0-0xyz:armhf which provides libglib2.0-0t64 is to be removed. 1935s libblockdev-nvme3:armhf depends on libglib2.0-0t64 (>= 2.42.2); however: 1935s Package libglib2.0-0t64 is not installed. 1935s Package libglib2.0-0xyz:armhf which provides libglib2.0-0t64 is to be removed. 1935s libblockdev-mdraid3:armhf depends on libglib2.0-0t64 (>= 2.42.2); however: 1935s Package libglib2.0-0t64 is not installed. 1935s Package libglib2.0-0xyz:armhf which provides libglib2.0-0t64 is to be removed. 1935s libblockdev-loop3:armhf depends on libglib2.0-0t64 (>= 2.42.2); however: 1935s Package libglib2.0-0t64 is not installed. 1935s Package libglib2.0-0xyz:armhf which provides libglib2.0-0t64 is to be removed. 1935s libblockdev-fs3:armhf depends on libglib2.0-0t64 (>= 2.42.2); however: 1935s Package libglib2.0-0t64 is not installed. 1935s Package libglib2.0-0xyz:armhf which provides libglib2.0-0t64 is to be removed. 1935s libblockdev-crypto3:armhf depends on libglib2.0-0t64 (>= 2.42.2); however: 1935s Package libglib2.0-0t64 is not installed. 1935s Package libglib2.0-0xyz:armhf which provides libglib2.0-0t64 is to be removed. 1935s gir1.2-glib-2.0:armhf depends on libglib2.0-0t64 (= 2.86.3-4); however: 1935s Package libglib2.0-0t64 is not installed. 1935s Package libglib2.0-0xyz:armhf which provides libglib2.0-0t64 is to be removed. 1935s fwupd depends on libglib2.0-0t64 (>= 2.80.0); however: 1935s Package libglib2.0-0t64 is not installed. 1935s Package libglib2.0-0xyz:armhf which provides libglib2.0-0t64 is to be removed. 1935s dconf-service depends on libglib2.0-0t64 (>= 2.83.0); however: 1935s Package libglib2.0-0t64 is not installed. 1935s Package libglib2.0-0xyz:armhf which provides libglib2.0-0t64 is to be removed. 1935s dconf-gsettings-backend:armhf depends on libglib2.0-0t64 (>= 2.80.0); however: 1935s Package libglib2.0-0t64 is not installed. 1935s Package libglib2.0-0xyz:armhf which provides libglib2.0-0t64 is to be removed. 1935s bolt depends on libglib2.0-0t64 (>= 2.80.0); however: 1935s Package libglib2.0-0t64 is not installed. 1935s Package libglib2.0-0xyz:armhf which provides libglib2.0-0t64 is to be removed. 1935s 1935s (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 ... 68588 files and directories currently installed.) 1935s Removing libglib2.0-0xyz:armhf (2.86.3-4) ... 1935s Selecting previously unselected package libglib2.0-0t64:armhf. 1935s (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 ... 68569 files and directories currently installed.) 1935s Preparing to unpack .../libglib2.0-0t64_2.86.3-4_armhf.deb ... 1935s Unpacking libglib2.0-0t64:armhf (2.86.3-4) ... 1935s Setting up libglib2.0-0t64:armhf (2.86.3-4) ... 1935s Processing triggers for libc-bin (2.42-2ubuntu4) ... 1935s (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 ... 68588 files and directories currently installed.) 1935s Purging configuration files for libglib2.0-0xyz:armhf (2.86.3-4) ... 1935s + assert_not test -e /usr/share/glib-2.0/schemas/org.gnome.desktop.interface.gschema.xml 1935s + n=13 1935s + test -e /usr/share/glib-2.0/schemas/org.gnome.desktop.interface.gschema.xml 1935s + echo not ok 13 - should not have succeeded: test -e /usr/share/glib-2.0/schemas/org.gnome.desktop.interface.gschema.xml 1935s + failed=1 1935s + assert_not test -e /usr/share/glib-2.0/schemas/gschemas.compiled 1935s + n=14 1935s + test -e /usr/share/glib-2.0/schemas/gschemas.compiled 1935s + echo not ok 14 - should not have succeeded: test -e /usr/share/glib-2.0/schemas/gschemas.compiled 1935s + failed=1 1935s + assert_not test -e /usr/lib/arm-linux-gnueabihf/gio/modules/libdconfsettings.so 1935s + n=15 1935s + test -e /usr/lib/arm-linux-gnueabihf/gio/modules/libdconfsettings.so 1935s + echo not ok 15 - should not have succeeded: test -e /usr/lib/arm-linux-gnueabihf/gio/modules/libdconfsettings.so 1935s + failed=1 1935s + assert_not test -e /usr/lib/arm-linux-gnueabihf/gio/modules/giomodule.cache 1935s + n=16 1935s + test -e /usr/lib/arm-linux-gnueabihf/gio/modules/giomodule.cache 1935s + echo not ok 16 - should not have succeeded: test -e /usr/lib/arm-linux-gnueabihf/gio/modules/giomodule.cache 1935s + failed=1 1935s + echo 1..16 1935s + exit 1 1935s not ok 13 - should not have succeeded: test -e /usr/share/glib-2.0/schemas/org.gnome.desktop.interface.gschema.xml 1935s not ok 14 - should not have succeeded: test -e /usr/share/glib-2.0/schemas/gschemas.compiled 1935s not ok 15 - should not have succeeded: test -e /usr/lib/arm-linux-gnueabihf/gio/modules/libdconfsettings.so 1935s not ok 16 - should not have succeeded: test -e /usr/lib/arm-linux-gnueabihf/gio/modules/giomodule.cache 1935s 1..16 1936s autopkgtest [11:46:56]: test 1065022-futureproofing: -----------------------] 1939s autopkgtest [11:46:59]: test 1065022-futureproofing: - - - - - - - - - - results - - - - - - - - - - 1939s 1065022-futureproofing FLAKY non-zero exit status 1 1943s autopkgtest [11:47:03]: @@@@@@@@@@@@@@@@@@@@ summary 1943s build PASS (superficial) 1943s build-static PASS (superficial) 1943s girepository-tools PASS (superficial) 1943s libgio-2.0-dev-bin PASS (superficial) 1943s libglib2.0-dev PASS (superficial) 1943s installed-tests PASS 1943s closure-refcount PASS 1943s debugcontroller PASS 1943s gdbus-server-auth PASS 1943s gdbus-threading PASS 1943s gmenumodel PASS 1943s mainloop PASS 1943s memory-monitor-dbus PASS 1943s socket PASS 1943s testfilemonitor PASS 1943s thread-pool-slow PASS 1943s threadtests PASS 1943s timeout PASS 1943s timer PASS 1943s 1065022-futureproofing FLAKY non-zero exit status 1